Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libopenmpt 0.8.7+release.autotools.
4 #
5 # Report bugs to <https://bugs.openmpt.org/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: https://bugs.openmpt.org/ about your system, including
280 $0: any error possibly output before this message. Then
281 $0: install a modern shell, or manually run the script
282 $0: under such a shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='libopenmpt'
623 PACKAGE_TARNAME='libopenmpt'
624 PACKAGE_VERSION='0.8.7+release.autotools'
625 PACKAGE_STRING='libopenmpt 0.8.7+release.autotools'
626 PACKAGE_BUGREPORT='https://bugs.openmpt.org/'
627 PACKAGE_URL='https://lib.openmpt.org/'
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_subst_vars='am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 LIBOBJS
665 DX_RULES
666 PAPER_SIZE
667 DOXYGEN_PAPER_SIZE
668 GENERATE_LATEX
669 DX_PDFLATEX
670 DX_FLAG_pdf
671 DX_EGREP
672 DX_DVIPS
673 DX_MAKEINDEX
674 DX_LATEX
675 DX_FLAG_ps
676 DX_FLAG_html
677 GENERATE_CHI
678 DX_FLAG_chi
679 GENERATE_HTMLHELP
680 GENERATE_HTML
681 HHC_PATH
682 DX_HHC
683 DX_FLAG_chm
684 GENERATE_XML
685 DX_FLAG_xml
686 GENERATE_RTF
687 DX_FLAG_rtf
688 GENERATE_MAN
689 DX_FLAG_man
690 DOT_PATH
691 HAVE_DOT
692 DX_DOT
693 DX_FLAG_dot
694 PERL_PATH
695 DX_PERL
696 DX_DOXYGEN
697 DX_FLAG_doc
698 PROJECT
699 SRCDIR
700 DX_ENV
701 DX_DOCDIR
702 DX_CONFIG
703 DX_PROJECT
704 FLAC_LIBS
705 FLAC_CFLAGS
706 SNDFILE_LIBS
707 SNDFILE_CFLAGS
708 SDL2_LIBS
709 SDL2_CFLAGS
710 HAVE_PORTAUDIOCPP_FALSE
711 HAVE_PORTAUDIOCPP_TRUE
712 PORTAUDIOCPP_LIBS
713 PORTAUDIOCPP_CFLAGS
714 HAVE_PORTAUDIO_FALSE
715 HAVE_PORTAUDIO_TRUE
716 PORTAUDIO_LIBS
717 PORTAUDIO_CFLAGS
718 PULSEAUDIO_LIBS
719 PULSEAUDIO_CFLAGS
720 ENABLE_TESTS_FALSE
721 ENABLE_TESTS_TRUE
722 ENABLE_EXAMPLES_FALSE
723 ENABLE_EXAMPLES_TRUE
724 ENABLE_OPENMPT123_FALSE
725 ENABLE_OPENMPT123_TRUE
726 LIBOPENMPT_LIBS_PRIVATE
727 LIBOPENMPT_REQUIRES_PRIVATE
728 VORBISFILE_LIBS
729 VORBISFILE_CFLAGS
730 VORBIS_LIBS
731 VORBIS_CFLAGS
732 OGG_LIBS
733 OGG_CFLAGS
734 MPG123_LIBS
735 MPG123_CFLAGS
736 ZLIB_LIBS
737 ZLIB_CFLAGS
738 WIN32_CONSOLE_CFLAGS
739 WIN32_CONSOLE_CXXFLAGS
740 WIN32_CFLAGS
741 WIN32_CXXFLAGS
742 WIN32_CPPFLAGS
743 OPENMPT123_WIN32_LIBS
744 LIBOPENMPTTEST_WIN32_LIBS
745 LIBOPENMPT_WIN32_LIBS
746 CXXSTDLIB_PCLIBSPRIVATE
747 LIBOPENMPT_LTVER_AGE
748 LIBOPENMPT_LTVER_REVISION
749 LIBOPENMPT_LTVER_CURRENT
750 GLOBAL_CXXFLAGS
751 GLOBAL_CFLAGS
752 GLOBAL_CPPFLAGS
753 PTHREAD_CFLAGS
754 PTHREAD_LIBS
755 PTHREAD_CXX
756 PTHREAD_CC
757 ax_pthread_config
758 CPP
759 HAVE_CXX17
760 HAVE_CXX20
761 HAVE_CXX23
762 CXXCPP
763 am__fastdepCXX_FALSE
764 am__fastdepCXX_TRUE
765 CXXDEPMODE
766 ac_ct_CXX
767 CXXFLAGS
768 CXX
769 PKG_CONFIG_LIBDIR
770 PKG_CONFIG_PATH
771 PKG_CONFIG
772 LT_SYS_LIBRARY_PATH
773 OTOOL64
774 OTOOL
775 LIPO
776 NMEDIT
777 DSYMUTIL
778 MANIFEST_TOOL
779 RANLIB
780 DLLTOOL
781 OBJDUMP
782 FILECMD
783 LN_S
784 NM
785 ac_ct_DUMPBIN
786 DUMPBIN
787 LD
788 FGREP
789 EGREP
790 GREP
791 SED
792 host_os
793 host_vendor
794 host_cpu
795 host
796 build_os
797 build_vendor
798 build_cpu
799 build
800 LIBTOOL
801 ac_ct_AR
802 AR
803 am__fastdepCC_FALSE
804 am__fastdepCC_TRUE
805 CCDEPMODE
806 am__nodep
807 AMDEPBACKSLASH
808 AMDEP_FALSE
809 AMDEP_TRUE
810 am__include
811 DEPDIR
812 OBJEXT
813 EXEEXT
814 ac_ct_CC
815 CPPFLAGS
816 LDFLAGS
817 CFLAGS
818 CC
819 AM_BACKSLASH
820 AM_DEFAULT_VERBOSITY
821 AM_DEFAULT_V
822 AM_V
823 CSCOPE
824 ETAGS
825 CTAGS
826 am__untar
827 am__tar
828 AMTAR
829 am__leading_dot
830 SET_MAKE
831 AWK
832 mkdir_p
833 MKDIR_P
834 INSTALL_STRIP_PROGRAM
835 STRIP
836 install_sh
837 MAKEINFO
838 AUTOHEADER
839 AUTOMAKE
840 AUTOCONF
841 ACLOCAL
842 VERSION
843 PACKAGE
844 CYGPATH_W
845 am__isrc
846 INSTALL_DATA
847 INSTALL_SCRIPT
848 INSTALL_PROGRAM
849 target_alias
850 host_alias
851 build_alias
852 LIBS
853 ECHO_T
854 ECHO_N
855 ECHO_C
856 DEFS
857 mandir
858 localedir
859 libdir
860 psdir
861 pdfdir
862 dvidir
863 htmldir
864 infodir
865 docdir
866 oldincludedir
867 includedir
868 runstatedir
869 localstatedir
870 sharedstatedir
871 sysconfdir
872 datadir
873 datarootdir
874 libexecdir
875 sbindir
876 bindir
877 program_transform_name
878 prefix
879 exec_prefix
880 PACKAGE_URL
881 PACKAGE_BUGREPORT
882 PACKAGE_STRING
883 PACKAGE_VERSION
884 PACKAGE_TARNAME
885 PACKAGE_NAME
886 PATH_SEPARATOR
887 SHELL
888 am__quote'
889 ac_subst_files=''
890 ac_user_opts='
891 enable_option_checking
892 enable_silent_rules
893 enable_dependency_tracking
894 enable_shared
895 enable_static
896 with_pic
897 enable_fast_install
898 with_aix_soname
899 with_gnu_ld
900 with_sysroot
901 enable_libtool_lock
902 enable_largefile
903 with_zlib
904 with_mpg123
905 with_ogg
906 with_vorbis
907 with_vorbisfile
908 enable_openmpt123
909 enable_examples
910 enable_tests
911 with_pulseaudio
912 with_portaudio
913 with_portaudiocpp
914 with_sdl2
915 with_sndfile
916 with_flac
917 enable_doxygen_doc
918 enable_doxygen_dot
919 enable_doxygen_man
920 enable_doxygen_rtf
921 enable_doxygen_xml
922 enable_doxygen_chm
923 enable_doxygen_chi
924 enable_doxygen_html
925 enable_doxygen_ps
926 enable_doxygen_pdf
927 '
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 LT_SYS_LIBRARY_PATH
937 PKG_CONFIG
938 PKG_CONFIG_PATH
939 PKG_CONFIG_LIBDIR
940 CXX
941 CXXFLAGS
942 CCC
943 CXXCPP
944 CPP
945 CXXSTDLIB_PCLIBSPRIVATE
946 ZLIB_CFLAGS
947 ZLIB_LIBS
948 MPG123_CFLAGS
949 MPG123_LIBS
950 OGG_CFLAGS
951 OGG_LIBS
952 VORBIS_CFLAGS
953 VORBIS_LIBS
954 VORBISFILE_CFLAGS
955 VORBISFILE_LIBS
956 PULSEAUDIO_CFLAGS
957 PULSEAUDIO_LIBS
958 PORTAUDIO_CFLAGS
959 PORTAUDIO_LIBS
960 PORTAUDIOCPP_CFLAGS
961 PORTAUDIOCPP_LIBS
962 SDL2_CFLAGS
963 SDL2_LIBS
964 SNDFILE_CFLAGS
965 SNDFILE_LIBS
966 FLAC_CFLAGS
967 FLAC_LIBS
968 DOXYGEN_PAPER_SIZE'
969
970
971 # Initialize some variables set by options.
972 ac_init_help=
973 ac_init_version=false
974 ac_unrecognized_opts=
975 ac_unrecognized_sep=
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
992
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 runstatedir='${localstatedir}/run'
1008 includedir='${prefix}/include'
1009 oldincludedir='/usr/include'
1010 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1011 infodir='${datarootdir}/info'
1012 htmldir='${docdir}'
1013 dvidir='${docdir}'
1014 pdfdir='${docdir}'
1015 psdir='${docdir}'
1016 libdir='${exec_prefix}/lib'
1017 localedir='${datarootdir}/locale'
1018 mandir='${datarootdir}/man'
1019
1020 ac_prev=
1021 ac_dashdash=
1022 for ac_option
1023 do
1024 # If the previous option needs an argument, assign it.
1025 if test -n "$ac_prev"; then
1026 eval $ac_prev=\$ac_option
1027 ac_prev=
1028 continue
1029 fi
1030
1031 case $ac_option in
1032 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033 *=) ac_optarg= ;;
1034 *) ac_optarg=yes ;;
1035 esac
1036
1037 case $ac_dashdash$ac_option in
1038 --)
1039 ac_dashdash=yes ;;
1040
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 ac_prev=bindir ;;
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1045
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1050
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1057
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1060
1061 -datadir | --datadir | --datadi | --datad)
1062 ac_prev=datadir ;;
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1065
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1072
1073 -disable-* | --disable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1081 *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=no ;;
1088
1089 -docdir | --docdir | --docdi | --doc | --do)
1090 ac_prev=docdir ;;
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1093
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 ac_prev=dvidir ;;
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
1098
1099 -enable-* | --enable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "enable_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval enable_$ac_useropt=\$ac_optarg ;;
1114
1115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117 | --exec | --exe | --ex)
1118 ac_prev=exec_prefix ;;
1119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121 | --exec=* | --exe=* | --ex=*)
1122 exec_prefix=$ac_optarg ;;
1123
1124 -gas | --gas | --ga | --g)
1125 # Obsolete; use --with-gas.
1126 with_gas=yes ;;
1127
1128 -help | --help | --hel | --he | -h)
1129 ac_init_help=long ;;
1130 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131 ac_init_help=recursive ;;
1132 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133 ac_init_help=short ;;
1134
1135 -host | --host | --hos | --ho)
1136 ac_prev=host_alias ;;
1137 -host=* | --host=* | --hos=* | --ho=*)
1138 host_alias=$ac_optarg ;;
1139
1140 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141 ac_prev=htmldir ;;
1142 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143 | --ht=*)
1144 htmldir=$ac_optarg ;;
1145
1146 -includedir | --includedir | --includedi | --included | --include \
1147 | --includ | --inclu | --incl | --inc)
1148 ac_prev=includedir ;;
1149 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150 | --includ=* | --inclu=* | --incl=* | --inc=*)
1151 includedir=$ac_optarg ;;
1152
1153 -infodir | --infodir | --infodi | --infod | --info | --inf)
1154 ac_prev=infodir ;;
1155 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156 infodir=$ac_optarg ;;
1157
1158 -libdir | --libdir | --libdi | --libd)
1159 ac_prev=libdir ;;
1160 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161 libdir=$ac_optarg ;;
1162
1163 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164 | --libexe | --libex | --libe)
1165 ac_prev=libexecdir ;;
1166 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167 | --libexe=* | --libex=* | --libe=*)
1168 libexecdir=$ac_optarg ;;
1169
1170 -localedir | --localedir | --localedi | --localed | --locale)
1171 ac_prev=localedir ;;
1172 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173 localedir=$ac_optarg ;;
1174
1175 -localstatedir | --localstatedir | --localstatedi | --localstated \
1176 | --localstate | --localstat | --localsta | --localst | --locals)
1177 ac_prev=localstatedir ;;
1178 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180 localstatedir=$ac_optarg ;;
1181
1182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183 ac_prev=mandir ;;
1184 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185 mandir=$ac_optarg ;;
1186
1187 -nfp | --nfp | --nf)
1188 # Obsolete; use --without-fp.
1189 with_fp=no ;;
1190
1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192 | --no-cr | --no-c | -n)
1193 no_create=yes ;;
1194
1195 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197 no_recursion=yes ;;
1198
1199 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201 | --oldin | --oldi | --old | --ol | --o)
1202 ac_prev=oldincludedir ;;
1203 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206 oldincludedir=$ac_optarg ;;
1207
1208 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209 ac_prev=prefix ;;
1210 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211 prefix=$ac_optarg ;;
1212
1213 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214 | --program-pre | --program-pr | --program-p)
1215 ac_prev=program_prefix ;;
1216 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218 program_prefix=$ac_optarg ;;
1219
1220 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221 | --program-suf | --program-su | --program-s)
1222 ac_prev=program_suffix ;;
1223 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225 program_suffix=$ac_optarg ;;
1226
1227 -program-transform-name | --program-transform-name \
1228 | --program-transform-nam | --program-transform-na \
1229 | --program-transform-n | --program-transform- \
1230 | --program-transform | --program-transfor \
1231 | --program-transfo | --program-transf \
1232 | --program-trans | --program-tran \
1233 | --progr-tra | --program-tr | --program-t)
1234 ac_prev=program_transform_name ;;
1235 -program-transform-name=* | --program-transform-name=* \
1236 | --program-transform-nam=* | --program-transform-na=* \
1237 | --program-transform-n=* | --program-transform-=* \
1238 | --program-transform=* | --program-transfor=* \
1239 | --program-transfo=* | --program-transf=* \
1240 | --program-trans=* | --program-tran=* \
1241 | --progr-tra=* | --program-tr=* | --program-t=*)
1242 program_transform_name=$ac_optarg ;;
1243
1244 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245 ac_prev=pdfdir ;;
1246 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247 pdfdir=$ac_optarg ;;
1248
1249 -psdir | --psdir | --psdi | --psd | --ps)
1250 ac_prev=psdir ;;
1251 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252 psdir=$ac_optarg ;;
1253
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 silent=yes ;;
1257
1258 -runstatedir | --runstatedir | --runstatedi | --runstated \
1259 | --runstate | --runstat | --runsta | --runst | --runs \
1260 | --run | --ru | --r)
1261 ac_prev=runstatedir ;;
1262 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1263 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1264 | --run=* | --ru=* | --r=*)
1265 runstatedir=$ac_optarg ;;
1266
1267 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1268 ac_prev=sbindir ;;
1269 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1270 | --sbi=* | --sb=*)
1271 sbindir=$ac_optarg ;;
1272
1273 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1274 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1275 | --sharedst | --shareds | --shared | --share | --shar \
1276 | --sha | --sh)
1277 ac_prev=sharedstatedir ;;
1278 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1279 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1280 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1281 | --sha=* | --sh=*)
1282 sharedstatedir=$ac_optarg ;;
1283
1284 -site | --site | --sit)
1285 ac_prev=site ;;
1286 -site=* | --site=* | --sit=*)
1287 site=$ac_optarg ;;
1288
1289 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1290 ac_prev=srcdir ;;
1291 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1292 srcdir=$ac_optarg ;;
1293
1294 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1295 | --syscon | --sysco | --sysc | --sys | --sy)
1296 ac_prev=sysconfdir ;;
1297 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1298 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1299 sysconfdir=$ac_optarg ;;
1300
1301 -target | --target | --targe | --targ | --tar | --ta | --t)
1302 ac_prev=target_alias ;;
1303 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1304 target_alias=$ac_optarg ;;
1305
1306 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1307 verbose=yes ;;
1308
1309 -version | --version | --versio | --versi | --vers | -V)
1310 ac_init_version=: ;;
1311
1312 -with-* | --with-*)
1313 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316 as_fn_error $? "invalid package name: \`$ac_useropt'"
1317 ac_useropt_orig=$ac_useropt
1318 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1319 case $ac_user_opts in
1320 *"
1321 "with_$ac_useropt"
1322 "*) ;;
1323 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1324 ac_unrecognized_sep=', ';;
1325 esac
1326 eval with_$ac_useropt=\$ac_optarg ;;
1327
1328 -without-* | --without-*)
1329 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332 as_fn_error $? "invalid package name: \`$ac_useropt'"
1333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1336 *"
1337 "with_$ac_useropt"
1338 "*) ;;
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
1341 esac
1342 eval with_$ac_useropt=no ;;
1343
1344 --x)
1345 # Obsolete; use --with-x.
1346 with_x=yes ;;
1347
1348 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1349 | --x-incl | --x-inc | --x-in | --x-i)
1350 ac_prev=x_includes ;;
1351 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1352 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1353 x_includes=$ac_optarg ;;
1354
1355 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1356 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1357 ac_prev=x_libraries ;;
1358 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1359 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1360 x_libraries=$ac_optarg ;;
1361
1362 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1363 Try \`$0 --help' for more information"
1364 ;;
1365
1366 *=*)
1367 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1368 # Reject names that are not valid shell variable names.
1369 case $ac_envvar in #(
1370 '' | [0-9]* | *[!_$as_cr_alnum]* )
1371 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1372 esac
1373 eval $ac_envvar=\$ac_optarg
1374 export $ac_envvar ;;
1375
1376 *)
1377 # FIXME: should be removed in autoconf 3.0.
1378 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1379 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1380 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1381 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1382 ;;
1383
1384 esac
1385 done
1386
1387 if test -n "$ac_prev"; then
1388 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1389 as_fn_error $? "missing argument to $ac_option"
1390 fi
1391
1392 if test -n "$ac_unrecognized_opts"; then
1393 case $enable_option_checking in
1394 no) ;;
1395 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1396 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1397 esac
1398 fi
1399
1400 # Check all directory arguments for consistency.
1401 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1402 datadir sysconfdir sharedstatedir localstatedir includedir \
1403 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1404 libdir localedir mandir runstatedir
1405 do
1406 eval ac_val=\$$ac_var
1407 # Remove trailing slashes.
1408 case $ac_val in
1409 */ )
1410 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1411 eval $ac_var=\$ac_val;;
1412 esac
1413 # Be sure to have absolute directory names.
1414 case $ac_val in
1415 [\\/$]* | ?:[\\/]* ) continue;;
1416 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1417 esac
1418 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1419 done
1420
1421 # There might be people who depend on the old broken behavior: `$host'
1422 # used to hold the argument of --host etc.
1423 # FIXME: To remove some day.
1424 build=$build_alias
1425 host=$host_alias
1426 target=$target_alias
1427
1428 # FIXME: To remove some day.
1429 if test "x$host_alias" != x; then
1430 if test "x$build_alias" = x; then
1431 cross_compiling=maybe
1432 elif test "x$build_alias" != "x$host_alias"; then
1433 cross_compiling=yes
1434 fi
1435 fi
1436
1437 ac_tool_prefix=
1438 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1439
1440 test "$silent" = yes && exec 6>/dev/null
1441
1442
1443 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1444 ac_ls_di=`ls -di .` &&
1445 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1446 as_fn_error $? "working directory cannot be determined"
1447 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1448 as_fn_error $? "pwd does not report name of working directory"
1449
1450
1451 # Find the source files, if location was not specified.
1452 if test -z "$srcdir"; then
1453 ac_srcdir_defaulted=yes
1454 # Try the directory containing this script, then the parent directory.
1455 ac_confdir=`$as_dirname -- "$as_myself" ||
1456 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1457 X"$as_myself" : 'X\(//\)[^/]' \| \
1458 X"$as_myself" : 'X\(//\)$' \| \
1459 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1460 printf "%s\n" X"$as_myself" |
1461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462 s//\1/
1463 q
1464 }
1465 /^X\(\/\/\)[^/].*/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\/\)$/{
1470 s//\1/
1471 q
1472 }
1473 /^X\(\/\).*/{
1474 s//\1/
1475 q
1476 }
1477 s/.*/./; q'`
1478 srcdir=$ac_confdir
1479 if test ! -r "$srcdir/$ac_unique_file"; then
1480 srcdir=..
1481 fi
1482 else
1483 ac_srcdir_defaulted=no
1484 fi
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1486 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1487 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1488 fi
1489 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1490 ac_abs_confdir=`(
1491 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1492 pwd)`
1493 # When building in place, set srcdir=.
1494 if test "$ac_abs_confdir" = "$ac_pwd"; then
1495 srcdir=.
1496 fi
1497 # Remove unnecessary trailing slashes from srcdir.
1498 # Double slashes in file names in object file debugging info
1499 # mess up M-x gdb in Emacs.
1500 case $srcdir in
1501 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1502 esac
1503 for ac_var in $ac_precious_vars; do
1504 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1505 eval ac_env_${ac_var}_value=\$${ac_var}
1506 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1507 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1508 done
1509
1510 #
1511 # Report the --help message.
1512 #
1513 if test "$ac_init_help" = "long"; then
1514 # Omit some internal or obsolete options to make the list less imposing.
1515 # This message is too long to be a string in the A/UX 3.1 sh.
1516 cat <<_ACEOF
1517 \`configure' configures libopenmpt 0.8.7+release.autotools to adapt to many kinds of systems.
1518
1519 Usage: $0 [OPTION]... [VAR=VALUE]...
1520
1521 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1522 VAR=VALUE. See below for descriptions of some of the useful variables.
1523
1524 Defaults for the options are specified in brackets.
1525
1526 Configuration:
1527 -h, --help display this help and exit
1528 --help=short display options specific to this package
1529 --help=recursive display the short help of all the included packages
1530 -V, --version display version information and exit
1531 -q, --quiet, --silent do not print \`checking ...' messages
1532 --cache-file=FILE cache test results in FILE [disabled]
1533 -C, --config-cache alias for \`--cache-file=config.cache'
1534 -n, --no-create do not create output files
1535 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1536
1537 Installation directories:
1538 --prefix=PREFIX install architecture-independent files in PREFIX
1539 [$ac_default_prefix]
1540 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1541 [PREFIX]
1542
1543 By default, \`make install' will install all the files in
1544 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1545 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1546 for instance \`--prefix=\$HOME'.
1547
1548 For better control, use the options below.
1549
1550 Fine tuning of the installation directories:
1551 --bindir=DIR user executables [EPREFIX/bin]
1552 --sbindir=DIR system admin executables [EPREFIX/sbin]
1553 --libexecdir=DIR program executables [EPREFIX/libexec]
1554 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1555 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1556 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1557 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1558 --libdir=DIR object code libraries [EPREFIX/lib]
1559 --includedir=DIR C header files [PREFIX/include]
1560 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1561 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1562 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1563 --infodir=DIR info documentation [DATAROOTDIR/info]
1564 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1565 --mandir=DIR man documentation [DATAROOTDIR/man]
1566 --docdir=DIR documentation root [DATAROOTDIR/doc/libopenmpt]
1567 --htmldir=DIR html documentation [DOCDIR]
1568 --dvidir=DIR dvi documentation [DOCDIR]
1569 --pdfdir=DIR pdf documentation [DOCDIR]
1570 --psdir=DIR ps documentation [DOCDIR]
1571 _ACEOF
1572
1573 cat <<\_ACEOF
1574
1575 Program names:
1576 --program-prefix=PREFIX prepend PREFIX to installed program names
1577 --program-suffix=SUFFIX append SUFFIX to installed program names
1578 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1579
1580 System types:
1581 --build=BUILD configure for building on BUILD [guessed]
1582 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1583 _ACEOF
1584 fi
1585
1586 if test -n "$ac_init_help"; then
1587 case $ac_init_help in
1588 short | recursive ) echo "Configuration of libopenmpt 0.8.7+release.autotools:";;
1589 esac
1590 cat <<\_ACEOF
1591
1592 Optional Features:
1593 --disable-option-checking ignore unrecognized --enable/--with options
1594 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1595 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1596 --enable-silent-rules less verbose build output (undo: "make V=1")
1597 --disable-silent-rules verbose build output (undo: "make V=0")
1598 --enable-dependency-tracking
1599 do not reject slow dependency extractors
1600 --disable-dependency-tracking
1601 speeds up one-time build
1602 --enable-shared[=PKGS] build shared libraries [default=yes]
1603 --enable-static[=PKGS] build static libraries [default=yes]
1604 --enable-fast-install[=PKGS]
1605 optimize for fast installation [default=yes]
1606 --disable-libtool-lock avoid locking (might break parallel builds)
1607 --disable-largefile omit support for large files
1608 --disable-openmpt123 Disable the openmpt123 command line player.
1609 --disable-examples Disable the example programs.
1610 --disable-tests Disable the test suite.
1611 --disable-doxygen-doc don't generate any doxygen documentation
1612 --enable-doxygen-dot generate graphics for doxygen documentation
1613 --enable-doxygen-man generate doxygen manual pages
1614 --enable-doxygen-rtf generate doxygen RTF documentation
1615 --enable-doxygen-xml generate doxygen XML documentation
1616 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1617 --enable-doxygen-chi generate doxygen separate compressed HTML help index
1618 file
1619 --disable-doxygen-html don't generate doxygen plain HTML documentation
1620 --enable-doxygen-ps generate doxygen PostScript documentation
1621 --enable-doxygen-pdf generate doxygen PDF documentation
1622
1623 Optional Packages:
1624 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1625 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1626 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1627 both]
1628 --with-aix-soname=aix|svr4|both
1629 shared library versioning (aka "SONAME") variant to
1630 provide on AIX, [default=aix].
1631 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1632 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1633 compiler's sysroot if not specified).
1634 --without-zlib Disable use of zlib.
1635 --without-mpg123 Disable use of libmpg123.
1636 --without-ogg Disable use of libogg.
1637 --without-vorbis Disable use of libvorbis.
1638 --without-vorbisfile Disable use of libvorbisfile.
1639 --with-pulseaudio Enable use of libpulse and libpulse-simple (enabled
1640 by default on Linux).
1641 --without-portaudio Disable use of libportaudio.
1642 --without-portaudiocpp Disable use of libportaudiocpp.
1643 --with-sdl2 Enable use of libsdl2.
1644 --without-sndfile Disable use of libsndfile.
1645 --without-flac Disable use of libflac.
1646
1647 Some influential environment variables:
1648 CC C compiler command
1649 CFLAGS C compiler flags
1650 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1651 nonstandard directory <lib dir>
1652 LIBS libraries to pass to the linker, e.g. -l<library>
1653 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1654 you have headers in a nonstandard directory <include dir>
1655 LT_SYS_LIBRARY_PATH
1656 User-defined run-time library search path.
1657 PKG_CONFIG path to pkg-config utility
1658 PKG_CONFIG_PATH
1659 directories to add to pkg-config's search path
1660 PKG_CONFIG_LIBDIR
1661 path overriding pkg-config's built-in search path
1662 CXX C++ compiler command
1663 CXXFLAGS C++ compiler flags
1664 CXXCPP C++ preprocessor
1665 CPP C preprocessor
1666 CXXSTDLIB_PCLIBSPRIVATE
1667 C++ standard library (or libraries) required for static linking.
1668 This will be put in the pkg-config file libopenmpt.pc
1669 Libs.private field and used for nothing else.
1670 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1671 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1672 MPG123_CFLAGS
1673 C compiler flags for MPG123, overriding pkg-config
1674 MPG123_LIBS linker flags for MPG123, overriding pkg-config
1675 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1676 OGG_LIBS linker flags for OGG, overriding pkg-config
1677 VORBIS_CFLAGS
1678 C compiler flags for VORBIS, overriding pkg-config
1679 VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
1680 VORBISFILE_CFLAGS
1681 C compiler flags for VORBISFILE, overriding pkg-config
1682 VORBISFILE_LIBS
1683 linker flags for VORBISFILE, overriding pkg-config
1684 PULSEAUDIO_CFLAGS
1685 C compiler flags for PULSEAUDIO, overriding pkg-config
1686 PULSEAUDIO_LIBS
1687 linker flags for PULSEAUDIO, overriding pkg-config
1688 PORTAUDIO_CFLAGS
1689 C compiler flags for PORTAUDIO, overriding pkg-config
1690 PORTAUDIO_LIBS
1691 linker flags for PORTAUDIO, overriding pkg-config
1692 PORTAUDIOCPP_CFLAGS
1693 C compiler flags for PORTAUDIOCPP, overriding pkg-config
1694 PORTAUDIOCPP_LIBS
1695 linker flags for PORTAUDIOCPP, overriding pkg-config
1696 SDL2_CFLAGS C compiler flags for SDL2, overriding pkg-config
1697 SDL2_LIBS linker flags for SDL2, overriding pkg-config
1698 SNDFILE_CFLAGS
1699 C compiler flags for SNDFILE, overriding pkg-config
1700 SNDFILE_LIBS
1701 linker flags for SNDFILE, overriding pkg-config
1702 FLAC_CFLAGS C compiler flags for FLAC, overriding pkg-config
1703 FLAC_LIBS linker flags for FLAC, overriding pkg-config
1704 DOXYGEN_PAPER_SIZE
1705 a4wide (default), a4, letter, legal or executive
1706
1707 Use these variables to override the choices made by `configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1709
1710 Report bugs to <https://bugs.openmpt.org/>.
1711 libopenmpt home page: <https://lib.openmpt.org/>.
1712 _ACEOF
1713 ac_status=$?
1714 fi
1715
1716 if test "$ac_init_help" = "recursive"; then
1717 # If there are subdirs, report their specific --help.
1718 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1719 test -d "$ac_dir" ||
1720 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1721 continue
1722 ac_builddir=.
1723
1724 case "$ac_dir" in
1725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *)
1727 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1728 # A ".." for each directory in $ac_dir_suffix.
1729 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1730 case $ac_top_builddir_sub in
1731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1733 esac ;;
1734 esac
1735 ac_abs_top_builddir=$ac_pwd
1736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1737 # for backward compatibility:
1738 ac_top_builddir=$ac_top_build_prefix
1739
1740 case $srcdir in
1741 .) # We are building in place.
1742 ac_srcdir=.
1743 ac_top_srcdir=$ac_top_builddir_sub
1744 ac_abs_top_srcdir=$ac_pwd ;;
1745 [\\/]* | ?:[\\/]* ) # Absolute name.
1746 ac_srcdir=$srcdir$ac_dir_suffix;
1747 ac_top_srcdir=$srcdir
1748 ac_abs_top_srcdir=$srcdir ;;
1749 *) # Relative name.
1750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1751 ac_top_srcdir=$ac_top_build_prefix$srcdir
1752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1753 esac
1754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755
1756 cd "$ac_dir" || { ac_status=$?; continue; }
1757 # Check for configure.gnu first; this name is used for a wrapper for
1758 # Metaconfig's "Configure" on case-insensitive file systems.
1759 if test -f "$ac_srcdir/configure.gnu"; then
1760 echo &&
1761 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1762 elif test -f "$ac_srcdir/configure"; then
1763 echo &&
1764 $SHELL "$ac_srcdir/configure" --help=recursive
1765 else
1766 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1767 fi || ac_status=$?
1768 cd "$ac_pwd" || { ac_status=$?; break; }
1769 done
1770 fi
1771
1772 test -n "$ac_init_help" && exit $ac_status
1773 if $ac_init_version; then
1774 cat <<\_ACEOF
1775 libopenmpt configure 0.8.7+release.autotools
1776 generated by GNU Autoconf 2.71
1777
1778 Copyright (C) 2021 Free Software Foundation, Inc.
1779 This configure script is free software; the Free Software Foundation
1780 gives unlimited permission to copy, distribute and modify it.
1781 _ACEOF
1782 exit
1783 fi
1784
1785 ## ------------------------ ##
1786 ## Autoconf initialization. ##
1787 ## ------------------------ ##
1788
1789 # ac_fn_c_try_compile LINENO
1790 # --------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_compile ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext conftest.beam
1796 if { { ac_try="$ac_compile"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 printf "%s\n" "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext
1815 then :
1816 ac_retval=0
1817 else $as_nop
1818 printf "%s\n" "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=1
1822 fi
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status $ac_retval
1825
1826 } # ac_fn_c_try_compile
1827
1828 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1829 # -------------------------------------------------------
1830 # Tests whether HEADER exists and can be compiled using the include files in
1831 # INCLUDES, setting the cache variable VAR accordingly.
1832 ac_fn_c_check_header_compile ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 printf %s "checking for $2... " >&6; }
1837 if eval test \${$3+y}
1838 then :
1839 printf %s "(cached) " >&6
1840 else $as_nop
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 $4
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"
1847 then :
1848 eval "$3=yes"
1849 else $as_nop
1850 eval "$3=no"
1851 fi
1852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1853 fi
1854 eval ac_res=\$$3
1855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 printf "%s\n" "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_header_compile
1860
1861 # ac_fn_c_try_link LINENO
1862 # -----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_c_try_link ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1868 if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 printf "%s\n" "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1881 fi
1882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_c_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest$ac_exeext && {
1887 test "$cross_compiling" = yes ||
1888 test -x conftest$ac_exeext
1889 }
1890 then :
1891 ac_retval=0
1892 else $as_nop
1893 printf "%s\n" "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 ac_retval=1
1897 fi
1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1900 # interfere with the next link command; also delete a directory that is
1901 # left behind by Apple's compiler. We do this before executing the actions.
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1905
1906 } # ac_fn_c_try_link
1907
1908 # ac_fn_c_check_func LINENO FUNC VAR
1909 # ----------------------------------
1910 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1911 ac_fn_c_check_func ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 printf %s "checking for $2... " >&6; }
1916 if eval test \${$3+y}
1917 then :
1918 printf %s "(cached) " >&6
1919 else $as_nop
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1924 #define $2 innocuous_$2
1925
1926 /* System header to define __stub macros and hopefully few prototypes,
1927 which can conflict with char $2 (); below. */
1928
1929 #include <limits.h>
1930 #undef $2
1931
1932 /* Override any GCC internal prototype to avoid an error.
1933 Use char because int might match the return type of a GCC
1934 builtin and then its argument prototype would still apply. */
1935 #ifdef __cplusplus
1936 extern "C"
1937 #endif
1938 char $2 ();
1939 /* The GNU C library defines this for functions which it implements
1940 to always fail with ENOSYS. Some functions are actually named
1941 something starting with __ and the normal name is an alias. */
1942 #if defined __stub_$2 || defined __stub___$2
1943 choke me
1944 #endif
1945
1946 int
1947 main (void)
1948 {
1949 return $2 ();
1950 ;
1951 return 0;
1952 }
1953 _ACEOF
1954 if ac_fn_c_try_link "$LINENO"
1955 then :
1956 eval "$3=yes"
1957 else $as_nop
1958 eval "$3=no"
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1961 conftest$ac_exeext conftest.$ac_ext
1962 fi
1963 eval ac_res=\$$3
1964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 printf "%s\n" "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967
1968 } # ac_fn_c_check_func
1969
1970 # ac_fn_cxx_try_compile LINENO
1971 # ----------------------------
1972 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_cxx_try_compile ()
1974 {
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 rm -f conftest.$ac_objext conftest.beam
1977 if { { ac_try="$ac_compile"
1978 case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 printf "%s\n" "$ac_try_echo"; } >&5
1984 (eval "$ac_compile") 2>conftest.err
1985 ac_status=$?
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1990 fi
1991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_cxx_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest.$ac_objext
1996 then :
1997 ac_retval=0
1998 else $as_nop
1999 printf "%s\n" "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2001
2002 ac_retval=1
2003 fi
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 as_fn_set_status $ac_retval
2006
2007 } # ac_fn_cxx_try_compile
2008
2009 # ac_fn_cxx_try_cpp LINENO
2010 # ------------------------
2011 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2012 ac_fn_cxx_try_cpp ()
2013 {
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 if { { ac_try="$ac_cpp conftest.$ac_ext"
2016 case "(($ac_try" in
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2019 esac
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 printf "%s\n" "$ac_try_echo"; } >&5
2022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2023 ac_status=$?
2024 if test -s conftest.err; then
2025 grep -v '^ *+' conftest.err >conftest.er1
2026 cat conftest.er1 >&5
2027 mv -f conftest.er1 conftest.err
2028 fi
2029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; } > conftest.i && {
2031 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2032 test ! -s conftest.err
2033 }
2034 then :
2035 ac_retval=0
2036 else $as_nop
2037 printf "%s\n" "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2039
2040 ac_retval=1
2041 fi
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 as_fn_set_status $ac_retval
2044
2045 } # ac_fn_cxx_try_cpp
2046
2047 # ac_fn_cxx_try_link LINENO
2048 # -------------------------
2049 # Try to link conftest.$ac_ext, and return whether this succeeded.
2050 ac_fn_cxx_try_link ()
2051 {
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2054 if { { ac_try="$ac_link"
2055 case "(($ac_try" in
2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057 *) ac_try_echo=$ac_try;;
2058 esac
2059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060 printf "%s\n" "$ac_try_echo"; } >&5
2061 (eval "$ac_link") 2>conftest.err
2062 ac_status=$?
2063 if test -s conftest.err; then
2064 grep -v '^ *+' conftest.err >conftest.er1
2065 cat conftest.er1 >&5
2066 mv -f conftest.er1 conftest.err
2067 fi
2068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; } && {
2070 test -z "$ac_cxx_werror_flag" ||
2071 test ! -s conftest.err
2072 } && test -s conftest$ac_exeext && {
2073 test "$cross_compiling" = yes ||
2074 test -x conftest$ac_exeext
2075 }
2076 then :
2077 ac_retval=0
2078 else $as_nop
2079 printf "%s\n" "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2081
2082 ac_retval=1
2083 fi
2084 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086 # interfere with the next link command; also delete a directory that is
2087 # left behind by Apple's compiler. We do this before executing the actions.
2088 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 as_fn_set_status $ac_retval
2091
2092 } # ac_fn_cxx_try_link
2093
2094 # ac_fn_c_try_cpp LINENO
2095 # ----------------------
2096 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2097 ac_fn_c_try_cpp ()
2098 {
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 if { { ac_try="$ac_cpp conftest.$ac_ext"
2101 case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2104 esac
2105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106 printf "%s\n" "$ac_try_echo"; } >&5
2107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2108 ac_status=$?
2109 if test -s conftest.err; then
2110 grep -v '^ *+' conftest.err >conftest.er1
2111 cat conftest.er1 >&5
2112 mv -f conftest.er1 conftest.err
2113 fi
2114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2115 test $ac_status = 0; } > conftest.i && {
2116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2117 test ! -s conftest.err
2118 }
2119 then :
2120 ac_retval=0
2121 else $as_nop
2122 printf "%s\n" "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2124
2125 ac_retval=1
2126 fi
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 as_fn_set_status $ac_retval
2129
2130 } # ac_fn_c_try_cpp
2131 ac_configure_args_raw=
2132 for ac_arg
2133 do
2134 case $ac_arg in
2135 *\'*)
2136 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2137 esac
2138 as_fn_append ac_configure_args_raw " '$ac_arg'"
2139 done
2140
2141 case $ac_configure_args_raw in
2142 *$as_nl*)
2143 ac_safe_unquote= ;;
2144 *)
2145 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2146 ac_unsafe_a="$ac_unsafe_z#~"
2147 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2148 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2149 esac
2150
2151 cat >config.log <<_ACEOF
2152 This file contains any messages produced by compilers while
2153 running configure, to aid debugging if configure makes a mistake.
2154
2155 It was created by libopenmpt $as_me 0.8.7+release.autotools, which was
2156 generated by GNU Autoconf 2.71. Invocation command line was
2157
2158 $ $0$ac_configure_args_raw
2159
2160 _ACEOF
2161 exec 5>>config.log
2162 {
2163 cat <<_ASUNAME
2164 ## --------- ##
2165 ## Platform. ##
2166 ## --------- ##
2167
2168 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2169 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2170 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2171 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2172 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2173
2174 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2175 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2176
2177 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2178 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2179 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2180 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2181 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2182 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2183 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2184
2185 _ASUNAME
2186
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2189 do
2190 IFS=$as_save_IFS
2191 case $as_dir in #(((
2192 '') as_dir=./ ;;
2193 */) ;;
2194 *) as_dir=$as_dir/ ;;
2195 esac
2196 printf "%s\n" "PATH: $as_dir"
2197 done
2198 IFS=$as_save_IFS
2199
2200 } >&5
2201
2202 cat >&5 <<_ACEOF
2203
2204
2205 ## ----------- ##
2206 ## Core tests. ##
2207 ## ----------- ##
2208
2209 _ACEOF
2210
2211
2212 # Keep a trace of the command line.
2213 # Strip out --no-create and --no-recursion so they do not pile up.
2214 # Strip out --silent because we don't want to record it for future runs.
2215 # Also quote any args containing shell meta-characters.
2216 # Make two passes to allow for proper duplicate-argument suppression.
2217 ac_configure_args=
2218 ac_configure_args0=
2219 ac_configure_args1=
2220 ac_must_keep_next=false
2221 for ac_pass in 1 2
2222 do
2223 for ac_arg
2224 do
2225 case $ac_arg in
2226 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2228 | -silent | --silent | --silen | --sile | --sil)
2229 continue ;;
2230 *\'*)
2231 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2232 esac
2233 case $ac_pass in
2234 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2235 2)
2236 as_fn_append ac_configure_args1 " '$ac_arg'"
2237 if test $ac_must_keep_next = true; then
2238 ac_must_keep_next=false # Got value, back to normal.
2239 else
2240 case $ac_arg in
2241 *=* | --config-cache | -C | -disable-* | --disable-* \
2242 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2243 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2244 | -with-* | --with-* | -without-* | --without-* | --x)
2245 case "$ac_configure_args0 " in
2246 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2247 esac
2248 ;;
2249 -* ) ac_must_keep_next=true ;;
2250 esac
2251 fi
2252 as_fn_append ac_configure_args " '$ac_arg'"
2253 ;;
2254 esac
2255 done
2256 done
2257 { ac_configure_args0=; unset ac_configure_args0;}
2258 { ac_configure_args1=; unset ac_configure_args1;}
2259
2260 # When interrupted or exit'd, cleanup temporary files, and complete
2261 # config.log. We remove comments because anyway the quotes in there
2262 # would cause problems or look ugly.
2263 # WARNING: Use '\'' to represent an apostrophe within the trap.
2264 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2265 trap 'exit_status=$?
2266 # Sanitize IFS.
2267 IFS=" "" $as_nl"
2268 # Save into config.log some information that might help in debugging.
2269 {
2270 echo
2271
2272 printf "%s\n" "## ---------------- ##
2273 ## Cache variables. ##
2274 ## ---------------- ##"
2275 echo
2276 # The following way of writing the cache mishandles newlines in values,
2277 (
2278 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2279 eval ac_val=\$$ac_var
2280 case $ac_val in #(
2281 *${as_nl}*)
2282 case $ac_var in #(
2283 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2284 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2285 esac
2286 case $ac_var in #(
2287 _ | IFS | as_nl) ;; #(
2288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2289 *) { eval $ac_var=; unset $ac_var;} ;;
2290 esac ;;
2291 esac
2292 done
2293 (set) 2>&1 |
2294 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2295 *${as_nl}ac_space=\ *)
2296 sed -n \
2297 "s/'\''/'\''\\\\'\'''\''/g;
2298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2299 ;; #(
2300 *)
2301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2302 ;;
2303 esac |
2304 sort
2305 )
2306 echo
2307
2308 printf "%s\n" "## ----------------- ##
2309 ## Output variables. ##
2310 ## ----------------- ##"
2311 echo
2312 for ac_var in $ac_subst_vars
2313 do
2314 eval ac_val=\$$ac_var
2315 case $ac_val in
2316 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 esac
2318 printf "%s\n" "$ac_var='\''$ac_val'\''"
2319 done | sort
2320 echo
2321
2322 if test -n "$ac_subst_files"; then
2323 printf "%s\n" "## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##"
2326 echo
2327 for ac_var in $ac_subst_files
2328 do
2329 eval ac_val=\$$ac_var
2330 case $ac_val in
2331 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332 esac
2333 printf "%s\n" "$ac_var='\''$ac_val'\''"
2334 done | sort
2335 echo
2336 fi
2337
2338 if test -s confdefs.h; then
2339 printf "%s\n" "## ----------- ##
2340 ## confdefs.h. ##
2341 ## ----------- ##"
2342 echo
2343 cat confdefs.h
2344 echo
2345 fi
2346 test "$ac_signal" != 0 &&
2347 printf "%s\n" "$as_me: caught signal $ac_signal"
2348 printf "%s\n" "$as_me: exit $exit_status"
2349 } >&5
2350 rm -f core *.core core.conftest.* &&
2351 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2352 exit $exit_status
2353 ' 0
2354 for ac_signal in 1 2 13 15; do
2355 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2356 done
2357 ac_signal=0
2358
2359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2360 rm -f -r conftest* confdefs.h
2361
2362 printf "%s\n" "/* confdefs.h */" > confdefs.h
2363
2364 # Predefined preprocessor variables.
2365
2366 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2367
2368 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2369
2370 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2371
2372 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2373
2374 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2375
2376 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2377
2378
2379 # Let the site file select an alternate cache file if it wants to.
2380 # Prefer an explicitly selected file to automatically selected ones.
2381 if test -n "$CONFIG_SITE"; then
2382 ac_site_files="$CONFIG_SITE"
2383 elif test "x$prefix" != xNONE; then
2384 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2385 else
2386 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2387 fi
2388
2389 for ac_site_file in $ac_site_files
2390 do
2391 case $ac_site_file in #(
2392 */*) :
2393 ;; #(
2394 *) :
2395 ac_site_file=./$ac_site_file ;;
2396 esac
2397 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2399 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2400 sed 's/^/| /' "$ac_site_file" >&5
2401 . "$ac_site_file" \
2402 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2403 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2404 as_fn_error $? "failed to load site script $ac_site_file
2405 See \`config.log' for more details" "$LINENO" 5; }
2406 fi
2407 done
2408
2409 if test -r "$cache_file"; then
2410 # Some versions of bash will fail to source /dev/null (special files
2411 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2412 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2414 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2415 case $cache_file in
2416 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2417 *) . "./$cache_file";;
2418 esac
2419 fi
2420 else
2421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2422 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2423 >$cache_file
2424 fi
2425
2426 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2427 # Test code for whether the C compiler supports C89 (global declarations)
2428 ac_c_conftest_c89_globals='
2429 /* Does the compiler advertise C89 conformance?
2430 Do not test the value of __STDC__, because some compilers set it to 0
2431 while being otherwise adequately conformant. */
2432 #if !defined __STDC__
2433 # error "Compiler does not advertise C89 conformance"
2434 #endif
2435
2436 #include <stddef.h>
2437 #include <stdarg.h>
2438 struct stat;
2439 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2440 struct buf { int x; };
2441 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2442 static char *e (p, i)
2443 char **p;
2444 int i;
2445 {
2446 return p[i];
2447 }
2448 static char *f (char * (*g) (char **, int), char **p, ...)
2449 {
2450 char *s;
2451 va_list v;
2452 va_start (v,p);
2453 s = g (p, va_arg (v,int));
2454 va_end (v);
2455 return s;
2456 }
2457
2458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2459 function prototypes and stuff, but not \xHH hex character constants.
2460 These do not provoke an error unfortunately, instead are silently treated
2461 as an "x". The following induces an error, until -std is added to get
2462 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2463 array size at least. It is necessary to write \x00 == 0 to get something
2464 that is true only with -std. */
2465 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2466
2467 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2468 inside strings and character constants. */
2469 #define FOO(x) '\''x'\''
2470 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2471
2472 int test (int i, double x);
2473 struct s1 {int (*f) (int a);};
2474 struct s2 {int (*f) (double a);};
2475 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2476 int, int);'
2477
2478 # Test code for whether the C compiler supports C89 (body of main).
2479 ac_c_conftest_c89_main='
2480 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2481 '
2482
2483 # Test code for whether the C compiler supports C99 (global declarations)
2484 ac_c_conftest_c99_globals='
2485 // Does the compiler advertise C99 conformance?
2486 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2487 # error "Compiler does not advertise C99 conformance"
2488 #endif
2489
2490 #include <stdbool.h>
2491 extern int puts (const char *);
2492 extern int printf (const char *, ...);
2493 extern int dprintf (int, const char *, ...);
2494 extern void *malloc (size_t);
2495
2496 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2497 // dprintf is used instead of fprintf to avoid needing to declare
2498 // FILE and stderr.
2499 #define debug(...) dprintf (2, __VA_ARGS__)
2500 #define showlist(...) puts (#__VA_ARGS__)
2501 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2502 static void
2503 test_varargs_macros (void)
2504 {
2505 int x = 1234;
2506 int y = 5678;
2507 debug ("Flag");
2508 debug ("X = %d\n", x);
2509 showlist (The first, second, and third items.);
2510 report (x>y, "x is %d but y is %d", x, y);
2511 }
2512
2513 // Check long long types.
2514 #define BIG64 18446744073709551615ull
2515 #define BIG32 4294967295ul
2516 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2517 #if !BIG_OK
2518 #error "your preprocessor is broken"
2519 #endif
2520 #if BIG_OK
2521 #else
2522 #error "your preprocessor is broken"
2523 #endif
2524 static long long int bignum = -9223372036854775807LL;
2525 static unsigned long long int ubignum = BIG64;
2526
2527 struct incomplete_array
2528 {
2529 int datasize;
2530 double data[];
2531 };
2532
2533 struct named_init {
2534 int number;
2535 const wchar_t *name;
2536 double average;
2537 };
2538
2539 typedef const char *ccp;
2540
2541 static inline int
2542 test_restrict (ccp restrict text)
2543 {
2544 // See if C++-style comments work.
2545 // Iterate through items via the restricted pointer.
2546 // Also check for declarations in for loops.
2547 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2548 continue;
2549 return 0;
2550 }
2551
2552 // Check varargs and va_copy.
2553 static bool
2554 test_varargs (const char *format, ...)
2555 {
2556 va_list args;
2557 va_start (args, format);
2558 va_list args_copy;
2559 va_copy (args_copy, args);
2560
2561 const char *str = "";
2562 int number = 0;
2563 float fnumber = 0;
2564
2565 while (*format)
2566 {
2567 switch (*format++)
2568 {
2569 case '\''s'\'': // string
2570 str = va_arg (args_copy, const char *);
2571 break;
2572 case '\''d'\'': // int
2573 number = va_arg (args_copy, int);
2574 break;
2575 case '\''f'\'': // float
2576 fnumber = va_arg (args_copy, double);
2577 break;
2578 default:
2579 break;
2580 }
2581 }
2582 va_end (args_copy);
2583 va_end (args);
2584
2585 return *str && number && fnumber;
2586 }
2587 '
2588
2589 # Test code for whether the C compiler supports C99 (body of main).
2590 ac_c_conftest_c99_main='
2591 // Check bool.
2592 _Bool success = false;
2593 success |= (argc != 0);
2594
2595 // Check restrict.
2596 if (test_restrict ("String literal") == 0)
2597 success = true;
2598 char *restrict newvar = "Another string";
2599
2600 // Check varargs.
2601 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2602 test_varargs_macros ();
2603
2604 // Check flexible array members.
2605 struct incomplete_array *ia =
2606 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2607 ia->datasize = 10;
2608 for (int i = 0; i < ia->datasize; ++i)
2609 ia->data[i] = i * 1.234;
2610
2611 // Check named initializers.
2612 struct named_init ni = {
2613 .number = 34,
2614 .name = L"Test wide string",
2615 .average = 543.34343,
2616 };
2617
2618 ni.number = 58;
2619
2620 int dynamic_array[ni.number];
2621 dynamic_array[0] = argv[0][0];
2622 dynamic_array[ni.number - 1] = 543;
2623
2624 // work around unused variable warnings
2625 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2626 || dynamic_array[ni.number - 1] != 543);
2627 '
2628
2629 # Test code for whether the C compiler supports C11 (global declarations)
2630 ac_c_conftest_c11_globals='
2631 // Does the compiler advertise C11 conformance?
2632 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2633 # error "Compiler does not advertise C11 conformance"
2634 #endif
2635
2636 // Check _Alignas.
2637 char _Alignas (double) aligned_as_double;
2638 char _Alignas (0) no_special_alignment;
2639 extern char aligned_as_int;
2640 char _Alignas (0) _Alignas (int) aligned_as_int;
2641
2642 // Check _Alignof.
2643 enum
2644 {
2645 int_alignment = _Alignof (int),
2646 int_array_alignment = _Alignof (int[100]),
2647 char_alignment = _Alignof (char)
2648 };
2649 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2650
2651 // Check _Noreturn.
2652 int _Noreturn does_not_return (void) { for (;;) continue; }
2653
2654 // Check _Static_assert.
2655 struct test_static_assert
2656 {
2657 int x;
2658 _Static_assert (sizeof (int) <= sizeof (long int),
2659 "_Static_assert does not work in struct");
2660 long int y;
2661 };
2662
2663 // Check UTF-8 literals.
2664 #define u8 syntax error!
2665 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2666
2667 // Check duplicate typedefs.
2668 typedef long *long_ptr;
2669 typedef long int *long_ptr;
2670 typedef long_ptr long_ptr;
2671
2672 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2673 struct anonymous
2674 {
2675 union {
2676 struct { int i; int j; };
2677 struct { int k; long int l; } w;
2678 };
2679 int m;
2680 } v1;
2681 '
2682
2683 # Test code for whether the C compiler supports C11 (body of main).
2684 ac_c_conftest_c11_main='
2685 _Static_assert ((offsetof (struct anonymous, i)
2686 == offsetof (struct anonymous, w.k)),
2687 "Anonymous union alignment botch");
2688 v1.i = 2;
2689 v1.w.k = 5;
2690 ok |= v1.i != 5;
2691 '
2692
2693 # Test code for whether the C compiler supports C11 (complete).
2694 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2695 ${ac_c_conftest_c99_globals}
2696 ${ac_c_conftest_c11_globals}
2697
2698 int
2699 main (int argc, char **argv)
2700 {
2701 int ok = 0;
2702 ${ac_c_conftest_c89_main}
2703 ${ac_c_conftest_c99_main}
2704 ${ac_c_conftest_c11_main}
2705 return ok;
2706 }
2707 "
2708
2709 # Test code for whether the C compiler supports C99 (complete).
2710 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2711 ${ac_c_conftest_c99_globals}
2712
2713 int
2714 main (int argc, char **argv)
2715 {
2716 int ok = 0;
2717 ${ac_c_conftest_c89_main}
2718 ${ac_c_conftest_c99_main}
2719 return ok;
2720 }
2721 "
2722
2723 # Test code for whether the C compiler supports C89 (complete).
2724 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2725
2726 int
2727 main (int argc, char **argv)
2728 {
2729 int ok = 0;
2730 ${ac_c_conftest_c89_main}
2731 return ok;
2732 }
2733 "
2734
2735 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2736 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2737 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2738 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2739 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2740 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2741 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2742 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2743 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2744 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2745 # Test code for whether the C++ compiler supports C++98 (global declarations)
2746 ac_cxx_conftest_cxx98_globals='
2747 // Does the compiler advertise C++98 conformance?
2748 #if !defined __cplusplus || __cplusplus < 199711L
2749 # error "Compiler does not advertise C++98 conformance"
2750 #endif
2751
2752 // These inclusions are to reject old compilers that
2753 // lack the unsuffixed header files.
2754 #include <cstdlib>
2755 #include <exception>
2756
2757 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2758 extern void assert (int);
2759 namespace std {
2760 extern int strcmp (const char *, const char *);
2761 }
2762
2763 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2764 using std::exception;
2765 using std::strcmp;
2766
2767 namespace {
2768
2769 void test_exception_syntax()
2770 {
2771 try {
2772 throw "test";
2773 } catch (const char *s) {
2774 // Extra parentheses suppress a warning when building autoconf itself,
2775 // due to lint rules shared with more typical C programs.
2776 assert (!(strcmp) (s, "test"));
2777 }
2778 }
2779
2780 template <typename T> struct test_template
2781 {
2782 T const val;
2783 explicit test_template(T t) : val(t) {}
2784 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2785 };
2786
2787 } // anonymous namespace
2788 '
2789
2790 # Test code for whether the C++ compiler supports C++98 (body of main)
2791 ac_cxx_conftest_cxx98_main='
2792 assert (argc);
2793 assert (! argv[0]);
2794 {
2795 test_exception_syntax ();
2796 test_template<double> tt (2.0);
2797 assert (tt.add (4) == 6.0);
2798 assert (true && !false);
2799 }
2800 '
2801
2802 # Test code for whether the C++ compiler supports C++11 (global declarations)
2803 ac_cxx_conftest_cxx11_globals='
2804 // Does the compiler advertise C++ 2011 conformance?
2805 #if !defined __cplusplus || __cplusplus < 201103L
2806 # error "Compiler does not advertise C++11 conformance"
2807 #endif
2808
2809 namespace cxx11test
2810 {
2811 constexpr int get_val() { return 20; }
2812
2813 struct testinit
2814 {
2815 int i;
2816 double d;
2817 };
2818
2819 class delegate
2820 {
2821 public:
2822 delegate(int n) : n(n) {}
2823 delegate(): delegate(2354) {}
2824
2825 virtual int getval() { return this->n; };
2826 protected:
2827 int n;
2828 };
2829
2830 class overridden : public delegate
2831 {
2832 public:
2833 overridden(int n): delegate(n) {}
2834 virtual int getval() override final { return this->n * 2; }
2835 };
2836
2837 class nocopy
2838 {
2839 public:
2840 nocopy(int i): i(i) {}
2841 nocopy() = default;
2842 nocopy(const nocopy&) = delete;
2843 nocopy & operator=(const nocopy&) = delete;
2844 private:
2845 int i;
2846 };
2847
2848 // for testing lambda expressions
2849 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2850 {
2851 return f(v);
2852 }
2853
2854 // for testing variadic templates and trailing return types
2855 template <typename V> auto sum(V first) -> V
2856 {
2857 return first;
2858 }
2859 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2860 {
2861 return first + sum(rest...);
2862 }
2863 }
2864 '
2865
2866 # Test code for whether the C++ compiler supports C++11 (body of main)
2867 ac_cxx_conftest_cxx11_main='
2868 {
2869 // Test auto and decltype
2870 auto a1 = 6538;
2871 auto a2 = 48573953.4;
2872 auto a3 = "String literal";
2873
2874 int total = 0;
2875 for (auto i = a3; *i; ++i) { total += *i; }
2876
2877 decltype(a2) a4 = 34895.034;
2878 }
2879 {
2880 // Test constexpr
2881 short sa[cxx11test::get_val()] = { 0 };
2882 }
2883 {
2884 // Test initializer lists
2885 cxx11test::testinit il = { 4323, 435234.23544 };
2886 }
2887 {
2888 // Test range-based for
2889 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2890 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2891 for (auto &x : array) { x += 23; }
2892 }
2893 {
2894 // Test lambda expressions
2895 using cxx11test::eval;
2896 assert (eval ([](int x) { return x*2; }, 21) == 42);
2897 double d = 2.0;
2898 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2899 assert (d == 5.0);
2900 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2901 assert (d == 5.0);
2902 }
2903 {
2904 // Test use of variadic templates
2905 using cxx11test::sum;
2906 auto a = sum(1);
2907 auto b = sum(1, 2);
2908 auto c = sum(1.0, 2.0, 3.0);
2909 }
2910 {
2911 // Test constructor delegation
2912 cxx11test::delegate d1;
2913 cxx11test::delegate d2();
2914 cxx11test::delegate d3(45);
2915 }
2916 {
2917 // Test override and final
2918 cxx11test::overridden o1(55464);
2919 }
2920 {
2921 // Test nullptr
2922 char *c = nullptr;
2923 }
2924 {
2925 // Test template brackets
2926 test_template<::test_template<int>> v(test_template<int>(12));
2927 }
2928 {
2929 // Unicode literals
2930 char const *utf8 = u8"UTF-8 string \u2500";
2931 char16_t const *utf16 = u"UTF-8 string \u2500";
2932 char32_t const *utf32 = U"UTF-32 string \u2500";
2933 }
2934 '
2935
2936 # Test code for whether the C compiler supports C++11 (complete).
2937 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2938 ${ac_cxx_conftest_cxx11_globals}
2939
2940 int
2941 main (int argc, char **argv)
2942 {
2943 int ok = 0;
2944 ${ac_cxx_conftest_cxx98_main}
2945 ${ac_cxx_conftest_cxx11_main}
2946 return ok;
2947 }
2948 "
2949
2950 # Test code for whether the C compiler supports C++98 (complete).
2951 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2952 int
2953 main (int argc, char **argv)
2954 {
2955 int ok = 0;
2956 ${ac_cxx_conftest_cxx98_main}
2957 return ok;
2958 }
2959 "
2960
2961
2962 # Auxiliary files required by this configure script.
2963 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2964
2965 # Locations in which to look for auxiliary files.
2966 ac_aux_dir_candidates="${srcdir}/build-aux"
2967
2968 # Search for a directory containing all of the required auxiliary files,
2969 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2970 # If we don't find one directory that contains all the files we need,
2971 # we report the set of missing files from the *first* directory in
2972 # $ac_aux_dir_candidates and give up.
2973 ac_missing_aux_files=""
2974 ac_first_candidate=:
2975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 as_found=false
2978 for as_dir in $ac_aux_dir_candidates
2979 do
2980 IFS=$as_save_IFS
2981 case $as_dir in #(((
2982 '') as_dir=./ ;;
2983 */) ;;
2984 *) as_dir=$as_dir/ ;;
2985 esac
2986 as_found=:
2987
2988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2989 ac_aux_dir_found=yes
2990 ac_install_sh=
2991 for ac_aux in $ac_aux_files
2992 do
2993 # As a special case, if "install-sh" is required, that requirement
2994 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2995 # and $ac_install_sh is set appropriately for whichever one is found.
2996 if test x"$ac_aux" = x"install-sh"
2997 then
2998 if test -f "${as_dir}install-sh"; then
2999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3000 ac_install_sh="${as_dir}install-sh -c"
3001 elif test -f "${as_dir}install.sh"; then
3002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3003 ac_install_sh="${as_dir}install.sh -c"
3004 elif test -f "${as_dir}shtool"; then
3005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3006 ac_install_sh="${as_dir}shtool install -c"
3007 else
3008 ac_aux_dir_found=no
3009 if $ac_first_candidate; then
3010 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3011 else
3012 break
3013 fi
3014 fi
3015 else
3016 if test -f "${as_dir}${ac_aux}"; then
3017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3018 else
3019 ac_aux_dir_found=no
3020 if $ac_first_candidate; then
3021 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3022 else
3023 break
3024 fi
3025 fi
3026 fi
3027 done
3028 if test "$ac_aux_dir_found" = yes; then
3029 ac_aux_dir="$as_dir"
3030 break
3031 fi
3032 ac_first_candidate=false
3033
3034 as_found=false
3035 done
3036 IFS=$as_save_IFS
3037 if $as_found
3038 then :
3039
3040 else $as_nop
3041 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3042 fi
3043
3044
3045 # These three variables are undocumented and unsupported,
3046 # and are intended to be withdrawn in a future Autoconf release.
3047 # They can cause serious problems if a builder's source tree is in a directory
3048 # whose full name contains unusual characters.
3049 if test -f "${ac_aux_dir}config.guess"; then
3050 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3051 fi
3052 if test -f "${ac_aux_dir}config.sub"; then
3053 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3054 fi
3055 if test -f "$ac_aux_dir/configure"; then
3056 ac_configure="$SHELL ${ac_aux_dir}configure"
3057 fi
3058
3059 # Check that the precious variables saved in the cache have kept the same
3060 # value.
3061 ac_cache_corrupted=false
3062 for ac_var in $ac_precious_vars; do
3063 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3064 eval ac_new_set=\$ac_env_${ac_var}_set
3065 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3066 eval ac_new_val=\$ac_env_${ac_var}_value
3067 case $ac_old_set,$ac_new_set in
3068 set,)
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3070 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3071 ac_cache_corrupted=: ;;
3072 ,set)
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3074 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3075 ac_cache_corrupted=: ;;
3076 ,);;
3077 *)
3078 if test "x$ac_old_val" != "x$ac_new_val"; then
3079 # differences in whitespace do not lead to failure.
3080 ac_old_val_w=`echo x $ac_old_val`
3081 ac_new_val_w=`echo x $ac_new_val`
3082 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3084 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3085 ac_cache_corrupted=:
3086 else
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3088 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3089 eval $ac_var=\$ac_old_val
3090 fi
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3092 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3094 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3095 fi;;
3096 esac
3097 # Pass precious variables to config.status.
3098 if test "$ac_new_set" = set; then
3099 case $ac_new_val in
3100 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3101 *) ac_arg=$ac_var=$ac_new_val ;;
3102 esac
3103 case " $ac_configure_args " in
3104 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3105 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3106 esac
3107 fi
3108 done
3109 if $ac_cache_corrupted; then
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3111 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3113 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3114 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3115 and start over" "$LINENO" 5
3116 fi
3117 ## -------------------- ##
3118 ## Main body of script. ##
3119 ## -------------------- ##
3120
3121 ac_ext=c
3122 ac_cpp='$CPP $CPPFLAGS'
3123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126
3127
3128
3129 # we do want 2.70, but distributions are not ready yet
3130 #AC_PREREQ([2.70])
3131
3132
3133
3134 ac_config_files="$ac_config_files Makefile libopenmpt/libopenmpt.pc Doxyfile"
3135
3136
3137 am__api_version='1.16'
3138
3139
3140
3141 # Find a good install program. We prefer a C program (faster),
3142 # so one script is as good as another. But avoid the broken or
3143 # incompatible versions:
3144 # SysV /etc/install, /usr/sbin/install
3145 # SunOS /usr/etc/install
3146 # IRIX /sbin/install
3147 # AIX /bin/install
3148 # AmigaOS /C/install, which installs bootblocks on floppy discs
3149 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3150 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3151 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3152 # OS/2's system install, which has a completely different semantic
3153 # ./install, which can be erroneously created by make from ./install.sh.
3154 # Reject install programs that cannot install multiple files.
3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3156 printf %s "checking for a BSD-compatible install... " >&6; }
3157 if test -z "$INSTALL"; then
3158 if test ${ac_cv_path_install+y}
3159 then :
3160 printf %s "(cached) " >&6
3161 else $as_nop
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 case $as_dir in #(((
3167 '') as_dir=./ ;;
3168 */) ;;
3169 *) as_dir=$as_dir/ ;;
3170 esac
3171 # Account for fact that we put trailing slashes in our PATH walk.
3172 case $as_dir in #((
3173 ./ | /[cC]/* | \
3174 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3175 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3176 /usr/ucb/* ) ;;
3177 *)
3178 # OSF1 and SCO ODT 3.0 have their own names for install.
3179 # Don't use installbsd from OSF since it installs stuff as root
3180 # by default.
3181 for ac_prog in ginstall scoinst install; do
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3184 if test $ac_prog = install &&
3185 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3186 # AIX install. It has an incompatible calling convention.
3187 :
3188 elif test $ac_prog = install &&
3189 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3190 # program-specific install script used by HP pwplus--don't use.
3191 :
3192 else
3193 rm -rf conftest.one conftest.two conftest.dir
3194 echo one > conftest.one
3195 echo two > conftest.two
3196 mkdir conftest.dir
3197 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3198 test -s conftest.one && test -s conftest.two &&
3199 test -s conftest.dir/conftest.one &&
3200 test -s conftest.dir/conftest.two
3201 then
3202 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3203 break 3
3204 fi
3205 fi
3206 fi
3207 done
3208 done
3209 ;;
3210 esac
3211
3212 done
3213 IFS=$as_save_IFS
3214
3215 rm -rf conftest.one conftest.two conftest.dir
3216
3217 fi
3218 if test ${ac_cv_path_install+y}; then
3219 INSTALL=$ac_cv_path_install
3220 else
3221 # As a last resort, use the slow shell script. Don't cache a
3222 # value for INSTALL within a source directory, because that will
3223 # break other packages using the cache if that directory is
3224 # removed, or if the value is a relative name.
3225 INSTALL=$ac_install_sh
3226 fi
3227 fi
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3229 printf "%s\n" "$INSTALL" >&6; }
3230
3231 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3232 # It thinks the first close brace ends the variable substitution.
3233 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3234
3235 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3236
3237 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3238
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3240 printf %s "checking whether build environment is sane... " >&6; }
3241 # Reject unsafe characters in $srcdir or the absolute working directory
3242 # name. Accept space and tab only in the latter.
3243 am_lf='
3244 '
3245 case `pwd` in
3246 *[\\\"\#\$\&\'\`$am_lf]*)
3247 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3248 esac
3249 case $srcdir in
3250 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3251 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3252 esac
3253
3254 # Do 'set' in a subshell so we don't clobber the current shell's
3255 # arguments. Must try -L first in case configure is actually a
3256 # symlink; some systems play weird games with the mod time of symlinks
3257 # (eg FreeBSD returns the mod time of the symlink's containing
3258 # directory).
3259 if (
3260 am_has_slept=no
3261 for am_try in 1 2; do
3262 echo "timestamp, slept: $am_has_slept" > conftest.file
3263 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3264 if test "$*" = "X"; then
3265 # -L didn't work.
3266 set X `ls -t "$srcdir/configure" conftest.file`
3267 fi
3268 if test "$*" != "X $srcdir/configure conftest.file" \
3269 && test "$*" != "X conftest.file $srcdir/configure"; then
3270
3271 # If neither matched, then we have a broken ls. This can happen
3272 # if, for instance, CONFIG_SHELL is bash and it inherits a
3273 # broken ls alias from the environment. This has actually
3274 # happened. Such a system could not be considered "sane".
3275 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3276 alias in your environment" "$LINENO" 5
3277 fi
3278 if test "$2" = conftest.file || test $am_try -eq 2; then
3279 break
3280 fi
3281 # Just in case.
3282 sleep 1
3283 am_has_slept=yes
3284 done
3285 test "$2" = conftest.file
3286 )
3287 then
3288 # Ok.
3289 :
3290 else
3291 as_fn_error $? "newly created file is older than distributed files!
3292 Check your system clock" "$LINENO" 5
3293 fi
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 printf "%s\n" "yes" >&6; }
3296 # If we didn't sleep, we still need to ensure time stamps of config.status and
3297 # generated files are strictly newer.
3298 am_sleep_pid=
3299 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3300 ( sleep 1 ) &
3301 am_sleep_pid=$!
3302 fi
3303
3304 rm -f conftest.file
3305
3306 test "$program_prefix" != NONE &&
3307 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3308 # Use a double $ so make ignores it.
3309 test "$program_suffix" != NONE &&
3310 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3311 # Double any \ or $.
3312 # By default was `s,x,x', remove it if useless.
3313 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3314 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3315
3316
3317 # Expand $ac_aux_dir to an absolute path.
3318 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3319
3320
3321 if test x"${MISSING+set}" != xset; then
3322 MISSING="\${SHELL} '$am_aux_dir/missing'"
3323 fi
3324 # Use eval to expand $SHELL
3325 if eval "$MISSING --is-lightweight"; then
3326 am_missing_run="$MISSING "
3327 else
3328 am_missing_run=
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3330 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3331 fi
3332
3333 if test x"${install_sh+set}" != xset; then
3334 case $am_aux_dir in
3335 *\ * | *\ *)
3336 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3337 *)
3338 install_sh="\${SHELL} $am_aux_dir/install-sh"
3339 esac
3340 fi
3341
3342 # Installed binaries are usually stripped using 'strip' when the user
3343 # run "make install-strip". However 'strip' might not be the right
3344 # tool to use in cross-compilation environments, therefore Automake
3345 # will honor the 'STRIP' environment variable to overrule this program.
3346 if test "$cross_compiling" != no; then
3347 if test -n "$ac_tool_prefix"; then
3348 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3349 set dummy ${ac_tool_prefix}strip; ac_word=$2
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 printf %s "checking for $ac_word... " >&6; }
3352 if test ${ac_cv_prog_STRIP+y}
3353 then :
3354 printf %s "(cached) " >&6
3355 else $as_nop
3356 if test -n "$STRIP"; then
3357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362 IFS=$as_save_IFS
3363 case $as_dir in #(((
3364 '') as_dir=./ ;;
3365 */) ;;
3366 *) as_dir=$as_dir/ ;;
3367 esac
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 fi
3379 fi
3380 STRIP=$ac_cv_prog_STRIP
3381 if test -n "$STRIP"; then
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3383 printf "%s\n" "$STRIP" >&6; }
3384 else
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 printf "%s\n" "no" >&6; }
3387 fi
3388
3389
3390 fi
3391 if test -z "$ac_cv_prog_STRIP"; then
3392 ac_ct_STRIP=$STRIP
3393 # Extract the first word of "strip", so it can be a program name with args.
3394 set dummy strip; ac_word=$2
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 printf %s "checking for $ac_word... " >&6; }
3397 if test ${ac_cv_prog_ac_ct_STRIP+y}
3398 then :
3399 printf %s "(cached) " >&6
3400 else $as_nop
3401 if test -n "$ac_ct_STRIP"; then
3402 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 case $as_dir in #(((
3409 '') as_dir=./ ;;
3410 */) ;;
3411 *) as_dir=$as_dir/ ;;
3412 esac
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3415 ac_cv_prog_ac_ct_STRIP="strip"
3416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3417 break 2
3418 fi
3419 done
3420 done
3421 IFS=$as_save_IFS
3422
3423 fi
3424 fi
3425 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3426 if test -n "$ac_ct_STRIP"; then
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3428 printf "%s\n" "$ac_ct_STRIP" >&6; }
3429 else
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 printf "%s\n" "no" >&6; }
3432 fi
3433
3434 if test "x$ac_ct_STRIP" = x; then
3435 STRIP=":"
3436 else
3437 case $cross_compiling:$ac_tool_warned in
3438 yes:)
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441 ac_tool_warned=yes ;;
3442 esac
3443 STRIP=$ac_ct_STRIP
3444 fi
3445 else
3446 STRIP="$ac_cv_prog_STRIP"
3447 fi
3448
3449 fi
3450 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3451
3452
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3454 printf %s "checking for a race-free mkdir -p... " >&6; }
3455 if test -z "$MKDIR_P"; then
3456 if test ${ac_cv_path_mkdir+y}
3457 then :
3458 printf %s "(cached) " >&6
3459 else $as_nop
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3462 do
3463 IFS=$as_save_IFS
3464 case $as_dir in #(((
3465 '') as_dir=./ ;;
3466 */) ;;
3467 *) as_dir=$as_dir/ ;;
3468 esac
3469 for ac_prog in mkdir gmkdir; do
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3472 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3473 'mkdir ('*'coreutils) '* | \
3474 'BusyBox '* | \
3475 'mkdir (fileutils) '4.1*)
3476 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3477 break 3;;
3478 esac
3479 done
3480 done
3481 done
3482 IFS=$as_save_IFS
3483
3484 fi
3485
3486 test -d ./--version && rmdir ./--version
3487 if test ${ac_cv_path_mkdir+y}; then
3488 MKDIR_P="$ac_cv_path_mkdir -p"
3489 else
3490 # As a last resort, use the slow shell script. Don't cache a
3491 # value for MKDIR_P within a source directory, because that will
3492 # break other packages using the cache if that directory is
3493 # removed, or if the value is a relative name.
3494 MKDIR_P="$ac_install_sh -d"
3495 fi
3496 fi
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3498 printf "%s\n" "$MKDIR_P" >&6; }
3499
3500 for ac_prog in gawk mawk nawk awk
3501 do
3502 # Extract the first word of "$ac_prog", so it can be a program name with args.
3503 set dummy $ac_prog; ac_word=$2
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 printf %s "checking for $ac_word... " >&6; }
3506 if test ${ac_cv_prog_AWK+y}
3507 then :
3508 printf %s "(cached) " >&6
3509 else $as_nop
3510 if test -n "$AWK"; then
3511 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516 IFS=$as_save_IFS
3517 case $as_dir in #(((
3518 '') as_dir=./ ;;
3519 */) ;;
3520 *) as_dir=$as_dir/ ;;
3521 esac
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3524 ac_cv_prog_AWK="$ac_prog"
3525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3526 break 2
3527 fi
3528 done
3529 done
3530 IFS=$as_save_IFS
3531
3532 fi
3533 fi
3534 AWK=$ac_cv_prog_AWK
3535 if test -n "$AWK"; then
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3537 printf "%s\n" "$AWK" >&6; }
3538 else
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 printf "%s\n" "no" >&6; }
3541 fi
3542
3543
3544 test -n "$AWK" && break
3545 done
3546
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3548 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3549 set x ${MAKE-make}
3550 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3551 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3552 then :
3553 printf %s "(cached) " >&6
3554 else $as_nop
3555 cat >conftest.make <<\_ACEOF
3556 SHELL = /bin/sh
3557 all:
3558 @echo '@@@%%%=$(MAKE)=@@@%%%'
3559 _ACEOF
3560 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3561 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3562 *@@@%%%=?*=@@@%%%*)
3563 eval ac_cv_prog_make_${ac_make}_set=yes;;
3564 *)
3565 eval ac_cv_prog_make_${ac_make}_set=no;;
3566 esac
3567 rm -f conftest.make
3568 fi
3569 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3571 printf "%s\n" "yes" >&6; }
3572 SET_MAKE=
3573 else
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 printf "%s\n" "no" >&6; }
3576 SET_MAKE="MAKE=${MAKE-make}"
3577 fi
3578
3579 rm -rf .tst 2>/dev/null
3580 mkdir .tst 2>/dev/null
3581 if test -d .tst; then
3582 am__leading_dot=.
3583 else
3584 am__leading_dot=_
3585 fi
3586 rmdir .tst 2>/dev/null
3587
3588 # Check whether --enable-silent-rules was given.
3589 if test ${enable_silent_rules+y}
3590 then :
3591 enableval=$enable_silent_rules;
3592 fi
3593
3594 case $enable_silent_rules in # (((
3595 yes) AM_DEFAULT_VERBOSITY=0;;
3596 no) AM_DEFAULT_VERBOSITY=1;;
3597 *) AM_DEFAULT_VERBOSITY=1;;
3598 esac
3599 am_make=${MAKE-make}
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3601 printf %s "checking whether $am_make supports nested variables... " >&6; }
3602 if test ${am_cv_make_support_nested_variables+y}
3603 then :
3604 printf %s "(cached) " >&6
3605 else $as_nop
3606 if printf "%s\n" 'TRUE=$(BAR$(V))
3607 BAR0=false
3608 BAR1=true
3609 V=1
3610 am__doit:
3611 @$(TRUE)
3612 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3613 am_cv_make_support_nested_variables=yes
3614 else
3615 am_cv_make_support_nested_variables=no
3616 fi
3617 fi
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3619 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3620 if test $am_cv_make_support_nested_variables = yes; then
3621 AM_V='$(V)'
3622 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3623 else
3624 AM_V=$AM_DEFAULT_VERBOSITY
3625 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3626 fi
3627 AM_BACKSLASH='\'
3628
3629 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3630 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3631 # is not polluted with repeated "-I."
3632 am__isrc=' -I$(srcdir)'
3633 # test to see if srcdir already configured
3634 if test -f $srcdir/config.status; then
3635 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3636 fi
3637 fi
3638
3639 # test whether we have cygpath
3640 if test -z "$CYGPATH_W"; then
3641 if (cygpath --version) >/dev/null 2>/dev/null; then
3642 CYGPATH_W='cygpath -w'
3643 else
3644 CYGPATH_W=echo
3645 fi
3646 fi
3647
3648
3649 # Define the identity of the package.
3650 PACKAGE='libopenmpt'
3651 VERSION='0.8.7+release.autotools'
3652
3653
3654 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3655
3656
3657 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3658
3659 # Some tools Automake needs.
3660
3661 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3662
3663
3664 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3665
3666
3667 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3668
3669
3670 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3671
3672
3673 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3674
3675 # For better backward compatibility. To be removed once Automake 1.9.x
3676 # dies out for good. For more background, see:
3677 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3678 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3679 mkdir_p='$(MKDIR_P)'
3680
3681 # We need awk for the "check" target (and possibly the TAP driver). The
3682 # system "awk" is bad on some platforms.
3683 # Always define AMTAR for backward compatibility. Yes, it's still used
3684 # in the wild :-( We should find a proper way to deprecate it ...
3685 AMTAR='$${TAR-tar}'
3686
3687
3688 # We'll loop over all known methods to create a tar archive until one works.
3689 _am_tools='gnutar pax cpio none'
3690
3691 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3692
3693
3694
3695
3696
3697 # Variables for tags utilities; see am/tags.am
3698 if test -z "$CTAGS"; then
3699 CTAGS=ctags
3700 fi
3701
3702 if test -z "$ETAGS"; then
3703 ETAGS=etags
3704 fi
3705
3706 if test -z "$CSCOPE"; then
3707 CSCOPE=cscope
3708 fi
3709
3710
3711
3712 # POSIX will say in a future version that running "rm -f" with no argument
3713 # is OK; and we want to be able to make that assumption in our Makefile
3714 # recipes. So use an aggressive probe to check that the usage we want is
3715 # actually supported "in the wild" to an acceptable degree.
3716 # See automake bug#10828.
3717 # To make any issue more visible, cause the running configure to be aborted
3718 # by default if the 'rm' program in use doesn't match our expectations; the
3719 # user can still override this though.
3720 if rm -f && rm -fr && rm -rf; then : OK; else
3721 cat >&2 <<'END'
3722 Oops!
3723
3724 Your 'rm' program seems unable to run without file operands specified
3725 on the command line, even when the '-f' option is present. This is contrary
3726 to the behaviour of most rm programs out there, and not conforming with
3727 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3728
3729 Please tell [email protected] about your system, including the value
3730 of your $PATH and any error possibly output before this message. This
3731 can help us improve future automake versions.
3732
3733 END
3734 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3735 echo 'Configuration will proceed anyway, since you have set the' >&2
3736 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3737 echo >&2
3738 else
3739 cat >&2 <<'END'
3740 Aborting the configuration process, to ensure you take notice of the issue.
3741
3742 You can download and install GNU coreutils to get an 'rm' implementation
3743 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3744
3745 If you want to complete the configuration process using your problematic
3746 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3747 to "yes", and re-run configure.
3748
3749 END
3750 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3751 fi
3752 fi
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764 DEPDIR="${am__leading_dot}deps"
3765
3766 ac_config_commands="$ac_config_commands depfiles"
3767
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3769 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3770 cat > confinc.mk << 'END'
3771 am__doit:
3772 @echo this is the am__doit target >confinc.out
3773 .PHONY: am__doit
3774 END
3775 am__include="#"
3776 am__quote=
3777 # BSD make does it like this.
3778 echo '.include "confinc.mk" # ignored' > confmf.BSD
3779 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3780 echo 'include confinc.mk # ignored' > confmf.GNU
3781 _am_result=no
3782 for s in GNU BSD; do
3783 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3784 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }
3788 case $?:`cat confinc.out 2>/dev/null` in #(
3789 '0:this is the am__doit target') :
3790 case $s in #(
3791 BSD) :
3792 am__include='.include' am__quote='"' ;; #(
3793 *) :
3794 am__include='include' am__quote='' ;;
3795 esac ;; #(
3796 *) :
3797 ;;
3798 esac
3799 if test "$am__include" != "#"; then
3800 _am_result="yes ($s style)"
3801 break
3802 fi
3803 done
3804 rm -f confinc.* confmf.*
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3806 printf "%s\n" "${_am_result}" >&6; }
3807
3808 # Check whether --enable-dependency-tracking was given.
3809 if test ${enable_dependency_tracking+y}
3810 then :
3811 enableval=$enable_dependency_tracking;
3812 fi
3813
3814 if test "x$enable_dependency_tracking" != xno; then
3815 am_depcomp="$ac_aux_dir/depcomp"
3816 AMDEPBACKSLASH='\'
3817 am__nodep='_no'
3818 fi
3819 if test "x$enable_dependency_tracking" != xno; then
3820 AMDEP_TRUE=
3821 AMDEP_FALSE='#'
3822 else
3823 AMDEP_TRUE='#'
3824 AMDEP_FALSE=
3825 fi
3826
3827
3828 ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833 if test -n "$ac_tool_prefix"; then
3834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3835 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 printf %s "checking for $ac_word... " >&6; }
3838 if test ${ac_cv_prog_CC+y}
3839 then :
3840 printf %s "(cached) " >&6
3841 else $as_nop
3842 if test -n "$CC"; then
3843 ac_cv_prog_CC="$CC" # Let the user override the test.
3844 else
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3847 do
3848 IFS=$as_save_IFS
3849 case $as_dir in #(((
3850 '') as_dir=./ ;;
3851 */) ;;
3852 *) as_dir=$as_dir/ ;;
3853 esac
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3856 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3858 break 2
3859 fi
3860 done
3861 done
3862 IFS=$as_save_IFS
3863
3864 fi
3865 fi
3866 CC=$ac_cv_prog_CC
3867 if test -n "$CC"; then
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3869 printf "%s\n" "$CC" >&6; }
3870 else
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 printf "%s\n" "no" >&6; }
3873 fi
3874
3875
3876 fi
3877 if test -z "$ac_cv_prog_CC"; then
3878 ac_ct_CC=$CC
3879 # Extract the first word of "gcc", so it can be a program name with args.
3880 set dummy gcc; ac_word=$2
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 printf %s "checking for $ac_word... " >&6; }
3883 if test ${ac_cv_prog_ac_ct_CC+y}
3884 then :
3885 printf %s "(cached) " >&6
3886 else $as_nop
3887 if test -n "$ac_ct_CC"; then
3888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3889 else
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3892 do
3893 IFS=$as_save_IFS
3894 case $as_dir in #(((
3895 '') as_dir=./ ;;
3896 */) ;;
3897 *) as_dir=$as_dir/ ;;
3898 esac
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3901 ac_cv_prog_ac_ct_CC="gcc"
3902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3903 break 2
3904 fi
3905 done
3906 done
3907 IFS=$as_save_IFS
3908
3909 fi
3910 fi
3911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3912 if test -n "$ac_ct_CC"; then
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3914 printf "%s\n" "$ac_ct_CC" >&6; }
3915 else
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 printf "%s\n" "no" >&6; }
3918 fi
3919
3920 if test "x$ac_ct_CC" = x; then
3921 CC=""
3922 else
3923 case $cross_compiling:$ac_tool_warned in
3924 yes:)
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3926 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3927 ac_tool_warned=yes ;;
3928 esac
3929 CC=$ac_ct_CC
3930 fi
3931 else
3932 CC="$ac_cv_prog_CC"
3933 fi
3934
3935 if test -z "$CC"; then
3936 if test -n "$ac_tool_prefix"; then
3937 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3938 set dummy ${ac_tool_prefix}cc; ac_word=$2
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 printf %s "checking for $ac_word... " >&6; }
3941 if test ${ac_cv_prog_CC+y}
3942 then :
3943 printf %s "(cached) " >&6
3944 else $as_nop
3945 if test -n "$CC"; then
3946 ac_cv_prog_CC="$CC" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951 IFS=$as_save_IFS
3952 case $as_dir in #(((
3953 '') as_dir=./ ;;
3954 */) ;;
3955 *) as_dir=$as_dir/ ;;
3956 esac
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_CC="${ac_tool_prefix}cc"
3960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963 done
3964 done
3965 IFS=$as_save_IFS
3966
3967 fi
3968 fi
3969 CC=$ac_cv_prog_CC
3970 if test -n "$CC"; then
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972 printf "%s\n" "$CC" >&6; }
3973 else
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 printf "%s\n" "no" >&6; }
3976 fi
3977
3978
3979 fi
3980 fi
3981 if test -z "$CC"; then
3982 # Extract the first word of "cc", so it can be a program name with args.
3983 set dummy cc; ac_word=$2
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 printf %s "checking for $ac_word... " >&6; }
3986 if test ${ac_cv_prog_CC+y}
3987 then :
3988 printf %s "(cached) " >&6
3989 else $as_nop
3990 if test -n "$CC"; then
3991 ac_cv_prog_CC="$CC" # Let the user override the test.
3992 else
3993 ac_prog_rejected=no
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3996 do
3997 IFS=$as_save_IFS
3998 case $as_dir in #(((
3999 '') as_dir=./ ;;
4000 */) ;;
4001 *) as_dir=$as_dir/ ;;
4002 esac
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4005 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4006 ac_prog_rejected=yes
4007 continue
4008 fi
4009 ac_cv_prog_CC="cc"
4010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4011 break 2
4012 fi
4013 done
4014 done
4015 IFS=$as_save_IFS
4016
4017 if test $ac_prog_rejected = yes; then
4018 # We found a bogon in the path, so make sure we never use it.
4019 set dummy $ac_cv_prog_CC
4020 shift
4021 if test $# != 0; then
4022 # We chose a different compiler from the bogus one.
4023 # However, it has the same basename, so the bogon will be chosen
4024 # first if we set CC to just the basename; use the full file name.
4025 shift
4026 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4027 fi
4028 fi
4029 fi
4030 fi
4031 CC=$ac_cv_prog_CC
4032 if test -n "$CC"; then
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 printf "%s\n" "$CC" >&6; }
4035 else
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 printf "%s\n" "no" >&6; }
4038 fi
4039
4040
4041 fi
4042 if test -z "$CC"; then
4043 if test -n "$ac_tool_prefix"; then
4044 for ac_prog in cl.exe
4045 do
4046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 printf %s "checking for $ac_word... " >&6; }
4050 if test ${ac_cv_prog_CC+y}
4051 then :
4052 printf %s "(cached) " >&6
4053 else $as_nop
4054 if test -n "$CC"; then
4055 ac_cv_prog_CC="$CC" # Let the user override the test.
4056 else
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4059 do
4060 IFS=$as_save_IFS
4061 case $as_dir in #(((
4062 '') as_dir=./ ;;
4063 */) ;;
4064 *) as_dir=$as_dir/ ;;
4065 esac
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4068 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4070 break 2
4071 fi
4072 done
4073 done
4074 IFS=$as_save_IFS
4075
4076 fi
4077 fi
4078 CC=$ac_cv_prog_CC
4079 if test -n "$CC"; then
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4081 printf "%s\n" "$CC" >&6; }
4082 else
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084 printf "%s\n" "no" >&6; }
4085 fi
4086
4087
4088 test -n "$CC" && break
4089 done
4090 fi
4091 if test -z "$CC"; then
4092 ac_ct_CC=$CC
4093 for ac_prog in cl.exe
4094 do
4095 # Extract the first word of "$ac_prog", so it can be a program name with args.
4096 set dummy $ac_prog; ac_word=$2
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 printf %s "checking for $ac_word... " >&6; }
4099 if test ${ac_cv_prog_ac_ct_CC+y}
4100 then :
4101 printf %s "(cached) " >&6
4102 else $as_nop
4103 if test -n "$ac_ct_CC"; then
4104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109 IFS=$as_save_IFS
4110 case $as_dir in #(((
4111 '') as_dir=./ ;;
4112 */) ;;
4113 *) as_dir=$as_dir/ ;;
4114 esac
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_ac_ct_CC="$ac_prog"
4118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4119 break 2
4120 fi
4121 done
4122 done
4123 IFS=$as_save_IFS
4124
4125 fi
4126 fi
4127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4128 if test -n "$ac_ct_CC"; then
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4130 printf "%s\n" "$ac_ct_CC" >&6; }
4131 else
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 printf "%s\n" "no" >&6; }
4134 fi
4135
4136
4137 test -n "$ac_ct_CC" && break
4138 done
4139
4140 if test "x$ac_ct_CC" = x; then
4141 CC=""
4142 else
4143 case $cross_compiling:$ac_tool_warned in
4144 yes:)
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4146 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4147 ac_tool_warned=yes ;;
4148 esac
4149 CC=$ac_ct_CC
4150 fi
4151 fi
4152
4153 fi
4154 if test -z "$CC"; then
4155 if test -n "$ac_tool_prefix"; then
4156 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4157 set dummy ${ac_tool_prefix}clang; ac_word=$2
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 printf %s "checking for $ac_word... " >&6; }
4160 if test ${ac_cv_prog_CC+y}
4161 then :
4162 printf %s "(cached) " >&6
4163 else $as_nop
4164 if test -n "$CC"; then
4165 ac_cv_prog_CC="$CC" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170 IFS=$as_save_IFS
4171 case $as_dir in #(((
4172 '') as_dir=./ ;;
4173 */) ;;
4174 *) as_dir=$as_dir/ ;;
4175 esac
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_CC="${ac_tool_prefix}clang"
4179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182 done
4183 done
4184 IFS=$as_save_IFS
4185
4186 fi
4187 fi
4188 CC=$ac_cv_prog_CC
4189 if test -n "$CC"; then
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4191 printf "%s\n" "$CC" >&6; }
4192 else
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 printf "%s\n" "no" >&6; }
4195 fi
4196
4197
4198 fi
4199 if test -z "$ac_cv_prog_CC"; then
4200 ac_ct_CC=$CC
4201 # Extract the first word of "clang", so it can be a program name with args.
4202 set dummy clang; ac_word=$2
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 printf %s "checking for $ac_word... " >&6; }
4205 if test ${ac_cv_prog_ac_ct_CC+y}
4206 then :
4207 printf %s "(cached) " >&6
4208 else $as_nop
4209 if test -n "$ac_ct_CC"; then
4210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215 IFS=$as_save_IFS
4216 case $as_dir in #(((
4217 '') as_dir=./ ;;
4218 */) ;;
4219 *) as_dir=$as_dir/ ;;
4220 esac
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4223 ac_cv_prog_ac_ct_CC="clang"
4224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4225 break 2
4226 fi
4227 done
4228 done
4229 IFS=$as_save_IFS
4230
4231 fi
4232 fi
4233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4234 if test -n "$ac_ct_CC"; then
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4236 printf "%s\n" "$ac_ct_CC" >&6; }
4237 else
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 printf "%s\n" "no" >&6; }
4240 fi
4241
4242 if test "x$ac_ct_CC" = x; then
4243 CC=""
4244 else
4245 case $cross_compiling:$ac_tool_warned in
4246 yes:)
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4248 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4249 ac_tool_warned=yes ;;
4250 esac
4251 CC=$ac_ct_CC
4252 fi
4253 else
4254 CC="$ac_cv_prog_CC"
4255 fi
4256
4257 fi
4258
4259
4260 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4262 as_fn_error $? "no acceptable C compiler found in \$PATH
4263 See \`config.log' for more details" "$LINENO" 5; }
4264
4265 # Provide some information about the compiler.
4266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4267 set X $ac_compile
4268 ac_compiler=$2
4269 for ac_option in --version -v -V -qversion -version; do
4270 { { ac_try="$ac_compiler $ac_option >&5"
4271 case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274 esac
4275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276 printf "%s\n" "$ac_try_echo"; } >&5
4277 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4278 ac_status=$?
4279 if test -s conftest.err; then
4280 sed '10a\
4281 ... rest of stderr output deleted ...
4282 10q' conftest.err >conftest.er1
4283 cat conftest.er1 >&5
4284 fi
4285 rm -f conftest.er1 conftest.err
4286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; }
4288 done
4289
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292
4293 int
4294 main (void)
4295 {
4296
4297 ;
4298 return 0;
4299 }
4300 _ACEOF
4301 ac_clean_files_save=$ac_clean_files
4302 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4303 # Try to create an executable without -o first, disregard a.out.
4304 # It will help us diagnose broken compilers, and finding out an intuition
4305 # of exeext.
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4307 printf %s "checking whether the C compiler works... " >&6; }
4308 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4309
4310 # The possible output files:
4311 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4312
4313 ac_rmfiles=
4314 for ac_file in $ac_files
4315 do
4316 case $ac_file in
4317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4318 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4319 esac
4320 done
4321 rm -f $ac_rmfiles
4322
4323 if { { ac_try="$ac_link_default"
4324 case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327 esac
4328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4329 printf "%s\n" "$ac_try_echo"; } >&5
4330 (eval "$ac_link_default") 2>&5
4331 ac_status=$?
4332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4333 test $ac_status = 0; }
4334 then :
4335 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4336 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4337 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4338 # so that the user can short-circuit this test for compilers unknown to
4339 # Autoconf.
4340 for ac_file in $ac_files ''
4341 do
4342 test -f "$ac_file" || continue
4343 case $ac_file in
4344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4345 ;;
4346 [ab].out )
4347 # We found the default executable, but exeext='' is most
4348 # certainly right.
4349 break;;
4350 *.* )
4351 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4352 then :; else
4353 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4354 fi
4355 # We set ac_cv_exeext here because the later test for it is not
4356 # safe: cross compilers may not add the suffix if given an `-o'
4357 # argument, so we may need to know it at that point already.
4358 # Even if this section looks crufty: it has the advantage of
4359 # actually working.
4360 break;;
4361 * )
4362 break;;
4363 esac
4364 done
4365 test "$ac_cv_exeext" = no && ac_cv_exeext=
4366
4367 else $as_nop
4368 ac_file=''
4369 fi
4370 if test -z "$ac_file"
4371 then :
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 printf "%s\n" "no" >&6; }
4374 printf "%s\n" "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4376
4377 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4378 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4379 as_fn_error 77 "C compiler cannot create executables
4380 See \`config.log' for more details" "$LINENO" 5; }
4381 else $as_nop
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4383 printf "%s\n" "yes" >&6; }
4384 fi
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4386 printf %s "checking for C compiler default output file name... " >&6; }
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4388 printf "%s\n" "$ac_file" >&6; }
4389 ac_exeext=$ac_cv_exeext
4390
4391 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4392 ac_clean_files=$ac_clean_files_save
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4394 printf %s "checking for suffix of executables... " >&6; }
4395 if { { ac_try="$ac_link"
4396 case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4399 esac
4400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4401 printf "%s\n" "$ac_try_echo"; } >&5
4402 (eval "$ac_link") 2>&5
4403 ac_status=$?
4404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4405 test $ac_status = 0; }
4406 then :
4407 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4408 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4409 # work properly (i.e., refer to `conftest.exe'), while it won't with
4410 # `rm'.
4411 for ac_file in conftest.exe conftest conftest.*; do
4412 test -f "$ac_file" || continue
4413 case $ac_file in
4414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4415 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4416 break;;
4417 * ) break;;
4418 esac
4419 done
4420 else $as_nop
4421 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4422 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4423 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4424 See \`config.log' for more details" "$LINENO" 5; }
4425 fi
4426 rm -f conftest conftest$ac_cv_exeext
4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4428 printf "%s\n" "$ac_cv_exeext" >&6; }
4429
4430 rm -f conftest.$ac_ext
4431 EXEEXT=$ac_cv_exeext
4432 ac_exeext=$EXEEXT
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435 #include <stdio.h>
4436 int
4437 main (void)
4438 {
4439 FILE *f = fopen ("conftest.out", "w");
4440 return ferror (f) || fclose (f) != 0;
4441
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 ac_clean_files="$ac_clean_files conftest.out"
4447 # Check that the compiler produces executables we can run. If not, either
4448 # the compiler is broken, or we cross compile.
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4450 printf %s "checking whether we are cross compiling... " >&6; }
4451 if test "$cross_compiling" != yes; then
4452 { { ac_try="$ac_link"
4453 case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458 printf "%s\n" "$ac_try_echo"; } >&5
4459 (eval "$ac_link") 2>&5
4460 ac_status=$?
4461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462 test $ac_status = 0; }
4463 if { ac_try='./conftest$ac_cv_exeext'
4464 { { case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467 esac
4468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4469 printf "%s\n" "$ac_try_echo"; } >&5
4470 (eval "$ac_try") 2>&5
4471 ac_status=$?
4472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473 test $ac_status = 0; }; }; then
4474 cross_compiling=no
4475 else
4476 if test "$cross_compiling" = maybe; then
4477 cross_compiling=yes
4478 else
4479 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4480 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4481 as_fn_error 77 "cannot run C compiled programs.
4482 If you meant to cross compile, use \`--host'.
4483 See \`config.log' for more details" "$LINENO" 5; }
4484 fi
4485 fi
4486 fi
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4488 printf "%s\n" "$cross_compiling" >&6; }
4489
4490 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4491 ac_clean_files=$ac_clean_files_save
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4493 printf %s "checking for suffix of object files... " >&6; }
4494 if test ${ac_cv_objext+y}
4495 then :
4496 printf %s "(cached) " >&6
4497 else $as_nop
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500
4501 int
4502 main (void)
4503 {
4504
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 rm -f conftest.o conftest.obj
4510 if { { ac_try="$ac_compile"
4511 case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514 esac
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 printf "%s\n" "$ac_try_echo"; } >&5
4517 (eval "$ac_compile") 2>&5
4518 ac_status=$?
4519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; }
4521 then :
4522 for ac_file in conftest.o conftest.obj conftest.*; do
4523 test -f "$ac_file" || continue;
4524 case $ac_file in
4525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4527 break;;
4528 esac
4529 done
4530 else $as_nop
4531 printf "%s\n" "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error $? "cannot compute suffix of object files: cannot compile
4537 See \`config.log' for more details" "$LINENO" 5; }
4538 fi
4539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4540 fi
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4542 printf "%s\n" "$ac_cv_objext" >&6; }
4543 OBJEXT=$ac_cv_objext
4544 ac_objext=$OBJEXT
4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4546 printf %s "checking whether the compiler supports GNU C... " >&6; }
4547 if test ${ac_cv_c_compiler_gnu+y}
4548 then :
4549 printf %s "(cached) " >&6
4550 else $as_nop
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553
4554 int
4555 main (void)
4556 {
4557 #ifndef __GNUC__
4558 choke me
4559 #endif
4560
4561 ;
4562 return 0;
4563 }
4564 _ACEOF
4565 if ac_fn_c_try_compile "$LINENO"
4566 then :
4567 ac_compiler_gnu=yes
4568 else $as_nop
4569 ac_compiler_gnu=no
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4572 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4573
4574 fi
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4576 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578
4579 if test $ac_compiler_gnu = yes; then
4580 GCC=yes
4581 else
4582 GCC=
4583 fi
4584 ac_test_CFLAGS=${CFLAGS+y}
4585 ac_save_CFLAGS=$CFLAGS
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4587 printf %s "checking whether $CC accepts -g... " >&6; }
4588 if test ${ac_cv_prog_cc_g+y}
4589 then :
4590 printf %s "(cached) " >&6
4591 else $as_nop
4592 ac_save_c_werror_flag=$ac_c_werror_flag
4593 ac_c_werror_flag=yes
4594 ac_cv_prog_cc_g=no
4595 CFLAGS="-g"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598
4599 int
4600 main (void)
4601 {
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_c_try_compile "$LINENO"
4608 then :
4609 ac_cv_prog_cc_g=yes
4610 else $as_nop
4611 CFLAGS=""
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614
4615 int
4616 main (void)
4617 {
4618
4619 ;
4620 return 0;
4621 }
4622 _ACEOF
4623 if ac_fn_c_try_compile "$LINENO"
4624 then :
4625
4626 else $as_nop
4627 ac_c_werror_flag=$ac_save_c_werror_flag
4628 CFLAGS="-g"
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631
4632 int
4633 main (void)
4634 {
4635
4636 ;
4637 return 0;
4638 }
4639 _ACEOF
4640 if ac_fn_c_try_compile "$LINENO"
4641 then :
4642 ac_cv_prog_cc_g=yes
4643 fi
4644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4645 fi
4646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4647 fi
4648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4649 ac_c_werror_flag=$ac_save_c_werror_flag
4650 fi
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4652 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4653 if test $ac_test_CFLAGS; then
4654 CFLAGS=$ac_save_CFLAGS
4655 elif test $ac_cv_prog_cc_g = yes; then
4656 if test "$GCC" = yes; then
4657 CFLAGS="-g -O2"
4658 else
4659 CFLAGS="-g"
4660 fi
4661 else
4662 if test "$GCC" = yes; then
4663 CFLAGS="-O2"
4664 else
4665 CFLAGS=
4666 fi
4667 fi
4668 ac_prog_cc_stdc=no
4669 if test x$ac_prog_cc_stdc = xno
4670 then :
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4672 printf %s "checking for $CC option to enable C11 features... " >&6; }
4673 if test ${ac_cv_prog_cc_c11+y}
4674 then :
4675 printf %s "(cached) " >&6
4676 else $as_nop
4677 ac_cv_prog_cc_c11=no
4678 ac_save_CC=$CC
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681 $ac_c_conftest_c11_program
4682 _ACEOF
4683 for ac_arg in '' -std=gnu11
4684 do
4685 CC="$ac_save_CC $ac_arg"
4686 if ac_fn_c_try_compile "$LINENO"
4687 then :
4688 ac_cv_prog_cc_c11=$ac_arg
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.beam
4691 test "x$ac_cv_prog_cc_c11" != "xno" && break
4692 done
4693 rm -f conftest.$ac_ext
4694 CC=$ac_save_CC
4695 fi
4696
4697 if test "x$ac_cv_prog_cc_c11" = xno
4698 then :
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4700 printf "%s\n" "unsupported" >&6; }
4701 else $as_nop
4702 if test "x$ac_cv_prog_cc_c11" = x
4703 then :
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4705 printf "%s\n" "none needed" >&6; }
4706 else $as_nop
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4708 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4709 CC="$CC $ac_cv_prog_cc_c11"
4710 fi
4711 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4712 ac_prog_cc_stdc=c11
4713 fi
4714 fi
4715 if test x$ac_prog_cc_stdc = xno
4716 then :
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4718 printf %s "checking for $CC option to enable C99 features... " >&6; }
4719 if test ${ac_cv_prog_cc_c99+y}
4720 then :
4721 printf %s "(cached) " >&6
4722 else $as_nop
4723 ac_cv_prog_cc_c99=no
4724 ac_save_CC=$CC
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4727 $ac_c_conftest_c99_program
4728 _ACEOF
4729 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4730 do
4731 CC="$ac_save_CC $ac_arg"
4732 if ac_fn_c_try_compile "$LINENO"
4733 then :
4734 ac_cv_prog_cc_c99=$ac_arg
4735 fi
4736 rm -f core conftest.err conftest.$ac_objext conftest.beam
4737 test "x$ac_cv_prog_cc_c99" != "xno" && break
4738 done
4739 rm -f conftest.$ac_ext
4740 CC=$ac_save_CC
4741 fi
4742
4743 if test "x$ac_cv_prog_cc_c99" = xno
4744 then :
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4746 printf "%s\n" "unsupported" >&6; }
4747 else $as_nop
4748 if test "x$ac_cv_prog_cc_c99" = x
4749 then :
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4751 printf "%s\n" "none needed" >&6; }
4752 else $as_nop
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4754 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4755 CC="$CC $ac_cv_prog_cc_c99"
4756 fi
4757 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4758 ac_prog_cc_stdc=c99
4759 fi
4760 fi
4761 if test x$ac_prog_cc_stdc = xno
4762 then :
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4764 printf %s "checking for $CC option to enable C89 features... " >&6; }
4765 if test ${ac_cv_prog_cc_c89+y}
4766 then :
4767 printf %s "(cached) " >&6
4768 else $as_nop
4769 ac_cv_prog_cc_c89=no
4770 ac_save_CC=$CC
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773 $ac_c_conftest_c89_program
4774 _ACEOF
4775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4776 do
4777 CC="$ac_save_CC $ac_arg"
4778 if ac_fn_c_try_compile "$LINENO"
4779 then :
4780 ac_cv_prog_cc_c89=$ac_arg
4781 fi
4782 rm -f core conftest.err conftest.$ac_objext conftest.beam
4783 test "x$ac_cv_prog_cc_c89" != "xno" && break
4784 done
4785 rm -f conftest.$ac_ext
4786 CC=$ac_save_CC
4787 fi
4788
4789 if test "x$ac_cv_prog_cc_c89" = xno
4790 then :
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4792 printf "%s\n" "unsupported" >&6; }
4793 else $as_nop
4794 if test "x$ac_cv_prog_cc_c89" = x
4795 then :
4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4797 printf "%s\n" "none needed" >&6; }
4798 else $as_nop
4799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4800 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4801 CC="$CC $ac_cv_prog_cc_c89"
4802 fi
4803 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4804 ac_prog_cc_stdc=c89
4805 fi
4806 fi
4807
4808 ac_ext=c
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813
4814
4815 ac_ext=c
4816 ac_cpp='$CPP $CPPFLAGS'
4817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4821 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4822 if test ${am_cv_prog_cc_c_o+y}
4823 then :
4824 printf %s "(cached) " >&6
4825 else $as_nop
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828
4829 int
4830 main (void)
4831 {
4832
4833 ;
4834 return 0;
4835 }
4836 _ACEOF
4837 # Make sure it works both with $CC and with simple cc.
4838 # Following AC_PROG_CC_C_O, we do the test twice because some
4839 # compilers refuse to overwrite an existing .o file with -o,
4840 # though they will create one.
4841 am_cv_prog_cc_c_o=yes
4842 for am_i in 1 2; do
4843 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4844 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } \
4848 && test -f conftest2.$ac_objext; then
4849 : OK
4850 else
4851 am_cv_prog_cc_c_o=no
4852 break
4853 fi
4854 done
4855 rm -f core conftest*
4856 unset am_i
4857 fi
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4859 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4860 if test "$am_cv_prog_cc_c_o" != yes; then
4861 # Losing compiler, so override with the script.
4862 # FIXME: It is wrong to rewrite CC.
4863 # But if we don't then we get into trouble of one sort or another.
4864 # A longer-term fix would be to have automake use am__CC in this case,
4865 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4866 CC="$am_aux_dir/compile $CC"
4867 fi
4868 ac_ext=c
4869 ac_cpp='$CPP $CPPFLAGS'
4870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4873
4874
4875 depcc="$CC" am_compiler_list=
4876
4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4878 printf %s "checking dependency style of $depcc... " >&6; }
4879 if test ${am_cv_CC_dependencies_compiler_type+y}
4880 then :
4881 printf %s "(cached) " >&6
4882 else $as_nop
4883 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4884 # We make a subdir and do the tests there. Otherwise we can end up
4885 # making bogus files that we don't know about and never remove. For
4886 # instance it was reported that on HP-UX the gcc test will end up
4887 # making a dummy file named 'D' -- because '-MD' means "put the output
4888 # in D".
4889 rm -rf conftest.dir
4890 mkdir conftest.dir
4891 # Copy depcomp to subdir because otherwise we won't find it if we're
4892 # using a relative directory.
4893 cp "$am_depcomp" conftest.dir
4894 cd conftest.dir
4895 # We will build objects and dependencies in a subdirectory because
4896 # it helps to detect inapplicable dependency modes. For instance
4897 # both Tru64's cc and ICC support -MD to output dependencies as a
4898 # side effect of compilation, but ICC will put the dependencies in
4899 # the current directory while Tru64 will put them in the object
4900 # directory.
4901 mkdir sub
4902
4903 am_cv_CC_dependencies_compiler_type=none
4904 if test "$am_compiler_list" = ""; then
4905 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4906 fi
4907 am__universal=false
4908 case " $depcc " in #(
4909 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4910 esac
4911
4912 for depmode in $am_compiler_list; do
4913 # Setup a source with many dependencies, because some compilers
4914 # like to wrap large dependency lists on column 80 (with \), and
4915 # we should not choose a depcomp mode which is confused by this.
4916 #
4917 # We need to recreate these files for each test, as the compiler may
4918 # overwrite some of them when testing with obscure command lines.
4919 # This happens at least with the AIX C compiler.
4920 : > sub/conftest.c
4921 for i in 1 2 3 4 5 6; do
4922 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4923 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4924 # Solaris 10 /bin/sh.
4925 echo '/* dummy */' > sub/conftst$i.h
4926 done
4927 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4928
4929 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4930 # mode. It turns out that the SunPro C++ compiler does not properly
4931 # handle '-M -o', and we need to detect this. Also, some Intel
4932 # versions had trouble with output in subdirs.
4933 am__obj=sub/conftest.${OBJEXT-o}
4934 am__minus_obj="-o $am__obj"
4935 case $depmode in
4936 gcc)
4937 # This depmode causes a compiler race in universal mode.
4938 test "$am__universal" = false || continue
4939 ;;
4940 nosideeffect)
4941 # After this tag, mechanisms are not by side-effect, so they'll
4942 # only be used when explicitly requested.
4943 if test "x$enable_dependency_tracking" = xyes; then
4944 continue
4945 else
4946 break
4947 fi
4948 ;;
4949 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4950 # This compiler won't grok '-c -o', but also, the minuso test has
4951 # not run yet. These depmodes are late enough in the game, and
4952 # so weak that their functioning should not be impacted.
4953 am__obj=conftest.${OBJEXT-o}
4954 am__minus_obj=
4955 ;;
4956 none) break ;;
4957 esac
4958 if depmode=$depmode \
4959 source=sub/conftest.c object=$am__obj \
4960 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4961 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4962 >/dev/null 2>conftest.err &&
4963 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4964 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4965 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4966 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4967 # icc doesn't choke on unknown options, it will just issue warnings
4968 # or remarks (even with -Werror). So we grep stderr for any message
4969 # that says an option was ignored or not supported.
4970 # When given -MP, icc 7.0 and 7.1 complain thusly:
4971 # icc: Command line warning: ignoring option '-M'; no argument required
4972 # The diagnosis changed in icc 8.0:
4973 # icc: Command line remark: option '-MP' not supported
4974 if (grep 'ignoring option' conftest.err ||
4975 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4976 am_cv_CC_dependencies_compiler_type=$depmode
4977 break
4978 fi
4979 fi
4980 done
4981
4982 cd ..
4983 rm -rf conftest.dir
4984 else
4985 am_cv_CC_dependencies_compiler_type=none
4986 fi
4987
4988 fi
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4990 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4991 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4992
4993 if
4994 test "x$enable_dependency_tracking" != xno \
4995 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4996 am__fastdepCC_TRUE=
4997 am__fastdepCC_FALSE='#'
4998 else
4999 am__fastdepCC_TRUE='#'
5000 am__fastdepCC_FALSE=
5001 fi
5002
5003
5004
5005 ac_header= ac_cache=
5006 for ac_item in $ac_header_c_list
5007 do
5008 if test $ac_cache; then
5009 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5010 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5011 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5012 fi
5013 ac_header= ac_cache=
5014 elif test $ac_header; then
5015 ac_cache=$ac_item
5016 else
5017 ac_header=$ac_item
5018 fi
5019 done
5020
5021
5022
5023
5024
5025
5026
5027
5028 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5029 then :
5030
5031 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5032
5033 fi
5034
5035
5036
5037
5038
5039
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5041 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5042 if test ${ac_cv_safe_to_define___extensions__+y}
5043 then :
5044 printf %s "(cached) " >&6
5045 else $as_nop
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048
5049 # define __EXTENSIONS__ 1
5050 $ac_includes_default
5051 int
5052 main (void)
5053 {
5054
5055 ;
5056 return 0;
5057 }
5058 _ACEOF
5059 if ac_fn_c_try_compile "$LINENO"
5060 then :
5061 ac_cv_safe_to_define___extensions__=yes
5062 else $as_nop
5063 ac_cv_safe_to_define___extensions__=no
5064 fi
5065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5066 fi
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5068 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5069
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5071 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5072 if test ${ac_cv_should_define__xopen_source+y}
5073 then :
5074 printf %s "(cached) " >&6
5075 else $as_nop
5076 ac_cv_should_define__xopen_source=no
5077 if test $ac_cv_header_wchar_h = yes
5078 then :
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081
5082 #include <wchar.h>
5083 mbstate_t x;
5084 int
5085 main (void)
5086 {
5087
5088 ;
5089 return 0;
5090 }
5091 _ACEOF
5092 if ac_fn_c_try_compile "$LINENO"
5093 then :
5094
5095 else $as_nop
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098
5099 #define _XOPEN_SOURCE 500
5100 #include <wchar.h>
5101 mbstate_t x;
5102 int
5103 main (void)
5104 {
5105
5106 ;
5107 return 0;
5108 }
5109 _ACEOF
5110 if ac_fn_c_try_compile "$LINENO"
5111 then :
5112 ac_cv_should_define__xopen_source=yes
5113 fi
5114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5117 fi
5118 fi
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5120 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5121
5122 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5123
5124 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5125
5126 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5127
5128 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5129
5130 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5131
5132 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5133
5134 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5135
5136 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5137
5138 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5139
5140 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5141
5142 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5143
5144 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5145
5146 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5147
5148 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5149
5150 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5151
5152 if test $ac_cv_header_minix_config_h = yes
5153 then :
5154 MINIX=yes
5155 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5156
5157 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5158
5159 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5160
5161 else $as_nop
5162 MINIX=
5163 fi
5164 if test $ac_cv_safe_to_define___extensions__ = yes
5165 then :
5166 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5167
5168 fi
5169 if test $ac_cv_should_define__xopen_source = yes
5170 then :
5171 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5172
5173 fi
5174
5175
5176
5177 if test -n "$ac_tool_prefix"; then
5178 for ac_prog in ar lib "link -lib"
5179 do
5180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 printf %s "checking for $ac_word... " >&6; }
5184 if test ${ac_cv_prog_AR+y}
5185 then :
5186 printf %s "(cached) " >&6
5187 else $as_nop
5188 if test -n "$AR"; then
5189 ac_cv_prog_AR="$AR" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194 IFS=$as_save_IFS
5195 case $as_dir in #(((
5196 '') as_dir=./ ;;
5197 */) ;;
5198 *) as_dir=$as_dir/ ;;
5199 esac
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206 done
5207 done
5208 IFS=$as_save_IFS
5209
5210 fi
5211 fi
5212 AR=$ac_cv_prog_AR
5213 if test -n "$AR"; then
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5215 printf "%s\n" "$AR" >&6; }
5216 else
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 printf "%s\n" "no" >&6; }
5219 fi
5220
5221
5222 test -n "$AR" && break
5223 done
5224 fi
5225 if test -z "$AR"; then
5226 ac_ct_AR=$AR
5227 for ac_prog in ar lib "link -lib"
5228 do
5229 # Extract the first word of "$ac_prog", so it can be a program name with args.
5230 set dummy $ac_prog; ac_word=$2
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 printf %s "checking for $ac_word... " >&6; }
5233 if test ${ac_cv_prog_ac_ct_AR+y}
5234 then :
5235 printf %s "(cached) " >&6
5236 else $as_nop
5237 if test -n "$ac_ct_AR"; then
5238 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243 IFS=$as_save_IFS
5244 case $as_dir in #(((
5245 '') as_dir=./ ;;
5246 */) ;;
5247 *) as_dir=$as_dir/ ;;
5248 esac
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_ac_ct_AR="$ac_prog"
5252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255 done
5256 done
5257 IFS=$as_save_IFS
5258
5259 fi
5260 fi
5261 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5262 if test -n "$ac_ct_AR"; then
5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5264 printf "%s\n" "$ac_ct_AR" >&6; }
5265 else
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 printf "%s\n" "no" >&6; }
5268 fi
5269
5270
5271 test -n "$ac_ct_AR" && break
5272 done
5273
5274 if test "x$ac_ct_AR" = x; then
5275 AR="false"
5276 else
5277 case $cross_compiling:$ac_tool_warned in
5278 yes:)
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned=yes ;;
5282 esac
5283 AR=$ac_ct_AR
5284 fi
5285 fi
5286
5287 : ${AR=ar}
5288
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5290 printf %s "checking the archiver ($AR) interface... " >&6; }
5291 if test ${am_cv_ar_interface+y}
5292 then :
5293 printf %s "(cached) " >&6
5294 else $as_nop
5295 ac_ext=c
5296 ac_cpp='$CPP $CPPFLAGS'
5297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5300
5301 am_cv_ar_interface=ar
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 int some_variable = 0;
5305 _ACEOF
5306 if ac_fn_c_try_compile "$LINENO"
5307 then :
5308 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5310 (eval $am_ar_try) 2>&5
5311 ac_status=$?
5312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5313 test $ac_status = 0; }
5314 if test "$ac_status" -eq 0; then
5315 am_cv_ar_interface=ar
5316 else
5317 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5319 (eval $am_ar_try) 2>&5
5320 ac_status=$?
5321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5322 test $ac_status = 0; }
5323 if test "$ac_status" -eq 0; then
5324 am_cv_ar_interface=lib
5325 else
5326 am_cv_ar_interface=unknown
5327 fi
5328 fi
5329 rm -f conftest.lib libconftest.a
5330
5331 fi
5332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5333 ac_ext=c
5334 ac_cpp='$CPP $CPPFLAGS'
5335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338
5339 fi
5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5341 printf "%s\n" "$am_cv_ar_interface" >&6; }
5342
5343 case $am_cv_ar_interface in
5344 ar)
5345 ;;
5346 lib)
5347 # Microsoft lib, so override with the ar-lib wrapper script.
5348 # FIXME: It is wrong to rewrite AR.
5349 # But if we don't then we get into trouble of one sort or another.
5350 # A longer-term fix would be to have automake use am__AR in this case,
5351 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5352 # similar.
5353 AR="$am_aux_dir/ar-lib $AR"
5354 ;;
5355 unknown)
5356 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5357 ;;
5358 esac
5359
5360
5361 case `pwd` in
5362 *\ * | *\ *)
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5364 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5365 esac
5366
5367
5368
5369 macro_version='2.4.7'
5370 macro_revision='2.4.7'
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 ltmain=$ac_aux_dir/ltmain.sh
5386
5387
5388
5389 # Make sure we can run config.sub.
5390 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5391 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5392
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5394 printf %s "checking build system type... " >&6; }
5395 if test ${ac_cv_build+y}
5396 then :
5397 printf %s "(cached) " >&6
5398 else $as_nop
5399 ac_build_alias=$build_alias
5400 test "x$ac_build_alias" = x &&
5401 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5402 test "x$ac_build_alias" = x &&
5403 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5404 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5405 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5406
5407 fi
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5409 printf "%s\n" "$ac_cv_build" >&6; }
5410 case $ac_cv_build in
5411 *-*-*) ;;
5412 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5413 esac
5414 build=$ac_cv_build
5415 ac_save_IFS=$IFS; IFS='-'
5416 set x $ac_cv_build
5417 shift
5418 build_cpu=$1
5419 build_vendor=$2
5420 shift; shift
5421 # Remember, the first character of IFS is used to create $*,
5422 # except with old shells:
5423 build_os=$*
5424 IFS=$ac_save_IFS
5425 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5426
5427
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5429 printf %s "checking host system type... " >&6; }
5430 if test ${ac_cv_host+y}
5431 then :
5432 printf %s "(cached) " >&6
5433 else $as_nop
5434 if test "x$host_alias" = x; then
5435 ac_cv_host=$ac_cv_build
5436 else
5437 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5438 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5439 fi
5440
5441 fi
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5443 printf "%s\n" "$ac_cv_host" >&6; }
5444 case $ac_cv_host in
5445 *-*-*) ;;
5446 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5447 esac
5448 host=$ac_cv_host
5449 ac_save_IFS=$IFS; IFS='-'
5450 set x $ac_cv_host
5451 shift
5452 host_cpu=$1
5453 host_vendor=$2
5454 shift; shift
5455 # Remember, the first character of IFS is used to create $*,
5456 # except with old shells:
5457 host_os=$*
5458 IFS=$ac_save_IFS
5459 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5460
5461
5462 # Backslashify metacharacters that are still active within
5463 # double-quoted strings.
5464 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5465
5466 # Same as above, but do not quote variable references.
5467 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5468
5469 # Sed substitution to delay expansion of an escaped shell variable in a
5470 # double_quote_subst'ed string.
5471 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5472
5473 # Sed substitution to delay expansion of an escaped single quote.
5474 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5475
5476 # Sed substitution to avoid accidental globbing in evaled expressions
5477 no_glob_subst='s/\*/\\\*/g'
5478
5479 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5480 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5481 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5482
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5484 printf %s "checking how to print strings... " >&6; }
5485 # Test print first, because it will be a builtin if present.
5486 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5487 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5488 ECHO='print -r --'
5489 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5490 ECHO='printf %s\n'
5491 else
5492 # Use this function as a fallback that always works.
5493 func_fallback_echo ()
5494 {
5495 eval 'cat <<_LTECHO_EOF
5496 $1
5497 _LTECHO_EOF'
5498 }
5499 ECHO='func_fallback_echo'
5500 fi
5501
5502 # func_echo_all arg...
5503 # Invoke $ECHO with all args, space-separated.
5504 func_echo_all ()
5505 {
5506 $ECHO ""
5507 }
5508
5509 case $ECHO in
5510 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5511 printf "%s\n" "printf" >&6; } ;;
5512 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5513 printf "%s\n" "print -r" >&6; } ;;
5514 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5515 printf "%s\n" "cat" >&6; } ;;
5516 esac
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5532 printf %s "checking for a sed that does not truncate output... " >&6; }
5533 if test ${ac_cv_path_SED+y}
5534 then :
5535 printf %s "(cached) " >&6
5536 else $as_nop
5537 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5538 for ac_i in 1 2 3 4 5 6 7; do
5539 ac_script="$ac_script$as_nl$ac_script"
5540 done
5541 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5542 { ac_script=; unset ac_script;}
5543 if test -z "$SED"; then
5544 ac_path_SED_found=false
5545 # Loop through the user's path and test for each of PROGNAME-LIST
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549 IFS=$as_save_IFS
5550 case $as_dir in #(((
5551 '') as_dir=./ ;;
5552 */) ;;
5553 *) as_dir=$as_dir/ ;;
5554 esac
5555 for ac_prog in sed gsed
5556 do
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5559 as_fn_executable_p "$ac_path_SED" || continue
5560 # Check for GNU ac_path_SED and select it if it is found.
5561 # Check for GNU $ac_path_SED
5562 case `"$ac_path_SED" --version 2>&1` in
5563 *GNU*)
5564 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5565 *)
5566 ac_count=0
5567 printf %s 0123456789 >"conftest.in"
5568 while :
5569 do
5570 cat "conftest.in" "conftest.in" >"conftest.tmp"
5571 mv "conftest.tmp" "conftest.in"
5572 cp "conftest.in" "conftest.nl"
5573 printf "%s\n" '' >> "conftest.nl"
5574 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5576 as_fn_arith $ac_count + 1 && ac_count=$as_val
5577 if test $ac_count -gt ${ac_path_SED_max-0}; then
5578 # Best one so far, save it but keep looking for a better one
5579 ac_cv_path_SED="$ac_path_SED"
5580 ac_path_SED_max=$ac_count
5581 fi
5582 # 10*(2^10) chars as input seems more than enough
5583 test $ac_count -gt 10 && break
5584 done
5585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5586 esac
5587
5588 $ac_path_SED_found && break 3
5589 done
5590 done
5591 done
5592 IFS=$as_save_IFS
5593 if test -z "$ac_cv_path_SED"; then
5594 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5595 fi
5596 else
5597 ac_cv_path_SED=$SED
5598 fi
5599
5600 fi
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5602 printf "%s\n" "$ac_cv_path_SED" >&6; }
5603 SED="$ac_cv_path_SED"
5604 rm -f conftest.sed
5605
5606 test -z "$SED" && SED=sed
5607 Xsed="$SED -e 1s/^X//"
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5620 printf %s "checking for grep that handles long lines and -e... " >&6; }
5621 if test ${ac_cv_path_GREP+y}
5622 then :
5623 printf %s "(cached) " >&6
5624 else $as_nop
5625 if test -z "$GREP"; then
5626 ac_path_GREP_found=false
5627 # Loop through the user's path and test for each of PROGNAME-LIST
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5630 do
5631 IFS=$as_save_IFS
5632 case $as_dir in #(((
5633 '') as_dir=./ ;;
5634 */) ;;
5635 *) as_dir=$as_dir/ ;;
5636 esac
5637 for ac_prog in grep ggrep
5638 do
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5641 as_fn_executable_p "$ac_path_GREP" || continue
5642 # Check for GNU ac_path_GREP and select it if it is found.
5643 # Check for GNU $ac_path_GREP
5644 case `"$ac_path_GREP" --version 2>&1` in
5645 *GNU*)
5646 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5647 *)
5648 ac_count=0
5649 printf %s 0123456789 >"conftest.in"
5650 while :
5651 do
5652 cat "conftest.in" "conftest.in" >"conftest.tmp"
5653 mv "conftest.tmp" "conftest.in"
5654 cp "conftest.in" "conftest.nl"
5655 printf "%s\n" 'GREP' >> "conftest.nl"
5656 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5658 as_fn_arith $ac_count + 1 && ac_count=$as_val
5659 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5660 # Best one so far, save it but keep looking for a better one
5661 ac_cv_path_GREP="$ac_path_GREP"
5662 ac_path_GREP_max=$ac_count
5663 fi
5664 # 10*(2^10) chars as input seems more than enough
5665 test $ac_count -gt 10 && break
5666 done
5667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5668 esac
5669
5670 $ac_path_GREP_found && break 3
5671 done
5672 done
5673 done
5674 IFS=$as_save_IFS
5675 if test -z "$ac_cv_path_GREP"; then
5676 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5677 fi
5678 else
5679 ac_cv_path_GREP=$GREP
5680 fi
5681
5682 fi
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5684 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5685 GREP="$ac_cv_path_GREP"
5686
5687
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5689 printf %s "checking for egrep... " >&6; }
5690 if test ${ac_cv_path_EGREP+y}
5691 then :
5692 printf %s "(cached) " >&6
5693 else $as_nop
5694 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5695 then ac_cv_path_EGREP="$GREP -E"
5696 else
5697 if test -z "$EGREP"; then
5698 ac_path_EGREP_found=false
5699 # Loop through the user's path and test for each of PROGNAME-LIST
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5702 do
5703 IFS=$as_save_IFS
5704 case $as_dir in #(((
5705 '') as_dir=./ ;;
5706 */) ;;
5707 *) as_dir=$as_dir/ ;;
5708 esac
5709 for ac_prog in egrep
5710 do
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5713 as_fn_executable_p "$ac_path_EGREP" || continue
5714 # Check for GNU ac_path_EGREP and select it if it is found.
5715 # Check for GNU $ac_path_EGREP
5716 case `"$ac_path_EGREP" --version 2>&1` in
5717 *GNU*)
5718 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5719 *)
5720 ac_count=0
5721 printf %s 0123456789 >"conftest.in"
5722 while :
5723 do
5724 cat "conftest.in" "conftest.in" >"conftest.tmp"
5725 mv "conftest.tmp" "conftest.in"
5726 cp "conftest.in" "conftest.nl"
5727 printf "%s\n" 'EGREP' >> "conftest.nl"
5728 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5730 as_fn_arith $ac_count + 1 && ac_count=$as_val
5731 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5732 # Best one so far, save it but keep looking for a better one
5733 ac_cv_path_EGREP="$ac_path_EGREP"
5734 ac_path_EGREP_max=$ac_count
5735 fi
5736 # 10*(2^10) chars as input seems more than enough
5737 test $ac_count -gt 10 && break
5738 done
5739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5740 esac
5741
5742 $ac_path_EGREP_found && break 3
5743 done
5744 done
5745 done
5746 IFS=$as_save_IFS
5747 if test -z "$ac_cv_path_EGREP"; then
5748 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5749 fi
5750 else
5751 ac_cv_path_EGREP=$EGREP
5752 fi
5753
5754 fi
5755 fi
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5757 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5758 EGREP="$ac_cv_path_EGREP"
5759
5760
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5762 printf %s "checking for fgrep... " >&6; }
5763 if test ${ac_cv_path_FGREP+y}
5764 then :
5765 printf %s "(cached) " >&6
5766 else $as_nop
5767 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5768 then ac_cv_path_FGREP="$GREP -F"
5769 else
5770 if test -z "$FGREP"; then
5771 ac_path_FGREP_found=false
5772 # Loop through the user's path and test for each of PROGNAME-LIST
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5775 do
5776 IFS=$as_save_IFS
5777 case $as_dir in #(((
5778 '') as_dir=./ ;;
5779 */) ;;
5780 *) as_dir=$as_dir/ ;;
5781 esac
5782 for ac_prog in fgrep
5783 do
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5786 as_fn_executable_p "$ac_path_FGREP" || continue
5787 # Check for GNU ac_path_FGREP and select it if it is found.
5788 # Check for GNU $ac_path_FGREP
5789 case `"$ac_path_FGREP" --version 2>&1` in
5790 *GNU*)
5791 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5792 *)
5793 ac_count=0
5794 printf %s 0123456789 >"conftest.in"
5795 while :
5796 do
5797 cat "conftest.in" "conftest.in" >"conftest.tmp"
5798 mv "conftest.tmp" "conftest.in"
5799 cp "conftest.in" "conftest.nl"
5800 printf "%s\n" 'FGREP' >> "conftest.nl"
5801 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5803 as_fn_arith $ac_count + 1 && ac_count=$as_val
5804 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5805 # Best one so far, save it but keep looking for a better one
5806 ac_cv_path_FGREP="$ac_path_FGREP"
5807 ac_path_FGREP_max=$ac_count
5808 fi
5809 # 10*(2^10) chars as input seems more than enough
5810 test $ac_count -gt 10 && break
5811 done
5812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5813 esac
5814
5815 $ac_path_FGREP_found && break 3
5816 done
5817 done
5818 done
5819 IFS=$as_save_IFS
5820 if test -z "$ac_cv_path_FGREP"; then
5821 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5822 fi
5823 else
5824 ac_cv_path_FGREP=$FGREP
5825 fi
5826
5827 fi
5828 fi
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5830 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5831 FGREP="$ac_cv_path_FGREP"
5832
5833
5834 test -z "$GREP" && GREP=grep
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854 # Check whether --with-gnu-ld was given.
5855 if test ${with_gnu_ld+y}
5856 then :
5857 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5858 else $as_nop
5859 with_gnu_ld=no
5860 fi
5861
5862 ac_prog=ld
5863 if test yes = "$GCC"; then
5864 # Check if gcc -print-prog-name=ld gives a path.
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5866 printf %s "checking for ld used by $CC... " >&6; }
5867 case $host in
5868 *-*-mingw*)
5869 # gcc leaves a trailing carriage return, which upsets mingw
5870 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5871 *)
5872 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5873 esac
5874 case $ac_prog in
5875 # Accept absolute paths.
5876 [\\/]* | ?:[\\/]*)
5877 re_direlt='/[^/][^/]*/\.\./'
5878 # Canonicalize the pathname of ld
5879 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5880 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5881 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5882 done
5883 test -z "$LD" && LD=$ac_prog
5884 ;;
5885 "")
5886 # If it fails, then pretend we aren't using GCC.
5887 ac_prog=ld
5888 ;;
5889 *)
5890 # If it is relative, then search for the first ld in PATH.
5891 with_gnu_ld=unknown
5892 ;;
5893 esac
5894 elif test yes = "$with_gnu_ld"; then
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5896 printf %s "checking for GNU ld... " >&6; }
5897 else
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5899 printf %s "checking for non-GNU ld... " >&6; }
5900 fi
5901 if test ${lt_cv_path_LD+y}
5902 then :
5903 printf %s "(cached) " >&6
5904 else $as_nop
5905 if test -z "$LD"; then
5906 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5907 for ac_dir in $PATH; do
5908 IFS=$lt_save_ifs
5909 test -z "$ac_dir" && ac_dir=.
5910 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5911 lt_cv_path_LD=$ac_dir/$ac_prog
5912 # Check to see if the program is GNU ld. I'd rather use --version,
5913 # but apparently some variants of GNU ld only accept -v.
5914 # Break only if it was the GNU/non-GNU ld that we prefer.
5915 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5916 *GNU* | *'with BFD'*)
5917 test no != "$with_gnu_ld" && break
5918 ;;
5919 *)
5920 test yes != "$with_gnu_ld" && break
5921 ;;
5922 esac
5923 fi
5924 done
5925 IFS=$lt_save_ifs
5926 else
5927 lt_cv_path_LD=$LD # Let the user override the test with a path.
5928 fi
5929 fi
5930
5931 LD=$lt_cv_path_LD
5932 if test -n "$LD"; then
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5934 printf "%s\n" "$LD" >&6; }
5935 else
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 printf "%s\n" "no" >&6; }
5938 fi
5939 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5941 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5942 if test ${lt_cv_prog_gnu_ld+y}
5943 then :
5944 printf %s "(cached) " >&6
5945 else $as_nop
5946 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5947 case `$LD -v 2>&1 </dev/null` in
5948 *GNU* | *'with BFD'*)
5949 lt_cv_prog_gnu_ld=yes
5950 ;;
5951 *)
5952 lt_cv_prog_gnu_ld=no
5953 ;;
5954 esac
5955 fi
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5957 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5958 with_gnu_ld=$lt_cv_prog_gnu_ld
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5969 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5970 if test ${lt_cv_path_NM+y}
5971 then :
5972 printf %s "(cached) " >&6
5973 else $as_nop
5974 if test -n "$NM"; then
5975 # Let the user override the test.
5976 lt_cv_path_NM=$NM
5977 else
5978 lt_nm_to_check=${ac_tool_prefix}nm
5979 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5980 lt_nm_to_check="$lt_nm_to_check nm"
5981 fi
5982 for lt_tmp_nm in $lt_nm_to_check; do
5983 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5984 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5985 IFS=$lt_save_ifs
5986 test -z "$ac_dir" && ac_dir=.
5987 tmp_nm=$ac_dir/$lt_tmp_nm
5988 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5989 # Check to see if the nm accepts a BSD-compat flag.
5990 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5991 # nm: unknown option "B" ignored
5992 # Tru64's nm complains that /dev/null is an invalid object file
5993 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5994 case $build_os in
5995 mingw*) lt_bad_file=conftest.nm/nofile ;;
5996 *) lt_bad_file=/dev/null ;;
5997 esac
5998 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5999 *$lt_bad_file* | *'Invalid file or object type'*)
6000 lt_cv_path_NM="$tmp_nm -B"
6001 break 2
6002 ;;
6003 *)
6004 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6005 */dev/null*)
6006 lt_cv_path_NM="$tmp_nm -p"
6007 break 2
6008 ;;
6009 *)
6010 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6011 continue # so that we can try to find one that supports BSD flags
6012 ;;
6013 esac
6014 ;;
6015 esac
6016 fi
6017 done
6018 IFS=$lt_save_ifs
6019 done
6020 : ${lt_cv_path_NM=no}
6021 fi
6022 fi
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6024 printf "%s\n" "$lt_cv_path_NM" >&6; }
6025 if test no != "$lt_cv_path_NM"; then
6026 NM=$lt_cv_path_NM
6027 else
6028 # Didn't find any BSD compatible name lister, look for dumpbin.
6029 if test -n "$DUMPBIN"; then :
6030 # Let the user override the test.
6031 else
6032 if test -n "$ac_tool_prefix"; then
6033 for ac_prog in dumpbin "link -dump"
6034 do
6035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 printf %s "checking for $ac_word... " >&6; }
6039 if test ${ac_cv_prog_DUMPBIN+y}
6040 then :
6041 printf %s "(cached) " >&6
6042 else $as_nop
6043 if test -n "$DUMPBIN"; then
6044 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049 IFS=$as_save_IFS
6050 case $as_dir in #(((
6051 '') as_dir=./ ;;
6052 */) ;;
6053 *) as_dir=$as_dir/ ;;
6054 esac
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6057 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6059 break 2
6060 fi
6061 done
6062 done
6063 IFS=$as_save_IFS
6064
6065 fi
6066 fi
6067 DUMPBIN=$ac_cv_prog_DUMPBIN
6068 if test -n "$DUMPBIN"; then
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6070 printf "%s\n" "$DUMPBIN" >&6; }
6071 else
6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 printf "%s\n" "no" >&6; }
6074 fi
6075
6076
6077 test -n "$DUMPBIN" && break
6078 done
6079 fi
6080 if test -z "$DUMPBIN"; then
6081 ac_ct_DUMPBIN=$DUMPBIN
6082 for ac_prog in dumpbin "link -dump"
6083 do
6084 # Extract the first word of "$ac_prog", so it can be a program name with args.
6085 set dummy $ac_prog; ac_word=$2
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 printf %s "checking for $ac_word... " >&6; }
6088 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6089 then :
6090 printf %s "(cached) " >&6
6091 else $as_nop
6092 if test -n "$ac_ct_DUMPBIN"; then
6093 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098 IFS=$as_save_IFS
6099 case $as_dir in #(((
6100 '') as_dir=./ ;;
6101 */) ;;
6102 *) as_dir=$as_dir/ ;;
6103 esac
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6106 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6108 break 2
6109 fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114 fi
6115 fi
6116 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6117 if test -n "$ac_ct_DUMPBIN"; then
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6119 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6120 else
6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122 printf "%s\n" "no" >&6; }
6123 fi
6124
6125
6126 test -n "$ac_ct_DUMPBIN" && break
6127 done
6128
6129 if test "x$ac_ct_DUMPBIN" = x; then
6130 DUMPBIN=":"
6131 else
6132 case $cross_compiling:$ac_tool_warned in
6133 yes:)
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6135 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6136 ac_tool_warned=yes ;;
6137 esac
6138 DUMPBIN=$ac_ct_DUMPBIN
6139 fi
6140 fi
6141
6142 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6143 *COFF*)
6144 DUMPBIN="$DUMPBIN -symbols -headers"
6145 ;;
6146 *)
6147 DUMPBIN=:
6148 ;;
6149 esac
6150 fi
6151
6152 if test : != "$DUMPBIN"; then
6153 NM=$DUMPBIN
6154 fi
6155 fi
6156 test -z "$NM" && NM=nm
6157
6158
6159
6160
6161
6162
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6164 printf %s "checking the name lister ($NM) interface... " >&6; }
6165 if test ${lt_cv_nm_interface+y}
6166 then :
6167 printf %s "(cached) " >&6
6168 else $as_nop
6169 lt_cv_nm_interface="BSD nm"
6170 echo "int some_variable = 0;" > conftest.$ac_ext
6171 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6172 (eval "$ac_compile" 2>conftest.err)
6173 cat conftest.err >&5
6174 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6175 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6176 cat conftest.err >&5
6177 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6178 cat conftest.out >&5
6179 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6180 lt_cv_nm_interface="MS dumpbin"
6181 fi
6182 rm -f conftest*
6183 fi
6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6185 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6186
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6188 printf %s "checking whether ln -s works... " >&6; }
6189 LN_S=$as_ln_s
6190 if test "$LN_S" = "ln -s"; then
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6192 printf "%s\n" "yes" >&6; }
6193 else
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6195 printf "%s\n" "no, using $LN_S" >&6; }
6196 fi
6197
6198 # find the maximum length of command line arguments
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6200 printf %s "checking the maximum length of command line arguments... " >&6; }
6201 if test ${lt_cv_sys_max_cmd_len+y}
6202 then :
6203 printf %s "(cached) " >&6
6204 else $as_nop
6205 i=0
6206 teststring=ABCD
6207
6208 case $build_os in
6209 msdosdjgpp*)
6210 # On DJGPP, this test can blow up pretty badly due to problems in libc
6211 # (any single argument exceeding 2000 bytes causes a buffer overrun
6212 # during glob expansion). Even if it were fixed, the result of this
6213 # check would be larger than it should be.
6214 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6215 ;;
6216
6217 gnu*)
6218 # Under GNU Hurd, this test is not required because there is
6219 # no limit to the length of command line arguments.
6220 # Libtool will interpret -1 as no limit whatsoever
6221 lt_cv_sys_max_cmd_len=-1;
6222 ;;
6223
6224 cygwin* | mingw* | cegcc*)
6225 # On Win9x/ME, this test blows up -- it succeeds, but takes
6226 # about 5 minutes as the teststring grows exponentially.
6227 # Worse, since 9x/ME are not pre-emptively multitasking,
6228 # you end up with a "frozen" computer, even though with patience
6229 # the test eventually succeeds (with a max line length of 256k).
6230 # Instead, let's just punt: use the minimum linelength reported by
6231 # all of the supported platforms: 8192 (on NT/2K/XP).
6232 lt_cv_sys_max_cmd_len=8192;
6233 ;;
6234
6235 mint*)
6236 # On MiNT this can take a long time and run out of memory.
6237 lt_cv_sys_max_cmd_len=8192;
6238 ;;
6239
6240 amigaos*)
6241 # On AmigaOS with pdksh, this test takes hours, literally.
6242 # So we just punt and use a minimum line length of 8192.
6243 lt_cv_sys_max_cmd_len=8192;
6244 ;;
6245
6246 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6247 # This has been around since 386BSD, at least. Likely further.
6248 if test -x /sbin/sysctl; then
6249 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6250 elif test -x /usr/sbin/sysctl; then
6251 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6252 else
6253 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6254 fi
6255 # And add a safety zone
6256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6258 ;;
6259
6260 interix*)
6261 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6262 lt_cv_sys_max_cmd_len=196608
6263 ;;
6264
6265 os2*)
6266 # The test takes a long time on OS/2.
6267 lt_cv_sys_max_cmd_len=8192
6268 ;;
6269
6270 osf*)
6271 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6272 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6273 # nice to cause kernel panics so lets avoid the loop below.
6274 # First set a reasonable default.
6275 lt_cv_sys_max_cmd_len=16384
6276 #
6277 if test -x /sbin/sysconfig; then
6278 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6279 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6280 esac
6281 fi
6282 ;;
6283 sco3.2v5*)
6284 lt_cv_sys_max_cmd_len=102400
6285 ;;
6286 sysv5* | sco5v6* | sysv4.2uw2*)
6287 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6288 if test -n "$kargmax"; then
6289 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6290 else
6291 lt_cv_sys_max_cmd_len=32768
6292 fi
6293 ;;
6294 *)
6295 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6296 if test -n "$lt_cv_sys_max_cmd_len" && \
6297 test undefined != "$lt_cv_sys_max_cmd_len"; then
6298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6300 else
6301 # Make teststring a little bigger before we do anything with it.
6302 # a 1K string should be a reasonable start.
6303 for i in 1 2 3 4 5 6 7 8; do
6304 teststring=$teststring$teststring
6305 done
6306 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6307 # If test is not a shell built-in, we'll probably end up computing a
6308 # maximum length that is only half of the actual maximum length, but
6309 # we can't tell.
6310 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6311 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6312 test 17 != "$i" # 1/2 MB should be enough
6313 do
6314 i=`expr $i + 1`
6315 teststring=$teststring$teststring
6316 done
6317 # Only check the string length outside the loop.
6318 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6319 teststring=
6320 # Add a significant safety factor because C++ compilers can tack on
6321 # massive amounts of additional arguments before passing them to the
6322 # linker. It appears as though 1/2 is a usable value.
6323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6324 fi
6325 ;;
6326 esac
6327
6328 fi
6329
6330 if test -n "$lt_cv_sys_max_cmd_len"; then
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6332 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6333 else
6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6335 printf "%s\n" "none" >&6; }
6336 fi
6337 max_cmd_len=$lt_cv_sys_max_cmd_len
6338
6339
6340
6341
6342
6343
6344 : ${CP="cp -f"}
6345 : ${MV="mv -f"}
6346 : ${RM="rm -f"}
6347
6348 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6349 lt_unset=unset
6350 else
6351 lt_unset=false
6352 fi
6353
6354
6355
6356
6357
6358 # test EBCDIC or ASCII
6359 case `echo X|tr X '\101'` in
6360 A) # ASCII based system
6361 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6362 lt_SP2NL='tr \040 \012'
6363 lt_NL2SP='tr \015\012 \040\040'
6364 ;;
6365 *) # EBCDIC based system
6366 lt_SP2NL='tr \100 \n'
6367 lt_NL2SP='tr \r\n \100\100'
6368 ;;
6369 esac
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6380 printf %s "checking how to convert $build file names to $host format... " >&6; }
6381 if test ${lt_cv_to_host_file_cmd+y}
6382 then :
6383 printf %s "(cached) " >&6
6384 else $as_nop
6385 case $host in
6386 *-*-mingw* )
6387 case $build in
6388 *-*-mingw* ) # actually msys
6389 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6390 ;;
6391 *-*-cygwin* )
6392 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6393 ;;
6394 * ) # otherwise, assume *nix
6395 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6396 ;;
6397 esac
6398 ;;
6399 *-*-cygwin* )
6400 case $build in
6401 *-*-mingw* ) # actually msys
6402 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6403 ;;
6404 *-*-cygwin* )
6405 lt_cv_to_host_file_cmd=func_convert_file_noop
6406 ;;
6407 * ) # otherwise, assume *nix
6408 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6409 ;;
6410 esac
6411 ;;
6412 * ) # unhandled hosts (and "normal" native builds)
6413 lt_cv_to_host_file_cmd=func_convert_file_noop
6414 ;;
6415 esac
6416
6417 fi
6418
6419 to_host_file_cmd=$lt_cv_to_host_file_cmd
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6421 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6422
6423
6424
6425
6426
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6428 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6429 if test ${lt_cv_to_tool_file_cmd+y}
6430 then :
6431 printf %s "(cached) " >&6
6432 else $as_nop
6433 #assume ordinary cross tools, or native build.
6434 lt_cv_to_tool_file_cmd=func_convert_file_noop
6435 case $host in
6436 *-*-mingw* )
6437 case $build in
6438 *-*-mingw* ) # actually msys
6439 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6440 ;;
6441 esac
6442 ;;
6443 esac
6444
6445 fi
6446
6447 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6449 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6450
6451
6452
6453
6454
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6456 printf %s "checking for $LD option to reload object files... " >&6; }
6457 if test ${lt_cv_ld_reload_flag+y}
6458 then :
6459 printf %s "(cached) " >&6
6460 else $as_nop
6461 lt_cv_ld_reload_flag='-r'
6462 fi
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6464 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6465 reload_flag=$lt_cv_ld_reload_flag
6466 case $reload_flag in
6467 "" | " "*) ;;
6468 *) reload_flag=" $reload_flag" ;;
6469 esac
6470 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6471 case $host_os in
6472 cygwin* | mingw* | pw32* | cegcc*)
6473 if test yes != "$GCC"; then
6474 reload_cmds=false
6475 fi
6476 ;;
6477 darwin*)
6478 if test yes = "$GCC"; then
6479 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6480 else
6481 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6482 fi
6483 ;;
6484 esac
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 if test -n "$ac_tool_prefix"; then
6495 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6496 set dummy ${ac_tool_prefix}file; ac_word=$2
6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 printf %s "checking for $ac_word... " >&6; }
6499 if test ${ac_cv_prog_FILECMD+y}
6500 then :
6501 printf %s "(cached) " >&6
6502 else $as_nop
6503 if test -n "$FILECMD"; then
6504 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6508 do
6509 IFS=$as_save_IFS
6510 case $as_dir in #(((
6511 '') as_dir=./ ;;
6512 */) ;;
6513 *) as_dir=$as_dir/ ;;
6514 esac
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521 done
6522 done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 FILECMD=$ac_cv_prog_FILECMD
6528 if test -n "$FILECMD"; then
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6530 printf "%s\n" "$FILECMD" >&6; }
6531 else
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 printf "%s\n" "no" >&6; }
6534 fi
6535
6536
6537 fi
6538 if test -z "$ac_cv_prog_FILECMD"; then
6539 ac_ct_FILECMD=$FILECMD
6540 # Extract the first word of "file", so it can be a program name with args.
6541 set dummy file; ac_word=$2
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 printf %s "checking for $ac_word... " >&6; }
6544 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6545 then :
6546 printf %s "(cached) " >&6
6547 else $as_nop
6548 if test -n "$ac_ct_FILECMD"; then
6549 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554 IFS=$as_save_IFS
6555 case $as_dir in #(((
6556 '') as_dir=./ ;;
6557 */) ;;
6558 *) as_dir=$as_dir/ ;;
6559 esac
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_ac_ct_FILECMD="file"
6563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566 done
6567 done
6568 IFS=$as_save_IFS
6569
6570 fi
6571 fi
6572 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6573 if test -n "$ac_ct_FILECMD"; then
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6575 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6576 else
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 printf "%s\n" "no" >&6; }
6579 fi
6580
6581 if test "x$ac_ct_FILECMD" = x; then
6582 FILECMD=":"
6583 else
6584 case $cross_compiling:$ac_tool_warned in
6585 yes:)
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6589 esac
6590 FILECMD=$ac_ct_FILECMD
6591 fi
6592 else
6593 FILECMD="$ac_cv_prog_FILECMD"
6594 fi
6595
6596
6597
6598
6599
6600
6601
6602 if test -n "$ac_tool_prefix"; then
6603 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 printf %s "checking for $ac_word... " >&6; }
6607 if test ${ac_cv_prog_OBJDUMP+y}
6608 then :
6609 printf %s "(cached) " >&6
6610 else $as_nop
6611 if test -n "$OBJDUMP"; then
6612 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617 IFS=$as_save_IFS
6618 case $as_dir in #(((
6619 '') as_dir=./ ;;
6620 */) ;;
6621 *) as_dir=$as_dir/ ;;
6622 esac
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 OBJDUMP=$ac_cv_prog_OBJDUMP
6636 if test -n "$OBJDUMP"; then
6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6638 printf "%s\n" "$OBJDUMP" >&6; }
6639 else
6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 printf "%s\n" "no" >&6; }
6642 fi
6643
6644
6645 fi
6646 if test -z "$ac_cv_prog_OBJDUMP"; then
6647 ac_ct_OBJDUMP=$OBJDUMP
6648 # Extract the first word of "objdump", so it can be a program name with args.
6649 set dummy objdump; ac_word=$2
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 printf %s "checking for $ac_word... " >&6; }
6652 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6653 then :
6654 printf %s "(cached) " >&6
6655 else $as_nop
6656 if test -n "$ac_ct_OBJDUMP"; then
6657 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662 IFS=$as_save_IFS
6663 case $as_dir in #(((
6664 '') as_dir=./ ;;
6665 */) ;;
6666 *) as_dir=$as_dir/ ;;
6667 esac
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6681 if test -n "$ac_ct_OBJDUMP"; then
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6683 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6684 else
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 printf "%s\n" "no" >&6; }
6687 fi
6688
6689 if test "x$ac_ct_OBJDUMP" = x; then
6690 OBJDUMP="false"
6691 else
6692 case $cross_compiling:$ac_tool_warned in
6693 yes:)
6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696 ac_tool_warned=yes ;;
6697 esac
6698 OBJDUMP=$ac_ct_OBJDUMP
6699 fi
6700 else
6701 OBJDUMP="$ac_cv_prog_OBJDUMP"
6702 fi
6703
6704 test -z "$OBJDUMP" && OBJDUMP=objdump
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6715 printf %s "checking how to recognize dependent libraries... " >&6; }
6716 if test ${lt_cv_deplibs_check_method+y}
6717 then :
6718 printf %s "(cached) " >&6
6719 else $as_nop
6720 lt_cv_file_magic_cmd='$MAGIC_CMD'
6721 lt_cv_file_magic_test_file=
6722 lt_cv_deplibs_check_method='unknown'
6723 # Need to set the preceding variable on all platforms that support
6724 # interlibrary dependencies.
6725 # 'none' -- dependencies not supported.
6726 # 'unknown' -- same as none, but documents that we really don't know.
6727 # 'pass_all' -- all dependencies passed with no checks.
6728 # 'test_compile' -- check by making test program.
6729 # 'file_magic [[regex]]' -- check by looking for files in library path
6730 # that responds to the $file_magic_cmd with a given extended regex.
6731 # If you have 'file' or equivalent on your system and you're not sure
6732 # whether 'pass_all' will *always* work, you probably want this one.
6733
6734 case $host_os in
6735 aix[4-9]*)
6736 lt_cv_deplibs_check_method=pass_all
6737 ;;
6738
6739 beos*)
6740 lt_cv_deplibs_check_method=pass_all
6741 ;;
6742
6743 bsdi[45]*)
6744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6745 lt_cv_file_magic_cmd='$FILECMD -L'
6746 lt_cv_file_magic_test_file=/shlib/libc.so
6747 ;;
6748
6749 cygwin*)
6750 # func_win32_libid is a shell function defined in ltmain.sh
6751 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6752 lt_cv_file_magic_cmd='func_win32_libid'
6753 ;;
6754
6755 mingw* | pw32*)
6756 # Base MSYS/MinGW do not provide the 'file' command needed by
6757 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6758 # unless we find 'file', for example because we are cross-compiling.
6759 if ( file / ) >/dev/null 2>&1; then
6760 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6761 lt_cv_file_magic_cmd='func_win32_libid'
6762 else
6763 # Keep this pattern in sync with the one in func_win32_libid.
6764 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6765 lt_cv_file_magic_cmd='$OBJDUMP -f'
6766 fi
6767 ;;
6768
6769 cegcc*)
6770 # use the weaker test based on 'objdump'. See mingw*.
6771 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6772 lt_cv_file_magic_cmd='$OBJDUMP -f'
6773 ;;
6774
6775 darwin* | rhapsody*)
6776 lt_cv_deplibs_check_method=pass_all
6777 ;;
6778
6779 freebsd* | dragonfly* | midnightbsd*)
6780 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6781 case $host_cpu in
6782 i*86 )
6783 # Not sure whether the presence of OpenBSD here was a mistake.
6784 # Let's accept both of them until this is cleared up.
6785 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6786 lt_cv_file_magic_cmd=$FILECMD
6787 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6788 ;;
6789 esac
6790 else
6791 lt_cv_deplibs_check_method=pass_all
6792 fi
6793 ;;
6794
6795 haiku*)
6796 lt_cv_deplibs_check_method=pass_all
6797 ;;
6798
6799 hpux10.20* | hpux11*)
6800 lt_cv_file_magic_cmd=$FILECMD
6801 case $host_cpu in
6802 ia64*)
6803 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6804 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6805 ;;
6806 hppa*64*)
6807 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]'
6808 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6809 ;;
6810 *)
6811 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6812 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6813 ;;
6814 esac
6815 ;;
6816
6817 interix[3-9]*)
6818 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6820 ;;
6821
6822 irix5* | irix6* | nonstopux*)
6823 case $LD in
6824 *-32|*"-32 ") libmagic=32-bit;;
6825 *-n32|*"-n32 ") libmagic=N32;;
6826 *-64|*"-64 ") libmagic=64-bit;;
6827 *) libmagic=never-match;;
6828 esac
6829 lt_cv_deplibs_check_method=pass_all
6830 ;;
6831
6832 # This must be glibc/ELF.
6833 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6834 lt_cv_deplibs_check_method=pass_all
6835 ;;
6836
6837 netbsd* | netbsdelf*-gnu)
6838 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6840 else
6841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6842 fi
6843 ;;
6844
6845 newos6*)
6846 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6847 lt_cv_file_magic_cmd=$FILECMD
6848 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6849 ;;
6850
6851 *nto* | *qnx*)
6852 lt_cv_deplibs_check_method=pass_all
6853 ;;
6854
6855 openbsd* | bitrig*)
6856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6857 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6858 else
6859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6860 fi
6861 ;;
6862
6863 osf3* | osf4* | osf5*)
6864 lt_cv_deplibs_check_method=pass_all
6865 ;;
6866
6867 rdos*)
6868 lt_cv_deplibs_check_method=pass_all
6869 ;;
6870
6871 solaris*)
6872 lt_cv_deplibs_check_method=pass_all
6873 ;;
6874
6875 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6876 lt_cv_deplibs_check_method=pass_all
6877 ;;
6878
6879 sysv4 | sysv4.3*)
6880 case $host_vendor in
6881 motorola)
6882 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]'
6883 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6884 ;;
6885 ncr)
6886 lt_cv_deplibs_check_method=pass_all
6887 ;;
6888 sequent)
6889 lt_cv_file_magic_cmd='/bin/file'
6890 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6891 ;;
6892 sni)
6893 lt_cv_file_magic_cmd='/bin/file'
6894 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6895 lt_cv_file_magic_test_file=/lib/libc.so
6896 ;;
6897 siemens)
6898 lt_cv_deplibs_check_method=pass_all
6899 ;;
6900 pc)
6901 lt_cv_deplibs_check_method=pass_all
6902 ;;
6903 esac
6904 ;;
6905
6906 tpf*)
6907 lt_cv_deplibs_check_method=pass_all
6908 ;;
6909 os2*)
6910 lt_cv_deplibs_check_method=pass_all
6911 ;;
6912 esac
6913
6914 fi
6915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6916 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6917
6918 file_magic_glob=
6919 want_nocaseglob=no
6920 if test "$build" = "$host"; then
6921 case $host_os in
6922 mingw* | pw32*)
6923 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6924 want_nocaseglob=yes
6925 else
6926 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6927 fi
6928 ;;
6929 esac
6930 fi
6931
6932 file_magic_cmd=$lt_cv_file_magic_cmd
6933 deplibs_check_method=$lt_cv_deplibs_check_method
6934 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957 if test -n "$ac_tool_prefix"; then
6958 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6959 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 printf %s "checking for $ac_word... " >&6; }
6962 if test ${ac_cv_prog_DLLTOOL+y}
6963 then :
6964 printf %s "(cached) " >&6
6965 else $as_nop
6966 if test -n "$DLLTOOL"; then
6967 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6968 else
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6971 do
6972 IFS=$as_save_IFS
6973 case $as_dir in #(((
6974 '') as_dir=./ ;;
6975 */) ;;
6976 *) as_dir=$as_dir/ ;;
6977 esac
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6982 break 2
6983 fi
6984 done
6985 done
6986 IFS=$as_save_IFS
6987
6988 fi
6989 fi
6990 DLLTOOL=$ac_cv_prog_DLLTOOL
6991 if test -n "$DLLTOOL"; then
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6993 printf "%s\n" "$DLLTOOL" >&6; }
6994 else
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 printf "%s\n" "no" >&6; }
6997 fi
6998
6999
7000 fi
7001 if test -z "$ac_cv_prog_DLLTOOL"; then
7002 ac_ct_DLLTOOL=$DLLTOOL
7003 # Extract the first word of "dlltool", so it can be a program name with args.
7004 set dummy dlltool; ac_word=$2
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 printf %s "checking for $ac_word... " >&6; }
7007 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7008 then :
7009 printf %s "(cached) " >&6
7010 else $as_nop
7011 if test -n "$ac_ct_DLLTOOL"; then
7012 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017 IFS=$as_save_IFS
7018 case $as_dir in #(((
7019 '') as_dir=./ ;;
7020 */) ;;
7021 *) as_dir=$as_dir/ ;;
7022 esac
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7025 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029 done
7030 done
7031 IFS=$as_save_IFS
7032
7033 fi
7034 fi
7035 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7036 if test -n "$ac_ct_DLLTOOL"; then
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7038 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7039 else
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 printf "%s\n" "no" >&6; }
7042 fi
7043
7044 if test "x$ac_ct_DLLTOOL" = x; then
7045 DLLTOOL="false"
7046 else
7047 case $cross_compiling:$ac_tool_warned in
7048 yes:)
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051 ac_tool_warned=yes ;;
7052 esac
7053 DLLTOOL=$ac_ct_DLLTOOL
7054 fi
7055 else
7056 DLLTOOL="$ac_cv_prog_DLLTOOL"
7057 fi
7058
7059 test -z "$DLLTOOL" && DLLTOOL=dlltool
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7071 printf %s "checking how to associate runtime and link libraries... " >&6; }
7072 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7073 then :
7074 printf %s "(cached) " >&6
7075 else $as_nop
7076 lt_cv_sharedlib_from_linklib_cmd='unknown'
7077
7078 case $host_os in
7079 cygwin* | mingw* | pw32* | cegcc*)
7080 # two different shell functions defined in ltmain.sh;
7081 # decide which one to use based on capabilities of $DLLTOOL
7082 case `$DLLTOOL --help 2>&1` in
7083 *--identify-strict*)
7084 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7085 ;;
7086 *)
7087 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7088 ;;
7089 esac
7090 ;;
7091 *)
7092 # fallback: assume linklib IS sharedlib
7093 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7094 ;;
7095 esac
7096
7097 fi
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7099 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7100 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7101 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7102
7103
7104
7105
7106
7107
7108
7109 if test -n "$ac_tool_prefix"; then
7110 for ac_prog in ar
7111 do
7112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 printf %s "checking for $ac_word... " >&6; }
7116 if test ${ac_cv_prog_AR+y}
7117 then :
7118 printf %s "(cached) " >&6
7119 else $as_nop
7120 if test -n "$AR"; then
7121 ac_cv_prog_AR="$AR" # Let the user override the test.
7122 else
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7125 do
7126 IFS=$as_save_IFS
7127 case $as_dir in #(((
7128 '') as_dir=./ ;;
7129 */) ;;
7130 *) as_dir=$as_dir/ ;;
7131 esac
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7136 break 2
7137 fi
7138 done
7139 done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 AR=$ac_cv_prog_AR
7145 if test -n "$AR"; then
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7147 printf "%s\n" "$AR" >&6; }
7148 else
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 printf "%s\n" "no" >&6; }
7151 fi
7152
7153
7154 test -n "$AR" && break
7155 done
7156 fi
7157 if test -z "$AR"; then
7158 ac_ct_AR=$AR
7159 for ac_prog in ar
7160 do
7161 # Extract the first word of "$ac_prog", so it can be a program name with args.
7162 set dummy $ac_prog; ac_word=$2
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 printf %s "checking for $ac_word... " >&6; }
7165 if test ${ac_cv_prog_ac_ct_AR+y}
7166 then :
7167 printf %s "(cached) " >&6
7168 else $as_nop
7169 if test -n "$ac_ct_AR"; then
7170 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175 IFS=$as_save_IFS
7176 case $as_dir in #(((
7177 '') as_dir=./ ;;
7178 */) ;;
7179 *) as_dir=$as_dir/ ;;
7180 esac
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7183 ac_cv_prog_ac_ct_AR="$ac_prog"
7184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7194 if test -n "$ac_ct_AR"; then
7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7196 printf "%s\n" "$ac_ct_AR" >&6; }
7197 else
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 printf "%s\n" "no" >&6; }
7200 fi
7201
7202
7203 test -n "$ac_ct_AR" && break
7204 done
7205
7206 if test "x$ac_ct_AR" = x; then
7207 AR="false"
7208 else
7209 case $cross_compiling:$ac_tool_warned in
7210 yes:)
7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7212 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7213 ac_tool_warned=yes ;;
7214 esac
7215 AR=$ac_ct_AR
7216 fi
7217 fi
7218
7219 : ${AR=ar}
7220
7221
7222
7223
7224
7225
7226 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7227 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7228 # higher priority because thats what people were doing historically (setting
7229 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7230 # variable obsoleted/removed.
7231
7232 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7233 lt_ar_flags=$AR_FLAGS
7234
7235
7236
7237
7238
7239
7240 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7241 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7242
7243
7244
7245
7246
7247
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7249 printf %s "checking for archiver @FILE support... " >&6; }
7250 if test ${lt_cv_ar_at_file+y}
7251 then :
7252 printf %s "(cached) " >&6
7253 else $as_nop
7254 lt_cv_ar_at_file=no
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257
7258 int
7259 main (void)
7260 {
7261
7262 ;
7263 return 0;
7264 }
7265 _ACEOF
7266 if ac_fn_c_try_compile "$LINENO"
7267 then :
7268 echo conftest.$ac_objext > conftest.lst
7269 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7271 (eval $lt_ar_try) 2>&5
7272 ac_status=$?
7273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7274 test $ac_status = 0; }
7275 if test 0 -eq "$ac_status"; then
7276 # Ensure the archiver fails upon bogus file names.
7277 rm -f conftest.$ac_objext libconftest.a
7278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7279 (eval $lt_ar_try) 2>&5
7280 ac_status=$?
7281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7282 test $ac_status = 0; }
7283 if test 0 -ne "$ac_status"; then
7284 lt_cv_ar_at_file=@
7285 fi
7286 fi
7287 rm -f conftest.* libconftest.a
7288
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7291
7292 fi
7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7294 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7295
7296 if test no = "$lt_cv_ar_at_file"; then
7297 archiver_list_spec=
7298 else
7299 archiver_list_spec=$lt_cv_ar_at_file
7300 fi
7301
7302
7303
7304
7305
7306
7307
7308 if test -n "$ac_tool_prefix"; then
7309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}strip; ac_word=$2
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 printf %s "checking for $ac_word... " >&6; }
7313 if test ${ac_cv_prog_STRIP+y}
7314 then :
7315 printf %s "(cached) " >&6
7316 else $as_nop
7317 if test -n "$STRIP"; then
7318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323 IFS=$as_save_IFS
7324 case $as_dir in #(((
7325 '') as_dir=./ ;;
7326 */) ;;
7327 *) as_dir=$as_dir/ ;;
7328 esac
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7333 break 2
7334 fi
7335 done
7336 done
7337 IFS=$as_save_IFS
7338
7339 fi
7340 fi
7341 STRIP=$ac_cv_prog_STRIP
7342 if test -n "$STRIP"; then
7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7344 printf "%s\n" "$STRIP" >&6; }
7345 else
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 printf "%s\n" "no" >&6; }
7348 fi
7349
7350
7351 fi
7352 if test -z "$ac_cv_prog_STRIP"; then
7353 ac_ct_STRIP=$STRIP
7354 # Extract the first word of "strip", so it can be a program name with args.
7355 set dummy strip; ac_word=$2
7356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 printf %s "checking for $ac_word... " >&6; }
7358 if test ${ac_cv_prog_ac_ct_STRIP+y}
7359 then :
7360 printf %s "(cached) " >&6
7361 else $as_nop
7362 if test -n "$ac_ct_STRIP"; then
7363 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368 IFS=$as_save_IFS
7369 case $as_dir in #(((
7370 '') as_dir=./ ;;
7371 */) ;;
7372 *) as_dir=$as_dir/ ;;
7373 esac
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7376 ac_cv_prog_ac_ct_STRIP="strip"
7377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7378 break 2
7379 fi
7380 done
7381 done
7382 IFS=$as_save_IFS
7383
7384 fi
7385 fi
7386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7387 if test -n "$ac_ct_STRIP"; then
7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7389 printf "%s\n" "$ac_ct_STRIP" >&6; }
7390 else
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 printf "%s\n" "no" >&6; }
7393 fi
7394
7395 if test "x$ac_ct_STRIP" = x; then
7396 STRIP=":"
7397 else
7398 case $cross_compiling:$ac_tool_warned in
7399 yes:)
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7401 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7402 ac_tool_warned=yes ;;
7403 esac
7404 STRIP=$ac_ct_STRIP
7405 fi
7406 else
7407 STRIP="$ac_cv_prog_STRIP"
7408 fi
7409
7410 test -z "$STRIP" && STRIP=:
7411
7412
7413
7414
7415
7416
7417 if test -n "$ac_tool_prefix"; then
7418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7419 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 printf %s "checking for $ac_word... " >&6; }
7422 if test ${ac_cv_prog_RANLIB+y}
7423 then :
7424 printf %s "(cached) " >&6
7425 else $as_nop
7426 if test -n "$RANLIB"; then
7427 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432 IFS=$as_save_IFS
7433 case $as_dir in #(((
7434 '') as_dir=./ ;;
7435 */) ;;
7436 *) as_dir=$as_dir/ ;;
7437 esac
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7442 break 2
7443 fi
7444 done
7445 done
7446 IFS=$as_save_IFS
7447
7448 fi
7449 fi
7450 RANLIB=$ac_cv_prog_RANLIB
7451 if test -n "$RANLIB"; then
7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7453 printf "%s\n" "$RANLIB" >&6; }
7454 else
7455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 printf "%s\n" "no" >&6; }
7457 fi
7458
7459
7460 fi
7461 if test -z "$ac_cv_prog_RANLIB"; then
7462 ac_ct_RANLIB=$RANLIB
7463 # Extract the first word of "ranlib", so it can be a program name with args.
7464 set dummy ranlib; ac_word=$2
7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 printf %s "checking for $ac_word... " >&6; }
7467 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7468 then :
7469 printf %s "(cached) " >&6
7470 else $as_nop
7471 if test -n "$ac_ct_RANLIB"; then
7472 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477 IFS=$as_save_IFS
7478 case $as_dir in #(((
7479 '') as_dir=./ ;;
7480 */) ;;
7481 *) as_dir=$as_dir/ ;;
7482 esac
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_ac_ct_RANLIB="ranlib"
7486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489 done
7490 done
7491 IFS=$as_save_IFS
7492
7493 fi
7494 fi
7495 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7496 if test -n "$ac_ct_RANLIB"; then
7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7498 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7499 else
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 printf "%s\n" "no" >&6; }
7502 fi
7503
7504 if test "x$ac_ct_RANLIB" = x; then
7505 RANLIB=":"
7506 else
7507 case $cross_compiling:$ac_tool_warned in
7508 yes:)
7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7510 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511 ac_tool_warned=yes ;;
7512 esac
7513 RANLIB=$ac_ct_RANLIB
7514 fi
7515 else
7516 RANLIB="$ac_cv_prog_RANLIB"
7517 fi
7518
7519 test -z "$RANLIB" && RANLIB=:
7520
7521
7522
7523
7524
7525
7526 # Determine commands to create old-style static archives.
7527 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7528 old_postinstall_cmds='chmod 644 $oldlib'
7529 old_postuninstall_cmds=
7530
7531 if test -n "$RANLIB"; then
7532 case $host_os in
7533 bitrig* | openbsd*)
7534 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7535 ;;
7536 *)
7537 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7538 ;;
7539 esac
7540 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7541 fi
7542
7543 case $host_os in
7544 darwin*)
7545 lock_old_archive_extraction=yes ;;
7546 *)
7547 lock_old_archive_extraction=no ;;
7548 esac
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588 # If no C compiler was specified, use CC.
7589 LTCC=${LTCC-"$CC"}
7590
7591 # If no C compiler flags were specified, use CFLAGS.
7592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7593
7594 # Allow CC to be a program name with arguments.
7595 compiler=$CC
7596
7597
7598 # Check for command to grab the raw symbol name followed by C symbol from nm.
7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7600 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7601 if test ${lt_cv_sys_global_symbol_pipe+y}
7602 then :
7603 printf %s "(cached) " >&6
7604 else $as_nop
7605
7606 # These are sane defaults that work on at least a few old systems.
7607 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7608
7609 # Character class describing NM global symbol codes.
7610 symcode='[BCDEGRST]'
7611
7612 # Regexp to match symbols that can be accessed directly from C.
7613 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7614
7615 # Define system-specific variables.
7616 case $host_os in
7617 aix*)
7618 symcode='[BCDT]'
7619 ;;
7620 cygwin* | mingw* | pw32* | cegcc*)
7621 symcode='[ABCDGISTW]'
7622 ;;
7623 hpux*)
7624 if test ia64 = "$host_cpu"; then
7625 symcode='[ABCDEGRST]'
7626 fi
7627 ;;
7628 irix* | nonstopux*)
7629 symcode='[BCDEGRST]'
7630 ;;
7631 osf*)
7632 symcode='[BCDEGQRST]'
7633 ;;
7634 solaris*)
7635 symcode='[BDRT]'
7636 ;;
7637 sco3.2v5*)
7638 symcode='[DT]'
7639 ;;
7640 sysv4.2uw2*)
7641 symcode='[DT]'
7642 ;;
7643 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7644 symcode='[ABDT]'
7645 ;;
7646 sysv4)
7647 symcode='[DFNSTU]'
7648 ;;
7649 esac
7650
7651 # If we're using GNU nm, then use its standard symbol codes.
7652 case `$NM -V 2>&1` in
7653 *GNU* | *'with BFD'*)
7654 symcode='[ABCDGIRSTW]' ;;
7655 esac
7656
7657 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7658 # Gets list of data symbols to import.
7659 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7660 # Adjust the below global symbol transforms to fixup imported variables.
7661 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7662 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7663 lt_c_name_lib_hook="\
7664 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7665 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7666 else
7667 # Disable hooks by default.
7668 lt_cv_sys_global_symbol_to_import=
7669 lt_cdecl_hook=
7670 lt_c_name_hook=
7671 lt_c_name_lib_hook=
7672 fi
7673
7674 # Transform an extracted symbol line into a proper C declaration.
7675 # Some systems (esp. on ia64) link data and code symbols differently,
7676 # so use this general approach.
7677 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7678 $lt_cdecl_hook\
7679 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7680 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7681
7682 # Transform an extracted symbol line into symbol name and symbol address
7683 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7684 $lt_c_name_hook\
7685 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7686 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7687
7688 # Transform an extracted symbol line into symbol name with lib prefix and
7689 # symbol address.
7690 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7691 $lt_c_name_lib_hook\
7692 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7693 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7694 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7695
7696 # Handle CRLF in mingw tool chain
7697 opt_cr=
7698 case $build_os in
7699 mingw*)
7700 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7701 ;;
7702 esac
7703
7704 # Try without a prefix underscore, then with it.
7705 for ac_symprfx in "" "_"; do
7706
7707 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7708 symxfrm="\\1 $ac_symprfx\\2 \\2"
7709
7710 # Write the raw and C identifiers.
7711 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7712 # Fake it for dumpbin and say T for any non-static function,
7713 # D for any global variable and I for any imported variable.
7714 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7715 # which start with @ or ?.
7716 lt_cv_sys_global_symbol_pipe="$AWK '"\
7717 " {last_section=section; section=\$ 3};"\
7718 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7719 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7720 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7721 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7722 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7723 " \$ 0!~/External *\|/{next};"\
7724 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7725 " {if(hide[section]) next};"\
7726 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7727 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7728 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7729 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7730 " ' prfx=^$ac_symprfx"
7731 else
7732 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7733 fi
7734 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7735
7736 # Check to see that the pipe works correctly.
7737 pipe_works=no
7738
7739 rm -f conftest*
7740 cat > conftest.$ac_ext <<_LT_EOF
7741 #ifdef __cplusplus
7742 extern "C" {
7743 #endif
7744 char nm_test_var;
7745 void nm_test_func(void);
7746 void nm_test_func(void){}
7747 #ifdef __cplusplus
7748 }
7749 #endif
7750 int main(){nm_test_var='a';nm_test_func();return(0);}
7751 _LT_EOF
7752
7753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7754 (eval $ac_compile) 2>&5
7755 ac_status=$?
7756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757 test $ac_status = 0; }; then
7758 # Now try to grab the symbols.
7759 nlist=conftest.nm
7760 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7761 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7762 # Try sorting and uniquifying the output.
7763 if sort "$nlist" | uniq > "$nlist"T; then
7764 mv -f "$nlist"T "$nlist"
7765 else
7766 rm -f "$nlist"T
7767 fi
7768
7769 # Make sure that we snagged all the symbols we need.
7770 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7771 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7772 cat <<_LT_EOF > conftest.$ac_ext
7773 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7774 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7775 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7776 relocations are performed -- see ld's documentation on pseudo-relocs. */
7777 # define LT_DLSYM_CONST
7778 #elif defined __osf__
7779 /* This system does not cope well with relocations in const data. */
7780 # define LT_DLSYM_CONST
7781 #else
7782 # define LT_DLSYM_CONST const
7783 #endif
7784
7785 #ifdef __cplusplus
7786 extern "C" {
7787 #endif
7788
7789 _LT_EOF
7790 # Now generate the symbol file.
7791 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7792
7793 cat <<_LT_EOF >> conftest.$ac_ext
7794
7795 /* The mapping between symbol names and symbols. */
7796 LT_DLSYM_CONST struct {
7797 const char *name;
7798 void *address;
7799 }
7800 lt__PROGRAM__LTX_preloaded_symbols[] =
7801 {
7802 { "@PROGRAM@", (void *) 0 },
7803 _LT_EOF
7804 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7805 cat <<\_LT_EOF >> conftest.$ac_ext
7806 {0, (void *) 0}
7807 };
7808
7809 /* This works around a problem in FreeBSD linker */
7810 #ifdef FREEBSD_WORKAROUND
7811 static const void *lt_preloaded_setup() {
7812 return lt__PROGRAM__LTX_preloaded_symbols;
7813 }
7814 #endif
7815
7816 #ifdef __cplusplus
7817 }
7818 #endif
7819 _LT_EOF
7820 # Now try linking the two files.
7821 mv conftest.$ac_objext conftstm.$ac_objext
7822 lt_globsym_save_LIBS=$LIBS
7823 lt_globsym_save_CFLAGS=$CFLAGS
7824 LIBS=conftstm.$ac_objext
7825 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7827 (eval $ac_link) 2>&5
7828 ac_status=$?
7829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7830 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7831 pipe_works=yes
7832 fi
7833 LIBS=$lt_globsym_save_LIBS
7834 CFLAGS=$lt_globsym_save_CFLAGS
7835 else
7836 echo "cannot find nm_test_func in $nlist" >&5
7837 fi
7838 else
7839 echo "cannot find nm_test_var in $nlist" >&5
7840 fi
7841 else
7842 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7843 fi
7844 else
7845 echo "$progname: failed program was:" >&5
7846 cat conftest.$ac_ext >&5
7847 fi
7848 rm -rf conftest* conftst*
7849
7850 # Do not use the global_symbol_pipe unless it works.
7851 if test yes = "$pipe_works"; then
7852 break
7853 else
7854 lt_cv_sys_global_symbol_pipe=
7855 fi
7856 done
7857
7858 fi
7859
7860 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7861 lt_cv_sys_global_symbol_to_cdecl=
7862 fi
7863 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7865 printf "%s\n" "failed" >&6; }
7866 else
7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7868 printf "%s\n" "ok" >&6; }
7869 fi
7870
7871 # Response file support.
7872 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7873 nm_file_list_spec='@'
7874 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7875 nm_file_list_spec='@'
7876 fi
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7915 printf %s "checking for sysroot... " >&6; }
7916
7917 # Check whether --with-sysroot was given.
7918 if test ${with_sysroot+y}
7919 then :
7920 withval=$with_sysroot;
7921 else $as_nop
7922 with_sysroot=no
7923 fi
7924
7925
7926 lt_sysroot=
7927 case $with_sysroot in #(
7928 yes)
7929 if test yes = "$GCC"; then
7930 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7931 fi
7932 ;; #(
7933 /*)
7934 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7935 ;; #(
7936 no|'')
7937 ;; #(
7938 *)
7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7940 printf "%s\n" "$with_sysroot" >&6; }
7941 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7942 ;;
7943 esac
7944
7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7946 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7947
7948
7949
7950
7951
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7953 printf %s "checking for a working dd... " >&6; }
7954 if test ${ac_cv_path_lt_DD+y}
7955 then :
7956 printf %s "(cached) " >&6
7957 else $as_nop
7958 printf 0123456789abcdef0123456789abcdef >conftest.i
7959 cat conftest.i conftest.i >conftest2.i
7960 : ${lt_DD:=$DD}
7961 if test -z "$lt_DD"; then
7962 ac_path_lt_DD_found=false
7963 # Loop through the user's path and test for each of PROGNAME-LIST
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967 IFS=$as_save_IFS
7968 case $as_dir in #(((
7969 '') as_dir=./ ;;
7970 */) ;;
7971 *) as_dir=$as_dir/ ;;
7972 esac
7973 for ac_prog in dd
7974 do
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7977 as_fn_executable_p "$ac_path_lt_DD" || continue
7978 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7979 cmp -s conftest.i conftest.out \
7980 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7981 fi
7982 $ac_path_lt_DD_found && break 3
7983 done
7984 done
7985 done
7986 IFS=$as_save_IFS
7987 if test -z "$ac_cv_path_lt_DD"; then
7988 :
7989 fi
7990 else
7991 ac_cv_path_lt_DD=$lt_DD
7992 fi
7993
7994 rm -f conftest.i conftest2.i conftest.out
7995 fi
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7997 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7998
7999
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8001 printf %s "checking how to truncate binary pipes... " >&6; }
8002 if test ${lt_cv_truncate_bin+y}
8003 then :
8004 printf %s "(cached) " >&6
8005 else $as_nop
8006 printf 0123456789abcdef0123456789abcdef >conftest.i
8007 cat conftest.i conftest.i >conftest2.i
8008 lt_cv_truncate_bin=
8009 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8010 cmp -s conftest.i conftest.out \
8011 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8012 fi
8013 rm -f conftest.i conftest2.i conftest.out
8014 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8015 fi
8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8017 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8018
8019
8020
8021
8022
8023
8024
8025 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8026 func_cc_basename ()
8027 {
8028 for cc_temp in $*""; do
8029 case $cc_temp in
8030 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8031 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8032 \-*) ;;
8033 *) break;;
8034 esac
8035 done
8036 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8037 }
8038
8039 # Check whether --enable-libtool-lock was given.
8040 if test ${enable_libtool_lock+y}
8041 then :
8042 enableval=$enable_libtool_lock;
8043 fi
8044
8045 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8046
8047 # Some flags need to be propagated to the compiler or linker for good
8048 # libtool support.
8049 case $host in
8050 ia64-*-hpux*)
8051 # Find out what ABI is being produced by ac_compile, and set mode
8052 # options accordingly.
8053 echo 'int i;' > conftest.$ac_ext
8054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8055 (eval $ac_compile) 2>&5
8056 ac_status=$?
8057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8058 test $ac_status = 0; }; then
8059 case `$FILECMD conftest.$ac_objext` in
8060 *ELF-32*)
8061 HPUX_IA64_MODE=32
8062 ;;
8063 *ELF-64*)
8064 HPUX_IA64_MODE=64
8065 ;;
8066 esac
8067 fi
8068 rm -rf conftest*
8069 ;;
8070 *-*-irix6*)
8071 # Find out what ABI is being produced by ac_compile, and set linker
8072 # options accordingly.
8073 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8075 (eval $ac_compile) 2>&5
8076 ac_status=$?
8077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8078 test $ac_status = 0; }; then
8079 if test yes = "$lt_cv_prog_gnu_ld"; then
8080 case `$FILECMD conftest.$ac_objext` in
8081 *32-bit*)
8082 LD="${LD-ld} -melf32bsmip"
8083 ;;
8084 *N32*)
8085 LD="${LD-ld} -melf32bmipn32"
8086 ;;
8087 *64-bit*)
8088 LD="${LD-ld} -melf64bmip"
8089 ;;
8090 esac
8091 else
8092 case `$FILECMD conftest.$ac_objext` in
8093 *32-bit*)
8094 LD="${LD-ld} -32"
8095 ;;
8096 *N32*)
8097 LD="${LD-ld} -n32"
8098 ;;
8099 *64-bit*)
8100 LD="${LD-ld} -64"
8101 ;;
8102 esac
8103 fi
8104 fi
8105 rm -rf conftest*
8106 ;;
8107
8108 mips64*-*linux*)
8109 # Find out what ABI is being produced by ac_compile, and set linker
8110 # options accordingly.
8111 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8113 (eval $ac_compile) 2>&5
8114 ac_status=$?
8115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8116 test $ac_status = 0; }; then
8117 emul=elf
8118 case `$FILECMD conftest.$ac_objext` in
8119 *32-bit*)
8120 emul="${emul}32"
8121 ;;
8122 *64-bit*)
8123 emul="${emul}64"
8124 ;;
8125 esac
8126 case `$FILECMD conftest.$ac_objext` in
8127 *MSB*)
8128 emul="${emul}btsmip"
8129 ;;
8130 *LSB*)
8131 emul="${emul}ltsmip"
8132 ;;
8133 esac
8134 case `$FILECMD conftest.$ac_objext` in
8135 *N32*)
8136 emul="${emul}n32"
8137 ;;
8138 esac
8139 LD="${LD-ld} -m $emul"
8140 fi
8141 rm -rf conftest*
8142 ;;
8143
8144 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8145 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8146 # Find out what ABI is being produced by ac_compile, and set linker
8147 # options accordingly. Note that the listed cases only cover the
8148 # situations where additional linker options are needed (such as when
8149 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8150 # vice versa); the common cases where no linker options are needed do
8151 # not appear in the list.
8152 echo 'int i;' > conftest.$ac_ext
8153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8154 (eval $ac_compile) 2>&5
8155 ac_status=$?
8156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8157 test $ac_status = 0; }; then
8158 case `$FILECMD conftest.o` in
8159 *32-bit*)
8160 case $host in
8161 x86_64-*kfreebsd*-gnu)
8162 LD="${LD-ld} -m elf_i386_fbsd"
8163 ;;
8164 x86_64-*linux*)
8165 case `$FILECMD conftest.o` in
8166 *x86-64*)
8167 LD="${LD-ld} -m elf32_x86_64"
8168 ;;
8169 *)
8170 LD="${LD-ld} -m elf_i386"
8171 ;;
8172 esac
8173 ;;
8174 powerpc64le-*linux*)
8175 LD="${LD-ld} -m elf32lppclinux"
8176 ;;
8177 powerpc64-*linux*)
8178 LD="${LD-ld} -m elf32ppclinux"
8179 ;;
8180 s390x-*linux*)
8181 LD="${LD-ld} -m elf_s390"
8182 ;;
8183 sparc64-*linux*)
8184 LD="${LD-ld} -m elf32_sparc"
8185 ;;
8186 esac
8187 ;;
8188 *64-bit*)
8189 case $host in
8190 x86_64-*kfreebsd*-gnu)
8191 LD="${LD-ld} -m elf_x86_64_fbsd"
8192 ;;
8193 x86_64-*linux*)
8194 LD="${LD-ld} -m elf_x86_64"
8195 ;;
8196 powerpcle-*linux*)
8197 LD="${LD-ld} -m elf64lppc"
8198 ;;
8199 powerpc-*linux*)
8200 LD="${LD-ld} -m elf64ppc"
8201 ;;
8202 s390*-*linux*|s390*-*tpf*)
8203 LD="${LD-ld} -m elf64_s390"
8204 ;;
8205 sparc*-*linux*)
8206 LD="${LD-ld} -m elf64_sparc"
8207 ;;
8208 esac
8209 ;;
8210 esac
8211 fi
8212 rm -rf conftest*
8213 ;;
8214
8215 *-*-sco3.2v5*)
8216 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8217 SAVE_CFLAGS=$CFLAGS
8218 CFLAGS="$CFLAGS -belf"
8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8220 printf %s "checking whether the C compiler needs -belf... " >&6; }
8221 if test ${lt_cv_cc_needs_belf+y}
8222 then :
8223 printf %s "(cached) " >&6
8224 else $as_nop
8225 ac_ext=c
8226 ac_cpp='$CPP $CPPFLAGS'
8227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8230
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233
8234 int
8235 main (void)
8236 {
8237
8238 ;
8239 return 0;
8240 }
8241 _ACEOF
8242 if ac_fn_c_try_link "$LINENO"
8243 then :
8244 lt_cv_cc_needs_belf=yes
8245 else $as_nop
8246 lt_cv_cc_needs_belf=no
8247 fi
8248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8249 conftest$ac_exeext conftest.$ac_ext
8250 ac_ext=c
8251 ac_cpp='$CPP $CPPFLAGS'
8252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8255
8256 fi
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8258 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8259 if test yes != "$lt_cv_cc_needs_belf"; then
8260 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8261 CFLAGS=$SAVE_CFLAGS
8262 fi
8263 ;;
8264 *-*solaris*)
8265 # Find out what ABI is being produced by ac_compile, and set linker
8266 # options accordingly.
8267 echo 'int i;' > conftest.$ac_ext
8268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8269 (eval $ac_compile) 2>&5
8270 ac_status=$?
8271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8272 test $ac_status = 0; }; then
8273 case `$FILECMD conftest.o` in
8274 *64-bit*)
8275 case $lt_cv_prog_gnu_ld in
8276 yes*)
8277 case $host in
8278 i?86-*-solaris*|x86_64-*-solaris*)
8279 LD="${LD-ld} -m elf_x86_64"
8280 ;;
8281 sparc*-*-solaris*)
8282 LD="${LD-ld} -m elf64_sparc"
8283 ;;
8284 esac
8285 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8286 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8287 LD=${LD-ld}_sol2
8288 fi
8289 ;;
8290 *)
8291 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8292 LD="${LD-ld} -64"
8293 fi
8294 ;;
8295 esac
8296 ;;
8297 esac
8298 fi
8299 rm -rf conftest*
8300 ;;
8301 esac
8302
8303 need_locks=$enable_libtool_lock
8304
8305 if test -n "$ac_tool_prefix"; then
8306 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8307 set dummy ${ac_tool_prefix}mt; ac_word=$2
8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309 printf %s "checking for $ac_word... " >&6; }
8310 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8311 then :
8312 printf %s "(cached) " >&6
8313 else $as_nop
8314 if test -n "$MANIFEST_TOOL"; then
8315 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8319 do
8320 IFS=$as_save_IFS
8321 case $as_dir in #(((
8322 '') as_dir=./ ;;
8323 */) ;;
8324 *) as_dir=$as_dir/ ;;
8325 esac
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8328 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8330 break 2
8331 fi
8332 done
8333 done
8334 IFS=$as_save_IFS
8335
8336 fi
8337 fi
8338 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8339 if test -n "$MANIFEST_TOOL"; then
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8341 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8342 else
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 printf "%s\n" "no" >&6; }
8345 fi
8346
8347
8348 fi
8349 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8350 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8351 # Extract the first word of "mt", so it can be a program name with args.
8352 set dummy mt; ac_word=$2
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 printf %s "checking for $ac_word... " >&6; }
8355 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8356 then :
8357 printf %s "(cached) " >&6
8358 else $as_nop
8359 if test -n "$ac_ct_MANIFEST_TOOL"; then
8360 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8361 else
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8364 do
8365 IFS=$as_save_IFS
8366 case $as_dir in #(((
8367 '') as_dir=./ ;;
8368 */) ;;
8369 *) as_dir=$as_dir/ ;;
8370 esac
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8373 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8375 break 2
8376 fi
8377 done
8378 done
8379 IFS=$as_save_IFS
8380
8381 fi
8382 fi
8383 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8384 if test -n "$ac_ct_MANIFEST_TOOL"; then
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8386 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8387 else
8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 printf "%s\n" "no" >&6; }
8390 fi
8391
8392 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8393 MANIFEST_TOOL=":"
8394 else
8395 case $cross_compiling:$ac_tool_warned in
8396 yes:)
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8399 ac_tool_warned=yes ;;
8400 esac
8401 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8402 fi
8403 else
8404 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8405 fi
8406
8407 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8409 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8410 if test ${lt_cv_path_mainfest_tool+y}
8411 then :
8412 printf %s "(cached) " >&6
8413 else $as_nop
8414 lt_cv_path_mainfest_tool=no
8415 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8416 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8417 cat conftest.err >&5
8418 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8419 lt_cv_path_mainfest_tool=yes
8420 fi
8421 rm -f conftest*
8422 fi
8423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8424 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8425 if test yes != "$lt_cv_path_mainfest_tool"; then
8426 MANIFEST_TOOL=:
8427 fi
8428
8429
8430
8431
8432
8433
8434 case $host_os in
8435 rhapsody* | darwin*)
8436 if test -n "$ac_tool_prefix"; then
8437 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8438 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 printf %s "checking for $ac_word... " >&6; }
8441 if test ${ac_cv_prog_DSYMUTIL+y}
8442 then :
8443 printf %s "(cached) " >&6
8444 else $as_nop
8445 if test -n "$DSYMUTIL"; then
8446 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8447 else
8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449 for as_dir in $PATH
8450 do
8451 IFS=$as_save_IFS
8452 case $as_dir in #(((
8453 '') as_dir=./ ;;
8454 */) ;;
8455 *) as_dir=$as_dir/ ;;
8456 esac
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8459 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8461 break 2
8462 fi
8463 done
8464 done
8465 IFS=$as_save_IFS
8466
8467 fi
8468 fi
8469 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8470 if test -n "$DSYMUTIL"; then
8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8472 printf "%s\n" "$DSYMUTIL" >&6; }
8473 else
8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 printf "%s\n" "no" >&6; }
8476 fi
8477
8478
8479 fi
8480 if test -z "$ac_cv_prog_DSYMUTIL"; then
8481 ac_ct_DSYMUTIL=$DSYMUTIL
8482 # Extract the first word of "dsymutil", so it can be a program name with args.
8483 set dummy dsymutil; ac_word=$2
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485 printf %s "checking for $ac_word... " >&6; }
8486 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8487 then :
8488 printf %s "(cached) " >&6
8489 else $as_nop
8490 if test -n "$ac_ct_DSYMUTIL"; then
8491 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496 IFS=$as_save_IFS
8497 case $as_dir in #(((
8498 '') as_dir=./ ;;
8499 */) ;;
8500 *) as_dir=$as_dir/ ;;
8501 esac
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8504 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8506 break 2
8507 fi
8508 done
8509 done
8510 IFS=$as_save_IFS
8511
8512 fi
8513 fi
8514 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8515 if test -n "$ac_ct_DSYMUTIL"; then
8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8517 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8518 else
8519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 printf "%s\n" "no" >&6; }
8521 fi
8522
8523 if test "x$ac_ct_DSYMUTIL" = x; then
8524 DSYMUTIL=":"
8525 else
8526 case $cross_compiling:$ac_tool_warned in
8527 yes:)
8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8529 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8530 ac_tool_warned=yes ;;
8531 esac
8532 DSYMUTIL=$ac_ct_DSYMUTIL
8533 fi
8534 else
8535 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8536 fi
8537
8538 if test -n "$ac_tool_prefix"; then
8539 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8540 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 printf %s "checking for $ac_word... " >&6; }
8543 if test ${ac_cv_prog_NMEDIT+y}
8544 then :
8545 printf %s "(cached) " >&6
8546 else $as_nop
8547 if test -n "$NMEDIT"; then
8548 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8549 else
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 for as_dir in $PATH
8552 do
8553 IFS=$as_save_IFS
8554 case $as_dir in #(((
8555 '') as_dir=./ ;;
8556 */) ;;
8557 *) as_dir=$as_dir/ ;;
8558 esac
8559 for ac_exec_ext in '' $ac_executable_extensions; do
8560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8561 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8563 break 2
8564 fi
8565 done
8566 done
8567 IFS=$as_save_IFS
8568
8569 fi
8570 fi
8571 NMEDIT=$ac_cv_prog_NMEDIT
8572 if test -n "$NMEDIT"; then
8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8574 printf "%s\n" "$NMEDIT" >&6; }
8575 else
8576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 printf "%s\n" "no" >&6; }
8578 fi
8579
8580
8581 fi
8582 if test -z "$ac_cv_prog_NMEDIT"; then
8583 ac_ct_NMEDIT=$NMEDIT
8584 # Extract the first word of "nmedit", so it can be a program name with args.
8585 set dummy nmedit; ac_word=$2
8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 printf %s "checking for $ac_word... " >&6; }
8588 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8589 then :
8590 printf %s "(cached) " >&6
8591 else $as_nop
8592 if test -n "$ac_ct_NMEDIT"; then
8593 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8594 else
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8597 do
8598 IFS=$as_save_IFS
8599 case $as_dir in #(((
8600 '') as_dir=./ ;;
8601 */) ;;
8602 *) as_dir=$as_dir/ ;;
8603 esac
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8606 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8608 break 2
8609 fi
8610 done
8611 done
8612 IFS=$as_save_IFS
8613
8614 fi
8615 fi
8616 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8617 if test -n "$ac_ct_NMEDIT"; then
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8619 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8620 else
8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 printf "%s\n" "no" >&6; }
8623 fi
8624
8625 if test "x$ac_ct_NMEDIT" = x; then
8626 NMEDIT=":"
8627 else
8628 case $cross_compiling:$ac_tool_warned in
8629 yes:)
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8631 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8632 ac_tool_warned=yes ;;
8633 esac
8634 NMEDIT=$ac_ct_NMEDIT
8635 fi
8636 else
8637 NMEDIT="$ac_cv_prog_NMEDIT"
8638 fi
8639
8640 if test -n "$ac_tool_prefix"; then
8641 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8642 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 printf %s "checking for $ac_word... " >&6; }
8645 if test ${ac_cv_prog_LIPO+y}
8646 then :
8647 printf %s "(cached) " >&6
8648 else $as_nop
8649 if test -n "$LIPO"; then
8650 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8651 else
8652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653 for as_dir in $PATH
8654 do
8655 IFS=$as_save_IFS
8656 case $as_dir in #(((
8657 '') as_dir=./ ;;
8658 */) ;;
8659 *) as_dir=$as_dir/ ;;
8660 esac
8661 for ac_exec_ext in '' $ac_executable_extensions; do
8662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8663 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8665 break 2
8666 fi
8667 done
8668 done
8669 IFS=$as_save_IFS
8670
8671 fi
8672 fi
8673 LIPO=$ac_cv_prog_LIPO
8674 if test -n "$LIPO"; then
8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8676 printf "%s\n" "$LIPO" >&6; }
8677 else
8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 printf "%s\n" "no" >&6; }
8680 fi
8681
8682
8683 fi
8684 if test -z "$ac_cv_prog_LIPO"; then
8685 ac_ct_LIPO=$LIPO
8686 # Extract the first word of "lipo", so it can be a program name with args.
8687 set dummy lipo; ac_word=$2
8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 printf %s "checking for $ac_word... " >&6; }
8690 if test ${ac_cv_prog_ac_ct_LIPO+y}
8691 then :
8692 printf %s "(cached) " >&6
8693 else $as_nop
8694 if test -n "$ac_ct_LIPO"; then
8695 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8696 else
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8699 do
8700 IFS=$as_save_IFS
8701 case $as_dir in #(((
8702 '') as_dir=./ ;;
8703 */) ;;
8704 *) as_dir=$as_dir/ ;;
8705 esac
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8708 ac_cv_prog_ac_ct_LIPO="lipo"
8709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8710 break 2
8711 fi
8712 done
8713 done
8714 IFS=$as_save_IFS
8715
8716 fi
8717 fi
8718 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8719 if test -n "$ac_ct_LIPO"; then
8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8721 printf "%s\n" "$ac_ct_LIPO" >&6; }
8722 else
8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 printf "%s\n" "no" >&6; }
8725 fi
8726
8727 if test "x$ac_ct_LIPO" = x; then
8728 LIPO=":"
8729 else
8730 case $cross_compiling:$ac_tool_warned in
8731 yes:)
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8733 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8734 ac_tool_warned=yes ;;
8735 esac
8736 LIPO=$ac_ct_LIPO
8737 fi
8738 else
8739 LIPO="$ac_cv_prog_LIPO"
8740 fi
8741
8742 if test -n "$ac_tool_prefix"; then
8743 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8744 set dummy ${ac_tool_prefix}otool; ac_word=$2
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8746 printf %s "checking for $ac_word... " >&6; }
8747 if test ${ac_cv_prog_OTOOL+y}
8748 then :
8749 printf %s "(cached) " >&6
8750 else $as_nop
8751 if test -n "$OTOOL"; then
8752 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8753 else
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8756 do
8757 IFS=$as_save_IFS
8758 case $as_dir in #(((
8759 '') as_dir=./ ;;
8760 */) ;;
8761 *) as_dir=$as_dir/ ;;
8762 esac
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8765 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8767 break 2
8768 fi
8769 done
8770 done
8771 IFS=$as_save_IFS
8772
8773 fi
8774 fi
8775 OTOOL=$ac_cv_prog_OTOOL
8776 if test -n "$OTOOL"; then
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8778 printf "%s\n" "$OTOOL" >&6; }
8779 else
8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 printf "%s\n" "no" >&6; }
8782 fi
8783
8784
8785 fi
8786 if test -z "$ac_cv_prog_OTOOL"; then
8787 ac_ct_OTOOL=$OTOOL
8788 # Extract the first word of "otool", so it can be a program name with args.
8789 set dummy otool; ac_word=$2
8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 printf %s "checking for $ac_word... " >&6; }
8792 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8793 then :
8794 printf %s "(cached) " >&6
8795 else $as_nop
8796 if test -n "$ac_ct_OTOOL"; then
8797 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8798 else
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8801 do
8802 IFS=$as_save_IFS
8803 case $as_dir in #(((
8804 '') as_dir=./ ;;
8805 */) ;;
8806 *) as_dir=$as_dir/ ;;
8807 esac
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8810 ac_cv_prog_ac_ct_OTOOL="otool"
8811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8812 break 2
8813 fi
8814 done
8815 done
8816 IFS=$as_save_IFS
8817
8818 fi
8819 fi
8820 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8821 if test -n "$ac_ct_OTOOL"; then
8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8823 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8824 else
8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 printf "%s\n" "no" >&6; }
8827 fi
8828
8829 if test "x$ac_ct_OTOOL" = x; then
8830 OTOOL=":"
8831 else
8832 case $cross_compiling:$ac_tool_warned in
8833 yes:)
8834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8835 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8836 ac_tool_warned=yes ;;
8837 esac
8838 OTOOL=$ac_ct_OTOOL
8839 fi
8840 else
8841 OTOOL="$ac_cv_prog_OTOOL"
8842 fi
8843
8844 if test -n "$ac_tool_prefix"; then
8845 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8846 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848 printf %s "checking for $ac_word... " >&6; }
8849 if test ${ac_cv_prog_OTOOL64+y}
8850 then :
8851 printf %s "(cached) " >&6
8852 else $as_nop
8853 if test -n "$OTOOL64"; then
8854 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8855 else
8856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 for as_dir in $PATH
8858 do
8859 IFS=$as_save_IFS
8860 case $as_dir in #(((
8861 '') as_dir=./ ;;
8862 */) ;;
8863 *) as_dir=$as_dir/ ;;
8864 esac
8865 for ac_exec_ext in '' $ac_executable_extensions; do
8866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8867 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8869 break 2
8870 fi
8871 done
8872 done
8873 IFS=$as_save_IFS
8874
8875 fi
8876 fi
8877 OTOOL64=$ac_cv_prog_OTOOL64
8878 if test -n "$OTOOL64"; then
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8880 printf "%s\n" "$OTOOL64" >&6; }
8881 else
8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 printf "%s\n" "no" >&6; }
8884 fi
8885
8886
8887 fi
8888 if test -z "$ac_cv_prog_OTOOL64"; then
8889 ac_ct_OTOOL64=$OTOOL64
8890 # Extract the first word of "otool64", so it can be a program name with args.
8891 set dummy otool64; ac_word=$2
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893 printf %s "checking for $ac_word... " >&6; }
8894 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8895 then :
8896 printf %s "(cached) " >&6
8897 else $as_nop
8898 if test -n "$ac_ct_OTOOL64"; then
8899 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8900 else
8901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902 for as_dir in $PATH
8903 do
8904 IFS=$as_save_IFS
8905 case $as_dir in #(((
8906 '') as_dir=./ ;;
8907 */) ;;
8908 *) as_dir=$as_dir/ ;;
8909 esac
8910 for ac_exec_ext in '' $ac_executable_extensions; do
8911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8912 ac_cv_prog_ac_ct_OTOOL64="otool64"
8913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8914 break 2
8915 fi
8916 done
8917 done
8918 IFS=$as_save_IFS
8919
8920 fi
8921 fi
8922 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8923 if test -n "$ac_ct_OTOOL64"; then
8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8925 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8926 else
8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 printf "%s\n" "no" >&6; }
8929 fi
8930
8931 if test "x$ac_ct_OTOOL64" = x; then
8932 OTOOL64=":"
8933 else
8934 case $cross_compiling:$ac_tool_warned in
8935 yes:)
8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8937 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8938 ac_tool_warned=yes ;;
8939 esac
8940 OTOOL64=$ac_ct_OTOOL64
8941 fi
8942 else
8943 OTOOL64="$ac_cv_prog_OTOOL64"
8944 fi
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8973 printf %s "checking for -single_module linker flag... " >&6; }
8974 if test ${lt_cv_apple_cc_single_mod+y}
8975 then :
8976 printf %s "(cached) " >&6
8977 else $as_nop
8978 lt_cv_apple_cc_single_mod=no
8979 if test -z "$LT_MULTI_MODULE"; then
8980 # By default we will add the -single_module flag. You can override
8981 # by either setting the environment variable LT_MULTI_MODULE
8982 # non-empty at configure time, or by adding -multi_module to the
8983 # link flags.
8984 rm -rf libconftest.dylib*
8985 echo "int foo(void){return 1;}" > conftest.c
8986 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8987 -dynamiclib -Wl,-single_module conftest.c" >&5
8988 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8989 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8990 _lt_result=$?
8991 # If there is a non-empty error log, and "single_module"
8992 # appears in it, assume the flag caused a linker warning
8993 if test -s conftest.err && $GREP single_module conftest.err; then
8994 cat conftest.err >&5
8995 # Otherwise, if the output was created with a 0 exit code from
8996 # the compiler, it worked.
8997 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8998 lt_cv_apple_cc_single_mod=yes
8999 else
9000 cat conftest.err >&5
9001 fi
9002 rm -rf libconftest.dylib*
9003 rm -f conftest.*
9004 fi
9005 fi
9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9007 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9008
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9010 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9011 if test ${lt_cv_ld_exported_symbols_list+y}
9012 then :
9013 printf %s "(cached) " >&6
9014 else $as_nop
9015 lt_cv_ld_exported_symbols_list=no
9016 save_LDFLAGS=$LDFLAGS
9017 echo "_main" > conftest.sym
9018 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021
9022 int
9023 main (void)
9024 {
9025
9026 ;
9027 return 0;
9028 }
9029 _ACEOF
9030 if ac_fn_c_try_link "$LINENO"
9031 then :
9032 lt_cv_ld_exported_symbols_list=yes
9033 else $as_nop
9034 lt_cv_ld_exported_symbols_list=no
9035 fi
9036 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9037 conftest$ac_exeext conftest.$ac_ext
9038 LDFLAGS=$save_LDFLAGS
9039
9040 fi
9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9042 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9043
9044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9045 printf %s "checking for -force_load linker flag... " >&6; }
9046 if test ${lt_cv_ld_force_load+y}
9047 then :
9048 printf %s "(cached) " >&6
9049 else $as_nop
9050 lt_cv_ld_force_load=no
9051 cat > conftest.c << _LT_EOF
9052 int forced_loaded() { return 2;}
9053 _LT_EOF
9054 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9055 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9056 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9057 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9058 echo "$RANLIB libconftest.a" >&5
9059 $RANLIB libconftest.a 2>&5
9060 cat > conftest.c << _LT_EOF
9061 int main() { return 0;}
9062 _LT_EOF
9063 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9064 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9065 _lt_result=$?
9066 if test -s conftest.err && $GREP force_load conftest.err; then
9067 cat conftest.err >&5
9068 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9069 lt_cv_ld_force_load=yes
9070 else
9071 cat conftest.err >&5
9072 fi
9073 rm -f conftest.err libconftest.a conftest conftest.c
9074 rm -rf conftest.dSYM
9075
9076 fi
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9078 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9079 case $host_os in
9080 rhapsody* | darwin1.[012])
9081 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9082 darwin1.*)
9083 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9084 darwin*)
9085 case $MACOSX_DEPLOYMENT_TARGET,$host in
9086 10.[012],*|,*powerpc*-darwin[5-8]*)
9087 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9088 *)
9089 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9090 esac
9091 ;;
9092 esac
9093 if test yes = "$lt_cv_apple_cc_single_mod"; then
9094 _lt_dar_single_mod='$single_module'
9095 fi
9096 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9097 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9098 else
9099 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9100 fi
9101 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9102 _lt_dsymutil='~$DSYMUTIL $lib || :'
9103 else
9104 _lt_dsymutil=
9105 fi
9106 ;;
9107 esac
9108
9109 # func_munge_path_list VARIABLE PATH
9110 # -----------------------------------
9111 # VARIABLE is name of variable containing _space_ separated list of
9112 # directories to be munged by the contents of PATH, which is string
9113 # having a format:
9114 # "DIR[:DIR]:"
9115 # string "DIR[ DIR]" will be prepended to VARIABLE
9116 # ":DIR[:DIR]"
9117 # string "DIR[ DIR]" will be appended to VARIABLE
9118 # "DIRP[:DIRP]::[DIRA:]DIRA"
9119 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9120 # "DIRA[ DIRA]" will be appended to VARIABLE
9121 # "DIR[:DIR]"
9122 # VARIABLE will be replaced by "DIR[ DIR]"
9123 func_munge_path_list ()
9124 {
9125 case x$2 in
9126 x)
9127 ;;
9128 *:)
9129 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9130 ;;
9131 x:*)
9132 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9133 ;;
9134 *::*)
9135 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9136 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9137 ;;
9138 *)
9139 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9140 ;;
9141 esac
9142 }
9143
9144 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9145 "
9146 if test "x$ac_cv_header_dlfcn_h" = xyes
9147 then :
9148 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9149
9150 fi
9151
9152
9153
9154
9155
9156 # Set options
9157
9158
9159
9160 enable_dlopen=no
9161
9162
9163 enable_win32_dll=no
9164
9165
9166 # Check whether --enable-shared was given.
9167 if test ${enable_shared+y}
9168 then :
9169 enableval=$enable_shared; p=${PACKAGE-default}
9170 case $enableval in
9171 yes) enable_shared=yes ;;
9172 no) enable_shared=no ;;
9173 *)
9174 enable_shared=no
9175 # Look at the argument we got. We use all the common list separators.
9176 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9177 for pkg in $enableval; do
9178 IFS=$lt_save_ifs
9179 if test "X$pkg" = "X$p"; then
9180 enable_shared=yes
9181 fi
9182 done
9183 IFS=$lt_save_ifs
9184 ;;
9185 esac
9186 else $as_nop
9187 enable_shared=yes
9188 fi
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198 # Check whether --enable-static was given.
9199 if test ${enable_static+y}
9200 then :
9201 enableval=$enable_static; p=${PACKAGE-default}
9202 case $enableval in
9203 yes) enable_static=yes ;;
9204 no) enable_static=no ;;
9205 *)
9206 enable_static=no
9207 # Look at the argument we got. We use all the common list separators.
9208 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9209 for pkg in $enableval; do
9210 IFS=$lt_save_ifs
9211 if test "X$pkg" = "X$p"; then
9212 enable_static=yes
9213 fi
9214 done
9215 IFS=$lt_save_ifs
9216 ;;
9217 esac
9218 else $as_nop
9219 enable_static=yes
9220 fi
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231 # Check whether --with-pic was given.
9232 if test ${with_pic+y}
9233 then :
9234 withval=$with_pic; lt_p=${PACKAGE-default}
9235 case $withval in
9236 yes|no) pic_mode=$withval ;;
9237 *)
9238 pic_mode=default
9239 # Look at the argument we got. We use all the common list separators.
9240 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9241 for lt_pkg in $withval; do
9242 IFS=$lt_save_ifs
9243 if test "X$lt_pkg" = "X$lt_p"; then
9244 pic_mode=yes
9245 fi
9246 done
9247 IFS=$lt_save_ifs
9248 ;;
9249 esac
9250 else $as_nop
9251 pic_mode=default
9252 fi
9253
9254
9255
9256
9257
9258
9259
9260
9261 # Check whether --enable-fast-install was given.
9262 if test ${enable_fast_install+y}
9263 then :
9264 enableval=$enable_fast_install; p=${PACKAGE-default}
9265 case $enableval in
9266 yes) enable_fast_install=yes ;;
9267 no) enable_fast_install=no ;;
9268 *)
9269 enable_fast_install=no
9270 # Look at the argument we got. We use all the common list separators.
9271 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9272 for pkg in $enableval; do
9273 IFS=$lt_save_ifs
9274 if test "X$pkg" = "X$p"; then
9275 enable_fast_install=yes
9276 fi
9277 done
9278 IFS=$lt_save_ifs
9279 ;;
9280 esac
9281 else $as_nop
9282 enable_fast_install=yes
9283 fi
9284
9285
9286
9287
9288
9289
9290
9291
9292 shared_archive_member_spec=
9293 case $host,$enable_shared in
9294 power*-*-aix[5-9]*,yes)
9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9296 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9297
9298 # Check whether --with-aix-soname was given.
9299 if test ${with_aix_soname+y}
9300 then :
9301 withval=$with_aix_soname; case $withval in
9302 aix|svr4|both)
9303 ;;
9304 *)
9305 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9306 ;;
9307 esac
9308 lt_cv_with_aix_soname=$with_aix_soname
9309 else $as_nop
9310 if test ${lt_cv_with_aix_soname+y}
9311 then :
9312 printf %s "(cached) " >&6
9313 else $as_nop
9314 lt_cv_with_aix_soname=aix
9315 fi
9316
9317 with_aix_soname=$lt_cv_with_aix_soname
9318 fi
9319
9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9321 printf "%s\n" "$with_aix_soname" >&6; }
9322 if test aix != "$with_aix_soname"; then
9323 # For the AIX way of multilib, we name the shared archive member
9324 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9325 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9326 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9327 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9328 if test 64 = "${OBJECT_MODE-32}"; then
9329 shared_archive_member_spec=shr_64
9330 else
9331 shared_archive_member_spec=shr
9332 fi
9333 fi
9334 ;;
9335 *)
9336 with_aix_soname=aix
9337 ;;
9338 esac
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349 # This can be used to rebuild libtool when needed
9350 LIBTOOL_DEPS=$ltmain
9351
9352 # Always use our own libtool.
9353 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384 test -z "$LN_S" && LN_S="ln -s"
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399 if test -n "${ZSH_VERSION+set}"; then
9400 setopt NO_GLOB_SUBST
9401 fi
9402
9403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9404 printf %s "checking for objdir... " >&6; }
9405 if test ${lt_cv_objdir+y}
9406 then :
9407 printf %s "(cached) " >&6
9408 else $as_nop
9409 rm -f .libs 2>/dev/null
9410 mkdir .libs 2>/dev/null
9411 if test -d .libs; then
9412 lt_cv_objdir=.libs
9413 else
9414 # MS-DOS does not allow filenames that begin with a dot.
9415 lt_cv_objdir=_libs
9416 fi
9417 rmdir .libs 2>/dev/null
9418 fi
9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9420 printf "%s\n" "$lt_cv_objdir" >&6; }
9421 objdir=$lt_cv_objdir
9422
9423
9424
9425
9426
9427 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9428
9429
9430
9431
9432 case $host_os in
9433 aix3*)
9434 # AIX sometimes has problems with the GCC collect2 program. For some
9435 # reason, if we set the COLLECT_NAMES environment variable, the problems
9436 # vanish in a puff of smoke.
9437 if test set != "${COLLECT_NAMES+set}"; then
9438 COLLECT_NAMES=
9439 export COLLECT_NAMES
9440 fi
9441 ;;
9442 esac
9443
9444 # Global variables:
9445 ofile=libtool
9446 can_build_shared=yes
9447
9448 # All known linkers require a '.a' archive for static linking (except MSVC and
9449 # ICC, which need '.lib').
9450 libext=a
9451
9452 with_gnu_ld=$lt_cv_prog_gnu_ld
9453
9454 old_CC=$CC
9455 old_CFLAGS=$CFLAGS
9456
9457 # Set sane defaults for various variables
9458 test -z "$CC" && CC=cc
9459 test -z "$LTCC" && LTCC=$CC
9460 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9461 test -z "$LD" && LD=ld
9462 test -z "$ac_objext" && ac_objext=o
9463
9464 func_cc_basename $compiler
9465 cc_basename=$func_cc_basename_result
9466
9467
9468 # Only perform the check for file, if the check method requires it
9469 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9470 case $deplibs_check_method in
9471 file_magic*)
9472 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9474 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9475 if test ${lt_cv_path_MAGIC_CMD+y}
9476 then :
9477 printf %s "(cached) " >&6
9478 else $as_nop
9479 case $MAGIC_CMD in
9480 [\\/*] | ?:[\\/]*)
9481 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9482 ;;
9483 *)
9484 lt_save_MAGIC_CMD=$MAGIC_CMD
9485 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9486 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9487 for ac_dir in $ac_dummy; do
9488 IFS=$lt_save_ifs
9489 test -z "$ac_dir" && ac_dir=.
9490 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9491 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9492 if test -n "$file_magic_test_file"; then
9493 case $deplibs_check_method in
9494 "file_magic "*)
9495 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9496 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9497 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9498 $EGREP "$file_magic_regex" > /dev/null; then
9499 :
9500 else
9501 cat <<_LT_EOF 1>&2
9502
9503 *** Warning: the command libtool uses to detect shared libraries,
9504 *** $file_magic_cmd, produces output that libtool cannot recognize.
9505 *** The result is that libtool may fail to recognize shared libraries
9506 *** as such. This will affect the creation of libtool libraries that
9507 *** depend on shared libraries, but programs linked with such libtool
9508 *** libraries will work regardless of this problem. Nevertheless, you
9509 *** may want to report the problem to your system manager and/or to
9510 *** [email protected]
9511
9512 _LT_EOF
9513 fi ;;
9514 esac
9515 fi
9516 break
9517 fi
9518 done
9519 IFS=$lt_save_ifs
9520 MAGIC_CMD=$lt_save_MAGIC_CMD
9521 ;;
9522 esac
9523 fi
9524
9525 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9526 if test -n "$MAGIC_CMD"; then
9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9528 printf "%s\n" "$MAGIC_CMD" >&6; }
9529 else
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531 printf "%s\n" "no" >&6; }
9532 fi
9533
9534
9535
9536
9537
9538 if test -z "$lt_cv_path_MAGIC_CMD"; then
9539 if test -n "$ac_tool_prefix"; then
9540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9541 printf %s "checking for file... " >&6; }
9542 if test ${lt_cv_path_MAGIC_CMD+y}
9543 then :
9544 printf %s "(cached) " >&6
9545 else $as_nop
9546 case $MAGIC_CMD in
9547 [\\/*] | ?:[\\/]*)
9548 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9549 ;;
9550 *)
9551 lt_save_MAGIC_CMD=$MAGIC_CMD
9552 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9553 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9554 for ac_dir in $ac_dummy; do
9555 IFS=$lt_save_ifs
9556 test -z "$ac_dir" && ac_dir=.
9557 if test -f "$ac_dir/file"; then
9558 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9559 if test -n "$file_magic_test_file"; then
9560 case $deplibs_check_method in
9561 "file_magic "*)
9562 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9563 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9564 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9565 $EGREP "$file_magic_regex" > /dev/null; then
9566 :
9567 else
9568 cat <<_LT_EOF 1>&2
9569
9570 *** Warning: the command libtool uses to detect shared libraries,
9571 *** $file_magic_cmd, produces output that libtool cannot recognize.
9572 *** The result is that libtool may fail to recognize shared libraries
9573 *** as such. This will affect the creation of libtool libraries that
9574 *** depend on shared libraries, but programs linked with such libtool
9575 *** libraries will work regardless of this problem. Nevertheless, you
9576 *** may want to report the problem to your system manager and/or to
9577 *** [email protected]
9578
9579 _LT_EOF
9580 fi ;;
9581 esac
9582 fi
9583 break
9584 fi
9585 done
9586 IFS=$lt_save_ifs
9587 MAGIC_CMD=$lt_save_MAGIC_CMD
9588 ;;
9589 esac
9590 fi
9591
9592 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9593 if test -n "$MAGIC_CMD"; then
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9595 printf "%s\n" "$MAGIC_CMD" >&6; }
9596 else
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 printf "%s\n" "no" >&6; }
9599 fi
9600
9601
9602 else
9603 MAGIC_CMD=:
9604 fi
9605 fi
9606
9607 fi
9608 ;;
9609 esac
9610
9611 # Use C for the default configuration in the libtool script
9612
9613 lt_save_CC=$CC
9614 ac_ext=c
9615 ac_cpp='$CPP $CPPFLAGS'
9616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9619
9620
9621 # Source file extension for C test sources.
9622 ac_ext=c
9623
9624 # Object file extension for compiled C test sources.
9625 objext=o
9626 objext=$objext
9627
9628 # Code to be used in simple compile tests
9629 lt_simple_compile_test_code="int some_variable = 0;"
9630
9631 # Code to be used in simple link tests
9632 lt_simple_link_test_code='int main(){return(0);}'
9633
9634
9635
9636
9637
9638
9639
9640 # If no C compiler was specified, use CC.
9641 LTCC=${LTCC-"$CC"}
9642
9643 # If no C compiler flags were specified, use CFLAGS.
9644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9645
9646 # Allow CC to be a program name with arguments.
9647 compiler=$CC
9648
9649 # Save the default compiler, since it gets overwritten when the other
9650 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9651 compiler_DEFAULT=$CC
9652
9653 # save warnings/boilerplate of simple test code
9654 ac_outfile=conftest.$ac_objext
9655 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9657 _lt_compiler_boilerplate=`cat conftest.err`
9658 $RM conftest*
9659
9660 ac_outfile=conftest.$ac_objext
9661 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9663 _lt_linker_boilerplate=`cat conftest.err`
9664 $RM -r conftest*
9665
9666
9667 ## CAVEAT EMPTOR:
9668 ## There is no encapsulation within the following macros, do not change
9669 ## the running order or otherwise move them around unless you know exactly
9670 ## what you are doing...
9671 if test -n "$compiler"; then
9672
9673 lt_prog_compiler_no_builtin_flag=
9674
9675 if test yes = "$GCC"; then
9676 case $cc_basename in
9677 nvcc*)
9678 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9679 *)
9680 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9681 esac
9682
9683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9684 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9685 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9686 then :
9687 printf %s "(cached) " >&6
9688 else $as_nop
9689 lt_cv_prog_compiler_rtti_exceptions=no
9690 ac_outfile=conftest.$ac_objext
9691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9692 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9693 # Insert the option either (1) after the last *FLAGS variable, or
9694 # (2) before a word containing "conftest.", or (3) at the end.
9695 # Note that $ac_compile itself does not contain backslashes and begins
9696 # with a dollar sign (not a hyphen), so the echo should work correctly.
9697 # The option is referenced via a variable to avoid confusing sed.
9698 lt_compile=`echo "$ac_compile" | $SED \
9699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9701 -e 's:$: $lt_compiler_flag:'`
9702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9703 (eval "$lt_compile" 2>conftest.err)
9704 ac_status=$?
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 if (exit $ac_status) && test -s "$ac_outfile"; then
9708 # The compiler can only warn and ignore the option if not recognized
9709 # So say no if there are warnings other than the usual output.
9710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9713 lt_cv_prog_compiler_rtti_exceptions=yes
9714 fi
9715 fi
9716 $RM conftest*
9717
9718 fi
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9720 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9721
9722 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9724 else
9725 :
9726 fi
9727
9728 fi
9729
9730
9731
9732
9733
9734
9735 lt_prog_compiler_wl=
9736 lt_prog_compiler_pic=
9737 lt_prog_compiler_static=
9738
9739
9740 if test yes = "$GCC"; then
9741 lt_prog_compiler_wl='-Wl,'
9742 lt_prog_compiler_static='-static'
9743
9744 case $host_os in
9745 aix*)
9746 # All AIX code is PIC.
9747 if test ia64 = "$host_cpu"; then
9748 # AIX 5 now supports IA64 processor
9749 lt_prog_compiler_static='-Bstatic'
9750 fi
9751 lt_prog_compiler_pic='-fPIC'
9752 ;;
9753
9754 amigaos*)
9755 case $host_cpu in
9756 powerpc)
9757 # see comment about AmigaOS4 .so support
9758 lt_prog_compiler_pic='-fPIC'
9759 ;;
9760 m68k)
9761 # FIXME: we need at least 68020 code to build shared libraries, but
9762 # adding the '-m68020' flag to GCC prevents building anything better,
9763 # like '-m68040'.
9764 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9765 ;;
9766 esac
9767 ;;
9768
9769 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9770 # PIC is the default for these OSes.
9771 ;;
9772
9773 mingw* | cygwin* | pw32* | os2* | cegcc*)
9774 # This hack is so that the source file can tell whether it is being
9775 # built for inclusion in a dll (and should export symbols for example).
9776 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9777 # (--disable-auto-import) libraries
9778 lt_prog_compiler_pic='-DDLL_EXPORT'
9779 case $host_os in
9780 os2*)
9781 lt_prog_compiler_static='$wl-static'
9782 ;;
9783 esac
9784 ;;
9785
9786 darwin* | rhapsody*)
9787 # PIC is the default on this platform
9788 # Common symbols not allowed in MH_DYLIB files
9789 lt_prog_compiler_pic='-fno-common'
9790 ;;
9791
9792 haiku*)
9793 # PIC is the default for Haiku.
9794 # The "-static" flag exists, but is broken.
9795 lt_prog_compiler_static=
9796 ;;
9797
9798 hpux*)
9799 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9800 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9801 # sets the default TLS model and affects inlining.
9802 case $host_cpu in
9803 hppa*64*)
9804 # +Z the default
9805 ;;
9806 *)
9807 lt_prog_compiler_pic='-fPIC'
9808 ;;
9809 esac
9810 ;;
9811
9812 interix[3-9]*)
9813 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9814 # Instead, we relocate shared libraries at runtime.
9815 ;;
9816
9817 msdosdjgpp*)
9818 # Just because we use GCC doesn't mean we suddenly get shared libraries
9819 # on systems that don't support them.
9820 lt_prog_compiler_can_build_shared=no
9821 enable_shared=no
9822 ;;
9823
9824 *nto* | *qnx*)
9825 # QNX uses GNU C++, but need to define -shared option too, otherwise
9826 # it will coredump.
9827 lt_prog_compiler_pic='-fPIC -shared'
9828 ;;
9829
9830 sysv4*MP*)
9831 if test -d /usr/nec; then
9832 lt_prog_compiler_pic=-Kconform_pic
9833 fi
9834 ;;
9835
9836 *)
9837 lt_prog_compiler_pic='-fPIC'
9838 ;;
9839 esac
9840
9841 case $cc_basename in
9842 nvcc*) # Cuda Compiler Driver 2.2
9843 lt_prog_compiler_wl='-Xlinker '
9844 if test -n "$lt_prog_compiler_pic"; then
9845 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9846 fi
9847 ;;
9848 esac
9849 else
9850 # PORTME Check for flag to pass linker flags through the system compiler.
9851 case $host_os in
9852 aix*)
9853 lt_prog_compiler_wl='-Wl,'
9854 if test ia64 = "$host_cpu"; then
9855 # AIX 5 now supports IA64 processor
9856 lt_prog_compiler_static='-Bstatic'
9857 else
9858 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9859 fi
9860 ;;
9861
9862 darwin* | rhapsody*)
9863 # PIC is the default on this platform
9864 # Common symbols not allowed in MH_DYLIB files
9865 lt_prog_compiler_pic='-fno-common'
9866 case $cc_basename in
9867 nagfor*)
9868 # NAG Fortran compiler
9869 lt_prog_compiler_wl='-Wl,-Wl,,'
9870 lt_prog_compiler_pic='-PIC'
9871 lt_prog_compiler_static='-Bstatic'
9872 ;;
9873 esac
9874 ;;
9875
9876 mingw* | cygwin* | pw32* | os2* | cegcc*)
9877 # This hack is so that the source file can tell whether it is being
9878 # built for inclusion in a dll (and should export symbols for example).
9879 lt_prog_compiler_pic='-DDLL_EXPORT'
9880 case $host_os in
9881 os2*)
9882 lt_prog_compiler_static='$wl-static'
9883 ;;
9884 esac
9885 ;;
9886
9887 hpux9* | hpux10* | hpux11*)
9888 lt_prog_compiler_wl='-Wl,'
9889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9890 # not for PA HP-UX.
9891 case $host_cpu in
9892 hppa*64*|ia64*)
9893 # +Z the default
9894 ;;
9895 *)
9896 lt_prog_compiler_pic='+Z'
9897 ;;
9898 esac
9899 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9900 lt_prog_compiler_static='$wl-a ${wl}archive'
9901 ;;
9902
9903 irix5* | irix6* | nonstopux*)
9904 lt_prog_compiler_wl='-Wl,'
9905 # PIC (with -KPIC) is the default.
9906 lt_prog_compiler_static='-non_shared'
9907 ;;
9908
9909 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9910 case $cc_basename in
9911 # old Intel for x86_64, which still supported -KPIC.
9912 ecc*)
9913 lt_prog_compiler_wl='-Wl,'
9914 lt_prog_compiler_pic='-KPIC'
9915 lt_prog_compiler_static='-static'
9916 ;;
9917 # flang / f18. f95 an alias for gfortran or flang on Debian
9918 flang* | f18* | f95*)
9919 lt_prog_compiler_wl='-Wl,'
9920 lt_prog_compiler_pic='-fPIC'
9921 lt_prog_compiler_static='-static'
9922 ;;
9923 # icc used to be incompatible with GCC.
9924 # ICC 10 doesn't accept -KPIC any more.
9925 icc* | ifort*)
9926 lt_prog_compiler_wl='-Wl,'
9927 lt_prog_compiler_pic='-fPIC'
9928 lt_prog_compiler_static='-static'
9929 ;;
9930 # Lahey Fortran 8.1.
9931 lf95*)
9932 lt_prog_compiler_wl='-Wl,'
9933 lt_prog_compiler_pic='--shared'
9934 lt_prog_compiler_static='--static'
9935 ;;
9936 nagfor*)
9937 # NAG Fortran compiler
9938 lt_prog_compiler_wl='-Wl,-Wl,,'
9939 lt_prog_compiler_pic='-PIC'
9940 lt_prog_compiler_static='-Bstatic'
9941 ;;
9942 tcc*)
9943 # Fabrice Bellard et al's Tiny C Compiler
9944 lt_prog_compiler_wl='-Wl,'
9945 lt_prog_compiler_pic='-fPIC'
9946 lt_prog_compiler_static='-static'
9947 ;;
9948 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9949 # Portland Group compilers (*not* the Pentium gcc compiler,
9950 # which looks to be a dead project)
9951 lt_prog_compiler_wl='-Wl,'
9952 lt_prog_compiler_pic='-fpic'
9953 lt_prog_compiler_static='-Bstatic'
9954 ;;
9955 ccc*)
9956 lt_prog_compiler_wl='-Wl,'
9957 # All Alpha code is PIC.
9958 lt_prog_compiler_static='-non_shared'
9959 ;;
9960 xl* | bgxl* | bgf* | mpixl*)
9961 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9962 lt_prog_compiler_wl='-Wl,'
9963 lt_prog_compiler_pic='-qpic'
9964 lt_prog_compiler_static='-qstaticlink'
9965 ;;
9966 *)
9967 case `$CC -V 2>&1 | $SED 5q` in
9968 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9969 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9970 lt_prog_compiler_pic='-KPIC'
9971 lt_prog_compiler_static='-Bstatic'
9972 lt_prog_compiler_wl=''
9973 ;;
9974 *Sun\ F* | *Sun*Fortran*)
9975 lt_prog_compiler_pic='-KPIC'
9976 lt_prog_compiler_static='-Bstatic'
9977 lt_prog_compiler_wl='-Qoption ld '
9978 ;;
9979 *Sun\ C*)
9980 # Sun C 5.9
9981 lt_prog_compiler_pic='-KPIC'
9982 lt_prog_compiler_static='-Bstatic'
9983 lt_prog_compiler_wl='-Wl,'
9984 ;;
9985 *Intel*\ [CF]*Compiler*)
9986 lt_prog_compiler_wl='-Wl,'
9987 lt_prog_compiler_pic='-fPIC'
9988 lt_prog_compiler_static='-static'
9989 ;;
9990 *Portland\ Group*)
9991 lt_prog_compiler_wl='-Wl,'
9992 lt_prog_compiler_pic='-fpic'
9993 lt_prog_compiler_static='-Bstatic'
9994 ;;
9995 esac
9996 ;;
9997 esac
9998 ;;
9999
10000 newsos6)
10001 lt_prog_compiler_pic='-KPIC'
10002 lt_prog_compiler_static='-Bstatic'
10003 ;;
10004
10005 *nto* | *qnx*)
10006 # QNX uses GNU C++, but need to define -shared option too, otherwise
10007 # it will coredump.
10008 lt_prog_compiler_pic='-fPIC -shared'
10009 ;;
10010
10011 osf3* | osf4* | osf5*)
10012 lt_prog_compiler_wl='-Wl,'
10013 # All OSF/1 code is PIC.
10014 lt_prog_compiler_static='-non_shared'
10015 ;;
10016
10017 rdos*)
10018 lt_prog_compiler_static='-non_shared'
10019 ;;
10020
10021 solaris*)
10022 lt_prog_compiler_pic='-KPIC'
10023 lt_prog_compiler_static='-Bstatic'
10024 case $cc_basename in
10025 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10026 lt_prog_compiler_wl='-Qoption ld ';;
10027 *)
10028 lt_prog_compiler_wl='-Wl,';;
10029 esac
10030 ;;
10031
10032 sunos4*)
10033 lt_prog_compiler_wl='-Qoption ld '
10034 lt_prog_compiler_pic='-PIC'
10035 lt_prog_compiler_static='-Bstatic'
10036 ;;
10037
10038 sysv4 | sysv4.2uw2* | sysv4.3*)
10039 lt_prog_compiler_wl='-Wl,'
10040 lt_prog_compiler_pic='-KPIC'
10041 lt_prog_compiler_static='-Bstatic'
10042 ;;
10043
10044 sysv4*MP*)
10045 if test -d /usr/nec; then
10046 lt_prog_compiler_pic='-Kconform_pic'
10047 lt_prog_compiler_static='-Bstatic'
10048 fi
10049 ;;
10050
10051 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10052 lt_prog_compiler_wl='-Wl,'
10053 lt_prog_compiler_pic='-KPIC'
10054 lt_prog_compiler_static='-Bstatic'
10055 ;;
10056
10057 unicos*)
10058 lt_prog_compiler_wl='-Wl,'
10059 lt_prog_compiler_can_build_shared=no
10060 ;;
10061
10062 uts4*)
10063 lt_prog_compiler_pic='-pic'
10064 lt_prog_compiler_static='-Bstatic'
10065 ;;
10066
10067 *)
10068 lt_prog_compiler_can_build_shared=no
10069 ;;
10070 esac
10071 fi
10072
10073 case $host_os in
10074 # For platforms that do not support PIC, -DPIC is meaningless:
10075 *djgpp*)
10076 lt_prog_compiler_pic=
10077 ;;
10078 *)
10079 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10080 ;;
10081 esac
10082
10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10084 printf %s "checking for $compiler option to produce PIC... " >&6; }
10085 if test ${lt_cv_prog_compiler_pic+y}
10086 then :
10087 printf %s "(cached) " >&6
10088 else $as_nop
10089 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10090 fi
10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10092 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10093 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10094
10095 #
10096 # Check to make sure the PIC flag actually works.
10097 #
10098 if test -n "$lt_prog_compiler_pic"; then
10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10100 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10101 if test ${lt_cv_prog_compiler_pic_works+y}
10102 then :
10103 printf %s "(cached) " >&6
10104 else $as_nop
10105 lt_cv_prog_compiler_pic_works=no
10106 ac_outfile=conftest.$ac_objext
10107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10108 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10109 # Insert the option either (1) after the last *FLAGS variable, or
10110 # (2) before a word containing "conftest.", or (3) at the end.
10111 # Note that $ac_compile itself does not contain backslashes and begins
10112 # with a dollar sign (not a hyphen), so the echo should work correctly.
10113 # The option is referenced via a variable to avoid confusing sed.
10114 lt_compile=`echo "$ac_compile" | $SED \
10115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10117 -e 's:$: $lt_compiler_flag:'`
10118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10119 (eval "$lt_compile" 2>conftest.err)
10120 ac_status=$?
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 if (exit $ac_status) && test -s "$ac_outfile"; then
10124 # The compiler can only warn and ignore the option if not recognized
10125 # So say no if there are warnings other than the usual output.
10126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10129 lt_cv_prog_compiler_pic_works=yes
10130 fi
10131 fi
10132 $RM conftest*
10133
10134 fi
10135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10136 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10137
10138 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10139 case $lt_prog_compiler_pic in
10140 "" | " "*) ;;
10141 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10142 esac
10143 else
10144 lt_prog_compiler_pic=
10145 lt_prog_compiler_can_build_shared=no
10146 fi
10147
10148 fi
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160 #
10161 # Check to make sure the static flag actually works.
10162 #
10163 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10165 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10166 if test ${lt_cv_prog_compiler_static_works+y}
10167 then :
10168 printf %s "(cached) " >&6
10169 else $as_nop
10170 lt_cv_prog_compiler_static_works=no
10171 save_LDFLAGS=$LDFLAGS
10172 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10173 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10175 # The linker can only warn and ignore the option if not recognized
10176 # So say no if there are warnings
10177 if test -s conftest.err; then
10178 # Append any errors to the config.log.
10179 cat conftest.err 1>&5
10180 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10182 if diff conftest.exp conftest.er2 >/dev/null; then
10183 lt_cv_prog_compiler_static_works=yes
10184 fi
10185 else
10186 lt_cv_prog_compiler_static_works=yes
10187 fi
10188 fi
10189 $RM -r conftest*
10190 LDFLAGS=$save_LDFLAGS
10191
10192 fi
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10194 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10195
10196 if test yes = "$lt_cv_prog_compiler_static_works"; then
10197 :
10198 else
10199 lt_prog_compiler_static=
10200 fi
10201
10202
10203
10204
10205
10206
10207
10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10209 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10210 if test ${lt_cv_prog_compiler_c_o+y}
10211 then :
10212 printf %s "(cached) " >&6
10213 else $as_nop
10214 lt_cv_prog_compiler_c_o=no
10215 $RM -r conftest 2>/dev/null
10216 mkdir conftest
10217 cd conftest
10218 mkdir out
10219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10220
10221 lt_compiler_flag="-o out/conftest2.$ac_objext"
10222 # Insert the option either (1) after the last *FLAGS variable, or
10223 # (2) before a word containing "conftest.", or (3) at the end.
10224 # Note that $ac_compile itself does not contain backslashes and begins
10225 # with a dollar sign (not a hyphen), so the echo should work correctly.
10226 lt_compile=`echo "$ac_compile" | $SED \
10227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10229 -e 's:$: $lt_compiler_flag:'`
10230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10231 (eval "$lt_compile" 2>out/conftest.err)
10232 ac_status=$?
10233 cat out/conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10236 then
10237 # The compiler can only warn and ignore the option if not recognized
10238 # So say no if there are warnings
10239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10242 lt_cv_prog_compiler_c_o=yes
10243 fi
10244 fi
10245 chmod u+w . 2>&5
10246 $RM conftest*
10247 # SGI C++ compiler will create directory out/ii_files/ for
10248 # template instantiation
10249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10250 $RM out/* && rmdir out
10251 cd ..
10252 $RM -r conftest
10253 $RM conftest*
10254
10255 fi
10256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10257 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10258
10259
10260
10261
10262
10263
10264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10265 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10266 if test ${lt_cv_prog_compiler_c_o+y}
10267 then :
10268 printf %s "(cached) " >&6
10269 else $as_nop
10270 lt_cv_prog_compiler_c_o=no
10271 $RM -r conftest 2>/dev/null
10272 mkdir conftest
10273 cd conftest
10274 mkdir out
10275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10276
10277 lt_compiler_flag="-o out/conftest2.$ac_objext"
10278 # Insert the option either (1) after the last *FLAGS variable, or
10279 # (2) before a word containing "conftest.", or (3) at the end.
10280 # Note that $ac_compile itself does not contain backslashes and begins
10281 # with a dollar sign (not a hyphen), so the echo should work correctly.
10282 lt_compile=`echo "$ac_compile" | $SED \
10283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10285 -e 's:$: $lt_compiler_flag:'`
10286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10287 (eval "$lt_compile" 2>out/conftest.err)
10288 ac_status=$?
10289 cat out/conftest.err >&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10292 then
10293 # The compiler can only warn and ignore the option if not recognized
10294 # So say no if there are warnings
10295 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10296 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10297 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10298 lt_cv_prog_compiler_c_o=yes
10299 fi
10300 fi
10301 chmod u+w . 2>&5
10302 $RM conftest*
10303 # SGI C++ compiler will create directory out/ii_files/ for
10304 # template instantiation
10305 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10306 $RM out/* && rmdir out
10307 cd ..
10308 $RM -r conftest
10309 $RM conftest*
10310
10311 fi
10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10313 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10314
10315
10316
10317
10318 hard_links=nottested
10319 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10320 # do not overwrite the value of need_locks provided by the user
10321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10322 printf %s "checking if we can lock with hard links... " >&6; }
10323 hard_links=yes
10324 $RM conftest*
10325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10326 touch conftest.a
10327 ln conftest.a conftest.b 2>&5 || hard_links=no
10328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10330 printf "%s\n" "$hard_links" >&6; }
10331 if test no = "$hard_links"; then
10332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10333 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10334 need_locks=warn
10335 fi
10336 else
10337 need_locks=no
10338 fi
10339
10340
10341
10342
10343
10344
10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10346 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10347
10348 runpath_var=
10349 allow_undefined_flag=
10350 always_export_symbols=no
10351 archive_cmds=
10352 archive_expsym_cmds=
10353 compiler_needs_object=no
10354 enable_shared_with_static_runtimes=no
10355 export_dynamic_flag_spec=
10356 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10357 hardcode_automatic=no
10358 hardcode_direct=no
10359 hardcode_direct_absolute=no
10360 hardcode_libdir_flag_spec=
10361 hardcode_libdir_separator=
10362 hardcode_minus_L=no
10363 hardcode_shlibpath_var=unsupported
10364 inherit_rpath=no
10365 link_all_deplibs=unknown
10366 module_cmds=
10367 module_expsym_cmds=
10368 old_archive_from_new_cmds=
10369 old_archive_from_expsyms_cmds=
10370 thread_safe_flag_spec=
10371 whole_archive_flag_spec=
10372 # include_expsyms should be a list of space-separated symbols to be *always*
10373 # included in the symbol list
10374 include_expsyms=
10375 # exclude_expsyms can be an extended regexp of symbols to exclude
10376 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10377 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10378 # as well as any symbol that contains 'd'.
10379 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10380 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10381 # platforms (ab)use it in PIC code, but their linkers get confused if
10382 # the symbol is explicitly referenced. Since portable code cannot
10383 # rely on this symbol name, it's probably fine to never include it in
10384 # preloaded symbol tables.
10385 # Exclude shared library initialization/finalization symbols.
10386 extract_expsyms_cmds=
10387
10388 case $host_os in
10389 cygwin* | mingw* | pw32* | cegcc*)
10390 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10391 # When not using gcc, we currently assume that we are using
10392 # Microsoft Visual C++ or Intel C++ Compiler.
10393 if test yes != "$GCC"; then
10394 with_gnu_ld=no
10395 fi
10396 ;;
10397 interix*)
10398 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10399 with_gnu_ld=yes
10400 ;;
10401 openbsd* | bitrig*)
10402 with_gnu_ld=no
10403 ;;
10404 linux* | k*bsd*-gnu | gnu*)
10405 link_all_deplibs=no
10406 ;;
10407 esac
10408
10409 ld_shlibs=yes
10410
10411 # On some targets, GNU ld is compatible enough with the native linker
10412 # that we're better off using the native interface for both.
10413 lt_use_gnu_ld_interface=no
10414 if test yes = "$with_gnu_ld"; then
10415 case $host_os in
10416 aix*)
10417 # The AIX port of GNU ld has always aspired to compatibility
10418 # with the native linker. However, as the warning in the GNU ld
10419 # block says, versions before 2.19.5* couldn't really create working
10420 # shared libraries, regardless of the interface used.
10421 case `$LD -v 2>&1` in
10422 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10423 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10424 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10425 *)
10426 lt_use_gnu_ld_interface=yes
10427 ;;
10428 esac
10429 ;;
10430 *)
10431 lt_use_gnu_ld_interface=yes
10432 ;;
10433 esac
10434 fi
10435
10436 if test yes = "$lt_use_gnu_ld_interface"; then
10437 # If archive_cmds runs LD, not CC, wlarc should be empty
10438 wlarc='$wl'
10439
10440 # Set some defaults for GNU ld with shared library support. These
10441 # are reset later if shared libraries are not supported. Putting them
10442 # here allows them to be overridden if necessary.
10443 runpath_var=LD_RUN_PATH
10444 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10445 export_dynamic_flag_spec='$wl--export-dynamic'
10446 # ancient GNU ld didn't support --whole-archive et. al.
10447 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10448 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10449 else
10450 whole_archive_flag_spec=
10451 fi
10452 supports_anon_versioning=no
10453 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10454 *GNU\ gold*) supports_anon_versioning=yes ;;
10455 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10456 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10457 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10458 *\ 2.11.*) ;; # other 2.11 versions
10459 *) supports_anon_versioning=yes ;;
10460 esac
10461
10462 # See if GNU ld supports shared libraries.
10463 case $host_os in
10464 aix[3-9]*)
10465 # On AIX/PPC, the GNU linker is very broken
10466 if test ia64 != "$host_cpu"; then
10467 ld_shlibs=no
10468 cat <<_LT_EOF 1>&2
10469
10470 *** Warning: the GNU linker, at least up to release 2.19, is reported
10471 *** to be unable to reliably create shared libraries on AIX.
10472 *** Therefore, libtool is disabling shared libraries support. If you
10473 *** really care for shared libraries, you may want to install binutils
10474 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10475 *** You will then need to restart the configuration process.
10476
10477 _LT_EOF
10478 fi
10479 ;;
10480
10481 amigaos*)
10482 case $host_cpu in
10483 powerpc)
10484 # see comment about AmigaOS4 .so support
10485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10486 archive_expsym_cmds=''
10487 ;;
10488 m68k)
10489 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)'
10490 hardcode_libdir_flag_spec='-L$libdir'
10491 hardcode_minus_L=yes
10492 ;;
10493 esac
10494 ;;
10495
10496 beos*)
10497 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10498 allow_undefined_flag=unsupported
10499 # Joseph Beckenbach <[email protected]> says some releases of gcc
10500 # support --undefined. This deserves some investigation. FIXME
10501 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10502 else
10503 ld_shlibs=no
10504 fi
10505 ;;
10506
10507 cygwin* | mingw* | pw32* | cegcc*)
10508 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10509 # as there is no search path for DLLs.
10510 hardcode_libdir_flag_spec='-L$libdir'
10511 export_dynamic_flag_spec='$wl--export-all-symbols'
10512 allow_undefined_flag=unsupported
10513 always_export_symbols=no
10514 enable_shared_with_static_runtimes=yes
10515 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'
10516 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10517
10518 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10520 # If the export-symbols file already is a .def file, use it as
10521 # is; otherwise, prepend EXPORTS...
10522 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10523 cp $export_symbols $output_objdir/$soname.def;
10524 else
10525 echo EXPORTS > $output_objdir/$soname.def;
10526 cat $export_symbols >> $output_objdir/$soname.def;
10527 fi~
10528 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10529 else
10530 ld_shlibs=no
10531 fi
10532 ;;
10533
10534 haiku*)
10535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10536 link_all_deplibs=yes
10537 ;;
10538
10539 os2*)
10540 hardcode_libdir_flag_spec='-L$libdir'
10541 hardcode_minus_L=yes
10542 allow_undefined_flag=unsupported
10543 shrext_cmds=.dll
10544 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10545 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10546 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10547 $ECHO EXPORTS >> $output_objdir/$libname.def~
10548 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10549 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10550 emximp -o $lib $output_objdir/$libname.def'
10551 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10552 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10553 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10554 $ECHO EXPORTS >> $output_objdir/$libname.def~
10555 prefix_cmds="$SED"~
10556 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10557 prefix_cmds="$prefix_cmds -e 1d";
10558 fi~
10559 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10560 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10561 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10562 emximp -o $lib $output_objdir/$libname.def'
10563 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10564 enable_shared_with_static_runtimes=yes
10565 file_list_spec='@'
10566 ;;
10567
10568 interix[3-9]*)
10569 hardcode_direct=no
10570 hardcode_shlibpath_var=no
10571 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10572 export_dynamic_flag_spec='$wl-E'
10573 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10574 # Instead, shared libraries are loaded at an image base (0x10000000 by
10575 # default) and relocated if they conflict, which is a slow very memory
10576 # consuming and fragmenting process. To avoid this, we pick a random,
10577 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10578 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10579 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10580 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'
10581 ;;
10582
10583 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10584 tmp_diet=no
10585 if test linux-dietlibc = "$host_os"; then
10586 case $cc_basename in
10587 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10588 esac
10589 fi
10590 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10591 && test no = "$tmp_diet"
10592 then
10593 tmp_addflag=' $pic_flag'
10594 tmp_sharedflag='-shared'
10595 case $cc_basename,$host_cpu in
10596 pgcc*) # Portland Group C compiler
10597 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'
10598 tmp_addflag=' $pic_flag'
10599 ;;
10600 pgf77* | pgf90* | pgf95* | pgfortran*)
10601 # Portland Group f77 and f90 compilers
10602 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'
10603 tmp_addflag=' $pic_flag -Mnomain' ;;
10604 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10605 tmp_addflag=' -i_dynamic' ;;
10606 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10607 tmp_addflag=' -i_dynamic -nofor_main' ;;
10608 ifc* | ifort*) # Intel Fortran compiler
10609 tmp_addflag=' -nofor_main' ;;
10610 lf95*) # Lahey Fortran 8.1
10611 whole_archive_flag_spec=
10612 tmp_sharedflag='--shared' ;;
10613 nagfor*) # NAGFOR 5.3
10614 tmp_sharedflag='-Wl,-shared' ;;
10615 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10616 tmp_sharedflag='-qmkshrobj'
10617 tmp_addflag= ;;
10618 nvcc*) # Cuda Compiler Driver 2.2
10619 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'
10620 compiler_needs_object=yes
10621 ;;
10622 esac
10623 case `$CC -V 2>&1 | $SED 5q` in
10624 *Sun\ C*) # Sun C 5.9
10625 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'
10626 compiler_needs_object=yes
10627 tmp_sharedflag='-G' ;;
10628 *Sun\ F*) # Sun Fortran 8.3
10629 tmp_sharedflag='-G' ;;
10630 esac
10631 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10632
10633 if test yes = "$supports_anon_versioning"; then
10634 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10635 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10636 echo "local: *; };" >> $output_objdir/$libname.ver~
10637 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10638 fi
10639
10640 case $cc_basename in
10641 tcc*)
10642 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10643 export_dynamic_flag_spec='-rdynamic'
10644 ;;
10645 xlf* | bgf* | bgxlf* | mpixlf*)
10646 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10647 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10648 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10649 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10650 if test yes = "$supports_anon_versioning"; then
10651 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10652 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10653 echo "local: *; };" >> $output_objdir/$libname.ver~
10654 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10655 fi
10656 ;;
10657 esac
10658 else
10659 ld_shlibs=no
10660 fi
10661 ;;
10662
10663 netbsd* | netbsdelf*-gnu)
10664 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10665 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10666 wlarc=
10667 else
10668 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10669 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10670 fi
10671 ;;
10672
10673 solaris*)
10674 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10675 ld_shlibs=no
10676 cat <<_LT_EOF 1>&2
10677
10678 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10679 *** create shared libraries on Solaris systems. Therefore, libtool
10680 *** is disabling shared libraries support. We urge you to upgrade GNU
10681 *** binutils to release 2.9.1 or newer. Another option is to modify
10682 *** your PATH or compiler configuration so that the native linker is
10683 *** used, and then restart.
10684
10685 _LT_EOF
10686 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10687 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10688 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10689 else
10690 ld_shlibs=no
10691 fi
10692 ;;
10693
10694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10695 case `$LD -v 2>&1` in
10696 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10697 ld_shlibs=no
10698 cat <<_LT_EOF 1>&2
10699
10700 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10701 *** reliably create shared libraries on SCO systems. Therefore, libtool
10702 *** is disabling shared libraries support. We urge you to upgrade GNU
10703 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10704 *** your PATH or compiler configuration so that the native linker is
10705 *** used, and then restart.
10706
10707 _LT_EOF
10708 ;;
10709 *)
10710 # For security reasons, it is highly recommended that you always
10711 # use absolute paths for naming shared libraries, and exclude the
10712 # DT_RUNPATH tag from executables and libraries. But doing so
10713 # requires that you compile everything twice, which is a pain.
10714 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10715 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10718 else
10719 ld_shlibs=no
10720 fi
10721 ;;
10722 esac
10723 ;;
10724
10725 sunos4*)
10726 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10727 wlarc=
10728 hardcode_direct=yes
10729 hardcode_shlibpath_var=no
10730 ;;
10731
10732 *)
10733 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10734 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10735 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10736 else
10737 ld_shlibs=no
10738 fi
10739 ;;
10740 esac
10741
10742 if test no = "$ld_shlibs"; then
10743 runpath_var=
10744 hardcode_libdir_flag_spec=
10745 export_dynamic_flag_spec=
10746 whole_archive_flag_spec=
10747 fi
10748 else
10749 # PORTME fill in a description of your system's linker (not GNU ld)
10750 case $host_os in
10751 aix3*)
10752 allow_undefined_flag=unsupported
10753 always_export_symbols=yes
10754 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'
10755 # Note: this linker hardcodes the directories in LIBPATH if there
10756 # are no directories specified by -L.
10757 hardcode_minus_L=yes
10758 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10759 # Neither direct hardcoding nor static linking is supported with a
10760 # broken collect2.
10761 hardcode_direct=unsupported
10762 fi
10763 ;;
10764
10765 aix[4-9]*)
10766 if test ia64 = "$host_cpu"; then
10767 # On IA64, the linker does run time linking by default, so we don't
10768 # have to do anything special.
10769 aix_use_runtimelinking=no
10770 exp_sym_flag='-Bexport'
10771 no_entry_flag=
10772 else
10773 # If we're using GNU nm, then we don't want the "-C" option.
10774 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10775 # Without the "-l" option, or with the "-B" option, AIX nm treats
10776 # weak defined symbols like other global defined symbols, whereas
10777 # GNU nm marks them as "W".
10778 # While the 'weak' keyword is ignored in the Export File, we need
10779 # it in the Import File for the 'aix-soname' feature, so we have
10780 # to replace the "-B" option with "-P" for AIX nm.
10781 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10782 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'
10783 else
10784 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'
10785 fi
10786 aix_use_runtimelinking=no
10787
10788 # Test if we are trying to use run time linking or normal
10789 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10790 # have runtime linking enabled, and use it for executables.
10791 # For shared libraries, we enable/disable runtime linking
10792 # depending on the kind of the shared library created -
10793 # when "with_aix_soname,aix_use_runtimelinking" is:
10794 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10795 # "aix,yes" lib.so shared, rtl:yes, for executables
10796 # lib.a static archive
10797 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10798 # lib.a(lib.so.V) shared, rtl:no, for executables
10799 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10800 # lib.a(lib.so.V) shared, rtl:no
10801 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10802 # lib.a static archive
10803 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10804 for ld_flag in $LDFLAGS; do
10805 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10806 aix_use_runtimelinking=yes
10807 break
10808 fi
10809 done
10810 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10811 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10812 # so we don't have lib.a shared libs to link our executables.
10813 # We have to force runtime linking in this case.
10814 aix_use_runtimelinking=yes
10815 LDFLAGS="$LDFLAGS -Wl,-brtl"
10816 fi
10817 ;;
10818 esac
10819
10820 exp_sym_flag='-bexport'
10821 no_entry_flag='-bnoentry'
10822 fi
10823
10824 # When large executables or shared objects are built, AIX ld can
10825 # have problems creating the table of contents. If linking a library
10826 # or program results in "error TOC overflow" add -mminimal-toc to
10827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10829
10830 archive_cmds=''
10831 hardcode_direct=yes
10832 hardcode_direct_absolute=yes
10833 hardcode_libdir_separator=':'
10834 link_all_deplibs=yes
10835 file_list_spec='$wl-f,'
10836 case $with_aix_soname,$aix_use_runtimelinking in
10837 aix,*) ;; # traditional, no import file
10838 svr4,* | *,yes) # use import file
10839 # The Import File defines what to hardcode.
10840 hardcode_direct=no
10841 hardcode_direct_absolute=no
10842 ;;
10843 esac
10844
10845 if test yes = "$GCC"; then
10846 case $host_os in aix4.[012]|aix4.[012].*)
10847 # We only want to do this on AIX 4.2 and lower, the check
10848 # below for broken collect2 doesn't work under 4.3+
10849 collect2name=`$CC -print-prog-name=collect2`
10850 if test -f "$collect2name" &&
10851 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10852 then
10853 # We have reworked collect2
10854 :
10855 else
10856 # We have old collect2
10857 hardcode_direct=unsupported
10858 # It fails to find uninstalled libraries when the uninstalled
10859 # path is not listed in the libpath. Setting hardcode_minus_L
10860 # to unsupported forces relinking
10861 hardcode_minus_L=yes
10862 hardcode_libdir_flag_spec='-L$libdir'
10863 hardcode_libdir_separator=
10864 fi
10865 ;;
10866 esac
10867 shared_flag='-shared'
10868 if test yes = "$aix_use_runtimelinking"; then
10869 shared_flag="$shared_flag "'$wl-G'
10870 fi
10871 # Need to ensure runtime linking is disabled for the traditional
10872 # shared library, or the linker may eventually find shared libraries
10873 # /with/ Import File - we do not want to mix them.
10874 shared_flag_aix='-shared'
10875 shared_flag_svr4='-shared $wl-G'
10876 else
10877 # not using gcc
10878 if test ia64 = "$host_cpu"; then
10879 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10880 # chokes on -Wl,-G. The following line is correct:
10881 shared_flag='-G'
10882 else
10883 if test yes = "$aix_use_runtimelinking"; then
10884 shared_flag='$wl-G'
10885 else
10886 shared_flag='$wl-bM:SRE'
10887 fi
10888 shared_flag_aix='$wl-bM:SRE'
10889 shared_flag_svr4='$wl-G'
10890 fi
10891 fi
10892
10893 export_dynamic_flag_spec='$wl-bexpall'
10894 # It seems that -bexpall does not export symbols beginning with
10895 # underscore (_), so it is better to generate a list of symbols to export.
10896 always_export_symbols=yes
10897 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10898 # Warning - without using the other runtime loading flags (-brtl),
10899 # -berok will link without error, but may produce a broken library.
10900 allow_undefined_flag='-berok'
10901 # Determine the default libpath from the value encoded in an
10902 # empty executable.
10903 if test set = "${lt_cv_aix_libpath+set}"; then
10904 aix_libpath=$lt_cv_aix_libpath
10905 else
10906 if test ${lt_cv_aix_libpath_+y}
10907 then :
10908 printf %s "(cached) " >&6
10909 else $as_nop
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912
10913 int
10914 main (void)
10915 {
10916
10917 ;
10918 return 0;
10919 }
10920 _ACEOF
10921 if ac_fn_c_try_link "$LINENO"
10922 then :
10923
10924 lt_aix_libpath_sed='
10925 /Import File Strings/,/^$/ {
10926 /^0/ {
10927 s/^0 *\([^ ]*\) *$/\1/
10928 p
10929 }
10930 }'
10931 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10932 # Check for a 64-bit object if we didn't find anything.
10933 if test -z "$lt_cv_aix_libpath_"; then
10934 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10935 fi
10936 fi
10937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10938 conftest$ac_exeext conftest.$ac_ext
10939 if test -z "$lt_cv_aix_libpath_"; then
10940 lt_cv_aix_libpath_=/usr/lib:/lib
10941 fi
10942
10943 fi
10944
10945 aix_libpath=$lt_cv_aix_libpath_
10946 fi
10947
10948 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10949 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
10950 else
10951 if test ia64 = "$host_cpu"; then
10952 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10953 allow_undefined_flag="-z nodefs"
10954 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"
10955 else
10956 # Determine the default libpath from the value encoded in an
10957 # empty executable.
10958 if test set = "${lt_cv_aix_libpath+set}"; then
10959 aix_libpath=$lt_cv_aix_libpath
10960 else
10961 if test ${lt_cv_aix_libpath_+y}
10962 then :
10963 printf %s "(cached) " >&6
10964 else $as_nop
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10967
10968 int
10969 main (void)
10970 {
10971
10972 ;
10973 return 0;
10974 }
10975 _ACEOF
10976 if ac_fn_c_try_link "$LINENO"
10977 then :
10978
10979 lt_aix_libpath_sed='
10980 /Import File Strings/,/^$/ {
10981 /^0/ {
10982 s/^0 *\([^ ]*\) *$/\1/
10983 p
10984 }
10985 }'
10986 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10987 # Check for a 64-bit object if we didn't find anything.
10988 if test -z "$lt_cv_aix_libpath_"; then
10989 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10990 fi
10991 fi
10992 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10993 conftest$ac_exeext conftest.$ac_ext
10994 if test -z "$lt_cv_aix_libpath_"; then
10995 lt_cv_aix_libpath_=/usr/lib:/lib
10996 fi
10997
10998 fi
10999
11000 aix_libpath=$lt_cv_aix_libpath_
11001 fi
11002
11003 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11004 # Warning - without using the other run time loading flags,
11005 # -berok will link without error, but may produce a broken library.
11006 no_undefined_flag=' $wl-bernotok'
11007 allow_undefined_flag=' $wl-berok'
11008 if test yes = "$with_gnu_ld"; then
11009 # We only use this code for GNU lds that support --whole-archive.
11010 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11011 else
11012 # Exported symbols can be pulled into shared objects from archives
11013 whole_archive_flag_spec='$convenience'
11014 fi
11015 archive_cmds_need_lc=yes
11016 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11017 # -brtl affects multiple linker settings, -berok does not and is overridden later
11018 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11019 if test svr4 != "$with_aix_soname"; then
11020 # This is similar to how AIX traditionally builds its shared libraries.
11021 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'
11022 fi
11023 if test aix != "$with_aix_soname"; then
11024 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'
11025 else
11026 # used by -dlpreopen to get the symbols
11027 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11028 fi
11029 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11030 fi
11031 fi
11032 ;;
11033
11034 amigaos*)
11035 case $host_cpu in
11036 powerpc)
11037 # see comment about AmigaOS4 .so support
11038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11039 archive_expsym_cmds=''
11040 ;;
11041 m68k)
11042 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)'
11043 hardcode_libdir_flag_spec='-L$libdir'
11044 hardcode_minus_L=yes
11045 ;;
11046 esac
11047 ;;
11048
11049 bsdi[45]*)
11050 export_dynamic_flag_spec=-rdynamic
11051 ;;
11052
11053 cygwin* | mingw* | pw32* | cegcc*)
11054 # When not using gcc, we currently assume that we are using
11055 # Microsoft Visual C++ or Intel C++ Compiler.
11056 # hardcode_libdir_flag_spec is actually meaningless, as there is
11057 # no search path for DLLs.
11058 case $cc_basename in
11059 cl* | icl*)
11060 # Native MSVC or ICC
11061 hardcode_libdir_flag_spec=' '
11062 allow_undefined_flag=unsupported
11063 always_export_symbols=yes
11064 file_list_spec='@'
11065 # Tell ltmain to make .lib files, not .a files.
11066 libext=lib
11067 # Tell ltmain to make .dll files, not .so files.
11068 shrext_cmds=.dll
11069 # FIXME: Setting linknames here is a bad hack.
11070 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11071 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11072 cp "$export_symbols" "$output_objdir/$soname.def";
11073 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11074 else
11075 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11076 fi~
11077 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11078 linknames='
11079 # The linker will not automatically build a static lib if we build a DLL.
11080 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11081 enable_shared_with_static_runtimes=yes
11082 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11083 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11084 # Don't use ranlib
11085 old_postinstall_cmds='chmod 644 $oldlib'
11086 postlink_cmds='lt_outputfile="@OUTPUT@"~
11087 lt_tool_outputfile="@TOOL_OUTPUT@"~
11088 case $lt_outputfile in
11089 *.exe|*.EXE) ;;
11090 *)
11091 lt_outputfile=$lt_outputfile.exe
11092 lt_tool_outputfile=$lt_tool_outputfile.exe
11093 ;;
11094 esac~
11095 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11096 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11097 $RM "$lt_outputfile.manifest";
11098 fi'
11099 ;;
11100 *)
11101 # Assume MSVC and ICC wrapper
11102 hardcode_libdir_flag_spec=' '
11103 allow_undefined_flag=unsupported
11104 # Tell ltmain to make .lib files, not .a files.
11105 libext=lib
11106 # Tell ltmain to make .dll files, not .so files.
11107 shrext_cmds=.dll
11108 # FIXME: Setting linknames here is a bad hack.
11109 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11110 # The linker will automatically build a .lib file if we build a DLL.
11111 old_archive_from_new_cmds='true'
11112 # FIXME: Should let the user specify the lib program.
11113 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11114 enable_shared_with_static_runtimes=yes
11115 ;;
11116 esac
11117 ;;
11118
11119 darwin* | rhapsody*)
11120
11121
11122 archive_cmds_need_lc=no
11123 hardcode_direct=no
11124 hardcode_automatic=yes
11125 hardcode_shlibpath_var=unsupported
11126 if test yes = "$lt_cv_ld_force_load"; then
11127 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\"`'
11128
11129 else
11130 whole_archive_flag_spec=''
11131 fi
11132 link_all_deplibs=yes
11133 allow_undefined_flag=$_lt_dar_allow_undefined
11134 case $cc_basename in
11135 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11136 *) _lt_dar_can_shared=$GCC ;;
11137 esac
11138 if test yes = "$_lt_dar_can_shared"; then
11139 output_verbose_link_cmd=func_echo_all
11140 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11141 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11142 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"
11143 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"
11144
11145 else
11146 ld_shlibs=no
11147 fi
11148
11149 ;;
11150
11151 dgux*)
11152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11153 hardcode_libdir_flag_spec='-L$libdir'
11154 hardcode_shlibpath_var=no
11155 ;;
11156
11157 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11158 # support. Future versions do this automatically, but an explicit c++rt0.o
11159 # does not break anything, and helps significantly (at the cost of a little
11160 # extra space).
11161 freebsd2.2*)
11162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11163 hardcode_libdir_flag_spec='-R$libdir'
11164 hardcode_direct=yes
11165 hardcode_shlibpath_var=no
11166 ;;
11167
11168 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11169 freebsd2.*)
11170 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11171 hardcode_direct=yes
11172 hardcode_minus_L=yes
11173 hardcode_shlibpath_var=no
11174 ;;
11175
11176 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11177 freebsd* | dragonfly* | midnightbsd*)
11178 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11179 hardcode_libdir_flag_spec='-R$libdir'
11180 hardcode_direct=yes
11181 hardcode_shlibpath_var=no
11182 ;;
11183
11184 hpux9*)
11185 if test yes = "$GCC"; then
11186 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'
11187 else
11188 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'
11189 fi
11190 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11191 hardcode_libdir_separator=:
11192 hardcode_direct=yes
11193
11194 # hardcode_minus_L: Not really in the search PATH,
11195 # but as the default location of the library.
11196 hardcode_minus_L=yes
11197 export_dynamic_flag_spec='$wl-E'
11198 ;;
11199
11200 hpux10*)
11201 if test yes,no = "$GCC,$with_gnu_ld"; then
11202 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11203 else
11204 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11205 fi
11206 if test no = "$with_gnu_ld"; then
11207 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11208 hardcode_libdir_separator=:
11209 hardcode_direct=yes
11210 hardcode_direct_absolute=yes
11211 export_dynamic_flag_spec='$wl-E'
11212 # hardcode_minus_L: Not really in the search PATH,
11213 # but as the default location of the library.
11214 hardcode_minus_L=yes
11215 fi
11216 ;;
11217
11218 hpux11*)
11219 if test yes,no = "$GCC,$with_gnu_ld"; then
11220 case $host_cpu in
11221 hppa*64*)
11222 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11223 ;;
11224 ia64*)
11225 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11226 ;;
11227 *)
11228 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11229 ;;
11230 esac
11231 else
11232 case $host_cpu in
11233 hppa*64*)
11234 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11235 ;;
11236 ia64*)
11237 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11238 ;;
11239 *)
11240
11241 # Older versions of the 11.00 compiler do not understand -b yet
11242 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11244 printf %s "checking if $CC understands -b... " >&6; }
11245 if test ${lt_cv_prog_compiler__b+y}
11246 then :
11247 printf %s "(cached) " >&6
11248 else $as_nop
11249 lt_cv_prog_compiler__b=no
11250 save_LDFLAGS=$LDFLAGS
11251 LDFLAGS="$LDFLAGS -b"
11252 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11253 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11254 # The linker can only warn and ignore the option if not recognized
11255 # So say no if there are warnings
11256 if test -s conftest.err; then
11257 # Append any errors to the config.log.
11258 cat conftest.err 1>&5
11259 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11261 if diff conftest.exp conftest.er2 >/dev/null; then
11262 lt_cv_prog_compiler__b=yes
11263 fi
11264 else
11265 lt_cv_prog_compiler__b=yes
11266 fi
11267 fi
11268 $RM -r conftest*
11269 LDFLAGS=$save_LDFLAGS
11270
11271 fi
11272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11273 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11274
11275 if test yes = "$lt_cv_prog_compiler__b"; then
11276 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11277 else
11278 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11279 fi
11280
11281 ;;
11282 esac
11283 fi
11284 if test no = "$with_gnu_ld"; then
11285 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11286 hardcode_libdir_separator=:
11287
11288 case $host_cpu in
11289 hppa*64*|ia64*)
11290 hardcode_direct=no
11291 hardcode_shlibpath_var=no
11292 ;;
11293 *)
11294 hardcode_direct=yes
11295 hardcode_direct_absolute=yes
11296 export_dynamic_flag_spec='$wl-E'
11297
11298 # hardcode_minus_L: Not really in the search PATH,
11299 # but as the default location of the library.
11300 hardcode_minus_L=yes
11301 ;;
11302 esac
11303 fi
11304 ;;
11305
11306 irix5* | irix6* | nonstopux*)
11307 if test yes = "$GCC"; then
11308 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'
11309 # Try to use the -exported_symbol ld option, if it does not
11310 # work, assume that -exports_file does not work either and
11311 # implicitly export all symbols.
11312 # This should be the same for all languages, so no per-tag cache variable.
11313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11314 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11315 if test ${lt_cv_irix_exported_symbol+y}
11316 then :
11317 printf %s "(cached) " >&6
11318 else $as_nop
11319 save_LDFLAGS=$LDFLAGS
11320 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11323 int foo (void) { return 0; }
11324 _ACEOF
11325 if ac_fn_c_try_link "$LINENO"
11326 then :
11327 lt_cv_irix_exported_symbol=yes
11328 else $as_nop
11329 lt_cv_irix_exported_symbol=no
11330 fi
11331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11332 conftest$ac_exeext conftest.$ac_ext
11333 LDFLAGS=$save_LDFLAGS
11334 fi
11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11336 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11337 if test yes = "$lt_cv_irix_exported_symbol"; then
11338 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'
11339 fi
11340 link_all_deplibs=no
11341 else
11342 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'
11343 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'
11344 fi
11345 archive_cmds_need_lc='no'
11346 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11347 hardcode_libdir_separator=:
11348 inherit_rpath=yes
11349 link_all_deplibs=yes
11350 ;;
11351
11352 linux*)
11353 case $cc_basename in
11354 tcc*)
11355 # Fabrice Bellard et al's Tiny C Compiler
11356 ld_shlibs=yes
11357 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11358 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11359 ;;
11360 esac
11361 ;;
11362
11363 netbsd* | netbsdelf*-gnu)
11364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11366 else
11367 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11368 fi
11369 hardcode_libdir_flag_spec='-R$libdir'
11370 hardcode_direct=yes
11371 hardcode_shlibpath_var=no
11372 ;;
11373
11374 newsos6)
11375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11376 hardcode_direct=yes
11377 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11378 hardcode_libdir_separator=:
11379 hardcode_shlibpath_var=no
11380 ;;
11381
11382 *nto* | *qnx*)
11383 ;;
11384
11385 openbsd* | bitrig*)
11386 if test -f /usr/libexec/ld.so; then
11387 hardcode_direct=yes
11388 hardcode_shlibpath_var=no
11389 hardcode_direct_absolute=yes
11390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11391 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11392 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11393 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11394 export_dynamic_flag_spec='$wl-E'
11395 else
11396 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11397 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11398 fi
11399 else
11400 ld_shlibs=no
11401 fi
11402 ;;
11403
11404 os2*)
11405 hardcode_libdir_flag_spec='-L$libdir'
11406 hardcode_minus_L=yes
11407 allow_undefined_flag=unsupported
11408 shrext_cmds=.dll
11409 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11410 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11411 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11412 $ECHO EXPORTS >> $output_objdir/$libname.def~
11413 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11414 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11415 emximp -o $lib $output_objdir/$libname.def'
11416 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11417 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11418 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11419 $ECHO EXPORTS >> $output_objdir/$libname.def~
11420 prefix_cmds="$SED"~
11421 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11422 prefix_cmds="$prefix_cmds -e 1d";
11423 fi~
11424 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11425 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11426 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11427 emximp -o $lib $output_objdir/$libname.def'
11428 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11429 enable_shared_with_static_runtimes=yes
11430 file_list_spec='@'
11431 ;;
11432
11433 osf3*)
11434 if test yes = "$GCC"; then
11435 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11436 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'
11437 else
11438 allow_undefined_flag=' -expect_unresolved \*'
11439 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'
11440 fi
11441 archive_cmds_need_lc='no'
11442 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11443 hardcode_libdir_separator=:
11444 ;;
11445
11446 osf4* | osf5*) # as osf3* with the addition of -msym flag
11447 if test yes = "$GCC"; then
11448 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11449 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'
11450 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11451 else
11452 allow_undefined_flag=' -expect_unresolved \*'
11453 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'
11454 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~
11455 $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'
11456
11457 # Both c and cxx compiler support -rpath directly
11458 hardcode_libdir_flag_spec='-rpath $libdir'
11459 fi
11460 archive_cmds_need_lc='no'
11461 hardcode_libdir_separator=:
11462 ;;
11463
11464 solaris*)
11465 no_undefined_flag=' -z defs'
11466 if test yes = "$GCC"; then
11467 wlarc='$wl'
11468 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11470 $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'
11471 else
11472 case `$CC -V 2>&1` in
11473 *"Compilers 5.0"*)
11474 wlarc=''
11475 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11477 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11478 ;;
11479 *)
11480 wlarc='$wl'
11481 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11483 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11484 ;;
11485 esac
11486 fi
11487 hardcode_libdir_flag_spec='-R$libdir'
11488 hardcode_shlibpath_var=no
11489 case $host_os in
11490 solaris2.[0-5] | solaris2.[0-5].*) ;;
11491 *)
11492 # The compiler driver will combine and reorder linker options,
11493 # but understands '-z linker_flag'. GCC discards it without '$wl',
11494 # but is careful enough not to reorder.
11495 # Supported since Solaris 2.6 (maybe 2.5.1?)
11496 if test yes = "$GCC"; then
11497 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11498 else
11499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11500 fi
11501 ;;
11502 esac
11503 link_all_deplibs=yes
11504 ;;
11505
11506 sunos4*)
11507 if test sequent = "$host_vendor"; then
11508 # Use $CC to link under sequent, because it throws in some extra .o
11509 # files that make .init and .fini sections work.
11510 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11511 else
11512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11513 fi
11514 hardcode_libdir_flag_spec='-L$libdir'
11515 hardcode_direct=yes
11516 hardcode_minus_L=yes
11517 hardcode_shlibpath_var=no
11518 ;;
11519
11520 sysv4)
11521 case $host_vendor in
11522 sni)
11523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11524 hardcode_direct=yes # is this really true???
11525 ;;
11526 siemens)
11527 ## LD is ld it makes a PLAMLIB
11528 ## CC just makes a GrossModule.
11529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11530 reload_cmds='$CC -r -o $output$reload_objs'
11531 hardcode_direct=no
11532 ;;
11533 motorola)
11534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11536 ;;
11537 esac
11538 runpath_var='LD_RUN_PATH'
11539 hardcode_shlibpath_var=no
11540 ;;
11541
11542 sysv4.3*)
11543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11544 hardcode_shlibpath_var=no
11545 export_dynamic_flag_spec='-Bexport'
11546 ;;
11547
11548 sysv4*MP*)
11549 if test -d /usr/nec; then
11550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11551 hardcode_shlibpath_var=no
11552 runpath_var=LD_RUN_PATH
11553 hardcode_runpath_var=yes
11554 ld_shlibs=yes
11555 fi
11556 ;;
11557
11558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11559 no_undefined_flag='$wl-z,text'
11560 archive_cmds_need_lc=no
11561 hardcode_shlibpath_var=no
11562 runpath_var='LD_RUN_PATH'
11563
11564 if test yes = "$GCC"; then
11565 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11566 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11567 else
11568 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11569 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11570 fi
11571 ;;
11572
11573 sysv5* | sco3.2v5* | sco5v6*)
11574 # Note: We CANNOT use -z defs as we might desire, because we do not
11575 # link with -lc, and that would cause any symbols used from libc to
11576 # always be unresolved, which means just about no library would
11577 # ever link correctly. If we're not using GNU ld we use -z text
11578 # though, which does catch some bad symbols but isn't as heavy-handed
11579 # as -z defs.
11580 no_undefined_flag='$wl-z,text'
11581 allow_undefined_flag='$wl-z,nodefs'
11582 archive_cmds_need_lc=no
11583 hardcode_shlibpath_var=no
11584 hardcode_libdir_flag_spec='$wl-R,$libdir'
11585 hardcode_libdir_separator=':'
11586 link_all_deplibs=yes
11587 export_dynamic_flag_spec='$wl-Bexport'
11588 runpath_var='LD_RUN_PATH'
11589
11590 if test yes = "$GCC"; then
11591 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11592 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11593 else
11594 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11595 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11596 fi
11597 ;;
11598
11599 uts4*)
11600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11601 hardcode_libdir_flag_spec='-L$libdir'
11602 hardcode_shlibpath_var=no
11603 ;;
11604
11605 *)
11606 ld_shlibs=no
11607 ;;
11608 esac
11609
11610 if test sni = "$host_vendor"; then
11611 case $host in
11612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11613 export_dynamic_flag_spec='$wl-Blargedynsym'
11614 ;;
11615 esac
11616 fi
11617 fi
11618
11619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11620 printf "%s\n" "$ld_shlibs" >&6; }
11621 test no = "$ld_shlibs" && can_build_shared=no
11622
11623 with_gnu_ld=$with_gnu_ld
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639 #
11640 # Do we need to explicitly link libc?
11641 #
11642 case "x$archive_cmds_need_lc" in
11643 x|xyes)
11644 # Assume -lc should be added
11645 archive_cmds_need_lc=yes
11646
11647 if test yes,yes = "$GCC,$enable_shared"; then
11648 case $archive_cmds in
11649 *'~'*)
11650 # FIXME: we may have to deal with multi-command sequences.
11651 ;;
11652 '$CC '*)
11653 # Test whether the compiler implicitly links with -lc since on some
11654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11655 # to ld, don't add -lc before -lgcc.
11656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11657 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11658 if test ${lt_cv_archive_cmds_need_lc+y}
11659 then :
11660 printf %s "(cached) " >&6
11661 else $as_nop
11662 $RM conftest*
11663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11664
11665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11666 (eval $ac_compile) 2>&5
11667 ac_status=$?
11668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11669 test $ac_status = 0; } 2>conftest.err; then
11670 soname=conftest
11671 lib=conftest
11672 libobjs=conftest.$ac_objext
11673 deplibs=
11674 wl=$lt_prog_compiler_wl
11675 pic_flag=$lt_prog_compiler_pic
11676 compiler_flags=-v
11677 linker_flags=-v
11678 verstring=
11679 output_objdir=.
11680 libname=conftest
11681 lt_save_allow_undefined_flag=$allow_undefined_flag
11682 allow_undefined_flag=
11683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11684 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11685 ac_status=$?
11686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687 test $ac_status = 0; }
11688 then
11689 lt_cv_archive_cmds_need_lc=no
11690 else
11691 lt_cv_archive_cmds_need_lc=yes
11692 fi
11693 allow_undefined_flag=$lt_save_allow_undefined_flag
11694 else
11695 cat conftest.err 1>&5
11696 fi
11697 $RM conftest*
11698
11699 fi
11700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11701 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11702 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11703 ;;
11704 esac
11705 fi
11706 ;;
11707 esac
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11861 printf %s "checking dynamic linker characteristics... " >&6; }
11862
11863 if test yes = "$GCC"; then
11864 case $host_os in
11865 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11866 *) lt_awk_arg='/^libraries:/' ;;
11867 esac
11868 case $host_os in
11869 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11870 *) lt_sed_strip_eq='s|=/|/|g' ;;
11871 esac
11872 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11873 case $lt_search_path_spec in
11874 *\;*)
11875 # if the path contains ";" then we assume it to be the separator
11876 # otherwise default to the standard path separator (i.e. ":") - it is
11877 # assumed that no part of a normal pathname contains ";" but that should
11878 # okay in the real world where ";" in dirpaths is itself problematic.
11879 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11880 ;;
11881 *)
11882 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11883 ;;
11884 esac
11885 # Ok, now we have the path, separated by spaces, we can step through it
11886 # and add multilib dir if necessary...
11887 lt_tmp_lt_search_path_spec=
11888 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11889 # ...but if some path component already ends with the multilib dir we assume
11890 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11891 case "$lt_multi_os_dir; $lt_search_path_spec " in
11892 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11893 lt_multi_os_dir=
11894 ;;
11895 esac
11896 for lt_sys_path in $lt_search_path_spec; do
11897 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11898 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11899 elif test -n "$lt_multi_os_dir"; then
11900 test -d "$lt_sys_path" && \
11901 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11902 fi
11903 done
11904 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11905 BEGIN {RS = " "; FS = "/|\n";} {
11906 lt_foo = "";
11907 lt_count = 0;
11908 for (lt_i = NF; lt_i > 0; lt_i--) {
11909 if ($lt_i != "" && $lt_i != ".") {
11910 if ($lt_i == "..") {
11911 lt_count++;
11912 } else {
11913 if (lt_count == 0) {
11914 lt_foo = "/" $lt_i lt_foo;
11915 } else {
11916 lt_count--;
11917 }
11918 }
11919 }
11920 }
11921 if (lt_foo != "") { lt_freq[lt_foo]++; }
11922 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11923 }'`
11924 # AWK program above erroneously prepends '/' to C:/dos/paths
11925 # for these hosts.
11926 case $host_os in
11927 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11928 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11929 esac
11930 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11931 else
11932 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11933 fi
11934 library_names_spec=
11935 libname_spec='lib$name'
11936 soname_spec=
11937 shrext_cmds=.so
11938 postinstall_cmds=
11939 postuninstall_cmds=
11940 finish_cmds=
11941 finish_eval=
11942 shlibpath_var=
11943 shlibpath_overrides_runpath=unknown
11944 version_type=none
11945 dynamic_linker="$host_os ld.so"
11946 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11947 need_lib_prefix=unknown
11948 hardcode_into_libs=no
11949
11950 # when you set need_version to no, make sure it does not cause -set_version
11951 # flags to be left without arguments
11952 need_version=unknown
11953
11954
11955
11956 case $host_os in
11957 aix3*)
11958 version_type=linux # correct to gnu/linux during the next big refactor
11959 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11960 shlibpath_var=LIBPATH
11961
11962 # AIX 3 has no versioning support, so we append a major version to the name.
11963 soname_spec='$libname$release$shared_ext$major'
11964 ;;
11965
11966 aix[4-9]*)
11967 version_type=linux # correct to gnu/linux during the next big refactor
11968 need_lib_prefix=no
11969 need_version=no
11970 hardcode_into_libs=yes
11971 if test ia64 = "$host_cpu"; then
11972 # AIX 5 supports IA64
11973 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11974 shlibpath_var=LD_LIBRARY_PATH
11975 else
11976 # With GCC up to 2.95.x, collect2 would create an import file
11977 # for dependence libraries. The import file would start with
11978 # the line '#! .'. This would cause the generated library to
11979 # depend on '.', always an invalid library. This was fixed in
11980 # development snapshots of GCC prior to 3.0.
11981 case $host_os in
11982 aix4 | aix4.[01] | aix4.[01].*)
11983 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11984 echo ' yes '
11985 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11986 :
11987 else
11988 can_build_shared=no
11989 fi
11990 ;;
11991 esac
11992 # Using Import Files as archive members, it is possible to support
11993 # filename-based versioning of shared library archives on AIX. While
11994 # this would work for both with and without runtime linking, it will
11995 # prevent static linking of such archives. So we do filename-based
11996 # shared library versioning with .so extension only, which is used
11997 # when both runtime linking and shared linking is enabled.
11998 # Unfortunately, runtime linking may impact performance, so we do
11999 # not want this to be the default eventually. Also, we use the
12000 # versioned .so libs for executables only if there is the -brtl
12001 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12002 # To allow for filename-based versioning support, we need to create
12003 # libNAME.so.V as an archive file, containing:
12004 # *) an Import File, referring to the versioned filename of the
12005 # archive as well as the shared archive member, telling the
12006 # bitwidth (32 or 64) of that shared object, and providing the
12007 # list of exported symbols of that shared object, eventually
12008 # decorated with the 'weak' keyword
12009 # *) the shared object with the F_LOADONLY flag set, to really avoid
12010 # it being seen by the linker.
12011 # At run time we better use the real file rather than another symlink,
12012 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12013
12014 case $with_aix_soname,$aix_use_runtimelinking in
12015 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12016 # soname into executable. Probably we can add versioning support to
12017 # collect2, so additional links can be useful in future.
12018 aix,yes) # traditional libtool
12019 dynamic_linker='AIX unversionable lib.so'
12020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12021 # instead of lib<name>.a to let people know that these are not
12022 # typical AIX shared libraries.
12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12024 ;;
12025 aix,no) # traditional AIX only
12026 dynamic_linker='AIX lib.a(lib.so.V)'
12027 # We preserve .a as extension for shared libraries through AIX4.2
12028 # and later when we are not doing run time linking.
12029 library_names_spec='$libname$release.a $libname.a'
12030 soname_spec='$libname$release$shared_ext$major'
12031 ;;
12032 svr4,*) # full svr4 only
12033 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12034 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12035 # We do not specify a path in Import Files, so LIBPATH fires.
12036 shlibpath_overrides_runpath=yes
12037 ;;
12038 *,yes) # both, prefer svr4
12039 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12040 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12041 # unpreferred sharedlib libNAME.a needs extra handling
12042 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"'
12043 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"'
12044 # We do not specify a path in Import Files, so LIBPATH fires.
12045 shlibpath_overrides_runpath=yes
12046 ;;
12047 *,no) # both, prefer aix
12048 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12049 library_names_spec='$libname$release.a $libname.a'
12050 soname_spec='$libname$release$shared_ext$major'
12051 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12052 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)'
12053 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"'
12054 ;;
12055 esac
12056 shlibpath_var=LIBPATH
12057 fi
12058 ;;
12059
12060 amigaos*)
12061 case $host_cpu in
12062 powerpc)
12063 # Since July 2007 AmigaOS4 officially supports .so libraries.
12064 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12066 ;;
12067 m68k)
12068 library_names_spec='$libname.ixlibrary $libname.a'
12069 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12070 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'
12071 ;;
12072 esac
12073 ;;
12074
12075 beos*)
12076 library_names_spec='$libname$shared_ext'
12077 dynamic_linker="$host_os ld.so"
12078 shlibpath_var=LIBRARY_PATH
12079 ;;
12080
12081 bsdi[45]*)
12082 version_type=linux # correct to gnu/linux during the next big refactor
12083 need_version=no
12084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12085 soname_spec='$libname$release$shared_ext$major'
12086 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12087 shlibpath_var=LD_LIBRARY_PATH
12088 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12089 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12090 # the default ld.so.conf also contains /usr/contrib/lib and
12091 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12092 # libtool to hard-code these into programs
12093 ;;
12094
12095 cygwin* | mingw* | pw32* | cegcc*)
12096 version_type=windows
12097 shrext_cmds=.dll
12098 need_version=no
12099 need_lib_prefix=no
12100
12101 case $GCC,$cc_basename in
12102 yes,*)
12103 # gcc
12104 library_names_spec='$libname.dll.a'
12105 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12106 postinstall_cmds='base_file=`basename \$file`~
12107 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12108 dldir=$destdir/`dirname \$dlpath`~
12109 test -d \$dldir || mkdir -p \$dldir~
12110 $install_prog $dir/$dlname \$dldir/$dlname~
12111 chmod a+x \$dldir/$dlname~
12112 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12113 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12114 fi'
12115 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12116 dlpath=$dir/\$dldll~
12117 $RM \$dlpath'
12118 shlibpath_overrides_runpath=yes
12119
12120 case $host_os in
12121 cygwin*)
12122 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12123 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12124
12125 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12126 ;;
12127 mingw* | cegcc*)
12128 # MinGW DLLs use traditional 'lib' prefix
12129 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12130 ;;
12131 pw32*)
12132 # pw32 DLLs use 'pw' prefix rather than 'lib'
12133 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12134 ;;
12135 esac
12136 dynamic_linker='Win32 ld.exe'
12137 ;;
12138
12139 *,cl* | *,icl*)
12140 # Native MSVC or ICC
12141 libname_spec='$name'
12142 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12143 library_names_spec='$libname.dll.lib'
12144
12145 case $build_os in
12146 mingw*)
12147 sys_lib_search_path_spec=
12148 lt_save_ifs=$IFS
12149 IFS=';'
12150 for lt_path in $LIB
12151 do
12152 IFS=$lt_save_ifs
12153 # Let DOS variable expansion print the short 8.3 style file name.
12154 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12155 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12156 done
12157 IFS=$lt_save_ifs
12158 # Convert to MSYS style.
12159 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12160 ;;
12161 cygwin*)
12162 # Convert to unix form, then to dos form, then back to unix form
12163 # but this time dos style (no spaces!) so that the unix form looks
12164 # like /cygdrive/c/PROGRA~1:/cygdr...
12165 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12166 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12167 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12168 ;;
12169 *)
12170 sys_lib_search_path_spec=$LIB
12171 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12172 # It is most probably a Windows format PATH.
12173 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12174 else
12175 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12176 fi
12177 # FIXME: find the short name or the path components, as spaces are
12178 # common. (e.g. "Program Files" -> "PROGRA~1")
12179 ;;
12180 esac
12181
12182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12183 postinstall_cmds='base_file=`basename \$file`~
12184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12185 dldir=$destdir/`dirname \$dlpath`~
12186 test -d \$dldir || mkdir -p \$dldir~
12187 $install_prog $dir/$dlname \$dldir/$dlname'
12188 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12189 dlpath=$dir/\$dldll~
12190 $RM \$dlpath'
12191 shlibpath_overrides_runpath=yes
12192 dynamic_linker='Win32 link.exe'
12193 ;;
12194
12195 *)
12196 # Assume MSVC and ICC wrapper
12197 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12198 dynamic_linker='Win32 ld.exe'
12199 ;;
12200 esac
12201 # FIXME: first we should search . and the directory the executable is in
12202 shlibpath_var=PATH
12203 ;;
12204
12205 darwin* | rhapsody*)
12206 dynamic_linker="$host_os dyld"
12207 version_type=darwin
12208 need_lib_prefix=no
12209 need_version=no
12210 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12211 soname_spec='$libname$release$major$shared_ext'
12212 shlibpath_overrides_runpath=yes
12213 shlibpath_var=DYLD_LIBRARY_PATH
12214 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12215
12216 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12217 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12218 ;;
12219
12220 dgux*)
12221 version_type=linux # correct to gnu/linux during the next big refactor
12222 need_lib_prefix=no
12223 need_version=no
12224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12225 soname_spec='$libname$release$shared_ext$major'
12226 shlibpath_var=LD_LIBRARY_PATH
12227 ;;
12228
12229 freebsd* | dragonfly* | midnightbsd*)
12230 # DragonFly does not have aout. When/if they implement a new
12231 # versioning mechanism, adjust this.
12232 if test -x /usr/bin/objformat; then
12233 objformat=`/usr/bin/objformat`
12234 else
12235 case $host_os in
12236 freebsd[23].*) objformat=aout ;;
12237 *) objformat=elf ;;
12238 esac
12239 fi
12240 version_type=freebsd-$objformat
12241 case $version_type in
12242 freebsd-elf*)
12243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12244 soname_spec='$libname$release$shared_ext$major'
12245 need_version=no
12246 need_lib_prefix=no
12247 ;;
12248 freebsd-*)
12249 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12250 need_version=yes
12251 ;;
12252 esac
12253 shlibpath_var=LD_LIBRARY_PATH
12254 case $host_os in
12255 freebsd2.*)
12256 shlibpath_overrides_runpath=yes
12257 ;;
12258 freebsd3.[01]* | freebsdelf3.[01]*)
12259 shlibpath_overrides_runpath=yes
12260 hardcode_into_libs=yes
12261 ;;
12262 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12263 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12264 shlibpath_overrides_runpath=no
12265 hardcode_into_libs=yes
12266 ;;
12267 *) # from 4.6 on, and DragonFly
12268 shlibpath_overrides_runpath=yes
12269 hardcode_into_libs=yes
12270 ;;
12271 esac
12272 ;;
12273
12274 haiku*)
12275 version_type=linux # correct to gnu/linux during the next big refactor
12276 need_lib_prefix=no
12277 need_version=no
12278 dynamic_linker="$host_os runtime_loader"
12279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12280 soname_spec='$libname$release$shared_ext$major'
12281 shlibpath_var=LIBRARY_PATH
12282 shlibpath_overrides_runpath=no
12283 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12284 hardcode_into_libs=yes
12285 ;;
12286
12287 hpux9* | hpux10* | hpux11*)
12288 # Give a soname corresponding to the major version so that dld.sl refuses to
12289 # link against other versions.
12290 version_type=sunos
12291 need_lib_prefix=no
12292 need_version=no
12293 case $host_cpu in
12294 ia64*)
12295 shrext_cmds='.so'
12296 hardcode_into_libs=yes
12297 dynamic_linker="$host_os dld.so"
12298 shlibpath_var=LD_LIBRARY_PATH
12299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12301 soname_spec='$libname$release$shared_ext$major'
12302 if test 32 = "$HPUX_IA64_MODE"; then
12303 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12304 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12305 else
12306 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12307 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12308 fi
12309 ;;
12310 hppa*64*)
12311 shrext_cmds='.sl'
12312 hardcode_into_libs=yes
12313 dynamic_linker="$host_os dld.sl"
12314 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12317 soname_spec='$libname$release$shared_ext$major'
12318 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12320 ;;
12321 *)
12322 shrext_cmds='.sl'
12323 dynamic_linker="$host_os dld.sl"
12324 shlibpath_var=SHLIB_PATH
12325 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12327 soname_spec='$libname$release$shared_ext$major'
12328 ;;
12329 esac
12330 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12331 postinstall_cmds='chmod 555 $lib'
12332 # or fails outright, so override atomically:
12333 install_override_mode=555
12334 ;;
12335
12336 interix[3-9]*)
12337 version_type=linux # correct to gnu/linux during the next big refactor
12338 need_lib_prefix=no
12339 need_version=no
12340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12341 soname_spec='$libname$release$shared_ext$major'
12342 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12343 shlibpath_var=LD_LIBRARY_PATH
12344 shlibpath_overrides_runpath=no
12345 hardcode_into_libs=yes
12346 ;;
12347
12348 irix5* | irix6* | nonstopux*)
12349 case $host_os in
12350 nonstopux*) version_type=nonstopux ;;
12351 *)
12352 if test yes = "$lt_cv_prog_gnu_ld"; then
12353 version_type=linux # correct to gnu/linux during the next big refactor
12354 else
12355 version_type=irix
12356 fi ;;
12357 esac
12358 need_lib_prefix=no
12359 need_version=no
12360 soname_spec='$libname$release$shared_ext$major'
12361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12362 case $host_os in
12363 irix5* | nonstopux*)
12364 libsuff= shlibsuff=
12365 ;;
12366 *)
12367 case $LD in # libtool.m4 will add one of these switches to LD
12368 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12369 libsuff= shlibsuff= libmagic=32-bit;;
12370 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12371 libsuff=32 shlibsuff=N32 libmagic=N32;;
12372 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12373 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12374 *) libsuff= shlibsuff= libmagic=never-match;;
12375 esac
12376 ;;
12377 esac
12378 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12379 shlibpath_overrides_runpath=no
12380 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12381 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12382 hardcode_into_libs=yes
12383 ;;
12384
12385 # No shared lib support for Linux oldld, aout, or coff.
12386 linux*oldld* | linux*aout* | linux*coff*)
12387 dynamic_linker=no
12388 ;;
12389
12390 linux*android*)
12391 version_type=none # Android doesn't support versioned libraries.
12392 need_lib_prefix=no
12393 need_version=no
12394 library_names_spec='$libname$release$shared_ext'
12395 soname_spec='$libname$release$shared_ext'
12396 finish_cmds=
12397 shlibpath_var=LD_LIBRARY_PATH
12398 shlibpath_overrides_runpath=yes
12399
12400 # This implies no fast_install, which is unacceptable.
12401 # Some rework will be needed to allow for fast_install
12402 # before this can be enabled.
12403 hardcode_into_libs=yes
12404
12405 dynamic_linker='Android linker'
12406 # Don't embed -rpath directories since the linker doesn't support them.
12407 hardcode_libdir_flag_spec='-L$libdir'
12408 ;;
12409
12410 # This must be glibc/ELF.
12411 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12412 version_type=linux # correct to gnu/linux during the next big refactor
12413 need_lib_prefix=no
12414 need_version=no
12415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12416 soname_spec='$libname$release$shared_ext$major'
12417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12418 shlibpath_var=LD_LIBRARY_PATH
12419 shlibpath_overrides_runpath=no
12420
12421 # Some binutils ld are patched to set DT_RUNPATH
12422 if test ${lt_cv_shlibpath_overrides_runpath+y}
12423 then :
12424 printf %s "(cached) " >&6
12425 else $as_nop
12426 lt_cv_shlibpath_overrides_runpath=no
12427 save_LDFLAGS=$LDFLAGS
12428 save_libdir=$libdir
12429 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12430 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12433
12434 int
12435 main (void)
12436 {
12437
12438 ;
12439 return 0;
12440 }
12441 _ACEOF
12442 if ac_fn_c_try_link "$LINENO"
12443 then :
12444 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12445 then :
12446 lt_cv_shlibpath_overrides_runpath=yes
12447 fi
12448 fi
12449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12450 conftest$ac_exeext conftest.$ac_ext
12451 LDFLAGS=$save_LDFLAGS
12452 libdir=$save_libdir
12453
12454 fi
12455
12456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12457
12458 # This implies no fast_install, which is unacceptable.
12459 # Some rework will be needed to allow for fast_install
12460 # before this can be enabled.
12461 hardcode_into_libs=yes
12462
12463 # Ideally, we could use ldconfig to report *all* directores which are
12464 # searched for libraries, however this is still not possible. Aside from not
12465 # being certain /sbin/ldconfig is available, command
12466 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12467 # even though it is searched at run-time. Try to do the best guess by
12468 # appending ld.so.conf contents (and includes) to the search path.
12469 if test -f /etc/ld.so.conf; then
12470 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12472 fi
12473
12474 # We used to test for /lib/ld.so.1 and disable shared libraries on
12475 # powerpc, because MkLinux only supported shared libraries with the
12476 # GNU dynamic linker. Since this was broken with cross compilers,
12477 # most powerpc-linux boxes support dynamic linking these days and
12478 # people can always --disable-shared, the test was removed, and we
12479 # assume the GNU/Linux dynamic linker is in use.
12480 dynamic_linker='GNU/Linux ld.so'
12481 ;;
12482
12483 netbsdelf*-gnu)
12484 version_type=linux
12485 need_lib_prefix=no
12486 need_version=no
12487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12488 soname_spec='${libname}${release}${shared_ext}$major'
12489 shlibpath_var=LD_LIBRARY_PATH
12490 shlibpath_overrides_runpath=no
12491 hardcode_into_libs=yes
12492 dynamic_linker='NetBSD ld.elf_so'
12493 ;;
12494
12495 netbsd*)
12496 version_type=sunos
12497 need_lib_prefix=no
12498 need_version=no
12499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12500 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12502 dynamic_linker='NetBSD (a.out) ld.so'
12503 else
12504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12505 soname_spec='$libname$release$shared_ext$major'
12506 dynamic_linker='NetBSD ld.elf_so'
12507 fi
12508 shlibpath_var=LD_LIBRARY_PATH
12509 shlibpath_overrides_runpath=yes
12510 hardcode_into_libs=yes
12511 ;;
12512
12513 newsos6)
12514 version_type=linux # correct to gnu/linux during the next big refactor
12515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12516 shlibpath_var=LD_LIBRARY_PATH
12517 shlibpath_overrides_runpath=yes
12518 ;;
12519
12520 *nto* | *qnx*)
12521 version_type=qnx
12522 need_lib_prefix=no
12523 need_version=no
12524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12525 soname_spec='$libname$release$shared_ext$major'
12526 shlibpath_var=LD_LIBRARY_PATH
12527 shlibpath_overrides_runpath=no
12528 hardcode_into_libs=yes
12529 dynamic_linker='ldqnx.so'
12530 ;;
12531
12532 openbsd* | bitrig*)
12533 version_type=sunos
12534 sys_lib_dlsearch_path_spec=/usr/lib
12535 need_lib_prefix=no
12536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12537 need_version=no
12538 else
12539 need_version=yes
12540 fi
12541 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12543 shlibpath_var=LD_LIBRARY_PATH
12544 shlibpath_overrides_runpath=yes
12545 ;;
12546
12547 os2*)
12548 libname_spec='$name'
12549 version_type=windows
12550 shrext_cmds=.dll
12551 need_version=no
12552 need_lib_prefix=no
12553 # OS/2 can only load a DLL with a base name of 8 characters or less.
12554 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12555 v=$($ECHO $release$versuffix | tr -d .-);
12556 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12557 $ECHO $n$v`$shared_ext'
12558 library_names_spec='${libname}_dll.$libext'
12559 dynamic_linker='OS/2 ld.exe'
12560 shlibpath_var=BEGINLIBPATH
12561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12563 postinstall_cmds='base_file=`basename \$file`~
12564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12565 dldir=$destdir/`dirname \$dlpath`~
12566 test -d \$dldir || mkdir -p \$dldir~
12567 $install_prog $dir/$dlname \$dldir/$dlname~
12568 chmod a+x \$dldir/$dlname~
12569 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12570 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12571 fi'
12572 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12573 dlpath=$dir/\$dldll~
12574 $RM \$dlpath'
12575 ;;
12576
12577 osf3* | osf4* | osf5*)
12578 version_type=osf
12579 need_lib_prefix=no
12580 need_version=no
12581 soname_spec='$libname$release$shared_ext$major'
12582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12583 shlibpath_var=LD_LIBRARY_PATH
12584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12586 ;;
12587
12588 rdos*)
12589 dynamic_linker=no
12590 ;;
12591
12592 solaris*)
12593 version_type=linux # correct to gnu/linux during the next big refactor
12594 need_lib_prefix=no
12595 need_version=no
12596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12597 soname_spec='$libname$release$shared_ext$major'
12598 shlibpath_var=LD_LIBRARY_PATH
12599 shlibpath_overrides_runpath=yes
12600 hardcode_into_libs=yes
12601 # ldd complains unless libraries are executable
12602 postinstall_cmds='chmod +x $lib'
12603 ;;
12604
12605 sunos4*)
12606 version_type=sunos
12607 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12609 shlibpath_var=LD_LIBRARY_PATH
12610 shlibpath_overrides_runpath=yes
12611 if test yes = "$with_gnu_ld"; then
12612 need_lib_prefix=no
12613 fi
12614 need_version=yes
12615 ;;
12616
12617 sysv4 | sysv4.3*)
12618 version_type=linux # correct to gnu/linux during the next big refactor
12619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12620 soname_spec='$libname$release$shared_ext$major'
12621 shlibpath_var=LD_LIBRARY_PATH
12622 case $host_vendor in
12623 sni)
12624 shlibpath_overrides_runpath=no
12625 need_lib_prefix=no
12626 runpath_var=LD_RUN_PATH
12627 ;;
12628 siemens)
12629 need_lib_prefix=no
12630 ;;
12631 motorola)
12632 need_lib_prefix=no
12633 need_version=no
12634 shlibpath_overrides_runpath=no
12635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12636 ;;
12637 esac
12638 ;;
12639
12640 sysv4*MP*)
12641 if test -d /usr/nec; then
12642 version_type=linux # correct to gnu/linux during the next big refactor
12643 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12644 soname_spec='$libname$shared_ext.$major'
12645 shlibpath_var=LD_LIBRARY_PATH
12646 fi
12647 ;;
12648
12649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12650 version_type=sco
12651 need_lib_prefix=no
12652 need_version=no
12653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12654 soname_spec='$libname$release$shared_ext$major'
12655 shlibpath_var=LD_LIBRARY_PATH
12656 shlibpath_overrides_runpath=yes
12657 hardcode_into_libs=yes
12658 if test yes = "$with_gnu_ld"; then
12659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12660 else
12661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12662 case $host_os in
12663 sco3.2v5*)
12664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12665 ;;
12666 esac
12667 fi
12668 sys_lib_dlsearch_path_spec='/usr/lib'
12669 ;;
12670
12671 tpf*)
12672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12673 version_type=linux # correct to gnu/linux during the next big refactor
12674 need_lib_prefix=no
12675 need_version=no
12676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12677 shlibpath_var=LD_LIBRARY_PATH
12678 shlibpath_overrides_runpath=no
12679 hardcode_into_libs=yes
12680 ;;
12681
12682 uts4*)
12683 version_type=linux # correct to gnu/linux during the next big refactor
12684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12685 soname_spec='$libname$release$shared_ext$major'
12686 shlibpath_var=LD_LIBRARY_PATH
12687 ;;
12688
12689 *)
12690 dynamic_linker=no
12691 ;;
12692 esac
12693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12694 printf "%s\n" "$dynamic_linker" >&6; }
12695 test no = "$dynamic_linker" && can_build_shared=no
12696
12697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12698 if test yes = "$GCC"; then
12699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12700 fi
12701
12702 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12703 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12704 fi
12705
12706 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12707 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12708 fi
12709
12710 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12711 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12712
12713 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12714 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12715
12716 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12717 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12816 printf %s "checking how to hardcode library paths into programs... " >&6; }
12817 hardcode_action=
12818 if test -n "$hardcode_libdir_flag_spec" ||
12819 test -n "$runpath_var" ||
12820 test yes = "$hardcode_automatic"; then
12821
12822 # We can hardcode non-existent directories.
12823 if test no != "$hardcode_direct" &&
12824 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12825 # have to relink, otherwise we might link with an installed library
12826 # when we should be linking with a yet-to-be-installed one
12827 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12828 test no != "$hardcode_minus_L"; then
12829 # Linking always hardcodes the temporary library directory.
12830 hardcode_action=relink
12831 else
12832 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12833 hardcode_action=immediate
12834 fi
12835 else
12836 # We cannot hardcode anything, or else we can only hardcode existing
12837 # directories.
12838 hardcode_action=unsupported
12839 fi
12840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12841 printf "%s\n" "$hardcode_action" >&6; }
12842
12843 if test relink = "$hardcode_action" ||
12844 test yes = "$inherit_rpath"; then
12845 # Fast installation is not supported
12846 enable_fast_install=no
12847 elif test yes = "$shlibpath_overrides_runpath" ||
12848 test no = "$enable_shared"; then
12849 # Fast installation is not necessary
12850 enable_fast_install=needless
12851 fi
12852
12853
12854
12855
12856
12857
12858 if test yes != "$enable_dlopen"; then
12859 enable_dlopen=unknown
12860 enable_dlopen_self=unknown
12861 enable_dlopen_self_static=unknown
12862 else
12863 lt_cv_dlopen=no
12864 lt_cv_dlopen_libs=
12865
12866 case $host_os in
12867 beos*)
12868 lt_cv_dlopen=load_add_on
12869 lt_cv_dlopen_libs=
12870 lt_cv_dlopen_self=yes
12871 ;;
12872
12873 mingw* | pw32* | cegcc*)
12874 lt_cv_dlopen=LoadLibrary
12875 lt_cv_dlopen_libs=
12876 ;;
12877
12878 cygwin*)
12879 lt_cv_dlopen=dlopen
12880 lt_cv_dlopen_libs=
12881 ;;
12882
12883 darwin*)
12884 # if libdl is installed we need to link against it
12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12886 printf %s "checking for dlopen in -ldl... " >&6; }
12887 if test ${ac_cv_lib_dl_dlopen+y}
12888 then :
12889 printf %s "(cached) " >&6
12890 else $as_nop
12891 ac_check_lib_save_LIBS=$LIBS
12892 LIBS="-ldl $LIBS"
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12895
12896 /* Override any GCC internal prototype to avoid an error.
12897 Use char because int might match the return type of a GCC
12898 builtin and then its argument prototype would still apply. */
12899 char dlopen ();
12900 int
12901 main (void)
12902 {
12903 return dlopen ();
12904 ;
12905 return 0;
12906 }
12907 _ACEOF
12908 if ac_fn_c_try_link "$LINENO"
12909 then :
12910 ac_cv_lib_dl_dlopen=yes
12911 else $as_nop
12912 ac_cv_lib_dl_dlopen=no
12913 fi
12914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12915 conftest$ac_exeext conftest.$ac_ext
12916 LIBS=$ac_check_lib_save_LIBS
12917 fi
12918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12919 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12920 if test "x$ac_cv_lib_dl_dlopen" = xyes
12921 then :
12922 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12923 else $as_nop
12924
12925 lt_cv_dlopen=dyld
12926 lt_cv_dlopen_libs=
12927 lt_cv_dlopen_self=yes
12928
12929 fi
12930
12931 ;;
12932
12933 tpf*)
12934 # Don't try to run any link tests for TPF. We know it's impossible
12935 # because TPF is a cross-compiler, and we know how we open DSOs.
12936 lt_cv_dlopen=dlopen
12937 lt_cv_dlopen_libs=
12938 lt_cv_dlopen_self=no
12939 ;;
12940
12941 *)
12942 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12943 if test "x$ac_cv_func_shl_load" = xyes
12944 then :
12945 lt_cv_dlopen=shl_load
12946 else $as_nop
12947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12948 printf %s "checking for shl_load in -ldld... " >&6; }
12949 if test ${ac_cv_lib_dld_shl_load+y}
12950 then :
12951 printf %s "(cached) " >&6
12952 else $as_nop
12953 ac_check_lib_save_LIBS=$LIBS
12954 LIBS="-ldld $LIBS"
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957
12958 /* Override any GCC internal prototype to avoid an error.
12959 Use char because int might match the return type of a GCC
12960 builtin and then its argument prototype would still apply. */
12961 char shl_load ();
12962 int
12963 main (void)
12964 {
12965 return shl_load ();
12966 ;
12967 return 0;
12968 }
12969 _ACEOF
12970 if ac_fn_c_try_link "$LINENO"
12971 then :
12972 ac_cv_lib_dld_shl_load=yes
12973 else $as_nop
12974 ac_cv_lib_dld_shl_load=no
12975 fi
12976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12977 conftest$ac_exeext conftest.$ac_ext
12978 LIBS=$ac_check_lib_save_LIBS
12979 fi
12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12981 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12982 if test "x$ac_cv_lib_dld_shl_load" = xyes
12983 then :
12984 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12985 else $as_nop
12986 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12987 if test "x$ac_cv_func_dlopen" = xyes
12988 then :
12989 lt_cv_dlopen=dlopen
12990 else $as_nop
12991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12992 printf %s "checking for dlopen in -ldl... " >&6; }
12993 if test ${ac_cv_lib_dl_dlopen+y}
12994 then :
12995 printf %s "(cached) " >&6
12996 else $as_nop
12997 ac_check_lib_save_LIBS=$LIBS
12998 LIBS="-ldl $LIBS"
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13001
13002 /* Override any GCC internal prototype to avoid an error.
13003 Use char because int might match the return type of a GCC
13004 builtin and then its argument prototype would still apply. */
13005 char dlopen ();
13006 int
13007 main (void)
13008 {
13009 return dlopen ();
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"
13015 then :
13016 ac_cv_lib_dl_dlopen=yes
13017 else $as_nop
13018 ac_cv_lib_dl_dlopen=no
13019 fi
13020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13021 conftest$ac_exeext conftest.$ac_ext
13022 LIBS=$ac_check_lib_save_LIBS
13023 fi
13024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13025 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13026 if test "x$ac_cv_lib_dl_dlopen" = xyes
13027 then :
13028 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13029 else $as_nop
13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13031 printf %s "checking for dlopen in -lsvld... " >&6; }
13032 if test ${ac_cv_lib_svld_dlopen+y}
13033 then :
13034 printf %s "(cached) " >&6
13035 else $as_nop
13036 ac_check_lib_save_LIBS=$LIBS
13037 LIBS="-lsvld $LIBS"
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13040
13041 /* Override any GCC internal prototype to avoid an error.
13042 Use char because int might match the return type of a GCC
13043 builtin and then its argument prototype would still apply. */
13044 char dlopen ();
13045 int
13046 main (void)
13047 {
13048 return dlopen ();
13049 ;
13050 return 0;
13051 }
13052 _ACEOF
13053 if ac_fn_c_try_link "$LINENO"
13054 then :
13055 ac_cv_lib_svld_dlopen=yes
13056 else $as_nop
13057 ac_cv_lib_svld_dlopen=no
13058 fi
13059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13060 conftest$ac_exeext conftest.$ac_ext
13061 LIBS=$ac_check_lib_save_LIBS
13062 fi
13063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13064 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13065 if test "x$ac_cv_lib_svld_dlopen" = xyes
13066 then :
13067 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13068 else $as_nop
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13070 printf %s "checking for dld_link in -ldld... " >&6; }
13071 if test ${ac_cv_lib_dld_dld_link+y}
13072 then :
13073 printf %s "(cached) " >&6
13074 else $as_nop
13075 ac_check_lib_save_LIBS=$LIBS
13076 LIBS="-ldld $LIBS"
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13083 char dld_link ();
13084 int
13085 main (void)
13086 {
13087 return dld_link ();
13088 ;
13089 return 0;
13090 }
13091 _ACEOF
13092 if ac_fn_c_try_link "$LINENO"
13093 then :
13094 ac_cv_lib_dld_dld_link=yes
13095 else $as_nop
13096 ac_cv_lib_dld_dld_link=no
13097 fi
13098 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13099 conftest$ac_exeext conftest.$ac_ext
13100 LIBS=$ac_check_lib_save_LIBS
13101 fi
13102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13103 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13104 if test "x$ac_cv_lib_dld_dld_link" = xyes
13105 then :
13106 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13107 fi
13108
13109
13110 fi
13111
13112
13113 fi
13114
13115
13116 fi
13117
13118
13119 fi
13120
13121
13122 fi
13123
13124 ;;
13125 esac
13126
13127 if test no = "$lt_cv_dlopen"; then
13128 enable_dlopen=no
13129 else
13130 enable_dlopen=yes
13131 fi
13132
13133 case $lt_cv_dlopen in
13134 dlopen)
13135 save_CPPFLAGS=$CPPFLAGS
13136 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13137
13138 save_LDFLAGS=$LDFLAGS
13139 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13140
13141 save_LIBS=$LIBS
13142 LIBS="$lt_cv_dlopen_libs $LIBS"
13143
13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13145 printf %s "checking whether a program can dlopen itself... " >&6; }
13146 if test ${lt_cv_dlopen_self+y}
13147 then :
13148 printf %s "(cached) " >&6
13149 else $as_nop
13150 if test yes = "$cross_compiling"; then :
13151 lt_cv_dlopen_self=cross
13152 else
13153 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13154 lt_status=$lt_dlunknown
13155 cat > conftest.$ac_ext <<_LT_EOF
13156 #line $LINENO "configure"
13157 #include "confdefs.h"
13158
13159 #if HAVE_DLFCN_H
13160 #include <dlfcn.h>
13161 #endif
13162
13163 #include <stdio.h>
13164
13165 #ifdef RTLD_GLOBAL
13166 # define LT_DLGLOBAL RTLD_GLOBAL
13167 #else
13168 # ifdef DL_GLOBAL
13169 # define LT_DLGLOBAL DL_GLOBAL
13170 # else
13171 # define LT_DLGLOBAL 0
13172 # endif
13173 #endif
13174
13175 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13176 find out it does not work in some platform. */
13177 #ifndef LT_DLLAZY_OR_NOW
13178 # ifdef RTLD_LAZY
13179 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13180 # else
13181 # ifdef DL_LAZY
13182 # define LT_DLLAZY_OR_NOW DL_LAZY
13183 # else
13184 # ifdef RTLD_NOW
13185 # define LT_DLLAZY_OR_NOW RTLD_NOW
13186 # else
13187 # ifdef DL_NOW
13188 # define LT_DLLAZY_OR_NOW DL_NOW
13189 # else
13190 # define LT_DLLAZY_OR_NOW 0
13191 # endif
13192 # endif
13193 # endif
13194 # endif
13195 #endif
13196
13197 /* When -fvisibility=hidden is used, assume the code has been annotated
13198 correspondingly for the symbols needed. */
13199 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13200 int fnord () __attribute__((visibility("default")));
13201 #endif
13202
13203 int fnord () { return 42; }
13204 int main ()
13205 {
13206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13207 int status = $lt_dlunknown;
13208
13209 if (self)
13210 {
13211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13212 else
13213 {
13214 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13215 else puts (dlerror ());
13216 }
13217 /* dlclose (self); */
13218 }
13219 else
13220 puts (dlerror ());
13221
13222 return status;
13223 }
13224 _LT_EOF
13225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13226 (eval $ac_link) 2>&5
13227 ac_status=$?
13228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13229 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13230 (./conftest; exit; ) >&5 2>/dev/null
13231 lt_status=$?
13232 case x$lt_status in
13233 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13234 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13235 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13236 esac
13237 else :
13238 # compilation failed
13239 lt_cv_dlopen_self=no
13240 fi
13241 fi
13242 rm -fr conftest*
13243
13244
13245 fi
13246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13247 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13248
13249 if test yes = "$lt_cv_dlopen_self"; then
13250 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13252 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13253 if test ${lt_cv_dlopen_self_static+y}
13254 then :
13255 printf %s "(cached) " >&6
13256 else $as_nop
13257 if test yes = "$cross_compiling"; then :
13258 lt_cv_dlopen_self_static=cross
13259 else
13260 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13261 lt_status=$lt_dlunknown
13262 cat > conftest.$ac_ext <<_LT_EOF
13263 #line $LINENO "configure"
13264 #include "confdefs.h"
13265
13266 #if HAVE_DLFCN_H
13267 #include <dlfcn.h>
13268 #endif
13269
13270 #include <stdio.h>
13271
13272 #ifdef RTLD_GLOBAL
13273 # define LT_DLGLOBAL RTLD_GLOBAL
13274 #else
13275 # ifdef DL_GLOBAL
13276 # define LT_DLGLOBAL DL_GLOBAL
13277 # else
13278 # define LT_DLGLOBAL 0
13279 # endif
13280 #endif
13281
13282 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13283 find out it does not work in some platform. */
13284 #ifndef LT_DLLAZY_OR_NOW
13285 # ifdef RTLD_LAZY
13286 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13287 # else
13288 # ifdef DL_LAZY
13289 # define LT_DLLAZY_OR_NOW DL_LAZY
13290 # else
13291 # ifdef RTLD_NOW
13292 # define LT_DLLAZY_OR_NOW RTLD_NOW
13293 # else
13294 # ifdef DL_NOW
13295 # define LT_DLLAZY_OR_NOW DL_NOW
13296 # else
13297 # define LT_DLLAZY_OR_NOW 0
13298 # endif
13299 # endif
13300 # endif
13301 # endif
13302 #endif
13303
13304 /* When -fvisibility=hidden is used, assume the code has been annotated
13305 correspondingly for the symbols needed. */
13306 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13307 int fnord () __attribute__((visibility("default")));
13308 #endif
13309
13310 int fnord () { return 42; }
13311 int main ()
13312 {
13313 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13314 int status = $lt_dlunknown;
13315
13316 if (self)
13317 {
13318 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13319 else
13320 {
13321 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13322 else puts (dlerror ());
13323 }
13324 /* dlclose (self); */
13325 }
13326 else
13327 puts (dlerror ());
13328
13329 return status;
13330 }
13331 _LT_EOF
13332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13333 (eval $ac_link) 2>&5
13334 ac_status=$?
13335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13336 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13337 (./conftest; exit; ) >&5 2>/dev/null
13338 lt_status=$?
13339 case x$lt_status in
13340 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13341 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13342 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13343 esac
13344 else :
13345 # compilation failed
13346 lt_cv_dlopen_self_static=no
13347 fi
13348 fi
13349 rm -fr conftest*
13350
13351
13352 fi
13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13354 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13355 fi
13356
13357 CPPFLAGS=$save_CPPFLAGS
13358 LDFLAGS=$save_LDFLAGS
13359 LIBS=$save_LIBS
13360 ;;
13361 esac
13362
13363 case $lt_cv_dlopen_self in
13364 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13365 *) enable_dlopen_self=unknown ;;
13366 esac
13367
13368 case $lt_cv_dlopen_self_static in
13369 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13370 *) enable_dlopen_self_static=unknown ;;
13371 esac
13372 fi
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390 striplib=
13391 old_striplib=
13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13393 printf %s "checking whether stripping libraries is possible... " >&6; }
13394 if test -z "$STRIP"; then
13395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 printf "%s\n" "no" >&6; }
13397 else
13398 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13399 old_striplib="$STRIP --strip-debug"
13400 striplib="$STRIP --strip-unneeded"
13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13402 printf "%s\n" "yes" >&6; }
13403 else
13404 case $host_os in
13405 darwin*)
13406 # FIXME - insert some real tests, host_os isn't really good enough
13407 striplib="$STRIP -x"
13408 old_striplib="$STRIP -S"
13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13410 printf "%s\n" "yes" >&6; }
13411 ;;
13412 freebsd*)
13413 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13414 old_striplib="$STRIP --strip-debug"
13415 striplib="$STRIP --strip-unneeded"
13416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13417 printf "%s\n" "yes" >&6; }
13418 else
13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420 printf "%s\n" "no" >&6; }
13421 fi
13422 ;;
13423 *)
13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 printf "%s\n" "no" >&6; }
13426 ;;
13427 esac
13428 fi
13429 fi
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442 # Report what library types will actually be built
13443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13444 printf %s "checking if libtool supports shared libraries... " >&6; }
13445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13446 printf "%s\n" "$can_build_shared" >&6; }
13447
13448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13449 printf %s "checking whether to build shared libraries... " >&6; }
13450 test no = "$can_build_shared" && enable_shared=no
13451
13452 # On AIX, shared libraries and static libraries use the same namespace, and
13453 # are all built from PIC.
13454 case $host_os in
13455 aix3*)
13456 test yes = "$enable_shared" && enable_static=no
13457 if test -n "$RANLIB"; then
13458 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13459 postinstall_cmds='$RANLIB $lib'
13460 fi
13461 ;;
13462
13463 aix[4-9]*)
13464 if test ia64 != "$host_cpu"; then
13465 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13466 yes,aix,yes) ;; # shared object as lib.so file only
13467 yes,svr4,*) ;; # shared object as lib.so archive member only
13468 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13469 esac
13470 fi
13471 ;;
13472 esac
13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13474 printf "%s\n" "$enable_shared" >&6; }
13475
13476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13477 printf %s "checking whether to build static libraries... " >&6; }
13478 # Make sure either enable_shared or enable_static is yes.
13479 test yes = "$enable_shared" || enable_static=yes
13480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13481 printf "%s\n" "$enable_static" >&6; }
13482
13483
13484
13485
13486 fi
13487 ac_ext=c
13488 ac_cpp='$CPP $CPPFLAGS'
13489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13492
13493 CC=$lt_save_CC
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509 ac_config_commands="$ac_config_commands libtool"
13510
13511
13512
13513
13514 # Only expand once:
13515
13516
13517
13518 # Check whether --enable-largefile was given.
13519 if test ${enable_largefile+y}
13520 then :
13521 enableval=$enable_largefile;
13522 fi
13523
13524 if test "$enable_largefile" != no; then
13525
13526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13527 printf %s "checking for special C compiler options needed for large files... " >&6; }
13528 if test ${ac_cv_sys_largefile_CC+y}
13529 then :
13530 printf %s "(cached) " >&6
13531 else $as_nop
13532 ac_cv_sys_largefile_CC=no
13533 if test "$GCC" != yes; then
13534 ac_save_CC=$CC
13535 while :; do
13536 # IRIX 6.2 and later do not support large files by default,
13537 # so use the C compiler's -n32 option if that helps.
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13540 #include <sys/types.h>
13541 /* Check that off_t can represent 2**63 - 1 correctly.
13542 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13543 since some C++ compilers masquerading as C compilers
13544 incorrectly reject 9223372036854775807. */
13545 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13547 && LARGE_OFF_T % 2147483647 == 1)
13548 ? 1 : -1];
13549 int
13550 main (void)
13551 {
13552
13553 ;
13554 return 0;
13555 }
13556 _ACEOF
13557 if ac_fn_c_try_compile "$LINENO"
13558 then :
13559 break
13560 fi
13561 rm -f core conftest.err conftest.$ac_objext conftest.beam
13562 CC="$CC -n32"
13563 if ac_fn_c_try_compile "$LINENO"
13564 then :
13565 ac_cv_sys_largefile_CC=' -n32'; break
13566 fi
13567 rm -f core conftest.err conftest.$ac_objext conftest.beam
13568 break
13569 done
13570 CC=$ac_save_CC
13571 rm -f conftest.$ac_ext
13572 fi
13573 fi
13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13575 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
13576 if test "$ac_cv_sys_largefile_CC" != no; then
13577 CC=$CC$ac_cv_sys_largefile_CC
13578 fi
13579
13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13581 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13582 if test ${ac_cv_sys_file_offset_bits+y}
13583 then :
13584 printf %s "(cached) " >&6
13585 else $as_nop
13586 while :; do
13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13589 #include <sys/types.h>
13590 /* Check that off_t can represent 2**63 - 1 correctly.
13591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13592 since some C++ compilers masquerading as C compilers
13593 incorrectly reject 9223372036854775807. */
13594 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13596 && LARGE_OFF_T % 2147483647 == 1)
13597 ? 1 : -1];
13598 int
13599 main (void)
13600 {
13601
13602 ;
13603 return 0;
13604 }
13605 _ACEOF
13606 if ac_fn_c_try_compile "$LINENO"
13607 then :
13608 ac_cv_sys_file_offset_bits=no; break
13609 fi
13610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13613 #define _FILE_OFFSET_BITS 64
13614 #include <sys/types.h>
13615 /* Check that off_t can represent 2**63 - 1 correctly.
13616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13617 since some C++ compilers masquerading as C compilers
13618 incorrectly reject 9223372036854775807. */
13619 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13621 && LARGE_OFF_T % 2147483647 == 1)
13622 ? 1 : -1];
13623 int
13624 main (void)
13625 {
13626
13627 ;
13628 return 0;
13629 }
13630 _ACEOF
13631 if ac_fn_c_try_compile "$LINENO"
13632 then :
13633 ac_cv_sys_file_offset_bits=64; break
13634 fi
13635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13636 ac_cv_sys_file_offset_bits=unknown
13637 break
13638 done
13639 fi
13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13641 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
13642 case $ac_cv_sys_file_offset_bits in #(
13643 no | unknown) ;;
13644 *)
13645 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
13646 ;;
13647 esac
13648 rm -rf conftest*
13649 if test $ac_cv_sys_file_offset_bits = unknown; then
13650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13651 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
13652 if test ${ac_cv_sys_large_files+y}
13653 then :
13654 printf %s "(cached) " >&6
13655 else $as_nop
13656 while :; do
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659 #include <sys/types.h>
13660 /* Check that off_t can represent 2**63 - 1 correctly.
13661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13662 since some C++ compilers masquerading as C compilers
13663 incorrectly reject 9223372036854775807. */
13664 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13666 && LARGE_OFF_T % 2147483647 == 1)
13667 ? 1 : -1];
13668 int
13669 main (void)
13670 {
13671
13672 ;
13673 return 0;
13674 }
13675 _ACEOF
13676 if ac_fn_c_try_compile "$LINENO"
13677 then :
13678 ac_cv_sys_large_files=no; break
13679 fi
13680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 #define _LARGE_FILES 1
13684 #include <sys/types.h>
13685 /* Check that off_t can represent 2**63 - 1 correctly.
13686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13687 since some C++ compilers masquerading as C compilers
13688 incorrectly reject 9223372036854775807. */
13689 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13691 && LARGE_OFF_T % 2147483647 == 1)
13692 ? 1 : -1];
13693 int
13694 main (void)
13695 {
13696
13697 ;
13698 return 0;
13699 }
13700 _ACEOF
13701 if ac_fn_c_try_compile "$LINENO"
13702 then :
13703 ac_cv_sys_large_files=1; break
13704 fi
13705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13706 ac_cv_sys_large_files=unknown
13707 break
13708 done
13709 fi
13710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13711 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
13712 case $ac_cv_sys_large_files in #(
13713 no | unknown) ;;
13714 *)
13715 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
13716 ;;
13717 esac
13718 rm -rf conftest*
13719 fi
13720 fi
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13731 if test -n "$ac_tool_prefix"; then
13732 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13733 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735 printf %s "checking for $ac_word... " >&6; }
13736 if test ${ac_cv_path_PKG_CONFIG+y}
13737 then :
13738 printf %s "(cached) " >&6
13739 else $as_nop
13740 case $PKG_CONFIG in
13741 [\\/]* | ?:[\\/]*)
13742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13743 ;;
13744 *)
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $PATH
13747 do
13748 IFS=$as_save_IFS
13749 case $as_dir in #(((
13750 '') as_dir=./ ;;
13751 */) ;;
13752 *) as_dir=$as_dir/ ;;
13753 esac
13754 for ac_exec_ext in '' $ac_executable_extensions; do
13755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13756 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13758 break 2
13759 fi
13760 done
13761 done
13762 IFS=$as_save_IFS
13763
13764 ;;
13765 esac
13766 fi
13767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13768 if test -n "$PKG_CONFIG"; then
13769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13770 printf "%s\n" "$PKG_CONFIG" >&6; }
13771 else
13772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773 printf "%s\n" "no" >&6; }
13774 fi
13775
13776
13777 fi
13778 if test -z "$ac_cv_path_PKG_CONFIG"; then
13779 ac_pt_PKG_CONFIG=$PKG_CONFIG
13780 # Extract the first word of "pkg-config", so it can be a program name with args.
13781 set dummy pkg-config; ac_word=$2
13782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13783 printf %s "checking for $ac_word... " >&6; }
13784 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13785 then :
13786 printf %s "(cached) " >&6
13787 else $as_nop
13788 case $ac_pt_PKG_CONFIG in
13789 [\\/]* | ?:[\\/]*)
13790 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13791 ;;
13792 *)
13793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13794 for as_dir in $PATH
13795 do
13796 IFS=$as_save_IFS
13797 case $as_dir in #(((
13798 '') as_dir=./ ;;
13799 */) ;;
13800 *) as_dir=$as_dir/ ;;
13801 esac
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13804 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13806 break 2
13807 fi
13808 done
13809 done
13810 IFS=$as_save_IFS
13811
13812 ;;
13813 esac
13814 fi
13815 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13816 if test -n "$ac_pt_PKG_CONFIG"; then
13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13818 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13819 else
13820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 printf "%s\n" "no" >&6; }
13822 fi
13823
13824 if test "x$ac_pt_PKG_CONFIG" = x; then
13825 PKG_CONFIG=""
13826 else
13827 case $cross_compiling:$ac_tool_warned in
13828 yes:)
13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13830 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13831 ac_tool_warned=yes ;;
13832 esac
13833 PKG_CONFIG=$ac_pt_PKG_CONFIG
13834 fi
13835 else
13836 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13837 fi
13838
13839 fi
13840 if test -n "$PKG_CONFIG"; then
13841 _pkg_min_version=0.24
13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13843 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13844 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13846 printf "%s\n" "yes" >&6; }
13847 else
13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 printf "%s\n" "no" >&6; }
13850 PKG_CONFIG=""
13851 fi
13852 fi
13853 ac_ext=c
13854 ac_cpp='$CPP $CPPFLAGS'
13855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13858 if test -n "$ac_tool_prefix"; then
13859 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13860 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13862 printf %s "checking for $ac_word... " >&6; }
13863 if test ${ac_cv_prog_CC+y}
13864 then :
13865 printf %s "(cached) " >&6
13866 else $as_nop
13867 if test -n "$CC"; then
13868 ac_cv_prog_CC="$CC" # Let the user override the test.
13869 else
13870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 for as_dir in $PATH
13872 do
13873 IFS=$as_save_IFS
13874 case $as_dir in #(((
13875 '') as_dir=./ ;;
13876 */) ;;
13877 *) as_dir=$as_dir/ ;;
13878 esac
13879 for ac_exec_ext in '' $ac_executable_extensions; do
13880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13881 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13883 break 2
13884 fi
13885 done
13886 done
13887 IFS=$as_save_IFS
13888
13889 fi
13890 fi
13891 CC=$ac_cv_prog_CC
13892 if test -n "$CC"; then
13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13894 printf "%s\n" "$CC" >&6; }
13895 else
13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13897 printf "%s\n" "no" >&6; }
13898 fi
13899
13900
13901 fi
13902 if test -z "$ac_cv_prog_CC"; then
13903 ac_ct_CC=$CC
13904 # Extract the first word of "gcc", so it can be a program name with args.
13905 set dummy gcc; ac_word=$2
13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13907 printf %s "checking for $ac_word... " >&6; }
13908 if test ${ac_cv_prog_ac_ct_CC+y}
13909 then :
13910 printf %s "(cached) " >&6
13911 else $as_nop
13912 if test -n "$ac_ct_CC"; then
13913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13914 else
13915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13916 for as_dir in $PATH
13917 do
13918 IFS=$as_save_IFS
13919 case $as_dir in #(((
13920 '') as_dir=./ ;;
13921 */) ;;
13922 *) as_dir=$as_dir/ ;;
13923 esac
13924 for ac_exec_ext in '' $ac_executable_extensions; do
13925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13926 ac_cv_prog_ac_ct_CC="gcc"
13927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13928 break 2
13929 fi
13930 done
13931 done
13932 IFS=$as_save_IFS
13933
13934 fi
13935 fi
13936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13937 if test -n "$ac_ct_CC"; then
13938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13939 printf "%s\n" "$ac_ct_CC" >&6; }
13940 else
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13942 printf "%s\n" "no" >&6; }
13943 fi
13944
13945 if test "x$ac_ct_CC" = x; then
13946 CC=""
13947 else
13948 case $cross_compiling:$ac_tool_warned in
13949 yes:)
13950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13951 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13952 ac_tool_warned=yes ;;
13953 esac
13954 CC=$ac_ct_CC
13955 fi
13956 else
13957 CC="$ac_cv_prog_CC"
13958 fi
13959
13960 if test -z "$CC"; then
13961 if test -n "$ac_tool_prefix"; then
13962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13963 set dummy ${ac_tool_prefix}cc; ac_word=$2
13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13965 printf %s "checking for $ac_word... " >&6; }
13966 if test ${ac_cv_prog_CC+y}
13967 then :
13968 printf %s "(cached) " >&6
13969 else $as_nop
13970 if test -n "$CC"; then
13971 ac_cv_prog_CC="$CC" # Let the user override the test.
13972 else
13973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13974 for as_dir in $PATH
13975 do
13976 IFS=$as_save_IFS
13977 case $as_dir in #(((
13978 '') as_dir=./ ;;
13979 */) ;;
13980 *) as_dir=$as_dir/ ;;
13981 esac
13982 for ac_exec_ext in '' $ac_executable_extensions; do
13983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13984 ac_cv_prog_CC="${ac_tool_prefix}cc"
13985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13986 break 2
13987 fi
13988 done
13989 done
13990 IFS=$as_save_IFS
13991
13992 fi
13993 fi
13994 CC=$ac_cv_prog_CC
13995 if test -n "$CC"; then
13996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13997 printf "%s\n" "$CC" >&6; }
13998 else
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14000 printf "%s\n" "no" >&6; }
14001 fi
14002
14003
14004 fi
14005 fi
14006 if test -z "$CC"; then
14007 # Extract the first word of "cc", so it can be a program name with args.
14008 set dummy cc; ac_word=$2
14009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14010 printf %s "checking for $ac_word... " >&6; }
14011 if test ${ac_cv_prog_CC+y}
14012 then :
14013 printf %s "(cached) " >&6
14014 else $as_nop
14015 if test -n "$CC"; then
14016 ac_cv_prog_CC="$CC" # Let the user override the test.
14017 else
14018 ac_prog_rejected=no
14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020 for as_dir in $PATH
14021 do
14022 IFS=$as_save_IFS
14023 case $as_dir in #(((
14024 '') as_dir=./ ;;
14025 */) ;;
14026 *) as_dir=$as_dir/ ;;
14027 esac
14028 for ac_exec_ext in '' $ac_executable_extensions; do
14029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14030 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14031 ac_prog_rejected=yes
14032 continue
14033 fi
14034 ac_cv_prog_CC="cc"
14035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14036 break 2
14037 fi
14038 done
14039 done
14040 IFS=$as_save_IFS
14041
14042 if test $ac_prog_rejected = yes; then
14043 # We found a bogon in the path, so make sure we never use it.
14044 set dummy $ac_cv_prog_CC
14045 shift
14046 if test $# != 0; then
14047 # We chose a different compiler from the bogus one.
14048 # However, it has the same basename, so the bogon will be chosen
14049 # first if we set CC to just the basename; use the full file name.
14050 shift
14051 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14052 fi
14053 fi
14054 fi
14055 fi
14056 CC=$ac_cv_prog_CC
14057 if test -n "$CC"; then
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14059 printf "%s\n" "$CC" >&6; }
14060 else
14061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062 printf "%s\n" "no" >&6; }
14063 fi
14064
14065
14066 fi
14067 if test -z "$CC"; then
14068 if test -n "$ac_tool_prefix"; then
14069 for ac_prog in cl.exe
14070 do
14071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14074 printf %s "checking for $ac_word... " >&6; }
14075 if test ${ac_cv_prog_CC+y}
14076 then :
14077 printf %s "(cached) " >&6
14078 else $as_nop
14079 if test -n "$CC"; then
14080 ac_cv_prog_CC="$CC" # Let the user override the test.
14081 else
14082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083 for as_dir in $PATH
14084 do
14085 IFS=$as_save_IFS
14086 case $as_dir in #(((
14087 '') as_dir=./ ;;
14088 */) ;;
14089 *) as_dir=$as_dir/ ;;
14090 esac
14091 for ac_exec_ext in '' $ac_executable_extensions; do
14092 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14093 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14095 break 2
14096 fi
14097 done
14098 done
14099 IFS=$as_save_IFS
14100
14101 fi
14102 fi
14103 CC=$ac_cv_prog_CC
14104 if test -n "$CC"; then
14105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14106 printf "%s\n" "$CC" >&6; }
14107 else
14108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 printf "%s\n" "no" >&6; }
14110 fi
14111
14112
14113 test -n "$CC" && break
14114 done
14115 fi
14116 if test -z "$CC"; then
14117 ac_ct_CC=$CC
14118 for ac_prog in cl.exe
14119 do
14120 # Extract the first word of "$ac_prog", so it can be a program name with args.
14121 set dummy $ac_prog; ac_word=$2
14122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14123 printf %s "checking for $ac_word... " >&6; }
14124 if test ${ac_cv_prog_ac_ct_CC+y}
14125 then :
14126 printf %s "(cached) " >&6
14127 else $as_nop
14128 if test -n "$ac_ct_CC"; then
14129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14130 else
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 for as_dir in $PATH
14133 do
14134 IFS=$as_save_IFS
14135 case $as_dir in #(((
14136 '') as_dir=./ ;;
14137 */) ;;
14138 *) as_dir=$as_dir/ ;;
14139 esac
14140 for ac_exec_ext in '' $ac_executable_extensions; do
14141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14142 ac_cv_prog_ac_ct_CC="$ac_prog"
14143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14144 break 2
14145 fi
14146 done
14147 done
14148 IFS=$as_save_IFS
14149
14150 fi
14151 fi
14152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14153 if test -n "$ac_ct_CC"; then
14154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14155 printf "%s\n" "$ac_ct_CC" >&6; }
14156 else
14157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158 printf "%s\n" "no" >&6; }
14159 fi
14160
14161
14162 test -n "$ac_ct_CC" && break
14163 done
14164
14165 if test "x$ac_ct_CC" = x; then
14166 CC=""
14167 else
14168 case $cross_compiling:$ac_tool_warned in
14169 yes:)
14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14172 ac_tool_warned=yes ;;
14173 esac
14174 CC=$ac_ct_CC
14175 fi
14176 fi
14177
14178 fi
14179 if test -z "$CC"; then
14180 if test -n "$ac_tool_prefix"; then
14181 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14182 set dummy ${ac_tool_prefix}clang; ac_word=$2
14183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14184 printf %s "checking for $ac_word... " >&6; }
14185 if test ${ac_cv_prog_CC+y}
14186 then :
14187 printf %s "(cached) " >&6
14188 else $as_nop
14189 if test -n "$CC"; then
14190 ac_cv_prog_CC="$CC" # Let the user override the test.
14191 else
14192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14193 for as_dir in $PATH
14194 do
14195 IFS=$as_save_IFS
14196 case $as_dir in #(((
14197 '') as_dir=./ ;;
14198 */) ;;
14199 *) as_dir=$as_dir/ ;;
14200 esac
14201 for ac_exec_ext in '' $ac_executable_extensions; do
14202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14203 ac_cv_prog_CC="${ac_tool_prefix}clang"
14204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14205 break 2
14206 fi
14207 done
14208 done
14209 IFS=$as_save_IFS
14210
14211 fi
14212 fi
14213 CC=$ac_cv_prog_CC
14214 if test -n "$CC"; then
14215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14216 printf "%s\n" "$CC" >&6; }
14217 else
14218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14219 printf "%s\n" "no" >&6; }
14220 fi
14221
14222
14223 fi
14224 if test -z "$ac_cv_prog_CC"; then
14225 ac_ct_CC=$CC
14226 # Extract the first word of "clang", so it can be a program name with args.
14227 set dummy clang; ac_word=$2
14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14229 printf %s "checking for $ac_word... " >&6; }
14230 if test ${ac_cv_prog_ac_ct_CC+y}
14231 then :
14232 printf %s "(cached) " >&6
14233 else $as_nop
14234 if test -n "$ac_ct_CC"; then
14235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14236 else
14237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14238 for as_dir in $PATH
14239 do
14240 IFS=$as_save_IFS
14241 case $as_dir in #(((
14242 '') as_dir=./ ;;
14243 */) ;;
14244 *) as_dir=$as_dir/ ;;
14245 esac
14246 for ac_exec_ext in '' $ac_executable_extensions; do
14247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14248 ac_cv_prog_ac_ct_CC="clang"
14249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14250 break 2
14251 fi
14252 done
14253 done
14254 IFS=$as_save_IFS
14255
14256 fi
14257 fi
14258 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14259 if test -n "$ac_ct_CC"; then
14260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14261 printf "%s\n" "$ac_ct_CC" >&6; }
14262 else
14263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 printf "%s\n" "no" >&6; }
14265 fi
14266
14267 if test "x$ac_ct_CC" = x; then
14268 CC=""
14269 else
14270 case $cross_compiling:$ac_tool_warned in
14271 yes:)
14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14273 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14274 ac_tool_warned=yes ;;
14275 esac
14276 CC=$ac_ct_CC
14277 fi
14278 else
14279 CC="$ac_cv_prog_CC"
14280 fi
14281
14282 fi
14283
14284
14285 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14286 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14287 as_fn_error $? "no acceptable C compiler found in \$PATH
14288 See \`config.log' for more details" "$LINENO" 5; }
14289
14290 # Provide some information about the compiler.
14291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14292 set X $ac_compile
14293 ac_compiler=$2
14294 for ac_option in --version -v -V -qversion -version; do
14295 { { ac_try="$ac_compiler $ac_option >&5"
14296 case "(($ac_try" in
14297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298 *) ac_try_echo=$ac_try;;
14299 esac
14300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14301 printf "%s\n" "$ac_try_echo"; } >&5
14302 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14303 ac_status=$?
14304 if test -s conftest.err; then
14305 sed '10a\
14306 ... rest of stderr output deleted ...
14307 10q' conftest.err >conftest.er1
14308 cat conftest.er1 >&5
14309 fi
14310 rm -f conftest.er1 conftest.err
14311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14312 test $ac_status = 0; }
14313 done
14314
14315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14316 printf %s "checking whether the compiler supports GNU C... " >&6; }
14317 if test ${ac_cv_c_compiler_gnu+y}
14318 then :
14319 printf %s "(cached) " >&6
14320 else $as_nop
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323
14324 int
14325 main (void)
14326 {
14327 #ifndef __GNUC__
14328 choke me
14329 #endif
14330
14331 ;
14332 return 0;
14333 }
14334 _ACEOF
14335 if ac_fn_c_try_compile "$LINENO"
14336 then :
14337 ac_compiler_gnu=yes
14338 else $as_nop
14339 ac_compiler_gnu=no
14340 fi
14341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14343
14344 fi
14345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14346 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14348
14349 if test $ac_compiler_gnu = yes; then
14350 GCC=yes
14351 else
14352 GCC=
14353 fi
14354 ac_test_CFLAGS=${CFLAGS+y}
14355 ac_save_CFLAGS=$CFLAGS
14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14357 printf %s "checking whether $CC accepts -g... " >&6; }
14358 if test ${ac_cv_prog_cc_g+y}
14359 then :
14360 printf %s "(cached) " >&6
14361 else $as_nop
14362 ac_save_c_werror_flag=$ac_c_werror_flag
14363 ac_c_werror_flag=yes
14364 ac_cv_prog_cc_g=no
14365 CFLAGS="-g"
14366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h. */
14368
14369 int
14370 main (void)
14371 {
14372
14373 ;
14374 return 0;
14375 }
14376 _ACEOF
14377 if ac_fn_c_try_compile "$LINENO"
14378 then :
14379 ac_cv_prog_cc_g=yes
14380 else $as_nop
14381 CFLAGS=""
14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14384
14385 int
14386 main (void)
14387 {
14388
14389 ;
14390 return 0;
14391 }
14392 _ACEOF
14393 if ac_fn_c_try_compile "$LINENO"
14394 then :
14395
14396 else $as_nop
14397 ac_c_werror_flag=$ac_save_c_werror_flag
14398 CFLAGS="-g"
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14401
14402 int
14403 main (void)
14404 {
14405
14406 ;
14407 return 0;
14408 }
14409 _ACEOF
14410 if ac_fn_c_try_compile "$LINENO"
14411 then :
14412 ac_cv_prog_cc_g=yes
14413 fi
14414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14415 fi
14416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14417 fi
14418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14419 ac_c_werror_flag=$ac_save_c_werror_flag
14420 fi
14421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14422 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14423 if test $ac_test_CFLAGS; then
14424 CFLAGS=$ac_save_CFLAGS
14425 elif test $ac_cv_prog_cc_g = yes; then
14426 if test "$GCC" = yes; then
14427 CFLAGS="-g -O2"
14428 else
14429 CFLAGS="-g"
14430 fi
14431 else
14432 if test "$GCC" = yes; then
14433 CFLAGS="-O2"
14434 else
14435 CFLAGS=
14436 fi
14437 fi
14438 ac_prog_cc_stdc=no
14439 if test x$ac_prog_cc_stdc = xno
14440 then :
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14442 printf %s "checking for $CC option to enable C11 features... " >&6; }
14443 if test ${ac_cv_prog_cc_c11+y}
14444 then :
14445 printf %s "(cached) " >&6
14446 else $as_nop
14447 ac_cv_prog_cc_c11=no
14448 ac_save_CC=$CC
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14451 $ac_c_conftest_c11_program
14452 _ACEOF
14453 for ac_arg in '' -std=gnu11
14454 do
14455 CC="$ac_save_CC $ac_arg"
14456 if ac_fn_c_try_compile "$LINENO"
14457 then :
14458 ac_cv_prog_cc_c11=$ac_arg
14459 fi
14460 rm -f core conftest.err conftest.$ac_objext conftest.beam
14461 test "x$ac_cv_prog_cc_c11" != "xno" && break
14462 done
14463 rm -f conftest.$ac_ext
14464 CC=$ac_save_CC
14465 fi
14466
14467 if test "x$ac_cv_prog_cc_c11" = xno
14468 then :
14469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14470 printf "%s\n" "unsupported" >&6; }
14471 else $as_nop
14472 if test "x$ac_cv_prog_cc_c11" = x
14473 then :
14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14475 printf "%s\n" "none needed" >&6; }
14476 else $as_nop
14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14478 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14479 CC="$CC $ac_cv_prog_cc_c11"
14480 fi
14481 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14482 ac_prog_cc_stdc=c11
14483 fi
14484 fi
14485 if test x$ac_prog_cc_stdc = xno
14486 then :
14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14488 printf %s "checking for $CC option to enable C99 features... " >&6; }
14489 if test ${ac_cv_prog_cc_c99+y}
14490 then :
14491 printf %s "(cached) " >&6
14492 else $as_nop
14493 ac_cv_prog_cc_c99=no
14494 ac_save_CC=$CC
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14497 $ac_c_conftest_c99_program
14498 _ACEOF
14499 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14500 do
14501 CC="$ac_save_CC $ac_arg"
14502 if ac_fn_c_try_compile "$LINENO"
14503 then :
14504 ac_cv_prog_cc_c99=$ac_arg
14505 fi
14506 rm -f core conftest.err conftest.$ac_objext conftest.beam
14507 test "x$ac_cv_prog_cc_c99" != "xno" && break
14508 done
14509 rm -f conftest.$ac_ext
14510 CC=$ac_save_CC
14511 fi
14512
14513 if test "x$ac_cv_prog_cc_c99" = xno
14514 then :
14515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14516 printf "%s\n" "unsupported" >&6; }
14517 else $as_nop
14518 if test "x$ac_cv_prog_cc_c99" = x
14519 then :
14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14521 printf "%s\n" "none needed" >&6; }
14522 else $as_nop
14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14524 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14525 CC="$CC $ac_cv_prog_cc_c99"
14526 fi
14527 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14528 ac_prog_cc_stdc=c99
14529 fi
14530 fi
14531 if test x$ac_prog_cc_stdc = xno
14532 then :
14533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14534 printf %s "checking for $CC option to enable C89 features... " >&6; }
14535 if test ${ac_cv_prog_cc_c89+y}
14536 then :
14537 printf %s "(cached) " >&6
14538 else $as_nop
14539 ac_cv_prog_cc_c89=no
14540 ac_save_CC=$CC
14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h. */
14543 $ac_c_conftest_c89_program
14544 _ACEOF
14545 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14546 do
14547 CC="$ac_save_CC $ac_arg"
14548 if ac_fn_c_try_compile "$LINENO"
14549 then :
14550 ac_cv_prog_cc_c89=$ac_arg
14551 fi
14552 rm -f core conftest.err conftest.$ac_objext conftest.beam
14553 test "x$ac_cv_prog_cc_c89" != "xno" && break
14554 done
14555 rm -f conftest.$ac_ext
14556 CC=$ac_save_CC
14557 fi
14558
14559 if test "x$ac_cv_prog_cc_c89" = xno
14560 then :
14561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14562 printf "%s\n" "unsupported" >&6; }
14563 else $as_nop
14564 if test "x$ac_cv_prog_cc_c89" = x
14565 then :
14566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14567 printf "%s\n" "none needed" >&6; }
14568 else $as_nop
14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14570 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14571 CC="$CC $ac_cv_prog_cc_c89"
14572 fi
14573 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14574 ac_prog_cc_stdc=c89
14575 fi
14576 fi
14577
14578 ac_ext=c
14579 ac_cpp='$CPP $CPPFLAGS'
14580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14583
14584
14585 ac_ext=c
14586 ac_cpp='$CPP $CPPFLAGS'
14587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14591 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14592 if test ${am_cv_prog_cc_c_o+y}
14593 then :
14594 printf %s "(cached) " >&6
14595 else $as_nop
14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h. */
14598
14599 int
14600 main (void)
14601 {
14602
14603 ;
14604 return 0;
14605 }
14606 _ACEOF
14607 # Make sure it works both with $CC and with simple cc.
14608 # Following AC_PROG_CC_C_O, we do the test twice because some
14609 # compilers refuse to overwrite an existing .o file with -o,
14610 # though they will create one.
14611 am_cv_prog_cc_c_o=yes
14612 for am_i in 1 2; do
14613 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14614 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } \
14618 && test -f conftest2.$ac_objext; then
14619 : OK
14620 else
14621 am_cv_prog_cc_c_o=no
14622 break
14623 fi
14624 done
14625 rm -f core conftest*
14626 unset am_i
14627 fi
14628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14629 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14630 if test "$am_cv_prog_cc_c_o" != yes; then
14631 # Losing compiler, so override with the script.
14632 # FIXME: It is wrong to rewrite CC.
14633 # But if we don't then we get into trouble of one sort or another.
14634 # A longer-term fix would be to have automake use am__CC in this case,
14635 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14636 CC="$am_aux_dir/compile $CC"
14637 fi
14638 ac_ext=c
14639 ac_cpp='$CPP $CPPFLAGS'
14640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14643
14644
14645 depcc="$CC" am_compiler_list=
14646
14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14648 printf %s "checking dependency style of $depcc... " >&6; }
14649 if test ${am_cv_CC_dependencies_compiler_type+y}
14650 then :
14651 printf %s "(cached) " >&6
14652 else $as_nop
14653 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14654 # We make a subdir and do the tests there. Otherwise we can end up
14655 # making bogus files that we don't know about and never remove. For
14656 # instance it was reported that on HP-UX the gcc test will end up
14657 # making a dummy file named 'D' -- because '-MD' means "put the output
14658 # in D".
14659 rm -rf conftest.dir
14660 mkdir conftest.dir
14661 # Copy depcomp to subdir because otherwise we won't find it if we're
14662 # using a relative directory.
14663 cp "$am_depcomp" conftest.dir
14664 cd conftest.dir
14665 # We will build objects and dependencies in a subdirectory because
14666 # it helps to detect inapplicable dependency modes. For instance
14667 # both Tru64's cc and ICC support -MD to output dependencies as a
14668 # side effect of compilation, but ICC will put the dependencies in
14669 # the current directory while Tru64 will put them in the object
14670 # directory.
14671 mkdir sub
14672
14673 am_cv_CC_dependencies_compiler_type=none
14674 if test "$am_compiler_list" = ""; then
14675 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14676 fi
14677 am__universal=false
14678 case " $depcc " in #(
14679 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14680 esac
14681
14682 for depmode in $am_compiler_list; do
14683 # Setup a source with many dependencies, because some compilers
14684 # like to wrap large dependency lists on column 80 (with \), and
14685 # we should not choose a depcomp mode which is confused by this.
14686 #
14687 # We need to recreate these files for each test, as the compiler may
14688 # overwrite some of them when testing with obscure command lines.
14689 # This happens at least with the AIX C compiler.
14690 : > sub/conftest.c
14691 for i in 1 2 3 4 5 6; do
14692 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14693 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14694 # Solaris 10 /bin/sh.
14695 echo '/* dummy */' > sub/conftst$i.h
14696 done
14697 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14698
14699 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14700 # mode. It turns out that the SunPro C++ compiler does not properly
14701 # handle '-M -o', and we need to detect this. Also, some Intel
14702 # versions had trouble with output in subdirs.
14703 am__obj=sub/conftest.${OBJEXT-o}
14704 am__minus_obj="-o $am__obj"
14705 case $depmode in
14706 gcc)
14707 # This depmode causes a compiler race in universal mode.
14708 test "$am__universal" = false || continue
14709 ;;
14710 nosideeffect)
14711 # After this tag, mechanisms are not by side-effect, so they'll
14712 # only be used when explicitly requested.
14713 if test "x$enable_dependency_tracking" = xyes; then
14714 continue
14715 else
14716 break
14717 fi
14718 ;;
14719 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14720 # This compiler won't grok '-c -o', but also, the minuso test has
14721 # not run yet. These depmodes are late enough in the game, and
14722 # so weak that their functioning should not be impacted.
14723 am__obj=conftest.${OBJEXT-o}
14724 am__minus_obj=
14725 ;;
14726 none) break ;;
14727 esac
14728 if depmode=$depmode \
14729 source=sub/conftest.c object=$am__obj \
14730 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14731 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14732 >/dev/null 2>conftest.err &&
14733 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14734 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14735 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14736 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14737 # icc doesn't choke on unknown options, it will just issue warnings
14738 # or remarks (even with -Werror). So we grep stderr for any message
14739 # that says an option was ignored or not supported.
14740 # When given -MP, icc 7.0 and 7.1 complain thusly:
14741 # icc: Command line warning: ignoring option '-M'; no argument required
14742 # The diagnosis changed in icc 8.0:
14743 # icc: Command line remark: option '-MP' not supported
14744 if (grep 'ignoring option' conftest.err ||
14745 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14746 am_cv_CC_dependencies_compiler_type=$depmode
14747 break
14748 fi
14749 fi
14750 done
14751
14752 cd ..
14753 rm -rf conftest.dir
14754 else
14755 am_cv_CC_dependencies_compiler_type=none
14756 fi
14757
14758 fi
14759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14760 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
14761 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14762
14763 if
14764 test "x$enable_dependency_tracking" != xno \
14765 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14766 am__fastdepCC_TRUE=
14767 am__fastdepCC_FALSE='#'
14768 else
14769 am__fastdepCC_TRUE='#'
14770 am__fastdepCC_FALSE=
14771 fi
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781 ac_ext=cpp
14782 ac_cpp='$CXXCPP $CPPFLAGS'
14783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14786 if test -z "$CXX"; then
14787 if test -n "$CCC"; then
14788 CXX=$CCC
14789 else
14790 if test -n "$ac_tool_prefix"; then
14791 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14792 do
14793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14796 printf %s "checking for $ac_word... " >&6; }
14797 if test ${ac_cv_prog_CXX+y}
14798 then :
14799 printf %s "(cached) " >&6
14800 else $as_nop
14801 if test -n "$CXX"; then
14802 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14803 else
14804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805 for as_dir in $PATH
14806 do
14807 IFS=$as_save_IFS
14808 case $as_dir in #(((
14809 '') as_dir=./ ;;
14810 */) ;;
14811 *) as_dir=$as_dir/ ;;
14812 esac
14813 for ac_exec_ext in '' $ac_executable_extensions; do
14814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14815 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14817 break 2
14818 fi
14819 done
14820 done
14821 IFS=$as_save_IFS
14822
14823 fi
14824 fi
14825 CXX=$ac_cv_prog_CXX
14826 if test -n "$CXX"; then
14827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14828 printf "%s\n" "$CXX" >&6; }
14829 else
14830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14831 printf "%s\n" "no" >&6; }
14832 fi
14833
14834
14835 test -n "$CXX" && break
14836 done
14837 fi
14838 if test -z "$CXX"; then
14839 ac_ct_CXX=$CXX
14840 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14841 do
14842 # Extract the first word of "$ac_prog", so it can be a program name with args.
14843 set dummy $ac_prog; ac_word=$2
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14845 printf %s "checking for $ac_word... " >&6; }
14846 if test ${ac_cv_prog_ac_ct_CXX+y}
14847 then :
14848 printf %s "(cached) " >&6
14849 else $as_nop
14850 if test -n "$ac_ct_CXX"; then
14851 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14852 else
14853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14854 for as_dir in $PATH
14855 do
14856 IFS=$as_save_IFS
14857 case $as_dir in #(((
14858 '') as_dir=./ ;;
14859 */) ;;
14860 *) as_dir=$as_dir/ ;;
14861 esac
14862 for ac_exec_ext in '' $ac_executable_extensions; do
14863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14864 ac_cv_prog_ac_ct_CXX="$ac_prog"
14865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14866 break 2
14867 fi
14868 done
14869 done
14870 IFS=$as_save_IFS
14871
14872 fi
14873 fi
14874 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14875 if test -n "$ac_ct_CXX"; then
14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14877 printf "%s\n" "$ac_ct_CXX" >&6; }
14878 else
14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14880 printf "%s\n" "no" >&6; }
14881 fi
14882
14883
14884 test -n "$ac_ct_CXX" && break
14885 done
14886
14887 if test "x$ac_ct_CXX" = x; then
14888 CXX="g++"
14889 else
14890 case $cross_compiling:$ac_tool_warned in
14891 yes:)
14892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14893 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14894 ac_tool_warned=yes ;;
14895 esac
14896 CXX=$ac_ct_CXX
14897 fi
14898 fi
14899
14900 fi
14901 fi
14902 # Provide some information about the compiler.
14903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14904 set X $ac_compile
14905 ac_compiler=$2
14906 for ac_option in --version -v -V -qversion; do
14907 { { ac_try="$ac_compiler $ac_option >&5"
14908 case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14911 esac
14912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14913 printf "%s\n" "$ac_try_echo"; } >&5
14914 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14915 ac_status=$?
14916 if test -s conftest.err; then
14917 sed '10a\
14918 ... rest of stderr output deleted ...
14919 10q' conftest.err >conftest.er1
14920 cat conftest.er1 >&5
14921 fi
14922 rm -f conftest.er1 conftest.err
14923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14924 test $ac_status = 0; }
14925 done
14926
14927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14928 printf %s "checking whether the compiler supports GNU C++... " >&6; }
14929 if test ${ac_cv_cxx_compiler_gnu+y}
14930 then :
14931 printf %s "(cached) " >&6
14932 else $as_nop
14933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934 /* end confdefs.h. */
14935
14936 int
14937 main (void)
14938 {
14939 #ifndef __GNUC__
14940 choke me
14941 #endif
14942
14943 ;
14944 return 0;
14945 }
14946 _ACEOF
14947 if ac_fn_cxx_try_compile "$LINENO"
14948 then :
14949 ac_compiler_gnu=yes
14950 else $as_nop
14951 ac_compiler_gnu=no
14952 fi
14953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14954 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14955
14956 fi
14957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14958 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14960
14961 if test $ac_compiler_gnu = yes; then
14962 GXX=yes
14963 else
14964 GXX=
14965 fi
14966 ac_test_CXXFLAGS=${CXXFLAGS+y}
14967 ac_save_CXXFLAGS=$CXXFLAGS
14968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14969 printf %s "checking whether $CXX accepts -g... " >&6; }
14970 if test ${ac_cv_prog_cxx_g+y}
14971 then :
14972 printf %s "(cached) " >&6
14973 else $as_nop
14974 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14975 ac_cxx_werror_flag=yes
14976 ac_cv_prog_cxx_g=no
14977 CXXFLAGS="-g"
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14980
14981 int
14982 main (void)
14983 {
14984
14985 ;
14986 return 0;
14987 }
14988 _ACEOF
14989 if ac_fn_cxx_try_compile "$LINENO"
14990 then :
14991 ac_cv_prog_cxx_g=yes
14992 else $as_nop
14993 CXXFLAGS=""
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14996
14997 int
14998 main (void)
14999 {
15000
15001 ;
15002 return 0;
15003 }
15004 _ACEOF
15005 if ac_fn_cxx_try_compile "$LINENO"
15006 then :
15007
15008 else $as_nop
15009 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15010 CXXFLAGS="-g"
15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012 /* end confdefs.h. */
15013
15014 int
15015 main (void)
15016 {
15017
15018 ;
15019 return 0;
15020 }
15021 _ACEOF
15022 if ac_fn_cxx_try_compile "$LINENO"
15023 then :
15024 ac_cv_prog_cxx_g=yes
15025 fi
15026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15027 fi
15028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15029 fi
15030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15031 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15032 fi
15033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15034 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15035 if test $ac_test_CXXFLAGS; then
15036 CXXFLAGS=$ac_save_CXXFLAGS
15037 elif test $ac_cv_prog_cxx_g = yes; then
15038 if test "$GXX" = yes; then
15039 CXXFLAGS="-g -O2"
15040 else
15041 CXXFLAGS="-g"
15042 fi
15043 else
15044 if test "$GXX" = yes; then
15045 CXXFLAGS="-O2"
15046 else
15047 CXXFLAGS=
15048 fi
15049 fi
15050 ac_prog_cxx_stdcxx=no
15051 if test x$ac_prog_cxx_stdcxx = xno
15052 then :
15053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15054 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15055 if test ${ac_cv_prog_cxx_cxx11+y}
15056 then :
15057 printf %s "(cached) " >&6
15058 else $as_nop
15059 ac_cv_prog_cxx_cxx11=no
15060 ac_save_CXX=$CXX
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15063 $ac_cxx_conftest_cxx11_program
15064 _ACEOF
15065 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15066 do
15067 CXX="$ac_save_CXX $ac_arg"
15068 if ac_fn_cxx_try_compile "$LINENO"
15069 then :
15070 ac_cv_prog_cxx_cxx11=$ac_arg
15071 fi
15072 rm -f core conftest.err conftest.$ac_objext conftest.beam
15073 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15074 done
15075 rm -f conftest.$ac_ext
15076 CXX=$ac_save_CXX
15077 fi
15078
15079 if test "x$ac_cv_prog_cxx_cxx11" = xno
15080 then :
15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15082 printf "%s\n" "unsupported" >&6; }
15083 else $as_nop
15084 if test "x$ac_cv_prog_cxx_cxx11" = x
15085 then :
15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15087 printf "%s\n" "none needed" >&6; }
15088 else $as_nop
15089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15090 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15091 CXX="$CXX $ac_cv_prog_cxx_cxx11"
15092 fi
15093 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15094 ac_prog_cxx_stdcxx=cxx11
15095 fi
15096 fi
15097 if test x$ac_prog_cxx_stdcxx = xno
15098 then :
15099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15100 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15101 if test ${ac_cv_prog_cxx_cxx98+y}
15102 then :
15103 printf %s "(cached) " >&6
15104 else $as_nop
15105 ac_cv_prog_cxx_cxx98=no
15106 ac_save_CXX=$CXX
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15109 $ac_cxx_conftest_cxx98_program
15110 _ACEOF
15111 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15112 do
15113 CXX="$ac_save_CXX $ac_arg"
15114 if ac_fn_cxx_try_compile "$LINENO"
15115 then :
15116 ac_cv_prog_cxx_cxx98=$ac_arg
15117 fi
15118 rm -f core conftest.err conftest.$ac_objext conftest.beam
15119 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15120 done
15121 rm -f conftest.$ac_ext
15122 CXX=$ac_save_CXX
15123 fi
15124
15125 if test "x$ac_cv_prog_cxx_cxx98" = xno
15126 then :
15127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15128 printf "%s\n" "unsupported" >&6; }
15129 else $as_nop
15130 if test "x$ac_cv_prog_cxx_cxx98" = x
15131 then :
15132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15133 printf "%s\n" "none needed" >&6; }
15134 else $as_nop
15135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15136 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15137 CXX="$CXX $ac_cv_prog_cxx_cxx98"
15138 fi
15139 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15140 ac_prog_cxx_stdcxx=cxx98
15141 fi
15142 fi
15143
15144 ac_ext=c
15145 ac_cpp='$CPP $CPPFLAGS'
15146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15149
15150 depcc="$CXX" am_compiler_list=
15151
15152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15153 printf %s "checking dependency style of $depcc... " >&6; }
15154 if test ${am_cv_CXX_dependencies_compiler_type+y}
15155 then :
15156 printf %s "(cached) " >&6
15157 else $as_nop
15158 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15159 # We make a subdir and do the tests there. Otherwise we can end up
15160 # making bogus files that we don't know about and never remove. For
15161 # instance it was reported that on HP-UX the gcc test will end up
15162 # making a dummy file named 'D' -- because '-MD' means "put the output
15163 # in D".
15164 rm -rf conftest.dir
15165 mkdir conftest.dir
15166 # Copy depcomp to subdir because otherwise we won't find it if we're
15167 # using a relative directory.
15168 cp "$am_depcomp" conftest.dir
15169 cd conftest.dir
15170 # We will build objects and dependencies in a subdirectory because
15171 # it helps to detect inapplicable dependency modes. For instance
15172 # both Tru64's cc and ICC support -MD to output dependencies as a
15173 # side effect of compilation, but ICC will put the dependencies in
15174 # the current directory while Tru64 will put them in the object
15175 # directory.
15176 mkdir sub
15177
15178 am_cv_CXX_dependencies_compiler_type=none
15179 if test "$am_compiler_list" = ""; then
15180 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15181 fi
15182 am__universal=false
15183 case " $depcc " in #(
15184 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15185 esac
15186
15187 for depmode in $am_compiler_list; do
15188 # Setup a source with many dependencies, because some compilers
15189 # like to wrap large dependency lists on column 80 (with \), and
15190 # we should not choose a depcomp mode which is confused by this.
15191 #
15192 # We need to recreate these files for each test, as the compiler may
15193 # overwrite some of them when testing with obscure command lines.
15194 # This happens at least with the AIX C compiler.
15195 : > sub/conftest.c
15196 for i in 1 2 3 4 5 6; do
15197 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15198 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15199 # Solaris 10 /bin/sh.
15200 echo '/* dummy */' > sub/conftst$i.h
15201 done
15202 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15203
15204 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15205 # mode. It turns out that the SunPro C++ compiler does not properly
15206 # handle '-M -o', and we need to detect this. Also, some Intel
15207 # versions had trouble with output in subdirs.
15208 am__obj=sub/conftest.${OBJEXT-o}
15209 am__minus_obj="-o $am__obj"
15210 case $depmode in
15211 gcc)
15212 # This depmode causes a compiler race in universal mode.
15213 test "$am__universal" = false || continue
15214 ;;
15215 nosideeffect)
15216 # After this tag, mechanisms are not by side-effect, so they'll
15217 # only be used when explicitly requested.
15218 if test "x$enable_dependency_tracking" = xyes; then
15219 continue
15220 else
15221 break
15222 fi
15223 ;;
15224 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15225 # This compiler won't grok '-c -o', but also, the minuso test has
15226 # not run yet. These depmodes are late enough in the game, and
15227 # so weak that their functioning should not be impacted.
15228 am__obj=conftest.${OBJEXT-o}
15229 am__minus_obj=
15230 ;;
15231 none) break ;;
15232 esac
15233 if depmode=$depmode \
15234 source=sub/conftest.c object=$am__obj \
15235 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15236 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15237 >/dev/null 2>conftest.err &&
15238 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15239 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15240 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15241 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15242 # icc doesn't choke on unknown options, it will just issue warnings
15243 # or remarks (even with -Werror). So we grep stderr for any message
15244 # that says an option was ignored or not supported.
15245 # When given -MP, icc 7.0 and 7.1 complain thusly:
15246 # icc: Command line warning: ignoring option '-M'; no argument required
15247 # The diagnosis changed in icc 8.0:
15248 # icc: Command line remark: option '-MP' not supported
15249 if (grep 'ignoring option' conftest.err ||
15250 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15251 am_cv_CXX_dependencies_compiler_type=$depmode
15252 break
15253 fi
15254 fi
15255 done
15256
15257 cd ..
15258 rm -rf conftest.dir
15259 else
15260 am_cv_CXX_dependencies_compiler_type=none
15261 fi
15262
15263 fi
15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15265 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
15266 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15267
15268 if
15269 test "x$enable_dependency_tracking" != xno \
15270 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15271 am__fastdepCXX_TRUE=
15272 am__fastdepCXX_FALSE='#'
15273 else
15274 am__fastdepCXX_TRUE='#'
15275 am__fastdepCXX_FALSE=
15276 fi
15277
15278
15279
15280
15281 func_stripname_cnf ()
15282 {
15283 case $2 in
15284 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15285 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15286 esac
15287 } # func_stripname_cnf
15288
15289 if test -n "$CXX" && ( test no != "$CXX" &&
15290 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15291 (test g++ != "$CXX"))); then
15292 ac_ext=cpp
15293 ac_cpp='$CXXCPP $CPPFLAGS'
15294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15298 printf %s "checking how to run the C++ preprocessor... " >&6; }
15299 if test -z "$CXXCPP"; then
15300 if test ${ac_cv_prog_CXXCPP+y}
15301 then :
15302 printf %s "(cached) " >&6
15303 else $as_nop
15304 # Double quotes because $CXX needs to be expanded
15305 for CXXCPP in "$CXX -E" cpp /lib/cpp
15306 do
15307 ac_preproc_ok=false
15308 for ac_cxx_preproc_warn_flag in '' yes
15309 do
15310 # Use a header file that comes with gcc, so configuring glibc
15311 # with a fresh cross-compiler works.
15312 # On the NeXT, cc -E runs the code through the compiler's parser,
15313 # not just through cpp. "Syntax error" is here to catch this case.
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15316 #include <limits.h>
15317 Syntax error
15318 _ACEOF
15319 if ac_fn_cxx_try_cpp "$LINENO"
15320 then :
15321
15322 else $as_nop
15323 # Broken: fails on valid input.
15324 continue
15325 fi
15326 rm -f conftest.err conftest.i conftest.$ac_ext
15327
15328 # OK, works on sane cases. Now check whether nonexistent headers
15329 # can be detected and how.
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15332 #include <ac_nonexistent.h>
15333 _ACEOF
15334 if ac_fn_cxx_try_cpp "$LINENO"
15335 then :
15336 # Broken: success on invalid input.
15337 continue
15338 else $as_nop
15339 # Passes both tests.
15340 ac_preproc_ok=:
15341 break
15342 fi
15343 rm -f conftest.err conftest.i conftest.$ac_ext
15344
15345 done
15346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15347 rm -f conftest.i conftest.err conftest.$ac_ext
15348 if $ac_preproc_ok
15349 then :
15350 break
15351 fi
15352
15353 done
15354 ac_cv_prog_CXXCPP=$CXXCPP
15355
15356 fi
15357 CXXCPP=$ac_cv_prog_CXXCPP
15358 else
15359 ac_cv_prog_CXXCPP=$CXXCPP
15360 fi
15361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15362 printf "%s\n" "$CXXCPP" >&6; }
15363 ac_preproc_ok=false
15364 for ac_cxx_preproc_warn_flag in '' yes
15365 do
15366 # Use a header file that comes with gcc, so configuring glibc
15367 # with a fresh cross-compiler works.
15368 # On the NeXT, cc -E runs the code through the compiler's parser,
15369 # not just through cpp. "Syntax error" is here to catch this case.
15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15372 #include <limits.h>
15373 Syntax error
15374 _ACEOF
15375 if ac_fn_cxx_try_cpp "$LINENO"
15376 then :
15377
15378 else $as_nop
15379 # Broken: fails on valid input.
15380 continue
15381 fi
15382 rm -f conftest.err conftest.i conftest.$ac_ext
15383
15384 # OK, works on sane cases. Now check whether nonexistent headers
15385 # can be detected and how.
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15388 #include <ac_nonexistent.h>
15389 _ACEOF
15390 if ac_fn_cxx_try_cpp "$LINENO"
15391 then :
15392 # Broken: success on invalid input.
15393 continue
15394 else $as_nop
15395 # Passes both tests.
15396 ac_preproc_ok=:
15397 break
15398 fi
15399 rm -f conftest.err conftest.i conftest.$ac_ext
15400
15401 done
15402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15403 rm -f conftest.i conftest.err conftest.$ac_ext
15404 if $ac_preproc_ok
15405 then :
15406
15407 else $as_nop
15408 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15409 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15410 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15411 See \`config.log' for more details" "$LINENO" 5; }
15412 fi
15413
15414 ac_ext=c
15415 ac_cpp='$CPP $CPPFLAGS'
15416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15419
15420 else
15421 _lt_caught_CXX_error=yes
15422 fi
15423
15424 ac_ext=cpp
15425 ac_cpp='$CXXCPP $CPPFLAGS'
15426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15429
15430 archive_cmds_need_lc_CXX=no
15431 allow_undefined_flag_CXX=
15432 always_export_symbols_CXX=no
15433 archive_expsym_cmds_CXX=
15434 compiler_needs_object_CXX=no
15435 export_dynamic_flag_spec_CXX=
15436 hardcode_direct_CXX=no
15437 hardcode_direct_absolute_CXX=no
15438 hardcode_libdir_flag_spec_CXX=
15439 hardcode_libdir_separator_CXX=
15440 hardcode_minus_L_CXX=no
15441 hardcode_shlibpath_var_CXX=unsupported
15442 hardcode_automatic_CXX=no
15443 inherit_rpath_CXX=no
15444 module_cmds_CXX=
15445 module_expsym_cmds_CXX=
15446 link_all_deplibs_CXX=unknown
15447 old_archive_cmds_CXX=$old_archive_cmds
15448 reload_flag_CXX=$reload_flag
15449 reload_cmds_CXX=$reload_cmds
15450 no_undefined_flag_CXX=
15451 whole_archive_flag_spec_CXX=
15452 enable_shared_with_static_runtimes_CXX=no
15453
15454 # Source file extension for C++ test sources.
15455 ac_ext=cpp
15456
15457 # Object file extension for compiled C++ test sources.
15458 objext=o
15459 objext_CXX=$objext
15460
15461 # No sense in running all these tests if we already determined that
15462 # the CXX compiler isn't working. Some variables (like enable_shared)
15463 # are currently assumed to apply to all compilers on this platform,
15464 # and will be corrupted by setting them based on a non-working compiler.
15465 if test yes != "$_lt_caught_CXX_error"; then
15466 # Code to be used in simple compile tests
15467 lt_simple_compile_test_code="int some_variable = 0;"
15468
15469 # Code to be used in simple link tests
15470 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15471
15472 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15473
15474
15475
15476
15477
15478
15479 # If no C compiler was specified, use CC.
15480 LTCC=${LTCC-"$CC"}
15481
15482 # If no C compiler flags were specified, use CFLAGS.
15483 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15484
15485 # Allow CC to be a program name with arguments.
15486 compiler=$CC
15487
15488
15489 # save warnings/boilerplate of simple test code
15490 ac_outfile=conftest.$ac_objext
15491 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15492 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15493 _lt_compiler_boilerplate=`cat conftest.err`
15494 $RM conftest*
15495
15496 ac_outfile=conftest.$ac_objext
15497 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15498 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15499 _lt_linker_boilerplate=`cat conftest.err`
15500 $RM -r conftest*
15501
15502
15503 # Allow CC to be a program name with arguments.
15504 lt_save_CC=$CC
15505 lt_save_CFLAGS=$CFLAGS
15506 lt_save_LD=$LD
15507 lt_save_GCC=$GCC
15508 GCC=$GXX
15509 lt_save_with_gnu_ld=$with_gnu_ld
15510 lt_save_path_LD=$lt_cv_path_LD
15511 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15512 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15513 else
15514 $as_unset lt_cv_prog_gnu_ld
15515 fi
15516 if test -n "${lt_cv_path_LDCXX+set}"; then
15517 lt_cv_path_LD=$lt_cv_path_LDCXX
15518 else
15519 $as_unset lt_cv_path_LD
15520 fi
15521 test -z "${LDCXX+set}" || LD=$LDCXX
15522 CC=${CXX-"c++"}
15523 CFLAGS=$CXXFLAGS
15524 compiler=$CC
15525 compiler_CXX=$CC
15526 func_cc_basename $compiler
15527 cc_basename=$func_cc_basename_result
15528
15529
15530 if test -n "$compiler"; then
15531 # We don't want -fno-exception when compiling C++ code, so set the
15532 # no_builtin_flag separately
15533 if test yes = "$GXX"; then
15534 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15535 else
15536 lt_prog_compiler_no_builtin_flag_CXX=
15537 fi
15538
15539 if test yes = "$GXX"; then
15540 # Set up default GNU C++ configuration
15541
15542
15543
15544 # Check whether --with-gnu-ld was given.
15545 if test ${with_gnu_ld+y}
15546 then :
15547 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15548 else $as_nop
15549 with_gnu_ld=no
15550 fi
15551
15552 ac_prog=ld
15553 if test yes = "$GCC"; then
15554 # Check if gcc -print-prog-name=ld gives a path.
15555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15556 printf %s "checking for ld used by $CC... " >&6; }
15557 case $host in
15558 *-*-mingw*)
15559 # gcc leaves a trailing carriage return, which upsets mingw
15560 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15561 *)
15562 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15563 esac
15564 case $ac_prog in
15565 # Accept absolute paths.
15566 [\\/]* | ?:[\\/]*)
15567 re_direlt='/[^/][^/]*/\.\./'
15568 # Canonicalize the pathname of ld
15569 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15570 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15571 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15572 done
15573 test -z "$LD" && LD=$ac_prog
15574 ;;
15575 "")
15576 # If it fails, then pretend we aren't using GCC.
15577 ac_prog=ld
15578 ;;
15579 *)
15580 # If it is relative, then search for the first ld in PATH.
15581 with_gnu_ld=unknown
15582 ;;
15583 esac
15584 elif test yes = "$with_gnu_ld"; then
15585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15586 printf %s "checking for GNU ld... " >&6; }
15587 else
15588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15589 printf %s "checking for non-GNU ld... " >&6; }
15590 fi
15591 if test ${lt_cv_path_LD+y}
15592 then :
15593 printf %s "(cached) " >&6
15594 else $as_nop
15595 if test -z "$LD"; then
15596 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15597 for ac_dir in $PATH; do
15598 IFS=$lt_save_ifs
15599 test -z "$ac_dir" && ac_dir=.
15600 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15601 lt_cv_path_LD=$ac_dir/$ac_prog
15602 # Check to see if the program is GNU ld. I'd rather use --version,
15603 # but apparently some variants of GNU ld only accept -v.
15604 # Break only if it was the GNU/non-GNU ld that we prefer.
15605 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15606 *GNU* | *'with BFD'*)
15607 test no != "$with_gnu_ld" && break
15608 ;;
15609 *)
15610 test yes != "$with_gnu_ld" && break
15611 ;;
15612 esac
15613 fi
15614 done
15615 IFS=$lt_save_ifs
15616 else
15617 lt_cv_path_LD=$LD # Let the user override the test with a path.
15618 fi
15619 fi
15620
15621 LD=$lt_cv_path_LD
15622 if test -n "$LD"; then
15623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15624 printf "%s\n" "$LD" >&6; }
15625 else
15626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15627 printf "%s\n" "no" >&6; }
15628 fi
15629 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15631 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15632 if test ${lt_cv_prog_gnu_ld+y}
15633 then :
15634 printf %s "(cached) " >&6
15635 else $as_nop
15636 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15637 case `$LD -v 2>&1 </dev/null` in
15638 *GNU* | *'with BFD'*)
15639 lt_cv_prog_gnu_ld=yes
15640 ;;
15641 *)
15642 lt_cv_prog_gnu_ld=no
15643 ;;
15644 esac
15645 fi
15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15647 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15648 with_gnu_ld=$lt_cv_prog_gnu_ld
15649
15650
15651
15652
15653
15654
15655
15656 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15657 # archiving commands below assume that GNU ld is being used.
15658 if test yes = "$with_gnu_ld"; then
15659 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15660 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'
15661
15662 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15663 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15664
15665 # If archive_cmds runs LD, not CC, wlarc should be empty
15666 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15667 # investigate it a little bit more. (MM)
15668 wlarc='$wl'
15669
15670 # ancient GNU ld didn't support --whole-archive et. al.
15671 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15672 $GREP 'no-whole-archive' > /dev/null; then
15673 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15674 else
15675 whole_archive_flag_spec_CXX=
15676 fi
15677 else
15678 with_gnu_ld=no
15679 wlarc=
15680
15681 # A generic and very simple default shared library creation
15682 # command for GNU C++ for the case where it uses the native
15683 # linker, instead of GNU ld. If possible, this setting should
15684 # overridden to take advantage of the native linker features on
15685 # the platform it is being used on.
15686 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15687 fi
15688
15689 # Commands to make compiler produce verbose output that lists
15690 # what "hidden" libraries, object files and flags are used when
15691 # linking a shared library.
15692 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15693
15694 else
15695 GXX=no
15696 with_gnu_ld=no
15697 wlarc=
15698 fi
15699
15700 # PORTME: fill in a description of your system's C++ link characteristics
15701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15702 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15703 ld_shlibs_CXX=yes
15704 case $host_os in
15705 aix3*)
15706 # FIXME: insert proper C++ library support
15707 ld_shlibs_CXX=no
15708 ;;
15709 aix[4-9]*)
15710 if test ia64 = "$host_cpu"; then
15711 # On IA64, the linker does run time linking by default, so we don't
15712 # have to do anything special.
15713 aix_use_runtimelinking=no
15714 exp_sym_flag='-Bexport'
15715 no_entry_flag=
15716 else
15717 aix_use_runtimelinking=no
15718
15719 # Test if we are trying to use run time linking or normal
15720 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15721 # have runtime linking enabled, and use it for executables.
15722 # For shared libraries, we enable/disable runtime linking
15723 # depending on the kind of the shared library created -
15724 # when "with_aix_soname,aix_use_runtimelinking" is:
15725 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15726 # "aix,yes" lib.so shared, rtl:yes, for executables
15727 # lib.a static archive
15728 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15729 # lib.a(lib.so.V) shared, rtl:no, for executables
15730 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15731 # lib.a(lib.so.V) shared, rtl:no
15732 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15733 # lib.a static archive
15734 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15735 for ld_flag in $LDFLAGS; do
15736 case $ld_flag in
15737 *-brtl*)
15738 aix_use_runtimelinking=yes
15739 break
15740 ;;
15741 esac
15742 done
15743 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15744 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15745 # so we don't have lib.a shared libs to link our executables.
15746 # We have to force runtime linking in this case.
15747 aix_use_runtimelinking=yes
15748 LDFLAGS="$LDFLAGS -Wl,-brtl"
15749 fi
15750 ;;
15751 esac
15752
15753 exp_sym_flag='-bexport'
15754 no_entry_flag='-bnoentry'
15755 fi
15756
15757 # When large executables or shared objects are built, AIX ld can
15758 # have problems creating the table of contents. If linking a library
15759 # or program results in "error TOC overflow" add -mminimal-toc to
15760 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15761 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15762
15763 archive_cmds_CXX=''
15764 hardcode_direct_CXX=yes
15765 hardcode_direct_absolute_CXX=yes
15766 hardcode_libdir_separator_CXX=':'
15767 link_all_deplibs_CXX=yes
15768 file_list_spec_CXX='$wl-f,'
15769 case $with_aix_soname,$aix_use_runtimelinking in
15770 aix,*) ;; # no import file
15771 svr4,* | *,yes) # use import file
15772 # The Import File defines what to hardcode.
15773 hardcode_direct_CXX=no
15774 hardcode_direct_absolute_CXX=no
15775 ;;
15776 esac
15777
15778 if test yes = "$GXX"; then
15779 case $host_os in aix4.[012]|aix4.[012].*)
15780 # We only want to do this on AIX 4.2 and lower, the check
15781 # below for broken collect2 doesn't work under 4.3+
15782 collect2name=`$CC -print-prog-name=collect2`
15783 if test -f "$collect2name" &&
15784 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15785 then
15786 # We have reworked collect2
15787 :
15788 else
15789 # We have old collect2
15790 hardcode_direct_CXX=unsupported
15791 # It fails to find uninstalled libraries when the uninstalled
15792 # path is not listed in the libpath. Setting hardcode_minus_L
15793 # to unsupported forces relinking
15794 hardcode_minus_L_CXX=yes
15795 hardcode_libdir_flag_spec_CXX='-L$libdir'
15796 hardcode_libdir_separator_CXX=
15797 fi
15798 esac
15799 shared_flag='-shared'
15800 if test yes = "$aix_use_runtimelinking"; then
15801 shared_flag=$shared_flag' $wl-G'
15802 fi
15803 # Need to ensure runtime linking is disabled for the traditional
15804 # shared library, or the linker may eventually find shared libraries
15805 # /with/ Import File - we do not want to mix them.
15806 shared_flag_aix='-shared'
15807 shared_flag_svr4='-shared $wl-G'
15808 else
15809 # not using gcc
15810 if test ia64 = "$host_cpu"; then
15811 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15812 # chokes on -Wl,-G. The following line is correct:
15813 shared_flag='-G'
15814 else
15815 if test yes = "$aix_use_runtimelinking"; then
15816 shared_flag='$wl-G'
15817 else
15818 shared_flag='$wl-bM:SRE'
15819 fi
15820 shared_flag_aix='$wl-bM:SRE'
15821 shared_flag_svr4='$wl-G'
15822 fi
15823 fi
15824
15825 export_dynamic_flag_spec_CXX='$wl-bexpall'
15826 # It seems that -bexpall does not export symbols beginning with
15827 # underscore (_), so it is better to generate a list of symbols to
15828 # export.
15829 always_export_symbols_CXX=yes
15830 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15831 # Warning - without using the other runtime loading flags (-brtl),
15832 # -berok will link without error, but may produce a broken library.
15833 # The "-G" linker flag allows undefined symbols.
15834 no_undefined_flag_CXX='-bernotok'
15835 # Determine the default libpath from the value encoded in an empty
15836 # executable.
15837 if test set = "${lt_cv_aix_libpath+set}"; then
15838 aix_libpath=$lt_cv_aix_libpath
15839 else
15840 if test ${lt_cv_aix_libpath__CXX+y}
15841 then :
15842 printf %s "(cached) " >&6
15843 else $as_nop
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15846
15847 int
15848 main (void)
15849 {
15850
15851 ;
15852 return 0;
15853 }
15854 _ACEOF
15855 if ac_fn_cxx_try_link "$LINENO"
15856 then :
15857
15858 lt_aix_libpath_sed='
15859 /Import File Strings/,/^$/ {
15860 /^0/ {
15861 s/^0 *\([^ ]*\) *$/\1/
15862 p
15863 }
15864 }'
15865 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15866 # Check for a 64-bit object if we didn't find anything.
15867 if test -z "$lt_cv_aix_libpath__CXX"; then
15868 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15869 fi
15870 fi
15871 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15872 conftest$ac_exeext conftest.$ac_ext
15873 if test -z "$lt_cv_aix_libpath__CXX"; then
15874 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15875 fi
15876
15877 fi
15878
15879 aix_libpath=$lt_cv_aix_libpath__CXX
15880 fi
15881
15882 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15883
15884 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
15885 else
15886 if test ia64 = "$host_cpu"; then
15887 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15888 allow_undefined_flag_CXX="-z nodefs"
15889 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"
15890 else
15891 # Determine the default libpath from the value encoded in an
15892 # empty executable.
15893 if test set = "${lt_cv_aix_libpath+set}"; then
15894 aix_libpath=$lt_cv_aix_libpath
15895 else
15896 if test ${lt_cv_aix_libpath__CXX+y}
15897 then :
15898 printf %s "(cached) " >&6
15899 else $as_nop
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h. */
15902
15903 int
15904 main (void)
15905 {
15906
15907 ;
15908 return 0;
15909 }
15910 _ACEOF
15911 if ac_fn_cxx_try_link "$LINENO"
15912 then :
15913
15914 lt_aix_libpath_sed='
15915 /Import File Strings/,/^$/ {
15916 /^0/ {
15917 s/^0 *\([^ ]*\) *$/\1/
15918 p
15919 }
15920 }'
15921 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15922 # Check for a 64-bit object if we didn't find anything.
15923 if test -z "$lt_cv_aix_libpath__CXX"; then
15924 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15925 fi
15926 fi
15927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15928 conftest$ac_exeext conftest.$ac_ext
15929 if test -z "$lt_cv_aix_libpath__CXX"; then
15930 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15931 fi
15932
15933 fi
15934
15935 aix_libpath=$lt_cv_aix_libpath__CXX
15936 fi
15937
15938 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15939 # Warning - without using the other run time loading flags,
15940 # -berok will link without error, but may produce a broken library.
15941 no_undefined_flag_CXX=' $wl-bernotok'
15942 allow_undefined_flag_CXX=' $wl-berok'
15943 if test yes = "$with_gnu_ld"; then
15944 # We only use this code for GNU lds that support --whole-archive.
15945 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15946 else
15947 # Exported symbols can be pulled into shared objects from archives
15948 whole_archive_flag_spec_CXX='$convenience'
15949 fi
15950 archive_cmds_need_lc_CXX=yes
15951 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15952 # -brtl affects multiple linker settings, -berok does not and is overridden later
15953 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15954 if test svr4 != "$with_aix_soname"; then
15955 # This is similar to how AIX traditionally builds its shared
15956 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15957 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'
15958 fi
15959 if test aix != "$with_aix_soname"; then
15960 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'
15961 else
15962 # used by -dlpreopen to get the symbols
15963 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15964 fi
15965 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15966 fi
15967 fi
15968 ;;
15969
15970 beos*)
15971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15972 allow_undefined_flag_CXX=unsupported
15973 # Joseph Beckenbach <[email protected]> says some releases of gcc
15974 # support --undefined. This deserves some investigation. FIXME
15975 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15976 else
15977 ld_shlibs_CXX=no
15978 fi
15979 ;;
15980
15981 chorus*)
15982 case $cc_basename in
15983 *)
15984 # FIXME: insert proper C++ library support
15985 ld_shlibs_CXX=no
15986 ;;
15987 esac
15988 ;;
15989
15990 cygwin* | mingw* | pw32* | cegcc*)
15991 case $GXX,$cc_basename in
15992 ,cl* | no,cl* | ,icl* | no,icl*)
15993 # Native MSVC or ICC
15994 # hardcode_libdir_flag_spec is actually meaningless, as there is
15995 # no search path for DLLs.
15996 hardcode_libdir_flag_spec_CXX=' '
15997 allow_undefined_flag_CXX=unsupported
15998 always_export_symbols_CXX=yes
15999 file_list_spec_CXX='@'
16000 # Tell ltmain to make .lib files, not .a files.
16001 libext=lib
16002 # Tell ltmain to make .dll files, not .so files.
16003 shrext_cmds=.dll
16004 # FIXME: Setting linknames here is a bad hack.
16005 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16006 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16007 cp "$export_symbols" "$output_objdir/$soname.def";
16008 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16009 else
16010 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16011 fi~
16012 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16013 linknames='
16014 # The linker will not automatically build a static lib if we build a DLL.
16015 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16016 enable_shared_with_static_runtimes_CXX=yes
16017 # Don't use ranlib
16018 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16019 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16020 lt_tool_outputfile="@TOOL_OUTPUT@"~
16021 case $lt_outputfile in
16022 *.exe|*.EXE) ;;
16023 *)
16024 lt_outputfile=$lt_outputfile.exe
16025 lt_tool_outputfile=$lt_tool_outputfile.exe
16026 ;;
16027 esac~
16028 func_to_tool_file "$lt_outputfile"~
16029 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16030 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16031 $RM "$lt_outputfile.manifest";
16032 fi'
16033 ;;
16034 *)
16035 # g++
16036 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16037 # as there is no search path for DLLs.
16038 hardcode_libdir_flag_spec_CXX='-L$libdir'
16039 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16040 allow_undefined_flag_CXX=unsupported
16041 always_export_symbols_CXX=no
16042 enable_shared_with_static_runtimes_CXX=yes
16043
16044 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16045 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'
16046 # If the export-symbols file already is a .def file, use it as
16047 # is; otherwise, prepend EXPORTS...
16048 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16049 cp $export_symbols $output_objdir/$soname.def;
16050 else
16051 echo EXPORTS > $output_objdir/$soname.def;
16052 cat $export_symbols >> $output_objdir/$soname.def;
16053 fi~
16054 $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'
16055 else
16056 ld_shlibs_CXX=no
16057 fi
16058 ;;
16059 esac
16060 ;;
16061 darwin* | rhapsody*)
16062
16063
16064 archive_cmds_need_lc_CXX=no
16065 hardcode_direct_CXX=no
16066 hardcode_automatic_CXX=yes
16067 hardcode_shlibpath_var_CXX=unsupported
16068 if test yes = "$lt_cv_ld_force_load"; then
16069 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\"`'
16070
16071 else
16072 whole_archive_flag_spec_CXX=''
16073 fi
16074 link_all_deplibs_CXX=yes
16075 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16076 case $cc_basename in
16077 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16078 *) _lt_dar_can_shared=$GCC ;;
16079 esac
16080 if test yes = "$_lt_dar_can_shared"; then
16081 output_verbose_link_cmd=func_echo_all
16082 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"
16083 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16084 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"
16085 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"
16086 if test yes != "$lt_cv_apple_cc_single_mod"; then
16087 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"
16088 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"
16089 fi
16090
16091 else
16092 ld_shlibs_CXX=no
16093 fi
16094
16095 ;;
16096
16097 os2*)
16098 hardcode_libdir_flag_spec_CXX='-L$libdir'
16099 hardcode_minus_L_CXX=yes
16100 allow_undefined_flag_CXX=unsupported
16101 shrext_cmds=.dll
16102 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16103 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16104 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16105 $ECHO EXPORTS >> $output_objdir/$libname.def~
16106 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16107 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16108 emximp -o $lib $output_objdir/$libname.def'
16109 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16110 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16111 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16112 $ECHO EXPORTS >> $output_objdir/$libname.def~
16113 prefix_cmds="$SED"~
16114 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16115 prefix_cmds="$prefix_cmds -e 1d";
16116 fi~
16117 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16118 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16119 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16120 emximp -o $lib $output_objdir/$libname.def'
16121 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16122 enable_shared_with_static_runtimes_CXX=yes
16123 file_list_spec_CXX='@'
16124 ;;
16125
16126 dgux*)
16127 case $cc_basename in
16128 ec++*)
16129 # FIXME: insert proper C++ library support
16130 ld_shlibs_CXX=no
16131 ;;
16132 ghcx*)
16133 # Green Hills C++ Compiler
16134 # FIXME: insert proper C++ library support
16135 ld_shlibs_CXX=no
16136 ;;
16137 *)
16138 # FIXME: insert proper C++ library support
16139 ld_shlibs_CXX=no
16140 ;;
16141 esac
16142 ;;
16143
16144 freebsd2.*)
16145 # C++ shared libraries reported to be fairly broken before
16146 # switch to ELF
16147 ld_shlibs_CXX=no
16148 ;;
16149
16150 freebsd-elf*)
16151 archive_cmds_need_lc_CXX=no
16152 ;;
16153
16154 freebsd* | dragonfly* | midnightbsd*)
16155 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16156 # conventions
16157 ld_shlibs_CXX=yes
16158 ;;
16159
16160 haiku*)
16161 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16162 link_all_deplibs_CXX=yes
16163 ;;
16164
16165 hpux9*)
16166 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16167 hardcode_libdir_separator_CXX=:
16168 export_dynamic_flag_spec_CXX='$wl-E'
16169 hardcode_direct_CXX=yes
16170 hardcode_minus_L_CXX=yes # Not in the search PATH,
16171 # but as the default
16172 # location of the library.
16173
16174 case $cc_basename in
16175 CC*)
16176 # FIXME: insert proper C++ library support
16177 ld_shlibs_CXX=no
16178 ;;
16179 aCC*)
16180 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'
16181 # Commands to make compiler produce verbose output that lists
16182 # what "hidden" libraries, object files and flags are used when
16183 # linking a shared library.
16184 #
16185 # There doesn't appear to be a way to prevent this compiler from
16186 # explicitly linking system object files so we need to strip them
16187 # from the output so that they don't get included in the library
16188 # dependencies.
16189 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"'
16190 ;;
16191 *)
16192 if test yes = "$GXX"; then
16193 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'
16194 else
16195 # FIXME: insert proper C++ library support
16196 ld_shlibs_CXX=no
16197 fi
16198 ;;
16199 esac
16200 ;;
16201
16202 hpux10*|hpux11*)
16203 if test no = "$with_gnu_ld"; then
16204 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16205 hardcode_libdir_separator_CXX=:
16206
16207 case $host_cpu in
16208 hppa*64*|ia64*)
16209 ;;
16210 *)
16211 export_dynamic_flag_spec_CXX='$wl-E'
16212 ;;
16213 esac
16214 fi
16215 case $host_cpu in
16216 hppa*64*|ia64*)
16217 hardcode_direct_CXX=no
16218 hardcode_shlibpath_var_CXX=no
16219 ;;
16220 *)
16221 hardcode_direct_CXX=yes
16222 hardcode_direct_absolute_CXX=yes
16223 hardcode_minus_L_CXX=yes # Not in the search PATH,
16224 # but as the default
16225 # location of the library.
16226 ;;
16227 esac
16228
16229 case $cc_basename in
16230 CC*)
16231 # FIXME: insert proper C++ library support
16232 ld_shlibs_CXX=no
16233 ;;
16234 aCC*)
16235 case $host_cpu in
16236 hppa*64*)
16237 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16238 ;;
16239 ia64*)
16240 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16241 ;;
16242 *)
16243 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16244 ;;
16245 esac
16246 # Commands to make compiler produce verbose output that lists
16247 # what "hidden" libraries, object files and flags are used when
16248 # linking a shared library.
16249 #
16250 # There doesn't appear to be a way to prevent this compiler from
16251 # explicitly linking system object files so we need to strip them
16252 # from the output so that they don't get included in the library
16253 # dependencies.
16254 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"'
16255 ;;
16256 *)
16257 if test yes = "$GXX"; then
16258 if test no = "$with_gnu_ld"; then
16259 case $host_cpu in
16260 hppa*64*)
16261 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16262 ;;
16263 ia64*)
16264 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16265 ;;
16266 *)
16267 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'
16268 ;;
16269 esac
16270 fi
16271 else
16272 # FIXME: insert proper C++ library support
16273 ld_shlibs_CXX=no
16274 fi
16275 ;;
16276 esac
16277 ;;
16278
16279 interix[3-9]*)
16280 hardcode_direct_CXX=no
16281 hardcode_shlibpath_var_CXX=no
16282 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16283 export_dynamic_flag_spec_CXX='$wl-E'
16284 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16285 # Instead, shared libraries are loaded at an image base (0x10000000 by
16286 # default) and relocated if they conflict, which is a slow very memory
16287 # consuming and fragmenting process. To avoid this, we pick a random,
16288 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16289 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16290 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'
16291 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'
16292 ;;
16293 irix5* | irix6*)
16294 case $cc_basename in
16295 CC*)
16296 # SGI C++
16297 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'
16298
16299 # Archives containing C++ object files must be created using
16300 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16301 # necessary to make sure instantiated templates are included
16302 # in the archive.
16303 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16304 ;;
16305 *)
16306 if test yes = "$GXX"; then
16307 if test no = "$with_gnu_ld"; then
16308 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'
16309 else
16310 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'
16311 fi
16312 fi
16313 link_all_deplibs_CXX=yes
16314 ;;
16315 esac
16316 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16317 hardcode_libdir_separator_CXX=:
16318 inherit_rpath_CXX=yes
16319 ;;
16320
16321 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16322 case $cc_basename in
16323 KCC*)
16324 # Kuck and Associates, Inc. (KAI) C++ Compiler
16325
16326 # KCC will only create a shared library if the output file
16327 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16328 # to its proper name (with version) after linking.
16329 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'
16330 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'
16331 # Commands to make compiler produce verbose output that lists
16332 # what "hidden" libraries, object files and flags are used when
16333 # linking a shared library.
16334 #
16335 # There doesn't appear to be a way to prevent this compiler from
16336 # explicitly linking system object files so we need to strip them
16337 # from the output so that they don't get included in the library
16338 # dependencies.
16339 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"'
16340
16341 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16342 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16343
16344 # Archives containing C++ object files must be created using
16345 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16346 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16347 ;;
16348 icpc* | ecpc* )
16349 # Intel C++
16350 with_gnu_ld=yes
16351 # version 8.0 and above of icpc choke on multiply defined symbols
16352 # if we add $predep_objects and $postdep_objects, however 7.1 and
16353 # earlier do not add the objects themselves.
16354 case `$CC -V 2>&1` in
16355 *"Version 7."*)
16356 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16357 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'
16358 ;;
16359 *) # Version 8.0 or newer
16360 tmp_idyn=
16361 case $host_cpu in
16362 ia64*) tmp_idyn=' -i_dynamic';;
16363 esac
16364 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16365 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'
16366 ;;
16367 esac
16368 archive_cmds_need_lc_CXX=no
16369 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16370 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16371 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16372 ;;
16373 pgCC* | pgcpp*)
16374 # Portland Group C++ compiler
16375 case `$CC -V` in
16376 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16377 prelink_cmds_CXX='tpldir=Template.dir~
16378 rm -rf $tpldir~
16379 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16380 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16381 old_archive_cmds_CXX='tpldir=Template.dir~
16382 rm -rf $tpldir~
16383 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16384 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16385 $RANLIB $oldlib'
16386 archive_cmds_CXX='tpldir=Template.dir~
16387 rm -rf $tpldir~
16388 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16389 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16390 archive_expsym_cmds_CXX='tpldir=Template.dir~
16391 rm -rf $tpldir~
16392 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16393 $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'
16394 ;;
16395 *) # Version 6 and above use weak symbols
16396 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16397 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'
16398 ;;
16399 esac
16400
16401 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16402 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16403 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'
16404 ;;
16405 cxx*)
16406 # Compaq C++
16407 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16408 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'
16409
16410 runpath_var=LD_RUN_PATH
16411 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16412 hardcode_libdir_separator_CXX=:
16413
16414 # Commands to make compiler produce verbose output that lists
16415 # what "hidden" libraries, object files and flags are used when
16416 # linking a shared library.
16417 #
16418 # There doesn't appear to be a way to prevent this compiler from
16419 # explicitly linking system object files so we need to strip them
16420 # from the output so that they don't get included in the library
16421 # dependencies.
16422 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'
16423 ;;
16424 xl* | mpixl* | bgxl*)
16425 # IBM XL 8.0 on PPC, with GNU ld
16426 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16427 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16428 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16429 if test yes = "$supports_anon_versioning"; then
16430 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16431 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16432 echo "local: *; };" >> $output_objdir/$libname.ver~
16433 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16434 fi
16435 ;;
16436 *)
16437 case `$CC -V 2>&1 | $SED 5q` in
16438 *Sun\ C*)
16439 # Sun C++ 5.9
16440 no_undefined_flag_CXX=' -zdefs'
16441 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16442 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'
16443 hardcode_libdir_flag_spec_CXX='-R$libdir'
16444 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'
16445 compiler_needs_object_CXX=yes
16446
16447 # Not sure whether something based on
16448 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16449 # would be better.
16450 output_verbose_link_cmd='func_echo_all'
16451
16452 # Archives containing C++ object files must be created using
16453 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16454 # necessary to make sure instantiated templates are included
16455 # in the archive.
16456 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16457 ;;
16458 esac
16459 ;;
16460 esac
16461 ;;
16462
16463 lynxos*)
16464 # FIXME: insert proper C++ library support
16465 ld_shlibs_CXX=no
16466 ;;
16467
16468 m88k*)
16469 # FIXME: insert proper C++ library support
16470 ld_shlibs_CXX=no
16471 ;;
16472
16473 mvs*)
16474 case $cc_basename in
16475 cxx*)
16476 # FIXME: insert proper C++ library support
16477 ld_shlibs_CXX=no
16478 ;;
16479 *)
16480 # FIXME: insert proper C++ library support
16481 ld_shlibs_CXX=no
16482 ;;
16483 esac
16484 ;;
16485
16486 netbsd*)
16487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16488 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16489 wlarc=
16490 hardcode_libdir_flag_spec_CXX='-R$libdir'
16491 hardcode_direct_CXX=yes
16492 hardcode_shlibpath_var_CXX=no
16493 fi
16494 # Workaround some broken pre-1.5 toolchains
16495 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16496 ;;
16497
16498 *nto* | *qnx*)
16499 ld_shlibs_CXX=yes
16500 ;;
16501
16502 openbsd* | bitrig*)
16503 if test -f /usr/libexec/ld.so; then
16504 hardcode_direct_CXX=yes
16505 hardcode_shlibpath_var_CXX=no
16506 hardcode_direct_absolute_CXX=yes
16507 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16508 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16509 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16510 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16511 export_dynamic_flag_spec_CXX='$wl-E'
16512 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16513 fi
16514 output_verbose_link_cmd=func_echo_all
16515 else
16516 ld_shlibs_CXX=no
16517 fi
16518 ;;
16519
16520 osf3* | osf4* | osf5*)
16521 case $cc_basename in
16522 KCC*)
16523 # Kuck and Associates, Inc. (KAI) C++ Compiler
16524
16525 # KCC will only create a shared library if the output file
16526 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16527 # to its proper name (with version) after linking.
16528 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'
16529
16530 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16531 hardcode_libdir_separator_CXX=:
16532
16533 # Archives containing C++ object files must be created using
16534 # the KAI C++ compiler.
16535 case $host in
16536 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16537 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16538 esac
16539 ;;
16540 RCC*)
16541 # Rational C++ 2.4.1
16542 # FIXME: insert proper C++ library support
16543 ld_shlibs_CXX=no
16544 ;;
16545 cxx*)
16546 case $host in
16547 osf3*)
16548 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16549 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'
16550 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16551 ;;
16552 *)
16553 allow_undefined_flag_CXX=' -expect_unresolved \*'
16554 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'
16555 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16556 echo "-hidden">> $lib.exp~
16557 $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~
16558 $RM $lib.exp'
16559 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16560 ;;
16561 esac
16562
16563 hardcode_libdir_separator_CXX=:
16564
16565 # Commands to make compiler produce verbose output that lists
16566 # what "hidden" libraries, object files and flags are used when
16567 # linking a shared library.
16568 #
16569 # There doesn't appear to be a way to prevent this compiler from
16570 # explicitly linking system object files so we need to strip them
16571 # from the output so that they don't get included in the library
16572 # dependencies.
16573 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"'
16574 ;;
16575 *)
16576 if test yes,no = "$GXX,$with_gnu_ld"; then
16577 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16578 case $host in
16579 osf3*)
16580 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'
16581 ;;
16582 *)
16583 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'
16584 ;;
16585 esac
16586
16587 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16588 hardcode_libdir_separator_CXX=:
16589
16590 # Commands to make compiler produce verbose output that lists
16591 # what "hidden" libraries, object files and flags are used when
16592 # linking a shared library.
16593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16594
16595 else
16596 # FIXME: insert proper C++ library support
16597 ld_shlibs_CXX=no
16598 fi
16599 ;;
16600 esac
16601 ;;
16602
16603 psos*)
16604 # FIXME: insert proper C++ library support
16605 ld_shlibs_CXX=no
16606 ;;
16607
16608 sunos4*)
16609 case $cc_basename in
16610 CC*)
16611 # Sun C++ 4.x
16612 # FIXME: insert proper C++ library support
16613 ld_shlibs_CXX=no
16614 ;;
16615 lcc*)
16616 # Lucid
16617 # FIXME: insert proper C++ library support
16618 ld_shlibs_CXX=no
16619 ;;
16620 *)
16621 # FIXME: insert proper C++ library support
16622 ld_shlibs_CXX=no
16623 ;;
16624 esac
16625 ;;
16626
16627 solaris*)
16628 case $cc_basename in
16629 CC* | sunCC*)
16630 # Sun C++ 4.2, 5.x and Centerline C++
16631 archive_cmds_need_lc_CXX=yes
16632 no_undefined_flag_CXX=' -zdefs'
16633 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16634 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16635 $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'
16636
16637 hardcode_libdir_flag_spec_CXX='-R$libdir'
16638 hardcode_shlibpath_var_CXX=no
16639 case $host_os in
16640 solaris2.[0-5] | solaris2.[0-5].*) ;;
16641 *)
16642 # The compiler driver will combine and reorder linker options,
16643 # but understands '-z linker_flag'.
16644 # Supported since Solaris 2.6 (maybe 2.5.1?)
16645 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16646 ;;
16647 esac
16648 link_all_deplibs_CXX=yes
16649
16650 output_verbose_link_cmd='func_echo_all'
16651
16652 # Archives containing C++ object files must be created using
16653 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16654 # necessary to make sure instantiated templates are included
16655 # in the archive.
16656 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16657 ;;
16658 gcx*)
16659 # Green Hills C++ Compiler
16660 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16661
16662 # The C++ compiler must be used to create the archive.
16663 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16664 ;;
16665 *)
16666 # GNU C++ compiler with Solaris linker
16667 if test yes,no = "$GXX,$with_gnu_ld"; then
16668 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16669 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16670 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16671 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16672 $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'
16673
16674 # Commands to make compiler produce verbose output that lists
16675 # what "hidden" libraries, object files and flags are used when
16676 # linking a shared library.
16677 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16678 else
16679 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16680 # platform.
16681 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16682 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16683 $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'
16684
16685 # Commands to make compiler produce verbose output that lists
16686 # what "hidden" libraries, object files and flags are used when
16687 # linking a shared library.
16688 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16689 fi
16690
16691 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16692 case $host_os in
16693 solaris2.[0-5] | solaris2.[0-5].*) ;;
16694 *)
16695 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16696 ;;
16697 esac
16698 fi
16699 ;;
16700 esac
16701 ;;
16702
16703 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16704 no_undefined_flag_CXX='$wl-z,text'
16705 archive_cmds_need_lc_CXX=no
16706 hardcode_shlibpath_var_CXX=no
16707 runpath_var='LD_RUN_PATH'
16708
16709 case $cc_basename in
16710 CC*)
16711 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16712 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16713 ;;
16714 *)
16715 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16716 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16717 ;;
16718 esac
16719 ;;
16720
16721 sysv5* | sco3.2v5* | sco5v6*)
16722 # Note: We CANNOT use -z defs as we might desire, because we do not
16723 # link with -lc, and that would cause any symbols used from libc to
16724 # always be unresolved, which means just about no library would
16725 # ever link correctly. If we're not using GNU ld we use -z text
16726 # though, which does catch some bad symbols but isn't as heavy-handed
16727 # as -z defs.
16728 no_undefined_flag_CXX='$wl-z,text'
16729 allow_undefined_flag_CXX='$wl-z,nodefs'
16730 archive_cmds_need_lc_CXX=no
16731 hardcode_shlibpath_var_CXX=no
16732 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16733 hardcode_libdir_separator_CXX=':'
16734 link_all_deplibs_CXX=yes
16735 export_dynamic_flag_spec_CXX='$wl-Bexport'
16736 runpath_var='LD_RUN_PATH'
16737
16738 case $cc_basename in
16739 CC*)
16740 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16741 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16742 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16743 '"$old_archive_cmds_CXX"
16744 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16745 '"$reload_cmds_CXX"
16746 ;;
16747 *)
16748 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16749 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16750 ;;
16751 esac
16752 ;;
16753
16754 tandem*)
16755 case $cc_basename in
16756 NCC*)
16757 # NonStop-UX NCC 3.20
16758 # FIXME: insert proper C++ library support
16759 ld_shlibs_CXX=no
16760 ;;
16761 *)
16762 # FIXME: insert proper C++ library support
16763 ld_shlibs_CXX=no
16764 ;;
16765 esac
16766 ;;
16767
16768 vxworks*)
16769 # FIXME: insert proper C++ library support
16770 ld_shlibs_CXX=no
16771 ;;
16772
16773 *)
16774 # FIXME: insert proper C++ library support
16775 ld_shlibs_CXX=no
16776 ;;
16777 esac
16778
16779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16780 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16781 test no = "$ld_shlibs_CXX" && can_build_shared=no
16782
16783 GCC_CXX=$GXX
16784 LD_CXX=$LD
16785
16786 ## CAVEAT EMPTOR:
16787 ## There is no encapsulation within the following macros, do not change
16788 ## the running order or otherwise move them around unless you know exactly
16789 ## what you are doing...
16790 # Dependencies to place before and after the object being linked:
16791 predep_objects_CXX=
16792 postdep_objects_CXX=
16793 predeps_CXX=
16794 postdeps_CXX=
16795 compiler_lib_search_path_CXX=
16796
16797 cat > conftest.$ac_ext <<_LT_EOF
16798 class Foo
16799 {
16800 public:
16801 Foo (void) { a = 0; }
16802 private:
16803 int a;
16804 };
16805 _LT_EOF
16806
16807
16808 _lt_libdeps_save_CFLAGS=$CFLAGS
16809 case "$CC $CFLAGS " in #(
16810 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16811 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16812 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16813 esac
16814
16815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16816 (eval $ac_compile) 2>&5
16817 ac_status=$?
16818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16819 test $ac_status = 0; }; then
16820 # Parse the compiler output and extract the necessary
16821 # objects, libraries and library flags.
16822
16823 # Sentinel used to keep track of whether or not we are before
16824 # the conftest object file.
16825 pre_test_object_deps_done=no
16826
16827 for p in `eval "$output_verbose_link_cmd"`; do
16828 case $prev$p in
16829
16830 -L* | -R* | -l*)
16831 # Some compilers place space between "-{L,R}" and the path.
16832 # Remove the space.
16833 if test x-L = "$p" ||
16834 test x-R = "$p"; then
16835 prev=$p
16836 continue
16837 fi
16838
16839 # Expand the sysroot to ease extracting the directories later.
16840 if test -z "$prev"; then
16841 case $p in
16842 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16843 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16844 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16845 esac
16846 fi
16847 case $p in
16848 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16849 esac
16850 if test no = "$pre_test_object_deps_done"; then
16851 case $prev in
16852 -L | -R)
16853 # Internal compiler library paths should come after those
16854 # provided the user. The postdeps already come after the
16855 # user supplied libs so there is no need to process them.
16856 if test -z "$compiler_lib_search_path_CXX"; then
16857 compiler_lib_search_path_CXX=$prev$p
16858 else
16859 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16860 fi
16861 ;;
16862 # The "-l" case would never come before the object being
16863 # linked, so don't bother handling this case.
16864 esac
16865 else
16866 if test -z "$postdeps_CXX"; then
16867 postdeps_CXX=$prev$p
16868 else
16869 postdeps_CXX="${postdeps_CXX} $prev$p"
16870 fi
16871 fi
16872 prev=
16873 ;;
16874
16875 *.lto.$objext) ;; # Ignore GCC LTO objects
16876 *.$objext)
16877 # This assumes that the test object file only shows up
16878 # once in the compiler output.
16879 if test "$p" = "conftest.$objext"; then
16880 pre_test_object_deps_done=yes
16881 continue
16882 fi
16883
16884 if test no = "$pre_test_object_deps_done"; then
16885 if test -z "$predep_objects_CXX"; then
16886 predep_objects_CXX=$p
16887 else
16888 predep_objects_CXX="$predep_objects_CXX $p"
16889 fi
16890 else
16891 if test -z "$postdep_objects_CXX"; then
16892 postdep_objects_CXX=$p
16893 else
16894 postdep_objects_CXX="$postdep_objects_CXX $p"
16895 fi
16896 fi
16897 ;;
16898
16899 *) ;; # Ignore the rest.
16900
16901 esac
16902 done
16903
16904 # Clean up.
16905 rm -f a.out a.exe
16906 else
16907 echo "libtool.m4: error: problem compiling CXX test program"
16908 fi
16909
16910 $RM -f confest.$objext
16911 CFLAGS=$_lt_libdeps_save_CFLAGS
16912
16913 # PORTME: override above test on systems where it is broken
16914 case $host_os in
16915 interix[3-9]*)
16916 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16917 # hack all around it, let's just trust "g++" to DTRT.
16918 predep_objects_CXX=
16919 postdep_objects_CXX=
16920 postdeps_CXX=
16921 ;;
16922 esac
16923
16924
16925 case " $postdeps_CXX " in
16926 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16927 esac
16928 compiler_lib_search_dirs_CXX=
16929 if test -n "${compiler_lib_search_path_CXX}"; then
16930 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16931 fi
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963 lt_prog_compiler_wl_CXX=
16964 lt_prog_compiler_pic_CXX=
16965 lt_prog_compiler_static_CXX=
16966
16967
16968 # C++ specific cases for pic, static, wl, etc.
16969 if test yes = "$GXX"; then
16970 lt_prog_compiler_wl_CXX='-Wl,'
16971 lt_prog_compiler_static_CXX='-static'
16972
16973 case $host_os in
16974 aix*)
16975 # All AIX code is PIC.
16976 if test ia64 = "$host_cpu"; then
16977 # AIX 5 now supports IA64 processor
16978 lt_prog_compiler_static_CXX='-Bstatic'
16979 fi
16980 lt_prog_compiler_pic_CXX='-fPIC'
16981 ;;
16982
16983 amigaos*)
16984 case $host_cpu in
16985 powerpc)
16986 # see comment about AmigaOS4 .so support
16987 lt_prog_compiler_pic_CXX='-fPIC'
16988 ;;
16989 m68k)
16990 # FIXME: we need at least 68020 code to build shared libraries, but
16991 # adding the '-m68020' flag to GCC prevents building anything better,
16992 # like '-m68040'.
16993 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16994 ;;
16995 esac
16996 ;;
16997
16998 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16999 # PIC is the default for these OSes.
17000 ;;
17001 mingw* | cygwin* | os2* | pw32* | cegcc*)
17002 # This hack is so that the source file can tell whether it is being
17003 # built for inclusion in a dll (and should export symbols for example).
17004 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17005 # (--disable-auto-import) libraries
17006 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17007 case $host_os in
17008 os2*)
17009 lt_prog_compiler_static_CXX='$wl-static'
17010 ;;
17011 esac
17012 ;;
17013 darwin* | rhapsody*)
17014 # PIC is the default on this platform
17015 # Common symbols not allowed in MH_DYLIB files
17016 lt_prog_compiler_pic_CXX='-fno-common'
17017 ;;
17018 *djgpp*)
17019 # DJGPP does not support shared libraries at all
17020 lt_prog_compiler_pic_CXX=
17021 ;;
17022 haiku*)
17023 # PIC is the default for Haiku.
17024 # The "-static" flag exists, but is broken.
17025 lt_prog_compiler_static_CXX=
17026 ;;
17027 interix[3-9]*)
17028 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17029 # Instead, we relocate shared libraries at runtime.
17030 ;;
17031 sysv4*MP*)
17032 if test -d /usr/nec; then
17033 lt_prog_compiler_pic_CXX=-Kconform_pic
17034 fi
17035 ;;
17036 hpux*)
17037 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17038 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17039 # sets the default TLS model and affects inlining.
17040 case $host_cpu in
17041 hppa*64*)
17042 ;;
17043 *)
17044 lt_prog_compiler_pic_CXX='-fPIC'
17045 ;;
17046 esac
17047 ;;
17048 *qnx* | *nto*)
17049 # QNX uses GNU C++, but need to define -shared option too, otherwise
17050 # it will coredump.
17051 lt_prog_compiler_pic_CXX='-fPIC -shared'
17052 ;;
17053 *)
17054 lt_prog_compiler_pic_CXX='-fPIC'
17055 ;;
17056 esac
17057 else
17058 case $host_os in
17059 aix[4-9]*)
17060 # All AIX code is PIC.
17061 if test ia64 = "$host_cpu"; then
17062 # AIX 5 now supports IA64 processor
17063 lt_prog_compiler_static_CXX='-Bstatic'
17064 else
17065 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17066 fi
17067 ;;
17068 chorus*)
17069 case $cc_basename in
17070 cxch68*)
17071 # Green Hills C++ Compiler
17072 # _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"
17073 ;;
17074 esac
17075 ;;
17076 mingw* | cygwin* | os2* | pw32* | cegcc*)
17077 # This hack is so that the source file can tell whether it is being
17078 # built for inclusion in a dll (and should export symbols for example).
17079 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17080 ;;
17081 dgux*)
17082 case $cc_basename in
17083 ec++*)
17084 lt_prog_compiler_pic_CXX='-KPIC'
17085 ;;
17086 ghcx*)
17087 # Green Hills C++ Compiler
17088 lt_prog_compiler_pic_CXX='-pic'
17089 ;;
17090 *)
17091 ;;
17092 esac
17093 ;;
17094 freebsd* | dragonfly* | midnightbsd*)
17095 # FreeBSD uses GNU C++
17096 ;;
17097 hpux9* | hpux10* | hpux11*)
17098 case $cc_basename in
17099 CC*)
17100 lt_prog_compiler_wl_CXX='-Wl,'
17101 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17102 if test ia64 != "$host_cpu"; then
17103 lt_prog_compiler_pic_CXX='+Z'
17104 fi
17105 ;;
17106 aCC*)
17107 lt_prog_compiler_wl_CXX='-Wl,'
17108 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17109 case $host_cpu in
17110 hppa*64*|ia64*)
17111 # +Z the default
17112 ;;
17113 *)
17114 lt_prog_compiler_pic_CXX='+Z'
17115 ;;
17116 esac
17117 ;;
17118 *)
17119 ;;
17120 esac
17121 ;;
17122 interix*)
17123 # This is c89, which is MS Visual C++ (no shared libs)
17124 # Anyone wants to do a port?
17125 ;;
17126 irix5* | irix6* | nonstopux*)
17127 case $cc_basename in
17128 CC*)
17129 lt_prog_compiler_wl_CXX='-Wl,'
17130 lt_prog_compiler_static_CXX='-non_shared'
17131 # CC pic flag -KPIC is the default.
17132 ;;
17133 *)
17134 ;;
17135 esac
17136 ;;
17137 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17138 case $cc_basename in
17139 KCC*)
17140 # KAI C++ Compiler
17141 lt_prog_compiler_wl_CXX='--backend -Wl,'
17142 lt_prog_compiler_pic_CXX='-fPIC'
17143 ;;
17144 ecpc* )
17145 # old Intel C++ for x86_64, which still supported -KPIC.
17146 lt_prog_compiler_wl_CXX='-Wl,'
17147 lt_prog_compiler_pic_CXX='-KPIC'
17148 lt_prog_compiler_static_CXX='-static'
17149 ;;
17150 icpc* )
17151 # Intel C++, used to be incompatible with GCC.
17152 # ICC 10 doesn't accept -KPIC any more.
17153 lt_prog_compiler_wl_CXX='-Wl,'
17154 lt_prog_compiler_pic_CXX='-fPIC'
17155 lt_prog_compiler_static_CXX='-static'
17156 ;;
17157 pgCC* | pgcpp*)
17158 # Portland Group C++ compiler
17159 lt_prog_compiler_wl_CXX='-Wl,'
17160 lt_prog_compiler_pic_CXX='-fpic'
17161 lt_prog_compiler_static_CXX='-Bstatic'
17162 ;;
17163 cxx*)
17164 # Compaq C++
17165 # Make sure the PIC flag is empty. It appears that all Alpha
17166 # Linux and Compaq Tru64 Unix objects are PIC.
17167 lt_prog_compiler_pic_CXX=
17168 lt_prog_compiler_static_CXX='-non_shared'
17169 ;;
17170 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17171 # IBM XL 8.0, 9.0 on PPC and BlueGene
17172 lt_prog_compiler_wl_CXX='-Wl,'
17173 lt_prog_compiler_pic_CXX='-qpic'
17174 lt_prog_compiler_static_CXX='-qstaticlink'
17175 ;;
17176 *)
17177 case `$CC -V 2>&1 | $SED 5q` in
17178 *Sun\ C*)
17179 # Sun C++ 5.9
17180 lt_prog_compiler_pic_CXX='-KPIC'
17181 lt_prog_compiler_static_CXX='-Bstatic'
17182 lt_prog_compiler_wl_CXX='-Qoption ld '
17183 ;;
17184 esac
17185 ;;
17186 esac
17187 ;;
17188 lynxos*)
17189 ;;
17190 m88k*)
17191 ;;
17192 mvs*)
17193 case $cc_basename in
17194 cxx*)
17195 lt_prog_compiler_pic_CXX='-W c,exportall'
17196 ;;
17197 *)
17198 ;;
17199 esac
17200 ;;
17201 netbsd* | netbsdelf*-gnu)
17202 ;;
17203 *qnx* | *nto*)
17204 # QNX uses GNU C++, but need to define -shared option too, otherwise
17205 # it will coredump.
17206 lt_prog_compiler_pic_CXX='-fPIC -shared'
17207 ;;
17208 osf3* | osf4* | osf5*)
17209 case $cc_basename in
17210 KCC*)
17211 lt_prog_compiler_wl_CXX='--backend -Wl,'
17212 ;;
17213 RCC*)
17214 # Rational C++ 2.4.1
17215 lt_prog_compiler_pic_CXX='-pic'
17216 ;;
17217 cxx*)
17218 # Digital/Compaq C++
17219 lt_prog_compiler_wl_CXX='-Wl,'
17220 # Make sure the PIC flag is empty. It appears that all Alpha
17221 # Linux and Compaq Tru64 Unix objects are PIC.
17222 lt_prog_compiler_pic_CXX=
17223 lt_prog_compiler_static_CXX='-non_shared'
17224 ;;
17225 *)
17226 ;;
17227 esac
17228 ;;
17229 psos*)
17230 ;;
17231 solaris*)
17232 case $cc_basename in
17233 CC* | sunCC*)
17234 # Sun C++ 4.2, 5.x and Centerline C++
17235 lt_prog_compiler_pic_CXX='-KPIC'
17236 lt_prog_compiler_static_CXX='-Bstatic'
17237 lt_prog_compiler_wl_CXX='-Qoption ld '
17238 ;;
17239 gcx*)
17240 # Green Hills C++ Compiler
17241 lt_prog_compiler_pic_CXX='-PIC'
17242 ;;
17243 *)
17244 ;;
17245 esac
17246 ;;
17247 sunos4*)
17248 case $cc_basename in
17249 CC*)
17250 # Sun C++ 4.x
17251 lt_prog_compiler_pic_CXX='-pic'
17252 lt_prog_compiler_static_CXX='-Bstatic'
17253 ;;
17254 lcc*)
17255 # Lucid
17256 lt_prog_compiler_pic_CXX='-pic'
17257 ;;
17258 *)
17259 ;;
17260 esac
17261 ;;
17262 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17263 case $cc_basename in
17264 CC*)
17265 lt_prog_compiler_wl_CXX='-Wl,'
17266 lt_prog_compiler_pic_CXX='-KPIC'
17267 lt_prog_compiler_static_CXX='-Bstatic'
17268 ;;
17269 esac
17270 ;;
17271 tandem*)
17272 case $cc_basename in
17273 NCC*)
17274 # NonStop-UX NCC 3.20
17275 lt_prog_compiler_pic_CXX='-KPIC'
17276 ;;
17277 *)
17278 ;;
17279 esac
17280 ;;
17281 vxworks*)
17282 ;;
17283 *)
17284 lt_prog_compiler_can_build_shared_CXX=no
17285 ;;
17286 esac
17287 fi
17288
17289 case $host_os in
17290 # For platforms that do not support PIC, -DPIC is meaningless:
17291 *djgpp*)
17292 lt_prog_compiler_pic_CXX=
17293 ;;
17294 *)
17295 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17296 ;;
17297 esac
17298
17299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17300 printf %s "checking for $compiler option to produce PIC... " >&6; }
17301 if test ${lt_cv_prog_compiler_pic_CXX+y}
17302 then :
17303 printf %s "(cached) " >&6
17304 else $as_nop
17305 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17306 fi
17307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17308 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17309 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17310
17311 #
17312 # Check to make sure the PIC flag actually works.
17313 #
17314 if test -n "$lt_prog_compiler_pic_CXX"; then
17315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17316 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17317 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17318 then :
17319 printf %s "(cached) " >&6
17320 else $as_nop
17321 lt_cv_prog_compiler_pic_works_CXX=no
17322 ac_outfile=conftest.$ac_objext
17323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17324 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17325 # Insert the option either (1) after the last *FLAGS variable, or
17326 # (2) before a word containing "conftest.", or (3) at the end.
17327 # Note that $ac_compile itself does not contain backslashes and begins
17328 # with a dollar sign (not a hyphen), so the echo should work correctly.
17329 # The option is referenced via a variable to avoid confusing sed.
17330 lt_compile=`echo "$ac_compile" | $SED \
17331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17333 -e 's:$: $lt_compiler_flag:'`
17334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17335 (eval "$lt_compile" 2>conftest.err)
17336 ac_status=$?
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 if (exit $ac_status) && test -s "$ac_outfile"; then
17340 # The compiler can only warn and ignore the option if not recognized
17341 # So say no if there are warnings other than the usual output.
17342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17344 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17345 lt_cv_prog_compiler_pic_works_CXX=yes
17346 fi
17347 fi
17348 $RM conftest*
17349
17350 fi
17351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17352 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17353
17354 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17355 case $lt_prog_compiler_pic_CXX in
17356 "" | " "*) ;;
17357 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17358 esac
17359 else
17360 lt_prog_compiler_pic_CXX=
17361 lt_prog_compiler_can_build_shared_CXX=no
17362 fi
17363
17364 fi
17365
17366
17367
17368
17369
17370 #
17371 # Check to make sure the static flag actually works.
17372 #
17373 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17375 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17376 if test ${lt_cv_prog_compiler_static_works_CXX+y}
17377 then :
17378 printf %s "(cached) " >&6
17379 else $as_nop
17380 lt_cv_prog_compiler_static_works_CXX=no
17381 save_LDFLAGS=$LDFLAGS
17382 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17383 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17384 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17385 # The linker can only warn and ignore the option if not recognized
17386 # So say no if there are warnings
17387 if test -s conftest.err; then
17388 # Append any errors to the config.log.
17389 cat conftest.err 1>&5
17390 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17392 if diff conftest.exp conftest.er2 >/dev/null; then
17393 lt_cv_prog_compiler_static_works_CXX=yes
17394 fi
17395 else
17396 lt_cv_prog_compiler_static_works_CXX=yes
17397 fi
17398 fi
17399 $RM -r conftest*
17400 LDFLAGS=$save_LDFLAGS
17401
17402 fi
17403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17404 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17405
17406 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17407 :
17408 else
17409 lt_prog_compiler_static_CXX=
17410 fi
17411
17412
17413
17414
17415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17416 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17417 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17418 then :
17419 printf %s "(cached) " >&6
17420 else $as_nop
17421 lt_cv_prog_compiler_c_o_CXX=no
17422 $RM -r conftest 2>/dev/null
17423 mkdir conftest
17424 cd conftest
17425 mkdir out
17426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17427
17428 lt_compiler_flag="-o out/conftest2.$ac_objext"
17429 # Insert the option either (1) after the last *FLAGS variable, or
17430 # (2) before a word containing "conftest.", or (3) at the end.
17431 # Note that $ac_compile itself does not contain backslashes and begins
17432 # with a dollar sign (not a hyphen), so the echo should work correctly.
17433 lt_compile=`echo "$ac_compile" | $SED \
17434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17436 -e 's:$: $lt_compiler_flag:'`
17437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17438 (eval "$lt_compile" 2>out/conftest.err)
17439 ac_status=$?
17440 cat out/conftest.err >&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17443 then
17444 # The compiler can only warn and ignore the option if not recognized
17445 # So say no if there are warnings
17446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17449 lt_cv_prog_compiler_c_o_CXX=yes
17450 fi
17451 fi
17452 chmod u+w . 2>&5
17453 $RM conftest*
17454 # SGI C++ compiler will create directory out/ii_files/ for
17455 # template instantiation
17456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17457 $RM out/* && rmdir out
17458 cd ..
17459 $RM -r conftest
17460 $RM conftest*
17461
17462 fi
17463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17464 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17465
17466
17467
17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17469 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17470 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17471 then :
17472 printf %s "(cached) " >&6
17473 else $as_nop
17474 lt_cv_prog_compiler_c_o_CXX=no
17475 $RM -r conftest 2>/dev/null
17476 mkdir conftest
17477 cd conftest
17478 mkdir out
17479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17480
17481 lt_compiler_flag="-o out/conftest2.$ac_objext"
17482 # Insert the option either (1) after the last *FLAGS variable, or
17483 # (2) before a word containing "conftest.", or (3) at the end.
17484 # Note that $ac_compile itself does not contain backslashes and begins
17485 # with a dollar sign (not a hyphen), so the echo should work correctly.
17486 lt_compile=`echo "$ac_compile" | $SED \
17487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17489 -e 's:$: $lt_compiler_flag:'`
17490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17491 (eval "$lt_compile" 2>out/conftest.err)
17492 ac_status=$?
17493 cat out/conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17496 then
17497 # The compiler can only warn and ignore the option if not recognized
17498 # So say no if there are warnings
17499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17500 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17501 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17502 lt_cv_prog_compiler_c_o_CXX=yes
17503 fi
17504 fi
17505 chmod u+w . 2>&5
17506 $RM conftest*
17507 # SGI C++ compiler will create directory out/ii_files/ for
17508 # template instantiation
17509 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17510 $RM out/* && rmdir out
17511 cd ..
17512 $RM -r conftest
17513 $RM conftest*
17514
17515 fi
17516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17517 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17518
17519
17520
17521
17522 hard_links=nottested
17523 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17524 # do not overwrite the value of need_locks provided by the user
17525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17526 printf %s "checking if we can lock with hard links... " >&6; }
17527 hard_links=yes
17528 $RM conftest*
17529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17530 touch conftest.a
17531 ln conftest.a conftest.b 2>&5 || hard_links=no
17532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17534 printf "%s\n" "$hard_links" >&6; }
17535 if test no = "$hard_links"; then
17536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17537 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17538 need_locks=warn
17539 fi
17540 else
17541 need_locks=no
17542 fi
17543
17544
17545
17546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17547 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17548
17549 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17550 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17551 case $host_os in
17552 aix[4-9]*)
17553 # If we're using GNU nm, then we don't want the "-C" option.
17554 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17555 # Without the "-l" option, or with the "-B" option, AIX nm treats
17556 # weak defined symbols like other global defined symbols, whereas
17557 # GNU nm marks them as "W".
17558 # While the 'weak' keyword is ignored in the Export File, we need
17559 # it in the Import File for the 'aix-soname' feature, so we have
17560 # to replace the "-B" option with "-P" for AIX nm.
17561 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17562 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'
17563 else
17564 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'
17565 fi
17566 ;;
17567 pw32*)
17568 export_symbols_cmds_CXX=$ltdll_cmds
17569 ;;
17570 cygwin* | mingw* | cegcc*)
17571 case $cc_basename in
17572 cl* | icl*)
17573 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17574 ;;
17575 *)
17576 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'
17577 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17578 ;;
17579 esac
17580 ;;
17581 linux* | k*bsd*-gnu | gnu*)
17582 link_all_deplibs_CXX=no
17583 ;;
17584 *)
17585 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17586 ;;
17587 esac
17588
17589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17590 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17591 test no = "$ld_shlibs_CXX" && can_build_shared=no
17592
17593 with_gnu_ld_CXX=$with_gnu_ld
17594
17595
17596
17597
17598
17599
17600 #
17601 # Do we need to explicitly link libc?
17602 #
17603 case "x$archive_cmds_need_lc_CXX" in
17604 x|xyes)
17605 # Assume -lc should be added
17606 archive_cmds_need_lc_CXX=yes
17607
17608 if test yes,yes = "$GCC,$enable_shared"; then
17609 case $archive_cmds_CXX in
17610 *'~'*)
17611 # FIXME: we may have to deal with multi-command sequences.
17612 ;;
17613 '$CC '*)
17614 # Test whether the compiler implicitly links with -lc since on some
17615 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17616 # to ld, don't add -lc before -lgcc.
17617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17618 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17619 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17620 then :
17621 printf %s "(cached) " >&6
17622 else $as_nop
17623 $RM conftest*
17624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17625
17626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17627 (eval $ac_compile) 2>&5
17628 ac_status=$?
17629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17630 test $ac_status = 0; } 2>conftest.err; then
17631 soname=conftest
17632 lib=conftest
17633 libobjs=conftest.$ac_objext
17634 deplibs=
17635 wl=$lt_prog_compiler_wl_CXX
17636 pic_flag=$lt_prog_compiler_pic_CXX
17637 compiler_flags=-v
17638 linker_flags=-v
17639 verstring=
17640 output_objdir=.
17641 libname=conftest
17642 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17643 allow_undefined_flag_CXX=
17644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17645 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17646 ac_status=$?
17647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17648 test $ac_status = 0; }
17649 then
17650 lt_cv_archive_cmds_need_lc_CXX=no
17651 else
17652 lt_cv_archive_cmds_need_lc_CXX=yes
17653 fi
17654 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17655 else
17656 cat conftest.err 1>&5
17657 fi
17658 $RM conftest*
17659
17660 fi
17661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17662 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17663 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17664 ;;
17665 esac
17666 fi
17667 ;;
17668 esac
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17732 printf %s "checking dynamic linker characteristics... " >&6; }
17733
17734 library_names_spec=
17735 libname_spec='lib$name'
17736 soname_spec=
17737 shrext_cmds=.so
17738 postinstall_cmds=
17739 postuninstall_cmds=
17740 finish_cmds=
17741 finish_eval=
17742 shlibpath_var=
17743 shlibpath_overrides_runpath=unknown
17744 version_type=none
17745 dynamic_linker="$host_os ld.so"
17746 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17747 need_lib_prefix=unknown
17748 hardcode_into_libs=no
17749
17750 # when you set need_version to no, make sure it does not cause -set_version
17751 # flags to be left without arguments
17752 need_version=unknown
17753
17754
17755
17756 case $host_os in
17757 aix3*)
17758 version_type=linux # correct to gnu/linux during the next big refactor
17759 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17760 shlibpath_var=LIBPATH
17761
17762 # AIX 3 has no versioning support, so we append a major version to the name.
17763 soname_spec='$libname$release$shared_ext$major'
17764 ;;
17765
17766 aix[4-9]*)
17767 version_type=linux # correct to gnu/linux during the next big refactor
17768 need_lib_prefix=no
17769 need_version=no
17770 hardcode_into_libs=yes
17771 if test ia64 = "$host_cpu"; then
17772 # AIX 5 supports IA64
17773 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17774 shlibpath_var=LD_LIBRARY_PATH
17775 else
17776 # With GCC up to 2.95.x, collect2 would create an import file
17777 # for dependence libraries. The import file would start with
17778 # the line '#! .'. This would cause the generated library to
17779 # depend on '.', always an invalid library. This was fixed in
17780 # development snapshots of GCC prior to 3.0.
17781 case $host_os in
17782 aix4 | aix4.[01] | aix4.[01].*)
17783 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17784 echo ' yes '
17785 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17786 :
17787 else
17788 can_build_shared=no
17789 fi
17790 ;;
17791 esac
17792 # Using Import Files as archive members, it is possible to support
17793 # filename-based versioning of shared library archives on AIX. While
17794 # this would work for both with and without runtime linking, it will
17795 # prevent static linking of such archives. So we do filename-based
17796 # shared library versioning with .so extension only, which is used
17797 # when both runtime linking and shared linking is enabled.
17798 # Unfortunately, runtime linking may impact performance, so we do
17799 # not want this to be the default eventually. Also, we use the
17800 # versioned .so libs for executables only if there is the -brtl
17801 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17802 # To allow for filename-based versioning support, we need to create
17803 # libNAME.so.V as an archive file, containing:
17804 # *) an Import File, referring to the versioned filename of the
17805 # archive as well as the shared archive member, telling the
17806 # bitwidth (32 or 64) of that shared object, and providing the
17807 # list of exported symbols of that shared object, eventually
17808 # decorated with the 'weak' keyword
17809 # *) the shared object with the F_LOADONLY flag set, to really avoid
17810 # it being seen by the linker.
17811 # At run time we better use the real file rather than another symlink,
17812 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17813
17814 case $with_aix_soname,$aix_use_runtimelinking in
17815 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17816 # soname into executable. Probably we can add versioning support to
17817 # collect2, so additional links can be useful in future.
17818 aix,yes) # traditional libtool
17819 dynamic_linker='AIX unversionable lib.so'
17820 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17821 # instead of lib<name>.a to let people know that these are not
17822 # typical AIX shared libraries.
17823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17824 ;;
17825 aix,no) # traditional AIX only
17826 dynamic_linker='AIX lib.a(lib.so.V)'
17827 # We preserve .a as extension for shared libraries through AIX4.2
17828 # and later when we are not doing run time linking.
17829 library_names_spec='$libname$release.a $libname.a'
17830 soname_spec='$libname$release$shared_ext$major'
17831 ;;
17832 svr4,*) # full svr4 only
17833 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17834 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17835 # We do not specify a path in Import Files, so LIBPATH fires.
17836 shlibpath_overrides_runpath=yes
17837 ;;
17838 *,yes) # both, prefer svr4
17839 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17840 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17841 # unpreferred sharedlib libNAME.a needs extra handling
17842 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"'
17843 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"'
17844 # We do not specify a path in Import Files, so LIBPATH fires.
17845 shlibpath_overrides_runpath=yes
17846 ;;
17847 *,no) # both, prefer aix
17848 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17849 library_names_spec='$libname$release.a $libname.a'
17850 soname_spec='$libname$release$shared_ext$major'
17851 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17852 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)'
17853 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"'
17854 ;;
17855 esac
17856 shlibpath_var=LIBPATH
17857 fi
17858 ;;
17859
17860 amigaos*)
17861 case $host_cpu in
17862 powerpc)
17863 # Since July 2007 AmigaOS4 officially supports .so libraries.
17864 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17866 ;;
17867 m68k)
17868 library_names_spec='$libname.ixlibrary $libname.a'
17869 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17870 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'
17871 ;;
17872 esac
17873 ;;
17874
17875 beos*)
17876 library_names_spec='$libname$shared_ext'
17877 dynamic_linker="$host_os ld.so"
17878 shlibpath_var=LIBRARY_PATH
17879 ;;
17880
17881 bsdi[45]*)
17882 version_type=linux # correct to gnu/linux during the next big refactor
17883 need_version=no
17884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17885 soname_spec='$libname$release$shared_ext$major'
17886 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17887 shlibpath_var=LD_LIBRARY_PATH
17888 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17889 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17890 # the default ld.so.conf also contains /usr/contrib/lib and
17891 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17892 # libtool to hard-code these into programs
17893 ;;
17894
17895 cygwin* | mingw* | pw32* | cegcc*)
17896 version_type=windows
17897 shrext_cmds=.dll
17898 need_version=no
17899 need_lib_prefix=no
17900
17901 case $GCC,$cc_basename in
17902 yes,*)
17903 # gcc
17904 library_names_spec='$libname.dll.a'
17905 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17906 postinstall_cmds='base_file=`basename \$file`~
17907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17908 dldir=$destdir/`dirname \$dlpath`~
17909 test -d \$dldir || mkdir -p \$dldir~
17910 $install_prog $dir/$dlname \$dldir/$dlname~
17911 chmod a+x \$dldir/$dlname~
17912 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17913 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17914 fi'
17915 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17916 dlpath=$dir/\$dldll~
17917 $RM \$dlpath'
17918 shlibpath_overrides_runpath=yes
17919
17920 case $host_os in
17921 cygwin*)
17922 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17923 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17924
17925 ;;
17926 mingw* | cegcc*)
17927 # MinGW DLLs use traditional 'lib' prefix
17928 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17929 ;;
17930 pw32*)
17931 # pw32 DLLs use 'pw' prefix rather than 'lib'
17932 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17933 ;;
17934 esac
17935 dynamic_linker='Win32 ld.exe'
17936 ;;
17937
17938 *,cl* | *,icl*)
17939 # Native MSVC or ICC
17940 libname_spec='$name'
17941 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17942 library_names_spec='$libname.dll.lib'
17943
17944 case $build_os in
17945 mingw*)
17946 sys_lib_search_path_spec=
17947 lt_save_ifs=$IFS
17948 IFS=';'
17949 for lt_path in $LIB
17950 do
17951 IFS=$lt_save_ifs
17952 # Let DOS variable expansion print the short 8.3 style file name.
17953 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17954 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17955 done
17956 IFS=$lt_save_ifs
17957 # Convert to MSYS style.
17958 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17959 ;;
17960 cygwin*)
17961 # Convert to unix form, then to dos form, then back to unix form
17962 # but this time dos style (no spaces!) so that the unix form looks
17963 # like /cygdrive/c/PROGRA~1:/cygdr...
17964 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17965 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17966 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17967 ;;
17968 *)
17969 sys_lib_search_path_spec=$LIB
17970 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17971 # It is most probably a Windows format PATH.
17972 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17973 else
17974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17975 fi
17976 # FIXME: find the short name or the path components, as spaces are
17977 # common. (e.g. "Program Files" -> "PROGRA~1")
17978 ;;
17979 esac
17980
17981 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17982 postinstall_cmds='base_file=`basename \$file`~
17983 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17984 dldir=$destdir/`dirname \$dlpath`~
17985 test -d \$dldir || mkdir -p \$dldir~
17986 $install_prog $dir/$dlname \$dldir/$dlname'
17987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17988 dlpath=$dir/\$dldll~
17989 $RM \$dlpath'
17990 shlibpath_overrides_runpath=yes
17991 dynamic_linker='Win32 link.exe'
17992 ;;
17993
17994 *)
17995 # Assume MSVC and ICC wrapper
17996 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17997 dynamic_linker='Win32 ld.exe'
17998 ;;
17999 esac
18000 # FIXME: first we should search . and the directory the executable is in
18001 shlibpath_var=PATH
18002 ;;
18003
18004 darwin* | rhapsody*)
18005 dynamic_linker="$host_os dyld"
18006 version_type=darwin
18007 need_lib_prefix=no
18008 need_version=no
18009 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18010 soname_spec='$libname$release$major$shared_ext'
18011 shlibpath_overrides_runpath=yes
18012 shlibpath_var=DYLD_LIBRARY_PATH
18013 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18014
18015 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18016 ;;
18017
18018 dgux*)
18019 version_type=linux # correct to gnu/linux during the next big refactor
18020 need_lib_prefix=no
18021 need_version=no
18022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18023 soname_spec='$libname$release$shared_ext$major'
18024 shlibpath_var=LD_LIBRARY_PATH
18025 ;;
18026
18027 freebsd* | dragonfly* | midnightbsd*)
18028 # DragonFly does not have aout. When/if they implement a new
18029 # versioning mechanism, adjust this.
18030 if test -x /usr/bin/objformat; then
18031 objformat=`/usr/bin/objformat`
18032 else
18033 case $host_os in
18034 freebsd[23].*) objformat=aout ;;
18035 *) objformat=elf ;;
18036 esac
18037 fi
18038 version_type=freebsd-$objformat
18039 case $version_type in
18040 freebsd-elf*)
18041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18042 soname_spec='$libname$release$shared_ext$major'
18043 need_version=no
18044 need_lib_prefix=no
18045 ;;
18046 freebsd-*)
18047 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18048 need_version=yes
18049 ;;
18050 esac
18051 shlibpath_var=LD_LIBRARY_PATH
18052 case $host_os in
18053 freebsd2.*)
18054 shlibpath_overrides_runpath=yes
18055 ;;
18056 freebsd3.[01]* | freebsdelf3.[01]*)
18057 shlibpath_overrides_runpath=yes
18058 hardcode_into_libs=yes
18059 ;;
18060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18062 shlibpath_overrides_runpath=no
18063 hardcode_into_libs=yes
18064 ;;
18065 *) # from 4.6 on, and DragonFly
18066 shlibpath_overrides_runpath=yes
18067 hardcode_into_libs=yes
18068 ;;
18069 esac
18070 ;;
18071
18072 haiku*)
18073 version_type=linux # correct to gnu/linux during the next big refactor
18074 need_lib_prefix=no
18075 need_version=no
18076 dynamic_linker="$host_os runtime_loader"
18077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18078 soname_spec='$libname$release$shared_ext$major'
18079 shlibpath_var=LIBRARY_PATH
18080 shlibpath_overrides_runpath=no
18081 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18082 hardcode_into_libs=yes
18083 ;;
18084
18085 hpux9* | hpux10* | hpux11*)
18086 # Give a soname corresponding to the major version so that dld.sl refuses to
18087 # link against other versions.
18088 version_type=sunos
18089 need_lib_prefix=no
18090 need_version=no
18091 case $host_cpu in
18092 ia64*)
18093 shrext_cmds='.so'
18094 hardcode_into_libs=yes
18095 dynamic_linker="$host_os dld.so"
18096 shlibpath_var=LD_LIBRARY_PATH
18097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18099 soname_spec='$libname$release$shared_ext$major'
18100 if test 32 = "$HPUX_IA64_MODE"; then
18101 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18102 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18103 else
18104 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18105 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18106 fi
18107 ;;
18108 hppa*64*)
18109 shrext_cmds='.sl'
18110 hardcode_into_libs=yes
18111 dynamic_linker="$host_os dld.sl"
18112 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18115 soname_spec='$libname$release$shared_ext$major'
18116 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18117 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18118 ;;
18119 *)
18120 shrext_cmds='.sl'
18121 dynamic_linker="$host_os dld.sl"
18122 shlibpath_var=SHLIB_PATH
18123 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18125 soname_spec='$libname$release$shared_ext$major'
18126 ;;
18127 esac
18128 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18129 postinstall_cmds='chmod 555 $lib'
18130 # or fails outright, so override atomically:
18131 install_override_mode=555
18132 ;;
18133
18134 interix[3-9]*)
18135 version_type=linux # correct to gnu/linux during the next big refactor
18136 need_lib_prefix=no
18137 need_version=no
18138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18139 soname_spec='$libname$release$shared_ext$major'
18140 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18141 shlibpath_var=LD_LIBRARY_PATH
18142 shlibpath_overrides_runpath=no
18143 hardcode_into_libs=yes
18144 ;;
18145
18146 irix5* | irix6* | nonstopux*)
18147 case $host_os in
18148 nonstopux*) version_type=nonstopux ;;
18149 *)
18150 if test yes = "$lt_cv_prog_gnu_ld"; then
18151 version_type=linux # correct to gnu/linux during the next big refactor
18152 else
18153 version_type=irix
18154 fi ;;
18155 esac
18156 need_lib_prefix=no
18157 need_version=no
18158 soname_spec='$libname$release$shared_ext$major'
18159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18160 case $host_os in
18161 irix5* | nonstopux*)
18162 libsuff= shlibsuff=
18163 ;;
18164 *)
18165 case $LD in # libtool.m4 will add one of these switches to LD
18166 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18167 libsuff= shlibsuff= libmagic=32-bit;;
18168 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18169 libsuff=32 shlibsuff=N32 libmagic=N32;;
18170 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18171 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18172 *) libsuff= shlibsuff= libmagic=never-match;;
18173 esac
18174 ;;
18175 esac
18176 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18177 shlibpath_overrides_runpath=no
18178 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18179 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18180 hardcode_into_libs=yes
18181 ;;
18182
18183 # No shared lib support for Linux oldld, aout, or coff.
18184 linux*oldld* | linux*aout* | linux*coff*)
18185 dynamic_linker=no
18186 ;;
18187
18188 linux*android*)
18189 version_type=none # Android doesn't support versioned libraries.
18190 need_lib_prefix=no
18191 need_version=no
18192 library_names_spec='$libname$release$shared_ext'
18193 soname_spec='$libname$release$shared_ext'
18194 finish_cmds=
18195 shlibpath_var=LD_LIBRARY_PATH
18196 shlibpath_overrides_runpath=yes
18197
18198 # This implies no fast_install, which is unacceptable.
18199 # Some rework will be needed to allow for fast_install
18200 # before this can be enabled.
18201 hardcode_into_libs=yes
18202
18203 dynamic_linker='Android linker'
18204 # Don't embed -rpath directories since the linker doesn't support them.
18205 hardcode_libdir_flag_spec_CXX='-L$libdir'
18206 ;;
18207
18208 # This must be glibc/ELF.
18209 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18210 version_type=linux # correct to gnu/linux during the next big refactor
18211 need_lib_prefix=no
18212 need_version=no
18213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18214 soname_spec='$libname$release$shared_ext$major'
18215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18216 shlibpath_var=LD_LIBRARY_PATH
18217 shlibpath_overrides_runpath=no
18218
18219 # Some binutils ld are patched to set DT_RUNPATH
18220 if test ${lt_cv_shlibpath_overrides_runpath+y}
18221 then :
18222 printf %s "(cached) " >&6
18223 else $as_nop
18224 lt_cv_shlibpath_overrides_runpath=no
18225 save_LDFLAGS=$LDFLAGS
18226 save_libdir=$libdir
18227 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18228 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18231
18232 int
18233 main (void)
18234 {
18235
18236 ;
18237 return 0;
18238 }
18239 _ACEOF
18240 if ac_fn_cxx_try_link "$LINENO"
18241 then :
18242 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18243 then :
18244 lt_cv_shlibpath_overrides_runpath=yes
18245 fi
18246 fi
18247 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18248 conftest$ac_exeext conftest.$ac_ext
18249 LDFLAGS=$save_LDFLAGS
18250 libdir=$save_libdir
18251
18252 fi
18253
18254 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18255
18256 # This implies no fast_install, which is unacceptable.
18257 # Some rework will be needed to allow for fast_install
18258 # before this can be enabled.
18259 hardcode_into_libs=yes
18260
18261 # Ideally, we could use ldconfig to report *all* directores which are
18262 # searched for libraries, however this is still not possible. Aside from not
18263 # being certain /sbin/ldconfig is available, command
18264 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18265 # even though it is searched at run-time. Try to do the best guess by
18266 # appending ld.so.conf contents (and includes) to the search path.
18267 if test -f /etc/ld.so.conf; then
18268 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' ' '`
18269 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18270 fi
18271
18272 # We used to test for /lib/ld.so.1 and disable shared libraries on
18273 # powerpc, because MkLinux only supported shared libraries with the
18274 # GNU dynamic linker. Since this was broken with cross compilers,
18275 # most powerpc-linux boxes support dynamic linking these days and
18276 # people can always --disable-shared, the test was removed, and we
18277 # assume the GNU/Linux dynamic linker is in use.
18278 dynamic_linker='GNU/Linux ld.so'
18279 ;;
18280
18281 netbsdelf*-gnu)
18282 version_type=linux
18283 need_lib_prefix=no
18284 need_version=no
18285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18286 soname_spec='${libname}${release}${shared_ext}$major'
18287 shlibpath_var=LD_LIBRARY_PATH
18288 shlibpath_overrides_runpath=no
18289 hardcode_into_libs=yes
18290 dynamic_linker='NetBSD ld.elf_so'
18291 ;;
18292
18293 netbsd*)
18294 version_type=sunos
18295 need_lib_prefix=no
18296 need_version=no
18297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18298 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18300 dynamic_linker='NetBSD (a.out) ld.so'
18301 else
18302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18303 soname_spec='$libname$release$shared_ext$major'
18304 dynamic_linker='NetBSD ld.elf_so'
18305 fi
18306 shlibpath_var=LD_LIBRARY_PATH
18307 shlibpath_overrides_runpath=yes
18308 hardcode_into_libs=yes
18309 ;;
18310
18311 newsos6)
18312 version_type=linux # correct to gnu/linux during the next big refactor
18313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18314 shlibpath_var=LD_LIBRARY_PATH
18315 shlibpath_overrides_runpath=yes
18316 ;;
18317
18318 *nto* | *qnx*)
18319 version_type=qnx
18320 need_lib_prefix=no
18321 need_version=no
18322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18323 soname_spec='$libname$release$shared_ext$major'
18324 shlibpath_var=LD_LIBRARY_PATH
18325 shlibpath_overrides_runpath=no
18326 hardcode_into_libs=yes
18327 dynamic_linker='ldqnx.so'
18328 ;;
18329
18330 openbsd* | bitrig*)
18331 version_type=sunos
18332 sys_lib_dlsearch_path_spec=/usr/lib
18333 need_lib_prefix=no
18334 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18335 need_version=no
18336 else
18337 need_version=yes
18338 fi
18339 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18341 shlibpath_var=LD_LIBRARY_PATH
18342 shlibpath_overrides_runpath=yes
18343 ;;
18344
18345 os2*)
18346 libname_spec='$name'
18347 version_type=windows
18348 shrext_cmds=.dll
18349 need_version=no
18350 need_lib_prefix=no
18351 # OS/2 can only load a DLL with a base name of 8 characters or less.
18352 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18353 v=$($ECHO $release$versuffix | tr -d .-);
18354 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18355 $ECHO $n$v`$shared_ext'
18356 library_names_spec='${libname}_dll.$libext'
18357 dynamic_linker='OS/2 ld.exe'
18358 shlibpath_var=BEGINLIBPATH
18359 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18361 postinstall_cmds='base_file=`basename \$file`~
18362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18363 dldir=$destdir/`dirname \$dlpath`~
18364 test -d \$dldir || mkdir -p \$dldir~
18365 $install_prog $dir/$dlname \$dldir/$dlname~
18366 chmod a+x \$dldir/$dlname~
18367 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18368 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18369 fi'
18370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18371 dlpath=$dir/\$dldll~
18372 $RM \$dlpath'
18373 ;;
18374
18375 osf3* | osf4* | osf5*)
18376 version_type=osf
18377 need_lib_prefix=no
18378 need_version=no
18379 soname_spec='$libname$release$shared_ext$major'
18380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18381 shlibpath_var=LD_LIBRARY_PATH
18382 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18384 ;;
18385
18386 rdos*)
18387 dynamic_linker=no
18388 ;;
18389
18390 solaris*)
18391 version_type=linux # correct to gnu/linux during the next big refactor
18392 need_lib_prefix=no
18393 need_version=no
18394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18395 soname_spec='$libname$release$shared_ext$major'
18396 shlibpath_var=LD_LIBRARY_PATH
18397 shlibpath_overrides_runpath=yes
18398 hardcode_into_libs=yes
18399 # ldd complains unless libraries are executable
18400 postinstall_cmds='chmod +x $lib'
18401 ;;
18402
18403 sunos4*)
18404 version_type=sunos
18405 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18406 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18407 shlibpath_var=LD_LIBRARY_PATH
18408 shlibpath_overrides_runpath=yes
18409 if test yes = "$with_gnu_ld"; then
18410 need_lib_prefix=no
18411 fi
18412 need_version=yes
18413 ;;
18414
18415 sysv4 | sysv4.3*)
18416 version_type=linux # correct to gnu/linux during the next big refactor
18417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18418 soname_spec='$libname$release$shared_ext$major'
18419 shlibpath_var=LD_LIBRARY_PATH
18420 case $host_vendor in
18421 sni)
18422 shlibpath_overrides_runpath=no
18423 need_lib_prefix=no
18424 runpath_var=LD_RUN_PATH
18425 ;;
18426 siemens)
18427 need_lib_prefix=no
18428 ;;
18429 motorola)
18430 need_lib_prefix=no
18431 need_version=no
18432 shlibpath_overrides_runpath=no
18433 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18434 ;;
18435 esac
18436 ;;
18437
18438 sysv4*MP*)
18439 if test -d /usr/nec; then
18440 version_type=linux # correct to gnu/linux during the next big refactor
18441 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18442 soname_spec='$libname$shared_ext.$major'
18443 shlibpath_var=LD_LIBRARY_PATH
18444 fi
18445 ;;
18446
18447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18448 version_type=sco
18449 need_lib_prefix=no
18450 need_version=no
18451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18452 soname_spec='$libname$release$shared_ext$major'
18453 shlibpath_var=LD_LIBRARY_PATH
18454 shlibpath_overrides_runpath=yes
18455 hardcode_into_libs=yes
18456 if test yes = "$with_gnu_ld"; then
18457 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18458 else
18459 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18460 case $host_os in
18461 sco3.2v5*)
18462 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18463 ;;
18464 esac
18465 fi
18466 sys_lib_dlsearch_path_spec='/usr/lib'
18467 ;;
18468
18469 tpf*)
18470 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18471 version_type=linux # correct to gnu/linux during the next big refactor
18472 need_lib_prefix=no
18473 need_version=no
18474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18475 shlibpath_var=LD_LIBRARY_PATH
18476 shlibpath_overrides_runpath=no
18477 hardcode_into_libs=yes
18478 ;;
18479
18480 uts4*)
18481 version_type=linux # correct to gnu/linux during the next big refactor
18482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18483 soname_spec='$libname$release$shared_ext$major'
18484 shlibpath_var=LD_LIBRARY_PATH
18485 ;;
18486
18487 *)
18488 dynamic_linker=no
18489 ;;
18490 esac
18491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18492 printf "%s\n" "$dynamic_linker" >&6; }
18493 test no = "$dynamic_linker" && can_build_shared=no
18494
18495 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18496 if test yes = "$GCC"; then
18497 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18498 fi
18499
18500 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18501 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18502 fi
18503
18504 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18505 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18506 fi
18507
18508 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18509 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18510
18511 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18512 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18513
18514 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18515 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18557 printf %s "checking how to hardcode library paths into programs... " >&6; }
18558 hardcode_action_CXX=
18559 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18560 test -n "$runpath_var_CXX" ||
18561 test yes = "$hardcode_automatic_CXX"; then
18562
18563 # We can hardcode non-existent directories.
18564 if test no != "$hardcode_direct_CXX" &&
18565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18566 # have to relink, otherwise we might link with an installed library
18567 # when we should be linking with a yet-to-be-installed one
18568 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18569 test no != "$hardcode_minus_L_CXX"; then
18570 # Linking always hardcodes the temporary library directory.
18571 hardcode_action_CXX=relink
18572 else
18573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18574 hardcode_action_CXX=immediate
18575 fi
18576 else
18577 # We cannot hardcode anything, or else we can only hardcode existing
18578 # directories.
18579 hardcode_action_CXX=unsupported
18580 fi
18581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18582 printf "%s\n" "$hardcode_action_CXX" >&6; }
18583
18584 if test relink = "$hardcode_action_CXX" ||
18585 test yes = "$inherit_rpath_CXX"; then
18586 # Fast installation is not supported
18587 enable_fast_install=no
18588 elif test yes = "$shlibpath_overrides_runpath" ||
18589 test no = "$enable_shared"; then
18590 # Fast installation is not necessary
18591 enable_fast_install=needless
18592 fi
18593
18594
18595
18596
18597
18598
18599
18600 fi # test -n "$compiler"
18601
18602 CC=$lt_save_CC
18603 CFLAGS=$lt_save_CFLAGS
18604 LDCXX=$LD
18605 LD=$lt_save_LD
18606 GCC=$lt_save_GCC
18607 with_gnu_ld=$lt_save_with_gnu_ld
18608 lt_cv_path_LDCXX=$lt_cv_path_LD
18609 lt_cv_path_LD=$lt_save_path_LD
18610 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18611 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18612 fi # test yes != "$_lt_caught_CXX_error"
18613
18614 ac_ext=c
18615 ac_cpp='$CPP $CPPFLAGS'
18616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18619
18620
18621
18622
18623 # We need C++17 support.
18624 ax_cxx_compile_alternatives="23" ax_cxx_compile_cxx23_required=false
18625 ac_ext=cpp
18626 ac_cpp='$CXXCPP $CPPFLAGS'
18627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18630 ac_success=no
18631
18632
18633
18634
18635
18636 if test x$ac_success = xno; then
18637 for alternative in ${ax_cxx_compile_alternatives}; do
18638 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
18639 if test x"$switch" = xMSVC; then
18640 switch=-std:c++${alternative}
18641 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx23_${switch}_MSVC" | $as_tr_sh`
18642 else
18643 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx23_$switch" | $as_tr_sh`
18644 fi
18645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++23 features with $switch" >&5
18646 printf %s "checking whether $CXX supports C++23 features with $switch... " >&6; }
18647 if eval test \${$cachevar+y}
18648 then :
18649 printf %s "(cached) " >&6
18650 else $as_nop
18651 ac_save_CXX="$CXX"
18652 CXX="$CXX $switch"
18653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18654 /* end confdefs.h. */
18655
18656
18657 // If the compiler admits that it is not ready for C++11, why torture it?
18658 // Hopefully, this will speed up the test.
18659
18660 #ifndef __cplusplus
18661
18662 #error "This is not a C++ compiler"
18663
18664 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
18665 // only set it correctly if /Zc:__cplusplus is specified as well as a
18666 // /std:c++NN switch:
18667 //
18668 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
18669 //
18670 // The value __cplusplus ought to have is available in _MSVC_LANG since
18671 // Visual Studio 2015 Update 3:
18672 //
18673 // https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros
18674 //
18675 // This was also the first MSVC version to support C++14 so we can't use the
18676 // value of either __cplusplus or _MSVC_LANG to quickly rule out MSVC having
18677 // C++11 or C++14 support, but we can check _MSVC_LANG for C++17 and later.
18678 #elif __cplusplus < 201103L && !defined _MSC_VER
18679
18680 #error "This is not a C++11 compiler"
18681
18682 #else
18683
18684 namespace cxx11
18685 {
18686
18687 namespace test_static_assert
18688 {
18689
18690 template <typename T>
18691 struct check
18692 {
18693 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18694 };
18695
18696 }
18697
18698 namespace test_final_override
18699 {
18700
18701 struct Base
18702 {
18703 virtual ~Base() {}
18704 virtual void f() {}
18705 };
18706
18707 struct Derived : public Base
18708 {
18709 virtual ~Derived() override {}
18710 virtual void f() override {}
18711 };
18712
18713 }
18714
18715 namespace test_double_right_angle_brackets
18716 {
18717
18718 template < typename T >
18719 struct check {};
18720
18721 typedef check<void> single_type;
18722 typedef check<check<void>> double_type;
18723 typedef check<check<check<void>>> triple_type;
18724 typedef check<check<check<check<void>>>> quadruple_type;
18725
18726 }
18727
18728 namespace test_decltype
18729 {
18730
18731 int
18732 f()
18733 {
18734 int a = 1;
18735 decltype(a) b = 2;
18736 return a + b;
18737 }
18738
18739 }
18740
18741 namespace test_type_deduction
18742 {
18743
18744 template < typename T1, typename T2 >
18745 struct is_same
18746 {
18747 static const bool value = false;
18748 };
18749
18750 template < typename T >
18751 struct is_same<T, T>
18752 {
18753 static const bool value = true;
18754 };
18755
18756 template < typename T1, typename T2 >
18757 auto
18758 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18759 {
18760 return a1 + a2;
18761 }
18762
18763 int
18764 test(const int c, volatile int v)
18765 {
18766 static_assert(is_same<int, decltype(0)>::value == true, "");
18767 static_assert(is_same<int, decltype(c)>::value == false, "");
18768 static_assert(is_same<int, decltype(v)>::value == false, "");
18769 auto ac = c;
18770 auto av = v;
18771 auto sumi = ac + av + 'x';
18772 auto sumf = ac + av + 1.0;
18773 static_assert(is_same<int, decltype(ac)>::value == true, "");
18774 static_assert(is_same<int, decltype(av)>::value == true, "");
18775 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18776 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18777 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18778 return (sumf > 0.0) ? sumi : add(c, v);
18779 }
18780
18781 }
18782
18783 namespace test_noexcept
18784 {
18785
18786 int f() { return 0; }
18787 int g() noexcept { return 0; }
18788
18789 static_assert(noexcept(f()) == false, "");
18790 static_assert(noexcept(g()) == true, "");
18791
18792 }
18793
18794 namespace test_constexpr
18795 {
18796
18797 template < typename CharT >
18798 unsigned long constexpr
18799 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18800 {
18801 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18802 }
18803
18804 template < typename CharT >
18805 unsigned long constexpr
18806 strlen_c(const CharT *const s) noexcept
18807 {
18808 return strlen_c_r(s, 0UL);
18809 }
18810
18811 static_assert(strlen_c("") == 0UL, "");
18812 static_assert(strlen_c("1") == 1UL, "");
18813 static_assert(strlen_c("example") == 7UL, "");
18814 static_assert(strlen_c("another\0example") == 7UL, "");
18815
18816 }
18817
18818 namespace test_rvalue_references
18819 {
18820
18821 template < int N >
18822 struct answer
18823 {
18824 static constexpr int value = N;
18825 };
18826
18827 answer<1> f(int&) { return answer<1>(); }
18828 answer<2> f(const int&) { return answer<2>(); }
18829 answer<3> f(int&&) { return answer<3>(); }
18830
18831 void
18832 test()
18833 {
18834 int i = 0;
18835 const int c = 0;
18836 static_assert(decltype(f(i))::value == 1, "");
18837 static_assert(decltype(f(c))::value == 2, "");
18838 static_assert(decltype(f(0))::value == 3, "");
18839 }
18840
18841 }
18842
18843 namespace test_uniform_initialization
18844 {
18845
18846 struct test
18847 {
18848 static const int zero {};
18849 static const int one {1};
18850 };
18851
18852 static_assert(test::zero == 0, "");
18853 static_assert(test::one == 1, "");
18854
18855 }
18856
18857 namespace test_lambdas
18858 {
18859
18860 void
18861 test1()
18862 {
18863 auto lambda1 = [](){};
18864 auto lambda2 = lambda1;
18865 lambda1();
18866 lambda2();
18867 }
18868
18869 int
18870 test2()
18871 {
18872 auto a = [](int i, int j){ return i + j; }(1, 2);
18873 auto b = []() -> int { return '0'; }();
18874 auto c = [=](){ return a + b; }();
18875 auto d = [&](){ return c; }();
18876 auto e = [a, &b](int x) mutable {
18877 const auto identity = [](int y){ return y; };
18878 for (auto i = 0; i < a; ++i)
18879 a += b--;
18880 return x + identity(a + b);
18881 }(0);
18882 return a + b + c + d + e;
18883 }
18884
18885 int
18886 test3()
18887 {
18888 const auto nullary = [](){ return 0; };
18889 const auto unary = [](int x){ return x; };
18890 using nullary_t = decltype(nullary);
18891 using unary_t = decltype(unary);
18892 const auto higher1st = [](nullary_t f){ return f(); };
18893 const auto higher2nd = [unary](nullary_t f1){
18894 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18895 };
18896 return higher1st(nullary) + higher2nd(nullary)(unary);
18897 }
18898
18899 }
18900
18901 namespace test_variadic_templates
18902 {
18903
18904 template <int...>
18905 struct sum;
18906
18907 template <int N0, int... N1toN>
18908 struct sum<N0, N1toN...>
18909 {
18910 static constexpr auto value = N0 + sum<N1toN...>::value;
18911 };
18912
18913 template <>
18914 struct sum<>
18915 {
18916 static constexpr auto value = 0;
18917 };
18918
18919 static_assert(sum<>::value == 0, "");
18920 static_assert(sum<1>::value == 1, "");
18921 static_assert(sum<23>::value == 23, "");
18922 static_assert(sum<1, 2>::value == 3, "");
18923 static_assert(sum<5, 5, 11>::value == 21, "");
18924 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18925
18926 }
18927
18928 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18929 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18930 // because of this.
18931 namespace test_template_alias_sfinae
18932 {
18933
18934 struct foo {};
18935
18936 template<typename T>
18937 using member = typename T::member_type;
18938
18939 template<typename T>
18940 void func(...) {}
18941
18942 template<typename T>
18943 void func(member<T>*) {}
18944
18945 void test();
18946
18947 void test() { func<foo>(0); }
18948
18949 }
18950
18951 } // namespace cxx11
18952
18953 #endif // __cplusplus >= 201103L
18954
18955
18956
18957
18958 // If the compiler admits that it is not ready for C++14, why torture it?
18959 // Hopefully, this will speed up the test.
18960
18961 #ifndef __cplusplus
18962
18963 #error "This is not a C++ compiler"
18964
18965 #elif __cplusplus < 201402L && !defined _MSC_VER
18966
18967 #error "This is not a C++14 compiler"
18968
18969 #else
18970
18971 namespace cxx14
18972 {
18973
18974 namespace test_polymorphic_lambdas
18975 {
18976
18977 int
18978 test()
18979 {
18980 const auto lambda = [](auto&&... args){
18981 const auto istiny = [](auto x){
18982 return (sizeof(x) == 1UL) ? 1 : 0;
18983 };
18984 const int aretiny[] = { istiny(args)... };
18985 return aretiny[0];
18986 };
18987 return lambda(1, 1L, 1.0f, '1');
18988 }
18989
18990 }
18991
18992 namespace test_binary_literals
18993 {
18994
18995 constexpr auto ivii = 0b0000000000101010;
18996 static_assert(ivii == 42, "wrong value");
18997
18998 }
18999
19000 namespace test_generalized_constexpr
19001 {
19002
19003 template < typename CharT >
19004 constexpr unsigned long
19005 strlen_c(const CharT *const s) noexcept
19006 {
19007 auto length = 0UL;
19008 for (auto p = s; *p; ++p)
19009 ++length;
19010 return length;
19011 }
19012
19013 static_assert(strlen_c("") == 0UL, "");
19014 static_assert(strlen_c("x") == 1UL, "");
19015 static_assert(strlen_c("test") == 4UL, "");
19016 static_assert(strlen_c("another\0test") == 7UL, "");
19017
19018 }
19019
19020 namespace test_lambda_init_capture
19021 {
19022
19023 int
19024 test()
19025 {
19026 auto x = 0;
19027 const auto lambda1 = [a = x](int b){ return a + b; };
19028 const auto lambda2 = [a = lambda1(x)](){ return a; };
19029 return lambda2();
19030 }
19031
19032 }
19033
19034 namespace test_digit_separators
19035 {
19036
19037 constexpr auto ten_million = 100'000'000;
19038 static_assert(ten_million == 100000000, "");
19039
19040 }
19041
19042 namespace test_return_type_deduction
19043 {
19044
19045 auto f(int& x) { return x; }
19046 decltype(auto) g(int& x) { return x; }
19047
19048 template < typename T1, typename T2 >
19049 struct is_same
19050 {
19051 static constexpr auto value = false;
19052 };
19053
19054 template < typename T >
19055 struct is_same<T, T>
19056 {
19057 static constexpr auto value = true;
19058 };
19059
19060 int
19061 test()
19062 {
19063 auto x = 0;
19064 static_assert(is_same<int, decltype(f(x))>::value, "");
19065 static_assert(is_same<int&, decltype(g(x))>::value, "");
19066 return x;
19067 }
19068
19069 }
19070
19071 } // namespace cxx14
19072
19073 #endif // __cplusplus >= 201402L
19074
19075
19076
19077
19078 // If the compiler admits that it is not ready for C++17, why torture it?
19079 // Hopefully, this will speed up the test.
19080
19081 #ifndef __cplusplus
19082
19083 #error "This is not a C++ compiler"
19084
19085 #elif (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 201703L
19086
19087 #error "This is not a C++17 compiler"
19088
19089 #else
19090
19091 #include <initializer_list>
19092 #include <utility>
19093 #include <type_traits>
19094
19095 namespace cxx17
19096 {
19097
19098 namespace test_constexpr_lambdas
19099 {
19100
19101 constexpr int foo = [](){return 42;}();
19102
19103 }
19104
19105 namespace test::nested_namespace::definitions
19106 {
19107
19108 }
19109
19110 namespace test_fold_expression
19111 {
19112
19113 template<typename... Args>
19114 int multiply(Args... args)
19115 {
19116 return (args * ... * 1);
19117 }
19118
19119 template<typename... Args>
19120 bool all(Args... args)
19121 {
19122 return (args && ...);
19123 }
19124
19125 }
19126
19127 namespace test_extended_static_assert
19128 {
19129
19130 static_assert (true);
19131
19132 }
19133
19134 namespace test_auto_brace_init_list
19135 {
19136
19137 auto foo = {5};
19138 auto bar {5};
19139
19140 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
19141 static_assert(std::is_same<int, decltype(bar)>::value);
19142 }
19143
19144 namespace test_typename_in_template_template_parameter
19145 {
19146
19147 template<template<typename> typename X> struct D;
19148
19149 }
19150
19151 namespace test_fallthrough_nodiscard_maybe_unused_attributes
19152 {
19153
19154 int f1()
19155 {
19156 return 42;
19157 }
19158
19159 [[nodiscard]] int f2()
19160 {
19161 [[maybe_unused]] auto unused = f1();
19162
19163 switch (f1())
19164 {
19165 case 17:
19166 f1();
19167 [[fallthrough]];
19168 case 42:
19169 f1();
19170 }
19171 return f1();
19172 }
19173
19174 }
19175
19176 namespace test_extended_aggregate_initialization
19177 {
19178
19179 struct base1
19180 {
19181 int b1, b2 = 42;
19182 };
19183
19184 struct base2
19185 {
19186 base2() {
19187 b3 = 42;
19188 }
19189 int b3;
19190 };
19191
19192 struct derived : base1, base2
19193 {
19194 int d;
19195 };
19196
19197 derived d1 {{1, 2}, {}, 4}; // full initialization
19198 derived d2 {{}, {}, 4}; // value-initialized bases
19199
19200 }
19201
19202 namespace test_general_range_based_for_loop
19203 {
19204
19205 struct iter
19206 {
19207 int i;
19208
19209 int& operator* ()
19210 {
19211 return i;
19212 }
19213
19214 const int& operator* () const
19215 {
19216 return i;
19217 }
19218
19219 iter& operator++()
19220 {
19221 ++i;
19222 return *this;
19223 }
19224 };
19225
19226 struct sentinel
19227 {
19228 int i;
19229 };
19230
19231 bool operator== (const iter& i, const sentinel& s)
19232 {
19233 return i.i == s.i;
19234 }
19235
19236 bool operator!= (const iter& i, const sentinel& s)
19237 {
19238 return !(i == s);
19239 }
19240
19241 struct range
19242 {
19243 iter begin() const
19244 {
19245 return {0};
19246 }
19247
19248 sentinel end() const
19249 {
19250 return {5};
19251 }
19252 };
19253
19254 void f()
19255 {
19256 range r {};
19257
19258 for (auto i : r)
19259 {
19260 [[maybe_unused]] auto v = i;
19261 }
19262 }
19263
19264 }
19265
19266 namespace test_lambda_capture_asterisk_this_by_value
19267 {
19268
19269 struct t
19270 {
19271 int i;
19272 int foo()
19273 {
19274 return [*this]()
19275 {
19276 return i;
19277 }();
19278 }
19279 };
19280
19281 }
19282
19283 namespace test_enum_class_construction
19284 {
19285
19286 enum class byte : unsigned char
19287 {};
19288
19289 byte foo {42};
19290
19291 }
19292
19293 namespace test_constexpr_if
19294 {
19295
19296 template <bool cond>
19297 int f ()
19298 {
19299 if constexpr(cond)
19300 {
19301 return 13;
19302 }
19303 else
19304 {
19305 return 42;
19306 }
19307 }
19308
19309 }
19310
19311 namespace test_selection_statement_with_initializer
19312 {
19313
19314 int f()
19315 {
19316 return 13;
19317 }
19318
19319 int f2()
19320 {
19321 if (auto i = f(); i > 0)
19322 {
19323 return 3;
19324 }
19325
19326 switch (auto i = f(); i + 4)
19327 {
19328 case 17:
19329 return 2;
19330
19331 default:
19332 return 1;
19333 }
19334 }
19335
19336 }
19337
19338 namespace test_template_argument_deduction_for_class_templates
19339 {
19340
19341 template <typename T1, typename T2>
19342 struct pair
19343 {
19344 pair (T1 p1, T2 p2)
19345 : m1 {p1},
19346 m2 {p2}
19347 {}
19348
19349 T1 m1;
19350 T2 m2;
19351 };
19352
19353 void f()
19354 {
19355 [[maybe_unused]] auto p = pair{13, 42u};
19356 }
19357
19358 }
19359
19360 namespace test_non_type_auto_template_parameters
19361 {
19362
19363 template <auto n>
19364 struct B
19365 {};
19366
19367 B<5> b1;
19368 B<'a'> b2;
19369
19370 }
19371
19372 namespace test_structured_bindings
19373 {
19374
19375 int arr[2] = { 1, 2 };
19376 std::pair<int, int> pr = { 1, 2 };
19377
19378 auto f1() -> int(&)[2]
19379 {
19380 return arr;
19381 }
19382
19383 auto f2() -> std::pair<int, int>&
19384 {
19385 return pr;
19386 }
19387
19388 struct S
19389 {
19390 int x1 : 2;
19391 volatile double y1;
19392 };
19393
19394 S f3()
19395 {
19396 return {};
19397 }
19398
19399 auto [ x1, y1 ] = f1();
19400 auto& [ xr1, yr1 ] = f1();
19401 auto [ x2, y2 ] = f2();
19402 auto& [ xr2, yr2 ] = f2();
19403 const auto [ x3, y3 ] = f3();
19404
19405 }
19406
19407 namespace test_exception_spec_type_system
19408 {
19409
19410 struct Good {};
19411 struct Bad {};
19412
19413 void g1() noexcept;
19414 void g2();
19415
19416 template<typename T>
19417 Bad
19418 f(T*, T*);
19419
19420 template<typename T1, typename T2>
19421 Good
19422 f(T1*, T2*);
19423
19424 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
19425
19426 }
19427
19428 namespace test_inline_variables
19429 {
19430
19431 template<class T> void f(T)
19432 {}
19433
19434 template<class T> inline T g(T)
19435 {
19436 return T{};
19437 }
19438
19439 template<> inline void f<>(int)
19440 {}
19441
19442 template<> int g<>(int)
19443 {
19444 return 5;
19445 }
19446
19447 }
19448
19449 } // namespace cxx17
19450
19451 #endif // (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 201703L
19452
19453
19454
19455
19456 #ifndef __cplusplus
19457
19458 #error "This is not a C++ compiler"
19459
19460 #elif (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 202002L
19461
19462 #error "This is not a C++20 compiler"
19463
19464 #else
19465
19466 #include <version>
19467
19468 namespace cxx20
19469 {
19470
19471 // As C++20 supports feature test macros in the standard, there is no
19472 // immediate need to actually test for feature availability on the
19473 // Autoconf side.
19474
19475 } // namespace cxx20
19476
19477 #endif // (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 202002L
19478
19479
19480
19481
19482 #ifndef __cplusplus
19483
19484 #error "This is not a C++ compiler"
19485
19486 #elif (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 202302L
19487
19488 #error "This is not a C++23 compiler"
19489
19490 #else
19491
19492 #include <version>
19493
19494 namespace cxx23
19495 {
19496
19497 // As C++23 supports feature test macros in the standard, there is no
19498 // immediate need to actually test for feature availability on the
19499 // Autoconf side.
19500
19501 } // namespace cxx23
19502
19503 #endif // (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 202302L
19504
19505
19506
19507 _ACEOF
19508 if ac_fn_cxx_try_compile "$LINENO"
19509 then :
19510 eval $cachevar=yes
19511 else $as_nop
19512 eval $cachevar=no
19513 fi
19514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19515 CXX="$ac_save_CXX"
19516 fi
19517 eval ac_res=\$$cachevar
19518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19519 printf "%s\n" "$ac_res" >&6; }
19520 if eval test x\$$cachevar = xyes; then
19521 CXX="$CXX $switch"
19522 if test -n "$CXXCPP" ; then
19523 CXXCPP="$CXXCPP $switch"
19524 fi
19525 ac_success=yes
19526 break
19527 fi
19528 done
19529 if test x$ac_success = xyes; then
19530 break
19531 fi
19532 done
19533 fi
19534 ac_ext=c
19535 ac_cpp='$CPP $CPPFLAGS'
19536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19539
19540 if test x$ax_cxx_compile_cxx23_required = xtrue; then
19541 if test x$ac_success = xno; then
19542 as_fn_error $? "*** A compiler with support for C++23 language features is required." "$LINENO" 5
19543 fi
19544 fi
19545 if test x$ac_success = xno; then
19546 HAVE_CXX23=0
19547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++23 support was found" >&5
19548 printf "%s\n" "$as_me: No compiler with C++23 support was found" >&6;}
19549 else
19550 HAVE_CXX23=1
19551
19552 printf "%s\n" "#define HAVE_CXX23 1" >>confdefs.h
19553
19554 fi
19555
19556
19557 if test "x$HAVE_CXX23" != "x1"
19558 then :
19559
19560 ax_cxx_compile_alternatives="20" ax_cxx_compile_cxx20_required=false
19561 ac_ext=cpp
19562 ac_cpp='$CXXCPP $CPPFLAGS'
19563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19566 ac_success=no
19567
19568
19569
19570
19571
19572 if test x$ac_success = xno; then
19573 for alternative in ${ax_cxx_compile_alternatives}; do
19574 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
19575 if test x"$switch" = xMSVC; then
19576 switch=-std:c++${alternative}
19577 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx20_${switch}_MSVC" | $as_tr_sh`
19578 else
19579 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx20_$switch" | $as_tr_sh`
19580 fi
19581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features with $switch" >&5
19582 printf %s "checking whether $CXX supports C++20 features with $switch... " >&6; }
19583 if eval test \${$cachevar+y}
19584 then :
19585 printf %s "(cached) " >&6
19586 else $as_nop
19587 ac_save_CXX="$CXX"
19588 CXX="$CXX $switch"
19589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19590 /* end confdefs.h. */
19591
19592
19593 // If the compiler admits that it is not ready for C++11, why torture it?
19594 // Hopefully, this will speed up the test.
19595
19596 #ifndef __cplusplus
19597
19598 #error "This is not a C++ compiler"
19599
19600 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
19601 // only set it correctly if /Zc:__cplusplus is specified as well as a
19602 // /std:c++NN switch:
19603 //
19604 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
19605 //
19606 // The value __cplusplus ought to have is available in _MSVC_LANG since
19607 // Visual Studio 2015 Update 3:
19608 //
19609 // https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros
19610 //
19611 // This was also the first MSVC version to support C++14 so we can't use the
19612 // value of either __cplusplus or _MSVC_LANG to quickly rule out MSVC having
19613 // C++11 or C++14 support, but we can check _MSVC_LANG for C++17 and later.
19614 #elif __cplusplus < 201103L && !defined _MSC_VER
19615
19616 #error "This is not a C++11 compiler"
19617
19618 #else
19619
19620 namespace cxx11
19621 {
19622
19623 namespace test_static_assert
19624 {
19625
19626 template <typename T>
19627 struct check
19628 {
19629 static_assert(sizeof(int) <= sizeof(T), "not big enough");
19630 };
19631
19632 }
19633
19634 namespace test_final_override
19635 {
19636
19637 struct Base
19638 {
19639 virtual ~Base() {}
19640 virtual void f() {}
19641 };
19642
19643 struct Derived : public Base
19644 {
19645 virtual ~Derived() override {}
19646 virtual void f() override {}
19647 };
19648
19649 }
19650
19651 namespace test_double_right_angle_brackets
19652 {
19653
19654 template < typename T >
19655 struct check {};
19656
19657 typedef check<void> single_type;
19658 typedef check<check<void>> double_type;
19659 typedef check<check<check<void>>> triple_type;
19660 typedef check<check<check<check<void>>>> quadruple_type;
19661
19662 }
19663
19664 namespace test_decltype
19665 {
19666
19667 int
19668 f()
19669 {
19670 int a = 1;
19671 decltype(a) b = 2;
19672 return a + b;
19673 }
19674
19675 }
19676
19677 namespace test_type_deduction
19678 {
19679
19680 template < typename T1, typename T2 >
19681 struct is_same
19682 {
19683 static const bool value = false;
19684 };
19685
19686 template < typename T >
19687 struct is_same<T, T>
19688 {
19689 static const bool value = true;
19690 };
19691
19692 template < typename T1, typename T2 >
19693 auto
19694 add(T1 a1, T2 a2) -> decltype(a1 + a2)
19695 {
19696 return a1 + a2;
19697 }
19698
19699 int
19700 test(const int c, volatile int v)
19701 {
19702 static_assert(is_same<int, decltype(0)>::value == true, "");
19703 static_assert(is_same<int, decltype(c)>::value == false, "");
19704 static_assert(is_same<int, decltype(v)>::value == false, "");
19705 auto ac = c;
19706 auto av = v;
19707 auto sumi = ac + av + 'x';
19708 auto sumf = ac + av + 1.0;
19709 static_assert(is_same<int, decltype(ac)>::value == true, "");
19710 static_assert(is_same<int, decltype(av)>::value == true, "");
19711 static_assert(is_same<int, decltype(sumi)>::value == true, "");
19712 static_assert(is_same<int, decltype(sumf)>::value == false, "");
19713 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
19714 return (sumf > 0.0) ? sumi : add(c, v);
19715 }
19716
19717 }
19718
19719 namespace test_noexcept
19720 {
19721
19722 int f() { return 0; }
19723 int g() noexcept { return 0; }
19724
19725 static_assert(noexcept(f()) == false, "");
19726 static_assert(noexcept(g()) == true, "");
19727
19728 }
19729
19730 namespace test_constexpr
19731 {
19732
19733 template < typename CharT >
19734 unsigned long constexpr
19735 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
19736 {
19737 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
19738 }
19739
19740 template < typename CharT >
19741 unsigned long constexpr
19742 strlen_c(const CharT *const s) noexcept
19743 {
19744 return strlen_c_r(s, 0UL);
19745 }
19746
19747 static_assert(strlen_c("") == 0UL, "");
19748 static_assert(strlen_c("1") == 1UL, "");
19749 static_assert(strlen_c("example") == 7UL, "");
19750 static_assert(strlen_c("another\0example") == 7UL, "");
19751
19752 }
19753
19754 namespace test_rvalue_references
19755 {
19756
19757 template < int N >
19758 struct answer
19759 {
19760 static constexpr int value = N;
19761 };
19762
19763 answer<1> f(int&) { return answer<1>(); }
19764 answer<2> f(const int&) { return answer<2>(); }
19765 answer<3> f(int&&) { return answer<3>(); }
19766
19767 void
19768 test()
19769 {
19770 int i = 0;
19771 const int c = 0;
19772 static_assert(decltype(f(i))::value == 1, "");
19773 static_assert(decltype(f(c))::value == 2, "");
19774 static_assert(decltype(f(0))::value == 3, "");
19775 }
19776
19777 }
19778
19779 namespace test_uniform_initialization
19780 {
19781
19782 struct test
19783 {
19784 static const int zero {};
19785 static const int one {1};
19786 };
19787
19788 static_assert(test::zero == 0, "");
19789 static_assert(test::one == 1, "");
19790
19791 }
19792
19793 namespace test_lambdas
19794 {
19795
19796 void
19797 test1()
19798 {
19799 auto lambda1 = [](){};
19800 auto lambda2 = lambda1;
19801 lambda1();
19802 lambda2();
19803 }
19804
19805 int
19806 test2()
19807 {
19808 auto a = [](int i, int j){ return i + j; }(1, 2);
19809 auto b = []() -> int { return '0'; }();
19810 auto c = [=](){ return a + b; }();
19811 auto d = [&](){ return c; }();
19812 auto e = [a, &b](int x) mutable {
19813 const auto identity = [](int y){ return y; };
19814 for (auto i = 0; i < a; ++i)
19815 a += b--;
19816 return x + identity(a + b);
19817 }(0);
19818 return a + b + c + d + e;
19819 }
19820
19821 int
19822 test3()
19823 {
19824 const auto nullary = [](){ return 0; };
19825 const auto unary = [](int x){ return x; };
19826 using nullary_t = decltype(nullary);
19827 using unary_t = decltype(unary);
19828 const auto higher1st = [](nullary_t f){ return f(); };
19829 const auto higher2nd = [unary](nullary_t f1){
19830 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
19831 };
19832 return higher1st(nullary) + higher2nd(nullary)(unary);
19833 }
19834
19835 }
19836
19837 namespace test_variadic_templates
19838 {
19839
19840 template <int...>
19841 struct sum;
19842
19843 template <int N0, int... N1toN>
19844 struct sum<N0, N1toN...>
19845 {
19846 static constexpr auto value = N0 + sum<N1toN...>::value;
19847 };
19848
19849 template <>
19850 struct sum<>
19851 {
19852 static constexpr auto value = 0;
19853 };
19854
19855 static_assert(sum<>::value == 0, "");
19856 static_assert(sum<1>::value == 1, "");
19857 static_assert(sum<23>::value == 23, "");
19858 static_assert(sum<1, 2>::value == 3, "");
19859 static_assert(sum<5, 5, 11>::value == 21, "");
19860 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
19861
19862 }
19863
19864 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
19865 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
19866 // because of this.
19867 namespace test_template_alias_sfinae
19868 {
19869
19870 struct foo {};
19871
19872 template<typename T>
19873 using member = typename T::member_type;
19874
19875 template<typename T>
19876 void func(...) {}
19877
19878 template<typename T>
19879 void func(member<T>*) {}
19880
19881 void test();
19882
19883 void test() { func<foo>(0); }
19884
19885 }
19886
19887 } // namespace cxx11
19888
19889 #endif // __cplusplus >= 201103L
19890
19891
19892
19893
19894 // If the compiler admits that it is not ready for C++14, why torture it?
19895 // Hopefully, this will speed up the test.
19896
19897 #ifndef __cplusplus
19898
19899 #error "This is not a C++ compiler"
19900
19901 #elif __cplusplus < 201402L && !defined _MSC_VER
19902
19903 #error "This is not a C++14 compiler"
19904
19905 #else
19906
19907 namespace cxx14
19908 {
19909
19910 namespace test_polymorphic_lambdas
19911 {
19912
19913 int
19914 test()
19915 {
19916 const auto lambda = [](auto&&... args){
19917 const auto istiny = [](auto x){
19918 return (sizeof(x) == 1UL) ? 1 : 0;
19919 };
19920 const int aretiny[] = { istiny(args)... };
19921 return aretiny[0];
19922 };
19923 return lambda(1, 1L, 1.0f, '1');
19924 }
19925
19926 }
19927
19928 namespace test_binary_literals
19929 {
19930
19931 constexpr auto ivii = 0b0000000000101010;
19932 static_assert(ivii == 42, "wrong value");
19933
19934 }
19935
19936 namespace test_generalized_constexpr
19937 {
19938
19939 template < typename CharT >
19940 constexpr unsigned long
19941 strlen_c(const CharT *const s) noexcept
19942 {
19943 auto length = 0UL;
19944 for (auto p = s; *p; ++p)
19945 ++length;
19946 return length;
19947 }
19948
19949 static_assert(strlen_c("") == 0UL, "");
19950 static_assert(strlen_c("x") == 1UL, "");
19951 static_assert(strlen_c("test") == 4UL, "");
19952 static_assert(strlen_c("another\0test") == 7UL, "");
19953
19954 }
19955
19956 namespace test_lambda_init_capture
19957 {
19958
19959 int
19960 test()
19961 {
19962 auto x = 0;
19963 const auto lambda1 = [a = x](int b){ return a + b; };
19964 const auto lambda2 = [a = lambda1(x)](){ return a; };
19965 return lambda2();
19966 }
19967
19968 }
19969
19970 namespace test_digit_separators
19971 {
19972
19973 constexpr auto ten_million = 100'000'000;
19974 static_assert(ten_million == 100000000, "");
19975
19976 }
19977
19978 namespace test_return_type_deduction
19979 {
19980
19981 auto f(int& x) { return x; }
19982 decltype(auto) g(int& x) { return x; }
19983
19984 template < typename T1, typename T2 >
19985 struct is_same
19986 {
19987 static constexpr auto value = false;
19988 };
19989
19990 template < typename T >
19991 struct is_same<T, T>
19992 {
19993 static constexpr auto value = true;
19994 };
19995
19996 int
19997 test()
19998 {
19999 auto x = 0;
20000 static_assert(is_same<int, decltype(f(x))>::value, "");
20001 static_assert(is_same<int&, decltype(g(x))>::value, "");
20002 return x;
20003 }
20004
20005 }
20006
20007 } // namespace cxx14
20008
20009 #endif // __cplusplus >= 201402L
20010
20011
20012
20013
20014 // If the compiler admits that it is not ready for C++17, why torture it?
20015 // Hopefully, this will speed up the test.
20016
20017 #ifndef __cplusplus
20018
20019 #error "This is not a C++ compiler"
20020
20021 #elif (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 201703L
20022
20023 #error "This is not a C++17 compiler"
20024
20025 #else
20026
20027 #include <initializer_list>
20028 #include <utility>
20029 #include <type_traits>
20030
20031 namespace cxx17
20032 {
20033
20034 namespace test_constexpr_lambdas
20035 {
20036
20037 constexpr int foo = [](){return 42;}();
20038
20039 }
20040
20041 namespace test::nested_namespace::definitions
20042 {
20043
20044 }
20045
20046 namespace test_fold_expression
20047 {
20048
20049 template<typename... Args>
20050 int multiply(Args... args)
20051 {
20052 return (args * ... * 1);
20053 }
20054
20055 template<typename... Args>
20056 bool all(Args... args)
20057 {
20058 return (args && ...);
20059 }
20060
20061 }
20062
20063 namespace test_extended_static_assert
20064 {
20065
20066 static_assert (true);
20067
20068 }
20069
20070 namespace test_auto_brace_init_list
20071 {
20072
20073 auto foo = {5};
20074 auto bar {5};
20075
20076 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
20077 static_assert(std::is_same<int, decltype(bar)>::value);
20078 }
20079
20080 namespace test_typename_in_template_template_parameter
20081 {
20082
20083 template<template<typename> typename X> struct D;
20084
20085 }
20086
20087 namespace test_fallthrough_nodiscard_maybe_unused_attributes
20088 {
20089
20090 int f1()
20091 {
20092 return 42;
20093 }
20094
20095 [[nodiscard]] int f2()
20096 {
20097 [[maybe_unused]] auto unused = f1();
20098
20099 switch (f1())
20100 {
20101 case 17:
20102 f1();
20103 [[fallthrough]];
20104 case 42:
20105 f1();
20106 }
20107 return f1();
20108 }
20109
20110 }
20111
20112 namespace test_extended_aggregate_initialization
20113 {
20114
20115 struct base1
20116 {
20117 int b1, b2 = 42;
20118 };
20119
20120 struct base2
20121 {
20122 base2() {
20123 b3 = 42;
20124 }
20125 int b3;
20126 };
20127
20128 struct derived : base1, base2
20129 {
20130 int d;
20131 };
20132
20133 derived d1 {{1, 2}, {}, 4}; // full initialization
20134 derived d2 {{}, {}, 4}; // value-initialized bases
20135
20136 }
20137
20138 namespace test_general_range_based_for_loop
20139 {
20140
20141 struct iter
20142 {
20143 int i;
20144
20145 int& operator* ()
20146 {
20147 return i;
20148 }
20149
20150 const int& operator* () const
20151 {
20152 return i;
20153 }
20154
20155 iter& operator++()
20156 {
20157 ++i;
20158 return *this;
20159 }
20160 };
20161
20162 struct sentinel
20163 {
20164 int i;
20165 };
20166
20167 bool operator== (const iter& i, const sentinel& s)
20168 {
20169 return i.i == s.i;
20170 }
20171
20172 bool operator!= (const iter& i, const sentinel& s)
20173 {
20174 return !(i == s);
20175 }
20176
20177 struct range
20178 {
20179 iter begin() const
20180 {
20181 return {0};
20182 }
20183
20184 sentinel end() const
20185 {
20186 return {5};
20187 }
20188 };
20189
20190 void f()
20191 {
20192 range r {};
20193
20194 for (auto i : r)
20195 {
20196 [[maybe_unused]] auto v = i;
20197 }
20198 }
20199
20200 }
20201
20202 namespace test_lambda_capture_asterisk_this_by_value
20203 {
20204
20205 struct t
20206 {
20207 int i;
20208 int foo()
20209 {
20210 return [*this]()
20211 {
20212 return i;
20213 }();
20214 }
20215 };
20216
20217 }
20218
20219 namespace test_enum_class_construction
20220 {
20221
20222 enum class byte : unsigned char
20223 {};
20224
20225 byte foo {42};
20226
20227 }
20228
20229 namespace test_constexpr_if
20230 {
20231
20232 template <bool cond>
20233 int f ()
20234 {
20235 if constexpr(cond)
20236 {
20237 return 13;
20238 }
20239 else
20240 {
20241 return 42;
20242 }
20243 }
20244
20245 }
20246
20247 namespace test_selection_statement_with_initializer
20248 {
20249
20250 int f()
20251 {
20252 return 13;
20253 }
20254
20255 int f2()
20256 {
20257 if (auto i = f(); i > 0)
20258 {
20259 return 3;
20260 }
20261
20262 switch (auto i = f(); i + 4)
20263 {
20264 case 17:
20265 return 2;
20266
20267 default:
20268 return 1;
20269 }
20270 }
20271
20272 }
20273
20274 namespace test_template_argument_deduction_for_class_templates
20275 {
20276
20277 template <typename T1, typename T2>
20278 struct pair
20279 {
20280 pair (T1 p1, T2 p2)
20281 : m1 {p1},
20282 m2 {p2}
20283 {}
20284
20285 T1 m1;
20286 T2 m2;
20287 };
20288
20289 void f()
20290 {
20291 [[maybe_unused]] auto p = pair{13, 42u};
20292 }
20293
20294 }
20295
20296 namespace test_non_type_auto_template_parameters
20297 {
20298
20299 template <auto n>
20300 struct B
20301 {};
20302
20303 B<5> b1;
20304 B<'a'> b2;
20305
20306 }
20307
20308 namespace test_structured_bindings
20309 {
20310
20311 int arr[2] = { 1, 2 };
20312 std::pair<int, int> pr = { 1, 2 };
20313
20314 auto f1() -> int(&)[2]
20315 {
20316 return arr;
20317 }
20318
20319 auto f2() -> std::pair<int, int>&
20320 {
20321 return pr;
20322 }
20323
20324 struct S
20325 {
20326 int x1 : 2;
20327 volatile double y1;
20328 };
20329
20330 S f3()
20331 {
20332 return {};
20333 }
20334
20335 auto [ x1, y1 ] = f1();
20336 auto& [ xr1, yr1 ] = f1();
20337 auto [ x2, y2 ] = f2();
20338 auto& [ xr2, yr2 ] = f2();
20339 const auto [ x3, y3 ] = f3();
20340
20341 }
20342
20343 namespace test_exception_spec_type_system
20344 {
20345
20346 struct Good {};
20347 struct Bad {};
20348
20349 void g1() noexcept;
20350 void g2();
20351
20352 template<typename T>
20353 Bad
20354 f(T*, T*);
20355
20356 template<typename T1, typename T2>
20357 Good
20358 f(T1*, T2*);
20359
20360 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
20361
20362 }
20363
20364 namespace test_inline_variables
20365 {
20366
20367 template<class T> void f(T)
20368 {}
20369
20370 template<class T> inline T g(T)
20371 {
20372 return T{};
20373 }
20374
20375 template<> inline void f<>(int)
20376 {}
20377
20378 template<> int g<>(int)
20379 {
20380 return 5;
20381 }
20382
20383 }
20384
20385 } // namespace cxx17
20386
20387 #endif // (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 201703L
20388
20389
20390
20391
20392 #ifndef __cplusplus
20393
20394 #error "This is not a C++ compiler"
20395
20396 #elif (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 202002L
20397
20398 #error "This is not a C++20 compiler"
20399
20400 #else
20401
20402 #include <version>
20403
20404 namespace cxx20
20405 {
20406
20407 // As C++20 supports feature test macros in the standard, there is no
20408 // immediate need to actually test for feature availability on the
20409 // Autoconf side.
20410
20411 } // namespace cxx20
20412
20413 #endif // (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 202002L
20414
20415
20416
20417 _ACEOF
20418 if ac_fn_cxx_try_compile "$LINENO"
20419 then :
20420 eval $cachevar=yes
20421 else $as_nop
20422 eval $cachevar=no
20423 fi
20424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20425 CXX="$ac_save_CXX"
20426 fi
20427 eval ac_res=\$$cachevar
20428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20429 printf "%s\n" "$ac_res" >&6; }
20430 if eval test x\$$cachevar = xyes; then
20431 CXX="$CXX $switch"
20432 if test -n "$CXXCPP" ; then
20433 CXXCPP="$CXXCPP $switch"
20434 fi
20435 ac_success=yes
20436 break
20437 fi
20438 done
20439 if test x$ac_success = xyes; then
20440 break
20441 fi
20442 done
20443 fi
20444 ac_ext=c
20445 ac_cpp='$CPP $CPPFLAGS'
20446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20449
20450 if test x$ax_cxx_compile_cxx20_required = xtrue; then
20451 if test x$ac_success = xno; then
20452 as_fn_error $? "*** A compiler with support for C++20 language features is required." "$LINENO" 5
20453 fi
20454 fi
20455 if test x$ac_success = xno; then
20456 HAVE_CXX20=0
20457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++20 support was found" >&5
20458 printf "%s\n" "$as_me: No compiler with C++20 support was found" >&6;}
20459 else
20460 HAVE_CXX20=1
20461
20462 printf "%s\n" "#define HAVE_CXX20 1" >>confdefs.h
20463
20464 fi
20465
20466
20467 if test "x$HAVE_CXX20" != "x1"
20468 then :
20469
20470 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true
20471 ac_ext=cpp
20472 ac_cpp='$CXXCPP $CPPFLAGS'
20473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20476 ac_success=no
20477
20478
20479
20480
20481
20482 if test x$ac_success = xno; then
20483 for alternative in ${ax_cxx_compile_alternatives}; do
20484 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
20485 if test x"$switch" = xMSVC; then
20486 switch=-std:c++${alternative}
20487 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | $as_tr_sh`
20488 else
20489 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
20490 fi
20491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
20492 printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
20493 if eval test \${$cachevar+y}
20494 then :
20495 printf %s "(cached) " >&6
20496 else $as_nop
20497 ac_save_CXX="$CXX"
20498 CXX="$CXX $switch"
20499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20500 /* end confdefs.h. */
20501
20502
20503 // If the compiler admits that it is not ready for C++11, why torture it?
20504 // Hopefully, this will speed up the test.
20505
20506 #ifndef __cplusplus
20507
20508 #error "This is not a C++ compiler"
20509
20510 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
20511 // only set it correctly if /Zc:__cplusplus is specified as well as a
20512 // /std:c++NN switch:
20513 //
20514 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
20515 //
20516 // The value __cplusplus ought to have is available in _MSVC_LANG since
20517 // Visual Studio 2015 Update 3:
20518 //
20519 // https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros
20520 //
20521 // This was also the first MSVC version to support C++14 so we can't use the
20522 // value of either __cplusplus or _MSVC_LANG to quickly rule out MSVC having
20523 // C++11 or C++14 support, but we can check _MSVC_LANG for C++17 and later.
20524 #elif __cplusplus < 201103L && !defined _MSC_VER
20525
20526 #error "This is not a C++11 compiler"
20527
20528 #else
20529
20530 namespace cxx11
20531 {
20532
20533 namespace test_static_assert
20534 {
20535
20536 template <typename T>
20537 struct check
20538 {
20539 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20540 };
20541
20542 }
20543
20544 namespace test_final_override
20545 {
20546
20547 struct Base
20548 {
20549 virtual ~Base() {}
20550 virtual void f() {}
20551 };
20552
20553 struct Derived : public Base
20554 {
20555 virtual ~Derived() override {}
20556 virtual void f() override {}
20557 };
20558
20559 }
20560
20561 namespace test_double_right_angle_brackets
20562 {
20563
20564 template < typename T >
20565 struct check {};
20566
20567 typedef check<void> single_type;
20568 typedef check<check<void>> double_type;
20569 typedef check<check<check<void>>> triple_type;
20570 typedef check<check<check<check<void>>>> quadruple_type;
20571
20572 }
20573
20574 namespace test_decltype
20575 {
20576
20577 int
20578 f()
20579 {
20580 int a = 1;
20581 decltype(a) b = 2;
20582 return a + b;
20583 }
20584
20585 }
20586
20587 namespace test_type_deduction
20588 {
20589
20590 template < typename T1, typename T2 >
20591 struct is_same
20592 {
20593 static const bool value = false;
20594 };
20595
20596 template < typename T >
20597 struct is_same<T, T>
20598 {
20599 static const bool value = true;
20600 };
20601
20602 template < typename T1, typename T2 >
20603 auto
20604 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20605 {
20606 return a1 + a2;
20607 }
20608
20609 int
20610 test(const int c, volatile int v)
20611 {
20612 static_assert(is_same<int, decltype(0)>::value == true, "");
20613 static_assert(is_same<int, decltype(c)>::value == false, "");
20614 static_assert(is_same<int, decltype(v)>::value == false, "");
20615 auto ac = c;
20616 auto av = v;
20617 auto sumi = ac + av + 'x';
20618 auto sumf = ac + av + 1.0;
20619 static_assert(is_same<int, decltype(ac)>::value == true, "");
20620 static_assert(is_same<int, decltype(av)>::value == true, "");
20621 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20622 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20623 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20624 return (sumf > 0.0) ? sumi : add(c, v);
20625 }
20626
20627 }
20628
20629 namespace test_noexcept
20630 {
20631
20632 int f() { return 0; }
20633 int g() noexcept { return 0; }
20634
20635 static_assert(noexcept(f()) == false, "");
20636 static_assert(noexcept(g()) == true, "");
20637
20638 }
20639
20640 namespace test_constexpr
20641 {
20642
20643 template < typename CharT >
20644 unsigned long constexpr
20645 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20646 {
20647 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20648 }
20649
20650 template < typename CharT >
20651 unsigned long constexpr
20652 strlen_c(const CharT *const s) noexcept
20653 {
20654 return strlen_c_r(s, 0UL);
20655 }
20656
20657 static_assert(strlen_c("") == 0UL, "");
20658 static_assert(strlen_c("1") == 1UL, "");
20659 static_assert(strlen_c("example") == 7UL, "");
20660 static_assert(strlen_c("another\0example") == 7UL, "");
20661
20662 }
20663
20664 namespace test_rvalue_references
20665 {
20666
20667 template < int N >
20668 struct answer
20669 {
20670 static constexpr int value = N;
20671 };
20672
20673 answer<1> f(int&) { return answer<1>(); }
20674 answer<2> f(const int&) { return answer<2>(); }
20675 answer<3> f(int&&) { return answer<3>(); }
20676
20677 void
20678 test()
20679 {
20680 int i = 0;
20681 const int c = 0;
20682 static_assert(decltype(f(i))::value == 1, "");
20683 static_assert(decltype(f(c))::value == 2, "");
20684 static_assert(decltype(f(0))::value == 3, "");
20685 }
20686
20687 }
20688
20689 namespace test_uniform_initialization
20690 {
20691
20692 struct test
20693 {
20694 static const int zero {};
20695 static const int one {1};
20696 };
20697
20698 static_assert(test::zero == 0, "");
20699 static_assert(test::one == 1, "");
20700
20701 }
20702
20703 namespace test_lambdas
20704 {
20705
20706 void
20707 test1()
20708 {
20709 auto lambda1 = [](){};
20710 auto lambda2 = lambda1;
20711 lambda1();
20712 lambda2();
20713 }
20714
20715 int
20716 test2()
20717 {
20718 auto a = [](int i, int j){ return i + j; }(1, 2);
20719 auto b = []() -> int { return '0'; }();
20720 auto c = [=](){ return a + b; }();
20721 auto d = [&](){ return c; }();
20722 auto e = [a, &b](int x) mutable {
20723 const auto identity = [](int y){ return y; };
20724 for (auto i = 0; i < a; ++i)
20725 a += b--;
20726 return x + identity(a + b);
20727 }(0);
20728 return a + b + c + d + e;
20729 }
20730
20731 int
20732 test3()
20733 {
20734 const auto nullary = [](){ return 0; };
20735 const auto unary = [](int x){ return x; };
20736 using nullary_t = decltype(nullary);
20737 using unary_t = decltype(unary);
20738 const auto higher1st = [](nullary_t f){ return f(); };
20739 const auto higher2nd = [unary](nullary_t f1){
20740 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20741 };
20742 return higher1st(nullary) + higher2nd(nullary)(unary);
20743 }
20744
20745 }
20746
20747 namespace test_variadic_templates
20748 {
20749
20750 template <int...>
20751 struct sum;
20752
20753 template <int N0, int... N1toN>
20754 struct sum<N0, N1toN...>
20755 {
20756 static constexpr auto value = N0 + sum<N1toN...>::value;
20757 };
20758
20759 template <>
20760 struct sum<>
20761 {
20762 static constexpr auto value = 0;
20763 };
20764
20765 static_assert(sum<>::value == 0, "");
20766 static_assert(sum<1>::value == 1, "");
20767 static_assert(sum<23>::value == 23, "");
20768 static_assert(sum<1, 2>::value == 3, "");
20769 static_assert(sum<5, 5, 11>::value == 21, "");
20770 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20771
20772 }
20773
20774 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20775 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20776 // because of this.
20777 namespace test_template_alias_sfinae
20778 {
20779
20780 struct foo {};
20781
20782 template<typename T>
20783 using member = typename T::member_type;
20784
20785 template<typename T>
20786 void func(...) {}
20787
20788 template<typename T>
20789 void func(member<T>*) {}
20790
20791 void test();
20792
20793 void test() { func<foo>(0); }
20794
20795 }
20796
20797 } // namespace cxx11
20798
20799 #endif // __cplusplus >= 201103L
20800
20801
20802
20803
20804 // If the compiler admits that it is not ready for C++14, why torture it?
20805 // Hopefully, this will speed up the test.
20806
20807 #ifndef __cplusplus
20808
20809 #error "This is not a C++ compiler"
20810
20811 #elif __cplusplus < 201402L && !defined _MSC_VER
20812
20813 #error "This is not a C++14 compiler"
20814
20815 #else
20816
20817 namespace cxx14
20818 {
20819
20820 namespace test_polymorphic_lambdas
20821 {
20822
20823 int
20824 test()
20825 {
20826 const auto lambda = [](auto&&... args){
20827 const auto istiny = [](auto x){
20828 return (sizeof(x) == 1UL) ? 1 : 0;
20829 };
20830 const int aretiny[] = { istiny(args)... };
20831 return aretiny[0];
20832 };
20833 return lambda(1, 1L, 1.0f, '1');
20834 }
20835
20836 }
20837
20838 namespace test_binary_literals
20839 {
20840
20841 constexpr auto ivii = 0b0000000000101010;
20842 static_assert(ivii == 42, "wrong value");
20843
20844 }
20845
20846 namespace test_generalized_constexpr
20847 {
20848
20849 template < typename CharT >
20850 constexpr unsigned long
20851 strlen_c(const CharT *const s) noexcept
20852 {
20853 auto length = 0UL;
20854 for (auto p = s; *p; ++p)
20855 ++length;
20856 return length;
20857 }
20858
20859 static_assert(strlen_c("") == 0UL, "");
20860 static_assert(strlen_c("x") == 1UL, "");
20861 static_assert(strlen_c("test") == 4UL, "");
20862 static_assert(strlen_c("another\0test") == 7UL, "");
20863
20864 }
20865
20866 namespace test_lambda_init_capture
20867 {
20868
20869 int
20870 test()
20871 {
20872 auto x = 0;
20873 const auto lambda1 = [a = x](int b){ return a + b; };
20874 const auto lambda2 = [a = lambda1(x)](){ return a; };
20875 return lambda2();
20876 }
20877
20878 }
20879
20880 namespace test_digit_separators
20881 {
20882
20883 constexpr auto ten_million = 100'000'000;
20884 static_assert(ten_million == 100000000, "");
20885
20886 }
20887
20888 namespace test_return_type_deduction
20889 {
20890
20891 auto f(int& x) { return x; }
20892 decltype(auto) g(int& x) { return x; }
20893
20894 template < typename T1, typename T2 >
20895 struct is_same
20896 {
20897 static constexpr auto value = false;
20898 };
20899
20900 template < typename T >
20901 struct is_same<T, T>
20902 {
20903 static constexpr auto value = true;
20904 };
20905
20906 int
20907 test()
20908 {
20909 auto x = 0;
20910 static_assert(is_same<int, decltype(f(x))>::value, "");
20911 static_assert(is_same<int&, decltype(g(x))>::value, "");
20912 return x;
20913 }
20914
20915 }
20916
20917 } // namespace cxx14
20918
20919 #endif // __cplusplus >= 201402L
20920
20921
20922
20923
20924 // If the compiler admits that it is not ready for C++17, why torture it?
20925 // Hopefully, this will speed up the test.
20926
20927 #ifndef __cplusplus
20928
20929 #error "This is not a C++ compiler"
20930
20931 #elif (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 201703L
20932
20933 #error "This is not a C++17 compiler"
20934
20935 #else
20936
20937 #include <initializer_list>
20938 #include <utility>
20939 #include <type_traits>
20940
20941 namespace cxx17
20942 {
20943
20944 namespace test_constexpr_lambdas
20945 {
20946
20947 constexpr int foo = [](){return 42;}();
20948
20949 }
20950
20951 namespace test::nested_namespace::definitions
20952 {
20953
20954 }
20955
20956 namespace test_fold_expression
20957 {
20958
20959 template<typename... Args>
20960 int multiply(Args... args)
20961 {
20962 return (args * ... * 1);
20963 }
20964
20965 template<typename... Args>
20966 bool all(Args... args)
20967 {
20968 return (args && ...);
20969 }
20970
20971 }
20972
20973 namespace test_extended_static_assert
20974 {
20975
20976 static_assert (true);
20977
20978 }
20979
20980 namespace test_auto_brace_init_list
20981 {
20982
20983 auto foo = {5};
20984 auto bar {5};
20985
20986 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
20987 static_assert(std::is_same<int, decltype(bar)>::value);
20988 }
20989
20990 namespace test_typename_in_template_template_parameter
20991 {
20992
20993 template<template<typename> typename X> struct D;
20994
20995 }
20996
20997 namespace test_fallthrough_nodiscard_maybe_unused_attributes
20998 {
20999
21000 int f1()
21001 {
21002 return 42;
21003 }
21004
21005 [[nodiscard]] int f2()
21006 {
21007 [[maybe_unused]] auto unused = f1();
21008
21009 switch (f1())
21010 {
21011 case 17:
21012 f1();
21013 [[fallthrough]];
21014 case 42:
21015 f1();
21016 }
21017 return f1();
21018 }
21019
21020 }
21021
21022 namespace test_extended_aggregate_initialization
21023 {
21024
21025 struct base1
21026 {
21027 int b1, b2 = 42;
21028 };
21029
21030 struct base2
21031 {
21032 base2() {
21033 b3 = 42;
21034 }
21035 int b3;
21036 };
21037
21038 struct derived : base1, base2
21039 {
21040 int d;
21041 };
21042
21043 derived d1 {{1, 2}, {}, 4}; // full initialization
21044 derived d2 {{}, {}, 4}; // value-initialized bases
21045
21046 }
21047
21048 namespace test_general_range_based_for_loop
21049 {
21050
21051 struct iter
21052 {
21053 int i;
21054
21055 int& operator* ()
21056 {
21057 return i;
21058 }
21059
21060 const int& operator* () const
21061 {
21062 return i;
21063 }
21064
21065 iter& operator++()
21066 {
21067 ++i;
21068 return *this;
21069 }
21070 };
21071
21072 struct sentinel
21073 {
21074 int i;
21075 };
21076
21077 bool operator== (const iter& i, const sentinel& s)
21078 {
21079 return i.i == s.i;
21080 }
21081
21082 bool operator!= (const iter& i, const sentinel& s)
21083 {
21084 return !(i == s);
21085 }
21086
21087 struct range
21088 {
21089 iter begin() const
21090 {
21091 return {0};
21092 }
21093
21094 sentinel end() const
21095 {
21096 return {5};
21097 }
21098 };
21099
21100 void f()
21101 {
21102 range r {};
21103
21104 for (auto i : r)
21105 {
21106 [[maybe_unused]] auto v = i;
21107 }
21108 }
21109
21110 }
21111
21112 namespace test_lambda_capture_asterisk_this_by_value
21113 {
21114
21115 struct t
21116 {
21117 int i;
21118 int foo()
21119 {
21120 return [*this]()
21121 {
21122 return i;
21123 }();
21124 }
21125 };
21126
21127 }
21128
21129 namespace test_enum_class_construction
21130 {
21131
21132 enum class byte : unsigned char
21133 {};
21134
21135 byte foo {42};
21136
21137 }
21138
21139 namespace test_constexpr_if
21140 {
21141
21142 template <bool cond>
21143 int f ()
21144 {
21145 if constexpr(cond)
21146 {
21147 return 13;
21148 }
21149 else
21150 {
21151 return 42;
21152 }
21153 }
21154
21155 }
21156
21157 namespace test_selection_statement_with_initializer
21158 {
21159
21160 int f()
21161 {
21162 return 13;
21163 }
21164
21165 int f2()
21166 {
21167 if (auto i = f(); i > 0)
21168 {
21169 return 3;
21170 }
21171
21172 switch (auto i = f(); i + 4)
21173 {
21174 case 17:
21175 return 2;
21176
21177 default:
21178 return 1;
21179 }
21180 }
21181
21182 }
21183
21184 namespace test_template_argument_deduction_for_class_templates
21185 {
21186
21187 template <typename T1, typename T2>
21188 struct pair
21189 {
21190 pair (T1 p1, T2 p2)
21191 : m1 {p1},
21192 m2 {p2}
21193 {}
21194
21195 T1 m1;
21196 T2 m2;
21197 };
21198
21199 void f()
21200 {
21201 [[maybe_unused]] auto p = pair{13, 42u};
21202 }
21203
21204 }
21205
21206 namespace test_non_type_auto_template_parameters
21207 {
21208
21209 template <auto n>
21210 struct B
21211 {};
21212
21213 B<5> b1;
21214 B<'a'> b2;
21215
21216 }
21217
21218 namespace test_structured_bindings
21219 {
21220
21221 int arr[2] = { 1, 2 };
21222 std::pair<int, int> pr = { 1, 2 };
21223
21224 auto f1() -> int(&)[2]
21225 {
21226 return arr;
21227 }
21228
21229 auto f2() -> std::pair<int, int>&
21230 {
21231 return pr;
21232 }
21233
21234 struct S
21235 {
21236 int x1 : 2;
21237 volatile double y1;
21238 };
21239
21240 S f3()
21241 {
21242 return {};
21243 }
21244
21245 auto [ x1, y1 ] = f1();
21246 auto& [ xr1, yr1 ] = f1();
21247 auto [ x2, y2 ] = f2();
21248 auto& [ xr2, yr2 ] = f2();
21249 const auto [ x3, y3 ] = f3();
21250
21251 }
21252
21253 namespace test_exception_spec_type_system
21254 {
21255
21256 struct Good {};
21257 struct Bad {};
21258
21259 void g1() noexcept;
21260 void g2();
21261
21262 template<typename T>
21263 Bad
21264 f(T*, T*);
21265
21266 template<typename T1, typename T2>
21267 Good
21268 f(T1*, T2*);
21269
21270 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
21271
21272 }
21273
21274 namespace test_inline_variables
21275 {
21276
21277 template<class T> void f(T)
21278 {}
21279
21280 template<class T> inline T g(T)
21281 {
21282 return T{};
21283 }
21284
21285 template<> inline void f<>(int)
21286 {}
21287
21288 template<> int g<>(int)
21289 {
21290 return 5;
21291 }
21292
21293 }
21294
21295 } // namespace cxx17
21296
21297 #endif // (defined _MSVC_LANG ? _MSVC_LANG : __cplusplus) < 201703L
21298
21299
21300
21301 _ACEOF
21302 if ac_fn_cxx_try_compile "$LINENO"
21303 then :
21304 eval $cachevar=yes
21305 else $as_nop
21306 eval $cachevar=no
21307 fi
21308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21309 CXX="$ac_save_CXX"
21310 fi
21311 eval ac_res=\$$cachevar
21312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21313 printf "%s\n" "$ac_res" >&6; }
21314 if eval test x\$$cachevar = xyes; then
21315 CXX="$CXX $switch"
21316 if test -n "$CXXCPP" ; then
21317 CXXCPP="$CXXCPP $switch"
21318 fi
21319 ac_success=yes
21320 break
21321 fi
21322 done
21323 if test x$ac_success = xyes; then
21324 break
21325 fi
21326 done
21327 fi
21328 ac_ext=c
21329 ac_cpp='$CPP $CPPFLAGS'
21330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21333
21334 if test x$ax_cxx_compile_cxx17_required = xtrue; then
21335 if test x$ac_success = xno; then
21336 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
21337 fi
21338 fi
21339 if test x$ac_success = xno; then
21340 HAVE_CXX17=0
21341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
21342 printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;}
21343 else
21344 HAVE_CXX17=1
21345
21346 printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h
21347
21348 fi
21349
21350
21351
21352 fi
21353
21354 fi
21355
21356 GLOBAL_CPPFLAGS=
21357 GLOBAL_CFLAGS=
21358 GLOBAL_CXXFLAGS=
21359
21360 ac_ext=c
21361 ac_cpp='$CPP $CPPFLAGS'
21362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21365
21366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
21367 printf %s "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
21368 if test ${ax_cv_check_cflags___fvisibility_hidden+y}
21369 then :
21370 printf %s "(cached) " >&6
21371 else $as_nop
21372
21373 ax_check_save_flags=$CFLAGS
21374 CFLAGS="$CFLAGS -fvisibility=hidden"
21375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376 /* end confdefs.h. */
21377
21378 int
21379 main (void)
21380 {
21381
21382 ;
21383 return 0;
21384 }
21385 _ACEOF
21386 if ac_fn_c_try_compile "$LINENO"
21387 then :
21388 ax_cv_check_cflags___fvisibility_hidden=yes
21389 else $as_nop
21390 ax_cv_check_cflags___fvisibility_hidden=no
21391 fi
21392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21393 CFLAGS=$ax_check_save_flags
21394 fi
21395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
21396 printf "%s\n" "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
21397 if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes
21398 then :
21399 GLOBAL_CFLAGS="$GLOBAL_CFLAGS -fvisibility=hidden"
21400 else $as_nop
21401 :
21402 fi
21403
21404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
21405 printf %s "checking for C compiler vendor... " >&6; }
21406 if test ${ax_cv_c_compiler_vendor+y}
21407 then :
21408 printf %s "(cached) " >&6
21409 else $as_nop
21410
21411 vendors="
21412 intel: __ICC,__ECC,__INTEL_COMPILER
21413 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__
21414 pathscale: __PATHCC__,__PATHSCALE__
21415 clang: __clang__
21416 cray: _CRAYC
21417 fujitsu: __FUJITSU
21418 sdcc: SDCC,__SDCC
21419 sx: _SX
21420 nvhpc: __NVCOMPILER
21421 portland: __PGI
21422 gnu: __GNUC__
21423 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
21424 hp: __HP_cc,__HP_aCC
21425 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
21426 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
21427 comeau: __COMO__
21428 kai: __KCC
21429 lcc: __LCC__
21430 sgi: __sgi,sgi
21431 microsoft: _MSC_VER
21432 metrowerks: __MWERKS__
21433 watcom: __WATCOMC__
21434 tcc: __TINYC__
21435 unknown: UNKNOWN
21436 "
21437 for ventest in $vendors; do
21438 case $ventest in
21439 *:)
21440 vendor=$ventest
21441 continue
21442 ;;
21443 *)
21444 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
21445 ;;
21446 esac
21447
21448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21449 /* end confdefs.h. */
21450
21451 int
21452 main (void)
21453 {
21454
21455 #if !($vencpp)
21456 thisisanerror;
21457 #endif
21458
21459 ;
21460 return 0;
21461 }
21462 _ACEOF
21463 if ac_fn_c_try_compile "$LINENO"
21464 then :
21465 break
21466 fi
21467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21468 done
21469
21470 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
21471
21472 fi
21473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
21474 printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; }
21475
21476 ac_ext=c
21477 ac_cpp='$CPP $CPPFLAGS'
21478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21481
21482
21483
21484
21485
21486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGS for most reasonable warnings" >&5
21487 printf %s "checking CFLAGS for most reasonable warnings... " >&6; }
21488 if test ${ac_cv_cflags_warn_all+y}
21489 then :
21490 printf %s "(cached) " >&6
21491 else $as_nop
21492
21493 ac_cv_cflags_warn_all=""
21494 ac_save_cflags_warn_all_found="yes"
21495 case "$ax_cv_c_compiler_vendor" in #(
21496 intel) :
21497 ac_cv_cflags_warn_all="-w2" ;; #(
21498 ibm) :
21499 ac_cv_cflags_warn_all="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" ;; #(
21500 pathscale) :
21501 ;; #(
21502 clang) :
21503 ac_cv_cflags_warn_all="-Wall" ;; #(
21504 cray) :
21505 ac_cv_cflags_warn_all="-h msglevel 2" ;; #(
21506 fujitsu) :
21507 ;; #(
21508 sdcc) :
21509 ;; #(
21510 sx) :
21511 ac_cv_cflags_warn_all="-pvctl,fullmsg" ;; #(
21512 portland) :
21513 ;; #(
21514 gnu) :
21515 ac_cv_cflags_warn_all="-Wall" ;; #(
21516 sun) :
21517 ac_cv_cflags_warn_all="-v" ;; #(
21518 hp) :
21519 ac_cv_cflags_warn_all="+w1" ;; #(
21520 dec) :
21521 ac_cv_cflags_warn_all="-verbose -w0 -warnprotos" ;; #(
21522 borland) :
21523 ;; #(
21524 comeau) :
21525 ;; #(
21526 kai) :
21527 ;; #(
21528 lcc) :
21529 ;; #(
21530 sgi) :
21531 ac_cv_cflags_warn_all="-fullwarn" ;; #(
21532 microsoft) :
21533 ;; #(
21534 metrowerks) :
21535 ;; #(
21536 watcom) :
21537 ;; #(
21538 tcc) :
21539 ;; #(
21540 unknown) :
21541
21542 ac_cv_cflags_warn_all=""
21543 ac_save_cflags_warn_all_found="no"
21544 ;; #(
21545 *) :
21546
21547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&5
21548 printf "%s\n" "$as_me: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&2;}
21549 ac_cv_cflags_warn_all=""
21550 ac_save_cflags_warn_all_found="no"
21551
21552 ;;
21553 esac
21554
21555 if test "x$ac_save_cflags_warn_all_found" = "xyes"
21556 then :
21557 if test "x$ac_cv_cflags_warn_all" != "x"
21558 then :
21559
21560 if test ${CFLAGS+y}
21561 then :
21562
21563 case " $CFLAGS " in #(
21564 *" $ac_cv_cflags_warn_all "*) :
21565 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
21566 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
21567 ac_status=$?
21568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21569 test $ac_status = 0; } ;; #(
21570 *) :
21571
21572 CFLAGS="$ac_cv_cflags_warn_all $CFLAGS"
21573 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
21574 (: CFLAGS="$CFLAGS") 2>&5
21575 ac_status=$?
21576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21577 test $ac_status = 0; }
21578 ;;
21579 esac
21580
21581 else $as_nop
21582
21583 CFLAGS=$ac_cv_cflags_warn_all
21584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
21585 (: CFLAGS="$CFLAGS") 2>&5
21586 ac_status=$?
21587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21588 test $ac_status = 0; }
21589
21590 fi
21591
21592 fi
21593
21594 else $as_nop
21595 true
21596
21597 fi
21598 fi
21599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
21600 printf "%s\n" "$ac_cv_cflags_warn_all" >&6; }
21601
21602 ac_ext=c
21603 ac_cpp='$CPP $CPPFLAGS'
21604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21607
21608
21609 ac_ext=c
21610 ac_cpp='$CPP $CPPFLAGS'
21611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21614
21615
21616 ac_ext=cpp
21617 ac_cpp='$CXXCPP $CPPFLAGS'
21618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21621
21622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -fvisibility=hidden" >&5
21623 printf %s "checking whether C++ compiler accepts -fvisibility=hidden... " >&6; }
21624 if test ${ax_cv_check_cxxflags___fvisibility_hidden+y}
21625 then :
21626 printf %s "(cached) " >&6
21627 else $as_nop
21628
21629 ax_check_save_flags=$CXXFLAGS
21630 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
21631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21632 /* end confdefs.h. */
21633
21634 int
21635 main (void)
21636 {
21637
21638 ;
21639 return 0;
21640 }
21641 _ACEOF
21642 if ac_fn_cxx_try_compile "$LINENO"
21643 then :
21644 ax_cv_check_cxxflags___fvisibility_hidden=yes
21645 else $as_nop
21646 ax_cv_check_cxxflags___fvisibility_hidden=no
21647 fi
21648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21649 CXXFLAGS=$ax_check_save_flags
21650 fi
21651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___fvisibility_hidden" >&5
21652 printf "%s\n" "$ax_cv_check_cxxflags___fvisibility_hidden" >&6; }
21653 if test "x$ax_cv_check_cxxflags___fvisibility_hidden" = xyes
21654 then :
21655 GLOBAL_CXXFLAGS="$GLOBAL_CXXFLAGS -fvisibility=hidden"
21656 else $as_nop
21657 :
21658 fi
21659
21660 ac_ext=cpp
21661 ac_cpp='$CXXCPP $CPPFLAGS'
21662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21665
21666
21667
21668
21669
21670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for most reasonable warnings" >&5
21671 printf %s "checking CXXFLAGS for most reasonable warnings... " >&6; }
21672 if test ${ac_cv_cxxflags_warn_all+y}
21673 then :
21674 printf %s "(cached) " >&6
21675 else $as_nop
21676
21677 ac_cv_cxxflags_warn_all=""
21678 ac_save_cxxflags_warn_all_found="yes"
21679 case "$ax_cv_cxx_compiler_vendor" in #(
21680 intel) :
21681 ac_cv_cxxflags_warn_all="-w2" ;; #(
21682 ibm) :
21683 ac_cv_cxxflags_warn_all="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" ;; #(
21684 pathscale) :
21685 ;; #(
21686 clang) :
21687 ac_cv_cxxflags_warn_all="-Wall" ;; #(
21688 cray) :
21689 ac_cv_cxxflags_warn_all="-h msglevel 2" ;; #(
21690 fujitsu) :
21691 ;; #(
21692 sdcc) :
21693 ;; #(
21694 sx) :
21695 ac_cv_cxxflags_warn_all="-pvctl,fullmsg" ;; #(
21696 portland) :
21697 ;; #(
21698 gnu) :
21699 ac_cv_cxxflags_warn_all="-Wall" ;; #(
21700 sun) :
21701 ac_cv_cxxflags_warn_all="-v" ;; #(
21702 hp) :
21703 ac_cv_cxxflags_warn_all="+w1" ;; #(
21704 dec) :
21705 ac_cv_cxxflags_warn_all="-verbose -w0 -warnprotos" ;; #(
21706 borland) :
21707 ;; #(
21708 comeau) :
21709 ;; #(
21710 kai) :
21711 ;; #(
21712 lcc) :
21713 ;; #(
21714 sgi) :
21715 ac_cv_cxxflags_warn_all="-fullwarn" ;; #(
21716 microsoft) :
21717 ;; #(
21718 metrowerks) :
21719 ;; #(
21720 watcom) :
21721 ;; #(
21722 tcc) :
21723 ;; #(
21724 unknown) :
21725
21726 ac_cv_cxxflags_warn_all=""
21727 ac_save_cxxflags_warn_all_found="no"
21728 ;; #(
21729 *) :
21730
21731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&5
21732 printf "%s\n" "$as_me: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&2;}
21733 ac_cv_cxxflags_warn_all=""
21734 ac_save_cxxflags_warn_all_found="no"
21735
21736 ;;
21737 esac
21738
21739 if test "x$ac_save_cxxflags_warn_all_found" = "xyes"
21740 then :
21741 if test "x$ac_cv_cxxflags_warn_all" != "x"
21742 then :
21743
21744 if test ${CXXFLAGS+y}
21745 then :
21746
21747 case " $CXXFLAGS " in #(
21748 *" $ac_cv_cxxflags_warn_all "*) :
21749 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
21750 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
21751 ac_status=$?
21752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21753 test $ac_status = 0; } ;; #(
21754 *) :
21755
21756 CXXFLAGS="$ac_cv_cxxflags_warn_all $CXXFLAGS"
21757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
21758 (: CXXFLAGS="$CXXFLAGS") 2>&5
21759 ac_status=$?
21760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21761 test $ac_status = 0; }
21762 ;;
21763 esac
21764
21765 else $as_nop
21766
21767 CXXFLAGS=$ac_cv_cxxflags_warn_all
21768 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
21769 (: CXXFLAGS="$CXXFLAGS") 2>&5
21770 ac_status=$?
21771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21772 test $ac_status = 0; }
21773
21774 fi
21775
21776 fi
21777
21778 else $as_nop
21779 true
21780
21781 fi
21782 fi
21783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
21784 printf "%s\n" "$ac_cv_cxxflags_warn_all" >&6; }
21785
21786 ac_ext=cpp
21787 ac_cpp='$CXXCPP $CPPFLAGS'
21788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21791
21792
21793 ac_ext=c
21794 ac_cpp='$CPP $CPPFLAGS'
21795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21798
21799
21800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports exceptions" >&5
21801 printf %s "checking whether the compiler supports exceptions... " >&6; }
21802 if test ${ax_cv_cxx_exceptions+y}
21803 then :
21804 printf %s "(cached) " >&6
21805 else $as_nop
21806 ac_ext=cpp
21807 ac_cpp='$CXXCPP $CPPFLAGS'
21808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21811
21812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21813 /* end confdefs.h. */
21814
21815 int
21816 main (void)
21817 {
21818 try { throw 1; } catch (int i) { return i; }
21819 ;
21820 return 0;
21821 }
21822 _ACEOF
21823 if ac_fn_cxx_try_compile "$LINENO"
21824 then :
21825 ax_cv_cxx_exceptions=yes
21826 else $as_nop
21827 ax_cv_cxx_exceptions=no
21828 fi
21829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21830 ac_ext=c
21831 ac_cpp='$CPP $CPPFLAGS'
21832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21835
21836
21837 fi
21838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_exceptions" >&5
21839 printf "%s\n" "$ax_cv_cxx_exceptions" >&6; }
21840 if test "$ax_cv_cxx_exceptions" = yes; then
21841
21842 printf "%s\n" "#define HAVE_EXCEPTIONS /**/" >>confdefs.h
21843
21844 fi
21845
21846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Run-Time Type Identification" >&5
21847 printf %s "checking whether the compiler supports Run-Time Type Identification... " >&6; }
21848 if test ${ax_cv_cxx_rtti+y}
21849 then :
21850 printf %s "(cached) " >&6
21851 else $as_nop
21852 ac_ext=cpp
21853 ac_cpp='$CXXCPP $CPPFLAGS'
21854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21857
21858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21859 /* end confdefs.h. */
21860 #include <typeinfo>
21861 class Base { public :
21862 Base () {}
21863 virtual int f () { return 0; }
21864 };
21865 class Derived : public Base { public :
21866 Derived () {}
21867 virtual int f () { return 1; }
21868 };
21869
21870 int
21871 main (void)
21872 {
21873 Derived d;
21874 Base *ptr = &d;
21875 return typeid (*ptr) == typeid (Derived);
21876
21877 ;
21878 return 0;
21879 }
21880 _ACEOF
21881 if ac_fn_cxx_try_compile "$LINENO"
21882 then :
21883 ax_cv_cxx_rtti=yes
21884 else $as_nop
21885 ax_cv_cxx_rtti=no
21886 fi
21887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21888 ac_ext=c
21889 ac_cpp='$CPP $CPPFLAGS'
21890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21893
21894
21895 fi
21896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_rtti" >&5
21897 printf "%s\n" "$ax_cv_cxx_rtti" >&6; }
21898 if test "$ax_cv_cxx_rtti" = yes; then
21899
21900 printf "%s\n" "#define HAVE_RTTI /**/" >>confdefs.h
21901
21902 fi
21903
21904
21905 ac_ext=c
21906 ac_cpp='$CPP $CPPFLAGS'
21907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
21911 printf %s "checking how to run the C preprocessor... " >&6; }
21912 # On Suns, sometimes $CPP names a directory.
21913 if test -n "$CPP" && test -d "$CPP"; then
21914 CPP=
21915 fi
21916 if test -z "$CPP"; then
21917 if test ${ac_cv_prog_CPP+y}
21918 then :
21919 printf %s "(cached) " >&6
21920 else $as_nop
21921 # Double quotes because $CC needs to be expanded
21922 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
21923 do
21924 ac_preproc_ok=false
21925 for ac_c_preproc_warn_flag in '' yes
21926 do
21927 # Use a header file that comes with gcc, so configuring glibc
21928 # with a fresh cross-compiler works.
21929 # On the NeXT, cc -E runs the code through the compiler's parser,
21930 # not just through cpp. "Syntax error" is here to catch this case.
21931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21932 /* end confdefs.h. */
21933 #include <limits.h>
21934 Syntax error
21935 _ACEOF
21936 if ac_fn_c_try_cpp "$LINENO"
21937 then :
21938
21939 else $as_nop
21940 # Broken: fails on valid input.
21941 continue
21942 fi
21943 rm -f conftest.err conftest.i conftest.$ac_ext
21944
21945 # OK, works on sane cases. Now check whether nonexistent headers
21946 # can be detected and how.
21947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h. */
21949 #include <ac_nonexistent.h>
21950 _ACEOF
21951 if ac_fn_c_try_cpp "$LINENO"
21952 then :
21953 # Broken: success on invalid input.
21954 continue
21955 else $as_nop
21956 # Passes both tests.
21957 ac_preproc_ok=:
21958 break
21959 fi
21960 rm -f conftest.err conftest.i conftest.$ac_ext
21961
21962 done
21963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21964 rm -f conftest.i conftest.err conftest.$ac_ext
21965 if $ac_preproc_ok
21966 then :
21967 break
21968 fi
21969
21970 done
21971 ac_cv_prog_CPP=$CPP
21972
21973 fi
21974 CPP=$ac_cv_prog_CPP
21975 else
21976 ac_cv_prog_CPP=$CPP
21977 fi
21978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
21979 printf "%s\n" "$CPP" >&6; }
21980 ac_preproc_ok=false
21981 for ac_c_preproc_warn_flag in '' yes
21982 do
21983 # Use a header file that comes with gcc, so configuring glibc
21984 # with a fresh cross-compiler works.
21985 # On the NeXT, cc -E runs the code through the compiler's parser,
21986 # not just through cpp. "Syntax error" is here to catch this case.
21987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21988 /* end confdefs.h. */
21989 #include <limits.h>
21990 Syntax error
21991 _ACEOF
21992 if ac_fn_c_try_cpp "$LINENO"
21993 then :
21994
21995 else $as_nop
21996 # Broken: fails on valid input.
21997 continue
21998 fi
21999 rm -f conftest.err conftest.i conftest.$ac_ext
22000
22001 # OK, works on sane cases. Now check whether nonexistent headers
22002 # can be detected and how.
22003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22004 /* end confdefs.h. */
22005 #include <ac_nonexistent.h>
22006 _ACEOF
22007 if ac_fn_c_try_cpp "$LINENO"
22008 then :
22009 # Broken: success on invalid input.
22010 continue
22011 else $as_nop
22012 # Passes both tests.
22013 ac_preproc_ok=:
22014 break
22015 fi
22016 rm -f conftest.err conftest.i conftest.$ac_ext
22017
22018 done
22019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22020 rm -f conftest.i conftest.err conftest.$ac_ext
22021 if $ac_preproc_ok
22022 then :
22023
22024 else $as_nop
22025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22026 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22027 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
22028 See \`config.log' for more details" "$LINENO" 5; }
22029 fi
22030
22031 ac_ext=c
22032 ac_cpp='$CPP $CPPFLAGS'
22033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22036
22037
22038
22039
22040
22041
22042 ac_ext=c
22043 ac_cpp='$CPP $CPPFLAGS'
22044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22047
22048 ax_pthread_ok=no
22049
22050 # We used to check for pthread.h first, but this fails if pthread.h
22051 # requires special compiler flags (e.g. on Tru64 or Sequent).
22052 # It gets checked for in the link test anyway.
22053
22054 # First of all, check if the user has set any of the PTHREAD_LIBS,
22055 # etcetera environment variables, and if threads linking works using
22056 # them:
22057 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
22058 ax_pthread_save_CC="$CC"
22059 ax_pthread_save_CFLAGS="$CFLAGS"
22060 ax_pthread_save_LIBS="$LIBS"
22061 if test "x$PTHREAD_CC" != "x"
22062 then :
22063 CC="$PTHREAD_CC"
22064 fi
22065 if test "x$PTHREAD_CXX" != "x"
22066 then :
22067 CXX="$PTHREAD_CXX"
22068 fi
22069 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22070 LIBS="$PTHREAD_LIBS $LIBS"
22071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
22072 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
22073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22074 /* end confdefs.h. */
22075
22076 /* Override any GCC internal prototype to avoid an error.
22077 Use char because int might match the return type of a GCC
22078 builtin and then its argument prototype would still apply. */
22079 char pthread_join ();
22080 int
22081 main (void)
22082 {
22083 return pthread_join ();
22084 ;
22085 return 0;
22086 }
22087 _ACEOF
22088 if ac_fn_c_try_link "$LINENO"
22089 then :
22090 ax_pthread_ok=yes
22091 fi
22092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22093 conftest$ac_exeext conftest.$ac_ext
22094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
22095 printf "%s\n" "$ax_pthread_ok" >&6; }
22096 if test "x$ax_pthread_ok" = "xno"; then
22097 PTHREAD_LIBS=""
22098 PTHREAD_CFLAGS=""
22099 fi
22100 CC="$ax_pthread_save_CC"
22101 CFLAGS="$ax_pthread_save_CFLAGS"
22102 LIBS="$ax_pthread_save_LIBS"
22103 fi
22104
22105 # We must check for the threads library under a number of different
22106 # names; the ordering is very important because some systems
22107 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22108 # libraries is broken (non-POSIX).
22109
22110 # Create a list of thread flags to try. Items with a "," contain both
22111 # C compiler flags (before ",") and linker flags (after ","). Other items
22112 # starting with a "-" are C compiler flags, and remaining items are
22113 # library names, except for "none" which indicates that we try without
22114 # any flags at all, and "pthread-config" which is a program returning
22115 # the flags for the Pth emulation library.
22116
22117 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22118
22119 # The ordering *is* (sometimes) important. Some notes on the
22120 # individual items follow:
22121
22122 # pthreads: AIX (must check this before -lpthread)
22123 # none: in case threads are in libc; should be tried before -Kthread and
22124 # other compiler flags to prevent continual compiler warnings
22125 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22126 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
22127 # (Note: HP C rejects this with "bad form for `-t' option")
22128 # -pthreads: Solaris/gcc (Note: HP C also rejects)
22129 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22130 # doesn't hurt to check since this sometimes defines pthreads and
22131 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
22132 # is present but should not be used directly; and before -mthreads,
22133 # because the compiler interprets this as "-mt" + "-hreads")
22134 # -mthreads: Mingw32/gcc, Lynx/gcc
22135 # pthread: Linux, etcetera
22136 # --thread-safe: KAI C++
22137 # pthread-config: use pthread-config program (for GNU Pth library)
22138
22139 case $host_os in
22140
22141 freebsd*)
22142
22143 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22144 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22145
22146 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
22147 ;;
22148
22149 hpux*)
22150
22151 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
22152 # multi-threading and also sets -lpthread."
22153
22154 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
22155 ;;
22156
22157 openedition*)
22158
22159 # IBM z/OS requires a feature-test macro to be defined in order to
22160 # enable POSIX threads at all, so give the user a hint if this is
22161 # not set. (We don't define these ourselves, as they can affect
22162 # other portions of the system API in unpredictable ways.)
22163
22164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22165 /* end confdefs.h. */
22166
22167 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
22168 AX_PTHREAD_ZOS_MISSING
22169 # endif
22170
22171 _ACEOF
22172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22173 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
22174 then :
22175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
22176 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
22177 fi
22178 rm -rf conftest*
22179
22180 ;;
22181
22182 solaris*)
22183
22184 # On Solaris (at least, for some versions), libc contains stubbed
22185 # (non-functional) versions of the pthreads routines, so link-based
22186 # tests will erroneously succeed. (N.B.: The stubs are missing
22187 # pthread_cleanup_push, or rather a function called by this macro,
22188 # so we could check for that, but who knows whether they'll stub
22189 # that too in a future libc.) So we'll check first for the
22190 # standard Solaris way of linking pthreads (-mt -lpthread).
22191
22192 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
22193 ;;
22194 esac
22195
22196 # Are we compiling with Clang?
22197
22198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
22199 printf %s "checking whether $CC is Clang... " >&6; }
22200 if test ${ax_cv_PTHREAD_CLANG+y}
22201 then :
22202 printf %s "(cached) " >&6
22203 else $as_nop
22204 ax_cv_PTHREAD_CLANG=no
22205 # Note that Autoconf sets GCC=yes for Clang as well as GCC
22206 if test "x$GCC" = "xyes"; then
22207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22208 /* end confdefs.h. */
22209 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
22210 # if defined(__clang__) && defined(__llvm__)
22211 AX_PTHREAD_CC_IS_CLANG
22212 # endif
22213
22214 _ACEOF
22215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22216 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
22217 then :
22218 ax_cv_PTHREAD_CLANG=yes
22219 fi
22220 rm -rf conftest*
22221
22222 fi
22223
22224 fi
22225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
22226 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
22227 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
22228
22229
22230 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
22231
22232 # Note that for GCC and Clang -pthread generally implies -lpthread,
22233 # except when -nostdlib is passed.
22234 # This is problematic using libtool to build C++ shared libraries with pthread:
22235 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
22236 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
22237 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
22238 # To solve this, first try -pthread together with -lpthread for GCC
22239
22240 if test "x$GCC" = "xyes"
22241 then :
22242 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
22243 fi
22244
22245 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
22246
22247 if test "x$ax_pthread_clang" = "xyes"
22248 then :
22249 ax_pthread_flags="-pthread,-lpthread -pthread"
22250 fi
22251
22252
22253 # The presence of a feature test macro requesting re-entrant function
22254 # definitions is, on some systems, a strong hint that pthreads support is
22255 # correctly enabled
22256
22257 case $host_os in
22258 darwin* | hpux* | linux* | osf* | solaris*)
22259 ax_pthread_check_macro="_REENTRANT"
22260 ;;
22261
22262 aix*)
22263 ax_pthread_check_macro="_THREAD_SAFE"
22264 ;;
22265
22266 *)
22267 ax_pthread_check_macro="--"
22268 ;;
22269 esac
22270 if test "x$ax_pthread_check_macro" = "x--"
22271 then :
22272 ax_pthread_check_cond=0
22273 else $as_nop
22274 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
22275 fi
22276
22277
22278 if test "x$ax_pthread_ok" = "xno"; then
22279 for ax_pthread_try_flag in $ax_pthread_flags; do
22280
22281 case $ax_pthread_try_flag in
22282 none)
22283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
22284 printf %s "checking whether pthreads work without any flags... " >&6; }
22285 ;;
22286
22287 *,*)
22288 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
22289 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
22290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
22291 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
22292 ;;
22293
22294 -*)
22295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
22296 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
22297 PTHREAD_CFLAGS="$ax_pthread_try_flag"
22298 ;;
22299
22300 pthread-config)
22301 # Extract the first word of "pthread-config", so it can be a program name with args.
22302 set dummy pthread-config; ac_word=$2
22303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22304 printf %s "checking for $ac_word... " >&6; }
22305 if test ${ac_cv_prog_ax_pthread_config+y}
22306 then :
22307 printf %s "(cached) " >&6
22308 else $as_nop
22309 if test -n "$ax_pthread_config"; then
22310 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
22311 else
22312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22313 for as_dir in $PATH
22314 do
22315 IFS=$as_save_IFS
22316 case $as_dir in #(((
22317 '') as_dir=./ ;;
22318 */) ;;
22319 *) as_dir=$as_dir/ ;;
22320 esac
22321 for ac_exec_ext in '' $ac_executable_extensions; do
22322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22323 ac_cv_prog_ax_pthread_config="yes"
22324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22325 break 2
22326 fi
22327 done
22328 done
22329 IFS=$as_save_IFS
22330
22331 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
22332 fi
22333 fi
22334 ax_pthread_config=$ac_cv_prog_ax_pthread_config
22335 if test -n "$ax_pthread_config"; then
22336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
22337 printf "%s\n" "$ax_pthread_config" >&6; }
22338 else
22339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22340 printf "%s\n" "no" >&6; }
22341 fi
22342
22343
22344 if test "x$ax_pthread_config" = "xno"
22345 then :
22346 continue
22347 fi
22348 PTHREAD_CFLAGS="`pthread-config --cflags`"
22349 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22350 ;;
22351
22352 *)
22353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
22354 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
22355 PTHREAD_LIBS="-l$ax_pthread_try_flag"
22356 ;;
22357 esac
22358
22359 ax_pthread_save_CFLAGS="$CFLAGS"
22360 ax_pthread_save_LIBS="$LIBS"
22361 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22362 LIBS="$PTHREAD_LIBS $LIBS"
22363
22364 # Check for various functions. We must include pthread.h,
22365 # since some functions may be macros. (On the Sequent, we
22366 # need a special flag -Kthread to make this header compile.)
22367 # We check for pthread_join because it is in -lpthread on IRIX
22368 # while pthread_create is in libc. We check for pthread_attr_init
22369 # due to DEC craziness with -lpthreads. We check for
22370 # pthread_cleanup_push because it is one of the few pthread
22371 # functions on Solaris that doesn't have a non-functional libc stub.
22372 # We try pthread_create on general principles.
22373
22374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22375 /* end confdefs.h. */
22376 #include <pthread.h>
22377 # if $ax_pthread_check_cond
22378 # error "$ax_pthread_check_macro must be defined"
22379 # endif
22380 static void *some_global = NULL;
22381 static void routine(void *a)
22382 {
22383 /* To avoid any unused-parameter or
22384 unused-but-set-parameter warning. */
22385 some_global = a;
22386 }
22387 static void *start_routine(void *a) { return a; }
22388 int
22389 main (void)
22390 {
22391 pthread_t th; pthread_attr_t attr;
22392 pthread_create(&th, 0, start_routine, 0);
22393 pthread_join(th, 0);
22394 pthread_attr_init(&attr);
22395 pthread_cleanup_push(routine, 0);
22396 pthread_cleanup_pop(0) /* ; */
22397 ;
22398 return 0;
22399 }
22400 _ACEOF
22401 if ac_fn_c_try_link "$LINENO"
22402 then :
22403 ax_pthread_ok=yes
22404 fi
22405 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22406 conftest$ac_exeext conftest.$ac_ext
22407
22408 CFLAGS="$ax_pthread_save_CFLAGS"
22409 LIBS="$ax_pthread_save_LIBS"
22410
22411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
22412 printf "%s\n" "$ax_pthread_ok" >&6; }
22413 if test "x$ax_pthread_ok" = "xyes"
22414 then :
22415 break
22416 fi
22417
22418 PTHREAD_LIBS=""
22419 PTHREAD_CFLAGS=""
22420 done
22421 fi
22422
22423
22424 # Clang needs special handling, because older versions handle the -pthread
22425 # option in a rather... idiosyncratic way
22426
22427 if test "x$ax_pthread_clang" = "xyes"; then
22428
22429 # Clang takes -pthread; it has never supported any other flag
22430
22431 # (Note 1: This will need to be revisited if a system that Clang
22432 # supports has POSIX threads in a separate library. This tends not
22433 # to be the way of modern systems, but it's conceivable.)
22434
22435 # (Note 2: On some systems, notably Darwin, -pthread is not needed
22436 # to get POSIX threads support; the API is always present and
22437 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
22438 # -pthread does define _REENTRANT, and while the Darwin headers
22439 # ignore this macro, third-party headers might not.)
22440
22441 # However, older versions of Clang make a point of warning the user
22442 # that, in an invocation where only linking and no compilation is
22443 # taking place, the -pthread option has no effect ("argument unused
22444 # during compilation"). They expect -pthread to be passed in only
22445 # when source code is being compiled.
22446 #
22447 # Problem is, this is at odds with the way Automake and most other
22448 # C build frameworks function, which is that the same flags used in
22449 # compilation (CFLAGS) are also used in linking. Many systems
22450 # supported by AX_PTHREAD require exactly this for POSIX threads
22451 # support, and in fact it is often not straightforward to specify a
22452 # flag that is used only in the compilation phase and not in
22453 # linking. Such a scenario is extremely rare in practice.
22454 #
22455 # Even though use of the -pthread flag in linking would only print
22456 # a warning, this can be a nuisance for well-run software projects
22457 # that build with -Werror. So if the active version of Clang has
22458 # this misfeature, we search for an option to squash it.
22459
22460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
22461 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
22462 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
22463 then :
22464 printf %s "(cached) " >&6
22465 else $as_nop
22466 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
22467 # Create an alternate version of $ac_link that compiles and
22468 # links in two steps (.c -> .o, .o -> exe) instead of one
22469 # (.c -> exe), because the warning occurs only in the second
22470 # step
22471 ax_pthread_save_ac_link="$ac_link"
22472 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
22473 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
22474 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
22475 ax_pthread_save_CFLAGS="$CFLAGS"
22476 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
22477 if test "x$ax_pthread_try" = "xunknown"
22478 then :
22479 break
22480 fi
22481 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
22482 ac_link="$ax_pthread_save_ac_link"
22483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22484 /* end confdefs.h. */
22485 int main(void){return 0;}
22486 _ACEOF
22487 if ac_fn_c_try_link "$LINENO"
22488 then :
22489 ac_link="$ax_pthread_2step_ac_link"
22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h. */
22492 int main(void){return 0;}
22493 _ACEOF
22494 if ac_fn_c_try_link "$LINENO"
22495 then :
22496 break
22497 fi
22498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22499 conftest$ac_exeext conftest.$ac_ext
22500
22501 fi
22502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22503 conftest$ac_exeext conftest.$ac_ext
22504 done
22505 ac_link="$ax_pthread_save_ac_link"
22506 CFLAGS="$ax_pthread_save_CFLAGS"
22507 if test "x$ax_pthread_try" = "x"
22508 then :
22509 ax_pthread_try=no
22510 fi
22511 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
22512
22513 fi
22514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
22515 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
22516
22517 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
22518 no | unknown) ;;
22519 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
22520 esac
22521
22522 fi # $ax_pthread_clang = yes
22523
22524
22525
22526 # Various other checks:
22527 if test "x$ax_pthread_ok" = "xyes"; then
22528 ax_pthread_save_CFLAGS="$CFLAGS"
22529 ax_pthread_save_LIBS="$LIBS"
22530 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22531 LIBS="$PTHREAD_LIBS $LIBS"
22532
22533 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
22535 printf %s "checking for joinable pthread attribute... " >&6; }
22536 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
22537 then :
22538 printf %s "(cached) " >&6
22539 else $as_nop
22540 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
22541 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22543 /* end confdefs.h. */
22544 #include <pthread.h>
22545 int
22546 main (void)
22547 {
22548 int attr = $ax_pthread_attr; return attr /* ; */
22549 ;
22550 return 0;
22551 }
22552 _ACEOF
22553 if ac_fn_c_try_link "$LINENO"
22554 then :
22555 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
22556 fi
22557 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22558 conftest$ac_exeext conftest.$ac_ext
22559 done
22560
22561 fi
22562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
22563 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
22564 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
22565 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
22566 test "x$ax_pthread_joinable_attr_defined" != "xyes"
22567 then :
22568
22569 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
22570
22571 ax_pthread_joinable_attr_defined=yes
22572
22573 fi
22574
22575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
22576 printf %s "checking whether more special flags are required for pthreads... " >&6; }
22577 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
22578 then :
22579 printf %s "(cached) " >&6
22580 else $as_nop
22581 ax_cv_PTHREAD_SPECIAL_FLAGS=no
22582 case $host_os in
22583 solaris*)
22584 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
22585 ;;
22586 esac
22587
22588 fi
22589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
22590 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
22591 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
22592 test "x$ax_pthread_special_flags_added" != "xyes"
22593 then :
22594 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
22595 ax_pthread_special_flags_added=yes
22596 fi
22597
22598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
22599 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
22600 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
22601 then :
22602 printf %s "(cached) " >&6
22603 else $as_nop
22604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22605 /* end confdefs.h. */
22606 #include <pthread.h>
22607 int
22608 main (void)
22609 {
22610 int i = PTHREAD_PRIO_INHERIT;
22611 return i;
22612 ;
22613 return 0;
22614 }
22615 _ACEOF
22616 if ac_fn_c_try_link "$LINENO"
22617 then :
22618 ax_cv_PTHREAD_PRIO_INHERIT=yes
22619 else $as_nop
22620 ax_cv_PTHREAD_PRIO_INHERIT=no
22621 fi
22622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22623 conftest$ac_exeext conftest.$ac_ext
22624
22625 fi
22626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
22627 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
22628 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
22629 test "x$ax_pthread_prio_inherit_defined" != "xyes"
22630 then :
22631
22632 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
22633
22634 ax_pthread_prio_inherit_defined=yes
22635
22636 fi
22637
22638 CFLAGS="$ax_pthread_save_CFLAGS"
22639 LIBS="$ax_pthread_save_LIBS"
22640
22641 # More AIX lossage: compile with *_r variant
22642 if test "x$GCC" != "xyes"; then
22643 case $host_os in
22644 aix*)
22645 case "x/$CC" in #(
22646 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
22647 #handle absolute path differently from PATH based program lookup
22648 case "x$CC" in #(
22649 x/*) :
22650
22651 if as_fn_executable_p ${CC}_r
22652 then :
22653 PTHREAD_CC="${CC}_r"
22654 fi
22655 if test "x${CXX}" != "x"
22656 then :
22657 if as_fn_executable_p ${CXX}_r
22658 then :
22659 PTHREAD_CXX="${CXX}_r"
22660 fi
22661 fi
22662 ;; #(
22663 *) :
22664
22665 for ac_prog in ${CC}_r
22666 do
22667 # Extract the first word of "$ac_prog", so it can be a program name with args.
22668 set dummy $ac_prog; ac_word=$2
22669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22670 printf %s "checking for $ac_word... " >&6; }
22671 if test ${ac_cv_prog_PTHREAD_CC+y}
22672 then :
22673 printf %s "(cached) " >&6
22674 else $as_nop
22675 if test -n "$PTHREAD_CC"; then
22676 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22677 else
22678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22679 for as_dir in $PATH
22680 do
22681 IFS=$as_save_IFS
22682 case $as_dir in #(((
22683 '') as_dir=./ ;;
22684 */) ;;
22685 *) as_dir=$as_dir/ ;;
22686 esac
22687 for ac_exec_ext in '' $ac_executable_extensions; do
22688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22689 ac_cv_prog_PTHREAD_CC="$ac_prog"
22690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22691 break 2
22692 fi
22693 done
22694 done
22695 IFS=$as_save_IFS
22696
22697 fi
22698 fi
22699 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22700 if test -n "$PTHREAD_CC"; then
22701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
22702 printf "%s\n" "$PTHREAD_CC" >&6; }
22703 else
22704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22705 printf "%s\n" "no" >&6; }
22706 fi
22707
22708
22709 test -n "$PTHREAD_CC" && break
22710 done
22711 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
22712
22713 if test "x${CXX}" != "x"
22714 then :
22715 for ac_prog in ${CXX}_r
22716 do
22717 # Extract the first word of "$ac_prog", so it can be a program name with args.
22718 set dummy $ac_prog; ac_word=$2
22719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22720 printf %s "checking for $ac_word... " >&6; }
22721 if test ${ac_cv_prog_PTHREAD_CXX+y}
22722 then :
22723 printf %s "(cached) " >&6
22724 else $as_nop
22725 if test -n "$PTHREAD_CXX"; then
22726 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
22727 else
22728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22729 for as_dir in $PATH
22730 do
22731 IFS=$as_save_IFS
22732 case $as_dir in #(((
22733 '') as_dir=./ ;;
22734 */) ;;
22735 *) as_dir=$as_dir/ ;;
22736 esac
22737 for ac_exec_ext in '' $ac_executable_extensions; do
22738 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22739 ac_cv_prog_PTHREAD_CXX="$ac_prog"
22740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22741 break 2
22742 fi
22743 done
22744 done
22745 IFS=$as_save_IFS
22746
22747 fi
22748 fi
22749 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
22750 if test -n "$PTHREAD_CXX"; then
22751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
22752 printf "%s\n" "$PTHREAD_CXX" >&6; }
22753 else
22754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22755 printf "%s\n" "no" >&6; }
22756 fi
22757
22758
22759 test -n "$PTHREAD_CXX" && break
22760 done
22761 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
22762
22763 fi
22764
22765 ;;
22766 esac
22767 ;; #(
22768 *) :
22769 ;;
22770 esac
22771 ;;
22772 esac
22773 fi
22774 fi
22775
22776 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
22777 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
22778
22779
22780
22781
22782
22783
22784 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22785 if test "x$ax_pthread_ok" = "xyes"; then
22786
22787 LIBS="$PTHREAD_LIBS $LIBS"
22788 GLOBAL_CFLAGS="$GLOBAL_CFLAGS $PTHREAD_CFLAGS"
22789 GLOBAL_CXXFLAGS="$GLOBAL_CXXFLAGS $PTHREAD_CFLAGS"
22790 #CC="$PTHREAD_CC"
22791 #CXX="$PTHREAD_CXX"
22792
22793 :
22794 else
22795 ax_pthread_ok=no
22796
22797
22798 fi
22799 ac_ext=c
22800 ac_cpp='$CPP $CPPFLAGS'
22801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22804
22805
22806
22807 # work-around <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115049>
22808 # This is somewhat pessimistic, but necessary for GCC 8 or earlier,
22809 # which we still support and where we cannot use #pragma GCC optimize.
22810 ac_ext=c
22811 ac_cpp='$CPP $CPPFLAGS'
22812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22815
22816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-ipa-ra" >&5
22817 printf %s "checking whether C compiler accepts -fno-ipa-ra... " >&6; }
22818 if test ${ax_cv_check_cflags___fno_ipa_ra+y}
22819 then :
22820 printf %s "(cached) " >&6
22821 else $as_nop
22822
22823 ax_check_save_flags=$CFLAGS
22824 CFLAGS="$CFLAGS -fno-ipa-ra"
22825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22826 /* end confdefs.h. */
22827
22828 int
22829 main (void)
22830 {
22831
22832 ;
22833 return 0;
22834 }
22835 _ACEOF
22836 if ac_fn_c_try_compile "$LINENO"
22837 then :
22838 ax_cv_check_cflags___fno_ipa_ra=yes
22839 else $as_nop
22840 ax_cv_check_cflags___fno_ipa_ra=no
22841 fi
22842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22843 CFLAGS=$ax_check_save_flags
22844 fi
22845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_ipa_ra" >&5
22846 printf "%s\n" "$ax_cv_check_cflags___fno_ipa_ra" >&6; }
22847 if test "x$ax_cv_check_cflags___fno_ipa_ra" = xyes
22848 then :
22849 GLOBAL_CFLAGS="$GLOBAL_CFLAGS -fno-ipa-ra"
22850 else $as_nop
22851 :
22852 fi
22853
22854 ac_ext=c
22855 ac_cpp='$CPP $CPPFLAGS'
22856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22859
22860
22861
22862
22863
22864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGS for most reasonable warnings" >&5
22865 printf %s "checking CFLAGS for most reasonable warnings... " >&6; }
22866 if test ${ac_cv_cflags_warn_all+y}
22867 then :
22868 printf %s "(cached) " >&6
22869 else $as_nop
22870
22871 ac_cv_cflags_warn_all=""
22872 ac_save_cflags_warn_all_found="yes"
22873 case "$ax_cv_c_compiler_vendor" in #(
22874 intel) :
22875 ac_cv_cflags_warn_all="-w2" ;; #(
22876 ibm) :
22877 ac_cv_cflags_warn_all="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" ;; #(
22878 pathscale) :
22879 ;; #(
22880 clang) :
22881 ac_cv_cflags_warn_all="-Wall" ;; #(
22882 cray) :
22883 ac_cv_cflags_warn_all="-h msglevel 2" ;; #(
22884 fujitsu) :
22885 ;; #(
22886 sdcc) :
22887 ;; #(
22888 sx) :
22889 ac_cv_cflags_warn_all="-pvctl,fullmsg" ;; #(
22890 portland) :
22891 ;; #(
22892 gnu) :
22893 ac_cv_cflags_warn_all="-Wall" ;; #(
22894 sun) :
22895 ac_cv_cflags_warn_all="-v" ;; #(
22896 hp) :
22897 ac_cv_cflags_warn_all="+w1" ;; #(
22898 dec) :
22899 ac_cv_cflags_warn_all="-verbose -w0 -warnprotos" ;; #(
22900 borland) :
22901 ;; #(
22902 comeau) :
22903 ;; #(
22904 kai) :
22905 ;; #(
22906 lcc) :
22907 ;; #(
22908 sgi) :
22909 ac_cv_cflags_warn_all="-fullwarn" ;; #(
22910 microsoft) :
22911 ;; #(
22912 metrowerks) :
22913 ;; #(
22914 watcom) :
22915 ;; #(
22916 tcc) :
22917 ;; #(
22918 unknown) :
22919
22920 ac_cv_cflags_warn_all=""
22921 ac_save_cflags_warn_all_found="no"
22922 ;; #(
22923 *) :
22924
22925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&5
22926 printf "%s\n" "$as_me: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&2;}
22927 ac_cv_cflags_warn_all=""
22928 ac_save_cflags_warn_all_found="no"
22929
22930 ;;
22931 esac
22932
22933 if test "x$ac_save_cflags_warn_all_found" = "xyes"
22934 then :
22935 if test "x$ac_cv_cflags_warn_all" != "x"
22936 then :
22937
22938 if test ${CFLAGS+y}
22939 then :
22940
22941 case " $CFLAGS " in #(
22942 *" $ac_cv_cflags_warn_all "*) :
22943 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
22944 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
22945 ac_status=$?
22946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22947 test $ac_status = 0; } ;; #(
22948 *) :
22949
22950 CFLAGS="$ac_cv_cflags_warn_all $CFLAGS"
22951 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
22952 (: CFLAGS="$CFLAGS") 2>&5
22953 ac_status=$?
22954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22955 test $ac_status = 0; }
22956 ;;
22957 esac
22958
22959 else $as_nop
22960
22961 CFLAGS=$ac_cv_cflags_warn_all
22962 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
22963 (: CFLAGS="$CFLAGS") 2>&5
22964 ac_status=$?
22965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22966 test $ac_status = 0; }
22967
22968 fi
22969
22970 fi
22971
22972 else $as_nop
22973 true
22974
22975 fi
22976 fi
22977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
22978 printf "%s\n" "$ac_cv_cflags_warn_all" >&6; }
22979
22980 ac_ext=c
22981 ac_cpp='$CPP $CPPFLAGS'
22982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22985
22986
22987 ac_ext=c
22988 ac_cpp='$CPP $CPPFLAGS'
22989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22992
22993 ac_ext=cpp
22994 ac_cpp='$CXXCPP $CPPFLAGS'
22995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22998
22999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -fno-ipa-ra" >&5
23000 printf %s "checking whether C++ compiler accepts -fno-ipa-ra... " >&6; }
23001 if test ${ax_cv_check_cxxflags___fno_ipa_ra+y}
23002 then :
23003 printf %s "(cached) " >&6
23004 else $as_nop
23005
23006 ax_check_save_flags=$CXXFLAGS
23007 CXXFLAGS="$CXXFLAGS -fno-ipa-ra"
23008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23009 /* end confdefs.h. */
23010
23011 int
23012 main (void)
23013 {
23014
23015 ;
23016 return 0;
23017 }
23018 _ACEOF
23019 if ac_fn_cxx_try_compile "$LINENO"
23020 then :
23021 ax_cv_check_cxxflags___fno_ipa_ra=yes
23022 else $as_nop
23023 ax_cv_check_cxxflags___fno_ipa_ra=no
23024 fi
23025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23026 CXXFLAGS=$ax_check_save_flags
23027 fi
23028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___fno_ipa_ra" >&5
23029 printf "%s\n" "$ax_cv_check_cxxflags___fno_ipa_ra" >&6; }
23030 if test "x$ax_cv_check_cxxflags___fno_ipa_ra" = xyes
23031 then :
23032 GLOBAL_CXXFLAGS="$GLOBAL_CXXFLAGS -fno-ipa-ra"
23033 else $as_nop
23034 :
23035 fi
23036
23037 ac_ext=cpp
23038 ac_cpp='$CXXCPP $CPPFLAGS'
23039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23042
23043
23044
23045
23046
23047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for most reasonable warnings" >&5
23048 printf %s "checking CXXFLAGS for most reasonable warnings... " >&6; }
23049 if test ${ac_cv_cxxflags_warn_all+y}
23050 then :
23051 printf %s "(cached) " >&6
23052 else $as_nop
23053
23054 ac_cv_cxxflags_warn_all=""
23055 ac_save_cxxflags_warn_all_found="yes"
23056 case "$ax_cv_cxx_compiler_vendor" in #(
23057 intel) :
23058 ac_cv_cxxflags_warn_all="-w2" ;; #(
23059 ibm) :
23060 ac_cv_cxxflags_warn_all="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" ;; #(
23061 pathscale) :
23062 ;; #(
23063 clang) :
23064 ac_cv_cxxflags_warn_all="-Wall" ;; #(
23065 cray) :
23066 ac_cv_cxxflags_warn_all="-h msglevel 2" ;; #(
23067 fujitsu) :
23068 ;; #(
23069 sdcc) :
23070 ;; #(
23071 sx) :
23072 ac_cv_cxxflags_warn_all="-pvctl,fullmsg" ;; #(
23073 portland) :
23074 ;; #(
23075 gnu) :
23076 ac_cv_cxxflags_warn_all="-Wall" ;; #(
23077 sun) :
23078 ac_cv_cxxflags_warn_all="-v" ;; #(
23079 hp) :
23080 ac_cv_cxxflags_warn_all="+w1" ;; #(
23081 dec) :
23082 ac_cv_cxxflags_warn_all="-verbose -w0 -warnprotos" ;; #(
23083 borland) :
23084 ;; #(
23085 comeau) :
23086 ;; #(
23087 kai) :
23088 ;; #(
23089 lcc) :
23090 ;; #(
23091 sgi) :
23092 ac_cv_cxxflags_warn_all="-fullwarn" ;; #(
23093 microsoft) :
23094 ;; #(
23095 metrowerks) :
23096 ;; #(
23097 watcom) :
23098 ;; #(
23099 tcc) :
23100 ;; #(
23101 unknown) :
23102
23103 ac_cv_cxxflags_warn_all=""
23104 ac_save_cxxflags_warn_all_found="no"
23105 ;; #(
23106 *) :
23107
23108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&5
23109 printf "%s\n" "$as_me: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&2;}
23110 ac_cv_cxxflags_warn_all=""
23111 ac_save_cxxflags_warn_all_found="no"
23112
23113 ;;
23114 esac
23115
23116 if test "x$ac_save_cxxflags_warn_all_found" = "xyes"
23117 then :
23118 if test "x$ac_cv_cxxflags_warn_all" != "x"
23119 then :
23120
23121 if test ${CXXFLAGS+y}
23122 then :
23123
23124 case " $CXXFLAGS " in #(
23125 *" $ac_cv_cxxflags_warn_all "*) :
23126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
23127 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
23128 ac_status=$?
23129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23130 test $ac_status = 0; } ;; #(
23131 *) :
23132
23133 CXXFLAGS="$ac_cv_cxxflags_warn_all $CXXFLAGS"
23134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
23135 (: CXXFLAGS="$CXXFLAGS") 2>&5
23136 ac_status=$?
23137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23138 test $ac_status = 0; }
23139 ;;
23140 esac
23141
23142 else $as_nop
23143
23144 CXXFLAGS=$ac_cv_cxxflags_warn_all
23145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
23146 (: CXXFLAGS="$CXXFLAGS") 2>&5
23147 ac_status=$?
23148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23149 test $ac_status = 0; }
23150
23151 fi
23152
23153 fi
23154
23155 else $as_nop
23156 true
23157
23158 fi
23159 fi
23160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
23161 printf "%s\n" "$ac_cv_cxxflags_warn_all" >&6; }
23162
23163 ac_ext=cpp
23164 ac_cpp='$CXXCPP $CPPFLAGS'
23165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23168
23169
23170 ac_ext=c
23171 ac_cpp='$CPP $CPPFLAGS'
23172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23175
23176
23177
23178
23179
23180
23181
23182
23183 LIBOPENMPT_LTVER_CURRENT=5
23184 LIBOPENMPT_LTVER_REVISION=5
23185 LIBOPENMPT_LTVER_AGE=5
23186
23187
23188
23189
23190
23191 printf "%s\n" "#define MPT_SVNURL \"https://source.openmpt.org/svn/openmpt/tags/libopenmpt-0.8.7\"" >>confdefs.h
23192
23193
23194 printf "%s\n" "#define MPT_SVNVERSION \"25325\"" >>confdefs.h
23195
23196
23197 printf "%s\n" "#define MPT_SVNDATE \"2026-05-17T11:08:12.701337Z\"" >>confdefs.h
23198
23199
23200 printf "%s\n" "#define MPT_PACKAGE true" >>confdefs.h
23201
23202
23203
23204
23205
23206
23207
23208
23209 # work-around NetBSD toolchain not understanding transitive shared object dependencies at all
23210 case $host_os in #(
23211 netbsd*) :
23212 LIBS="$LIBS -lstdc++" ;; #(
23213 *) :
23214
23215 ;;
23216 esac
23217
23218 case $host_os in #(
23219 mingw32*) :
23220
23221 LIBOPENMPT_WIN32_LIBS=
23222 LIBOPENMPT_LIBS_PRIVATE_WIN32=
23223 LIBOPENMPTTEST_WIN32_LIBS="-lole32 -lrpcrt4"
23224 OPENMPT123_WIN32_LIBS=-lwinmm
23225 WIN32_CPPFLAGS="-D_UNICODE -DNOMINMAX"
23226 WIN32_CXXFLAGS="-municode -mthreads"
23227 WIN32_CFLAGS="-municode -mthreads"
23228 WIN32_CONSOLE_CXXFLAGS=-mconsole
23229 WIN32_CONSOLE_CFLAGS=-mconsole
23230 ;; #(
23231 *) :
23232
23233 LIBOPENMPT_WIN32_LIBS=
23234 LIBOPENMPT_LIBS_PRIVATE_WIN32=
23235 LIBOPENMPTTEST_WIN32_LIBS=
23236 OPENMPT123_WIN32_LIBS=
23237 WIN32_CPPFLAGS=
23238 WIN32_CXXFLAGS=
23239 WIN32_CFLAGS=
23240 WIN32_CONSOLE_CXXFLAGS=
23241 WIN32_CONSOLE_CFLAGS=
23242
23243 ;;
23244 esac
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254 LIBOPENMPT_REQUIRES_PRIVATE=
23255 LIBOPENMPT_LIBS_PRIVATE=
23256
23257 # Required libopenmpt dependency: zlib
23258 ZLIB_PKG=
23259
23260 # Check whether --with-zlib was given.
23261 if test ${with_zlib+y}
23262 then :
23263 withval=$with_zlib;
23264 fi
23265
23266 if test "x$with_zlib" != "xno"
23267 then :
23268
23269
23270 pkg_failed=no
23271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
23272 printf %s "checking for zlib... " >&6; }
23273
23274 if test -n "$ZLIB_CFLAGS"; then
23275 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
23276 elif test -n "$PKG_CONFIG"; then
23277 if test -n "$PKG_CONFIG" && \
23278 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
23279 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
23280 ac_status=$?
23281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23282 test $ac_status = 0; }; then
23283 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
23284 test "x$?" != "x0" && pkg_failed=yes
23285 else
23286 pkg_failed=yes
23287 fi
23288 else
23289 pkg_failed=untried
23290 fi
23291 if test -n "$ZLIB_LIBS"; then
23292 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
23293 elif test -n "$PKG_CONFIG"; then
23294 if test -n "$PKG_CONFIG" && \
23295 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
23296 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
23297 ac_status=$?
23298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23299 test $ac_status = 0; }; then
23300 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
23301 test "x$?" != "x0" && pkg_failed=yes
23302 else
23303 pkg_failed=yes
23304 fi
23305 else
23306 pkg_failed=untried
23307 fi
23308
23309
23310
23311 if test $pkg_failed = yes; then
23312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23313 printf "%s\n" "no" >&6; }
23314
23315 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23316 _pkg_short_errors_supported=yes
23317 else
23318 _pkg_short_errors_supported=no
23319 fi
23320 if test $_pkg_short_errors_supported = yes; then
23321 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
23322 else
23323 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
23324 fi
23325 # Put the nasty error message in config.log where it belongs
23326 echo "$ZLIB_PKG_ERRORS" >&5
23327
23328 as_fn_error $? "Unable to find zlib." "$LINENO" 5
23329 elif test $pkg_failed = untried; then
23330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23331 printf "%s\n" "no" >&6; }
23332 as_fn_error $? "Unable to find zlib." "$LINENO" 5
23333 else
23334 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
23335 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
23336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23337 printf "%s\n" "yes" >&6; }
23338
23339 ZLIB_PKG=zlib
23340 ZLIB_CFLAGS="-DMPT_WITH_ZLIB $ZLIB_CFLAGS"
23341
23342 fi
23343
23344
23345 fi
23346
23347 # Required libopenmpt dependency: mpg123
23348 MPG123_PKG=
23349
23350 # Check whether --with-mpg123 was given.
23351 if test ${with_mpg123+y}
23352 then :
23353 withval=$with_mpg123;
23354 fi
23355
23356 if test "x$with_mpg123" != "xno"
23357 then :
23358
23359
23360 pkg_failed=no
23361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmpg123 >= 1.14.0" >&5
23362 printf %s "checking for libmpg123 >= 1.14.0... " >&6; }
23363
23364 if test -n "$MPG123_CFLAGS"; then
23365 pkg_cv_MPG123_CFLAGS="$MPG123_CFLAGS"
23366 elif test -n "$PKG_CONFIG"; then
23367 if test -n "$PKG_CONFIG" && \
23368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpg123 >= 1.14.0\""; } >&5
23369 ($PKG_CONFIG --exists --print-errors "libmpg123 >= 1.14.0") 2>&5
23370 ac_status=$?
23371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23372 test $ac_status = 0; }; then
23373 pkg_cv_MPG123_CFLAGS=`$PKG_CONFIG --cflags "libmpg123 >= 1.14.0" 2>/dev/null`
23374 test "x$?" != "x0" && pkg_failed=yes
23375 else
23376 pkg_failed=yes
23377 fi
23378 else
23379 pkg_failed=untried
23380 fi
23381 if test -n "$MPG123_LIBS"; then
23382 pkg_cv_MPG123_LIBS="$MPG123_LIBS"
23383 elif test -n "$PKG_CONFIG"; then
23384 if test -n "$PKG_CONFIG" && \
23385 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpg123 >= 1.14.0\""; } >&5
23386 ($PKG_CONFIG --exists --print-errors "libmpg123 >= 1.14.0") 2>&5
23387 ac_status=$?
23388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23389 test $ac_status = 0; }; then
23390 pkg_cv_MPG123_LIBS=`$PKG_CONFIG --libs "libmpg123 >= 1.14.0" 2>/dev/null`
23391 test "x$?" != "x0" && pkg_failed=yes
23392 else
23393 pkg_failed=yes
23394 fi
23395 else
23396 pkg_failed=untried
23397 fi
23398
23399
23400
23401 if test $pkg_failed = yes; then
23402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23403 printf "%s\n" "no" >&6; }
23404
23405 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23406 _pkg_short_errors_supported=yes
23407 else
23408 _pkg_short_errors_supported=no
23409 fi
23410 if test $_pkg_short_errors_supported = yes; then
23411 MPG123_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpg123 >= 1.14.0" 2>&1`
23412 else
23413 MPG123_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmpg123 >= 1.14.0" 2>&1`
23414 fi
23415 # Put the nasty error message in config.log where it belongs
23416 echo "$MPG123_PKG_ERRORS" >&5
23417
23418 as_fn_error $? "Unable to find libmpg123." "$LINENO" 5
23419 elif test $pkg_failed = untried; then
23420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23421 printf "%s\n" "no" >&6; }
23422 as_fn_error $? "Unable to find libmpg123." "$LINENO" 5
23423 else
23424 MPG123_CFLAGS=$pkg_cv_MPG123_CFLAGS
23425 MPG123_LIBS=$pkg_cv_MPG123_LIBS
23426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23427 printf "%s\n" "yes" >&6; }
23428
23429 MPG123_PKG=libmpg123
23430 MPG123_CFLAGS="-DMPT_WITH_MPG123 $MPG123_CFLAGS"
23431
23432 fi
23433
23434
23435 fi
23436
23437 # Required libopenmpt dependency: ogg
23438 OGG_PKG=
23439
23440 # Check whether --with-ogg was given.
23441 if test ${with_ogg+y}
23442 then :
23443 withval=$with_ogg;
23444 fi
23445
23446 if test "x$with_ogg" != "xno"
23447 then :
23448
23449
23450 pkg_failed=no
23451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ogg" >&5
23452 printf %s "checking for ogg... " >&6; }
23453
23454 if test -n "$OGG_CFLAGS"; then
23455 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
23456 elif test -n "$PKG_CONFIG"; then
23457 if test -n "$PKG_CONFIG" && \
23458 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg\""; } >&5
23459 ($PKG_CONFIG --exists --print-errors "ogg") 2>&5
23460 ac_status=$?
23461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23462 test $ac_status = 0; }; then
23463 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg" 2>/dev/null`
23464 test "x$?" != "x0" && pkg_failed=yes
23465 else
23466 pkg_failed=yes
23467 fi
23468 else
23469 pkg_failed=untried
23470 fi
23471 if test -n "$OGG_LIBS"; then
23472 pkg_cv_OGG_LIBS="$OGG_LIBS"
23473 elif test -n "$PKG_CONFIG"; then
23474 if test -n "$PKG_CONFIG" && \
23475 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg\""; } >&5
23476 ($PKG_CONFIG --exists --print-errors "ogg") 2>&5
23477 ac_status=$?
23478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23479 test $ac_status = 0; }; then
23480 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg" 2>/dev/null`
23481 test "x$?" != "x0" && pkg_failed=yes
23482 else
23483 pkg_failed=yes
23484 fi
23485 else
23486 pkg_failed=untried
23487 fi
23488
23489
23490
23491 if test $pkg_failed = yes; then
23492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23493 printf "%s\n" "no" >&6; }
23494
23495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23496 _pkg_short_errors_supported=yes
23497 else
23498 _pkg_short_errors_supported=no
23499 fi
23500 if test $_pkg_short_errors_supported = yes; then
23501 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ogg" 2>&1`
23502 else
23503 OGG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ogg" 2>&1`
23504 fi
23505 # Put the nasty error message in config.log where it belongs
23506 echo "$OGG_PKG_ERRORS" >&5
23507
23508 as_fn_error $? "Unable to find libogg." "$LINENO" 5
23509 elif test $pkg_failed = untried; then
23510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23511 printf "%s\n" "no" >&6; }
23512 as_fn_error $? "Unable to find libogg." "$LINENO" 5
23513 else
23514 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
23515 OGG_LIBS=$pkg_cv_OGG_LIBS
23516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23517 printf "%s\n" "yes" >&6; }
23518
23519 OGG_PKG=ogg
23520 OGG_CFLAGS="-DMPT_WITH_OGG $OGG_CFLAGS"
23521
23522 fi
23523
23524
23525 fi
23526
23527 # Required libopenmpt dependency: vorbis
23528 VORBIS_PKG=
23529
23530 # Check whether --with-vorbis was given.
23531 if test ${with_vorbis+y}
23532 then :
23533 withval=$with_vorbis;
23534 fi
23535
23536 if test "x$with_vorbis" != "xno"
23537 then :
23538
23539
23540 pkg_failed=no
23541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for vorbis" >&5
23542 printf %s "checking for vorbis... " >&6; }
23543
23544 if test -n "$VORBIS_CFLAGS"; then
23545 pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
23546 elif test -n "$PKG_CONFIG"; then
23547 if test -n "$PKG_CONFIG" && \
23548 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis\""; } >&5
23549 ($PKG_CONFIG --exists --print-errors "vorbis") 2>&5
23550 ac_status=$?
23551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23552 test $ac_status = 0; }; then
23553 pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis" 2>/dev/null`
23554 test "x$?" != "x0" && pkg_failed=yes
23555 else
23556 pkg_failed=yes
23557 fi
23558 else
23559 pkg_failed=untried
23560 fi
23561 if test -n "$VORBIS_LIBS"; then
23562 pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
23563 elif test -n "$PKG_CONFIG"; then
23564 if test -n "$PKG_CONFIG" && \
23565 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis\""; } >&5
23566 ($PKG_CONFIG --exists --print-errors "vorbis") 2>&5
23567 ac_status=$?
23568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23569 test $ac_status = 0; }; then
23570 pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis" 2>/dev/null`
23571 test "x$?" != "x0" && pkg_failed=yes
23572 else
23573 pkg_failed=yes
23574 fi
23575 else
23576 pkg_failed=untried
23577 fi
23578
23579
23580
23581 if test $pkg_failed = yes; then
23582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23583 printf "%s\n" "no" >&6; }
23584
23585 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23586 _pkg_short_errors_supported=yes
23587 else
23588 _pkg_short_errors_supported=no
23589 fi
23590 if test $_pkg_short_errors_supported = yes; then
23591 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "vorbis" 2>&1`
23592 else
23593 VORBIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "vorbis" 2>&1`
23594 fi
23595 # Put the nasty error message in config.log where it belongs
23596 echo "$VORBIS_PKG_ERRORS" >&5
23597
23598 as_fn_error $? "Unable to find libvorbis." "$LINENO" 5
23599 elif test $pkg_failed = untried; then
23600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23601 printf "%s\n" "no" >&6; }
23602 as_fn_error $? "Unable to find libvorbis." "$LINENO" 5
23603 else
23604 VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
23605 VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
23606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23607 printf "%s\n" "yes" >&6; }
23608
23609 VORBIS_PKG=vorbis
23610 VORBIS_CFLAGS="-DMPT_WITH_VORBIS $VORBIS_CFLAGS"
23611
23612 fi
23613
23614
23615 fi
23616
23617 # Required libopenmpt dependency: vorbisfile
23618 VORBISFILE_PKG=
23619
23620 # Check whether --with-vorbisfile was given.
23621 if test ${with_vorbisfile+y}
23622 then :
23623 withval=$with_vorbisfile;
23624 fi
23625
23626 if test "x$with_vorbisfile" != "xno"
23627 then :
23628
23629
23630 pkg_failed=no
23631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for vorbisfile" >&5
23632 printf %s "checking for vorbisfile... " >&6; }
23633
23634 if test -n "$VORBISFILE_CFLAGS"; then
23635 pkg_cv_VORBISFILE_CFLAGS="$VORBISFILE_CFLAGS"
23636 elif test -n "$PKG_CONFIG"; then
23637 if test -n "$PKG_CONFIG" && \
23638 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisfile\""; } >&5
23639 ($PKG_CONFIG --exists --print-errors "vorbisfile") 2>&5
23640 ac_status=$?
23641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23642 test $ac_status = 0; }; then
23643 pkg_cv_VORBISFILE_CFLAGS=`$PKG_CONFIG --cflags "vorbisfile" 2>/dev/null`
23644 test "x$?" != "x0" && pkg_failed=yes
23645 else
23646 pkg_failed=yes
23647 fi
23648 else
23649 pkg_failed=untried
23650 fi
23651 if test -n "$VORBISFILE_LIBS"; then
23652 pkg_cv_VORBISFILE_LIBS="$VORBISFILE_LIBS"
23653 elif test -n "$PKG_CONFIG"; then
23654 if test -n "$PKG_CONFIG" && \
23655 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisfile\""; } >&5
23656 ($PKG_CONFIG --exists --print-errors "vorbisfile") 2>&5
23657 ac_status=$?
23658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23659 test $ac_status = 0; }; then
23660 pkg_cv_VORBISFILE_LIBS=`$PKG_CONFIG --libs "vorbisfile" 2>/dev/null`
23661 test "x$?" != "x0" && pkg_failed=yes
23662 else
23663 pkg_failed=yes
23664 fi
23665 else
23666 pkg_failed=untried
23667 fi
23668
23669
23670
23671 if test $pkg_failed = yes; then
23672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23673 printf "%s\n" "no" >&6; }
23674
23675 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23676 _pkg_short_errors_supported=yes
23677 else
23678 _pkg_short_errors_supported=no
23679 fi
23680 if test $_pkg_short_errors_supported = yes; then
23681 VORBISFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "vorbisfile" 2>&1`
23682 else
23683 VORBISFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "vorbisfile" 2>&1`
23684 fi
23685 # Put the nasty error message in config.log where it belongs
23686 echo "$VORBISFILE_PKG_ERRORS" >&5
23687
23688 as_fn_error $? "Unable to find libvorbisfile." "$LINENO" 5
23689 elif test $pkg_failed = untried; then
23690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23691 printf "%s\n" "no" >&6; }
23692 as_fn_error $? "Unable to find libvorbisfile." "$LINENO" 5
23693 else
23694 VORBISFILE_CFLAGS=$pkg_cv_VORBISFILE_CFLAGS
23695 VORBISFILE_LIBS=$pkg_cv_VORBISFILE_LIBS
23696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23697 printf "%s\n" "yes" >&6; }
23698
23699 VORBISFILE_PKG=vorbisfile
23700 VORBISFILE_CFLAGS="-DMPT_WITH_VORBISFILE $VORBISFILE_CFLAGS"
23701
23702 fi
23703
23704
23705 fi
23706
23707
23708 LIBOPENMPT_REQUIRES_PRIVATE="$ZLIB_PKG $MPG123_PKG $OGG_PKG $VORBIS_PKG $VORBISFILE_PKG"
23709 LIBOPENMPT_LIBS_PRIVATE="$CXXSTDLIB_PCLIBSPRIVATE $LIBOPENMPT_LIBS_PRIVATE_WIN32"
23710
23711
23712
23713
23714 # openmpt123
23715 # Check whether --enable-openmpt123 was given.
23716 if test ${enable_openmpt123+y}
23717 then :
23718 enableval=$enable_openmpt123;
23719 fi
23720
23721 if test "x$enable_openmpt123" != "xno"; then
23722 ENABLE_OPENMPT123_TRUE=
23723 ENABLE_OPENMPT123_FALSE='#'
23724 else
23725 ENABLE_OPENMPT123_TRUE='#'
23726 ENABLE_OPENMPT123_FALSE=
23727 fi
23728
23729
23730
23731 # examples
23732 # Check whether --enable-examples was given.
23733 if test ${enable_examples+y}
23734 then :
23735 enableval=$enable_examples;
23736 fi
23737
23738 if test "x$enable_examples" != "xno"; then
23739 ENABLE_EXAMPLES_TRUE=
23740 ENABLE_EXAMPLES_FALSE='#'
23741 else
23742 ENABLE_EXAMPLES_TRUE='#'
23743 ENABLE_EXAMPLES_FALSE=
23744 fi
23745
23746
23747
23748 # tests
23749 # Check whether --enable-tests was given.
23750 if test ${enable_tests+y}
23751 then :
23752 enableval=$enable_tests;
23753 fi
23754
23755 if test "x$enable_tests" != "xno"; then
23756 ENABLE_TESTS_TRUE=
23757 ENABLE_TESTS_FALSE='#'
23758 else
23759 ENABLE_TESTS_TRUE='#'
23760 ENABLE_TESTS_FALSE=
23761 fi
23762
23763
23764
23765 # Optional openmpt123 dependency
23766
23767 # Check whether --with-pulseaudio was given.
23768 if test ${with_pulseaudio+y}
23769 then :
23770 withval=$with_pulseaudio;
23771 fi
23772
23773 if test "x$enable_openmpt123" != "xno"
23774 then :
23775
23776 case $host_os in #(
23777 linux*) :
23778
23779 if test "x$with_pulseaudio" != "xno"
23780 then :
23781
23782
23783 pkg_failed=no
23784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse libpulse-simple" >&5
23785 printf %s "checking for libpulse libpulse-simple... " >&6; }
23786
23787 if test -n "$PULSEAUDIO_CFLAGS"; then
23788 pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
23789 elif test -n "$PKG_CONFIG"; then
23790 if test -n "$PKG_CONFIG" && \
23791 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse libpulse-simple\""; } >&5
23792 ($PKG_CONFIG --exists --print-errors "libpulse libpulse-simple") 2>&5
23793 ac_status=$?
23794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23795 test $ac_status = 0; }; then
23796 pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse libpulse-simple" 2>/dev/null`
23797 test "x$?" != "x0" && pkg_failed=yes
23798 else
23799 pkg_failed=yes
23800 fi
23801 else
23802 pkg_failed=untried
23803 fi
23804 if test -n "$PULSEAUDIO_LIBS"; then
23805 pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
23806 elif test -n "$PKG_CONFIG"; then
23807 if test -n "$PKG_CONFIG" && \
23808 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse libpulse-simple\""; } >&5
23809 ($PKG_CONFIG --exists --print-errors "libpulse libpulse-simple") 2>&5
23810 ac_status=$?
23811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; then
23813 pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse libpulse-simple" 2>/dev/null`
23814 test "x$?" != "x0" && pkg_failed=yes
23815 else
23816 pkg_failed=yes
23817 fi
23818 else
23819 pkg_failed=untried
23820 fi
23821
23822
23823
23824 if test $pkg_failed = yes; then
23825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23826 printf "%s\n" "no" >&6; }
23827
23828 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23829 _pkg_short_errors_supported=yes
23830 else
23831 _pkg_short_errors_supported=no
23832 fi
23833 if test $_pkg_short_errors_supported = yes; then
23834 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse libpulse-simple" 2>&1`
23835 else
23836 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse libpulse-simple" 2>&1`
23837 fi
23838 # Put the nasty error message in config.log where it belongs
23839 echo "$PULSEAUDIO_PKG_ERRORS" >&5
23840
23841
23842 have_pulseaudio=0
23843 as_fn_error $? "Unable to find libpulse and/or libpulse-simple." "$LINENO" 5
23844
23845
23846 elif test $pkg_failed = untried; then
23847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23848 printf "%s\n" "no" >&6; }
23849
23850 have_pulseaudio=0
23851 as_fn_error $? "Unable to find libpulse and/or libpulse-simple." "$LINENO" 5
23852
23853
23854 else
23855 PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
23856 PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
23857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23858 printf "%s\n" "yes" >&6; }
23859
23860 have_pulseaudio=1
23861 PULSEAUDIO_CFLAGS="-DMPT_WITH_PULSEAUDIO $PULSEAUDIO_CFLAGS"
23862
23863 fi
23864
23865 else $as_nop
23866
23867 have_pulseaudio=0
23868
23869
23870 fi
23871 ;;
23872 *)
23873 if test "x$with_pulseaudio" = "xyes"
23874 then :
23875
23876
23877 pkg_failed=no
23878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse libpulse-simple" >&5
23879 printf %s "checking for libpulse libpulse-simple... " >&6; }
23880
23881 if test -n "$PULSEAUDIO_CFLAGS"; then
23882 pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
23883 elif test -n "$PKG_CONFIG"; then
23884 if test -n "$PKG_CONFIG" && \
23885 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse libpulse-simple\""; } >&5
23886 ($PKG_CONFIG --exists --print-errors "libpulse libpulse-simple") 2>&5
23887 ac_status=$?
23888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23889 test $ac_status = 0; }; then
23890 pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse libpulse-simple" 2>/dev/null`
23891 test "x$?" != "x0" && pkg_failed=yes
23892 else
23893 pkg_failed=yes
23894 fi
23895 else
23896 pkg_failed=untried
23897 fi
23898 if test -n "$PULSEAUDIO_LIBS"; then
23899 pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
23900 elif test -n "$PKG_CONFIG"; then
23901 if test -n "$PKG_CONFIG" && \
23902 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse libpulse-simple\""; } >&5
23903 ($PKG_CONFIG --exists --print-errors "libpulse libpulse-simple") 2>&5
23904 ac_status=$?
23905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23906 test $ac_status = 0; }; then
23907 pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse libpulse-simple" 2>/dev/null`
23908 test "x$?" != "x0" && pkg_failed=yes
23909 else
23910 pkg_failed=yes
23911 fi
23912 else
23913 pkg_failed=untried
23914 fi
23915
23916
23917
23918 if test $pkg_failed = yes; then
23919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23920 printf "%s\n" "no" >&6; }
23921
23922 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23923 _pkg_short_errors_supported=yes
23924 else
23925 _pkg_short_errors_supported=no
23926 fi
23927 if test $_pkg_short_errors_supported = yes; then
23928 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse libpulse-simple" 2>&1`
23929 else
23930 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse libpulse-simple" 2>&1`
23931 fi
23932 # Put the nasty error message in config.log where it belongs
23933 echo "$PULSEAUDIO_PKG_ERRORS" >&5
23934
23935
23936 have_pulseaudio=0
23937 as_fn_error $? "Unable to find libpulse and/or libpulse-simple." "$LINENO" 5
23938
23939
23940 elif test $pkg_failed = untried; then
23941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23942 printf "%s\n" "no" >&6; }
23943
23944 have_pulseaudio=0
23945 as_fn_error $? "Unable to find libpulse and/or libpulse-simple." "$LINENO" 5
23946
23947
23948 else
23949 PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
23950 PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
23951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23952 printf "%s\n" "yes" >&6; }
23953
23954 have_pulseaudio=1
23955 PULSEAUDIO_CFLAGS="-DMPT_WITH_PULSEAUDIO $PULSEAUDIO_CFLAGS"
23956
23957 fi
23958
23959 else $as_nop
23960
23961 have_pulseaudio=0
23962
23963
23964 fi
23965 ;; #(
23966 *) :
23967
23968 ;;
23969 esac
23970
23971 else $as_nop
23972 have_pulseaudio=0
23973 fi
23974
23975 # Optional openmpt123 and examples dependency
23976
23977 # Check whether --with-portaudio was given.
23978 if test ${with_portaudio+y}
23979 then :
23980 withval=$with_portaudio;
23981 fi
23982
23983 if test "x$enable_openmpt123$enable_examples" != "xnono"
23984 then :
23985
23986 if test "x$with_portaudio" != "xno"
23987 then :
23988
23989
23990 pkg_failed=no
23991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for portaudio-2.0" >&5
23992 printf %s "checking for portaudio-2.0... " >&6; }
23993
23994 if test -n "$PORTAUDIO_CFLAGS"; then
23995 pkg_cv_PORTAUDIO_CFLAGS="$PORTAUDIO_CFLAGS"
23996 elif test -n "$PKG_CONFIG"; then
23997 if test -n "$PKG_CONFIG" && \
23998 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0\""; } >&5
23999 ($PKG_CONFIG --exists --print-errors "portaudio-2.0") 2>&5
24000 ac_status=$?
24001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24002 test $ac_status = 0; }; then
24003 pkg_cv_PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0" 2>/dev/null`
24004 test "x$?" != "x0" && pkg_failed=yes
24005 else
24006 pkg_failed=yes
24007 fi
24008 else
24009 pkg_failed=untried
24010 fi
24011 if test -n "$PORTAUDIO_LIBS"; then
24012 pkg_cv_PORTAUDIO_LIBS="$PORTAUDIO_LIBS"
24013 elif test -n "$PKG_CONFIG"; then
24014 if test -n "$PKG_CONFIG" && \
24015 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0\""; } >&5
24016 ($PKG_CONFIG --exists --print-errors "portaudio-2.0") 2>&5
24017 ac_status=$?
24018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24019 test $ac_status = 0; }; then
24020 pkg_cv_PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0" 2>/dev/null`
24021 test "x$?" != "x0" && pkg_failed=yes
24022 else
24023 pkg_failed=yes
24024 fi
24025 else
24026 pkg_failed=untried
24027 fi
24028
24029
24030
24031 if test $pkg_failed = yes; then
24032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24033 printf "%s\n" "no" >&6; }
24034
24035 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24036 _pkg_short_errors_supported=yes
24037 else
24038 _pkg_short_errors_supported=no
24039 fi
24040 if test $_pkg_short_errors_supported = yes; then
24041 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "portaudio-2.0" 2>&1`
24042 else
24043 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "portaudio-2.0" 2>&1`
24044 fi
24045 # Put the nasty error message in config.log where it belongs
24046 echo "$PORTAUDIO_PKG_ERRORS" >&5
24047
24048
24049 have_portaudio=0
24050 as_fn_error $? "Unable to find libportaudio." "$LINENO" 5
24051
24052
24053 elif test $pkg_failed = untried; then
24054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24055 printf "%s\n" "no" >&6; }
24056
24057 have_portaudio=0
24058 as_fn_error $? "Unable to find libportaudio." "$LINENO" 5
24059
24060
24061 else
24062 PORTAUDIO_CFLAGS=$pkg_cv_PORTAUDIO_CFLAGS
24063 PORTAUDIO_LIBS=$pkg_cv_PORTAUDIO_LIBS
24064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24065 printf "%s\n" "yes" >&6; }
24066
24067 have_portaudio=1
24068 PORTAUDIO_CFLAGS="-DMPT_WITH_PORTAUDIO $PORTAUDIO_CFLAGS"
24069
24070 fi
24071
24072 else $as_nop
24073
24074 have_portaudio=0
24075
24076
24077 fi
24078
24079 else $as_nop
24080 have_portaudio=0
24081 fi
24082 if test x$have_portaudio = x1; then
24083 HAVE_PORTAUDIO_TRUE=
24084 HAVE_PORTAUDIO_FALSE='#'
24085 else
24086 HAVE_PORTAUDIO_TRUE='#'
24087 HAVE_PORTAUDIO_FALSE=
24088 fi
24089
24090
24091 # Optional examples dependency: PortAudio C++
24092
24093 # Check whether --with-portaudiocpp was given.
24094 if test ${with_portaudiocpp+y}
24095 then :
24096 withval=$with_portaudiocpp;
24097 fi
24098
24099 if test "x$enable_examples" != "xno"
24100 then :
24101
24102 if test "x$with_portaudiocpp" != "xno"
24103 then :
24104
24105
24106 pkg_failed=no
24107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for portaudiocpp" >&5
24108 printf %s "checking for portaudiocpp... " >&6; }
24109
24110 if test -n "$PORTAUDIOCPP_CFLAGS"; then
24111 pkg_cv_PORTAUDIOCPP_CFLAGS="$PORTAUDIOCPP_CFLAGS"
24112 elif test -n "$PKG_CONFIG"; then
24113 if test -n "$PKG_CONFIG" && \
24114 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudiocpp\""; } >&5
24115 ($PKG_CONFIG --exists --print-errors "portaudiocpp") 2>&5
24116 ac_status=$?
24117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24118 test $ac_status = 0; }; then
24119 pkg_cv_PORTAUDIOCPP_CFLAGS=`$PKG_CONFIG --cflags "portaudiocpp" 2>/dev/null`
24120 test "x$?" != "x0" && pkg_failed=yes
24121 else
24122 pkg_failed=yes
24123 fi
24124 else
24125 pkg_failed=untried
24126 fi
24127 if test -n "$PORTAUDIOCPP_LIBS"; then
24128 pkg_cv_PORTAUDIOCPP_LIBS="$PORTAUDIOCPP_LIBS"
24129 elif test -n "$PKG_CONFIG"; then
24130 if test -n "$PKG_CONFIG" && \
24131 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudiocpp\""; } >&5
24132 ($PKG_CONFIG --exists --print-errors "portaudiocpp") 2>&5
24133 ac_status=$?
24134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24135 test $ac_status = 0; }; then
24136 pkg_cv_PORTAUDIOCPP_LIBS=`$PKG_CONFIG --libs "portaudiocpp" 2>/dev/null`
24137 test "x$?" != "x0" && pkg_failed=yes
24138 else
24139 pkg_failed=yes
24140 fi
24141 else
24142 pkg_failed=untried
24143 fi
24144
24145
24146
24147 if test $pkg_failed = yes; then
24148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24149 printf "%s\n" "no" >&6; }
24150
24151 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24152 _pkg_short_errors_supported=yes
24153 else
24154 _pkg_short_errors_supported=no
24155 fi
24156 if test $_pkg_short_errors_supported = yes; then
24157 PORTAUDIOCPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "portaudiocpp" 2>&1`
24158 else
24159 PORTAUDIOCPP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "portaudiocpp" 2>&1`
24160 fi
24161 # Put the nasty error message in config.log where it belongs
24162 echo "$PORTAUDIOCPP_PKG_ERRORS" >&5
24163
24164
24165 have_portaudiocpp=0
24166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libportaudiocpp." >&5
24167 printf "%s\n" "$as_me: WARNING: Unable to find libportaudiocpp." >&2;}
24168
24169
24170 elif test $pkg_failed = untried; then
24171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24172 printf "%s\n" "no" >&6; }
24173
24174 have_portaudiocpp=0
24175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libportaudiocpp." >&5
24176 printf "%s\n" "$as_me: WARNING: Unable to find libportaudiocpp." >&2;}
24177
24178
24179 else
24180 PORTAUDIOCPP_CFLAGS=$pkg_cv_PORTAUDIOCPP_CFLAGS
24181 PORTAUDIOCPP_LIBS=$pkg_cv_PORTAUDIOCPP_LIBS
24182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24183 printf "%s\n" "yes" >&6; }
24184
24185 have_portaudiocpp=1
24186 PORTAUDIOCPP_CFLAGS="-DMPT_WITH_PORTAUDIOCPP $PORTAUDIOCPP_CFLAGS"
24187
24188 fi
24189
24190 else $as_nop
24191
24192 have_portaudiocpp=0
24193
24194
24195 fi
24196
24197 else $as_nop
24198 have_portaudiocpp=0
24199 fi
24200 if test x$have_portaudiocpp = x1; then
24201 HAVE_PORTAUDIOCPP_TRUE=
24202 HAVE_PORTAUDIOCPP_FALSE='#'
24203 else
24204 HAVE_PORTAUDIOCPP_TRUE='#'
24205 HAVE_PORTAUDIOCPP_FALSE=
24206 fi
24207
24208
24209 # Optional disabled openmpt123 dependency: libsdl2
24210
24211 # Check whether --with-sdl2 was given.
24212 if test ${with_sdl2+y}
24213 then :
24214 withval=$with_sdl2;
24215 fi
24216
24217 if test "x$enable_openmpt123" != "xno"
24218 then :
24219
24220 if test "x$with_sdl2" = "xyes"
24221 then :
24222
24223
24224 pkg_failed=no
24225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sdl2 >= 2.0.4" >&5
24226 printf %s "checking for sdl2 >= 2.0.4... " >&6; }
24227
24228 if test -n "$SDL2_CFLAGS"; then
24229 pkg_cv_SDL2_CFLAGS="$SDL2_CFLAGS"
24230 elif test -n "$PKG_CONFIG"; then
24231 if test -n "$PKG_CONFIG" && \
24232 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= 2.0.4\""; } >&5
24233 ($PKG_CONFIG --exists --print-errors "sdl2 >= 2.0.4") 2>&5
24234 ac_status=$?
24235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24236 test $ac_status = 0; }; then
24237 pkg_cv_SDL2_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= 2.0.4" 2>/dev/null`
24238 test "x$?" != "x0" && pkg_failed=yes
24239 else
24240 pkg_failed=yes
24241 fi
24242 else
24243 pkg_failed=untried
24244 fi
24245 if test -n "$SDL2_LIBS"; then
24246 pkg_cv_SDL2_LIBS="$SDL2_LIBS"
24247 elif test -n "$PKG_CONFIG"; then
24248 if test -n "$PKG_CONFIG" && \
24249 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= 2.0.4\""; } >&5
24250 ($PKG_CONFIG --exists --print-errors "sdl2 >= 2.0.4") 2>&5
24251 ac_status=$?
24252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24253 test $ac_status = 0; }; then
24254 pkg_cv_SDL2_LIBS=`$PKG_CONFIG --libs "sdl2 >= 2.0.4" 2>/dev/null`
24255 test "x$?" != "x0" && pkg_failed=yes
24256 else
24257 pkg_failed=yes
24258 fi
24259 else
24260 pkg_failed=untried
24261 fi
24262
24263
24264
24265 if test $pkg_failed = yes; then
24266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24267 printf "%s\n" "no" >&6; }
24268
24269 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24270 _pkg_short_errors_supported=yes
24271 else
24272 _pkg_short_errors_supported=no
24273 fi
24274 if test $_pkg_short_errors_supported = yes; then
24275 SDL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 >= 2.0.4" 2>&1`
24276 else
24277 SDL2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 >= 2.0.4" 2>&1`
24278 fi
24279 # Put the nasty error message in config.log where it belongs
24280 echo "$SDL2_PKG_ERRORS" >&5
24281
24282 as_fn_error $? "Unable to find libsdl2." "$LINENO" 5
24283 elif test $pkg_failed = untried; then
24284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24285 printf "%s\n" "no" >&6; }
24286 as_fn_error $? "Unable to find libsdl2." "$LINENO" 5
24287 else
24288 SDL2_CFLAGS=$pkg_cv_SDL2_CFLAGS
24289 SDL2_LIBS=$pkg_cv_SDL2_LIBS
24290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24291 printf "%s\n" "yes" >&6; }
24292 SDL2_CFLAGS="-DMPT_WITH_SDL2 $SDL2_CFLAGS"
24293 fi
24294
24295
24296 fi
24297
24298 fi
24299
24300 # Optional openmpt123 dependency: libsndfile
24301
24302 # Check whether --with-sndfile was given.
24303 if test ${with_sndfile+y}
24304 then :
24305 withval=$with_sndfile;
24306 fi
24307
24308 if test "x$enable_openmpt123" != "xno"
24309 then :
24310
24311 if test "x$with_sndfile" != "xno"
24312 then :
24313
24314
24315 pkg_failed=no
24316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndfile" >&5
24317 printf %s "checking for sndfile... " >&6; }
24318
24319 if test -n "$SNDFILE_CFLAGS"; then
24320 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
24321 elif test -n "$PKG_CONFIG"; then
24322 if test -n "$PKG_CONFIG" && \
24323 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
24324 ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
24325 ac_status=$?
24326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24327 test $ac_status = 0; }; then
24328 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile" 2>/dev/null`
24329 test "x$?" != "x0" && pkg_failed=yes
24330 else
24331 pkg_failed=yes
24332 fi
24333 else
24334 pkg_failed=untried
24335 fi
24336 if test -n "$SNDFILE_LIBS"; then
24337 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
24338 elif test -n "$PKG_CONFIG"; then
24339 if test -n "$PKG_CONFIG" && \
24340 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
24341 ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
24342 ac_status=$?
24343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24344 test $ac_status = 0; }; then
24345 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile" 2>/dev/null`
24346 test "x$?" != "x0" && pkg_failed=yes
24347 else
24348 pkg_failed=yes
24349 fi
24350 else
24351 pkg_failed=untried
24352 fi
24353
24354
24355
24356 if test $pkg_failed = yes; then
24357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24358 printf "%s\n" "no" >&6; }
24359
24360 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24361 _pkg_short_errors_supported=yes
24362 else
24363 _pkg_short_errors_supported=no
24364 fi
24365 if test $_pkg_short_errors_supported = yes; then
24366 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile" 2>&1`
24367 else
24368 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile" 2>&1`
24369 fi
24370 # Put the nasty error message in config.log where it belongs
24371 echo "$SNDFILE_PKG_ERRORS" >&5
24372
24373 as_fn_error $? "Unable to find libsndfile." "$LINENO" 5
24374 elif test $pkg_failed = untried; then
24375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24376 printf "%s\n" "no" >&6; }
24377 as_fn_error $? "Unable to find libsndfile." "$LINENO" 5
24378 else
24379 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
24380 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
24381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24382 printf "%s\n" "yes" >&6; }
24383 SNDFILE_CFLAGS="-DMPT_WITH_SNDFILE $SNDFILE_CFLAGS"
24384 fi
24385
24386
24387 fi
24388
24389 fi
24390
24391 # Optional openmpt123 dependency: libFLAC
24392
24393 # Check whether --with-flac was given.
24394 if test ${with_flac+y}
24395 then :
24396 withval=$with_flac;
24397 fi
24398
24399 if test "x$enable_openmpt123" != "xno"
24400 then :
24401
24402 if test "x$with_flac" != "xno"
24403 then :
24404
24405
24406 pkg_failed=no
24407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flac >= 1.3.0" >&5
24408 printf %s "checking for flac >= 1.3.0... " >&6; }
24409
24410 if test -n "$FLAC_CFLAGS"; then
24411 pkg_cv_FLAC_CFLAGS="$FLAC_CFLAGS"
24412 elif test -n "$PKG_CONFIG"; then
24413 if test -n "$PKG_CONFIG" && \
24414 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.3.0\""; } >&5
24415 ($PKG_CONFIG --exists --print-errors "flac >= 1.3.0") 2>&5
24416 ac_status=$?
24417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24418 test $ac_status = 0; }; then
24419 pkg_cv_FLAC_CFLAGS=`$PKG_CONFIG --cflags "flac >= 1.3.0" 2>/dev/null`
24420 test "x$?" != "x0" && pkg_failed=yes
24421 else
24422 pkg_failed=yes
24423 fi
24424 else
24425 pkg_failed=untried
24426 fi
24427 if test -n "$FLAC_LIBS"; then
24428 pkg_cv_FLAC_LIBS="$FLAC_LIBS"
24429 elif test -n "$PKG_CONFIG"; then
24430 if test -n "$PKG_CONFIG" && \
24431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.3.0\""; } >&5
24432 ($PKG_CONFIG --exists --print-errors "flac >= 1.3.0") 2>&5
24433 ac_status=$?
24434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24435 test $ac_status = 0; }; then
24436 pkg_cv_FLAC_LIBS=`$PKG_CONFIG --libs "flac >= 1.3.0" 2>/dev/null`
24437 test "x$?" != "x0" && pkg_failed=yes
24438 else
24439 pkg_failed=yes
24440 fi
24441 else
24442 pkg_failed=untried
24443 fi
24444
24445
24446
24447 if test $pkg_failed = yes; then
24448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24449 printf "%s\n" "no" >&6; }
24450
24451 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24452 _pkg_short_errors_supported=yes
24453 else
24454 _pkg_short_errors_supported=no
24455 fi
24456 if test $_pkg_short_errors_supported = yes; then
24457 FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "flac >= 1.3.0" 2>&1`
24458 else
24459 FLAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "flac >= 1.3.0" 2>&1`
24460 fi
24461 # Put the nasty error message in config.log where it belongs
24462 echo "$FLAC_PKG_ERRORS" >&5
24463
24464 as_fn_error $? "Unable to find libflac >= 1.3.0." "$LINENO" 5
24465 elif test $pkg_failed = untried; then
24466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24467 printf "%s\n" "no" >&6; }
24468 as_fn_error $? "Unable to find libflac >= 1.3.0." "$LINENO" 5
24469 else
24470 FLAC_CFLAGS=$pkg_cv_FLAC_CFLAGS
24471 FLAC_LIBS=$pkg_cv_FLAC_LIBS
24472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24473 printf "%s\n" "yes" >&6; }
24474 FLAC_CFLAGS="-DMPT_WITH_FLAC $FLAC_CFLAGS"
24475 fi
24476
24477
24478 fi
24479
24480 fi
24481
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496 # Files:
24497 DX_PROJECT=libopenmpt
24498
24499 DX_CONFIG='Doxyfile'
24500
24501 DX_DOCDIR='doxygen-doc'
24502
24503
24504 # Environment variables used inside doxygen.cfg:
24505 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
24506 SRCDIR=$srcdir
24507
24508 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
24509 PROJECT=$DX_PROJECT
24510
24511 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
24512
24513
24514 # Doxygen itself:
24515
24516
24517
24518 # Check whether --enable-doxygen-doc was given.
24519 if test ${enable_doxygen_doc+y}
24520 then :
24521 enableval=$enable_doxygen_doc;
24522 case "$enableval" in
24523 #(
24524 y|Y|yes|Yes|YES)
24525 DX_FLAG_doc=1
24526
24527
24528 ;; #(
24529 n|N|no|No|NO)
24530 DX_FLAG_doc=0
24531
24532 ;; #(
24533 *)
24534 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
24535 ;;
24536 esac
24537
24538 else $as_nop
24539
24540 DX_FLAG_doc=1
24541
24542
24543
24544 fi
24545
24546 if test "$DX_FLAG_doc" = 1; then
24547
24548 if test -n "$ac_tool_prefix"; then
24549 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
24550 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
24551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24552 printf %s "checking for $ac_word... " >&6; }
24553 if test ${ac_cv_path_DX_DOXYGEN+y}
24554 then :
24555 printf %s "(cached) " >&6
24556 else $as_nop
24557 case $DX_DOXYGEN in
24558 [\\/]* | ?:[\\/]*)
24559 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
24560 ;;
24561 *)
24562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24563 for as_dir in $PATH
24564 do
24565 IFS=$as_save_IFS
24566 case $as_dir in #(((
24567 '') as_dir=./ ;;
24568 */) ;;
24569 *) as_dir=$as_dir/ ;;
24570 esac
24571 for ac_exec_ext in '' $ac_executable_extensions; do
24572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24573 ac_cv_path_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
24574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24575 break 2
24576 fi
24577 done
24578 done
24579 IFS=$as_save_IFS
24580
24581 ;;
24582 esac
24583 fi
24584 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
24585 if test -n "$DX_DOXYGEN"; then
24586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
24587 printf "%s\n" "$DX_DOXYGEN" >&6; }
24588 else
24589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24590 printf "%s\n" "no" >&6; }
24591 fi
24592
24593
24594 fi
24595 if test -z "$ac_cv_path_DX_DOXYGEN"; then
24596 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
24597 # Extract the first word of "doxygen", so it can be a program name with args.
24598 set dummy doxygen; ac_word=$2
24599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24600 printf %s "checking for $ac_word... " >&6; }
24601 if test ${ac_cv_path_ac_pt_DX_DOXYGEN+y}
24602 then :
24603 printf %s "(cached) " >&6
24604 else $as_nop
24605 case $ac_pt_DX_DOXYGEN in
24606 [\\/]* | ?:[\\/]*)
24607 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
24608 ;;
24609 *)
24610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24611 for as_dir in $PATH
24612 do
24613 IFS=$as_save_IFS
24614 case $as_dir in #(((
24615 '') as_dir=./ ;;
24616 */) ;;
24617 *) as_dir=$as_dir/ ;;
24618 esac
24619 for ac_exec_ext in '' $ac_executable_extensions; do
24620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24621 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
24622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24623 break 2
24624 fi
24625 done
24626 done
24627 IFS=$as_save_IFS
24628
24629 ;;
24630 esac
24631 fi
24632 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
24633 if test -n "$ac_pt_DX_DOXYGEN"; then
24634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
24635 printf "%s\n" "$ac_pt_DX_DOXYGEN" >&6; }
24636 else
24637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24638 printf "%s\n" "no" >&6; }
24639 fi
24640
24641 if test "x$ac_pt_DX_DOXYGEN" = x; then
24642 DX_DOXYGEN=""
24643 else
24644 case $cross_compiling:$ac_tool_warned in
24645 yes:)
24646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24647 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24648 ac_tool_warned=yes ;;
24649 esac
24650 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
24651 fi
24652 else
24653 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
24654 fi
24655
24656 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
24657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
24658 printf "%s\n" "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
24659 DX_FLAG_doc=0
24660
24661 fi
24662
24663
24664 if test -n "$ac_tool_prefix"; then
24665 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
24666 set dummy ${ac_tool_prefix}perl; ac_word=$2
24667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24668 printf %s "checking for $ac_word... " >&6; }
24669 if test ${ac_cv_path_DX_PERL+y}
24670 then :
24671 printf %s "(cached) " >&6
24672 else $as_nop
24673 case $DX_PERL in
24674 [\\/]* | ?:[\\/]*)
24675 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
24676 ;;
24677 *)
24678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24679 for as_dir in $PATH
24680 do
24681 IFS=$as_save_IFS
24682 case $as_dir in #(((
24683 '') as_dir=./ ;;
24684 */) ;;
24685 *) as_dir=$as_dir/ ;;
24686 esac
24687 for ac_exec_ext in '' $ac_executable_extensions; do
24688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24689 ac_cv_path_DX_PERL="$as_dir$ac_word$ac_exec_ext"
24690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24691 break 2
24692 fi
24693 done
24694 done
24695 IFS=$as_save_IFS
24696
24697 ;;
24698 esac
24699 fi
24700 DX_PERL=$ac_cv_path_DX_PERL
24701 if test -n "$DX_PERL"; then
24702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
24703 printf "%s\n" "$DX_PERL" >&6; }
24704 else
24705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24706 printf "%s\n" "no" >&6; }
24707 fi
24708
24709
24710 fi
24711 if test -z "$ac_cv_path_DX_PERL"; then
24712 ac_pt_DX_PERL=$DX_PERL
24713 # Extract the first word of "perl", so it can be a program name with args.
24714 set dummy perl; ac_word=$2
24715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24716 printf %s "checking for $ac_word... " >&6; }
24717 if test ${ac_cv_path_ac_pt_DX_PERL+y}
24718 then :
24719 printf %s "(cached) " >&6
24720 else $as_nop
24721 case $ac_pt_DX_PERL in
24722 [\\/]* | ?:[\\/]*)
24723 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
24724 ;;
24725 *)
24726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24727 for as_dir in $PATH
24728 do
24729 IFS=$as_save_IFS
24730 case $as_dir in #(((
24731 '') as_dir=./ ;;
24732 */) ;;
24733 *) as_dir=$as_dir/ ;;
24734 esac
24735 for ac_exec_ext in '' $ac_executable_extensions; do
24736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24737 ac_cv_path_ac_pt_DX_PERL="$as_dir$ac_word$ac_exec_ext"
24738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24739 break 2
24740 fi
24741 done
24742 done
24743 IFS=$as_save_IFS
24744
24745 ;;
24746 esac
24747 fi
24748 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
24749 if test -n "$ac_pt_DX_PERL"; then
24750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
24751 printf "%s\n" "$ac_pt_DX_PERL" >&6; }
24752 else
24753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24754 printf "%s\n" "no" >&6; }
24755 fi
24756
24757 if test "x$ac_pt_DX_PERL" = x; then
24758 DX_PERL=""
24759 else
24760 case $cross_compiling:$ac_tool_warned in
24761 yes:)
24762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24763 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24764 ac_tool_warned=yes ;;
24765 esac
24766 DX_PERL=$ac_pt_DX_PERL
24767 fi
24768 else
24769 DX_PERL="$ac_cv_path_DX_PERL"
24770 fi
24771
24772 if test "$DX_FLAG_doc$DX_PERL" = 1; then
24773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
24774 printf "%s\n" "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
24775 DX_FLAG_doc=0
24776
24777 fi
24778
24779 :
24780 fi
24781 if test "$DX_FLAG_doc" = 1; then
24782 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
24783 PERL_PATH=$DX_PERL
24784
24785 :
24786 else
24787
24788 :
24789 fi
24790
24791
24792 # Dot for graphics:
24793
24794
24795
24796 # Check whether --enable-doxygen-dot was given.
24797 if test ${enable_doxygen_dot+y}
24798 then :
24799 enableval=$enable_doxygen_dot;
24800 case "$enableval" in
24801 #(
24802 y|Y|yes|Yes|YES)
24803 DX_FLAG_dot=1
24804
24805
24806 test "$DX_FLAG_doc" = "1" \
24807 || as_fn_error $? "doxygen-dot requires doxygen-doc" "$LINENO" 5
24808
24809 ;; #(
24810 n|N|no|No|NO)
24811 DX_FLAG_dot=0
24812
24813 ;; #(
24814 *)
24815 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
24816 ;;
24817 esac
24818
24819 else $as_nop
24820
24821 DX_FLAG_dot=0
24822
24823
24824 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
24825
24826
24827
24828 fi
24829
24830 if test "$DX_FLAG_dot" = 1; then
24831
24832 if test -n "$ac_tool_prefix"; then
24833 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
24834 set dummy ${ac_tool_prefix}dot; ac_word=$2
24835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24836 printf %s "checking for $ac_word... " >&6; }
24837 if test ${ac_cv_path_DX_DOT+y}
24838 then :
24839 printf %s "(cached) " >&6
24840 else $as_nop
24841 case $DX_DOT in
24842 [\\/]* | ?:[\\/]*)
24843 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
24844 ;;
24845 *)
24846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24847 for as_dir in $PATH
24848 do
24849 IFS=$as_save_IFS
24850 case $as_dir in #(((
24851 '') as_dir=./ ;;
24852 */) ;;
24853 *) as_dir=$as_dir/ ;;
24854 esac
24855 for ac_exec_ext in '' $ac_executable_extensions; do
24856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24857 ac_cv_path_DX_DOT="$as_dir$ac_word$ac_exec_ext"
24858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24859 break 2
24860 fi
24861 done
24862 done
24863 IFS=$as_save_IFS
24864
24865 ;;
24866 esac
24867 fi
24868 DX_DOT=$ac_cv_path_DX_DOT
24869 if test -n "$DX_DOT"; then
24870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
24871 printf "%s\n" "$DX_DOT" >&6; }
24872 else
24873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24874 printf "%s\n" "no" >&6; }
24875 fi
24876
24877
24878 fi
24879 if test -z "$ac_cv_path_DX_DOT"; then
24880 ac_pt_DX_DOT=$DX_DOT
24881 # Extract the first word of "dot", so it can be a program name with args.
24882 set dummy dot; ac_word=$2
24883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24884 printf %s "checking for $ac_word... " >&6; }
24885 if test ${ac_cv_path_ac_pt_DX_DOT+y}
24886 then :
24887 printf %s "(cached) " >&6
24888 else $as_nop
24889 case $ac_pt_DX_DOT in
24890 [\\/]* | ?:[\\/]*)
24891 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
24892 ;;
24893 *)
24894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24895 for as_dir in $PATH
24896 do
24897 IFS=$as_save_IFS
24898 case $as_dir in #(((
24899 '') as_dir=./ ;;
24900 */) ;;
24901 *) as_dir=$as_dir/ ;;
24902 esac
24903 for ac_exec_ext in '' $ac_executable_extensions; do
24904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24905 ac_cv_path_ac_pt_DX_DOT="$as_dir$ac_word$ac_exec_ext"
24906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24907 break 2
24908 fi
24909 done
24910 done
24911 IFS=$as_save_IFS
24912
24913 ;;
24914 esac
24915 fi
24916 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
24917 if test -n "$ac_pt_DX_DOT"; then
24918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
24919 printf "%s\n" "$ac_pt_DX_DOT" >&6; }
24920 else
24921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24922 printf "%s\n" "no" >&6; }
24923 fi
24924
24925 if test "x$ac_pt_DX_DOT" = x; then
24926 DX_DOT=""
24927 else
24928 case $cross_compiling:$ac_tool_warned in
24929 yes:)
24930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24931 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24932 ac_tool_warned=yes ;;
24933 esac
24934 DX_DOT=$ac_pt_DX_DOT
24935 fi
24936 else
24937 DX_DOT="$ac_cv_path_DX_DOT"
24938 fi
24939
24940 if test "$DX_FLAG_dot$DX_DOT" = 1; then
24941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
24942 printf "%s\n" "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
24943 DX_FLAG_dot=0
24944
24945 fi
24946
24947 :
24948 fi
24949 if test "$DX_FLAG_dot" = 1; then
24950 DX_ENV="$DX_ENV HAVE_DOT='YES'"
24951 HAVE_DOT=YES
24952
24953 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
24954 DOT_PATH=`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`
24955
24956 :
24957 else
24958 DX_ENV="$DX_ENV HAVE_DOT='NO'"
24959 HAVE_DOT=NO
24960
24961 :
24962 fi
24963
24964
24965 # Man pages generation:
24966
24967
24968
24969 # Check whether --enable-doxygen-man was given.
24970 if test ${enable_doxygen_man+y}
24971 then :
24972 enableval=$enable_doxygen_man;
24973 case "$enableval" in
24974 #(
24975 y|Y|yes|Yes|YES)
24976 DX_FLAG_man=1
24977
24978
24979 test "$DX_FLAG_doc" = "1" \
24980 || as_fn_error $? "doxygen-man requires doxygen-doc" "$LINENO" 5
24981
24982 ;; #(
24983 n|N|no|No|NO)
24984 DX_FLAG_man=0
24985
24986 ;; #(
24987 *)
24988 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
24989 ;;
24990 esac
24991
24992 else $as_nop
24993
24994 DX_FLAG_man=0
24995
24996
24997 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
24998
24999
25000
25001 fi
25002
25003 if test "$DX_FLAG_man" = 1; then
25004
25005 :
25006 fi
25007 if test "$DX_FLAG_man" = 1; then
25008 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
25009 GENERATE_MAN=YES
25010
25011 :
25012 else
25013 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
25014 GENERATE_MAN=NO
25015
25016 :
25017 fi
25018
25019
25020 # RTF file generation:
25021
25022
25023
25024 # Check whether --enable-doxygen-rtf was given.
25025 if test ${enable_doxygen_rtf+y}
25026 then :
25027 enableval=$enable_doxygen_rtf;
25028 case "$enableval" in
25029 #(
25030 y|Y|yes|Yes|YES)
25031 DX_FLAG_rtf=1
25032
25033
25034 test "$DX_FLAG_doc" = "1" \
25035 || as_fn_error $? "doxygen-rtf requires doxygen-doc" "$LINENO" 5
25036
25037 ;; #(
25038 n|N|no|No|NO)
25039 DX_FLAG_rtf=0
25040
25041 ;; #(
25042 *)
25043 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
25044 ;;
25045 esac
25046
25047 else $as_nop
25048
25049 DX_FLAG_rtf=0
25050
25051
25052 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
25053
25054
25055
25056 fi
25057
25058 if test "$DX_FLAG_rtf" = 1; then
25059
25060 :
25061 fi
25062 if test "$DX_FLAG_rtf" = 1; then
25063 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
25064 GENERATE_RTF=YES
25065
25066 :
25067 else
25068 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
25069 GENERATE_RTF=NO
25070
25071 :
25072 fi
25073
25074
25075 # XML file generation:
25076
25077
25078
25079 # Check whether --enable-doxygen-xml was given.
25080 if test ${enable_doxygen_xml+y}
25081 then :
25082 enableval=$enable_doxygen_xml;
25083 case "$enableval" in
25084 #(
25085 y|Y|yes|Yes|YES)
25086 DX_FLAG_xml=1
25087
25088
25089 test "$DX_FLAG_doc" = "1" \
25090 || as_fn_error $? "doxygen-xml requires doxygen-doc" "$LINENO" 5
25091
25092 ;; #(
25093 n|N|no|No|NO)
25094 DX_FLAG_xml=0
25095
25096 ;; #(
25097 *)
25098 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
25099 ;;
25100 esac
25101
25102 else $as_nop
25103
25104 DX_FLAG_xml=0
25105
25106
25107 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
25108
25109
25110
25111 fi
25112
25113 if test "$DX_FLAG_xml" = 1; then
25114
25115 :
25116 fi
25117 if test "$DX_FLAG_xml" = 1; then
25118 DX_ENV="$DX_ENV GENERATE_XML='YES'"
25119 GENERATE_XML=YES
25120
25121 :
25122 else
25123 DX_ENV="$DX_ENV GENERATE_XML='NO'"
25124 GENERATE_XML=NO
25125
25126 :
25127 fi
25128
25129
25130 # (Compressed) HTML help generation:
25131
25132
25133
25134 # Check whether --enable-doxygen-chm was given.
25135 if test ${enable_doxygen_chm+y}
25136 then :
25137 enableval=$enable_doxygen_chm;
25138 case "$enableval" in
25139 #(
25140 y|Y|yes|Yes|YES)
25141 DX_FLAG_chm=1
25142
25143
25144 test "$DX_FLAG_doc" = "1" \
25145 || as_fn_error $? "doxygen-chm requires doxygen-doc" "$LINENO" 5
25146
25147 ;; #(
25148 n|N|no|No|NO)
25149 DX_FLAG_chm=0
25150
25151 ;; #(
25152 *)
25153 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
25154 ;;
25155 esac
25156
25157 else $as_nop
25158
25159 DX_FLAG_chm=0
25160
25161
25162 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
25163
25164
25165
25166 fi
25167
25168 if test "$DX_FLAG_chm" = 1; then
25169
25170 if test -n "$ac_tool_prefix"; then
25171 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
25172 set dummy ${ac_tool_prefix}hhc; ac_word=$2
25173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25174 printf %s "checking for $ac_word... " >&6; }
25175 if test ${ac_cv_path_DX_HHC+y}
25176 then :
25177 printf %s "(cached) " >&6
25178 else $as_nop
25179 case $DX_HHC in
25180 [\\/]* | ?:[\\/]*)
25181 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
25182 ;;
25183 *)
25184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25185 for as_dir in $PATH
25186 do
25187 IFS=$as_save_IFS
25188 case $as_dir in #(((
25189 '') as_dir=./ ;;
25190 */) ;;
25191 *) as_dir=$as_dir/ ;;
25192 esac
25193 for ac_exec_ext in '' $ac_executable_extensions; do
25194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25195 ac_cv_path_DX_HHC="$as_dir$ac_word$ac_exec_ext"
25196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25197 break 2
25198 fi
25199 done
25200 done
25201 IFS=$as_save_IFS
25202
25203 ;;
25204 esac
25205 fi
25206 DX_HHC=$ac_cv_path_DX_HHC
25207 if test -n "$DX_HHC"; then
25208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
25209 printf "%s\n" "$DX_HHC" >&6; }
25210 else
25211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25212 printf "%s\n" "no" >&6; }
25213 fi
25214
25215
25216 fi
25217 if test -z "$ac_cv_path_DX_HHC"; then
25218 ac_pt_DX_HHC=$DX_HHC
25219 # Extract the first word of "hhc", so it can be a program name with args.
25220 set dummy hhc; ac_word=$2
25221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25222 printf %s "checking for $ac_word... " >&6; }
25223 if test ${ac_cv_path_ac_pt_DX_HHC+y}
25224 then :
25225 printf %s "(cached) " >&6
25226 else $as_nop
25227 case $ac_pt_DX_HHC in
25228 [\\/]* | ?:[\\/]*)
25229 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
25230 ;;
25231 *)
25232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25233 for as_dir in $PATH
25234 do
25235 IFS=$as_save_IFS
25236 case $as_dir in #(((
25237 '') as_dir=./ ;;
25238 */) ;;
25239 *) as_dir=$as_dir/ ;;
25240 esac
25241 for ac_exec_ext in '' $ac_executable_extensions; do
25242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25243 ac_cv_path_ac_pt_DX_HHC="$as_dir$ac_word$ac_exec_ext"
25244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25245 break 2
25246 fi
25247 done
25248 done
25249 IFS=$as_save_IFS
25250
25251 ;;
25252 esac
25253 fi
25254 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
25255 if test -n "$ac_pt_DX_HHC"; then
25256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
25257 printf "%s\n" "$ac_pt_DX_HHC" >&6; }
25258 else
25259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25260 printf "%s\n" "no" >&6; }
25261 fi
25262
25263 if test "x$ac_pt_DX_HHC" = x; then
25264 DX_HHC=""
25265 else
25266 case $cross_compiling:$ac_tool_warned in
25267 yes:)
25268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25269 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25270 ac_tool_warned=yes ;;
25271 esac
25272 DX_HHC=$ac_pt_DX_HHC
25273 fi
25274 else
25275 DX_HHC="$ac_cv_path_DX_HHC"
25276 fi
25277
25278 if test "$DX_FLAG_chm$DX_HHC" = 1; then
25279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
25280 printf "%s\n" "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
25281 DX_FLAG_chm=0
25282
25283 fi
25284
25285 :
25286 fi
25287 if test "$DX_FLAG_chm" = 1; then
25288 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
25289 HHC_PATH=$DX_HHC
25290
25291 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
25292 GENERATE_HTML=YES
25293
25294 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
25295 GENERATE_HTMLHELP=YES
25296
25297 :
25298 else
25299 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
25300 GENERATE_HTMLHELP=NO
25301
25302 :
25303 fi
25304
25305
25306 # Separate CHI file generation.
25307
25308
25309
25310 # Check whether --enable-doxygen-chi was given.
25311 if test ${enable_doxygen_chi+y}
25312 then :
25313 enableval=$enable_doxygen_chi;
25314 case "$enableval" in
25315 #(
25316 y|Y|yes|Yes|YES)
25317 DX_FLAG_chi=1
25318
25319
25320 test "$DX_FLAG_chm" = "1" \
25321 || as_fn_error $? "doxygen-chi requires doxygen-chm" "$LINENO" 5
25322
25323 ;; #(
25324 n|N|no|No|NO)
25325 DX_FLAG_chi=0
25326
25327 ;; #(
25328 *)
25329 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
25330 ;;
25331 esac
25332
25333 else $as_nop
25334
25335 DX_FLAG_chi=0
25336
25337
25338 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
25339
25340
25341
25342 fi
25343
25344 if test "$DX_FLAG_chi" = 1; then
25345
25346 :
25347 fi
25348 if test "$DX_FLAG_chi" = 1; then
25349 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
25350 GENERATE_CHI=YES
25351
25352 :
25353 else
25354 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
25355 GENERATE_CHI=NO
25356
25357 :
25358 fi
25359
25360
25361 # Plain HTML pages generation:
25362
25363
25364
25365 # Check whether --enable-doxygen-html was given.
25366 if test ${enable_doxygen_html+y}
25367 then :
25368 enableval=$enable_doxygen_html;
25369 case "$enableval" in
25370 #(
25371 y|Y|yes|Yes|YES)
25372 DX_FLAG_html=1
25373
25374
25375 test "$DX_FLAG_doc" = "1" \
25376 || as_fn_error $? "doxygen-html requires doxygen-doc" "$LINENO" 5
25377
25378 test "$DX_FLAG_chm" = "0" \
25379 || as_fn_error $? "doxygen-html contradicts doxygen-chm" "$LINENO" 5
25380
25381 ;; #(
25382 n|N|no|No|NO)
25383 DX_FLAG_html=0
25384
25385 ;; #(
25386 *)
25387 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
25388 ;;
25389 esac
25390
25391 else $as_nop
25392
25393 DX_FLAG_html=1
25394
25395
25396 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
25397
25398
25399 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
25400
25401
25402
25403 fi
25404
25405 if test "$DX_FLAG_html" = 1; then
25406
25407 :
25408 fi
25409 if test "$DX_FLAG_html" = 1; then
25410 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
25411 GENERATE_HTML=YES
25412
25413 :
25414 else
25415 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
25416 GENERATE_HTML=NO
25417
25418 :
25419 fi
25420
25421
25422 # PostScript file generation:
25423
25424
25425
25426 # Check whether --enable-doxygen-ps was given.
25427 if test ${enable_doxygen_ps+y}
25428 then :
25429 enableval=$enable_doxygen_ps;
25430 case "$enableval" in
25431 #(
25432 y|Y|yes|Yes|YES)
25433 DX_FLAG_ps=1
25434
25435
25436 test "$DX_FLAG_doc" = "1" \
25437 || as_fn_error $? "doxygen-ps requires doxygen-doc" "$LINENO" 5
25438
25439 ;; #(
25440 n|N|no|No|NO)
25441 DX_FLAG_ps=0
25442
25443 ;; #(
25444 *)
25445 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
25446 ;;
25447 esac
25448
25449 else $as_nop
25450
25451 DX_FLAG_ps=0
25452
25453
25454 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
25455
25456
25457
25458 fi
25459
25460 if test "$DX_FLAG_ps" = 1; then
25461
25462 if test -n "$ac_tool_prefix"; then
25463 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
25464 set dummy ${ac_tool_prefix}latex; ac_word=$2
25465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25466 printf %s "checking for $ac_word... " >&6; }
25467 if test ${ac_cv_path_DX_LATEX+y}
25468 then :
25469 printf %s "(cached) " >&6
25470 else $as_nop
25471 case $DX_LATEX in
25472 [\\/]* | ?:[\\/]*)
25473 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
25474 ;;
25475 *)
25476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25477 for as_dir in $PATH
25478 do
25479 IFS=$as_save_IFS
25480 case $as_dir in #(((
25481 '') as_dir=./ ;;
25482 */) ;;
25483 *) as_dir=$as_dir/ ;;
25484 esac
25485 for ac_exec_ext in '' $ac_executable_extensions; do
25486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25487 ac_cv_path_DX_LATEX="$as_dir$ac_word$ac_exec_ext"
25488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25489 break 2
25490 fi
25491 done
25492 done
25493 IFS=$as_save_IFS
25494
25495 ;;
25496 esac
25497 fi
25498 DX_LATEX=$ac_cv_path_DX_LATEX
25499 if test -n "$DX_LATEX"; then
25500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
25501 printf "%s\n" "$DX_LATEX" >&6; }
25502 else
25503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25504 printf "%s\n" "no" >&6; }
25505 fi
25506
25507
25508 fi
25509 if test -z "$ac_cv_path_DX_LATEX"; then
25510 ac_pt_DX_LATEX=$DX_LATEX
25511 # Extract the first word of "latex", so it can be a program name with args.
25512 set dummy latex; ac_word=$2
25513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25514 printf %s "checking for $ac_word... " >&6; }
25515 if test ${ac_cv_path_ac_pt_DX_LATEX+y}
25516 then :
25517 printf %s "(cached) " >&6
25518 else $as_nop
25519 case $ac_pt_DX_LATEX in
25520 [\\/]* | ?:[\\/]*)
25521 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
25522 ;;
25523 *)
25524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25525 for as_dir in $PATH
25526 do
25527 IFS=$as_save_IFS
25528 case $as_dir in #(((
25529 '') as_dir=./ ;;
25530 */) ;;
25531 *) as_dir=$as_dir/ ;;
25532 esac
25533 for ac_exec_ext in '' $ac_executable_extensions; do
25534 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25535 ac_cv_path_ac_pt_DX_LATEX="$as_dir$ac_word$ac_exec_ext"
25536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25537 break 2
25538 fi
25539 done
25540 done
25541 IFS=$as_save_IFS
25542
25543 ;;
25544 esac
25545 fi
25546 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
25547 if test -n "$ac_pt_DX_LATEX"; then
25548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
25549 printf "%s\n" "$ac_pt_DX_LATEX" >&6; }
25550 else
25551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25552 printf "%s\n" "no" >&6; }
25553 fi
25554
25555 if test "x$ac_pt_DX_LATEX" = x; then
25556 DX_LATEX=""
25557 else
25558 case $cross_compiling:$ac_tool_warned in
25559 yes:)
25560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25561 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25562 ac_tool_warned=yes ;;
25563 esac
25564 DX_LATEX=$ac_pt_DX_LATEX
25565 fi
25566 else
25567 DX_LATEX="$ac_cv_path_DX_LATEX"
25568 fi
25569
25570 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
25571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
25572 printf "%s\n" "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
25573 DX_FLAG_ps=0
25574
25575 fi
25576
25577
25578 if test -n "$ac_tool_prefix"; then
25579 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
25580 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
25581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25582 printf %s "checking for $ac_word... " >&6; }
25583 if test ${ac_cv_path_DX_MAKEINDEX+y}
25584 then :
25585 printf %s "(cached) " >&6
25586 else $as_nop
25587 case $DX_MAKEINDEX in
25588 [\\/]* | ?:[\\/]*)
25589 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
25590 ;;
25591 *)
25592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25593 for as_dir in $PATH
25594 do
25595 IFS=$as_save_IFS
25596 case $as_dir in #(((
25597 '') as_dir=./ ;;
25598 */) ;;
25599 *) as_dir=$as_dir/ ;;
25600 esac
25601 for ac_exec_ext in '' $ac_executable_extensions; do
25602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25603 ac_cv_path_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
25604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25605 break 2
25606 fi
25607 done
25608 done
25609 IFS=$as_save_IFS
25610
25611 ;;
25612 esac
25613 fi
25614 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
25615 if test -n "$DX_MAKEINDEX"; then
25616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
25617 printf "%s\n" "$DX_MAKEINDEX" >&6; }
25618 else
25619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25620 printf "%s\n" "no" >&6; }
25621 fi
25622
25623
25624 fi
25625 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
25626 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
25627 # Extract the first word of "makeindex", so it can be a program name with args.
25628 set dummy makeindex; ac_word=$2
25629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25630 printf %s "checking for $ac_word... " >&6; }
25631 if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y}
25632 then :
25633 printf %s "(cached) " >&6
25634 else $as_nop
25635 case $ac_pt_DX_MAKEINDEX in
25636 [\\/]* | ?:[\\/]*)
25637 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
25638 ;;
25639 *)
25640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25641 for as_dir in $PATH
25642 do
25643 IFS=$as_save_IFS
25644 case $as_dir in #(((
25645 '') as_dir=./ ;;
25646 */) ;;
25647 *) as_dir=$as_dir/ ;;
25648 esac
25649 for ac_exec_ext in '' $ac_executable_extensions; do
25650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25651 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
25652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25653 break 2
25654 fi
25655 done
25656 done
25657 IFS=$as_save_IFS
25658
25659 ;;
25660 esac
25661 fi
25662 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
25663 if test -n "$ac_pt_DX_MAKEINDEX"; then
25664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
25665 printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; }
25666 else
25667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25668 printf "%s\n" "no" >&6; }
25669 fi
25670
25671 if test "x$ac_pt_DX_MAKEINDEX" = x; then
25672 DX_MAKEINDEX=""
25673 else
25674 case $cross_compiling:$ac_tool_warned in
25675 yes:)
25676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25677 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25678 ac_tool_warned=yes ;;
25679 esac
25680 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
25681 fi
25682 else
25683 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
25684 fi
25685
25686 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
25687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
25688 printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
25689 DX_FLAG_ps=0
25690
25691 fi
25692
25693
25694 if test -n "$ac_tool_prefix"; then
25695 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
25696 set dummy ${ac_tool_prefix}dvips; ac_word=$2
25697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25698 printf %s "checking for $ac_word... " >&6; }
25699 if test ${ac_cv_path_DX_DVIPS+y}
25700 then :
25701 printf %s "(cached) " >&6
25702 else $as_nop
25703 case $DX_DVIPS in
25704 [\\/]* | ?:[\\/]*)
25705 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
25706 ;;
25707 *)
25708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25709 for as_dir in $PATH
25710 do
25711 IFS=$as_save_IFS
25712 case $as_dir in #(((
25713 '') as_dir=./ ;;
25714 */) ;;
25715 *) as_dir=$as_dir/ ;;
25716 esac
25717 for ac_exec_ext in '' $ac_executable_extensions; do
25718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25719 ac_cv_path_DX_DVIPS="$as_dir$ac_word$ac_exec_ext"
25720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25721 break 2
25722 fi
25723 done
25724 done
25725 IFS=$as_save_IFS
25726
25727 ;;
25728 esac
25729 fi
25730 DX_DVIPS=$ac_cv_path_DX_DVIPS
25731 if test -n "$DX_DVIPS"; then
25732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
25733 printf "%s\n" "$DX_DVIPS" >&6; }
25734 else
25735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25736 printf "%s\n" "no" >&6; }
25737 fi
25738
25739
25740 fi
25741 if test -z "$ac_cv_path_DX_DVIPS"; then
25742 ac_pt_DX_DVIPS=$DX_DVIPS
25743 # Extract the first word of "dvips", so it can be a program name with args.
25744 set dummy dvips; ac_word=$2
25745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25746 printf %s "checking for $ac_word... " >&6; }
25747 if test ${ac_cv_path_ac_pt_DX_DVIPS+y}
25748 then :
25749 printf %s "(cached) " >&6
25750 else $as_nop
25751 case $ac_pt_DX_DVIPS in
25752 [\\/]* | ?:[\\/]*)
25753 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
25754 ;;
25755 *)
25756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25757 for as_dir in $PATH
25758 do
25759 IFS=$as_save_IFS
25760 case $as_dir in #(((
25761 '') as_dir=./ ;;
25762 */) ;;
25763 *) as_dir=$as_dir/ ;;
25764 esac
25765 for ac_exec_ext in '' $ac_executable_extensions; do
25766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25767 ac_cv_path_ac_pt_DX_DVIPS="$as_dir$ac_word$ac_exec_ext"
25768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25769 break 2
25770 fi
25771 done
25772 done
25773 IFS=$as_save_IFS
25774
25775 ;;
25776 esac
25777 fi
25778 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
25779 if test -n "$ac_pt_DX_DVIPS"; then
25780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
25781 printf "%s\n" "$ac_pt_DX_DVIPS" >&6; }
25782 else
25783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25784 printf "%s\n" "no" >&6; }
25785 fi
25786
25787 if test "x$ac_pt_DX_DVIPS" = x; then
25788 DX_DVIPS=""
25789 else
25790 case $cross_compiling:$ac_tool_warned in
25791 yes:)
25792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25793 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25794 ac_tool_warned=yes ;;
25795 esac
25796 DX_DVIPS=$ac_pt_DX_DVIPS
25797 fi
25798 else
25799 DX_DVIPS="$ac_cv_path_DX_DVIPS"
25800 fi
25801
25802 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
25803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
25804 printf "%s\n" "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
25805 DX_FLAG_ps=0
25806
25807 fi
25808
25809
25810 if test -n "$ac_tool_prefix"; then
25811 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
25812 set dummy ${ac_tool_prefix}egrep; ac_word=$2
25813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25814 printf %s "checking for $ac_word... " >&6; }
25815 if test ${ac_cv_path_DX_EGREP+y}
25816 then :
25817 printf %s "(cached) " >&6
25818 else $as_nop
25819 case $DX_EGREP in
25820 [\\/]* | ?:[\\/]*)
25821 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
25822 ;;
25823 *)
25824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25825 for as_dir in $PATH
25826 do
25827 IFS=$as_save_IFS
25828 case $as_dir in #(((
25829 '') as_dir=./ ;;
25830 */) ;;
25831 *) as_dir=$as_dir/ ;;
25832 esac
25833 for ac_exec_ext in '' $ac_executable_extensions; do
25834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25835 ac_cv_path_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
25836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25837 break 2
25838 fi
25839 done
25840 done
25841 IFS=$as_save_IFS
25842
25843 ;;
25844 esac
25845 fi
25846 DX_EGREP=$ac_cv_path_DX_EGREP
25847 if test -n "$DX_EGREP"; then
25848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
25849 printf "%s\n" "$DX_EGREP" >&6; }
25850 else
25851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25852 printf "%s\n" "no" >&6; }
25853 fi
25854
25855
25856 fi
25857 if test -z "$ac_cv_path_DX_EGREP"; then
25858 ac_pt_DX_EGREP=$DX_EGREP
25859 # Extract the first word of "egrep", so it can be a program name with args.
25860 set dummy egrep; ac_word=$2
25861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25862 printf %s "checking for $ac_word... " >&6; }
25863 if test ${ac_cv_path_ac_pt_DX_EGREP+y}
25864 then :
25865 printf %s "(cached) " >&6
25866 else $as_nop
25867 case $ac_pt_DX_EGREP in
25868 [\\/]* | ?:[\\/]*)
25869 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
25870 ;;
25871 *)
25872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25873 for as_dir in $PATH
25874 do
25875 IFS=$as_save_IFS
25876 case $as_dir in #(((
25877 '') as_dir=./ ;;
25878 */) ;;
25879 *) as_dir=$as_dir/ ;;
25880 esac
25881 for ac_exec_ext in '' $ac_executable_extensions; do
25882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25883 ac_cv_path_ac_pt_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
25884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25885 break 2
25886 fi
25887 done
25888 done
25889 IFS=$as_save_IFS
25890
25891 ;;
25892 esac
25893 fi
25894 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
25895 if test -n "$ac_pt_DX_EGREP"; then
25896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
25897 printf "%s\n" "$ac_pt_DX_EGREP" >&6; }
25898 else
25899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25900 printf "%s\n" "no" >&6; }
25901 fi
25902
25903 if test "x$ac_pt_DX_EGREP" = x; then
25904 DX_EGREP=""
25905 else
25906 case $cross_compiling:$ac_tool_warned in
25907 yes:)
25908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25909 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25910 ac_tool_warned=yes ;;
25911 esac
25912 DX_EGREP=$ac_pt_DX_EGREP
25913 fi
25914 else
25915 DX_EGREP="$ac_cv_path_DX_EGREP"
25916 fi
25917
25918 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
25919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
25920 printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
25921 DX_FLAG_ps=0
25922
25923 fi
25924
25925 :
25926 fi
25927 if test "$DX_FLAG_ps" = 1; then
25928
25929 :
25930 else
25931
25932 :
25933 fi
25934
25935
25936 # PDF file generation:
25937
25938
25939
25940 # Check whether --enable-doxygen-pdf was given.
25941 if test ${enable_doxygen_pdf+y}
25942 then :
25943 enableval=$enable_doxygen_pdf;
25944 case "$enableval" in
25945 #(
25946 y|Y|yes|Yes|YES)
25947 DX_FLAG_pdf=1
25948
25949
25950 test "$DX_FLAG_doc" = "1" \
25951 || as_fn_error $? "doxygen-pdf requires doxygen-doc" "$LINENO" 5
25952
25953 ;; #(
25954 n|N|no|No|NO)
25955 DX_FLAG_pdf=0
25956
25957 ;; #(
25958 *)
25959 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
25960 ;;
25961 esac
25962
25963 else $as_nop
25964
25965 DX_FLAG_pdf=0
25966
25967
25968 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
25969
25970
25971
25972 fi
25973
25974 if test "$DX_FLAG_pdf" = 1; then
25975
25976 if test -n "$ac_tool_prefix"; then
25977 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
25978 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
25979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25980 printf %s "checking for $ac_word... " >&6; }
25981 if test ${ac_cv_path_DX_PDFLATEX+y}
25982 then :
25983 printf %s "(cached) " >&6
25984 else $as_nop
25985 case $DX_PDFLATEX in
25986 [\\/]* | ?:[\\/]*)
25987 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
25988 ;;
25989 *)
25990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25991 for as_dir in $PATH
25992 do
25993 IFS=$as_save_IFS
25994 case $as_dir in #(((
25995 '') as_dir=./ ;;
25996 */) ;;
25997 *) as_dir=$as_dir/ ;;
25998 esac
25999 for ac_exec_ext in '' $ac_executable_extensions; do
26000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26001 ac_cv_path_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
26002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26003 break 2
26004 fi
26005 done
26006 done
26007 IFS=$as_save_IFS
26008
26009 ;;
26010 esac
26011 fi
26012 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
26013 if test -n "$DX_PDFLATEX"; then
26014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
26015 printf "%s\n" "$DX_PDFLATEX" >&6; }
26016 else
26017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26018 printf "%s\n" "no" >&6; }
26019 fi
26020
26021
26022 fi
26023 if test -z "$ac_cv_path_DX_PDFLATEX"; then
26024 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
26025 # Extract the first word of "pdflatex", so it can be a program name with args.
26026 set dummy pdflatex; ac_word=$2
26027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26028 printf %s "checking for $ac_word... " >&6; }
26029 if test ${ac_cv_path_ac_pt_DX_PDFLATEX+y}
26030 then :
26031 printf %s "(cached) " >&6
26032 else $as_nop
26033 case $ac_pt_DX_PDFLATEX in
26034 [\\/]* | ?:[\\/]*)
26035 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
26036 ;;
26037 *)
26038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26039 for as_dir in $PATH
26040 do
26041 IFS=$as_save_IFS
26042 case $as_dir in #(((
26043 '') as_dir=./ ;;
26044 */) ;;
26045 *) as_dir=$as_dir/ ;;
26046 esac
26047 for ac_exec_ext in '' $ac_executable_extensions; do
26048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26049 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
26050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26051 break 2
26052 fi
26053 done
26054 done
26055 IFS=$as_save_IFS
26056
26057 ;;
26058 esac
26059 fi
26060 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
26061 if test -n "$ac_pt_DX_PDFLATEX"; then
26062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
26063 printf "%s\n" "$ac_pt_DX_PDFLATEX" >&6; }
26064 else
26065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26066 printf "%s\n" "no" >&6; }
26067 fi
26068
26069 if test "x$ac_pt_DX_PDFLATEX" = x; then
26070 DX_PDFLATEX=""
26071 else
26072 case $cross_compiling:$ac_tool_warned in
26073 yes:)
26074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26075 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26076 ac_tool_warned=yes ;;
26077 esac
26078 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
26079 fi
26080 else
26081 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
26082 fi
26083
26084 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
26085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
26086 printf "%s\n" "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
26087 DX_FLAG_pdf=0
26088
26089 fi
26090
26091
26092 if test -n "$ac_tool_prefix"; then
26093 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
26094 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
26095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26096 printf %s "checking for $ac_word... " >&6; }
26097 if test ${ac_cv_path_DX_MAKEINDEX+y}
26098 then :
26099 printf %s "(cached) " >&6
26100 else $as_nop
26101 case $DX_MAKEINDEX in
26102 [\\/]* | ?:[\\/]*)
26103 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
26104 ;;
26105 *)
26106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26107 for as_dir in $PATH
26108 do
26109 IFS=$as_save_IFS
26110 case $as_dir in #(((
26111 '') as_dir=./ ;;
26112 */) ;;
26113 *) as_dir=$as_dir/ ;;
26114 esac
26115 for ac_exec_ext in '' $ac_executable_extensions; do
26116 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26117 ac_cv_path_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
26118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26119 break 2
26120 fi
26121 done
26122 done
26123 IFS=$as_save_IFS
26124
26125 ;;
26126 esac
26127 fi
26128 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
26129 if test -n "$DX_MAKEINDEX"; then
26130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
26131 printf "%s\n" "$DX_MAKEINDEX" >&6; }
26132 else
26133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26134 printf "%s\n" "no" >&6; }
26135 fi
26136
26137
26138 fi
26139 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
26140 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
26141 # Extract the first word of "makeindex", so it can be a program name with args.
26142 set dummy makeindex; ac_word=$2
26143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26144 printf %s "checking for $ac_word... " >&6; }
26145 if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y}
26146 then :
26147 printf %s "(cached) " >&6
26148 else $as_nop
26149 case $ac_pt_DX_MAKEINDEX in
26150 [\\/]* | ?:[\\/]*)
26151 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
26152 ;;
26153 *)
26154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26155 for as_dir in $PATH
26156 do
26157 IFS=$as_save_IFS
26158 case $as_dir in #(((
26159 '') as_dir=./ ;;
26160 */) ;;
26161 *) as_dir=$as_dir/ ;;
26162 esac
26163 for ac_exec_ext in '' $ac_executable_extensions; do
26164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26165 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
26166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26167 break 2
26168 fi
26169 done
26170 done
26171 IFS=$as_save_IFS
26172
26173 ;;
26174 esac
26175 fi
26176 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
26177 if test -n "$ac_pt_DX_MAKEINDEX"; then
26178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
26179 printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; }
26180 else
26181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26182 printf "%s\n" "no" >&6; }
26183 fi
26184
26185 if test "x$ac_pt_DX_MAKEINDEX" = x; then
26186 DX_MAKEINDEX=""
26187 else
26188 case $cross_compiling:$ac_tool_warned in
26189 yes:)
26190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26191 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26192 ac_tool_warned=yes ;;
26193 esac
26194 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
26195 fi
26196 else
26197 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
26198 fi
26199
26200 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
26201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
26202 printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
26203 DX_FLAG_pdf=0
26204
26205 fi
26206
26207
26208 if test -n "$ac_tool_prefix"; then
26209 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
26210 set dummy ${ac_tool_prefix}egrep; ac_word=$2
26211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26212 printf %s "checking for $ac_word... " >&6; }
26213 if test ${ac_cv_path_DX_EGREP+y}
26214 then :
26215 printf %s "(cached) " >&6
26216 else $as_nop
26217 case $DX_EGREP in
26218 [\\/]* | ?:[\\/]*)
26219 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
26220 ;;
26221 *)
26222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26223 for as_dir in $PATH
26224 do
26225 IFS=$as_save_IFS
26226 case $as_dir in #(((
26227 '') as_dir=./ ;;
26228 */) ;;
26229 *) as_dir=$as_dir/ ;;
26230 esac
26231 for ac_exec_ext in '' $ac_executable_extensions; do
26232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26233 ac_cv_path_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
26234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26235 break 2
26236 fi
26237 done
26238 done
26239 IFS=$as_save_IFS
26240
26241 ;;
26242 esac
26243 fi
26244 DX_EGREP=$ac_cv_path_DX_EGREP
26245 if test -n "$DX_EGREP"; then
26246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
26247 printf "%s\n" "$DX_EGREP" >&6; }
26248 else
26249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26250 printf "%s\n" "no" >&6; }
26251 fi
26252
26253
26254 fi
26255 if test -z "$ac_cv_path_DX_EGREP"; then
26256 ac_pt_DX_EGREP=$DX_EGREP
26257 # Extract the first word of "egrep", so it can be a program name with args.
26258 set dummy egrep; ac_word=$2
26259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26260 printf %s "checking for $ac_word... " >&6; }
26261 if test ${ac_cv_path_ac_pt_DX_EGREP+y}
26262 then :
26263 printf %s "(cached) " >&6
26264 else $as_nop
26265 case $ac_pt_DX_EGREP in
26266 [\\/]* | ?:[\\/]*)
26267 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
26268 ;;
26269 *)
26270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26271 for as_dir in $PATH
26272 do
26273 IFS=$as_save_IFS
26274 case $as_dir in #(((
26275 '') as_dir=./ ;;
26276 */) ;;
26277 *) as_dir=$as_dir/ ;;
26278 esac
26279 for ac_exec_ext in '' $ac_executable_extensions; do
26280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26281 ac_cv_path_ac_pt_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
26282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26283 break 2
26284 fi
26285 done
26286 done
26287 IFS=$as_save_IFS
26288
26289 ;;
26290 esac
26291 fi
26292 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
26293 if test -n "$ac_pt_DX_EGREP"; then
26294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
26295 printf "%s\n" "$ac_pt_DX_EGREP" >&6; }
26296 else
26297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26298 printf "%s\n" "no" >&6; }
26299 fi
26300
26301 if test "x$ac_pt_DX_EGREP" = x; then
26302 DX_EGREP=""
26303 else
26304 case $cross_compiling:$ac_tool_warned in
26305 yes:)
26306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26308 ac_tool_warned=yes ;;
26309 esac
26310 DX_EGREP=$ac_pt_DX_EGREP
26311 fi
26312 else
26313 DX_EGREP="$ac_cv_path_DX_EGREP"
26314 fi
26315
26316 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
26317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
26318 printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
26319 DX_FLAG_pdf=0
26320
26321 fi
26322
26323 :
26324 fi
26325 if test "$DX_FLAG_pdf" = 1; then
26326
26327 :
26328 else
26329
26330 :
26331 fi
26332
26333
26334 # LaTeX generation for PS and/or PDF:
26335 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
26336 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
26337 GENERATE_LATEX=YES
26338
26339 else
26340 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
26341 GENERATE_LATEX=NO
26342
26343 fi
26344
26345 # Paper size for PS and/or PDF:
26346
26347 case "$DOXYGEN_PAPER_SIZE" in
26348 #(
26349 "")
26350 DOXYGEN_PAPER_SIZE=""
26351
26352 ;; #(
26353 a4wide|a4|letter|legal|executive)
26354 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
26355 PAPER_SIZE=$DOXYGEN_PAPER_SIZE
26356
26357 ;; #(
26358 *)
26359 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
26360 ;;
26361 esac
26362
26363 # Rules:
26364 if test $DX_FLAG_html -eq 1
26365 then :
26366 DX_SNIPPET_html="## ------------------------------- ##
26367 ## Rules specific for HTML output. ##
26368 ## ------------------------------- ##
26369
26370 DX_CLEAN_HTML = \$(DX_DOCDIR)/html\\
26371 \$(DX_DOCDIR)/html
26372
26373 "
26374 else $as_nop
26375 DX_SNIPPET_html=""
26376 fi
26377 if test $DX_FLAG_chi -eq 1
26378 then :
26379 DX_SNIPPET_chi="
26380 DX_CLEAN_CHI = \$(DX_DOCDIR)/\$(PACKAGE).chi\\
26381 \$(DX_DOCDIR)/\$(PACKAGE).chi"
26382 else $as_nop
26383 DX_SNIPPET_chi=""
26384 fi
26385 if test $DX_FLAG_chm -eq 1
26386 then :
26387 DX_SNIPPET_chm="## ------------------------------ ##
26388 ## Rules specific for CHM output. ##
26389 ## ------------------------------ ##
26390
26391 DX_CLEAN_CHM = \$(DX_DOCDIR)/chm\\
26392 \$(DX_DOCDIR)/chm\
26393 ${DX_SNIPPET_chi}
26394
26395 "
26396 else $as_nop
26397 DX_SNIPPET_chm=""
26398 fi
26399 if test $DX_FLAG_man -eq 1
26400 then :
26401 DX_SNIPPET_man="## ------------------------------ ##
26402 ## Rules specific for MAN output. ##
26403 ## ------------------------------ ##
26404
26405 DX_CLEAN_MAN = \$(DX_DOCDIR)/man\\
26406 \$(DX_DOCDIR)/man
26407
26408 "
26409 else $as_nop
26410 DX_SNIPPET_man=""
26411 fi
26412 if test $DX_FLAG_rtf -eq 1
26413 then :
26414 DX_SNIPPET_rtf="## ------------------------------ ##
26415 ## Rules specific for RTF output. ##
26416 ## ------------------------------ ##
26417
26418 DX_CLEAN_RTF = \$(DX_DOCDIR)/rtf\\
26419 \$(DX_DOCDIR)/rtf
26420
26421 "
26422 else $as_nop
26423 DX_SNIPPET_rtf=""
26424 fi
26425 if test $DX_FLAG_xml -eq 1
26426 then :
26427 DX_SNIPPET_xml="## ------------------------------ ##
26428 ## Rules specific for XML output. ##
26429 ## ------------------------------ ##
26430
26431 DX_CLEAN_XML = \$(DX_DOCDIR)/xml\\
26432 \$(DX_DOCDIR)/xml
26433
26434 "
26435 else $as_nop
26436 DX_SNIPPET_xml=""
26437 fi
26438 if test $DX_FLAG_ps -eq 1
26439 then :
26440 DX_SNIPPET_ps="## ----------------------------- ##
26441 ## Rules specific for PS output. ##
26442 ## ----------------------------- ##
26443
26444 DX_CLEAN_PS = \$(DX_DOCDIR)/\$(PACKAGE).ps\\
26445 \$(DX_DOCDIR)/\$(PACKAGE).ps
26446
26447 DX_PS_GOAL = doxygen-ps
26448
26449 doxygen-ps: \$(DX_CLEAN_PS)
26450
26451 \$(DX_DOCDIR)/\$(PACKAGE).ps: \$(DX_DOCDIR)/\$(PACKAGE).tag
26452 \$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
26453 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
26454 \$(DX_LATEX) refman.tex; \\
26455 \$(DX_MAKEINDEX) refman.idx; \\
26456 \$(DX_LATEX) refman.tex; \\
26457 countdown=5; \\
26458 while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
26459 refman.log > /dev/null 2>&1 \\
26460 && test \$\$countdown -gt 0; do \\
26461 \$(DX_LATEX) refman.tex; \\
26462 countdown=\`expr \$\$countdown - 1\`; \\
26463 done; \\
26464 \$(DX_DVIPS) -o ../\$(PACKAGE).ps refman.dvi
26465
26466 "
26467 else $as_nop
26468 DX_SNIPPET_ps=""
26469 fi
26470 if test $DX_FLAG_pdf -eq 1
26471 then :
26472 DX_SNIPPET_pdf="## ------------------------------ ##
26473 ## Rules specific for PDF output. ##
26474 ## ------------------------------ ##
26475
26476 DX_CLEAN_PDF = \$(DX_DOCDIR)/\$(PACKAGE).pdf\\
26477 \$(DX_DOCDIR)/\$(PACKAGE).pdf
26478
26479 DX_PDF_GOAL = doxygen-pdf
26480
26481 doxygen-pdf: \$(DX_CLEAN_PDF)
26482
26483 \$(DX_DOCDIR)/\$(PACKAGE).pdf: \$(DX_DOCDIR)/\$(PACKAGE).tag
26484 \$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
26485 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
26486 \$(DX_PDFLATEX) refman.tex; \\
26487 \$(DX_MAKEINDEX) refman.idx; \\
26488 \$(DX_PDFLATEX) refman.tex; \\
26489 countdown=5; \\
26490 while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
26491 refman.log > /dev/null 2>&1 \\
26492 && test \$\$countdown -gt 0; do \\
26493 \$(DX_PDFLATEX) refman.tex; \\
26494 countdown=\`expr \$\$countdown - 1\`; \\
26495 done; \\
26496 mv refman.pdf ../\$(PACKAGE).pdf
26497
26498 "
26499 else $as_nop
26500 DX_SNIPPET_pdf=""
26501 fi
26502 if test $DX_FLAG_ps -eq 1 -o $DX_FLAG_pdf -eq 1
26503 then :
26504 DX_SNIPPET_latex="## ------------------------------------------------- ##
26505 ## Rules specific for LaTeX (shared for PS and PDF). ##
26506 ## ------------------------------------------------- ##
26507
26508 DX_V_LATEX = \$(_DX_v_LATEX_\$(V))
26509 _DX_v_LATEX_ = \$(_DX_v_LATEX_\$(AM_DEFAULT_VERBOSITY))
26510 _DX_v_LATEX_0 = @echo \" LATEX \" \$@;
26511
26512 DX_CLEAN_LATEX = \$(DX_DOCDIR)/latex\\
26513 \$(DX_DOCDIR)/latex
26514
26515 "
26516 else $as_nop
26517 DX_SNIPPET_latex=""
26518 fi
26519
26520 if test $DX_FLAG_doc -eq 1
26521 then :
26522 DX_SNIPPET_doc="## --------------------------------- ##
26523 ## Format-independent Doxygen rules. ##
26524 ## --------------------------------- ##
26525
26526 ${DX_SNIPPET_html}\
26527 ${DX_SNIPPET_chm}\
26528 ${DX_SNIPPET_man}\
26529 ${DX_SNIPPET_rtf}\
26530 ${DX_SNIPPET_xml}\
26531 ${DX_SNIPPET_ps}\
26532 ${DX_SNIPPET_pdf}\
26533 ${DX_SNIPPET_latex}\
26534 DX_V_DXGEN = \$(_DX_v_DXGEN_\$(V))
26535 _DX_v_DXGEN_ = \$(_DX_v_DXGEN_\$(AM_DEFAULT_VERBOSITY))
26536 _DX_v_DXGEN_0 = @echo \" DXGEN \" \$<;
26537
26538 .PHONY: doxygen-run doxygen-doc \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
26539
26540 .INTERMEDIATE: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
26541
26542 doxygen-run: \$(DX_DOCDIR)/\$(PACKAGE).tag
26543
26544 doxygen-doc: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
26545
26546 \$(DX_DOCDIR)/\$(PACKAGE).tag: \$(DX_CONFIG) \$(pkginclude_HEADERS)
26547 \$(A""M_V_at)rm -rf \$(DX_DOCDIR)
26548 \$(DX_V_DXGEN)\$(DX_ENV) DOCDIR=\$(DX_DOCDIR) \$(DX_DOXYGEN) \$(DX_CONFIG)
26549 \$(A""M_V_at)echo Timestamp >\$@
26550
26551 DX_CLEANFILES = \\
26552 \$(DX_DOCDIR)/doxygen_sqlite3.db \\
26553 \$(DX_DOCDIR)/\$(PACKAGE).tag \\
26554 -r \\
26555 \$(DX_CLEAN_HTML) \\
26556 \$(DX_CLEAN_CHM) \\
26557 \$(DX_CLEAN_CHI) \\
26558 \$(DX_CLEAN_MAN) \\
26559 \$(DX_CLEAN_RTF) \\
26560 \$(DX_CLEAN_XML) \\
26561 \$(DX_CLEAN_PS) \\
26562 \$(DX_CLEAN_PDF) \\
26563 \$(DX_CLEAN_LATEX)"
26564 else $as_nop
26565 DX_SNIPPET_doc=""
26566 fi
26567 DX_RULES="${DX_SNIPPET_doc}"
26568
26569
26570 #For debugging:
26571 #echo DX_FLAG_doc=$DX_FLAG_doc
26572 #echo DX_FLAG_dot=$DX_FLAG_dot
26573 #echo DX_FLAG_man=$DX_FLAG_man
26574 #echo DX_FLAG_html=$DX_FLAG_html
26575 #echo DX_FLAG_chm=$DX_FLAG_chm
26576 #echo DX_FLAG_chi=$DX_FLAG_chi
26577 #echo DX_FLAG_rtf=$DX_FLAG_rtf
26578 #echo DX_FLAG_xml=$DX_FLAG_xml
26579 #echo DX_FLAG_pdf=$DX_FLAG_pdf
26580 #echo DX_FLAG_ps=$DX_FLAG_ps
26581 #echo DX_ENV=$DX_ENV
26582
26583
26584 cat >confcache <<\_ACEOF
26585 # This file is a shell script that caches the results of configure
26586 # tests run on this system so they can be shared between configure
26587 # scripts and configure runs, see configure's option --config-cache.
26588 # It is not useful on other systems. If it contains results you don't
26589 # want to keep, you may remove or edit it.
26590 #
26591 # config.status only pays attention to the cache file if you give it
26592 # the --recheck option to rerun configure.
26593 #
26594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26596 # following values.
26597
26598 _ACEOF
26599
26600 # The following way of writing the cache mishandles newlines in values,
26601 # but we know of no workaround that is simple, portable, and efficient.
26602 # So, we kill variables containing newlines.
26603 # Ultrix sh set writes to stderr and can't be redirected directly,
26604 # and sets the high bit in the cache file unless we assign to the vars.
26605 (
26606 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26607 eval ac_val=\$$ac_var
26608 case $ac_val in #(
26609 *${as_nl}*)
26610 case $ac_var in #(
26611 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26612 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26613 esac
26614 case $ac_var in #(
26615 _ | IFS | as_nl) ;; #(
26616 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26617 *) { eval $ac_var=; unset $ac_var;} ;;
26618 esac ;;
26619 esac
26620 done
26621
26622 (set) 2>&1 |
26623 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26624 *${as_nl}ac_space=\ *)
26625 # `set' does not quote correctly, so add quotes: double-quote
26626 # substitution turns \\\\ into \\, and sed turns \\ into \.
26627 sed -n \
26628 "s/'/'\\\\''/g;
26629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26630 ;; #(
26631 *)
26632 # `set' quotes correctly as required by POSIX, so do not add quotes.
26633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26634 ;;
26635 esac |
26636 sort
26637 ) |
26638 sed '
26639 /^ac_cv_env_/b end
26640 t clear
26641 :clear
26642 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
26643 t end
26644 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26645 :end' >>confcache
26646 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26647 if test -w "$cache_file"; then
26648 if test "x$cache_file" != "x/dev/null"; then
26649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26650 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
26651 if test ! -f "$cache_file" || test -h "$cache_file"; then
26652 cat confcache >"$cache_file"
26653 else
26654 case $cache_file in #(
26655 */* | ?:*)
26656 mv -f confcache "$cache_file"$$ &&
26657 mv -f "$cache_file"$$ "$cache_file" ;; #(
26658 *)
26659 mv -f confcache "$cache_file" ;;
26660 esac
26661 fi
26662 fi
26663 else
26664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26665 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
26666 fi
26667 fi
26668 rm -f confcache
26669
26670 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26671 # Let make expand exec_prefix.
26672 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26673
26674 # Transform confdefs.h into DEFS.
26675 # Protect against shell expansion while executing Makefile rules.
26676 # Protect against Makefile macro expansion.
26677 #
26678 # If the first sed substitution is executed (which looks for macros that
26679 # take arguments), then branch to the quote section. Otherwise,
26680 # look for a macro that doesn't take arguments.
26681 ac_script='
26682 :mline
26683 /\\$/{
26684 N
26685 s,\\\n,,
26686 b mline
26687 }
26688 t clear
26689 :clear
26690 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
26691 t quote
26692 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
26693 t quote
26694 b any
26695 :quote
26696 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
26697 s/\[/\\&/g
26698 s/\]/\\&/g
26699 s/\$/$$/g
26700 H
26701 :any
26702 ${
26703 g
26704 s/^\n//
26705 s/\n/ /g
26706 p
26707 }
26708 '
26709 DEFS=`sed -n "$ac_script" confdefs.h`
26710
26711
26712 ac_libobjs=
26713 ac_ltlibobjs=
26714 U=
26715 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26716 # 1. Remove the extension, and $U if already installed.
26717 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26718 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
26719 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26720 # will be set to the directory where LIBOBJS objects are built.
26721 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26722 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26723 done
26724 LIBOBJS=$ac_libobjs
26725
26726 LTLIBOBJS=$ac_ltlibobjs
26727
26728
26729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26730 printf %s "checking that generated files are newer than configure... " >&6; }
26731 if test -n "$am_sleep_pid"; then
26732 # Hide warnings about reused PIDs.
26733 wait $am_sleep_pid 2>/dev/null
26734 fi
26735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
26736 printf "%s\n" "done" >&6; }
26737 if test -n "$EXEEXT"; then
26738 am__EXEEXT_TRUE=
26739 am__EXEEXT_FALSE='#'
26740 else
26741 am__EXEEXT_TRUE='#'
26742 am__EXEEXT_FALSE=
26743 fi
26744
26745 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26746 as_fn_error $? "conditional \"AMDEP\" was never defined.
26747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26748 fi
26749 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26750 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26752 fi
26753 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26754 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26756 fi
26757 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26758 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26760 fi
26761 if test -z "${ENABLE_OPENMPT123_TRUE}" && test -z "${ENABLE_OPENMPT123_FALSE}"; then
26762 as_fn_error $? "conditional \"ENABLE_OPENMPT123\" was never defined.
26763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26764 fi
26765 if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
26766 as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
26767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26768 fi
26769 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
26770 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
26771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26772 fi
26773 if test -z "${HAVE_PORTAUDIO_TRUE}" && test -z "${HAVE_PORTAUDIO_FALSE}"; then
26774 as_fn_error $? "conditional \"HAVE_PORTAUDIO\" was never defined.
26775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26776 fi
26777 if test -z "${HAVE_PORTAUDIOCPP_TRUE}" && test -z "${HAVE_PORTAUDIOCPP_FALSE}"; then
26778 as_fn_error $? "conditional \"HAVE_PORTAUDIOCPP\" was never defined.
26779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26780 fi
26781
26782 : "${CONFIG_STATUS=./config.status}"
26783 ac_write_fail=0
26784 ac_clean_files_save=$ac_clean_files
26785 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26787 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
26788 as_write_fail=0
26789 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26790 #! $SHELL
26791 # Generated by $as_me.
26792 # Run this file to recreate the current configuration.
26793 # Compiler output produced by configure, useful for debugging
26794 # configure, is in config.log if it exists.
26795
26796 debug=false
26797 ac_cs_recheck=false
26798 ac_cs_silent=false
26799
26800 SHELL=\${CONFIG_SHELL-$SHELL}
26801 export SHELL
26802 _ASEOF
26803 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26804 ## -------------------- ##
26805 ## M4sh Initialization. ##
26806 ## -------------------- ##
26807
26808 # Be more Bourne compatible
26809 DUALCASE=1; export DUALCASE # for MKS sh
26810 as_nop=:
26811 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
26812 then :
26813 emulate sh
26814 NULLCMD=:
26815 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26816 # is contrary to our usage. Disable this feature.
26817 alias -g '${1+"$@"}'='"$@"'
26818 setopt NO_GLOB_SUBST
26819 else $as_nop
26820 case `(set -o) 2>/dev/null` in #(
26821 *posix*) :
26822 set -o posix ;; #(
26823 *) :
26824 ;;
26825 esac
26826 fi
26827
26828
26829
26830 # Reset variables that may have inherited troublesome values from
26831 # the environment.
26832
26833 # IFS needs to be set, to space, tab, and newline, in precisely that order.
26834 # (If _AS_PATH_WALK were called with IFS unset, it would have the
26835 # side effect of setting IFS to empty, thus disabling word splitting.)
26836 # Quoting is to prevent editors from complaining about space-tab.
26837 as_nl='
26838 '
26839 export as_nl
26840 IFS=" "" $as_nl"
26841
26842 PS1='$ '
26843 PS2='> '
26844 PS4='+ '
26845
26846 # Ensure predictable behavior from utilities with locale-dependent output.
26847 LC_ALL=C
26848 export LC_ALL
26849 LANGUAGE=C
26850 export LANGUAGE
26851
26852 # We cannot yet rely on "unset" to work, but we need these variables
26853 # to be unset--not just set to an empty or harmless value--now, to
26854 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
26855 # also avoids known problems related to "unset" and subshell syntax
26856 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
26857 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
26858 do eval test \${$as_var+y} \
26859 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26860 done
26861
26862 # Ensure that fds 0, 1, and 2 are open.
26863 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
26864 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
26865 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
26866
26867 # The user is always right.
26868 if ${PATH_SEPARATOR+false} :; then
26869 PATH_SEPARATOR=:
26870 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26871 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26872 PATH_SEPARATOR=';'
26873 }
26874 fi
26875
26876
26877 # Find who we are. Look in the path if we contain no directory separator.
26878 as_myself=
26879 case $0 in #((
26880 *[\\/]* ) as_myself=$0 ;;
26881 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26882 for as_dir in $PATH
26883 do
26884 IFS=$as_save_IFS
26885 case $as_dir in #(((
26886 '') as_dir=./ ;;
26887 */) ;;
26888 *) as_dir=$as_dir/ ;;
26889 esac
26890 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
26891 done
26892 IFS=$as_save_IFS
26893
26894 ;;
26895 esac
26896 # We did not find ourselves, most probably we were run as `sh COMMAND'
26897 # in which case we are not to be found in the path.
26898 if test "x$as_myself" = x; then
26899 as_myself=$0
26900 fi
26901 if test ! -f "$as_myself"; then
26902 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26903 exit 1
26904 fi
26905
26906
26907
26908 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26909 # ----------------------------------------
26910 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26911 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26912 # script with STATUS, using 1 if that was 0.
26913 as_fn_error ()
26914 {
26915 as_status=$1; test $as_status -eq 0 && as_status=1
26916 if test "$4"; then
26917 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26919 fi
26920 printf "%s\n" "$as_me: error: $2" >&2
26921 as_fn_exit $as_status
26922 } # as_fn_error
26923
26924
26925
26926 # as_fn_set_status STATUS
26927 # -----------------------
26928 # Set $? to STATUS, without forking.
26929 as_fn_set_status ()
26930 {
26931 return $1
26932 } # as_fn_set_status
26933
26934 # as_fn_exit STATUS
26935 # -----------------
26936 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26937 as_fn_exit ()
26938 {
26939 set +e
26940 as_fn_set_status $1
26941 exit $1
26942 } # as_fn_exit
26943
26944 # as_fn_unset VAR
26945 # ---------------
26946 # Portably unset VAR.
26947 as_fn_unset ()
26948 {
26949 { eval $1=; unset $1;}
26950 }
26951 as_unset=as_fn_unset
26952
26953 # as_fn_append VAR VALUE
26954 # ----------------------
26955 # Append the text in VALUE to the end of the definition contained in VAR. Take
26956 # advantage of any shell optimizations that allow amortized linear growth over
26957 # repeated appends, instead of the typical quadratic growth present in naive
26958 # implementations.
26959 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
26960 then :
26961 eval 'as_fn_append ()
26962 {
26963 eval $1+=\$2
26964 }'
26965 else $as_nop
26966 as_fn_append ()
26967 {
26968 eval $1=\$$1\$2
26969 }
26970 fi # as_fn_append
26971
26972 # as_fn_arith ARG...
26973 # ------------------
26974 # Perform arithmetic evaluation on the ARGs, and store the result in the
26975 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26976 # must be portable across $(()) and expr.
26977 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
26978 then :
26979 eval 'as_fn_arith ()
26980 {
26981 as_val=$(( $* ))
26982 }'
26983 else $as_nop
26984 as_fn_arith ()
26985 {
26986 as_val=`expr "$@" || test $? -eq 1`
26987 }
26988 fi # as_fn_arith
26989
26990
26991 if expr a : '\(a\)' >/dev/null 2>&1 &&
26992 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26993 as_expr=expr
26994 else
26995 as_expr=false
26996 fi
26997
26998 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26999 as_basename=basename
27000 else
27001 as_basename=false
27002 fi
27003
27004 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27005 as_dirname=dirname
27006 else
27007 as_dirname=false
27008 fi
27009
27010 as_me=`$as_basename -- "$0" ||
27011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27012 X"$0" : 'X\(//\)$' \| \
27013 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27014 printf "%s\n" X/"$0" |
27015 sed '/^.*\/\([^/][^/]*\)\/*$/{
27016 s//\1/
27017 q
27018 }
27019 /^X\/\(\/\/\)$/{
27020 s//\1/
27021 q
27022 }
27023 /^X\/\(\/\).*/{
27024 s//\1/
27025 q
27026 }
27027 s/.*/./; q'`
27028
27029 # Avoid depending upon Character Ranges.
27030 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27031 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27032 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27033 as_cr_digits='0123456789'
27034 as_cr_alnum=$as_cr_Letters$as_cr_digits
27035
27036
27037 # Determine whether it's possible to make 'echo' print without a newline.
27038 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
27039 # for compatibility with existing Makefiles.
27040 ECHO_C= ECHO_N= ECHO_T=
27041 case `echo -n x` in #(((((
27042 -n*)
27043 case `echo 'xy\c'` in
27044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27045 xy) ECHO_C='\c';;
27046 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27047 ECHO_T=' ';;
27048 esac;;
27049 *)
27050 ECHO_N='-n';;
27051 esac
27052
27053 # For backward compatibility with old third-party macros, we provide
27054 # the shell variables $as_echo and $as_echo_n. New code should use
27055 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
27056 as_echo='printf %s\n'
27057 as_echo_n='printf %s'
27058
27059 rm -f conf$$ conf$$.exe conf$$.file
27060 if test -d conf$$.dir; then
27061 rm -f conf$$.dir/conf$$.file
27062 else
27063 rm -f conf$$.dir
27064 mkdir conf$$.dir 2>/dev/null
27065 fi
27066 if (echo >conf$$.file) 2>/dev/null; then
27067 if ln -s conf$$.file conf$$ 2>/dev/null; then
27068 as_ln_s='ln -s'
27069 # ... but there are two gotchas:
27070 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27071 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27072 # In both cases, we have to default to `cp -pR'.
27073 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27074 as_ln_s='cp -pR'
27075 elif ln conf$$.file conf$$ 2>/dev/null; then
27076 as_ln_s=ln
27077 else
27078 as_ln_s='cp -pR'
27079 fi
27080 else
27081 as_ln_s='cp -pR'
27082 fi
27083 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27084 rmdir conf$$.dir 2>/dev/null
27085
27086
27087 # as_fn_mkdir_p
27088 # -------------
27089 # Create "$as_dir" as a directory, including parents if necessary.
27090 as_fn_mkdir_p ()
27091 {
27092
27093 case $as_dir in #(
27094 -*) as_dir=./$as_dir;;
27095 esac
27096 test -d "$as_dir" || eval $as_mkdir_p || {
27097 as_dirs=
27098 while :; do
27099 case $as_dir in #(
27100 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27101 *) as_qdir=$as_dir;;
27102 esac
27103 as_dirs="'$as_qdir' $as_dirs"
27104 as_dir=`$as_dirname -- "$as_dir" ||
27105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27106 X"$as_dir" : 'X\(//\)[^/]' \| \
27107 X"$as_dir" : 'X\(//\)$' \| \
27108 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27109 printf "%s\n" X"$as_dir" |
27110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27111 s//\1/
27112 q
27113 }
27114 /^X\(\/\/\)[^/].*/{
27115 s//\1/
27116 q
27117 }
27118 /^X\(\/\/\)$/{
27119 s//\1/
27120 q
27121 }
27122 /^X\(\/\).*/{
27123 s//\1/
27124 q
27125 }
27126 s/.*/./; q'`
27127 test -d "$as_dir" && break
27128 done
27129 test -z "$as_dirs" || eval "mkdir $as_dirs"
27130 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27131
27132
27133 } # as_fn_mkdir_p
27134 if mkdir -p . 2>/dev/null; then
27135 as_mkdir_p='mkdir -p "$as_dir"'
27136 else
27137 test -d ./-p && rmdir ./-p
27138 as_mkdir_p=false
27139 fi
27140
27141
27142 # as_fn_executable_p FILE
27143 # -----------------------
27144 # Test if FILE is an executable regular file.
27145 as_fn_executable_p ()
27146 {
27147 test -f "$1" && test -x "$1"
27148 } # as_fn_executable_p
27149 as_test_x='test -x'
27150 as_executable_p=as_fn_executable_p
27151
27152 # Sed expression to map a string onto a valid CPP name.
27153 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27154
27155 # Sed expression to map a string onto a valid variable name.
27156 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27157
27158
27159 exec 6>&1
27160 ## ----------------------------------- ##
27161 ## Main body of $CONFIG_STATUS script. ##
27162 ## ----------------------------------- ##
27163 _ASEOF
27164 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27165
27166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27167 # Save the log message, to keep $0 and so on meaningful, and to
27168 # report actual input values of CONFIG_FILES etc. instead of their
27169 # values after options handling.
27170 ac_log="
27171 This file was extended by libopenmpt $as_me 0.8.7+release.autotools, which was
27172 generated by GNU Autoconf 2.71. Invocation command line was
27173
27174 CONFIG_FILES = $CONFIG_FILES
27175 CONFIG_HEADERS = $CONFIG_HEADERS
27176 CONFIG_LINKS = $CONFIG_LINKS
27177 CONFIG_COMMANDS = $CONFIG_COMMANDS
27178 $ $0 $@
27179
27180 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27181 "
27182
27183 _ACEOF
27184
27185 case $ac_config_files in *"
27186 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27187 esac
27188
27189
27190
27191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27192 # Files that config.status was made for.
27193 config_files="$ac_config_files"
27194 config_commands="$ac_config_commands"
27195
27196 _ACEOF
27197
27198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27199 ac_cs_usage="\
27200 \`$as_me' instantiates files and other configuration actions
27201 from templates according to the current configuration. Unless the files
27202 and actions are specified as TAGs, all are instantiated by default.
27203
27204 Usage: $0 [OPTION]... [TAG]...
27205
27206 -h, --help print this help, then exit
27207 -V, --version print version number and configuration settings, then exit
27208 --config print configuration, then exit
27209 -q, --quiet, --silent
27210 do not print progress messages
27211 -d, --debug don't remove temporary files
27212 --recheck update $as_me by reconfiguring in the same conditions
27213 --file=FILE[:TEMPLATE]
27214 instantiate the configuration file FILE
27215
27216 Configuration files:
27217 $config_files
27218
27219 Configuration commands:
27220 $config_commands
27221
27222 Report bugs to <https://bugs.openmpt.org/>.
27223 libopenmpt home page: <https://lib.openmpt.org/>."
27224
27225 _ACEOF
27226 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
27227 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
27228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27229 ac_cs_config='$ac_cs_config_escaped'
27230 ac_cs_version="\\
27231 libopenmpt config.status 0.8.7+release.autotools
27232 configured by $0, generated by GNU Autoconf 2.71,
27233 with options \\"\$ac_cs_config\\"
27234
27235 Copyright (C) 2021 Free Software Foundation, Inc.
27236 This config.status script is free software; the Free Software Foundation
27237 gives unlimited permission to copy, distribute and modify it."
27238
27239 ac_pwd='$ac_pwd'
27240 srcdir='$srcdir'
27241 INSTALL='$INSTALL'
27242 MKDIR_P='$MKDIR_P'
27243 AWK='$AWK'
27244 test -n "\$AWK" || AWK=awk
27245 _ACEOF
27246
27247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27248 # The default lists apply if the user does not specify any file.
27249 ac_need_defaults=:
27250 while test $# != 0
27251 do
27252 case $1 in
27253 --*=?*)
27254 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27255 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27256 ac_shift=:
27257 ;;
27258 --*=)
27259 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27260 ac_optarg=
27261 ac_shift=:
27262 ;;
27263 *)
27264 ac_option=$1
27265 ac_optarg=$2
27266 ac_shift=shift
27267 ;;
27268 esac
27269
27270 case $ac_option in
27271 # Handling of the options.
27272 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27273 ac_cs_recheck=: ;;
27274 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27275 printf "%s\n" "$ac_cs_version"; exit ;;
27276 --config | --confi | --conf | --con | --co | --c )
27277 printf "%s\n" "$ac_cs_config"; exit ;;
27278 --debug | --debu | --deb | --de | --d | -d )
27279 debug=: ;;
27280 --file | --fil | --fi | --f )
27281 $ac_shift
27282 case $ac_optarg in
27283 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27284 '') as_fn_error $? "missing file argument" ;;
27285 esac
27286 as_fn_append CONFIG_FILES " '$ac_optarg'"
27287 ac_need_defaults=false;;
27288 --he | --h | --help | --hel | -h )
27289 printf "%s\n" "$ac_cs_usage"; exit ;;
27290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27291 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27292 ac_cs_silent=: ;;
27293
27294 # This is an error.
27295 -*) as_fn_error $? "unrecognized option: \`$1'
27296 Try \`$0 --help' for more information." ;;
27297
27298 *) as_fn_append ac_config_targets " $1"
27299 ac_need_defaults=false ;;
27300
27301 esac
27302 shift
27303 done
27304
27305 ac_configure_extra_args=
27306
27307 if $ac_cs_silent; then
27308 exec 6>/dev/null
27309 ac_configure_extra_args="$ac_configure_extra_args --silent"
27310 fi
27311
27312 _ACEOF
27313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27314 if \$ac_cs_recheck; then
27315 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27316 shift
27317 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
27318 CONFIG_SHELL='$SHELL'
27319 export CONFIG_SHELL
27320 exec "\$@"
27321 fi
27322
27323 _ACEOF
27324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27325 exec 5>>config.log
27326 {
27327 echo
27328 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27329 ## Running $as_me. ##
27330 _ASBOX
27331 printf "%s\n" "$ac_log"
27332 } >&5
27333
27334 _ACEOF
27335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27336 #
27337 # INIT-COMMANDS
27338 #
27339 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27340
27341
27342 # The HP-UX ksh and POSIX shell print the target directory to stdout
27343 # if CDPATH is set.
27344 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27345
27346 sed_quote_subst='$sed_quote_subst'
27347 double_quote_subst='$double_quote_subst'
27348 delay_variable_subst='$delay_variable_subst'
27349 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27350 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27351 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27352 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27353 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27354 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27355 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27356 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27357 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27358 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27359 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27360 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27361 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27362 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27363 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27364 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27365 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27366 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27367 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27368 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27369 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27370 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27371 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27372 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27373 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27374 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27375 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27376 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27377 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27378 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27379 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27380 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27381 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27382 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27383 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
27384 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27385 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27386 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27387 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27388 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27389 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27390 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27391 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27392 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
27393 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27394 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27395 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27396 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27397 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27398 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27399 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27400 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27401 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27402 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27403 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27404 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27405 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27406 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27407 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27408 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27409 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"`'
27410 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27411 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27412 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27413 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27414 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27415 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27416 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27417 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27418 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27419 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27420 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27421 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27422 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27423 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27424 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27425 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27426 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27427 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27428 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27429 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27430 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27431 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27432 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27433 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27434 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27435 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27436 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27437 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27438 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27439 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27440 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27441 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27442 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27443 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27444 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27445 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27446 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27447 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27448 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27449 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27450 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27451 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27452 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27453 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27454 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27455 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27456 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27457 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27458 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27459 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27460 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27461 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27462 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27463 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27464 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27465 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27466 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27467 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27468 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27469 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27470 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27471 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27472 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27473 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27474 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27475 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27476 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27477 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27478 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27479 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27480 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27481 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27482 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27483 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27484 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27485 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27486 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27487 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27488 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27489 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27490 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27491 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27492 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27493 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27494 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27495 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27496 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27497 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27498 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27499 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27500 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27501 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27502 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27503 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27504 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27505 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27506 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27507 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27508 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27509 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27510 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27511 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27512 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27513 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27514 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27515 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27516 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27517 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27518 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27519 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27520 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27521 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27522 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27523 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27524 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27525 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27526 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27527 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27528 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27529 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27530 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27531 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27532 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27533 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27534 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27535 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27536 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27537 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27538 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27539 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27540
27541 LTCC='$LTCC'
27542 LTCFLAGS='$LTCFLAGS'
27543 compiler='$compiler_DEFAULT'
27544
27545 # A function that is used when there is no print builtin or printf.
27546 func_fallback_echo ()
27547 {
27548 eval 'cat <<_LTECHO_EOF
27549 \$1
27550 _LTECHO_EOF'
27551 }
27552
27553 # Quote evaled strings.
27554 for var in SHELL \
27555 ECHO \
27556 PATH_SEPARATOR \
27557 SED \
27558 GREP \
27559 EGREP \
27560 FGREP \
27561 LD \
27562 NM \
27563 LN_S \
27564 lt_SP2NL \
27565 lt_NL2SP \
27566 reload_flag \
27567 FILECMD \
27568 OBJDUMP \
27569 deplibs_check_method \
27570 file_magic_cmd \
27571 file_magic_glob \
27572 want_nocaseglob \
27573 DLLTOOL \
27574 sharedlib_from_linklib_cmd \
27575 AR \
27576 archiver_list_spec \
27577 STRIP \
27578 RANLIB \
27579 CC \
27580 CFLAGS \
27581 compiler \
27582 lt_cv_sys_global_symbol_pipe \
27583 lt_cv_sys_global_symbol_to_cdecl \
27584 lt_cv_sys_global_symbol_to_import \
27585 lt_cv_sys_global_symbol_to_c_name_address \
27586 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27587 lt_cv_nm_interface \
27588 nm_file_list_spec \
27589 lt_cv_truncate_bin \
27590 lt_prog_compiler_no_builtin_flag \
27591 lt_prog_compiler_pic \
27592 lt_prog_compiler_wl \
27593 lt_prog_compiler_static \
27594 lt_cv_prog_compiler_c_o \
27595 need_locks \
27596 MANIFEST_TOOL \
27597 DSYMUTIL \
27598 NMEDIT \
27599 LIPO \
27600 OTOOL \
27601 OTOOL64 \
27602 shrext_cmds \
27603 export_dynamic_flag_spec \
27604 whole_archive_flag_spec \
27605 compiler_needs_object \
27606 with_gnu_ld \
27607 allow_undefined_flag \
27608 no_undefined_flag \
27609 hardcode_libdir_flag_spec \
27610 hardcode_libdir_separator \
27611 exclude_expsyms \
27612 include_expsyms \
27613 file_list_spec \
27614 variables_saved_for_relink \
27615 libname_spec \
27616 library_names_spec \
27617 soname_spec \
27618 install_override_mode \
27619 finish_eval \
27620 old_striplib \
27621 striplib \
27622 compiler_lib_search_dirs \
27623 predep_objects \
27624 postdep_objects \
27625 predeps \
27626 postdeps \
27627 compiler_lib_search_path \
27628 LD_CXX \
27629 reload_flag_CXX \
27630 compiler_CXX \
27631 lt_prog_compiler_no_builtin_flag_CXX \
27632 lt_prog_compiler_pic_CXX \
27633 lt_prog_compiler_wl_CXX \
27634 lt_prog_compiler_static_CXX \
27635 lt_cv_prog_compiler_c_o_CXX \
27636 export_dynamic_flag_spec_CXX \
27637 whole_archive_flag_spec_CXX \
27638 compiler_needs_object_CXX \
27639 with_gnu_ld_CXX \
27640 allow_undefined_flag_CXX \
27641 no_undefined_flag_CXX \
27642 hardcode_libdir_flag_spec_CXX \
27643 hardcode_libdir_separator_CXX \
27644 exclude_expsyms_CXX \
27645 include_expsyms_CXX \
27646 file_list_spec_CXX \
27647 compiler_lib_search_dirs_CXX \
27648 predep_objects_CXX \
27649 postdep_objects_CXX \
27650 predeps_CXX \
27651 postdeps_CXX \
27652 compiler_lib_search_path_CXX; do
27653 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27654 *[\\\\\\\`\\"\\\$]*)
27655 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27656 ;;
27657 *)
27658 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27659 ;;
27660 esac
27661 done
27662
27663 # Double-quote double-evaled strings.
27664 for var in reload_cmds \
27665 old_postinstall_cmds \
27666 old_postuninstall_cmds \
27667 old_archive_cmds \
27668 extract_expsyms_cmds \
27669 old_archive_from_new_cmds \
27670 old_archive_from_expsyms_cmds \
27671 archive_cmds \
27672 archive_expsym_cmds \
27673 module_cmds \
27674 module_expsym_cmds \
27675 export_symbols_cmds \
27676 prelink_cmds \
27677 postlink_cmds \
27678 postinstall_cmds \
27679 postuninstall_cmds \
27680 finish_cmds \
27681 sys_lib_search_path_spec \
27682 configure_time_dlsearch_path \
27683 configure_time_lt_sys_library_path \
27684 reload_cmds_CXX \
27685 old_archive_cmds_CXX \
27686 old_archive_from_new_cmds_CXX \
27687 old_archive_from_expsyms_cmds_CXX \
27688 archive_cmds_CXX \
27689 archive_expsym_cmds_CXX \
27690 module_cmds_CXX \
27691 module_expsym_cmds_CXX \
27692 export_symbols_cmds_CXX \
27693 prelink_cmds_CXX \
27694 postlink_cmds_CXX; do
27695 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27696 *[\\\\\\\`\\"\\\$]*)
27697 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27698 ;;
27699 *)
27700 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27701 ;;
27702 esac
27703 done
27704
27705 ac_aux_dir='$ac_aux_dir'
27706
27707 # See if we are running on zsh, and set the options that allow our
27708 # commands through without removal of \ escapes INIT.
27709 if test -n "\${ZSH_VERSION+set}"; then
27710 setopt NO_GLOB_SUBST
27711 fi
27712
27713
27714 PACKAGE='$PACKAGE'
27715 VERSION='$VERSION'
27716 RM='$RM'
27717 ofile='$ofile'
27718
27719
27720
27721
27722
27723
27724 _ACEOF
27725
27726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27727
27728 # Handling of arguments.
27729 for ac_config_target in $ac_config_targets
27730 do
27731 case $ac_config_target in
27732 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27733 "libopenmpt/libopenmpt.pc") CONFIG_FILES="$CONFIG_FILES libopenmpt/libopenmpt.pc" ;;
27734 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
27735 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27736 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27737
27738 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27739 esac
27740 done
27741
27742
27743 # If the user did not use the arguments to specify the items to instantiate,
27744 # then the envvar interface is used. Set only those that are not.
27745 # We use the long form for the default assignment because of an extremely
27746 # bizarre bug on SunOS 4.1.3.
27747 if $ac_need_defaults; then
27748 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
27749 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
27750 fi
27751
27752 # Have a temporary directory for convenience. Make it in the build tree
27753 # simply because there is no reason against having it here, and in addition,
27754 # creating and moving files from /tmp can sometimes cause problems.
27755 # Hook for its removal unless debugging.
27756 # Note that there is a small window in which the directory will not be cleaned:
27757 # after its creation but before its name has been assigned to `$tmp'.
27758 $debug ||
27759 {
27760 tmp= ac_tmp=
27761 trap 'exit_status=$?
27762 : "${ac_tmp:=$tmp}"
27763 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27764 ' 0
27765 trap 'as_fn_exit 1' 1 2 13 15
27766 }
27767 # Create a (secure) tmp directory for tmp files.
27768
27769 {
27770 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27771 test -d "$tmp"
27772 } ||
27773 {
27774 tmp=./conf$$-$RANDOM
27775 (umask 077 && mkdir "$tmp")
27776 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27777 ac_tmp=$tmp
27778
27779 # Set up the scripts for CONFIG_FILES section.
27780 # No need to generate them if there are no CONFIG_FILES.
27781 # This happens for instance with `./config.status config.h'.
27782 if test -n "$CONFIG_FILES"; then
27783
27784
27785 ac_cr=`echo X | tr X '\015'`
27786 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27787 # But we know of no other shell where ac_cr would be empty at this
27788 # point, so we can use a bashism as a fallback.
27789 if test "x$ac_cr" = x; then
27790 eval ac_cr=\$\'\\r\'
27791 fi
27792 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27793 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27794 ac_cs_awk_cr='\\r'
27795 else
27796 ac_cs_awk_cr=$ac_cr
27797 fi
27798
27799 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27800 _ACEOF
27801
27802
27803 {
27804 echo "cat >conf$$subs.awk <<_ACEOF" &&
27805 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27806 echo "_ACEOF"
27807 } >conf$$subs.sh ||
27808 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27809 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27810 ac_delim='%!_!# '
27811 for ac_last_try in false false false false false :; do
27812 . ./conf$$subs.sh ||
27813 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27814
27815 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27816 if test $ac_delim_n = $ac_delim_num; then
27817 break
27818 elif $ac_last_try; then
27819 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27820 else
27821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27822 fi
27823 done
27824 rm -f conf$$subs.sh
27825
27826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27827 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27828 _ACEOF
27829 sed -n '
27830 h
27831 s/^/S["/; s/!.*/"]=/
27832 p
27833 g
27834 s/^[^!]*!//
27835 :repl
27836 t repl
27837 s/'"$ac_delim"'$//
27838 t delim
27839 :nl
27840 h
27841 s/\(.\{148\}\)..*/\1/
27842 t more1
27843 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27844 p
27845 n
27846 b repl
27847 :more1
27848 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27849 p
27850 g
27851 s/.\{148\}//
27852 t nl
27853 :delim
27854 h
27855 s/\(.\{148\}\)..*/\1/
27856 t more2
27857 s/["\\]/\\&/g; s/^/"/; s/$/"/
27858 p
27859 b
27860 :more2
27861 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27862 p
27863 g
27864 s/.\{148\}//
27865 t delim
27866 ' <conf$$subs.awk | sed '
27867 /^[^""]/{
27868 N
27869 s/\n//
27870 }
27871 ' >>$CONFIG_STATUS || ac_write_fail=1
27872 rm -f conf$$subs.awk
27873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27874 _ACAWK
27875 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27876 for (key in S) S_is_set[key] = 1
27877 FS = ""
27878
27879 }
27880 {
27881 line = $ 0
27882 nfields = split(line, field, "@")
27883 substed = 0
27884 len = length(field[1])
27885 for (i = 2; i < nfields; i++) {
27886 key = field[i]
27887 keylen = length(key)
27888 if (S_is_set[key]) {
27889 value = S[key]
27890 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27891 len += length(value) + length(field[++i])
27892 substed = 1
27893 } else
27894 len += 1 + keylen
27895 }
27896
27897 print line
27898 }
27899
27900 _ACAWK
27901 _ACEOF
27902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27903 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27904 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27905 else
27906 cat
27907 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27908 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27909 _ACEOF
27910
27911 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27912 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27913 # trailing colons and then remove the whole line if VPATH becomes empty
27914 # (actually we leave an empty line to preserve line numbers).
27915 if test "x$srcdir" = x.; then
27916 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27917 h
27918 s///
27919 s/^/:/
27920 s/[ ]*$/:/
27921 s/:\$(srcdir):/:/g
27922 s/:\${srcdir}:/:/g
27923 s/:@srcdir@:/:/g
27924 s/^:*//
27925 s/:*$//
27926 x
27927 s/\(=[ ]*\).*/\1/
27928 G
27929 s/\n//
27930 s/^[^=]*=[ ]*$//
27931 }'
27932 fi
27933
27934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27935 fi # test -n "$CONFIG_FILES"
27936
27937
27938 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
27939 shift
27940 for ac_tag
27941 do
27942 case $ac_tag in
27943 :[FHLC]) ac_mode=$ac_tag; continue;;
27944 esac
27945 case $ac_mode$ac_tag in
27946 :[FHL]*:*);;
27947 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27948 :[FH]-) ac_tag=-:-;;
27949 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27950 esac
27951 ac_save_IFS=$IFS
27952 IFS=:
27953 set x $ac_tag
27954 IFS=$ac_save_IFS
27955 shift
27956 ac_file=$1
27957 shift
27958
27959 case $ac_mode in
27960 :L) ac_source=$1;;
27961 :[FH])
27962 ac_file_inputs=
27963 for ac_f
27964 do
27965 case $ac_f in
27966 -) ac_f="$ac_tmp/stdin";;
27967 *) # Look for the file first in the build tree, then in the source tree
27968 # (if the path is not absolute). The absolute path cannot be DOS-style,
27969 # because $ac_f cannot contain `:'.
27970 test -f "$ac_f" ||
27971 case $ac_f in
27972 [\\/$]*) false;;
27973 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27974 esac ||
27975 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27976 esac
27977 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27978 as_fn_append ac_file_inputs " '$ac_f'"
27979 done
27980
27981 # Let's still pretend it is `configure' which instantiates (i.e., don't
27982 # use $as_me), people would be surprised to read:
27983 # /* config.h. Generated by config.status. */
27984 configure_input='Generated from '`
27985 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27986 `' by configure.'
27987 if test x"$ac_file" != x-; then
27988 configure_input="$ac_file. $configure_input"
27989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27990 printf "%s\n" "$as_me: creating $ac_file" >&6;}
27991 fi
27992 # Neutralize special characters interpreted by sed in replacement strings.
27993 case $configure_input in #(
27994 *\&* | *\|* | *\\* )
27995 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
27996 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27997 *) ac_sed_conf_input=$configure_input;;
27998 esac
27999
28000 case $ac_tag in
28001 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28003 esac
28004 ;;
28005 esac
28006
28007 ac_dir=`$as_dirname -- "$ac_file" ||
28008 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28009 X"$ac_file" : 'X\(//\)[^/]' \| \
28010 X"$ac_file" : 'X\(//\)$' \| \
28011 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28012 printf "%s\n" X"$ac_file" |
28013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28014 s//\1/
28015 q
28016 }
28017 /^X\(\/\/\)[^/].*/{
28018 s//\1/
28019 q
28020 }
28021 /^X\(\/\/\)$/{
28022 s//\1/
28023 q
28024 }
28025 /^X\(\/\).*/{
28026 s//\1/
28027 q
28028 }
28029 s/.*/./; q'`
28030 as_dir="$ac_dir"; as_fn_mkdir_p
28031 ac_builddir=.
28032
28033 case "$ac_dir" in
28034 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28035 *)
28036 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
28037 # A ".." for each directory in $ac_dir_suffix.
28038 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28039 case $ac_top_builddir_sub in
28040 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28041 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28042 esac ;;
28043 esac
28044 ac_abs_top_builddir=$ac_pwd
28045 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28046 # for backward compatibility:
28047 ac_top_builddir=$ac_top_build_prefix
28048
28049 case $srcdir in
28050 .) # We are building in place.
28051 ac_srcdir=.
28052 ac_top_srcdir=$ac_top_builddir_sub
28053 ac_abs_top_srcdir=$ac_pwd ;;
28054 [\\/]* | ?:[\\/]* ) # Absolute name.
28055 ac_srcdir=$srcdir$ac_dir_suffix;
28056 ac_top_srcdir=$srcdir
28057 ac_abs_top_srcdir=$srcdir ;;
28058 *) # Relative name.
28059 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28060 ac_top_srcdir=$ac_top_build_prefix$srcdir
28061 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28062 esac
28063 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28064
28065
28066 case $ac_mode in
28067 :F)
28068 #
28069 # CONFIG_FILE
28070 #
28071
28072 case $INSTALL in
28073 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28074 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28075 esac
28076 ac_MKDIR_P=$MKDIR_P
28077 case $MKDIR_P in
28078 [\\/$]* | ?:[\\/]* ) ;;
28079 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28080 esac
28081 _ACEOF
28082
28083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28084 # If the template does not know about datarootdir, expand it.
28085 # FIXME: This hack should be removed a few years after 2.60.
28086 ac_datarootdir_hack=; ac_datarootdir_seen=
28087 ac_sed_dataroot='
28088 /datarootdir/ {
28089 p
28090 q
28091 }
28092 /@datadir@/p
28093 /@docdir@/p
28094 /@infodir@/p
28095 /@localedir@/p
28096 /@mandir@/p'
28097 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28098 *datarootdir*) ac_datarootdir_seen=yes;;
28099 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28101 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28102 _ACEOF
28103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28104 ac_datarootdir_hack='
28105 s&@datadir@&$datadir&g
28106 s&@docdir@&$docdir&g
28107 s&@infodir@&$infodir&g
28108 s&@localedir@&$localedir&g
28109 s&@mandir@&$mandir&g
28110 s&\\\${datarootdir}&$datarootdir&g' ;;
28111 esac
28112 _ACEOF
28113
28114 # Neutralize VPATH when `$srcdir' = `.'.
28115 # Shell code in configure.ac might set extrasub.
28116 # FIXME: do we really want to maintain this feature?
28117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28118 ac_sed_extra="$ac_vpsub
28119 $extrasub
28120 _ACEOF
28121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28122 :t
28123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28124 s|@configure_input@|$ac_sed_conf_input|;t t
28125 s&@top_builddir@&$ac_top_builddir_sub&;t t
28126 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28127 s&@srcdir@&$ac_srcdir&;t t
28128 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28129 s&@top_srcdir@&$ac_top_srcdir&;t t
28130 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28131 s&@builddir@&$ac_builddir&;t t
28132 s&@abs_builddir@&$ac_abs_builddir&;t t
28133 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28134 s&@INSTALL@&$ac_INSTALL&;t t
28135 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28136 $ac_datarootdir_hack
28137 "
28138 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28139 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28140
28141 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28142 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28143 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28144 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28146 which seems to be undefined. Please make sure it is defined" >&5
28147 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28148 which seems to be undefined. Please make sure it is defined" >&2;}
28149
28150 rm -f "$ac_tmp/stdin"
28151 case $ac_file in
28152 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28153 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28154 esac \
28155 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28156 ;;
28157
28158
28159 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28160 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
28161 ;;
28162 esac
28163
28164
28165 case $ac_file$ac_mode in
28166 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28167 # Older Autoconf quotes --file arguments for eval, but not when files
28168 # are listed without --file. Let's play safe and only enable the eval
28169 # if we detect the quoting.
28170 # TODO: see whether this extra hack can be removed once we start
28171 # requiring Autoconf 2.70 or later.
28172 case $CONFIG_FILES in #(
28173 *\'*) :
28174 eval set x "$CONFIG_FILES" ;; #(
28175 *) :
28176 set x $CONFIG_FILES ;; #(
28177 *) :
28178 ;;
28179 esac
28180 shift
28181 # Used to flag and report bootstrapping failures.
28182 am_rc=0
28183 for am_mf
28184 do
28185 # Strip MF so we end up with the name of the file.
28186 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
28187 # Check whether this is an Automake generated Makefile which includes
28188 # dependency-tracking related rules and includes.
28189 # Grep'ing the whole file directly is not great: AIX grep has a line
28190 # limit of 2048, but all sed's we know have understand at least 4000.
28191 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28192 || continue
28193 am_dirpart=`$as_dirname -- "$am_mf" ||
28194 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28195 X"$am_mf" : 'X\(//\)[^/]' \| \
28196 X"$am_mf" : 'X\(//\)$' \| \
28197 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28198 printf "%s\n" X"$am_mf" |
28199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28200 s//\1/
28201 q
28202 }
28203 /^X\(\/\/\)[^/].*/{
28204 s//\1/
28205 q
28206 }
28207 /^X\(\/\/\)$/{
28208 s//\1/
28209 q
28210 }
28211 /^X\(\/\).*/{
28212 s//\1/
28213 q
28214 }
28215 s/.*/./; q'`
28216 am_filepart=`$as_basename -- "$am_mf" ||
28217 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28218 X"$am_mf" : 'X\(//\)$' \| \
28219 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28220 printf "%s\n" X/"$am_mf" |
28221 sed '/^.*\/\([^/][^/]*\)\/*$/{
28222 s//\1/
28223 q
28224 }
28225 /^X\/\(\/\/\)$/{
28226 s//\1/
28227 q
28228 }
28229 /^X\/\(\/\).*/{
28230 s//\1/
28231 q
28232 }
28233 s/.*/./; q'`
28234 { echo "$as_me:$LINENO: cd "$am_dirpart" \
28235 && sed -e '/# am--include-marker/d' "$am_filepart" \
28236 | $MAKE -f - am--depfiles" >&5
28237 (cd "$am_dirpart" \
28238 && sed -e '/# am--include-marker/d' "$am_filepart" \
28239 | $MAKE -f - am--depfiles) >&5 2>&5
28240 ac_status=$?
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); } || am_rc=$?
28243 done
28244 if test $am_rc -ne 0; then
28245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28246 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28247 as_fn_error $? "Something went wrong bootstrapping makefile fragments
28248 for automatic dependency tracking. If GNU make was not used, consider
28249 re-running the configure script with MAKE=\"gmake\" (or whatever is
28250 necessary). You can also try re-running configure with the
28251 '--disable-dependency-tracking' option to at least be able to build
28252 the package (albeit without support for automatic dependency tracking).
28253 See \`config.log' for more details" "$LINENO" 5; }
28254 fi
28255 { am_dirpart=; unset am_dirpart;}
28256 { am_filepart=; unset am_filepart;}
28257 { am_mf=; unset am_mf;}
28258 { am_rc=; unset am_rc;}
28259 rm -f conftest-deps.mk
28260 }
28261 ;;
28262 "libtool":C)
28263
28264 # See if we are running on zsh, and set the options that allow our
28265 # commands through without removal of \ escapes.
28266 if test -n "${ZSH_VERSION+set}"; then
28267 setopt NO_GLOB_SUBST
28268 fi
28269
28270 cfgfile=${ofile}T
28271 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28272 $RM "$cfgfile"
28273
28274 cat <<_LT_EOF >> "$cfgfile"
28275 #! $SHELL
28276 # Generated automatically by $as_me ($PACKAGE) $VERSION
28277 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28278
28279 # Provide generalized library-building support services.
28280 # Written by Gordon Matzigkeit, 1996
28281
28282 # Copyright (C) 2014 Free Software Foundation, Inc.
28283 # This is free software; see the source for copying conditions. There is NO
28284 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28285
28286 # GNU Libtool is free software; you can redistribute it and/or modify
28287 # it under the terms of the GNU General Public License as published by
28288 # the Free Software Foundation; either version 2 of of the License, or
28289 # (at your option) any later version.
28290 #
28291 # As a special exception to the GNU General Public License, if you
28292 # distribute this file as part of a program or library that is built
28293 # using GNU Libtool, you may include this file under the same
28294 # distribution terms that you use for the rest of that program.
28295 #
28296 # GNU Libtool is distributed in the hope that it will be useful, but
28297 # WITHOUT ANY WARRANTY; without even the implied warranty of
28298 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28299 # GNU General Public License for more details.
28300 #
28301 # You should have received a copy of the GNU General Public License
28302 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28303
28304
28305 # The names of the tagged configurations supported by this script.
28306 available_tags='CXX '
28307
28308 # Configured defaults for sys_lib_dlsearch_path munging.
28309 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28310
28311 # ### BEGIN LIBTOOL CONFIG
28312
28313 # Which release of libtool.m4 was used?
28314 macro_version=$macro_version
28315 macro_revision=$macro_revision
28316
28317 # Whether or not to build shared libraries.
28318 build_libtool_libs=$enable_shared
28319
28320 # Whether or not to build static libraries.
28321 build_old_libs=$enable_static
28322
28323 # What type of objects to build.
28324 pic_mode=$pic_mode
28325
28326 # Whether or not to optimize for fast installation.
28327 fast_install=$enable_fast_install
28328
28329 # Shared archive member basename,for filename based shared library versioning on AIX.
28330 shared_archive_member_spec=$shared_archive_member_spec
28331
28332 # Shell to use when invoking shell scripts.
28333 SHELL=$lt_SHELL
28334
28335 # An echo program that protects backslashes.
28336 ECHO=$lt_ECHO
28337
28338 # The PATH separator for the build system.
28339 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28340
28341 # The host system.
28342 host_alias=$host_alias
28343 host=$host
28344 host_os=$host_os
28345
28346 # The build system.
28347 build_alias=$build_alias
28348 build=$build
28349 build_os=$build_os
28350
28351 # A sed program that does not truncate output.
28352 SED=$lt_SED
28353
28354 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28355 Xsed="\$SED -e 1s/^X//"
28356
28357 # A grep program that handles long lines.
28358 GREP=$lt_GREP
28359
28360 # An ERE matcher.
28361 EGREP=$lt_EGREP
28362
28363 # A literal string matcher.
28364 FGREP=$lt_FGREP
28365
28366 # A BSD- or MS-compatible name lister.
28367 NM=$lt_NM
28368
28369 # Whether we need soft or hard links.
28370 LN_S=$lt_LN_S
28371
28372 # What is the maximum length of a command?
28373 max_cmd_len=$max_cmd_len
28374
28375 # Object file suffix (normally "o").
28376 objext=$ac_objext
28377
28378 # Executable file suffix (normally "").
28379 exeext=$exeext
28380
28381 # whether the shell understands "unset".
28382 lt_unset=$lt_unset
28383
28384 # turn spaces into newlines.
28385 SP2NL=$lt_lt_SP2NL
28386
28387 # turn newlines into spaces.
28388 NL2SP=$lt_lt_NL2SP
28389
28390 # convert \$build file names to \$host format.
28391 to_host_file_cmd=$lt_cv_to_host_file_cmd
28392
28393 # convert \$build files to toolchain format.
28394 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28395
28396 # A file(cmd) program that detects file types.
28397 FILECMD=$lt_FILECMD
28398
28399 # An object symbol dumper.
28400 OBJDUMP=$lt_OBJDUMP
28401
28402 # Method to check whether dependent libraries are shared objects.
28403 deplibs_check_method=$lt_deplibs_check_method
28404
28405 # Command to use when deplibs_check_method = "file_magic".
28406 file_magic_cmd=$lt_file_magic_cmd
28407
28408 # How to find potential files when deplibs_check_method = "file_magic".
28409 file_magic_glob=$lt_file_magic_glob
28410
28411 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28412 want_nocaseglob=$lt_want_nocaseglob
28413
28414 # DLL creation program.
28415 DLLTOOL=$lt_DLLTOOL
28416
28417 # Command to associate shared and link libraries.
28418 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28419
28420 # The archiver.
28421 AR=$lt_AR
28422
28423 # Flags to create an archive (by configure).
28424 lt_ar_flags=$lt_ar_flags
28425
28426 # Flags to create an archive.
28427 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
28428
28429 # How to feed a file listing to the archiver.
28430 archiver_list_spec=$lt_archiver_list_spec
28431
28432 # A symbol stripping program.
28433 STRIP=$lt_STRIP
28434
28435 # Commands used to install an old-style archive.
28436 RANLIB=$lt_RANLIB
28437 old_postinstall_cmds=$lt_old_postinstall_cmds
28438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28439
28440 # Whether to use a lock for old archive extraction.
28441 lock_old_archive_extraction=$lock_old_archive_extraction
28442
28443 # A C compiler.
28444 LTCC=$lt_CC
28445
28446 # LTCC compiler flags.
28447 LTCFLAGS=$lt_CFLAGS
28448
28449 # Take the output of nm and produce a listing of raw symbols and C names.
28450 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28451
28452 # Transform the output of nm in a proper C declaration.
28453 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28454
28455 # Transform the output of nm into a list of symbols to manually relocate.
28456 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28457
28458 # Transform the output of nm in a C name address pair.
28459 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28460
28461 # Transform the output of nm in a C name address pair when lib prefix is needed.
28462 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28463
28464 # The name lister interface.
28465 nm_interface=$lt_lt_cv_nm_interface
28466
28467 # Specify filename containing input files for \$NM.
28468 nm_file_list_spec=$lt_nm_file_list_spec
28469
28470 # The root where to search for dependent libraries,and where our libraries should be installed.
28471 lt_sysroot=$lt_sysroot
28472
28473 # Command to truncate a binary pipe.
28474 lt_truncate_bin=$lt_lt_cv_truncate_bin
28475
28476 # The name of the directory that contains temporary libtool files.
28477 objdir=$objdir
28478
28479 # Used to examine libraries when file_magic_cmd begins with "file".
28480 MAGIC_CMD=$MAGIC_CMD
28481
28482 # Must we lock files when doing compilation?
28483 need_locks=$lt_need_locks
28484
28485 # Manifest tool.
28486 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28487
28488 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28489 DSYMUTIL=$lt_DSYMUTIL
28490
28491 # Tool to change global to local symbols on Mac OS X.
28492 NMEDIT=$lt_NMEDIT
28493
28494 # Tool to manipulate fat objects and archives on Mac OS X.
28495 LIPO=$lt_LIPO
28496
28497 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28498 OTOOL=$lt_OTOOL
28499
28500 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28501 OTOOL64=$lt_OTOOL64
28502
28503 # Old archive suffix (normally "a").
28504 libext=$libext
28505
28506 # Shared library suffix (normally ".so").
28507 shrext_cmds=$lt_shrext_cmds
28508
28509 # The commands to extract the exported symbol list from a shared archive.
28510 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28511
28512 # Variables whose values should be saved in libtool wrapper scripts and
28513 # restored at link time.
28514 variables_saved_for_relink=$lt_variables_saved_for_relink
28515
28516 # Do we need the "lib" prefix for modules?
28517 need_lib_prefix=$need_lib_prefix
28518
28519 # Do we need a version for libraries?
28520 need_version=$need_version
28521
28522 # Library versioning type.
28523 version_type=$version_type
28524
28525 # Shared library runtime path variable.
28526 runpath_var=$runpath_var
28527
28528 # Shared library path variable.
28529 shlibpath_var=$shlibpath_var
28530
28531 # Is shlibpath searched before the hard-coded library search path?
28532 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28533
28534 # Format of library name prefix.
28535 libname_spec=$lt_libname_spec
28536
28537 # List of archive names. First name is the real one, the rest are links.
28538 # The last name is the one that the linker finds with -lNAME
28539 library_names_spec=$lt_library_names_spec
28540
28541 # The coded name of the library, if different from the real name.
28542 soname_spec=$lt_soname_spec
28543
28544 # Permission mode override for installation of shared libraries.
28545 install_override_mode=$lt_install_override_mode
28546
28547 # Command to use after installation of a shared archive.
28548 postinstall_cmds=$lt_postinstall_cmds
28549
28550 # Command to use after uninstallation of a shared archive.
28551 postuninstall_cmds=$lt_postuninstall_cmds
28552
28553 # Commands used to finish a libtool library installation in a directory.
28554 finish_cmds=$lt_finish_cmds
28555
28556 # As "finish_cmds", except a single script fragment to be evaled but
28557 # not shown.
28558 finish_eval=$lt_finish_eval
28559
28560 # Whether we should hardcode library paths into libraries.
28561 hardcode_into_libs=$hardcode_into_libs
28562
28563 # Compile-time system search path for libraries.
28564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28565
28566 # Detected run-time system search path for libraries.
28567 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28568
28569 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28570 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28571
28572 # Whether dlopen is supported.
28573 dlopen_support=$enable_dlopen
28574
28575 # Whether dlopen of programs is supported.
28576 dlopen_self=$enable_dlopen_self
28577
28578 # Whether dlopen of statically linked programs is supported.
28579 dlopen_self_static=$enable_dlopen_self_static
28580
28581 # Commands to strip libraries.
28582 old_striplib=$lt_old_striplib
28583 striplib=$lt_striplib
28584
28585
28586 # The linker used to build libraries.
28587 LD=$lt_LD
28588
28589 # How to create reloadable object files.
28590 reload_flag=$lt_reload_flag
28591 reload_cmds=$lt_reload_cmds
28592
28593 # Commands used to build an old-style archive.
28594 old_archive_cmds=$lt_old_archive_cmds
28595
28596 # A language specific compiler.
28597 CC=$lt_compiler
28598
28599 # Is the compiler the GNU compiler?
28600 with_gcc=$GCC
28601
28602 # Compiler flag to turn off builtin functions.
28603 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28604
28605 # Additional compiler flags for building library objects.
28606 pic_flag=$lt_lt_prog_compiler_pic
28607
28608 # How to pass a linker flag through the compiler.
28609 wl=$lt_lt_prog_compiler_wl
28610
28611 # Compiler flag to prevent dynamic linking.
28612 link_static_flag=$lt_lt_prog_compiler_static
28613
28614 # Does compiler simultaneously support -c and -o options?
28615 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28616
28617 # Whether or not to add -lc for building shared libraries.
28618 build_libtool_need_lc=$archive_cmds_need_lc
28619
28620 # Whether or not to disallow shared libs when runtime libs are static.
28621 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28622
28623 # Compiler flag to allow reflexive dlopens.
28624 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28625
28626 # Compiler flag to generate shared objects directly from archives.
28627 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28628
28629 # Whether the compiler copes with passing no objects directly.
28630 compiler_needs_object=$lt_compiler_needs_object
28631
28632 # Create an old-style archive from a shared archive.
28633 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28634
28635 # Create a temporary old-style archive to link instead of a shared archive.
28636 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28637
28638 # Commands used to build a shared archive.
28639 archive_cmds=$lt_archive_cmds
28640 archive_expsym_cmds=$lt_archive_expsym_cmds
28641
28642 # Commands used to build a loadable module if different from building
28643 # a shared archive.
28644 module_cmds=$lt_module_cmds
28645 module_expsym_cmds=$lt_module_expsym_cmds
28646
28647 # Whether we are building with GNU ld or not.
28648 with_gnu_ld=$lt_with_gnu_ld
28649
28650 # Flag that allows shared libraries with undefined symbols to be built.
28651 allow_undefined_flag=$lt_allow_undefined_flag
28652
28653 # Flag that enforces no undefined symbols.
28654 no_undefined_flag=$lt_no_undefined_flag
28655
28656 # Flag to hardcode \$libdir into a binary during linking.
28657 # This must work even if \$libdir does not exist
28658 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28659
28660 # Whether we need a single "-rpath" flag with a separated argument.
28661 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28662
28663 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28664 # DIR into the resulting binary.
28665 hardcode_direct=$hardcode_direct
28666
28667 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28668 # DIR into the resulting binary and the resulting library dependency is
28669 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28670 # library is relocated.
28671 hardcode_direct_absolute=$hardcode_direct_absolute
28672
28673 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28674 # into the resulting binary.
28675 hardcode_minus_L=$hardcode_minus_L
28676
28677 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28678 # into the resulting binary.
28679 hardcode_shlibpath_var=$hardcode_shlibpath_var
28680
28681 # Set to "yes" if building a shared library automatically hardcodes DIR
28682 # into the library and all subsequent libraries and executables linked
28683 # against it.
28684 hardcode_automatic=$hardcode_automatic
28685
28686 # Set to yes if linker adds runtime paths of dependent libraries
28687 # to runtime path list.
28688 inherit_rpath=$inherit_rpath
28689
28690 # Whether libtool must link a program against all its dependency libraries.
28691 link_all_deplibs=$link_all_deplibs
28692
28693 # Set to "yes" if exported symbols are required.
28694 always_export_symbols=$always_export_symbols
28695
28696 # The commands to list exported symbols.
28697 export_symbols_cmds=$lt_export_symbols_cmds
28698
28699 # Symbols that should not be listed in the preloaded symbols.
28700 exclude_expsyms=$lt_exclude_expsyms
28701
28702 # Symbols that must always be exported.
28703 include_expsyms=$lt_include_expsyms
28704
28705 # Commands necessary for linking programs (against libraries) with templates.
28706 prelink_cmds=$lt_prelink_cmds
28707
28708 # Commands necessary for finishing linking programs.
28709 postlink_cmds=$lt_postlink_cmds
28710
28711 # Specify filename containing input files.
28712 file_list_spec=$lt_file_list_spec
28713
28714 # How to hardcode a shared library path into an executable.
28715 hardcode_action=$hardcode_action
28716
28717 # The directories searched by this compiler when creating a shared library.
28718 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28719
28720 # Dependencies to place before and after the objects being linked to
28721 # create a shared library.
28722 predep_objects=$lt_predep_objects
28723 postdep_objects=$lt_postdep_objects
28724 predeps=$lt_predeps
28725 postdeps=$lt_postdeps
28726
28727 # The library search path used internally by the compiler when linking
28728 # a shared library.
28729 compiler_lib_search_path=$lt_compiler_lib_search_path
28730
28731 # ### END LIBTOOL CONFIG
28732
28733 _LT_EOF
28734
28735 cat <<'_LT_EOF' >> "$cfgfile"
28736
28737 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28738
28739 # func_munge_path_list VARIABLE PATH
28740 # -----------------------------------
28741 # VARIABLE is name of variable containing _space_ separated list of
28742 # directories to be munged by the contents of PATH, which is string
28743 # having a format:
28744 # "DIR[:DIR]:"
28745 # string "DIR[ DIR]" will be prepended to VARIABLE
28746 # ":DIR[:DIR]"
28747 # string "DIR[ DIR]" will be appended to VARIABLE
28748 # "DIRP[:DIRP]::[DIRA:]DIRA"
28749 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28750 # "DIRA[ DIRA]" will be appended to VARIABLE
28751 # "DIR[:DIR]"
28752 # VARIABLE will be replaced by "DIR[ DIR]"
28753 func_munge_path_list ()
28754 {
28755 case x$2 in
28756 x)
28757 ;;
28758 *:)
28759 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28760 ;;
28761 x:*)
28762 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28763 ;;
28764 *::*)
28765 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28766 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28767 ;;
28768 *)
28769 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28770 ;;
28771 esac
28772 }
28773
28774
28775 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
28776 func_cc_basename ()
28777 {
28778 for cc_temp in $*""; do
28779 case $cc_temp in
28780 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28781 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28782 \-*) ;;
28783 *) break;;
28784 esac
28785 done
28786 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28787 }
28788
28789
28790 # ### END FUNCTIONS SHARED WITH CONFIGURE
28791
28792 _LT_EOF
28793
28794 case $host_os in
28795 aix3*)
28796 cat <<\_LT_EOF >> "$cfgfile"
28797 # AIX sometimes has problems with the GCC collect2 program. For some
28798 # reason, if we set the COLLECT_NAMES environment variable, the problems
28799 # vanish in a puff of smoke.
28800 if test set != "${COLLECT_NAMES+set}"; then
28801 COLLECT_NAMES=
28802 export COLLECT_NAMES
28803 fi
28804 _LT_EOF
28805 ;;
28806 esac
28807
28808
28809
28810 ltmain=$ac_aux_dir/ltmain.sh
28811
28812
28813 # We use sed instead of cat because bash on DJGPP gets confused if
28814 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28815 # text mode, it properly converts lines to CR/LF. This bash problem
28816 # is reportedly fixed, but why not run on old versions too?
28817 $SED '$q' "$ltmain" >> "$cfgfile" \
28818 || (rm -f "$cfgfile"; exit 1)
28819
28820 mv -f "$cfgfile" "$ofile" ||
28821 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28822 chmod +x "$ofile"
28823
28824
28825 cat <<_LT_EOF >> "$ofile"
28826
28827 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28828
28829 # The linker used to build libraries.
28830 LD=$lt_LD_CXX
28831
28832 # How to create reloadable object files.
28833 reload_flag=$lt_reload_flag_CXX
28834 reload_cmds=$lt_reload_cmds_CXX
28835
28836 # Commands used to build an old-style archive.
28837 old_archive_cmds=$lt_old_archive_cmds_CXX
28838
28839 # A language specific compiler.
28840 CC=$lt_compiler_CXX
28841
28842 # Is the compiler the GNU compiler?
28843 with_gcc=$GCC_CXX
28844
28845 # Compiler flag to turn off builtin functions.
28846 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28847
28848 # Additional compiler flags for building library objects.
28849 pic_flag=$lt_lt_prog_compiler_pic_CXX
28850
28851 # How to pass a linker flag through the compiler.
28852 wl=$lt_lt_prog_compiler_wl_CXX
28853
28854 # Compiler flag to prevent dynamic linking.
28855 link_static_flag=$lt_lt_prog_compiler_static_CXX
28856
28857 # Does compiler simultaneously support -c and -o options?
28858 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28859
28860 # Whether or not to add -lc for building shared libraries.
28861 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28862
28863 # Whether or not to disallow shared libs when runtime libs are static.
28864 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28865
28866 # Compiler flag to allow reflexive dlopens.
28867 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28868
28869 # Compiler flag to generate shared objects directly from archives.
28870 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28871
28872 # Whether the compiler copes with passing no objects directly.
28873 compiler_needs_object=$lt_compiler_needs_object_CXX
28874
28875 # Create an old-style archive from a shared archive.
28876 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28877
28878 # Create a temporary old-style archive to link instead of a shared archive.
28879 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28880
28881 # Commands used to build a shared archive.
28882 archive_cmds=$lt_archive_cmds_CXX
28883 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28884
28885 # Commands used to build a loadable module if different from building
28886 # a shared archive.
28887 module_cmds=$lt_module_cmds_CXX
28888 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28889
28890 # Whether we are building with GNU ld or not.
28891 with_gnu_ld=$lt_with_gnu_ld_CXX
28892
28893 # Flag that allows shared libraries with undefined symbols to be built.
28894 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28895
28896 # Flag that enforces no undefined symbols.
28897 no_undefined_flag=$lt_no_undefined_flag_CXX
28898
28899 # Flag to hardcode \$libdir into a binary during linking.
28900 # This must work even if \$libdir does not exist
28901 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28902
28903 # Whether we need a single "-rpath" flag with a separated argument.
28904 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28905
28906 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28907 # DIR into the resulting binary.
28908 hardcode_direct=$hardcode_direct_CXX
28909
28910 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28911 # DIR into the resulting binary and the resulting library dependency is
28912 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28913 # library is relocated.
28914 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28915
28916 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28917 # into the resulting binary.
28918 hardcode_minus_L=$hardcode_minus_L_CXX
28919
28920 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28921 # into the resulting binary.
28922 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28923
28924 # Set to "yes" if building a shared library automatically hardcodes DIR
28925 # into the library and all subsequent libraries and executables linked
28926 # against it.
28927 hardcode_automatic=$hardcode_automatic_CXX
28928
28929 # Set to yes if linker adds runtime paths of dependent libraries
28930 # to runtime path list.
28931 inherit_rpath=$inherit_rpath_CXX
28932
28933 # Whether libtool must link a program against all its dependency libraries.
28934 link_all_deplibs=$link_all_deplibs_CXX
28935
28936 # Set to "yes" if exported symbols are required.
28937 always_export_symbols=$always_export_symbols_CXX
28938
28939 # The commands to list exported symbols.
28940 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28941
28942 # Symbols that should not be listed in the preloaded symbols.
28943 exclude_expsyms=$lt_exclude_expsyms_CXX
28944
28945 # Symbols that must always be exported.
28946 include_expsyms=$lt_include_expsyms_CXX
28947
28948 # Commands necessary for linking programs (against libraries) with templates.
28949 prelink_cmds=$lt_prelink_cmds_CXX
28950
28951 # Commands necessary for finishing linking programs.
28952 postlink_cmds=$lt_postlink_cmds_CXX
28953
28954 # Specify filename containing input files.
28955 file_list_spec=$lt_file_list_spec_CXX
28956
28957 # How to hardcode a shared library path into an executable.
28958 hardcode_action=$hardcode_action_CXX
28959
28960 # The directories searched by this compiler when creating a shared library.
28961 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28962
28963 # Dependencies to place before and after the objects being linked to
28964 # create a shared library.
28965 predep_objects=$lt_predep_objects_CXX
28966 postdep_objects=$lt_postdep_objects_CXX
28967 predeps=$lt_predeps_CXX
28968 postdeps=$lt_postdeps_CXX
28969
28970 # The library search path used internally by the compiler when linking
28971 # a shared library.
28972 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28973
28974 # ### END LIBTOOL TAG CONFIG: CXX
28975 _LT_EOF
28976
28977 ;;
28978
28979 esac
28980 done # for ac_tag
28981
28982
28983 as_fn_exit 0
28984 _ACEOF
28985 ac_clean_files=$ac_clean_files_save
28986
28987 test $ac_write_fail = 0 ||
28988 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28989
28990
28991 # configure is writing to config.log, and then calls config.status.
28992 # config.status does its own redirection, appending to config.log.
28993 # Unfortunately, on DOS this fails, as config.log is still kept open
28994 # by configure, so config.status won't be able to write to it; its
28995 # output is simply discarded. So we exec the FD to /dev/null,
28996 # effectively closing config.log, so it can be properly (re)opened and
28997 # appended to by config.status. When coming back to configure, we
28998 # need to make the FD available again.
28999 if test "$no_create" != yes; then
29000 ac_cs_success=:
29001 ac_config_status_args=
29002 test "$silent" = yes &&
29003 ac_config_status_args="$ac_config_status_args --quiet"
29004 exec 5>/dev/null
29005 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29006 exec 5>>config.log
29007 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29008 # would make configure fail if this is the last instruction.
29009 $ac_cs_success || as_fn_exit 1
29010 fi
29011 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29013 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29014 fi
29015
29016
29017