Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libqxp 0.0.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) 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 case e in #(
239 e) 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 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='libqxp'
613 PACKAGE_TARNAME='libqxp'
614 PACKAGE_VERSION='0.0.3'
615 PACKAGE_STRING='libqxp 0.0.3'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_subst_vars='am__EXEEXT_FALSE
652 am__EXEEXT_TRUE
653 LTLIBOBJS
654 LIBOBJS
655 REVENGE_STREAM_LIBS
656 REVENGE_STREAM_CFLAGS
657 REVENGE_GENERATORS_LIBS
658 REVENGE_GENERATORS_CFLAGS
659 BUILD_FUZZERS_FALSE
660 BUILD_FUZZERS_TRUE
661 BUILD_TOOLS_FALSE
662 BUILD_TOOLS_TRUE
663 WITH_DOCS_FALSE
664 WITH_DOCS_TRUE
665 DOXYGEN
666 WITH_TESTS_FALSE
667 WITH_TESTS_TRUE
668 CPPUNIT_LIBS
669 CPPUNIT_CFLAGS
670 DEBUG_CXXFLAGS
671 WINDRES
672 HAVE_VISIBILITY_FALSE
673 HAVE_VISIBILITY_TRUE
674 PLATFORM_WIN32_FALSE
675 PLATFORM_WIN32_TRUE
676 QXP2SVG_WIN32_RESOURCE
677 QXP2RAW_WIN32_RESOURCE
678 LIBQXP_WIN32_RESOURCE
679 OS_WIN32_FALSE
680 OS_WIN32_TRUE
681 LT_AGE
682 LT_REVISION
683 LT_CURRENT
684 QXP_VERSION
685 QXP_MICRO_VERSION
686 QXP_MINOR_VERSION
687 QXP_MAJOR_VERSION
688 ICU_LIBS
689 ICU_CFLAGS
690 BOOST_CFLAGS
691 REVENGE_LIBS
692 REVENGE_CFLAGS
693 PKG_CONFIG_LIBDIR
694 PKG_CONFIG_PATH
695 PKG_CONFIG
696 HAVE_CXX11
697 CXXCPP
698 LT_SYS_LIBRARY_PATH
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 MANIFEST_TOOL
705 RANLIB
706 FILECMD
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LD
711 FGREP
712 EGREP
713 GREP
714 SED
715 host_os
716 host_vendor
717 host_cpu
718 host
719 build_os
720 build_vendor
721 build_cpu
722 build
723 LIBTOOL
724 OBJDUMP
725 DLLTOOL
726 AS
727 LN_S
728 am__fastdepCXX_FALSE
729 am__fastdepCXX_TRUE
730 CXXDEPMODE
731 ac_ct_CXX
732 CXXFLAGS
733 CXX
734 CPP
735 am__fastdepCC_FALSE
736 am__fastdepCC_TRUE
737 CCDEPMODE
738 am__nodep
739 AMDEPBACKSLASH
740 AMDEP_FALSE
741 AMDEP_TRUE
742 am__include
743 DEPDIR
744 OBJEXT
745 EXEEXT
746 ac_ct_CC
747 CPPFLAGS
748 LDFLAGS
749 CFLAGS
750 CC
751 ac_ct_AR
752 AR
753 am__xargs_n
754 am__rm_f_notfound
755 AM_BACKSLASH
756 AM_DEFAULT_VERBOSITY
757 AM_DEFAULT_V
758 AM_V
759 CSCOPE
760 ETAGS
761 CTAGS
762 am__untar
763 am__tar
764 AMTAR
765 am__leading_dot
766 SET_MAKE
767 AWK
768 mkdir_p
769 MKDIR_P
770 INSTALL_STRIP_PROGRAM
771 STRIP
772 install_sh
773 MAKEINFO
774 AUTOHEADER
775 AUTOMAKE
776 AUTOCONF
777 ACLOCAL
778 VERSION
779 PACKAGE
780 CYGPATH_W
781 am__isrc
782 INSTALL_DATA
783 INSTALL_SCRIPT
784 INSTALL_PROGRAM
785 target_alias
786 host_alias
787 build_alias
788 LIBS
789 ECHO_T
790 ECHO_N
791 ECHO_C
792 DEFS
793 mandir
794 localedir
795 libdir
796 psdir
797 pdfdir
798 dvidir
799 htmldir
800 infodir
801 docdir
802 oldincludedir
803 includedir
804 runstatedir
805 localstatedir
806 sharedstatedir
807 sysconfdir
808 datadir
809 datarootdir
810 libexecdir
811 sbindir
812 bindir
813 program_transform_name
814 prefix
815 exec_prefix
816 PACKAGE_URL
817 PACKAGE_BUGREPORT
818 PACKAGE_STRING
819 PACKAGE_VERSION
820 PACKAGE_TARNAME
821 PACKAGE_NAME
822 PATH_SEPARATOR
823 SHELL
824 am__quote'
825 ac_subst_files=''
826 ac_user_opts='
827 enable_option_checking
828 enable_silent_rules
829 enable_dependency_tracking
830 enable_static
831 enable_pic
832 with_pic
833 enable_shared
834 enable_fast_install
835 enable_aix_soname
836 with_aix_soname
837 with_gnu_ld
838 with_sysroot
839 enable_libtool_lock
840 enable_werror
841 enable_weffc
842 enable_wparanoic
843 enable_debug
844 enable_tests
845 with_docs
846 enable_tools
847 enable_fuzzers
848 '
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CC
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 CPP
858 CXX
859 CXXFLAGS
860 CCC
861 LT_SYS_LIBRARY_PATH
862 CXXCPP
863 PKG_CONFIG
864 PKG_CONFIG_PATH
865 PKG_CONFIG_LIBDIR
866 REVENGE_CFLAGS
867 REVENGE_LIBS
868 ICU_CFLAGS
869 ICU_LIBS
870 CPPUNIT_CFLAGS
871 CPPUNIT_LIBS
872 REVENGE_GENERATORS_CFLAGS
873 REVENGE_GENERATORS_LIBS
874 REVENGE_STREAM_CFLAGS
875 REVENGE_STREAM_LIBS'
876
877
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 ac_unrecognized_opts=
882 ac_unrecognized_sep=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
885 cache_file=/dev/null
886 exec_prefix=NONE
887 no_create=
888 no_recursion=
889 prefix=NONE
890 program_prefix=NONE
891 program_suffix=NONE
892 program_transform_name=s,x,x,
893 silent=
894 site=
895 srcdir=
896 verbose=
897 x_includes=NONE
898 x_libraries=NONE
899
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir='${exec_prefix}/bin'
907 sbindir='${exec_prefix}/sbin'
908 libexecdir='${exec_prefix}/libexec'
909 datarootdir='${prefix}/share'
910 datadir='${datarootdir}'
911 sysconfdir='${prefix}/etc'
912 sharedstatedir='${prefix}/com'
913 localstatedir='${prefix}/var'
914 runstatedir='${localstatedir}/run'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
926
927 ac_prev=
928 ac_dashdash=
929 for ac_option
930 do
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
934 ac_prev=
935 continue
936 fi
937
938 case $ac_option in
939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *=) ac_optarg= ;;
941 *) ac_optarg=yes ;;
942 esac
943
944 case $ac_dashdash$ac_option in
945 --)
946 ac_dashdash=yes ;;
947
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 ac_prev=bindir ;;
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 bindir=$ac_optarg ;;
952
953 -build | --build | --buil | --bui | --bu)
954 ac_prev=build_alias ;;
955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956 build_alias=$ac_optarg ;;
957
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963 cache_file=$ac_optarg ;;
964
965 --config-cache | -C)
966 cache_file=config.cache ;;
967
968 -datadir | --datadir | --datadi | --datad)
969 ac_prev=datadir ;;
970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
971 datadir=$ac_optarg ;;
972
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
979
980 -disable-* | --disable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: '$ac_useropt'"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=no ;;
995
996 -docdir | --docdir | --docdi | --doc | --do)
997 ac_prev=docdir ;;
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 docdir=$ac_optarg ;;
1000
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 ac_prev=dvidir ;;
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1005
1006 -enable-* | --enable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: '$ac_useropt'"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015 "enable_$ac_useropt"
1016 "*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=\$ac_optarg ;;
1021
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1030
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1033 with_gas=yes ;;
1034
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1041
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1046
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 ac_prev=htmldir ;;
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 | --ht=*)
1051 htmldir=$ac_optarg ;;
1052
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1059
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 ac_prev=infodir ;;
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1064
1065 -libdir | --libdir | --libdi | --libd)
1066 ac_prev=libdir ;;
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1069
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1076
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1081
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1088
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 ac_prev=mandir ;;
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1093
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1096 with_fp=no ;;
1097
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1100 no_create=yes ;;
1101
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 no_recursion=yes ;;
1105
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1114
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 ac_prev=prefix ;;
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1119
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1126
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1133
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1150
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 ac_prev=pdfdir ;;
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1155
1156 -psdir | --psdir | --psdi | --psd | --ps)
1157 ac_prev=psdir ;;
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 psdir=$ac_optarg ;;
1160
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1163 silent=yes ;;
1164
1165 -runstatedir | --runstatedir | --runstatedi | --runstated \
1166 | --runstate | --runstat | --runsta | --runst | --runs \
1167 | --run | --ru | --r)
1168 ac_prev=runstatedir ;;
1169 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1170 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1171 | --run=* | --ru=* | --r=*)
1172 runstatedir=$ac_optarg ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1218
1219 -with-* | --with-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: '$ac_useropt'"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=\$ac_optarg ;;
1234
1235 -without-* | --without-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: '$ac_useropt'"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1268
1269 -*) as_fn_error $? "unrecognized option: '$ac_option'
1270 Try '$0 --help' for more information"
1271 ;;
1272
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
1278 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1279 esac
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1282
1283 *)
1284 # FIXME: should be removed in autoconf 3.0.
1285 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1289 ;;
1290
1291 esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 as_fn_error $? "missing argument to $ac_option"
1297 fi
1298
1299 if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1303 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 esac
1305 fi
1306
1307 # Check all directory arguments for consistency.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir runstatedir
1312 do
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
1321 case $ac_val in
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 esac
1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1326 done
1327
1328 # There might be people who depend on the old broken behavior: '$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342 fi
1343
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347 test "$silent" = yes && exec 6>/dev/null
1348
1349
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 as_fn_error $? "working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 as_fn_error $? "pwd does not report name of working directory"
1356
1357
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 printf "%s\n" X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
1385 srcdir=$ac_confdir
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 srcdir=..
1388 fi
1389 else
1390 ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395 fi
1396 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399 pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424 'configure' configures libqxp 0.0.3 to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print 'checking ...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for '--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or '..']
1443
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1449
1450 By default, 'make install' will install all the files in
1451 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than '$ac_default_prefix' using '--prefix',
1453 for instance '--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/libqxp]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1478 _ACEOF
1479
1480 cat <<\_ACEOF
1481
1482 Program names:
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1486
1487 System types:
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 _ACEOF
1491 fi
1492
1493 if test -n "$ac_init_help"; then
1494 case $ac_init_help in
1495 short | recursive ) echo "Configuration of libqxp 0.0.3:";;
1496 esac
1497 cat <<\_ACEOF
1498
1499 Optional Features:
1500 --disable-option-checking ignore unrecognized --enable/--with options
1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1503 --enable-silent-rules less verbose build output (undo: "make V=1")
1504 --disable-silent-rules verbose build output (undo: "make V=0")
1505 --enable-dependency-tracking
1506 do not reject slow dependency extractors
1507 --disable-dependency-tracking
1508 speeds up one-time build
1509 --enable-static[=PKGS] build static libraries [default=no]
1510 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1511 both]
1512 --enable-shared[=PKGS] build shared libraries [default=yes]
1513 --enable-fast-install[=PKGS]
1514 optimize for fast installation [default=yes]
1515 --enable-aix-soname=aix|svr4|both
1516 shared library versioning (aka "SONAME") variant to
1517 provide on AIX, [default=aix].
1518 --disable-libtool-lock avoid locking (might break parallel builds)
1519 --enable-werror Treat all warnings as errors, usefull for
1520 development
1521 --disable-weffc Disable -Weffc++ warnings, usefull when using an old
1522 version of gcc or of boost
1523 --enable-wparanoic Enable a lot of warnings...
1524 --enable-debug Turn on debugging
1525 --enable-tests Build and run unit tests
1526 --disable-tools Do not build conversion tools
1527 --enable-fuzzers Build fuzzer(s)
1528
1529 Optional Packages:
1530 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1531 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1533 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1534 compiler's sysroot if not specified).
1535 --without-docs Do not build documentation
1536
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1545 CPP C preprocessor
1546 CXX C++ compiler command
1547 CXXFLAGS C++ compiler flags
1548 LT_SYS_LIBRARY_PATH
1549 User-defined run-time library search path.
1550 CXXCPP C++ preprocessor
1551 PKG_CONFIG path to pkg-config utility
1552 PKG_CONFIG_PATH
1553 directories to add to pkg-config's search path
1554 PKG_CONFIG_LIBDIR
1555 path overriding pkg-config's built-in search path
1556 REVENGE_CFLAGS
1557 C compiler flags for REVENGE, overriding pkg-config
1558 REVENGE_LIBS
1559 linker flags for REVENGE, overriding pkg-config
1560 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1561 ICU_LIBS linker flags for ICU, overriding pkg-config
1562 CPPUNIT_CFLAGS
1563 C compiler flags for CPPUNIT, overriding pkg-config
1564 CPPUNIT_LIBS
1565 linker flags for CPPUNIT, overriding pkg-config
1566 REVENGE_GENERATORS_CFLAGS
1567 C compiler flags for REVENGE_GENERATORS, overriding pkg-config
1568 REVENGE_GENERATORS_LIBS
1569 linker flags for REVENGE_GENERATORS, overriding pkg-config
1570 REVENGE_STREAM_CFLAGS
1571 C compiler flags for REVENGE_STREAM, overriding pkg-config
1572 REVENGE_STREAM_LIBS
1573 linker flags for REVENGE_STREAM, overriding pkg-config
1574
1575 Use these variables to override the choices made by 'configure' or to help
1576 it to find libraries and programs with nonstandard names/locations.
1577
1578 Report bugs to the package provider.
1579 _ACEOF
1580 ac_status=$?
1581 fi
1582
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" ||
1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1588 continue
1589 ac_builddir=.
1590
1591 case "$ac_dir" in
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *)
1594 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 esac ;;
1601 esac
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1606
1607 case $srcdir in
1608 .) # We are building in place.
1609 ac_srcdir=.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1616 *) # Relative name.
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 esac
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for configure.gnu first; this name is used for a wrapper for
1625 # Metaconfig's "Configure" on case-insensitive file systems.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1627 echo &&
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure" --help=recursive
1632 else
1633 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 fi || ac_status=$?
1635 cd "$ac_pwd" || { ac_status=$?; break; }
1636 done
1637 fi
1638
1639 test -n "$ac_init_help" && exit $ac_status
1640 if $ac_init_version; then
1641 cat <<\_ACEOF
1642 libqxp configure 0.0.3
1643 generated by GNU Autoconf 2.72
1644
1645 Copyright (C) 2023 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1648 _ACEOF
1649 exit
1650 fi
1651
1652 ## ------------------------ ##
1653 ## Autoconf initialization. ##
1654 ## ------------------------ ##
1655
1656 # ac_fn_c_try_compile LINENO
1657 # --------------------------
1658 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_compile ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest.beam
1663 if { { ac_try="$ac_compile"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 printf "%s\n" "$ac_try_echo"; } >&5
1670 (eval "$ac_compile") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest.$ac_objext
1682 then :
1683 ac_retval=0
1684 else case e in #(
1685 e) printf "%s\n" "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1 ;;
1689 esac
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_compile
1695
1696 # ac_fn_c_try_cpp LINENO
1697 # ----------------------
1698 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_cpp ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_cpp conftest.$ac_ext"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 printf "%s\n" "$ac_try_echo"; } >&5
1709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } > conftest.i && {
1718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 }
1721 then :
1722 ac_retval=0
1723 else case e in #(
1724 e) printf "%s\n" "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=1 ;;
1728 esac
1729 fi
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_cpp
1734
1735 # ac_fn_cxx_try_compile LINENO
1736 # ----------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_cxx_try_compile ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest.beam
1742 if { { ac_try="$ac_compile"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 printf "%s\n" "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext
1761 then :
1762 ac_retval=0
1763 else case e in #(
1764 e) printf "%s\n" "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=1 ;;
1768 esac
1769 fi
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1772
1773 } # ac_fn_cxx_try_compile
1774
1775 # ac_fn_c_try_link LINENO
1776 # -----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_link ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 printf "%s\n" "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 test -x conftest$ac_exeext
1803 }
1804 then :
1805 ac_retval=0
1806 else case e in #(
1807 e) printf "%s\n" "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=1 ;;
1811 esac
1812 fi
1813 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1814 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1815 # interfere with the next link command; also delete a directory that is
1816 # left behind by Apple's compiler. We do this before executing the actions.
1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1820
1821 } # ac_fn_c_try_link
1822
1823 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1824 # -------------------------------------------------------
1825 # Tests whether HEADER exists and can be compiled using the include files in
1826 # INCLUDES, setting the cache variable VAR accordingly.
1827 ac_fn_c_check_header_compile ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 printf %s "checking for $2... " >&6; }
1832 if eval test \${$3+y}
1833 then :
1834 printf %s "(cached) " >&6
1835 else case e in #(
1836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 $4
1839 #include <$2>
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"
1842 then :
1843 eval "$3=yes"
1844 else case e in #(
1845 e) eval "$3=no" ;;
1846 esac
1847 fi
1848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1849 esac
1850 fi
1851 eval ac_res=\$$3
1852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 printf "%s\n" "$ac_res" >&6; }
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856 } # ac_fn_c_check_header_compile
1857
1858 # ac_fn_c_check_func LINENO FUNC VAR
1859 # ----------------------------------
1860 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1861 ac_fn_c_check_func ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 printf %s "checking for $2... " >&6; }
1866 if eval test \${$3+y}
1867 then :
1868 printf %s "(cached) " >&6
1869 else case e in #(
1870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1874 #define $2 innocuous_$2
1875
1876 /* System header to define __stub macros and hopefully few prototypes,
1877 which can conflict with char $2 (void); below. */
1878
1879 #include <limits.h>
1880 #undef $2
1881
1882 /* Override any GCC internal prototype to avoid an error.
1883 Use char because int might match the return type of a GCC
1884 builtin and then its argument prototype would still apply. */
1885 #ifdef __cplusplus
1886 extern "C"
1887 #endif
1888 char $2 (void);
1889 /* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892 #if defined __stub_$2 || defined __stub___$2
1893 choke me
1894 #endif
1895
1896 int
1897 main (void)
1898 {
1899 return $2 ();
1900 ;
1901 return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_link "$LINENO"
1905 then :
1906 eval "$3=yes"
1907 else case e in #(
1908 e) eval "$3=no" ;;
1909 esac
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1912 conftest$ac_exeext conftest.$ac_ext ;;
1913 esac
1914 fi
1915 eval ac_res=\$$3
1916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 printf "%s\n" "$ac_res" >&6; }
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920 } # ac_fn_c_check_func
1921
1922 # ac_fn_cxx_try_cpp LINENO
1923 # ------------------------
1924 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1925 ac_fn_cxx_try_cpp ()
1926 {
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 if { { ac_try="$ac_cpp conftest.$ac_ext"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 printf "%s\n" "$ac_try_echo"; } >&5
1935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1941 fi
1942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } > conftest.i && {
1944 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1945 test ! -s conftest.err
1946 }
1947 then :
1948 ac_retval=0
1949 else case e in #(
1950 e) printf "%s\n" "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953 ac_retval=1 ;;
1954 esac
1955 fi
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 as_fn_set_status $ac_retval
1958
1959 } # ac_fn_cxx_try_cpp
1960
1961 # ac_fn_cxx_try_link LINENO
1962 # -------------------------
1963 # Try to link conftest.$ac_ext, and return whether this succeeded.
1964 ac_fn_cxx_try_link ()
1965 {
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1968 if { { ac_try="$ac_link"
1969 case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 printf "%s\n" "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>conftest.err
1976 ac_status=$?
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1981 fi
1982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && {
1984 test -z "$ac_cxx_werror_flag" ||
1985 test ! -s conftest.err
1986 } && test -s conftest$ac_exeext && {
1987 test "$cross_compiling" = yes ||
1988 test -x conftest$ac_exeext
1989 }
1990 then :
1991 ac_retval=0
1992 else case e in #(
1993 e) printf "%s\n" "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996 ac_retval=1 ;;
1997 esac
1998 fi
1999 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2000 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2001 # interfere with the next link command; also delete a directory that is
2002 # left behind by Apple's compiler. We do this before executing the actions.
2003 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 as_fn_set_status $ac_retval
2006
2007 } # ac_fn_cxx_try_link
2008
2009 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2010 # ---------------------------------------------------------
2011 # Tests whether HEADER exists and can be compiled using the include files in
2012 # INCLUDES, setting the cache variable VAR accordingly.
2013 ac_fn_cxx_check_header_compile ()
2014 {
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 printf %s "checking for $2... " >&6; }
2018 if eval test \${$3+y}
2019 then :
2020 printf %s "(cached) " >&6
2021 else case e in #(
2022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $4
2025 #include <$2>
2026 _ACEOF
2027 if ac_fn_cxx_try_compile "$LINENO"
2028 then :
2029 eval "$3=yes"
2030 else case e in #(
2031 e) eval "$3=no" ;;
2032 esac
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2035 esac
2036 fi
2037 eval ac_res=\$$3
2038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 printf "%s\n" "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042 } # ac_fn_cxx_check_header_compile
2043 ac_configure_args_raw=
2044 for ac_arg
2045 do
2046 case $ac_arg in
2047 *\'*)
2048 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 esac
2050 as_fn_append ac_configure_args_raw " '$ac_arg'"
2051 done
2052
2053 case $ac_configure_args_raw in
2054 *$as_nl*)
2055 ac_safe_unquote= ;;
2056 *)
2057 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2058 ac_unsafe_a="$ac_unsafe_z#~"
2059 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2060 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2061 esac
2062
2063 cat >config.log <<_ACEOF
2064 This file contains any messages produced by compilers while
2065 running configure, to aid debugging if configure makes a mistake.
2066
2067 It was created by libqxp $as_me 0.0.3, which was
2068 generated by GNU Autoconf 2.72. Invocation command line was
2069
2070 $ $0$ac_configure_args_raw
2071
2072 _ACEOF
2073 exec 5>>config.log
2074 {
2075 cat <<_ASUNAME
2076 ## --------- ##
2077 ## Platform. ##
2078 ## --------- ##
2079
2080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2085
2086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2087 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2088
2089 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2090 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2092 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2093 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2094 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2095 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2096
2097 _ASUNAME
2098
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102 IFS=$as_save_IFS
2103 case $as_dir in #(((
2104 '') as_dir=./ ;;
2105 */) ;;
2106 *) as_dir=$as_dir/ ;;
2107 esac
2108 printf "%s\n" "PATH: $as_dir"
2109 done
2110 IFS=$as_save_IFS
2111
2112 } >&5
2113
2114 cat >&5 <<_ACEOF
2115
2116
2117 ## ----------- ##
2118 ## Core tests. ##
2119 ## ----------- ##
2120
2121 _ACEOF
2122
2123
2124 # Keep a trace of the command line.
2125 # Strip out --no-create and --no-recursion so they do not pile up.
2126 # Strip out --silent because we don't want to record it for future runs.
2127 # Also quote any args containing shell meta-characters.
2128 # Make two passes to allow for proper duplicate-argument suppression.
2129 ac_configure_args=
2130 ac_configure_args0=
2131 ac_configure_args1=
2132 ac_must_keep_next=false
2133 for ac_pass in 1 2
2134 do
2135 for ac_arg
2136 do
2137 case $ac_arg in
2138 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2140 | -silent | --silent | --silen | --sile | --sil)
2141 continue ;;
2142 *\'*)
2143 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2144 esac
2145 case $ac_pass in
2146 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2147 2)
2148 as_fn_append ac_configure_args1 " '$ac_arg'"
2149 if test $ac_must_keep_next = true; then
2150 ac_must_keep_next=false # Got value, back to normal.
2151 else
2152 case $ac_arg in
2153 *=* | --config-cache | -C | -disable-* | --disable-* \
2154 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2155 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2156 | -with-* | --with-* | -without-* | --without-* | --x)
2157 case "$ac_configure_args0 " in
2158 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2159 esac
2160 ;;
2161 -* ) ac_must_keep_next=true ;;
2162 esac
2163 fi
2164 as_fn_append ac_configure_args " '$ac_arg'"
2165 ;;
2166 esac
2167 done
2168 done
2169 { ac_configure_args0=; unset ac_configure_args0;}
2170 { ac_configure_args1=; unset ac_configure_args1;}
2171
2172 # When interrupted or exit'd, cleanup temporary files, and complete
2173 # config.log. We remove comments because anyway the quotes in there
2174 # would cause problems or look ugly.
2175 # WARNING: Use '\'' to represent an apostrophe within the trap.
2176 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2177 trap 'exit_status=$?
2178 # Sanitize IFS.
2179 IFS=" "" $as_nl"
2180 # Save into config.log some information that might help in debugging.
2181 {
2182 echo
2183
2184 printf "%s\n" "## ---------------- ##
2185 ## Cache variables. ##
2186 ## ---------------- ##"
2187 echo
2188 # The following way of writing the cache mishandles newlines in values,
2189 (
2190 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2191 eval ac_val=\$$ac_var
2192 case $ac_val in #(
2193 *${as_nl}*)
2194 case $ac_var in #(
2195 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2196 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2197 esac
2198 case $ac_var in #(
2199 _ | IFS | as_nl) ;; #(
2200 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2201 *) { eval $ac_var=; unset $ac_var;} ;;
2202 esac ;;
2203 esac
2204 done
2205 (set) 2>&1 |
2206 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2207 *${as_nl}ac_space=\ *)
2208 sed -n \
2209 "s/'\''/'\''\\\\'\'''\''/g;
2210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2211 ;; #(
2212 *)
2213 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2214 ;;
2215 esac |
2216 sort
2217 )
2218 echo
2219
2220 printf "%s\n" "## ----------------- ##
2221 ## Output variables. ##
2222 ## ----------------- ##"
2223 echo
2224 for ac_var in $ac_subst_vars
2225 do
2226 eval ac_val=\$$ac_var
2227 case $ac_val in
2228 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2229 esac
2230 printf "%s\n" "$ac_var='\''$ac_val'\''"
2231 done | sort
2232 echo
2233
2234 if test -n "$ac_subst_files"; then
2235 printf "%s\n" "## ------------------- ##
2236 ## File substitutions. ##
2237 ## ------------------- ##"
2238 echo
2239 for ac_var in $ac_subst_files
2240 do
2241 eval ac_val=\$$ac_var
2242 case $ac_val in
2243 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2244 esac
2245 printf "%s\n" "$ac_var='\''$ac_val'\''"
2246 done | sort
2247 echo
2248 fi
2249
2250 if test -s confdefs.h; then
2251 printf "%s\n" "## ----------- ##
2252 ## confdefs.h. ##
2253 ## ----------- ##"
2254 echo
2255 cat confdefs.h
2256 echo
2257 fi
2258 test "$ac_signal" != 0 &&
2259 printf "%s\n" "$as_me: caught signal $ac_signal"
2260 printf "%s\n" "$as_me: exit $exit_status"
2261 } >&5
2262 rm -f core *.core core.conftest.* &&
2263 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2264 exit $exit_status
2265 ' 0
2266 for ac_signal in 1 2 13 15; do
2267 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2268 done
2269 ac_signal=0
2270
2271 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2272 rm -f -r conftest* confdefs.h
2273
2274 printf "%s\n" "/* confdefs.h */" > confdefs.h
2275
2276 # Predefined preprocessor variables.
2277
2278 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2279
2280 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2281
2282 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2283
2284 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2285
2286 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2287
2288 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2289
2290
2291 # Let the site file select an alternate cache file if it wants to.
2292 # Prefer an explicitly selected file to automatically selected ones.
2293 if test -n "$CONFIG_SITE"; then
2294 ac_site_files="$CONFIG_SITE"
2295 elif test "x$prefix" != xNONE; then
2296 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2297 else
2298 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2299 fi
2300
2301 for ac_site_file in $ac_site_files
2302 do
2303 case $ac_site_file in #(
2304 */*) :
2305 ;; #(
2306 *) :
2307 ac_site_file=./$ac_site_file ;;
2308 esac
2309 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2311 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2312 sed 's/^/| /' "$ac_site_file" >&5
2313 . "$ac_site_file" \
2314 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2315 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2316 as_fn_error $? "failed to load site script $ac_site_file
2317 See 'config.log' for more details" "$LINENO" 5; }
2318 fi
2319 done
2320
2321 if test -r "$cache_file"; then
2322 # Some versions of bash will fail to source /dev/null (special files
2323 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2324 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2326 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2327 case $cache_file in
2328 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2329 *) . "./$cache_file";;
2330 esac
2331 fi
2332 else
2333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2334 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2335 >$cache_file
2336 fi
2337
2338 # Test code for whether the C compiler supports C89 (global declarations)
2339 ac_c_conftest_c89_globals='
2340 /* Does the compiler advertise C89 conformance?
2341 Do not test the value of __STDC__, because some compilers set it to 0
2342 while being otherwise adequately conformant. */
2343 #if !defined __STDC__
2344 # error "Compiler does not advertise C89 conformance"
2345 #endif
2346
2347 #include <stddef.h>
2348 #include <stdarg.h>
2349 struct stat;
2350 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2351 struct buf { int x; };
2352 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2353 static char *e (char **p, int i)
2354 {
2355 return p[i];
2356 }
2357 static char *f (char * (*g) (char **, int), char **p, ...)
2358 {
2359 char *s;
2360 va_list v;
2361 va_start (v,p);
2362 s = g (p, va_arg (v,int));
2363 va_end (v);
2364 return s;
2365 }
2366
2367 /* C89 style stringification. */
2368 #define noexpand_stringify(a) #a
2369 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2370
2371 /* C89 style token pasting. Exercises some of the corner cases that
2372 e.g. old MSVC gets wrong, but not very hard. */
2373 #define noexpand_concat(a,b) a##b
2374 #define expand_concat(a,b) noexpand_concat(a,b)
2375 extern int vA;
2376 extern int vbee;
2377 #define aye A
2378 #define bee B
2379 int *pvA = &expand_concat(v,aye);
2380 int *pvbee = &noexpand_concat(v,bee);
2381
2382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2383 function prototypes and stuff, but not \xHH hex character constants.
2384 These do not provoke an error unfortunately, instead are silently treated
2385 as an "x". The following induces an error, until -std is added to get
2386 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2387 array size at least. It is necessary to write \x00 == 0 to get something
2388 that is true only with -std. */
2389 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2390
2391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2392 inside strings and character constants. */
2393 #define FOO(x) '\''x'\''
2394 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2395
2396 int test (int i, double x);
2397 struct s1 {int (*f) (int a);};
2398 struct s2 {int (*f) (double a);};
2399 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2400 int, int);'
2401
2402 # Test code for whether the C compiler supports C89 (body of main).
2403 ac_c_conftest_c89_main='
2404 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2405 '
2406
2407 # Test code for whether the C compiler supports C99 (global declarations)
2408 ac_c_conftest_c99_globals='
2409 /* Does the compiler advertise C99 conformance? */
2410 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2411 # error "Compiler does not advertise C99 conformance"
2412 #endif
2413
2414 // See if C++-style comments work.
2415
2416 #include <stdbool.h>
2417 extern int puts (const char *);
2418 extern int printf (const char *, ...);
2419 extern int dprintf (int, const char *, ...);
2420 extern void *malloc (size_t);
2421 extern void free (void *);
2422
2423 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2424 // dprintf is used instead of fprintf to avoid needing to declare
2425 // FILE and stderr.
2426 #define debug(...) dprintf (2, __VA_ARGS__)
2427 #define showlist(...) puts (#__VA_ARGS__)
2428 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2429 static void
2430 test_varargs_macros (void)
2431 {
2432 int x = 1234;
2433 int y = 5678;
2434 debug ("Flag");
2435 debug ("X = %d\n", x);
2436 showlist (The first, second, and third items.);
2437 report (x>y, "x is %d but y is %d", x, y);
2438 }
2439
2440 // Check long long types.
2441 #define BIG64 18446744073709551615ull
2442 #define BIG32 4294967295ul
2443 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2444 #if !BIG_OK
2445 #error "your preprocessor is broken"
2446 #endif
2447 #if BIG_OK
2448 #else
2449 #error "your preprocessor is broken"
2450 #endif
2451 static long long int bignum = -9223372036854775807LL;
2452 static unsigned long long int ubignum = BIG64;
2453
2454 struct incomplete_array
2455 {
2456 int datasize;
2457 double data[];
2458 };
2459
2460 struct named_init {
2461 int number;
2462 const wchar_t *name;
2463 double average;
2464 };
2465
2466 typedef const char *ccp;
2467
2468 static inline int
2469 test_restrict (ccp restrict text)
2470 {
2471 // Iterate through items via the restricted pointer.
2472 // Also check for declarations in for loops.
2473 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2474 continue;
2475 return 0;
2476 }
2477
2478 // Check varargs and va_copy.
2479 static bool
2480 test_varargs (const char *format, ...)
2481 {
2482 va_list args;
2483 va_start (args, format);
2484 va_list args_copy;
2485 va_copy (args_copy, args);
2486
2487 const char *str = "";
2488 int number = 0;
2489 float fnumber = 0;
2490
2491 while (*format)
2492 {
2493 switch (*format++)
2494 {
2495 case '\''s'\'': // string
2496 str = va_arg (args_copy, const char *);
2497 break;
2498 case '\''d'\'': // int
2499 number = va_arg (args_copy, int);
2500 break;
2501 case '\''f'\'': // float
2502 fnumber = va_arg (args_copy, double);
2503 break;
2504 default:
2505 break;
2506 }
2507 }
2508 va_end (args_copy);
2509 va_end (args);
2510
2511 return *str && number && fnumber;
2512 }
2513 '
2514
2515 # Test code for whether the C compiler supports C99 (body of main).
2516 ac_c_conftest_c99_main='
2517 // Check bool.
2518 _Bool success = false;
2519 success |= (argc != 0);
2520
2521 // Check restrict.
2522 if (test_restrict ("String literal") == 0)
2523 success = true;
2524 char *restrict newvar = "Another string";
2525
2526 // Check varargs.
2527 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2528 test_varargs_macros ();
2529
2530 // Check flexible array members.
2531 struct incomplete_array *ia =
2532 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2533 ia->datasize = 10;
2534 for (int i = 0; i < ia->datasize; ++i)
2535 ia->data[i] = i * 1.234;
2536 // Work around memory leak warnings.
2537 free (ia);
2538
2539 // Check named initializers.
2540 struct named_init ni = {
2541 .number = 34,
2542 .name = L"Test wide string",
2543 .average = 543.34343,
2544 };
2545
2546 ni.number = 58;
2547
2548 int dynamic_array[ni.number];
2549 dynamic_array[0] = argv[0][0];
2550 dynamic_array[ni.number - 1] = 543;
2551
2552 // work around unused variable warnings
2553 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2554 || dynamic_array[ni.number - 1] != 543);
2555 '
2556
2557 # Test code for whether the C compiler supports C11 (global declarations)
2558 ac_c_conftest_c11_globals='
2559 /* Does the compiler advertise C11 conformance? */
2560 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2561 # error "Compiler does not advertise C11 conformance"
2562 #endif
2563
2564 // Check _Alignas.
2565 char _Alignas (double) aligned_as_double;
2566 char _Alignas (0) no_special_alignment;
2567 extern char aligned_as_int;
2568 char _Alignas (0) _Alignas (int) aligned_as_int;
2569
2570 // Check _Alignof.
2571 enum
2572 {
2573 int_alignment = _Alignof (int),
2574 int_array_alignment = _Alignof (int[100]),
2575 char_alignment = _Alignof (char)
2576 };
2577 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2578
2579 // Check _Noreturn.
2580 int _Noreturn does_not_return (void) { for (;;) continue; }
2581
2582 // Check _Static_assert.
2583 struct test_static_assert
2584 {
2585 int x;
2586 _Static_assert (sizeof (int) <= sizeof (long int),
2587 "_Static_assert does not work in struct");
2588 long int y;
2589 };
2590
2591 // Check UTF-8 literals.
2592 #define u8 syntax error!
2593 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2594
2595 // Check duplicate typedefs.
2596 typedef long *long_ptr;
2597 typedef long int *long_ptr;
2598 typedef long_ptr long_ptr;
2599
2600 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2601 struct anonymous
2602 {
2603 union {
2604 struct { int i; int j; };
2605 struct { int k; long int l; } w;
2606 };
2607 int m;
2608 } v1;
2609 '
2610
2611 # Test code for whether the C compiler supports C11 (body of main).
2612 ac_c_conftest_c11_main='
2613 _Static_assert ((offsetof (struct anonymous, i)
2614 == offsetof (struct anonymous, w.k)),
2615 "Anonymous union alignment botch");
2616 v1.i = 2;
2617 v1.w.k = 5;
2618 ok |= v1.i != 5;
2619 '
2620
2621 # Test code for whether the C compiler supports C11 (complete).
2622 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2623 ${ac_c_conftest_c99_globals}
2624 ${ac_c_conftest_c11_globals}
2625
2626 int
2627 main (int argc, char **argv)
2628 {
2629 int ok = 0;
2630 ${ac_c_conftest_c89_main}
2631 ${ac_c_conftest_c99_main}
2632 ${ac_c_conftest_c11_main}
2633 return ok;
2634 }
2635 "
2636
2637 # Test code for whether the C compiler supports C99 (complete).
2638 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2639 ${ac_c_conftest_c99_globals}
2640
2641 int
2642 main (int argc, char **argv)
2643 {
2644 int ok = 0;
2645 ${ac_c_conftest_c89_main}
2646 ${ac_c_conftest_c99_main}
2647 return ok;
2648 }
2649 "
2650
2651 # Test code for whether the C compiler supports C89 (complete).
2652 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2653
2654 int
2655 main (int argc, char **argv)
2656 {
2657 int ok = 0;
2658 ${ac_c_conftest_c89_main}
2659 return ok;
2660 }
2661 "
2662
2663 # Test code for whether the C++ compiler supports C++98 (global declarations)
2664 ac_cxx_conftest_cxx98_globals='
2665 // Does the compiler advertise C++98 conformance?
2666 #if !defined __cplusplus || __cplusplus < 199711L
2667 # error "Compiler does not advertise C++98 conformance"
2668 #endif
2669
2670 // These inclusions are to reject old compilers that
2671 // lack the unsuffixed header files.
2672 #include <cstdlib>
2673 #include <exception>
2674
2675 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2676 extern void assert (int);
2677 namespace std {
2678 extern int strcmp (const char *, const char *);
2679 }
2680
2681 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2682 using std::exception;
2683 using std::strcmp;
2684
2685 namespace {
2686
2687 void test_exception_syntax()
2688 {
2689 try {
2690 throw "test";
2691 } catch (const char *s) {
2692 // Extra parentheses suppress a warning when building autoconf itself,
2693 // due to lint rules shared with more typical C programs.
2694 assert (!(strcmp) (s, "test"));
2695 }
2696 }
2697
2698 template <typename T> struct test_template
2699 {
2700 T const val;
2701 explicit test_template(T t) : val(t) {}
2702 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2703 };
2704
2705 } // anonymous namespace
2706 '
2707
2708 # Test code for whether the C++ compiler supports C++98 (body of main)
2709 ac_cxx_conftest_cxx98_main='
2710 assert (argc);
2711 assert (! argv[0]);
2712 {
2713 test_exception_syntax ();
2714 test_template<double> tt (2.0);
2715 assert (tt.add (4) == 6.0);
2716 assert (true && !false);
2717 }
2718 '
2719
2720 # Test code for whether the C++ compiler supports C++11 (global declarations)
2721 ac_cxx_conftest_cxx11_globals='
2722 // Does the compiler advertise C++ 2011 conformance?
2723 #if !defined __cplusplus || __cplusplus < 201103L
2724 # error "Compiler does not advertise C++11 conformance"
2725 #endif
2726
2727 namespace cxx11test
2728 {
2729 constexpr int get_val() { return 20; }
2730
2731 struct testinit
2732 {
2733 int i;
2734 double d;
2735 };
2736
2737 class delegate
2738 {
2739 public:
2740 delegate(int n) : n(n) {}
2741 delegate(): delegate(2354) {}
2742
2743 virtual int getval() { return this->n; };
2744 protected:
2745 int n;
2746 };
2747
2748 class overridden : public delegate
2749 {
2750 public:
2751 overridden(int n): delegate(n) {}
2752 virtual int getval() override final { return this->n * 2; }
2753 };
2754
2755 class nocopy
2756 {
2757 public:
2758 nocopy(int i): i(i) {}
2759 nocopy() = default;
2760 nocopy(const nocopy&) = delete;
2761 nocopy & operator=(const nocopy&) = delete;
2762 private:
2763 int i;
2764 };
2765
2766 // for testing lambda expressions
2767 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2768 {
2769 return f(v);
2770 }
2771
2772 // for testing variadic templates and trailing return types
2773 template <typename V> auto sum(V first) -> V
2774 {
2775 return first;
2776 }
2777 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2778 {
2779 return first + sum(rest...);
2780 }
2781 }
2782 '
2783
2784 # Test code for whether the C++ compiler supports C++11 (body of main)
2785 ac_cxx_conftest_cxx11_main='
2786 {
2787 // Test auto and decltype
2788 auto a1 = 6538;
2789 auto a2 = 48573953.4;
2790 auto a3 = "String literal";
2791
2792 int total = 0;
2793 for (auto i = a3; *i; ++i) { total += *i; }
2794
2795 decltype(a2) a4 = 34895.034;
2796 }
2797 {
2798 // Test constexpr
2799 short sa[cxx11test::get_val()] = { 0 };
2800 }
2801 {
2802 // Test initializer lists
2803 cxx11test::testinit il = { 4323, 435234.23544 };
2804 }
2805 {
2806 // Test range-based for
2807 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2808 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2809 for (auto &x : array) { x += 23; }
2810 }
2811 {
2812 // Test lambda expressions
2813 using cxx11test::eval;
2814 assert (eval ([](int x) { return x*2; }, 21) == 42);
2815 double d = 2.0;
2816 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2817 assert (d == 5.0);
2818 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2819 assert (d == 5.0);
2820 }
2821 {
2822 // Test use of variadic templates
2823 using cxx11test::sum;
2824 auto a = sum(1);
2825 auto b = sum(1, 2);
2826 auto c = sum(1.0, 2.0, 3.0);
2827 }
2828 {
2829 // Test constructor delegation
2830 cxx11test::delegate d1;
2831 cxx11test::delegate d2();
2832 cxx11test::delegate d3(45);
2833 }
2834 {
2835 // Test override and final
2836 cxx11test::overridden o1(55464);
2837 }
2838 {
2839 // Test nullptr
2840 char *c = nullptr;
2841 }
2842 {
2843 // Test template brackets
2844 test_template<::test_template<int>> v(test_template<int>(12));
2845 }
2846 {
2847 // Unicode literals
2848 char const *utf8 = u8"UTF-8 string \u2500";
2849 char16_t const *utf16 = u"UTF-8 string \u2500";
2850 char32_t const *utf32 = U"UTF-32 string \u2500";
2851 }
2852 '
2853
2854 # Test code for whether the C compiler supports C++11 (complete).
2855 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2856 ${ac_cxx_conftest_cxx11_globals}
2857
2858 int
2859 main (int argc, char **argv)
2860 {
2861 int ok = 0;
2862 ${ac_cxx_conftest_cxx98_main}
2863 ${ac_cxx_conftest_cxx11_main}
2864 return ok;
2865 }
2866 "
2867
2868 # Test code for whether the C compiler supports C++98 (complete).
2869 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2870 int
2871 main (int argc, char **argv)
2872 {
2873 int ok = 0;
2874 ${ac_cxx_conftest_cxx98_main}
2875 return ok;
2876 }
2877 "
2878
2879 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2880 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2881 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2882 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2883 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2884 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2885 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2886 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2887 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2888
2889 # Auxiliary files required by this configure script.
2890 ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2891
2892 # Locations in which to look for auxiliary files.
2893 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2894
2895 # Search for a directory containing all of the required auxiliary files,
2896 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2897 # If we don't find one directory that contains all the files we need,
2898 # we report the set of missing files from the *first* directory in
2899 # $ac_aux_dir_candidates and give up.
2900 ac_missing_aux_files=""
2901 ac_first_candidate=:
2902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 as_found=false
2905 for as_dir in $ac_aux_dir_candidates
2906 do
2907 IFS=$as_save_IFS
2908 case $as_dir in #(((
2909 '') as_dir=./ ;;
2910 */) ;;
2911 *) as_dir=$as_dir/ ;;
2912 esac
2913 as_found=:
2914
2915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2916 ac_aux_dir_found=yes
2917 ac_install_sh=
2918 for ac_aux in $ac_aux_files
2919 do
2920 # As a special case, if "install-sh" is required, that requirement
2921 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2922 # and $ac_install_sh is set appropriately for whichever one is found.
2923 if test x"$ac_aux" = x"install-sh"
2924 then
2925 if test -f "${as_dir}install-sh"; then
2926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2927 ac_install_sh="${as_dir}install-sh -c"
2928 elif test -f "${as_dir}install.sh"; then
2929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2930 ac_install_sh="${as_dir}install.sh -c"
2931 elif test -f "${as_dir}shtool"; then
2932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2933 ac_install_sh="${as_dir}shtool install -c"
2934 else
2935 ac_aux_dir_found=no
2936 if $ac_first_candidate; then
2937 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2938 else
2939 break
2940 fi
2941 fi
2942 else
2943 if test -f "${as_dir}${ac_aux}"; then
2944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2945 else
2946 ac_aux_dir_found=no
2947 if $ac_first_candidate; then
2948 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2949 else
2950 break
2951 fi
2952 fi
2953 fi
2954 done
2955 if test "$ac_aux_dir_found" = yes; then
2956 ac_aux_dir="$as_dir"
2957 break
2958 fi
2959 ac_first_candidate=false
2960
2961 as_found=false
2962 done
2963 IFS=$as_save_IFS
2964 if $as_found
2965 then :
2966
2967 else case e in #(
2968 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2969 esac
2970 fi
2971
2972
2973 # These three variables are undocumented and unsupported,
2974 # and are intended to be withdrawn in a future Autoconf release.
2975 # They can cause serious problems if a builder's source tree is in a directory
2976 # whose full name contains unusual characters.
2977 if test -f "${ac_aux_dir}config.guess"; then
2978 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2979 fi
2980 if test -f "${ac_aux_dir}config.sub"; then
2981 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2982 fi
2983 if test -f "$ac_aux_dir/configure"; then
2984 ac_configure="$SHELL ${ac_aux_dir}configure"
2985 fi
2986
2987 # Check that the precious variables saved in the cache have kept the same
2988 # value.
2989 ac_cache_corrupted=false
2990 for ac_var in $ac_precious_vars; do
2991 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2992 eval ac_new_set=\$ac_env_${ac_var}_set
2993 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2994 eval ac_new_val=\$ac_env_${ac_var}_value
2995 case $ac_old_set,$ac_new_set in
2996 set,)
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2998 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2999 ac_cache_corrupted=: ;;
3000 ,set)
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3002 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3003 ac_cache_corrupted=: ;;
3004 ,);;
3005 *)
3006 if test "x$ac_old_val" != "x$ac_new_val"; then
3007 # differences in whitespace do not lead to failure.
3008 ac_old_val_w=`echo x $ac_old_val`
3009 ac_new_val_w=`echo x $ac_new_val`
3010 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3012 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3013 ac_cache_corrupted=:
3014 else
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3016 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3017 eval $ac_var=\$ac_old_val
3018 fi
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3020 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3022 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3023 fi;;
3024 esac
3025 # Pass precious variables to config.status.
3026 if test "$ac_new_set" = set; then
3027 case $ac_new_val in
3028 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3029 *) ac_arg=$ac_var=$ac_new_val ;;
3030 esac
3031 case " $ac_configure_args " in
3032 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3033 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3034 esac
3035 fi
3036 done
3037 if $ac_cache_corrupted; then
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3039 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3041 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3042 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3043 and start over" "$LINENO" 5
3044 fi
3045 ## -------------------- ##
3046 ## Main body of script. ##
3047 ## -------------------- ##
3048
3049 ac_ext=c
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054
3055
3056
3057 ac_config_headers="$ac_config_headers config.h"
3058
3059 am__api_version='1.17'
3060
3061
3062
3063 # Find a good install program. We prefer a C program (faster),
3064 # so one script is as good as another. But avoid the broken or
3065 # incompatible versions:
3066 # SysV /etc/install, /usr/sbin/install
3067 # SunOS /usr/etc/install
3068 # IRIX /sbin/install
3069 # AIX /bin/install
3070 # AmigaOS /C/install, which installs bootblocks on floppy discs
3071 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3072 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3073 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3074 # OS/2's system install, which has a completely different semantic
3075 # ./install, which can be erroneously created by make from ./install.sh.
3076 # Reject install programs that cannot install multiple files.
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3078 printf %s "checking for a BSD-compatible install... " >&6; }
3079 if test -z "$INSTALL"; then
3080 if test ${ac_cv_path_install+y}
3081 then :
3082 printf %s "(cached) " >&6
3083 else case e in #(
3084 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087 IFS=$as_save_IFS
3088 case $as_dir in #(((
3089 '') as_dir=./ ;;
3090 */) ;;
3091 *) as_dir=$as_dir/ ;;
3092 esac
3093 # Account for fact that we put trailing slashes in our PATH walk.
3094 case $as_dir in #((
3095 ./ | /[cC]/* | \
3096 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3097 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3098 /usr/ucb/* ) ;;
3099 *)
3100 # OSF1 and SCO ODT 3.0 have their own names for install.
3101 # Don't use installbsd from OSF since it installs stuff as root
3102 # by default.
3103 for ac_prog in ginstall scoinst install; do
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3106 if test $ac_prog = install &&
3107 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108 # AIX install. It has an incompatible calling convention.
3109 :
3110 elif test $ac_prog = install &&
3111 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3112 # program-specific install script used by HP pwplus--don't use.
3113 :
3114 else
3115 rm -rf conftest.one conftest.two conftest.dir
3116 echo one > conftest.one
3117 echo two > conftest.two
3118 mkdir conftest.dir
3119 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3120 test -s conftest.one && test -s conftest.two &&
3121 test -s conftest.dir/conftest.one &&
3122 test -s conftest.dir/conftest.two
3123 then
3124 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3125 break 3
3126 fi
3127 fi
3128 fi
3129 done
3130 done
3131 ;;
3132 esac
3133
3134 done
3135 IFS=$as_save_IFS
3136
3137 rm -rf conftest.one conftest.two conftest.dir
3138 ;;
3139 esac
3140 fi
3141 if test ${ac_cv_path_install+y}; then
3142 INSTALL=$ac_cv_path_install
3143 else
3144 # As a last resort, use the slow shell script. Don't cache a
3145 # value for INSTALL within a source directory, because that will
3146 # break other packages using the cache if that directory is
3147 # removed, or if the value is a relative name.
3148 INSTALL=$ac_install_sh
3149 fi
3150 fi
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3152 printf "%s\n" "$INSTALL" >&6; }
3153
3154 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3155 # It thinks the first close brace ends the variable substitution.
3156 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3157
3158 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3159
3160 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3161
3162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3163 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3164 if test ${am_cv_sleep_fractional_seconds+y}
3165 then :
3166 printf %s "(cached) " >&6
3167 else case e in #(
3168 e) if sleep 0.001 2>/dev/null
3169 then :
3170 am_cv_sleep_fractional_seconds=yes
3171 else case e in #(
3172 e) am_cv_sleep_fractional_seconds=no ;;
3173 esac
3174 fi
3175 ;;
3176 esac
3177 fi
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3179 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3180
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3182 printf %s "checking filesystem timestamp resolution... " >&6; }
3183 if test ${am_cv_filesystem_timestamp_resolution+y}
3184 then :
3185 printf %s "(cached) " >&6
3186 else case e in #(
3187 e) # Default to the worst case.
3188 am_cv_filesystem_timestamp_resolution=2
3189
3190 # Only try to go finer than 1 sec if sleep can do it.
3191 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3192 # - 1 sec is not much of a win compared to 2 sec, and
3193 # - it takes 2 seconds to perform the test whether 1 sec works.
3194 #
3195 # Instead, just use the default 2s on platforms that have 1s resolution,
3196 # accept the extra 1s delay when using $sleep in the Automake tests, in
3197 # exchange for not incurring the 2s delay for running the test for all
3198 # packages.
3199 #
3200 am_try_resolutions=
3201 if test "$am_cv_sleep_fractional_seconds" = yes; then
3202 # Even a millisecond often causes a bunch of false positives,
3203 # so just try a hundredth of a second. The time saved between .001 and
3204 # .01 is not terribly consequential.
3205 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3206 fi
3207
3208 # In order to catch current-generation FAT out, we must *modify* files
3209 # that already exist; the *creation* timestamp is finer. Use names
3210 # that make ls -t sort them differently when they have equal
3211 # timestamps than when they have distinct timestamps, keeping
3212 # in mind that ls -t prints the *newest* file first.
3213 rm -f conftest.ts?
3214 : > conftest.ts1
3215 : > conftest.ts2
3216 : > conftest.ts3
3217
3218 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3219 # clobber the current shell's arguments. (Outer-level square brackets
3220 # are removed by m4; they're present so that m4 does not expand
3221 # <dollar><star>; be careful, easy to get confused.)
3222 if (
3223 set X `ls -t conftest.ts[12]` &&
3224 {
3225 test "$*" != "X conftest.ts1 conftest.ts2" ||
3226 test "$*" != "X conftest.ts2 conftest.ts1";
3227 }
3228 ); then :; else
3229 # If neither matched, then we have a broken ls. This can happen
3230 # if, for instance, CONFIG_SHELL is bash and it inherits a
3231 # broken ls alias from the environment. This has actually
3232 # happened. Such a system could not be considered "sane".
3233 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3234 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3235 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3236 as_fn_error $? "ls -t produces unexpected output.
3237 Make sure there is not a broken ls alias in your environment.
3238 See 'config.log' for more details" "$LINENO" 5; }
3239 fi
3240
3241 for am_try_res in $am_try_resolutions; do
3242 # Any one fine-grained sleep might happen to cross the boundary
3243 # between two values of a coarser actual resolution, but if we do
3244 # two fine-grained sleeps in a row, at least one of them will fall
3245 # entirely within a coarse interval.
3246 echo alpha > conftest.ts1
3247 sleep $am_try_res
3248 echo beta > conftest.ts2
3249 sleep $am_try_res
3250 echo gamma > conftest.ts3
3251
3252 # We assume that 'ls -t' will make use of high-resolution
3253 # timestamps if the operating system supports them at all.
3254 if (set X `ls -t conftest.ts?` &&
3255 test "$2" = conftest.ts3 &&
3256 test "$3" = conftest.ts2 &&
3257 test "$4" = conftest.ts1); then
3258 #
3259 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3260 # because we don't need to test make.
3261 make_ok=true
3262 if test $am_try_res != 1; then
3263 # But if we've succeeded so far with a subsecond resolution, we
3264 # have one more thing to check: make. It can happen that
3265 # everything else supports the subsecond mtimes, but make doesn't;
3266 # notably on macOS, which ships make 3.81 from 2006 (the last one
3267 # released under GPLv2). https://bugs.gnu.org/68808
3268 #
3269 # We test $MAKE if it is defined in the environment, else "make".
3270 # It might get overridden later, but our hope is that in practice
3271 # it does not matter: it is the system "make" which is (by far)
3272 # the most likely to be broken, whereas if the user overrides it,
3273 # probably they did so with a better, or at least not worse, make.
3274 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3275 #
3276 # Create a Makefile (real tab character here):
3277 rm -f conftest.mk
3278 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3279 echo ' touch conftest.ts2' >>conftest.mk
3280 #
3281 # Now, running
3282 # touch conftest.ts1; touch conftest.ts2; make
3283 # should touch ts1 because ts2 is newer. This could happen by luck,
3284 # but most often, it will fail if make's support is insufficient. So
3285 # test for several consecutive successes.
3286 #
3287 # (We reuse conftest.ts[12] because we still want to modify existing
3288 # files, not create new ones, per above.)
3289 n=0
3290 make=${MAKE-make}
3291 until test $n -eq 3; do
3292 echo one > conftest.ts1
3293 sleep $am_try_res
3294 echo two > conftest.ts2 # ts2 should now be newer than ts1
3295 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3296 make_ok=false
3297 break # out of $n loop
3298 fi
3299 n=`expr $n + 1`
3300 done
3301 fi
3302 #
3303 if $make_ok; then
3304 # Everything we know to check worked out, so call this resolution good.
3305 am_cv_filesystem_timestamp_resolution=$am_try_res
3306 break # out of $am_try_res loop
3307 fi
3308 # Otherwise, we'll go on to check the next resolution.
3309 fi
3310 done
3311 rm -f conftest.ts?
3312 # (end _am_filesystem_timestamp_resolution)
3313 ;;
3314 esac
3315 fi
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3317 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3318
3319 # This check should not be cached, as it may vary across builds of
3320 # different projects.
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3322 printf %s "checking whether build environment is sane... " >&6; }
3323 # Reject unsafe characters in $srcdir or the absolute working directory
3324 # name. Accept space and tab only in the latter.
3325 am_lf='
3326 '
3327 case `pwd` in
3328 *[\\\"\#\$\&\'\`$am_lf]*)
3329 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3330 esac
3331 case $srcdir in
3332 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3333 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3334 esac
3335
3336 # Do 'set' in a subshell so we don't clobber the current shell's
3337 # arguments. Must try -L first in case configure is actually a
3338 # symlink; some systems play weird games with the mod time of symlinks
3339 # (eg FreeBSD returns the mod time of the symlink's containing
3340 # directory).
3341 am_build_env_is_sane=no
3342 am_has_slept=no
3343 rm -f conftest.file
3344 for am_try in 1 2; do
3345 echo "timestamp, slept: $am_has_slept" > conftest.file
3346 if (
3347 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3348 if test "$*" = "X"; then
3349 # -L didn't work.
3350 set X `ls -t "$srcdir/configure" conftest.file`
3351 fi
3352 test "$2" = conftest.file
3353 ); then
3354 am_build_env_is_sane=yes
3355 break
3356 fi
3357 # Just in case.
3358 sleep "$am_cv_filesystem_timestamp_resolution"
3359 am_has_slept=yes
3360 done
3361
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3363 printf "%s\n" "$am_build_env_is_sane" >&6; }
3364 if test "$am_build_env_is_sane" = no; then
3365 as_fn_error $? "newly created file is older than distributed files!
3366 Check your system clock" "$LINENO" 5
3367 fi
3368
3369 # If we didn't sleep, we still need to ensure time stamps of config.status and
3370 # generated files are strictly newer.
3371 am_sleep_pid=
3372 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3373 then :
3374
3375 else case e in #(
3376 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3377 am_sleep_pid=$!
3378 ;;
3379 esac
3380 fi
3381
3382 rm -f conftest.file
3383
3384 test "$program_prefix" != NONE &&
3385 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3386 # Use a double $ so make ignores it.
3387 test "$program_suffix" != NONE &&
3388 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3389 # Double any \ or $.
3390 # By default was 's,x,x', remove it if useless.
3391 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3392 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3393
3394
3395 # Expand $ac_aux_dir to an absolute path.
3396 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3397
3398
3399 if test x"${MISSING+set}" != xset; then
3400 MISSING="\${SHELL} '$am_aux_dir/missing'"
3401 fi
3402 # Use eval to expand $SHELL
3403 if eval "$MISSING --is-lightweight"; then
3404 am_missing_run="$MISSING "
3405 else
3406 am_missing_run=
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3408 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3409 fi
3410
3411 if test x"${install_sh+set}" != xset; then
3412 case $am_aux_dir in
3413 *\ * | *\ *)
3414 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3415 *)
3416 install_sh="\${SHELL} $am_aux_dir/install-sh"
3417 esac
3418 fi
3419
3420 # Installed binaries are usually stripped using 'strip' when the user
3421 # run "make install-strip". However 'strip' might not be the right
3422 # tool to use in cross-compilation environments, therefore Automake
3423 # will honor the 'STRIP' environment variable to overrule this program.
3424 if test "$cross_compiling" != no; then
3425 if test -n "$ac_tool_prefix"; then
3426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3427 set dummy ${ac_tool_prefix}strip; ac_word=$2
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 printf %s "checking for $ac_word... " >&6; }
3430 if test ${ac_cv_prog_STRIP+y}
3431 then :
3432 printf %s "(cached) " >&6
3433 else case e in #(
3434 e) if test -n "$STRIP"; then
3435 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440 IFS=$as_save_IFS
3441 case $as_dir in #(((
3442 '') as_dir=./ ;;
3443 */) ;;
3444 *) as_dir=$as_dir/ ;;
3445 esac
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454 IFS=$as_save_IFS
3455
3456 fi ;;
3457 esac
3458 fi
3459 STRIP=$ac_cv_prog_STRIP
3460 if test -n "$STRIP"; then
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3462 printf "%s\n" "$STRIP" >&6; }
3463 else
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 printf "%s\n" "no" >&6; }
3466 fi
3467
3468
3469 fi
3470 if test -z "$ac_cv_prog_STRIP"; then
3471 ac_ct_STRIP=$STRIP
3472 # Extract the first word of "strip", so it can be a program name with args.
3473 set dummy strip; ac_word=$2
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 printf %s "checking for $ac_word... " >&6; }
3476 if test ${ac_cv_prog_ac_ct_STRIP+y}
3477 then :
3478 printf %s "(cached) " >&6
3479 else case e in #(
3480 e) if test -n "$ac_ct_STRIP"; then
3481 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486 IFS=$as_save_IFS
3487 case $as_dir in #(((
3488 '') as_dir=./ ;;
3489 */) ;;
3490 *) as_dir=$as_dir/ ;;
3491 esac
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_ac_ct_STRIP="strip"
3495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498 done
3499 done
3500 IFS=$as_save_IFS
3501
3502 fi ;;
3503 esac
3504 fi
3505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3506 if test -n "$ac_ct_STRIP"; then
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3508 printf "%s\n" "$ac_ct_STRIP" >&6; }
3509 else
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 printf "%s\n" "no" >&6; }
3512 fi
3513
3514 if test "x$ac_ct_STRIP" = x; then
3515 STRIP=":"
3516 else
3517 case $cross_compiling:$ac_tool_warned in
3518 yes:)
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3520 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3521 ac_tool_warned=yes ;;
3522 esac
3523 STRIP=$ac_ct_STRIP
3524 fi
3525 else
3526 STRIP="$ac_cv_prog_STRIP"
3527 fi
3528
3529 fi
3530 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3531
3532
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3534 printf %s "checking for a race-free mkdir -p... " >&6; }
3535 if test -z "$MKDIR_P"; then
3536 if test ${ac_cv_path_mkdir+y}
3537 then :
3538 printf %s "(cached) " >&6
3539 else case e in #(
3540 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3542 do
3543 IFS=$as_save_IFS
3544 case $as_dir in #(((
3545 '') as_dir=./ ;;
3546 */) ;;
3547 *) as_dir=$as_dir/ ;;
3548 esac
3549 for ac_prog in mkdir gmkdir; do
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3552 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3553 'mkdir ('*'coreutils) '* | \
3554 *'BusyBox '* | \
3555 'mkdir (fileutils) '4.1*)
3556 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3557 break 3;;
3558 esac
3559 done
3560 done
3561 done
3562 IFS=$as_save_IFS
3563 ;;
3564 esac
3565 fi
3566
3567 test -d ./--version && rmdir ./--version
3568 if test ${ac_cv_path_mkdir+y}; then
3569 MKDIR_P="$ac_cv_path_mkdir -p"
3570 else
3571 # As a last resort, use plain mkdir -p,
3572 # in the hope it doesn't have the bugs of ancient mkdir.
3573 MKDIR_P='mkdir -p'
3574 fi
3575 fi
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3577 printf "%s\n" "$MKDIR_P" >&6; }
3578
3579 for ac_prog in gawk mawk nawk awk
3580 do
3581 # Extract the first word of "$ac_prog", so it can be a program name with args.
3582 set dummy $ac_prog; ac_word=$2
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 printf %s "checking for $ac_word... " >&6; }
3585 if test ${ac_cv_prog_AWK+y}
3586 then :
3587 printf %s "(cached) " >&6
3588 else case e in #(
3589 e) if test -n "$AWK"; then
3590 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595 IFS=$as_save_IFS
3596 case $as_dir in #(((
3597 '') as_dir=./ ;;
3598 */) ;;
3599 *) as_dir=$as_dir/ ;;
3600 esac
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3603 ac_cv_prog_AWK="$ac_prog"
3604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3605 break 2
3606 fi
3607 done
3608 done
3609 IFS=$as_save_IFS
3610
3611 fi ;;
3612 esac
3613 fi
3614 AWK=$ac_cv_prog_AWK
3615 if test -n "$AWK"; then
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3617 printf "%s\n" "$AWK" >&6; }
3618 else
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 printf "%s\n" "no" >&6; }
3621 fi
3622
3623
3624 test -n "$AWK" && break
3625 done
3626
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3628 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3629 set x ${MAKE-make}
3630 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3631 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3632 then :
3633 printf %s "(cached) " >&6
3634 else case e in #(
3635 e) cat >conftest.make <<\_ACEOF
3636 SHELL = /bin/sh
3637 all:
3638 @echo '@@@%%%=$(MAKE)=@@@%%%'
3639 _ACEOF
3640 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3641 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3642 *@@@%%%=?*=@@@%%%*)
3643 eval ac_cv_prog_make_${ac_make}_set=yes;;
3644 *)
3645 eval ac_cv_prog_make_${ac_make}_set=no;;
3646 esac
3647 rm -f conftest.make ;;
3648 esac
3649 fi
3650 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3652 printf "%s\n" "yes" >&6; }
3653 SET_MAKE=
3654 else
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 printf "%s\n" "no" >&6; }
3657 SET_MAKE="MAKE=${MAKE-make}"
3658 fi
3659
3660 rm -rf .tst 2>/dev/null
3661 mkdir .tst 2>/dev/null
3662 if test -d .tst; then
3663 am__leading_dot=.
3664 else
3665 am__leading_dot=_
3666 fi
3667 rmdir .tst 2>/dev/null
3668
3669 AM_DEFAULT_VERBOSITY=1
3670 # Check whether --enable-silent-rules was given.
3671 if test ${enable_silent_rules+y}
3672 then :
3673 enableval=$enable_silent_rules;
3674 fi
3675
3676 am_make=${MAKE-make}
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3678 printf %s "checking whether $am_make supports nested variables... " >&6; }
3679 if test ${am_cv_make_support_nested_variables+y}
3680 then :
3681 printf %s "(cached) " >&6
3682 else case e in #(
3683 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3684 BAR0=false
3685 BAR1=true
3686 V=1
3687 am__doit:
3688 @$(TRUE)
3689 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3690 am_cv_make_support_nested_variables=yes
3691 else
3692 am_cv_make_support_nested_variables=no
3693 fi ;;
3694 esac
3695 fi
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3697 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3698 AM_BACKSLASH='\'
3699
3700 am__rm_f_notfound=
3701 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3702 then :
3703
3704 else case e in #(
3705 e) am__rm_f_notfound='""' ;;
3706 esac
3707 fi
3708
3709
3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3711 printf %s "checking xargs -n works... " >&6; }
3712 if test ${am_cv_xargs_n_works+y}
3713 then :
3714 printf %s "(cached) " >&6
3715 else case e in #(
3716 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3717 3"
3718 then :
3719 am_cv_xargs_n_works=yes
3720 else case e in #(
3721 e) am_cv_xargs_n_works=no ;;
3722 esac
3723 fi ;;
3724 esac
3725 fi
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3727 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3728 if test "$am_cv_xargs_n_works" = yes
3729 then :
3730 am__xargs_n='xargs -n'
3731 else case e in #(
3732 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3733 ;;
3734 esac
3735 fi
3736
3737 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3738 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3739 # is not polluted with repeated "-I."
3740 am__isrc=' -I$(srcdir)'
3741 # test to see if srcdir already configured
3742 if test -f $srcdir/config.status; then
3743 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3744 fi
3745 fi
3746
3747 # test whether we have cygpath
3748 if test -z "$CYGPATH_W"; then
3749 if (cygpath --version) >/dev/null 2>/dev/null; then
3750 CYGPATH_W='cygpath -w'
3751 else
3752 CYGPATH_W=echo
3753 fi
3754 fi
3755
3756
3757 # Define the identity of the package.
3758 PACKAGE='libqxp'
3759 VERSION='0.0.3'
3760
3761
3762 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3763
3764
3765 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3766
3767 # Some tools Automake needs.
3768
3769 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3770
3771
3772 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3773
3774
3775 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3776
3777
3778 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3779
3780
3781 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3782
3783 # For better backward compatibility. To be removed once Automake 1.9.x
3784 # dies out for good. For more background, see:
3785 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3786 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3787 mkdir_p='$(MKDIR_P)'
3788
3789 # We need awk for the "check" target (and possibly the TAP driver). The
3790 # system "awk" is bad on some platforms.
3791 # Always define AMTAR for backward compatibility. Yes, it's still used
3792 # in the wild :-( We should find a proper way to deprecate it ...
3793 AMTAR='$${TAR-tar}'
3794
3795
3796 # We'll loop over all known methods to create a tar archive until one works.
3797 _am_tools='gnutar pax cpio none'
3798
3799 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3800
3801
3802
3803
3804
3805 # Variables for tags utilities; see am/tags.am
3806 if test -z "$CTAGS"; then
3807 CTAGS=ctags
3808 fi
3809
3810 if test -z "$ETAGS"; then
3811 ETAGS=etags
3812 fi
3813
3814 if test -z "$CSCOPE"; then
3815 CSCOPE=cscope
3816 fi
3817
3818
3819
3820
3821
3822
3823
3824
3825 AM_DEFAULT_VERBOSITY=0
3826 ac_ext=cpp
3827 ac_cpp='$CXXCPP $CPPFLAGS'
3828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3831
3832
3833 # ===========================
3834 # Find required base packages
3835 # ===========================
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845 DEPDIR="${am__leading_dot}deps"
3846
3847 ac_config_commands="$ac_config_commands depfiles"
3848
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3850 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3851 cat > confinc.mk << 'END'
3852 am__doit:
3853 @echo this is the am__doit target >confinc.out
3854 .PHONY: am__doit
3855 END
3856 am__include="#"
3857 am__quote=
3858 # BSD make does it like this.
3859 echo '.include "confinc.mk" # ignored' > confmf.BSD
3860 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3861 echo 'include confinc.mk # ignored' > confmf.GNU
3862 _am_result=no
3863 for s in GNU BSD; do
3864 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3865 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }
3869 case $?:`cat confinc.out 2>/dev/null` in #(
3870 '0:this is the am__doit target') :
3871 case $s in #(
3872 BSD) :
3873 am__include='.include' am__quote='"' ;; #(
3874 *) :
3875 am__include='include' am__quote='' ;;
3876 esac ;; #(
3877 *) :
3878 ;;
3879 esac
3880 if test "$am__include" != "#"; then
3881 _am_result="yes ($s style)"
3882 break
3883 fi
3884 done
3885 rm -f confinc.* confmf.*
3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3887 printf "%s\n" "${_am_result}" >&6; }
3888
3889 # Check whether --enable-dependency-tracking was given.
3890 if test ${enable_dependency_tracking+y}
3891 then :
3892 enableval=$enable_dependency_tracking;
3893 fi
3894
3895 if test "x$enable_dependency_tracking" != xno; then
3896 am_depcomp="$ac_aux_dir/depcomp"
3897 AMDEPBACKSLASH='\'
3898 am__nodep='_no'
3899 fi
3900 if test "x$enable_dependency_tracking" != xno; then
3901 AMDEP_TRUE=
3902 AMDEP_FALSE='#'
3903 else
3904 AMDEP_TRUE='#'
3905 AMDEP_FALSE=
3906 fi
3907
3908
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914 if test -n "$ac_tool_prefix"; then
3915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3916 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 printf %s "checking for $ac_word... " >&6; }
3919 if test ${ac_cv_prog_CC+y}
3920 then :
3921 printf %s "(cached) " >&6
3922 else case e in #(
3923 e) if test -n "$CC"; then
3924 ac_cv_prog_CC="$CC" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929 IFS=$as_save_IFS
3930 case $as_dir in #(((
3931 '') as_dir=./ ;;
3932 */) ;;
3933 *) as_dir=$as_dir/ ;;
3934 esac
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941 done
3942 done
3943 IFS=$as_save_IFS
3944
3945 fi ;;
3946 esac
3947 fi
3948 CC=$ac_cv_prog_CC
3949 if test -n "$CC"; then
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3951 printf "%s\n" "$CC" >&6; }
3952 else
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 printf "%s\n" "no" >&6; }
3955 fi
3956
3957
3958 fi
3959 if test -z "$ac_cv_prog_CC"; then
3960 ac_ct_CC=$CC
3961 # Extract the first word of "gcc", so it can be a program name with args.
3962 set dummy gcc; ac_word=$2
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 printf %s "checking for $ac_word... " >&6; }
3965 if test ${ac_cv_prog_ac_ct_CC+y}
3966 then :
3967 printf %s "(cached) " >&6
3968 else case e in #(
3969 e) if test -n "$ac_ct_CC"; then
3970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975 IFS=$as_save_IFS
3976 case $as_dir in #(((
3977 '') as_dir=./ ;;
3978 */) ;;
3979 *) as_dir=$as_dir/ ;;
3980 esac
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3983 ac_cv_prog_ac_ct_CC="gcc"
3984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3985 break 2
3986 fi
3987 done
3988 done
3989 IFS=$as_save_IFS
3990
3991 fi ;;
3992 esac
3993 fi
3994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3995 if test -n "$ac_ct_CC"; then
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3997 printf "%s\n" "$ac_ct_CC" >&6; }
3998 else
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 printf "%s\n" "no" >&6; }
4001 fi
4002
4003 if test "x$ac_ct_CC" = x; then
4004 CC=""
4005 else
4006 case $cross_compiling:$ac_tool_warned in
4007 yes:)
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4009 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4010 ac_tool_warned=yes ;;
4011 esac
4012 CC=$ac_ct_CC
4013 fi
4014 else
4015 CC="$ac_cv_prog_CC"
4016 fi
4017
4018 if test -z "$CC"; then
4019 if test -n "$ac_tool_prefix"; then
4020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4021 set dummy ${ac_tool_prefix}cc; ac_word=$2
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 printf %s "checking for $ac_word... " >&6; }
4024 if test ${ac_cv_prog_CC+y}
4025 then :
4026 printf %s "(cached) " >&6
4027 else case e in #(
4028 e) if test -n "$CC"; then
4029 ac_cv_prog_CC="$CC" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034 IFS=$as_save_IFS
4035 case $as_dir in #(((
4036 '') as_dir=./ ;;
4037 */) ;;
4038 *) as_dir=$as_dir/ ;;
4039 esac
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_CC="${ac_tool_prefix}cc"
4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046 done
4047 done
4048 IFS=$as_save_IFS
4049
4050 fi ;;
4051 esac
4052 fi
4053 CC=$ac_cv_prog_CC
4054 if test -n "$CC"; then
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 printf "%s\n" "$CC" >&6; }
4057 else
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 printf "%s\n" "no" >&6; }
4060 fi
4061
4062
4063 fi
4064 fi
4065 if test -z "$CC"; then
4066 # Extract the first word of "cc", so it can be a program name with args.
4067 set dummy cc; ac_word=$2
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 printf %s "checking for $ac_word... " >&6; }
4070 if test ${ac_cv_prog_CC+y}
4071 then :
4072 printf %s "(cached) " >&6
4073 else case e in #(
4074 e) if test -n "$CC"; then
4075 ac_cv_prog_CC="$CC" # Let the user override the test.
4076 else
4077 ac_prog_rejected=no
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4080 do
4081 IFS=$as_save_IFS
4082 case $as_dir in #(((
4083 '') as_dir=./ ;;
4084 */) ;;
4085 *) as_dir=$as_dir/ ;;
4086 esac
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4089 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4090 ac_prog_rejected=yes
4091 continue
4092 fi
4093 ac_cv_prog_CC="cc"
4094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4095 break 2
4096 fi
4097 done
4098 done
4099 IFS=$as_save_IFS
4100
4101 if test $ac_prog_rejected = yes; then
4102 # We found a bogon in the path, so make sure we never use it.
4103 set dummy $ac_cv_prog_CC
4104 shift
4105 if test $# != 0; then
4106 # We chose a different compiler from the bogus one.
4107 # However, it has the same basename, so the bogon will be chosen
4108 # first if we set CC to just the basename; use the full file name.
4109 shift
4110 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4111 fi
4112 fi
4113 fi ;;
4114 esac
4115 fi
4116 CC=$ac_cv_prog_CC
4117 if test -n "$CC"; then
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119 printf "%s\n" "$CC" >&6; }
4120 else
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 printf "%s\n" "no" >&6; }
4123 fi
4124
4125
4126 fi
4127 if test -z "$CC"; then
4128 if test -n "$ac_tool_prefix"; then
4129 for ac_prog in cl.exe
4130 do
4131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 printf %s "checking for $ac_word... " >&6; }
4135 if test ${ac_cv_prog_CC+y}
4136 then :
4137 printf %s "(cached) " >&6
4138 else case e in #(
4139 e) if test -n "$CC"; then
4140 ac_cv_prog_CC="$CC" # Let the user override the test.
4141 else
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4144 do
4145 IFS=$as_save_IFS
4146 case $as_dir in #(((
4147 '') as_dir=./ ;;
4148 */) ;;
4149 *) as_dir=$as_dir/ ;;
4150 esac
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4155 break 2
4156 fi
4157 done
4158 done
4159 IFS=$as_save_IFS
4160
4161 fi ;;
4162 esac
4163 fi
4164 CC=$ac_cv_prog_CC
4165 if test -n "$CC"; then
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167 printf "%s\n" "$CC" >&6; }
4168 else
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 printf "%s\n" "no" >&6; }
4171 fi
4172
4173
4174 test -n "$CC" && break
4175 done
4176 fi
4177 if test -z "$CC"; then
4178 ac_ct_CC=$CC
4179 for ac_prog in cl.exe
4180 do
4181 # Extract the first word of "$ac_prog", so it can be a program name with args.
4182 set dummy $ac_prog; ac_word=$2
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 printf %s "checking for $ac_word... " >&6; }
4185 if test ${ac_cv_prog_ac_ct_CC+y}
4186 then :
4187 printf %s "(cached) " >&6
4188 else case e in #(
4189 e) if test -n "$ac_ct_CC"; then
4190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195 IFS=$as_save_IFS
4196 case $as_dir in #(((
4197 '') as_dir=./ ;;
4198 */) ;;
4199 *) as_dir=$as_dir/ ;;
4200 esac
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_ac_ct_CC="$ac_prog"
4204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4205 break 2
4206 fi
4207 done
4208 done
4209 IFS=$as_save_IFS
4210
4211 fi ;;
4212 esac
4213 fi
4214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4215 if test -n "$ac_ct_CC"; then
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4217 printf "%s\n" "$ac_ct_CC" >&6; }
4218 else
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 printf "%s\n" "no" >&6; }
4221 fi
4222
4223
4224 test -n "$ac_ct_CC" && break
4225 done
4226
4227 if test "x$ac_ct_CC" = x; then
4228 CC=""
4229 else
4230 case $cross_compiling:$ac_tool_warned in
4231 yes:)
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4233 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4234 ac_tool_warned=yes ;;
4235 esac
4236 CC=$ac_ct_CC
4237 fi
4238 fi
4239
4240 fi
4241 if test -z "$CC"; then
4242 if test -n "$ac_tool_prefix"; then
4243 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4244 set dummy ${ac_tool_prefix}clang; ac_word=$2
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246 printf %s "checking for $ac_word... " >&6; }
4247 if test ${ac_cv_prog_CC+y}
4248 then :
4249 printf %s "(cached) " >&6
4250 else case e in #(
4251 e) if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257 IFS=$as_save_IFS
4258 case $as_dir in #(((
4259 '') as_dir=./ ;;
4260 */) ;;
4261 *) as_dir=$as_dir/ ;;
4262 esac
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4265 ac_cv_prog_CC="${ac_tool_prefix}clang"
4266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4267 break 2
4268 fi
4269 done
4270 done
4271 IFS=$as_save_IFS
4272
4273 fi ;;
4274 esac
4275 fi
4276 CC=$ac_cv_prog_CC
4277 if test -n "$CC"; then
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4279 printf "%s\n" "$CC" >&6; }
4280 else
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 printf "%s\n" "no" >&6; }
4283 fi
4284
4285
4286 fi
4287 if test -z "$ac_cv_prog_CC"; then
4288 ac_ct_CC=$CC
4289 # Extract the first word of "clang", so it can be a program name with args.
4290 set dummy clang; ac_word=$2
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 printf %s "checking for $ac_word... " >&6; }
4293 if test ${ac_cv_prog_ac_ct_CC+y}
4294 then :
4295 printf %s "(cached) " >&6
4296 else case e in #(
4297 e) if test -n "$ac_ct_CC"; then
4298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4299 else
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH
4302 do
4303 IFS=$as_save_IFS
4304 case $as_dir in #(((
4305 '') as_dir=./ ;;
4306 */) ;;
4307 *) as_dir=$as_dir/ ;;
4308 esac
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_CC="clang"
4312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315 done
4316 done
4317 IFS=$as_save_IFS
4318
4319 fi ;;
4320 esac
4321 fi
4322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4323 if test -n "$ac_ct_CC"; then
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4325 printf "%s\n" "$ac_ct_CC" >&6; }
4326 else
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 printf "%s\n" "no" >&6; }
4329 fi
4330
4331 if test "x$ac_ct_CC" = x; then
4332 CC=""
4333 else
4334 case $cross_compiling:$ac_tool_warned in
4335 yes:)
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4337 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4338 ac_tool_warned=yes ;;
4339 esac
4340 CC=$ac_ct_CC
4341 fi
4342 else
4343 CC="$ac_cv_prog_CC"
4344 fi
4345
4346 fi
4347
4348
4349 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4350 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4351 as_fn_error $? "no acceptable C compiler found in \$PATH
4352 See 'config.log' for more details" "$LINENO" 5; }
4353
4354 # Provide some information about the compiler.
4355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4356 set X $ac_compile
4357 ac_compiler=$2
4358 for ac_option in --version -v -V -qversion -version; do
4359 { { ac_try="$ac_compiler $ac_option >&5"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 printf "%s\n" "$ac_try_echo"; } >&5
4366 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4367 ac_status=$?
4368 if test -s conftest.err; then
4369 sed '10a\
4370 ... rest of stderr output deleted ...
4371 10q' conftest.err >conftest.er1
4372 cat conftest.er1 >&5
4373 fi
4374 rm -f conftest.er1 conftest.err
4375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }
4377 done
4378
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381
4382 int
4383 main (void)
4384 {
4385
4386 ;
4387 return 0;
4388 }
4389 _ACEOF
4390 ac_clean_files_save=$ac_clean_files
4391 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4392 # Try to create an executable without -o first, disregard a.out.
4393 # It will help us diagnose broken compilers, and finding out an intuition
4394 # of exeext.
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4396 printf %s "checking whether the C compiler works... " >&6; }
4397 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4398
4399 # The possible output files:
4400 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4401
4402 ac_rmfiles=
4403 for ac_file in $ac_files
4404 do
4405 case $ac_file in
4406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4407 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4408 esac
4409 done
4410 rm -f $ac_rmfiles
4411
4412 if { { ac_try="$ac_link_default"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 printf "%s\n" "$ac_try_echo"; } >&5
4419 (eval "$ac_link_default") 2>&5
4420 ac_status=$?
4421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }
4423 then :
4424 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4425 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4426 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4427 # so that the user can short-circuit this test for compilers unknown to
4428 # Autoconf.
4429 for ac_file in $ac_files ''
4430 do
4431 test -f "$ac_file" || continue
4432 case $ac_file in
4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4434 ;;
4435 [ab].out )
4436 # We found the default executable, but exeext='' is most
4437 # certainly right.
4438 break;;
4439 *.* )
4440 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4441 then :; else
4442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4443 fi
4444 # We set ac_cv_exeext here because the later test for it is not
4445 # safe: cross compilers may not add the suffix if given an '-o'
4446 # argument, so we may need to know it at that point already.
4447 # Even if this section looks crufty: it has the advantage of
4448 # actually working.
4449 break;;
4450 * )
4451 break;;
4452 esac
4453 done
4454 test "$ac_cv_exeext" = no && ac_cv_exeext=
4455
4456 else case e in #(
4457 e) ac_file='' ;;
4458 esac
4459 fi
4460 if test -z "$ac_file"
4461 then :
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 printf "%s\n" "no" >&6; }
4464 printf "%s\n" "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4468 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4469 as_fn_error 77 "C compiler cannot create executables
4470 See 'config.log' for more details" "$LINENO" 5; }
4471 else case e in #(
4472 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4473 printf "%s\n" "yes" >&6; } ;;
4474 esac
4475 fi
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4477 printf %s "checking for C compiler default output file name... " >&6; }
4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4479 printf "%s\n" "$ac_file" >&6; }
4480 ac_exeext=$ac_cv_exeext
4481
4482 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4483 ac_clean_files=$ac_clean_files_save
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4485 printf %s "checking for suffix of executables... " >&6; }
4486 if { { ac_try="$ac_link"
4487 case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490 esac
4491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4492 printf "%s\n" "$ac_try_echo"; } >&5
4493 (eval "$ac_link") 2>&5
4494 ac_status=$?
4495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4496 test $ac_status = 0; }
4497 then :
4498 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4499 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4500 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4501 # 'rm'.
4502 for ac_file in conftest.exe conftest conftest.*; do
4503 test -f "$ac_file" || continue
4504 case $ac_file in
4505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4506 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4507 break;;
4508 * ) break;;
4509 esac
4510 done
4511 else case e in #(
4512 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4513 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4514 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4515 See 'config.log' for more details" "$LINENO" 5; } ;;
4516 esac
4517 fi
4518 rm -f conftest conftest$ac_cv_exeext
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4520 printf "%s\n" "$ac_cv_exeext" >&6; }
4521
4522 rm -f conftest.$ac_ext
4523 EXEEXT=$ac_cv_exeext
4524 ac_exeext=$EXEEXT
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527 #include <stdio.h>
4528 int
4529 main (void)
4530 {
4531 FILE *f = fopen ("conftest.out", "w");
4532 if (!f)
4533 return 1;
4534 return ferror (f) || fclose (f) != 0;
4535
4536 ;
4537 return 0;
4538 }
4539 _ACEOF
4540 ac_clean_files="$ac_clean_files conftest.out"
4541 # Check that the compiler produces executables we can run. If not, either
4542 # the compiler is broken, or we cross compile.
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4544 printf %s "checking whether we are cross compiling... " >&6; }
4545 if test "$cross_compiling" != yes; then
4546 { { ac_try="$ac_link"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4552 printf "%s\n" "$ac_try_echo"; } >&5
4553 (eval "$ac_link") 2>&5
4554 ac_status=$?
4555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4556 test $ac_status = 0; }
4557 if { ac_try='./conftest$ac_cv_exeext'
4558 { { case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561 esac
4562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563 printf "%s\n" "$ac_try_echo"; } >&5
4564 (eval "$ac_try") 2>&5
4565 ac_status=$?
4566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }; }; then
4568 cross_compiling=no
4569 else
4570 if test "$cross_compiling" = maybe; then
4571 cross_compiling=yes
4572 else
4573 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4574 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4575 as_fn_error 77 "cannot run C compiled programs.
4576 If you meant to cross compile, use '--host'.
4577 See 'config.log' for more details" "$LINENO" 5; }
4578 fi
4579 fi
4580 fi
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4582 printf "%s\n" "$cross_compiling" >&6; }
4583
4584 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4585 conftest.o conftest.obj conftest.out
4586 ac_clean_files=$ac_clean_files_save
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4588 printf %s "checking for suffix of object files... " >&6; }
4589 if test ${ac_cv_objext+y}
4590 then :
4591 printf %s "(cached) " >&6
4592 else case e in #(
4593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595
4596 int
4597 main (void)
4598 {
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.o conftest.obj
4605 if { { ac_try="$ac_compile"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4611 printf "%s\n" "$ac_try_echo"; } >&5
4612 (eval "$ac_compile") 2>&5
4613 ac_status=$?
4614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4615 test $ac_status = 0; }
4616 then :
4617 for ac_file in conftest.o conftest.obj conftest.*; do
4618 test -f "$ac_file" || continue;
4619 case $ac_file in
4620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4621 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4622 break;;
4623 esac
4624 done
4625 else case e in #(
4626 e) printf "%s\n" "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4630 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4631 as_fn_error $? "cannot compute suffix of object files: cannot compile
4632 See 'config.log' for more details" "$LINENO" 5; } ;;
4633 esac
4634 fi
4635 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4636 esac
4637 fi
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4639 printf "%s\n" "$ac_cv_objext" >&6; }
4640 OBJEXT=$ac_cv_objext
4641 ac_objext=$OBJEXT
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4643 printf %s "checking whether the compiler supports GNU C... " >&6; }
4644 if test ${ac_cv_c_compiler_gnu+y}
4645 then :
4646 printf %s "(cached) " >&6
4647 else case e in #(
4648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650
4651 int
4652 main (void)
4653 {
4654 #ifndef __GNUC__
4655 choke me
4656 #endif
4657
4658 ;
4659 return 0;
4660 }
4661 _ACEOF
4662 if ac_fn_c_try_compile "$LINENO"
4663 then :
4664 ac_compiler_gnu=yes
4665 else case e in #(
4666 e) ac_compiler_gnu=no ;;
4667 esac
4668 fi
4669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4671 ;;
4672 esac
4673 fi
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4675 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4677
4678 if test $ac_compiler_gnu = yes; then
4679 GCC=yes
4680 else
4681 GCC=
4682 fi
4683 ac_test_CFLAGS=${CFLAGS+y}
4684 ac_save_CFLAGS=$CFLAGS
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4686 printf %s "checking whether $CC accepts -g... " >&6; }
4687 if test ${ac_cv_prog_cc_g+y}
4688 then :
4689 printf %s "(cached) " >&6
4690 else case e in #(
4691 e) ac_save_c_werror_flag=$ac_c_werror_flag
4692 ac_c_werror_flag=yes
4693 ac_cv_prog_cc_g=no
4694 CFLAGS="-g"
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697
4698 int
4699 main (void)
4700 {
4701
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"
4707 then :
4708 ac_cv_prog_cc_g=yes
4709 else case e in #(
4710 e) CFLAGS=""
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713
4714 int
4715 main (void)
4716 {
4717
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 if ac_fn_c_try_compile "$LINENO"
4723 then :
4724
4725 else case e in #(
4726 e) ac_c_werror_flag=$ac_save_c_werror_flag
4727 CFLAGS="-g"
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main (void)
4733 {
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_c_try_compile "$LINENO"
4740 then :
4741 ac_cv_prog_cc_g=yes
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4744 esac
4745 fi
4746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4747 esac
4748 fi
4749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4750 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4751 esac
4752 fi
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4754 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4755 if test $ac_test_CFLAGS; then
4756 CFLAGS=$ac_save_CFLAGS
4757 elif test $ac_cv_prog_cc_g = yes; then
4758 if test "$GCC" = yes; then
4759 CFLAGS="-g -O2"
4760 else
4761 CFLAGS="-g"
4762 fi
4763 else
4764 if test "$GCC" = yes; then
4765 CFLAGS="-O2"
4766 else
4767 CFLAGS=
4768 fi
4769 fi
4770 ac_prog_cc_stdc=no
4771 if test x$ac_prog_cc_stdc = xno
4772 then :
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4774 printf %s "checking for $CC option to enable C11 features... " >&6; }
4775 if test ${ac_cv_prog_cc_c11+y}
4776 then :
4777 printf %s "(cached) " >&6
4778 else case e in #(
4779 e) ac_cv_prog_cc_c11=no
4780 ac_save_CC=$CC
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783 $ac_c_conftest_c11_program
4784 _ACEOF
4785 for ac_arg in '' -std=gnu11
4786 do
4787 CC="$ac_save_CC $ac_arg"
4788 if ac_fn_c_try_compile "$LINENO"
4789 then :
4790 ac_cv_prog_cc_c11=$ac_arg
4791 fi
4792 rm -f core conftest.err conftest.$ac_objext conftest.beam
4793 test "x$ac_cv_prog_cc_c11" != "xno" && break
4794 done
4795 rm -f conftest.$ac_ext
4796 CC=$ac_save_CC ;;
4797 esac
4798 fi
4799
4800 if test "x$ac_cv_prog_cc_c11" = xno
4801 then :
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4803 printf "%s\n" "unsupported" >&6; }
4804 else case e in #(
4805 e) if test "x$ac_cv_prog_cc_c11" = x
4806 then :
4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4808 printf "%s\n" "none needed" >&6; }
4809 else case e in #(
4810 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4811 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4812 CC="$CC $ac_cv_prog_cc_c11" ;;
4813 esac
4814 fi
4815 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4816 ac_prog_cc_stdc=c11 ;;
4817 esac
4818 fi
4819 fi
4820 if test x$ac_prog_cc_stdc = xno
4821 then :
4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4823 printf %s "checking for $CC option to enable C99 features... " >&6; }
4824 if test ${ac_cv_prog_cc_c99+y}
4825 then :
4826 printf %s "(cached) " >&6
4827 else case e in #(
4828 e) ac_cv_prog_cc_c99=no
4829 ac_save_CC=$CC
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832 $ac_c_conftest_c99_program
4833 _ACEOF
4834 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4835 do
4836 CC="$ac_save_CC $ac_arg"
4837 if ac_fn_c_try_compile "$LINENO"
4838 then :
4839 ac_cv_prog_cc_c99=$ac_arg
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.beam
4842 test "x$ac_cv_prog_cc_c99" != "xno" && break
4843 done
4844 rm -f conftest.$ac_ext
4845 CC=$ac_save_CC ;;
4846 esac
4847 fi
4848
4849 if test "x$ac_cv_prog_cc_c99" = xno
4850 then :
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4852 printf "%s\n" "unsupported" >&6; }
4853 else case e in #(
4854 e) if test "x$ac_cv_prog_cc_c99" = x
4855 then :
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4857 printf "%s\n" "none needed" >&6; }
4858 else case e in #(
4859 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4860 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4861 CC="$CC $ac_cv_prog_cc_c99" ;;
4862 esac
4863 fi
4864 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4865 ac_prog_cc_stdc=c99 ;;
4866 esac
4867 fi
4868 fi
4869 if test x$ac_prog_cc_stdc = xno
4870 then :
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4872 printf %s "checking for $CC option to enable C89 features... " >&6; }
4873 if test ${ac_cv_prog_cc_c89+y}
4874 then :
4875 printf %s "(cached) " >&6
4876 else case e in #(
4877 e) ac_cv_prog_cc_c89=no
4878 ac_save_CC=$CC
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 $ac_c_conftest_c89_program
4882 _ACEOF
4883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4884 do
4885 CC="$ac_save_CC $ac_arg"
4886 if ac_fn_c_try_compile "$LINENO"
4887 then :
4888 ac_cv_prog_cc_c89=$ac_arg
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.beam
4891 test "x$ac_cv_prog_cc_c89" != "xno" && break
4892 done
4893 rm -f conftest.$ac_ext
4894 CC=$ac_save_CC ;;
4895 esac
4896 fi
4897
4898 if test "x$ac_cv_prog_cc_c89" = xno
4899 then :
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4901 printf "%s\n" "unsupported" >&6; }
4902 else case e in #(
4903 e) if test "x$ac_cv_prog_cc_c89" = x
4904 then :
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4906 printf "%s\n" "none needed" >&6; }
4907 else case e in #(
4908 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4909 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4910 CC="$CC $ac_cv_prog_cc_c89" ;;
4911 esac
4912 fi
4913 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4914 ac_prog_cc_stdc=c89 ;;
4915 esac
4916 fi
4917 fi
4918
4919 ac_ext=c
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924
4925
4926 ac_ext=c
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4932 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4933 if test ${am_cv_prog_cc_c_o+y}
4934 then :
4935 printf %s "(cached) " >&6
4936 else case e in #(
4937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939
4940 int
4941 main (void)
4942 {
4943
4944 ;
4945 return 0;
4946 }
4947 _ACEOF
4948 # Make sure it works both with $CC and with simple cc.
4949 # Following AC_PROG_CC_C_O, we do the test twice because some
4950 # compilers refuse to overwrite an existing .o file with -o,
4951 # though they will create one.
4952 am_cv_prog_cc_c_o=yes
4953 for am_i in 1 2; do
4954 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4955 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } \
4959 && test -f conftest2.$ac_objext; then
4960 : OK
4961 else
4962 am_cv_prog_cc_c_o=no
4963 break
4964 fi
4965 done
4966 rm -f core conftest*
4967 unset am_i ;;
4968 esac
4969 fi
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4971 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4972 if test "$am_cv_prog_cc_c_o" != yes; then
4973 # Losing compiler, so override with the script.
4974 # FIXME: It is wrong to rewrite CC.
4975 # But if we don't then we get into trouble of one sort or another.
4976 # A longer-term fix would be to have automake use am__CC in this case,
4977 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4978 CC="$am_aux_dir/compile $CC"
4979 fi
4980 ac_ext=c
4981 ac_cpp='$CPP $CPPFLAGS'
4982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985
4986
4987 depcc="$CC" am_compiler_list=
4988
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4990 printf %s "checking dependency style of $depcc... " >&6; }
4991 if test ${am_cv_CC_dependencies_compiler_type+y}
4992 then :
4993 printf %s "(cached) " >&6
4994 else case e in #(
4995 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4996 # We make a subdir and do the tests there. Otherwise we can end up
4997 # making bogus files that we don't know about and never remove. For
4998 # instance it was reported that on HP-UX the gcc test will end up
4999 # making a dummy file named 'D' -- because '-MD' means "put the output
5000 # in D".
5001 rm -rf conftest.dir
5002 mkdir conftest.dir
5003 # Copy depcomp to subdir because otherwise we won't find it if we're
5004 # using a relative directory.
5005 cp "$am_depcomp" conftest.dir
5006 cd conftest.dir
5007 # We will build objects and dependencies in a subdirectory because
5008 # it helps to detect inapplicable dependency modes. For instance
5009 # both Tru64's cc and ICC support -MD to output dependencies as a
5010 # side effect of compilation, but ICC will put the dependencies in
5011 # the current directory while Tru64 will put them in the object
5012 # directory.
5013 mkdir sub
5014
5015 am_cv_CC_dependencies_compiler_type=none
5016 if test "$am_compiler_list" = ""; then
5017 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5018 fi
5019 am__universal=false
5020 case " $depcc " in #(
5021 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5022 esac
5023
5024 for depmode in $am_compiler_list; do
5025 # Setup a source with many dependencies, because some compilers
5026 # like to wrap large dependency lists on column 80 (with \), and
5027 # we should not choose a depcomp mode which is confused by this.
5028 #
5029 # We need to recreate these files for each test, as the compiler may
5030 # overwrite some of them when testing with obscure command lines.
5031 # This happens at least with the AIX C compiler.
5032 : > sub/conftest.c
5033 for i in 1 2 3 4 5 6; do
5034 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5035 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5036 # Solaris 10 /bin/sh.
5037 echo '/* dummy */' > sub/conftst$i.h
5038 done
5039 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5040
5041 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5042 # mode. It turns out that the SunPro C++ compiler does not properly
5043 # handle '-M -o', and we need to detect this. Also, some Intel
5044 # versions had trouble with output in subdirs.
5045 am__obj=sub/conftest.${OBJEXT-o}
5046 am__minus_obj="-o $am__obj"
5047 case $depmode in
5048 gcc)
5049 # This depmode causes a compiler race in universal mode.
5050 test "$am__universal" = false || continue
5051 ;;
5052 nosideeffect)
5053 # After this tag, mechanisms are not by side-effect, so they'll
5054 # only be used when explicitly requested.
5055 if test "x$enable_dependency_tracking" = xyes; then
5056 continue
5057 else
5058 break
5059 fi
5060 ;;
5061 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5062 # This compiler won't grok '-c -o', but also, the minuso test has
5063 # not run yet. These depmodes are late enough in the game, and
5064 # so weak that their functioning should not be impacted.
5065 am__obj=conftest.${OBJEXT-o}
5066 am__minus_obj=
5067 ;;
5068 none) break ;;
5069 esac
5070 if depmode=$depmode \
5071 source=sub/conftest.c object=$am__obj \
5072 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5073 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5074 >/dev/null 2>conftest.err &&
5075 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5076 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5077 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5078 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5079 # icc doesn't choke on unknown options, it will just issue warnings
5080 # or remarks (even with -Werror). So we grep stderr for any message
5081 # that says an option was ignored or not supported.
5082 # When given -MP, icc 7.0 and 7.1 complain thus:
5083 # icc: Command line warning: ignoring option '-M'; no argument required
5084 # The diagnosis changed in icc 8.0:
5085 # icc: Command line remark: option '-MP' not supported
5086 if (grep 'ignoring option' conftest.err ||
5087 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5088 am_cv_CC_dependencies_compiler_type=$depmode
5089 break
5090 fi
5091 fi
5092 done
5093
5094 cd ..
5095 rm -rf conftest.dir
5096 else
5097 am_cv_CC_dependencies_compiler_type=none
5098 fi
5099 ;;
5100 esac
5101 fi
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5103 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5104 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5105
5106 if
5107 test "x$enable_dependency_tracking" != xno \
5108 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5109 am__fastdepCC_TRUE=
5110 am__fastdepCC_FALSE='#'
5111 else
5112 am__fastdepCC_TRUE='#'
5113 am__fastdepCC_FALSE=
5114 fi
5115
5116
5117
5118
5119 if test -n "$ac_tool_prefix"; then
5120 for ac_prog in ar lib "link -lib"
5121 do
5122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 printf %s "checking for $ac_word... " >&6; }
5126 if test ${ac_cv_prog_AR+y}
5127 then :
5128 printf %s "(cached) " >&6
5129 else case e in #(
5130 e) if test -n "$AR"; then
5131 ac_cv_prog_AR="$AR" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136 IFS=$as_save_IFS
5137 case $as_dir in #(((
5138 '') as_dir=./ ;;
5139 */) ;;
5140 *) as_dir=$as_dir/ ;;
5141 esac
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148 done
5149 done
5150 IFS=$as_save_IFS
5151
5152 fi ;;
5153 esac
5154 fi
5155 AR=$ac_cv_prog_AR
5156 if test -n "$AR"; then
5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5158 printf "%s\n" "$AR" >&6; }
5159 else
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 printf "%s\n" "no" >&6; }
5162 fi
5163
5164
5165 test -n "$AR" && break
5166 done
5167 fi
5168 if test -z "$AR"; then
5169 ac_ct_AR=$AR
5170 for ac_prog in ar lib "link -lib"
5171 do
5172 # Extract the first word of "$ac_prog", so it can be a program name with args.
5173 set dummy $ac_prog; ac_word=$2
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 printf %s "checking for $ac_word... " >&6; }
5176 if test ${ac_cv_prog_ac_ct_AR+y}
5177 then :
5178 printf %s "(cached) " >&6
5179 else case e in #(
5180 e) if test -n "$ac_ct_AR"; then
5181 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186 IFS=$as_save_IFS
5187 case $as_dir in #(((
5188 '') as_dir=./ ;;
5189 */) ;;
5190 *) as_dir=$as_dir/ ;;
5191 esac
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5194 ac_cv_prog_ac_ct_AR="$ac_prog"
5195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5196 break 2
5197 fi
5198 done
5199 done
5200 IFS=$as_save_IFS
5201
5202 fi ;;
5203 esac
5204 fi
5205 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5206 if test -n "$ac_ct_AR"; then
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5208 printf "%s\n" "$ac_ct_AR" >&6; }
5209 else
5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 printf "%s\n" "no" >&6; }
5212 fi
5213
5214
5215 test -n "$ac_ct_AR" && break
5216 done
5217
5218 if test "x$ac_ct_AR" = x; then
5219 AR="false"
5220 else
5221 case $cross_compiling:$ac_tool_warned in
5222 yes:)
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned=yes ;;
5226 esac
5227 AR=$ac_ct_AR
5228 fi
5229 fi
5230
5231 : ${AR=ar}
5232 : ${ARFLAGS=cr}
5233
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5235 printf %s "checking the archiver ($AR) interface... " >&6; }
5236 if test ${am_cv_ar_interface+y}
5237 then :
5238 printf %s "(cached) " >&6
5239 else case e in #(
5240 e) ac_ext=c
5241 ac_cpp='$CPP $CPPFLAGS'
5242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245
5246 am_cv_ar_interface=ar
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 int some_variable = 0;
5250 _ACEOF
5251 if ac_fn_c_try_compile "$LINENO"
5252 then :
5253 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
5254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5255 (eval $am_ar_try) 2>&5
5256 ac_status=$?
5257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5258 test $ac_status = 0; }
5259 if test "$ac_status" -eq 0; then
5260 am_cv_ar_interface=ar
5261 else
5262 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5264 (eval $am_ar_try) 2>&5
5265 ac_status=$?
5266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5267 test $ac_status = 0; }
5268 if test "$ac_status" -eq 0; then
5269 am_cv_ar_interface=lib
5270 else
5271 am_cv_ar_interface=unknown
5272 fi
5273 fi
5274 rm -f conftest.lib libconftest.a
5275
5276 fi
5277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5278 ac_ext=cpp
5279 ac_cpp='$CXXCPP $CPPFLAGS'
5280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5283 ;;
5284 esac
5285 fi
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5287 printf "%s\n" "$am_cv_ar_interface" >&6; }
5288
5289 case $am_cv_ar_interface in
5290 ar)
5291 ;;
5292 lib)
5293 # Microsoft lib, so override with the ar-lib wrapper script.
5294 # FIXME: It is wrong to rewrite AR.
5295 # But if we don't then we get into trouble of one sort or another.
5296 # A longer-term fix would be to have automake use am__AR in this case,
5297 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5298 # similar.
5299 AR="$am_aux_dir/ar-lib $AR"
5300 ;;
5301 unknown)
5302 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5303 ;;
5304 esac
5305
5306 ac_ext=c
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 if test -n "$ac_tool_prefix"; then
5312 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5313 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 printf %s "checking for $ac_word... " >&6; }
5316 if test ${ac_cv_prog_CC+y}
5317 then :
5318 printf %s "(cached) " >&6
5319 else case e in #(
5320 e) if test -n "$CC"; then
5321 ac_cv_prog_CC="$CC" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326 IFS=$as_save_IFS
5327 case $as_dir in #(((
5328 '') as_dir=./ ;;
5329 */) ;;
5330 *) as_dir=$as_dir/ ;;
5331 esac
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5336 break 2
5337 fi
5338 done
5339 done
5340 IFS=$as_save_IFS
5341
5342 fi ;;
5343 esac
5344 fi
5345 CC=$ac_cv_prog_CC
5346 if test -n "$CC"; then
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5348 printf "%s\n" "$CC" >&6; }
5349 else
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 printf "%s\n" "no" >&6; }
5352 fi
5353
5354
5355 fi
5356 if test -z "$ac_cv_prog_CC"; then
5357 ac_ct_CC=$CC
5358 # Extract the first word of "gcc", so it can be a program name with args.
5359 set dummy gcc; ac_word=$2
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361 printf %s "checking for $ac_word... " >&6; }
5362 if test ${ac_cv_prog_ac_ct_CC+y}
5363 then :
5364 printf %s "(cached) " >&6
5365 else case e in #(
5366 e) if test -n "$ac_ct_CC"; then
5367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5368 else
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5371 do
5372 IFS=$as_save_IFS
5373 case $as_dir in #(((
5374 '') as_dir=./ ;;
5375 */) ;;
5376 *) as_dir=$as_dir/ ;;
5377 esac
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5380 ac_cv_prog_ac_ct_CC="gcc"
5381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5382 break 2
5383 fi
5384 done
5385 done
5386 IFS=$as_save_IFS
5387
5388 fi ;;
5389 esac
5390 fi
5391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5392 if test -n "$ac_ct_CC"; then
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5394 printf "%s\n" "$ac_ct_CC" >&6; }
5395 else
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 printf "%s\n" "no" >&6; }
5398 fi
5399
5400 if test "x$ac_ct_CC" = x; then
5401 CC=""
5402 else
5403 case $cross_compiling:$ac_tool_warned in
5404 yes:)
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5406 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407 ac_tool_warned=yes ;;
5408 esac
5409 CC=$ac_ct_CC
5410 fi
5411 else
5412 CC="$ac_cv_prog_CC"
5413 fi
5414
5415 if test -z "$CC"; then
5416 if test -n "$ac_tool_prefix"; then
5417 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5418 set dummy ${ac_tool_prefix}cc; ac_word=$2
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 printf %s "checking for $ac_word... " >&6; }
5421 if test ${ac_cv_prog_CC+y}
5422 then :
5423 printf %s "(cached) " >&6
5424 else case e in #(
5425 e) if test -n "$CC"; then
5426 ac_cv_prog_CC="$CC" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431 IFS=$as_save_IFS
5432 case $as_dir in #(((
5433 '') as_dir=./ ;;
5434 */) ;;
5435 *) as_dir=$as_dir/ ;;
5436 esac
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5439 ac_cv_prog_CC="${ac_tool_prefix}cc"
5440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5441 break 2
5442 fi
5443 done
5444 done
5445 IFS=$as_save_IFS
5446
5447 fi ;;
5448 esac
5449 fi
5450 CC=$ac_cv_prog_CC
5451 if test -n "$CC"; then
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5453 printf "%s\n" "$CC" >&6; }
5454 else
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 printf "%s\n" "no" >&6; }
5457 fi
5458
5459
5460 fi
5461 fi
5462 if test -z "$CC"; then
5463 # Extract the first word of "cc", so it can be a program name with args.
5464 set dummy cc; ac_word=$2
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 printf %s "checking for $ac_word... " >&6; }
5467 if test ${ac_cv_prog_CC+y}
5468 then :
5469 printf %s "(cached) " >&6
5470 else case e in #(
5471 e) if test -n "$CC"; then
5472 ac_cv_prog_CC="$CC" # Let the user override the test.
5473 else
5474 ac_prog_rejected=no
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478 IFS=$as_save_IFS
5479 case $as_dir in #(((
5480 '') as_dir=./ ;;
5481 */) ;;
5482 *) as_dir=$as_dir/ ;;
5483 esac
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5486 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5487 ac_prog_rejected=yes
5488 continue
5489 fi
5490 ac_cv_prog_CC="cc"
5491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5492 break 2
5493 fi
5494 done
5495 done
5496 IFS=$as_save_IFS
5497
5498 if test $ac_prog_rejected = yes; then
5499 # We found a bogon in the path, so make sure we never use it.
5500 set dummy $ac_cv_prog_CC
5501 shift
5502 if test $# != 0; then
5503 # We chose a different compiler from the bogus one.
5504 # However, it has the same basename, so the bogon will be chosen
5505 # first if we set CC to just the basename; use the full file name.
5506 shift
5507 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5508 fi
5509 fi
5510 fi ;;
5511 esac
5512 fi
5513 CC=$ac_cv_prog_CC
5514 if test -n "$CC"; then
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5516 printf "%s\n" "$CC" >&6; }
5517 else
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 printf "%s\n" "no" >&6; }
5520 fi
5521
5522
5523 fi
5524 if test -z "$CC"; then
5525 if test -n "$ac_tool_prefix"; then
5526 for ac_prog in cl.exe
5527 do
5528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 printf %s "checking for $ac_word... " >&6; }
5532 if test ${ac_cv_prog_CC+y}
5533 then :
5534 printf %s "(cached) " >&6
5535 else case e in #(
5536 e) if test -n "$CC"; then
5537 ac_cv_prog_CC="$CC" # Let the user override the test.
5538 else
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5541 do
5542 IFS=$as_save_IFS
5543 case $as_dir in #(((
5544 '') as_dir=./ ;;
5545 */) ;;
5546 *) as_dir=$as_dir/ ;;
5547 esac
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554 done
5555 done
5556 IFS=$as_save_IFS
5557
5558 fi ;;
5559 esac
5560 fi
5561 CC=$ac_cv_prog_CC
5562 if test -n "$CC"; then
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5564 printf "%s\n" "$CC" >&6; }
5565 else
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 printf "%s\n" "no" >&6; }
5568 fi
5569
5570
5571 test -n "$CC" && break
5572 done
5573 fi
5574 if test -z "$CC"; then
5575 ac_ct_CC=$CC
5576 for ac_prog in cl.exe
5577 do
5578 # Extract the first word of "$ac_prog", so it can be a program name with args.
5579 set dummy $ac_prog; ac_word=$2
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 printf %s "checking for $ac_word... " >&6; }
5582 if test ${ac_cv_prog_ac_ct_CC+y}
5583 then :
5584 printf %s "(cached) " >&6
5585 else case e in #(
5586 e) if test -n "$ac_ct_CC"; then
5587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592 IFS=$as_save_IFS
5593 case $as_dir in #(((
5594 '') as_dir=./ ;;
5595 */) ;;
5596 *) as_dir=$as_dir/ ;;
5597 esac
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_ac_ct_CC="$ac_prog"
5601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5602 break 2
5603 fi
5604 done
5605 done
5606 IFS=$as_save_IFS
5607
5608 fi ;;
5609 esac
5610 fi
5611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5612 if test -n "$ac_ct_CC"; then
5613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5614 printf "%s\n" "$ac_ct_CC" >&6; }
5615 else
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 printf "%s\n" "no" >&6; }
5618 fi
5619
5620
5621 test -n "$ac_ct_CC" && break
5622 done
5623
5624 if test "x$ac_ct_CC" = x; then
5625 CC=""
5626 else
5627 case $cross_compiling:$ac_tool_warned in
5628 yes:)
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5630 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5631 ac_tool_warned=yes ;;
5632 esac
5633 CC=$ac_ct_CC
5634 fi
5635 fi
5636
5637 fi
5638 if test -z "$CC"; then
5639 if test -n "$ac_tool_prefix"; then
5640 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5641 set dummy ${ac_tool_prefix}clang; ac_word=$2
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 printf %s "checking for $ac_word... " >&6; }
5644 if test ${ac_cv_prog_CC+y}
5645 then :
5646 printf %s "(cached) " >&6
5647 else case e in #(
5648 e) if test -n "$CC"; then
5649 ac_cv_prog_CC="$CC" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5653 do
5654 IFS=$as_save_IFS
5655 case $as_dir in #(((
5656 '') as_dir=./ ;;
5657 */) ;;
5658 *) as_dir=$as_dir/ ;;
5659 esac
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5662 ac_cv_prog_CC="${ac_tool_prefix}clang"
5663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5664 break 2
5665 fi
5666 done
5667 done
5668 IFS=$as_save_IFS
5669
5670 fi ;;
5671 esac
5672 fi
5673 CC=$ac_cv_prog_CC
5674 if test -n "$CC"; then
5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5676 printf "%s\n" "$CC" >&6; }
5677 else
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 printf "%s\n" "no" >&6; }
5680 fi
5681
5682
5683 fi
5684 if test -z "$ac_cv_prog_CC"; then
5685 ac_ct_CC=$CC
5686 # Extract the first word of "clang", so it can be a program name with args.
5687 set dummy clang; ac_word=$2
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 printf %s "checking for $ac_word... " >&6; }
5690 if test ${ac_cv_prog_ac_ct_CC+y}
5691 then :
5692 printf %s "(cached) " >&6
5693 else case e in #(
5694 e) if test -n "$ac_ct_CC"; then
5695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700 IFS=$as_save_IFS
5701 case $as_dir in #(((
5702 '') as_dir=./ ;;
5703 */) ;;
5704 *) as_dir=$as_dir/ ;;
5705 esac
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5708 ac_cv_prog_ac_ct_CC="clang"
5709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5710 break 2
5711 fi
5712 done
5713 done
5714 IFS=$as_save_IFS
5715
5716 fi ;;
5717 esac
5718 fi
5719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5720 if test -n "$ac_ct_CC"; then
5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5722 printf "%s\n" "$ac_ct_CC" >&6; }
5723 else
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 printf "%s\n" "no" >&6; }
5726 fi
5727
5728 if test "x$ac_ct_CC" = x; then
5729 CC=""
5730 else
5731 case $cross_compiling:$ac_tool_warned in
5732 yes:)
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5734 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5735 ac_tool_warned=yes ;;
5736 esac
5737 CC=$ac_ct_CC
5738 fi
5739 else
5740 CC="$ac_cv_prog_CC"
5741 fi
5742
5743 fi
5744
5745
5746 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5747 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5748 as_fn_error $? "no acceptable C compiler found in \$PATH
5749 See 'config.log' for more details" "$LINENO" 5; }
5750
5751 # Provide some information about the compiler.
5752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5753 set X $ac_compile
5754 ac_compiler=$2
5755 for ac_option in --version -v -V -qversion -version; do
5756 { { ac_try="$ac_compiler $ac_option >&5"
5757 case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760 esac
5761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5762 printf "%s\n" "$ac_try_echo"; } >&5
5763 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5764 ac_status=$?
5765 if test -s conftest.err; then
5766 sed '10a\
5767 ... rest of stderr output deleted ...
5768 10q' conftest.err >conftest.er1
5769 cat conftest.er1 >&5
5770 fi
5771 rm -f conftest.er1 conftest.err
5772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5773 test $ac_status = 0; }
5774 done
5775
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5777 printf %s "checking whether the compiler supports GNU C... " >&6; }
5778 if test ${ac_cv_c_compiler_gnu+y}
5779 then :
5780 printf %s "(cached) " >&6
5781 else case e in #(
5782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784
5785 int
5786 main (void)
5787 {
5788 #ifndef __GNUC__
5789 choke me
5790 #endif
5791
5792 ;
5793 return 0;
5794 }
5795 _ACEOF
5796 if ac_fn_c_try_compile "$LINENO"
5797 then :
5798 ac_compiler_gnu=yes
5799 else case e in #(
5800 e) ac_compiler_gnu=no ;;
5801 esac
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5804 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5805 ;;
5806 esac
5807 fi
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5809 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811
5812 if test $ac_compiler_gnu = yes; then
5813 GCC=yes
5814 else
5815 GCC=
5816 fi
5817 ac_test_CFLAGS=${CFLAGS+y}
5818 ac_save_CFLAGS=$CFLAGS
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5820 printf %s "checking whether $CC accepts -g... " >&6; }
5821 if test ${ac_cv_prog_cc_g+y}
5822 then :
5823 printf %s "(cached) " >&6
5824 else case e in #(
5825 e) ac_save_c_werror_flag=$ac_c_werror_flag
5826 ac_c_werror_flag=yes
5827 ac_cv_prog_cc_g=no
5828 CFLAGS="-g"
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5831
5832 int
5833 main (void)
5834 {
5835
5836 ;
5837 return 0;
5838 }
5839 _ACEOF
5840 if ac_fn_c_try_compile "$LINENO"
5841 then :
5842 ac_cv_prog_cc_g=yes
5843 else case e in #(
5844 e) CFLAGS=""
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847
5848 int
5849 main (void)
5850 {
5851
5852 ;
5853 return 0;
5854 }
5855 _ACEOF
5856 if ac_fn_c_try_compile "$LINENO"
5857 then :
5858
5859 else case e in #(
5860 e) ac_c_werror_flag=$ac_save_c_werror_flag
5861 CFLAGS="-g"
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864
5865 int
5866 main (void)
5867 {
5868
5869 ;
5870 return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_c_try_compile "$LINENO"
5874 then :
5875 ac_cv_prog_cc_g=yes
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5878 esac
5879 fi
5880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5881 esac
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5884 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5885 esac
5886 fi
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5888 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5889 if test $ac_test_CFLAGS; then
5890 CFLAGS=$ac_save_CFLAGS
5891 elif test $ac_cv_prog_cc_g = yes; then
5892 if test "$GCC" = yes; then
5893 CFLAGS="-g -O2"
5894 else
5895 CFLAGS="-g"
5896 fi
5897 else
5898 if test "$GCC" = yes; then
5899 CFLAGS="-O2"
5900 else
5901 CFLAGS=
5902 fi
5903 fi
5904 ac_prog_cc_stdc=no
5905 if test x$ac_prog_cc_stdc = xno
5906 then :
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5908 printf %s "checking for $CC option to enable C11 features... " >&6; }
5909 if test ${ac_cv_prog_cc_c11+y}
5910 then :
5911 printf %s "(cached) " >&6
5912 else case e in #(
5913 e) ac_cv_prog_cc_c11=no
5914 ac_save_CC=$CC
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 $ac_c_conftest_c11_program
5918 _ACEOF
5919 for ac_arg in '' -std=gnu11
5920 do
5921 CC="$ac_save_CC $ac_arg"
5922 if ac_fn_c_try_compile "$LINENO"
5923 then :
5924 ac_cv_prog_cc_c11=$ac_arg
5925 fi
5926 rm -f core conftest.err conftest.$ac_objext conftest.beam
5927 test "x$ac_cv_prog_cc_c11" != "xno" && break
5928 done
5929 rm -f conftest.$ac_ext
5930 CC=$ac_save_CC ;;
5931 esac
5932 fi
5933
5934 if test "x$ac_cv_prog_cc_c11" = xno
5935 then :
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5937 printf "%s\n" "unsupported" >&6; }
5938 else case e in #(
5939 e) if test "x$ac_cv_prog_cc_c11" = x
5940 then :
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5942 printf "%s\n" "none needed" >&6; }
5943 else case e in #(
5944 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5945 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5946 CC="$CC $ac_cv_prog_cc_c11" ;;
5947 esac
5948 fi
5949 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5950 ac_prog_cc_stdc=c11 ;;
5951 esac
5952 fi
5953 fi
5954 if test x$ac_prog_cc_stdc = xno
5955 then :
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5957 printf %s "checking for $CC option to enable C99 features... " >&6; }
5958 if test ${ac_cv_prog_cc_c99+y}
5959 then :
5960 printf %s "(cached) " >&6
5961 else case e in #(
5962 e) ac_cv_prog_cc_c99=no
5963 ac_save_CC=$CC
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5966 $ac_c_conftest_c99_program
5967 _ACEOF
5968 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5969 do
5970 CC="$ac_save_CC $ac_arg"
5971 if ac_fn_c_try_compile "$LINENO"
5972 then :
5973 ac_cv_prog_cc_c99=$ac_arg
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.beam
5976 test "x$ac_cv_prog_cc_c99" != "xno" && break
5977 done
5978 rm -f conftest.$ac_ext
5979 CC=$ac_save_CC ;;
5980 esac
5981 fi
5982
5983 if test "x$ac_cv_prog_cc_c99" = xno
5984 then :
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5986 printf "%s\n" "unsupported" >&6; }
5987 else case e in #(
5988 e) if test "x$ac_cv_prog_cc_c99" = x
5989 then :
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5991 printf "%s\n" "none needed" >&6; }
5992 else case e in #(
5993 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5994 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5995 CC="$CC $ac_cv_prog_cc_c99" ;;
5996 esac
5997 fi
5998 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5999 ac_prog_cc_stdc=c99 ;;
6000 esac
6001 fi
6002 fi
6003 if test x$ac_prog_cc_stdc = xno
6004 then :
6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6006 printf %s "checking for $CC option to enable C89 features... " >&6; }
6007 if test ${ac_cv_prog_cc_c89+y}
6008 then :
6009 printf %s "(cached) " >&6
6010 else case e in #(
6011 e) ac_cv_prog_cc_c89=no
6012 ac_save_CC=$CC
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015 $ac_c_conftest_c89_program
6016 _ACEOF
6017 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6018 do
6019 CC="$ac_save_CC $ac_arg"
6020 if ac_fn_c_try_compile "$LINENO"
6021 then :
6022 ac_cv_prog_cc_c89=$ac_arg
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext conftest.beam
6025 test "x$ac_cv_prog_cc_c89" != "xno" && break
6026 done
6027 rm -f conftest.$ac_ext
6028 CC=$ac_save_CC ;;
6029 esac
6030 fi
6031
6032 if test "x$ac_cv_prog_cc_c89" = xno
6033 then :
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6035 printf "%s\n" "unsupported" >&6; }
6036 else case e in #(
6037 e) if test "x$ac_cv_prog_cc_c89" = x
6038 then :
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6040 printf "%s\n" "none needed" >&6; }
6041 else case e in #(
6042 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6043 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6044 CC="$CC $ac_cv_prog_cc_c89" ;;
6045 esac
6046 fi
6047 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6048 ac_prog_cc_stdc=c89 ;;
6049 esac
6050 fi
6051 fi
6052
6053 ac_ext=cpp
6054 ac_cpp='$CXXCPP $CPPFLAGS'
6055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6058
6059
6060 ac_ext=c
6061 ac_cpp='$CPP $CPPFLAGS'
6062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6066 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6067 if test ${am_cv_prog_cc_c_o+y}
6068 then :
6069 printf %s "(cached) " >&6
6070 else case e in #(
6071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073
6074 int
6075 main (void)
6076 {
6077
6078 ;
6079 return 0;
6080 }
6081 _ACEOF
6082 # Make sure it works both with $CC and with simple cc.
6083 # Following AC_PROG_CC_C_O, we do the test twice because some
6084 # compilers refuse to overwrite an existing .o file with -o,
6085 # though they will create one.
6086 am_cv_prog_cc_c_o=yes
6087 for am_i in 1 2; do
6088 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6089 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } \
6093 && test -f conftest2.$ac_objext; then
6094 : OK
6095 else
6096 am_cv_prog_cc_c_o=no
6097 break
6098 fi
6099 done
6100 rm -f core conftest*
6101 unset am_i ;;
6102 esac
6103 fi
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6105 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6106 if test "$am_cv_prog_cc_c_o" != yes; then
6107 # Losing compiler, so override with the script.
6108 # FIXME: It is wrong to rewrite CC.
6109 # But if we don't then we get into trouble of one sort or another.
6110 # A longer-term fix would be to have automake use am__CC in this case,
6111 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6112 CC="$am_aux_dir/compile $CC"
6113 fi
6114 ac_ext=cpp
6115 ac_cpp='$CXXCPP $CPPFLAGS'
6116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6119
6120
6121 depcc="$CC" am_compiler_list=
6122
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6124 printf %s "checking dependency style of $depcc... " >&6; }
6125 if test ${am_cv_CC_dependencies_compiler_type+y}
6126 then :
6127 printf %s "(cached) " >&6
6128 else case e in #(
6129 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6130 # We make a subdir and do the tests there. Otherwise we can end up
6131 # making bogus files that we don't know about and never remove. For
6132 # instance it was reported that on HP-UX the gcc test will end up
6133 # making a dummy file named 'D' -- because '-MD' means "put the output
6134 # in D".
6135 rm -rf conftest.dir
6136 mkdir conftest.dir
6137 # Copy depcomp to subdir because otherwise we won't find it if we're
6138 # using a relative directory.
6139 cp "$am_depcomp" conftest.dir
6140 cd conftest.dir
6141 # We will build objects and dependencies in a subdirectory because
6142 # it helps to detect inapplicable dependency modes. For instance
6143 # both Tru64's cc and ICC support -MD to output dependencies as a
6144 # side effect of compilation, but ICC will put the dependencies in
6145 # the current directory while Tru64 will put them in the object
6146 # directory.
6147 mkdir sub
6148
6149 am_cv_CC_dependencies_compiler_type=none
6150 if test "$am_compiler_list" = ""; then
6151 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6152 fi
6153 am__universal=false
6154 case " $depcc " in #(
6155 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6156 esac
6157
6158 for depmode in $am_compiler_list; do
6159 # Setup a source with many dependencies, because some compilers
6160 # like to wrap large dependency lists on column 80 (with \), and
6161 # we should not choose a depcomp mode which is confused by this.
6162 #
6163 # We need to recreate these files for each test, as the compiler may
6164 # overwrite some of them when testing with obscure command lines.
6165 # This happens at least with the AIX C compiler.
6166 : > sub/conftest.c
6167 for i in 1 2 3 4 5 6; do
6168 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6169 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6170 # Solaris 10 /bin/sh.
6171 echo '/* dummy */' > sub/conftst$i.h
6172 done
6173 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6174
6175 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6176 # mode. It turns out that the SunPro C++ compiler does not properly
6177 # handle '-M -o', and we need to detect this. Also, some Intel
6178 # versions had trouble with output in subdirs.
6179 am__obj=sub/conftest.${OBJEXT-o}
6180 am__minus_obj="-o $am__obj"
6181 case $depmode in
6182 gcc)
6183 # This depmode causes a compiler race in universal mode.
6184 test "$am__universal" = false || continue
6185 ;;
6186 nosideeffect)
6187 # After this tag, mechanisms are not by side-effect, so they'll
6188 # only be used when explicitly requested.
6189 if test "x$enable_dependency_tracking" = xyes; then
6190 continue
6191 else
6192 break
6193 fi
6194 ;;
6195 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6196 # This compiler won't grok '-c -o', but also, the minuso test has
6197 # not run yet. These depmodes are late enough in the game, and
6198 # so weak that their functioning should not be impacted.
6199 am__obj=conftest.${OBJEXT-o}
6200 am__minus_obj=
6201 ;;
6202 none) break ;;
6203 esac
6204 if depmode=$depmode \
6205 source=sub/conftest.c object=$am__obj \
6206 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6207 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6208 >/dev/null 2>conftest.err &&
6209 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6210 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6211 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6212 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6213 # icc doesn't choke on unknown options, it will just issue warnings
6214 # or remarks (even with -Werror). So we grep stderr for any message
6215 # that says an option was ignored or not supported.
6216 # When given -MP, icc 7.0 and 7.1 complain thus:
6217 # icc: Command line warning: ignoring option '-M'; no argument required
6218 # The diagnosis changed in icc 8.0:
6219 # icc: Command line remark: option '-MP' not supported
6220 if (grep 'ignoring option' conftest.err ||
6221 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6222 am_cv_CC_dependencies_compiler_type=$depmode
6223 break
6224 fi
6225 fi
6226 done
6227
6228 cd ..
6229 rm -rf conftest.dir
6230 else
6231 am_cv_CC_dependencies_compiler_type=none
6232 fi
6233 ;;
6234 esac
6235 fi
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6237 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6238 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6239
6240 if
6241 test "x$enable_dependency_tracking" != xno \
6242 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6243 am__fastdepCC_TRUE=
6244 am__fastdepCC_FALSE='#'
6245 else
6246 am__fastdepCC_TRUE='#'
6247 am__fastdepCC_FALSE=
6248 fi
6249
6250
6251 ac_ext=c
6252 ac_cpp='$CPP $CPPFLAGS'
6253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6257 printf %s "checking how to run the C preprocessor... " >&6; }
6258 # On Suns, sometimes $CPP names a directory.
6259 if test -n "$CPP" && test -d "$CPP"; then
6260 CPP=
6261 fi
6262 if test -z "$CPP"; then
6263 if test ${ac_cv_prog_CPP+y}
6264 then :
6265 printf %s "(cached) " >&6
6266 else case e in #(
6267 e) # Double quotes because $CC needs to be expanded
6268 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6269 do
6270 ac_preproc_ok=false
6271 for ac_c_preproc_warn_flag in '' yes
6272 do
6273 # Use a header file that comes with gcc, so configuring glibc
6274 # with a fresh cross-compiler works.
6275 # On the NeXT, cc -E runs the code through the compiler's parser,
6276 # not just through cpp. "Syntax error" is here to catch this case.
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6279 #include <limits.h>
6280 Syntax error
6281 _ACEOF
6282 if ac_fn_c_try_cpp "$LINENO"
6283 then :
6284
6285 else case e in #(
6286 e) # Broken: fails on valid input.
6287 continue ;;
6288 esac
6289 fi
6290 rm -f conftest.err conftest.i conftest.$ac_ext
6291
6292 # OK, works on sane cases. Now check whether nonexistent headers
6293 # can be detected and how.
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6296 #include <ac_nonexistent.h>
6297 _ACEOF
6298 if ac_fn_c_try_cpp "$LINENO"
6299 then :
6300 # Broken: success on invalid input.
6301 continue
6302 else case e in #(
6303 e) # Passes both tests.
6304 ac_preproc_ok=:
6305 break ;;
6306 esac
6307 fi
6308 rm -f conftest.err conftest.i conftest.$ac_ext
6309
6310 done
6311 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6312 rm -f conftest.i conftest.err conftest.$ac_ext
6313 if $ac_preproc_ok
6314 then :
6315 break
6316 fi
6317
6318 done
6319 ac_cv_prog_CPP=$CPP
6320 ;;
6321 esac
6322 fi
6323 CPP=$ac_cv_prog_CPP
6324 else
6325 ac_cv_prog_CPP=$CPP
6326 fi
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6328 printf "%s\n" "$CPP" >&6; }
6329 ac_preproc_ok=false
6330 for ac_c_preproc_warn_flag in '' yes
6331 do
6332 # Use a header file that comes with gcc, so configuring glibc
6333 # with a fresh cross-compiler works.
6334 # On the NeXT, cc -E runs the code through the compiler's parser,
6335 # not just through cpp. "Syntax error" is here to catch this case.
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 #include <limits.h>
6339 Syntax error
6340 _ACEOF
6341 if ac_fn_c_try_cpp "$LINENO"
6342 then :
6343
6344 else case e in #(
6345 e) # Broken: fails on valid input.
6346 continue ;;
6347 esac
6348 fi
6349 rm -f conftest.err conftest.i conftest.$ac_ext
6350
6351 # OK, works on sane cases. Now check whether nonexistent headers
6352 # can be detected and how.
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355 #include <ac_nonexistent.h>
6356 _ACEOF
6357 if ac_fn_c_try_cpp "$LINENO"
6358 then :
6359 # Broken: success on invalid input.
6360 continue
6361 else case e in #(
6362 e) # Passes both tests.
6363 ac_preproc_ok=:
6364 break ;;
6365 esac
6366 fi
6367 rm -f conftest.err conftest.i conftest.$ac_ext
6368
6369 done
6370 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6371 rm -f conftest.i conftest.err conftest.$ac_ext
6372 if $ac_preproc_ok
6373 then :
6374
6375 else case e in #(
6376 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6377 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6378 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6379 See 'config.log' for more details" "$LINENO" 5; } ;;
6380 esac
6381 fi
6382
6383 ac_ext=cpp
6384 ac_cpp='$CXXCPP $CPPFLAGS'
6385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6388
6389
6390
6391
6392
6393
6394
6395 ac_ext=cpp
6396 ac_cpp='$CXXCPP $CPPFLAGS'
6397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6400 if test -z "$CXX"; then
6401 if test -n "$CCC"; then
6402 CXX=$CCC
6403 else
6404 if test -n "$ac_tool_prefix"; then
6405 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6406 do
6407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 printf %s "checking for $ac_word... " >&6; }
6411 if test ${ac_cv_prog_CXX+y}
6412 then :
6413 printf %s "(cached) " >&6
6414 else case e in #(
6415 e) if test -n "$CXX"; then
6416 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
6421 IFS=$as_save_IFS
6422 case $as_dir in #(((
6423 '') as_dir=./ ;;
6424 */) ;;
6425 *) as_dir=$as_dir/ ;;
6426 esac
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6429 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437 fi ;;
6438 esac
6439 fi
6440 CXX=$ac_cv_prog_CXX
6441 if test -n "$CXX"; then
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6443 printf "%s\n" "$CXX" >&6; }
6444 else
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 printf "%s\n" "no" >&6; }
6447 fi
6448
6449
6450 test -n "$CXX" && break
6451 done
6452 fi
6453 if test -z "$CXX"; then
6454 ac_ct_CXX=$CXX
6455 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6456 do
6457 # Extract the first word of "$ac_prog", so it can be a program name with args.
6458 set dummy $ac_prog; ac_word=$2
6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 printf %s "checking for $ac_word... " >&6; }
6461 if test ${ac_cv_prog_ac_ct_CXX+y}
6462 then :
6463 printf %s "(cached) " >&6
6464 else case e in #(
6465 e) if test -n "$ac_ct_CXX"; then
6466 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471 IFS=$as_save_IFS
6472 case $as_dir in #(((
6473 '') as_dir=./ ;;
6474 */) ;;
6475 *) as_dir=$as_dir/ ;;
6476 esac
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6479 ac_cv_prog_ac_ct_CXX="$ac_prog"
6480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6481 break 2
6482 fi
6483 done
6484 done
6485 IFS=$as_save_IFS
6486
6487 fi ;;
6488 esac
6489 fi
6490 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6491 if test -n "$ac_ct_CXX"; then
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6493 printf "%s\n" "$ac_ct_CXX" >&6; }
6494 else
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 printf "%s\n" "no" >&6; }
6497 fi
6498
6499
6500 test -n "$ac_ct_CXX" && break
6501 done
6502
6503 if test "x$ac_ct_CXX" = x; then
6504 CXX="g++"
6505 else
6506 case $cross_compiling:$ac_tool_warned in
6507 yes:)
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510 ac_tool_warned=yes ;;
6511 esac
6512 CXX=$ac_ct_CXX
6513 fi
6514 fi
6515
6516 fi
6517 fi
6518 # Provide some information about the compiler.
6519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6520 set X $ac_compile
6521 ac_compiler=$2
6522 for ac_option in --version -v -V -qversion; do
6523 { { ac_try="$ac_compiler $ac_option >&5"
6524 case "(($ac_try" in
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6527 esac
6528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6529 printf "%s\n" "$ac_try_echo"; } >&5
6530 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6531 ac_status=$?
6532 if test -s conftest.err; then
6533 sed '10a\
6534 ... rest of stderr output deleted ...
6535 10q' conftest.err >conftest.er1
6536 cat conftest.er1 >&5
6537 fi
6538 rm -f conftest.er1 conftest.err
6539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540 test $ac_status = 0; }
6541 done
6542
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6544 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6545 if test ${ac_cv_cxx_compiler_gnu+y}
6546 then :
6547 printf %s "(cached) " >&6
6548 else case e in #(
6549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551
6552 int
6553 main (void)
6554 {
6555 #ifndef __GNUC__
6556 choke me
6557 #endif
6558
6559 ;
6560 return 0;
6561 }
6562 _ACEOF
6563 if ac_fn_cxx_try_compile "$LINENO"
6564 then :
6565 ac_compiler_gnu=yes
6566 else case e in #(
6567 e) ac_compiler_gnu=no ;;
6568 esac
6569 fi
6570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6571 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6572 ;;
6573 esac
6574 fi
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6576 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6578
6579 if test $ac_compiler_gnu = yes; then
6580 GXX=yes
6581 else
6582 GXX=
6583 fi
6584 ac_test_CXXFLAGS=${CXXFLAGS+y}
6585 ac_save_CXXFLAGS=$CXXFLAGS
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6587 printf %s "checking whether $CXX accepts -g... " >&6; }
6588 if test ${ac_cv_prog_cxx_g+y}
6589 then :
6590 printf %s "(cached) " >&6
6591 else case e in #(
6592 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6593 ac_cxx_werror_flag=yes
6594 ac_cv_prog_cxx_g=no
6595 CXXFLAGS="-g"
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598
6599 int
6600 main (void)
6601 {
6602
6603 ;
6604 return 0;
6605 }
6606 _ACEOF
6607 if ac_fn_cxx_try_compile "$LINENO"
6608 then :
6609 ac_cv_prog_cxx_g=yes
6610 else case e in #(
6611 e) CXXFLAGS=""
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6614
6615 int
6616 main (void)
6617 {
6618
6619 ;
6620 return 0;
6621 }
6622 _ACEOF
6623 if ac_fn_cxx_try_compile "$LINENO"
6624 then :
6625
6626 else case e in #(
6627 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6628 CXXFLAGS="-g"
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631
6632 int
6633 main (void)
6634 {
6635
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_cxx_try_compile "$LINENO"
6641 then :
6642 ac_cv_prog_cxx_g=yes
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6645 esac
6646 fi
6647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6648 esac
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6651 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
6652 esac
6653 fi
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6655 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6656 if test $ac_test_CXXFLAGS; then
6657 CXXFLAGS=$ac_save_CXXFLAGS
6658 elif test $ac_cv_prog_cxx_g = yes; then
6659 if test "$GXX" = yes; then
6660 CXXFLAGS="-g -O2"
6661 else
6662 CXXFLAGS="-g"
6663 fi
6664 else
6665 if test "$GXX" = yes; then
6666 CXXFLAGS="-O2"
6667 else
6668 CXXFLAGS=
6669 fi
6670 fi
6671 ac_prog_cxx_stdcxx=no
6672 if test x$ac_prog_cxx_stdcxx = xno
6673 then :
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6675 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6676 if test ${ac_cv_prog_cxx_cxx11+y}
6677 then :
6678 printf %s "(cached) " >&6
6679 else case e in #(
6680 e) ac_cv_prog_cxx_cxx11=no
6681 ac_save_CXX=$CXX
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 $ac_cxx_conftest_cxx11_program
6685 _ACEOF
6686 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6687 do
6688 CXX="$ac_save_CXX $ac_arg"
6689 if ac_fn_cxx_try_compile "$LINENO"
6690 then :
6691 ac_cv_prog_cxx_cxx11=$ac_arg
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext conftest.beam
6694 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6695 done
6696 rm -f conftest.$ac_ext
6697 CXX=$ac_save_CXX ;;
6698 esac
6699 fi
6700
6701 if test "x$ac_cv_prog_cxx_cxx11" = xno
6702 then :
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6704 printf "%s\n" "unsupported" >&6; }
6705 else case e in #(
6706 e) if test "x$ac_cv_prog_cxx_cxx11" = x
6707 then :
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6709 printf "%s\n" "none needed" >&6; }
6710 else case e in #(
6711 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6712 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6713 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
6714 esac
6715 fi
6716 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6717 ac_prog_cxx_stdcxx=cxx11 ;;
6718 esac
6719 fi
6720 fi
6721 if test x$ac_prog_cxx_stdcxx = xno
6722 then :
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6724 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6725 if test ${ac_cv_prog_cxx_cxx98+y}
6726 then :
6727 printf %s "(cached) " >&6
6728 else case e in #(
6729 e) ac_cv_prog_cxx_cxx98=no
6730 ac_save_CXX=$CXX
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6733 $ac_cxx_conftest_cxx98_program
6734 _ACEOF
6735 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6736 do
6737 CXX="$ac_save_CXX $ac_arg"
6738 if ac_fn_cxx_try_compile "$LINENO"
6739 then :
6740 ac_cv_prog_cxx_cxx98=$ac_arg
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext conftest.beam
6743 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6744 done
6745 rm -f conftest.$ac_ext
6746 CXX=$ac_save_CXX ;;
6747 esac
6748 fi
6749
6750 if test "x$ac_cv_prog_cxx_cxx98" = xno
6751 then :
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6753 printf "%s\n" "unsupported" >&6; }
6754 else case e in #(
6755 e) if test "x$ac_cv_prog_cxx_cxx98" = x
6756 then :
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6758 printf "%s\n" "none needed" >&6; }
6759 else case e in #(
6760 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6761 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6762 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
6763 esac
6764 fi
6765 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6766 ac_prog_cxx_stdcxx=cxx98 ;;
6767 esac
6768 fi
6769 fi
6770
6771 ac_ext=cpp
6772 ac_cpp='$CXXCPP $CPPFLAGS'
6773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6776
6777 depcc="$CXX" am_compiler_list=
6778
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6780 printf %s "checking dependency style of $depcc... " >&6; }
6781 if test ${am_cv_CXX_dependencies_compiler_type+y}
6782 then :
6783 printf %s "(cached) " >&6
6784 else case e in #(
6785 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6786 # We make a subdir and do the tests there. Otherwise we can end up
6787 # making bogus files that we don't know about and never remove. For
6788 # instance it was reported that on HP-UX the gcc test will end up
6789 # making a dummy file named 'D' -- because '-MD' means "put the output
6790 # in D".
6791 rm -rf conftest.dir
6792 mkdir conftest.dir
6793 # Copy depcomp to subdir because otherwise we won't find it if we're
6794 # using a relative directory.
6795 cp "$am_depcomp" conftest.dir
6796 cd conftest.dir
6797 # We will build objects and dependencies in a subdirectory because
6798 # it helps to detect inapplicable dependency modes. For instance
6799 # both Tru64's cc and ICC support -MD to output dependencies as a
6800 # side effect of compilation, but ICC will put the dependencies in
6801 # the current directory while Tru64 will put them in the object
6802 # directory.
6803 mkdir sub
6804
6805 am_cv_CXX_dependencies_compiler_type=none
6806 if test "$am_compiler_list" = ""; then
6807 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6808 fi
6809 am__universal=false
6810 case " $depcc " in #(
6811 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6812 esac
6813
6814 for depmode in $am_compiler_list; do
6815 # Setup a source with many dependencies, because some compilers
6816 # like to wrap large dependency lists on column 80 (with \), and
6817 # we should not choose a depcomp mode which is confused by this.
6818 #
6819 # We need to recreate these files for each test, as the compiler may
6820 # overwrite some of them when testing with obscure command lines.
6821 # This happens at least with the AIX C compiler.
6822 : > sub/conftest.c
6823 for i in 1 2 3 4 5 6; do
6824 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6825 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6826 # Solaris 10 /bin/sh.
6827 echo '/* dummy */' > sub/conftst$i.h
6828 done
6829 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6830
6831 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6832 # mode. It turns out that the SunPro C++ compiler does not properly
6833 # handle '-M -o', and we need to detect this. Also, some Intel
6834 # versions had trouble with output in subdirs.
6835 am__obj=sub/conftest.${OBJEXT-o}
6836 am__minus_obj="-o $am__obj"
6837 case $depmode in
6838 gcc)
6839 # This depmode causes a compiler race in universal mode.
6840 test "$am__universal" = false || continue
6841 ;;
6842 nosideeffect)
6843 # After this tag, mechanisms are not by side-effect, so they'll
6844 # only be used when explicitly requested.
6845 if test "x$enable_dependency_tracking" = xyes; then
6846 continue
6847 else
6848 break
6849 fi
6850 ;;
6851 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6852 # This compiler won't grok '-c -o', but also, the minuso test has
6853 # not run yet. These depmodes are late enough in the game, and
6854 # so weak that their functioning should not be impacted.
6855 am__obj=conftest.${OBJEXT-o}
6856 am__minus_obj=
6857 ;;
6858 none) break ;;
6859 esac
6860 if depmode=$depmode \
6861 source=sub/conftest.c object=$am__obj \
6862 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6863 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6864 >/dev/null 2>conftest.err &&
6865 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6867 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6869 # icc doesn't choke on unknown options, it will just issue warnings
6870 # or remarks (even with -Werror). So we grep stderr for any message
6871 # that says an option was ignored or not supported.
6872 # When given -MP, icc 7.0 and 7.1 complain thus:
6873 # icc: Command line warning: ignoring option '-M'; no argument required
6874 # The diagnosis changed in icc 8.0:
6875 # icc: Command line remark: option '-MP' not supported
6876 if (grep 'ignoring option' conftest.err ||
6877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6878 am_cv_CXX_dependencies_compiler_type=$depmode
6879 break
6880 fi
6881 fi
6882 done
6883
6884 cd ..
6885 rm -rf conftest.dir
6886 else
6887 am_cv_CXX_dependencies_compiler_type=none
6888 fi
6889 ;;
6890 esac
6891 fi
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6893 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6894 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6895
6896 if
6897 test "x$enable_dependency_tracking" != xno \
6898 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6899 am__fastdepCXX_TRUE=
6900 am__fastdepCXX_FALSE='#'
6901 else
6902 am__fastdepCXX_TRUE='#'
6903 am__fastdepCXX_FALSE=
6904 fi
6905
6906
6907
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6909 printf %s "checking whether ln -s works... " >&6; }
6910 LN_S=$as_ln_s
6911 if test "$LN_S" = "ln -s"; then
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6913 printf "%s\n" "yes" >&6; }
6914 else
6915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6916 printf "%s\n" "no, using $LN_S" >&6; }
6917 fi
6918
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6920 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6921 set x ${MAKE-make}
6922 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6923 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6924 then :
6925 printf %s "(cached) " >&6
6926 else case e in #(
6927 e) cat >conftest.make <<\_ACEOF
6928 SHELL = /bin/sh
6929 all:
6930 @echo '@@@%%%=$(MAKE)=@@@%%%'
6931 _ACEOF
6932 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6933 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6934 *@@@%%%=?*=@@@%%%*)
6935 eval ac_cv_prog_make_${ac_make}_set=yes;;
6936 *)
6937 eval ac_cv_prog_make_${ac_make}_set=no;;
6938 esac
6939 rm -f conftest.make ;;
6940 esac
6941 fi
6942 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6944 printf "%s\n" "yes" >&6; }
6945 SET_MAKE=
6946 else
6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 printf "%s\n" "no" >&6; }
6949 SET_MAKE="MAKE=${MAKE-make}"
6950 fi
6951
6952 case `pwd` in
6953 *\ * | *\ *)
6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6955 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6956 esac
6957
6958
6959
6960 macro_version='2.5.4'
6961 macro_revision='2.5.4'
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976 ltmain=$ac_aux_dir/ltmain.sh
6977
6978
6979
6980 # Make sure we can run config.sub.
6981 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6982 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6983
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6985 printf %s "checking build system type... " >&6; }
6986 if test ${ac_cv_build+y}
6987 then :
6988 printf %s "(cached) " >&6
6989 else case e in #(
6990 e) ac_build_alias=$build_alias
6991 test "x$ac_build_alias" = x &&
6992 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6993 test "x$ac_build_alias" = x &&
6994 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6995 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6996 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6997 ;;
6998 esac
6999 fi
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7001 printf "%s\n" "$ac_cv_build" >&6; }
7002 case $ac_cv_build in
7003 *-*-*) ;;
7004 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7005 esac
7006 build=$ac_cv_build
7007 ac_save_IFS=$IFS; IFS='-'
7008 set x $ac_cv_build
7009 shift
7010 build_cpu=$1
7011 build_vendor=$2
7012 shift; shift
7013 # Remember, the first character of IFS is used to create $*,
7014 # except with old shells:
7015 build_os=$*
7016 IFS=$ac_save_IFS
7017 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7018
7019
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7021 printf %s "checking host system type... " >&6; }
7022 if test ${ac_cv_host+y}
7023 then :
7024 printf %s "(cached) " >&6
7025 else case e in #(
7026 e) if test "x$host_alias" = x; then
7027 ac_cv_host=$ac_cv_build
7028 else
7029 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7030 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7031 fi
7032 ;;
7033 esac
7034 fi
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7036 printf "%s\n" "$ac_cv_host" >&6; }
7037 case $ac_cv_host in
7038 *-*-*) ;;
7039 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7040 esac
7041 host=$ac_cv_host
7042 ac_save_IFS=$IFS; IFS='-'
7043 set x $ac_cv_host
7044 shift
7045 host_cpu=$1
7046 host_vendor=$2
7047 shift; shift
7048 # Remember, the first character of IFS is used to create $*,
7049 # except with old shells:
7050 host_os=$*
7051 IFS=$ac_save_IFS
7052 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7053
7054
7055 # Backslashify metacharacters that are still active within
7056 # double-quoted strings.
7057 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7058
7059 # Same as above, but do not quote variable references.
7060 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7061
7062 # Sed substitution to delay expansion of an escaped shell variable in a
7063 # double_quote_subst'ed string.
7064 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7065
7066 # Sed substitution to delay expansion of an escaped single quote.
7067 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7068
7069 # Sed substitution to avoid accidental globbing in evaled expressions
7070 no_glob_subst='s/\*/\\\*/g'
7071
7072 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7073 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7075
7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7077 printf %s "checking how to print strings... " >&6; }
7078 # Test print first, because it will be a builtin if present.
7079 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7080 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7081 ECHO='print -r --'
7082 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7083 ECHO='printf %s\n'
7084 else
7085 # Use this function as a fallback that always works.
7086 func_fallback_echo ()
7087 {
7088 eval 'cat <<_LTECHO_EOF
7089 $1
7090 _LTECHO_EOF'
7091 }
7092 ECHO='func_fallback_echo'
7093 fi
7094
7095 # func_echo_all arg...
7096 # Invoke $ECHO with all args, space-separated.
7097 func_echo_all ()
7098 {
7099 $ECHO ""
7100 }
7101
7102 case $ECHO in
7103 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7104 printf "%s\n" "printf" >&6; } ;;
7105 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7106 printf "%s\n" "print -r" >&6; } ;;
7107 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7108 printf "%s\n" "cat" >&6; } ;;
7109 esac
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7125 printf %s "checking for a sed that does not truncate output... " >&6; }
7126 if test ${ac_cv_path_SED+y}
7127 then :
7128 printf %s "(cached) " >&6
7129 else case e in #(
7130 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7131 for ac_i in 1 2 3 4 5 6 7; do
7132 ac_script="$ac_script$as_nl$ac_script"
7133 done
7134 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7135 { ac_script=; unset ac_script;}
7136 if test -z "$SED"; then
7137 ac_path_SED_found=false
7138 # Loop through the user's path and test for each of PROGNAME-LIST
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142 IFS=$as_save_IFS
7143 case $as_dir in #(((
7144 '') as_dir=./ ;;
7145 */) ;;
7146 *) as_dir=$as_dir/ ;;
7147 esac
7148 for ac_prog in sed gsed
7149 do
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7152 as_fn_executable_p "$ac_path_SED" || continue
7153 # Check for GNU ac_path_SED and select it if it is found.
7154 # Check for GNU $ac_path_SED
7155 case `"$ac_path_SED" --version 2>&1` in #(
7156 *GNU*)
7157 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7158 #(
7159 *)
7160 ac_count=0
7161 printf %s 0123456789 >"conftest.in"
7162 while :
7163 do
7164 cat "conftest.in" "conftest.in" >"conftest.tmp"
7165 mv "conftest.tmp" "conftest.in"
7166 cp "conftest.in" "conftest.nl"
7167 printf "%s\n" '' >> "conftest.nl"
7168 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7170 as_fn_arith $ac_count + 1 && ac_count=$as_val
7171 if test $ac_count -gt ${ac_path_SED_max-0}; then
7172 # Best one so far, save it but keep looking for a better one
7173 ac_cv_path_SED="$ac_path_SED"
7174 ac_path_SED_max=$ac_count
7175 fi
7176 # 10*(2^10) chars as input seems more than enough
7177 test $ac_count -gt 10 && break
7178 done
7179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7180 esac
7181
7182 $ac_path_SED_found && break 3
7183 done
7184 done
7185 done
7186 IFS=$as_save_IFS
7187 if test -z "$ac_cv_path_SED"; then
7188 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7189 fi
7190 else
7191 ac_cv_path_SED=$SED
7192 fi
7193 ;;
7194 esac
7195 fi
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7197 printf "%s\n" "$ac_cv_path_SED" >&6; }
7198 SED="$ac_cv_path_SED"
7199 rm -f conftest.sed
7200
7201 test -z "$SED" && SED=sed
7202 Xsed="$SED -e 1s/^X//"
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7215 printf %s "checking for grep that handles long lines and -e... " >&6; }
7216 if test ${ac_cv_path_GREP+y}
7217 then :
7218 printf %s "(cached) " >&6
7219 else case e in #(
7220 e) if test -z "$GREP"; then
7221 ac_path_GREP_found=false
7222 # Loop through the user's path and test for each of PROGNAME-LIST
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7225 do
7226 IFS=$as_save_IFS
7227 case $as_dir in #(((
7228 '') as_dir=./ ;;
7229 */) ;;
7230 *) as_dir=$as_dir/ ;;
7231 esac
7232 for ac_prog in grep ggrep
7233 do
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7236 as_fn_executable_p "$ac_path_GREP" || continue
7237 # Check for GNU ac_path_GREP and select it if it is found.
7238 # Check for GNU $ac_path_GREP
7239 case `"$ac_path_GREP" --version 2>&1` in #(
7240 *GNU*)
7241 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7242 #(
7243 *)
7244 ac_count=0
7245 printf %s 0123456789 >"conftest.in"
7246 while :
7247 do
7248 cat "conftest.in" "conftest.in" >"conftest.tmp"
7249 mv "conftest.tmp" "conftest.in"
7250 cp "conftest.in" "conftest.nl"
7251 printf "%s\n" 'GREP' >> "conftest.nl"
7252 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7254 as_fn_arith $ac_count + 1 && ac_count=$as_val
7255 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7256 # Best one so far, save it but keep looking for a better one
7257 ac_cv_path_GREP="$ac_path_GREP"
7258 ac_path_GREP_max=$ac_count
7259 fi
7260 # 10*(2^10) chars as input seems more than enough
7261 test $ac_count -gt 10 && break
7262 done
7263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7264 esac
7265
7266 $ac_path_GREP_found && break 3
7267 done
7268 done
7269 done
7270 IFS=$as_save_IFS
7271 if test -z "$ac_cv_path_GREP"; then
7272 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7273 fi
7274 else
7275 ac_cv_path_GREP=$GREP
7276 fi
7277 ;;
7278 esac
7279 fi
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7281 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7282 GREP="$ac_cv_path_GREP"
7283
7284
7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7286 printf %s "checking for egrep... " >&6; }
7287 if test ${ac_cv_path_EGREP+y}
7288 then :
7289 printf %s "(cached) " >&6
7290 else case e in #(
7291 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7292 then ac_cv_path_EGREP="$GREP -E"
7293 else
7294 if test -z "$EGREP"; then
7295 ac_path_EGREP_found=false
7296 # Loop through the user's path and test for each of PROGNAME-LIST
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7299 do
7300 IFS=$as_save_IFS
7301 case $as_dir in #(((
7302 '') as_dir=./ ;;
7303 */) ;;
7304 *) as_dir=$as_dir/ ;;
7305 esac
7306 for ac_prog in egrep
7307 do
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7310 as_fn_executable_p "$ac_path_EGREP" || continue
7311 # Check for GNU ac_path_EGREP and select it if it is found.
7312 # Check for GNU $ac_path_EGREP
7313 case `"$ac_path_EGREP" --version 2>&1` in #(
7314 *GNU*)
7315 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7316 #(
7317 *)
7318 ac_count=0
7319 printf %s 0123456789 >"conftest.in"
7320 while :
7321 do
7322 cat "conftest.in" "conftest.in" >"conftest.tmp"
7323 mv "conftest.tmp" "conftest.in"
7324 cp "conftest.in" "conftest.nl"
7325 printf "%s\n" 'EGREP' >> "conftest.nl"
7326 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7328 as_fn_arith $ac_count + 1 && ac_count=$as_val
7329 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7330 # Best one so far, save it but keep looking for a better one
7331 ac_cv_path_EGREP="$ac_path_EGREP"
7332 ac_path_EGREP_max=$ac_count
7333 fi
7334 # 10*(2^10) chars as input seems more than enough
7335 test $ac_count -gt 10 && break
7336 done
7337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7338 esac
7339
7340 $ac_path_EGREP_found && break 3
7341 done
7342 done
7343 done
7344 IFS=$as_save_IFS
7345 if test -z "$ac_cv_path_EGREP"; then
7346 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7347 fi
7348 else
7349 ac_cv_path_EGREP=$EGREP
7350 fi
7351
7352 fi ;;
7353 esac
7354 fi
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7356 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7357 EGREP="$ac_cv_path_EGREP"
7358
7359 EGREP_TRADITIONAL=$EGREP
7360 ac_cv_path_EGREP_TRADITIONAL=$EGREP
7361
7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7363 printf %s "checking for fgrep... " >&6; }
7364 if test ${ac_cv_path_FGREP+y}
7365 then :
7366 printf %s "(cached) " >&6
7367 else case e in #(
7368 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7369 then ac_cv_path_FGREP="$GREP -F"
7370 else
7371 if test -z "$FGREP"; then
7372 ac_path_FGREP_found=false
7373 # Loop through the user's path and test for each of PROGNAME-LIST
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7376 do
7377 IFS=$as_save_IFS
7378 case $as_dir in #(((
7379 '') as_dir=./ ;;
7380 */) ;;
7381 *) as_dir=$as_dir/ ;;
7382 esac
7383 for ac_prog in fgrep
7384 do
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7387 as_fn_executable_p "$ac_path_FGREP" || continue
7388 # Check for GNU ac_path_FGREP and select it if it is found.
7389 # Check for GNU $ac_path_FGREP
7390 case `"$ac_path_FGREP" --version 2>&1` in #(
7391 *GNU*)
7392 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7393 #(
7394 *)
7395 ac_count=0
7396 printf %s 0123456789 >"conftest.in"
7397 while :
7398 do
7399 cat "conftest.in" "conftest.in" >"conftest.tmp"
7400 mv "conftest.tmp" "conftest.in"
7401 cp "conftest.in" "conftest.nl"
7402 printf "%s\n" 'FGREP' >> "conftest.nl"
7403 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7405 as_fn_arith $ac_count + 1 && ac_count=$as_val
7406 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7407 # Best one so far, save it but keep looking for a better one
7408 ac_cv_path_FGREP="$ac_path_FGREP"
7409 ac_path_FGREP_max=$ac_count
7410 fi
7411 # 10*(2^10) chars as input seems more than enough
7412 test $ac_count -gt 10 && break
7413 done
7414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7415 esac
7416
7417 $ac_path_FGREP_found && break 3
7418 done
7419 done
7420 done
7421 IFS=$as_save_IFS
7422 if test -z "$ac_cv_path_FGREP"; then
7423 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7424 fi
7425 else
7426 ac_cv_path_FGREP=$FGREP
7427 fi
7428
7429 fi ;;
7430 esac
7431 fi
7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7433 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7434 FGREP="$ac_cv_path_FGREP"
7435
7436
7437 test -z "$GREP" && GREP=grep
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457 # Check whether --with-gnu-ld was given.
7458 if test ${with_gnu_ld+y}
7459 then :
7460 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7461 else case e in #(
7462 e) with_gnu_ld=no ;;
7463 esac
7464 fi
7465
7466 ac_prog=ld
7467 if test yes = "$GCC"; then
7468 # Check if gcc -print-prog-name=ld gives a path.
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7470 printf %s "checking for ld used by $CC... " >&6; }
7471 case $host in
7472 *-*-mingw* | *-*-windows*)
7473 # gcc leaves a trailing carriage return, which upsets mingw
7474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7475 *)
7476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7477 esac
7478 case $ac_prog in
7479 # Accept absolute paths.
7480 [\\/]* | ?:[\\/]*)
7481 re_direlt='/[^/][^/]*/\.\./'
7482 # Canonicalize the pathname of ld
7483 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7484 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7485 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7486 done
7487 test -z "$LD" && LD=$ac_prog
7488 ;;
7489 "")
7490 # If it fails, then pretend we aren't using GCC.
7491 ac_prog=ld
7492 ;;
7493 *)
7494 # If it is relative, then search for the first ld in PATH.
7495 with_gnu_ld=unknown
7496 ;;
7497 esac
7498 elif test yes = "$with_gnu_ld"; then
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7500 printf %s "checking for GNU ld... " >&6; }
7501 else
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7503 printf %s "checking for non-GNU ld... " >&6; }
7504 fi
7505 if test ${lt_cv_path_LD+y}
7506 then :
7507 printf %s "(cached) " >&6
7508 else case e in #(
7509 e) if test -z "$LD"; then
7510 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7511 for ac_dir in $PATH; do
7512 IFS=$lt_save_ifs
7513 test -z "$ac_dir" && ac_dir=.
7514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7515 lt_cv_path_LD=$ac_dir/$ac_prog
7516 # Check to see if the program is GNU ld. I'd rather use --version,
7517 # but apparently some variants of GNU ld only accept -v.
7518 # Break only if it was the GNU/non-GNU ld that we prefer.
7519 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7520 *GNU* | *'with BFD'*)
7521 test no != "$with_gnu_ld" && break
7522 ;;
7523 *)
7524 test yes != "$with_gnu_ld" && break
7525 ;;
7526 esac
7527 fi
7528 done
7529 IFS=$lt_save_ifs
7530 else
7531 lt_cv_path_LD=$LD # Let the user override the test with a path.
7532 fi ;;
7533 esac
7534 fi
7535
7536 LD=$lt_cv_path_LD
7537 if test -n "$LD"; then
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7539 printf "%s\n" "$LD" >&6; }
7540 else
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 printf "%s\n" "no" >&6; }
7543 fi
7544 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7546 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7547 if test ${lt_cv_prog_gnu_ld+y}
7548 then :
7549 printf %s "(cached) " >&6
7550 else case e in #(
7551 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7552 case `$LD -v 2>&1 </dev/null` in
7553 *GNU* | *'with BFD'*)
7554 lt_cv_prog_gnu_ld=yes
7555 ;;
7556 *)
7557 lt_cv_prog_gnu_ld=no
7558 ;;
7559 esac ;;
7560 esac
7561 fi
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7563 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7564 with_gnu_ld=$lt_cv_prog_gnu_ld
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7575 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7576 if test ${lt_cv_path_NM+y}
7577 then :
7578 printf %s "(cached) " >&6
7579 else case e in #(
7580 e) if test -n "$NM"; then
7581 # Let the user override the test.
7582 lt_cv_path_NM=$NM
7583 else
7584 lt_nm_to_check=${ac_tool_prefix}nm
7585 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7586 lt_nm_to_check="$lt_nm_to_check nm"
7587 fi
7588 for lt_tmp_nm in $lt_nm_to_check; do
7589 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7590 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7591 IFS=$lt_save_ifs
7592 test -z "$ac_dir" && ac_dir=.
7593 tmp_nm=$ac_dir/$lt_tmp_nm
7594 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7595 # Check to see if the nm accepts a BSD-compat flag.
7596 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7597 # nm: unknown option "B" ignored
7598 # Tru64's nm complains that /dev/null is an invalid object file
7599 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7600 case $build_os in
7601 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7602 *) lt_bad_file=/dev/null ;;
7603 esac
7604 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7605 *$lt_bad_file* | *'Invalid file or object type'*)
7606 lt_cv_path_NM="$tmp_nm -B"
7607 break 2
7608 ;;
7609 *)
7610 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7611 */dev/null*)
7612 lt_cv_path_NM="$tmp_nm -p"
7613 break 2
7614 ;;
7615 *)
7616 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7617 continue # so that we can try to find one that supports BSD flags
7618 ;;
7619 esac
7620 ;;
7621 esac
7622 fi
7623 done
7624 IFS=$lt_save_ifs
7625 done
7626 : ${lt_cv_path_NM=no}
7627 fi ;;
7628 esac
7629 fi
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7631 printf "%s\n" "$lt_cv_path_NM" >&6; }
7632 if test no != "$lt_cv_path_NM"; then
7633 NM=$lt_cv_path_NM
7634 else
7635 # Didn't find any BSD compatible name lister, look for dumpbin.
7636 if test -n "$DUMPBIN"; then :
7637 # Let the user override the test.
7638 else
7639 if test -n "$ac_tool_prefix"; then
7640 for ac_prog in dumpbin "link -dump"
7641 do
7642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 printf %s "checking for $ac_word... " >&6; }
7646 if test ${ac_cv_prog_DUMPBIN+y}
7647 then :
7648 printf %s "(cached) " >&6
7649 else case e in #(
7650 e) if test -n "$DUMPBIN"; then
7651 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656 IFS=$as_save_IFS
7657 case $as_dir in #(((
7658 '') as_dir=./ ;;
7659 */) ;;
7660 *) as_dir=$as_dir/ ;;
7661 esac
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7664 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7666 break 2
7667 fi
7668 done
7669 done
7670 IFS=$as_save_IFS
7671
7672 fi ;;
7673 esac
7674 fi
7675 DUMPBIN=$ac_cv_prog_DUMPBIN
7676 if test -n "$DUMPBIN"; then
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7678 printf "%s\n" "$DUMPBIN" >&6; }
7679 else
7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 printf "%s\n" "no" >&6; }
7682 fi
7683
7684
7685 test -n "$DUMPBIN" && break
7686 done
7687 fi
7688 if test -z "$DUMPBIN"; then
7689 ac_ct_DUMPBIN=$DUMPBIN
7690 for ac_prog in dumpbin "link -dump"
7691 do
7692 # Extract the first word of "$ac_prog", so it can be a program name with args.
7693 set dummy $ac_prog; ac_word=$2
7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 printf %s "checking for $ac_word... " >&6; }
7696 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7697 then :
7698 printf %s "(cached) " >&6
7699 else case e in #(
7700 e) if test -n "$ac_ct_DUMPBIN"; then
7701 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7702 else
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7705 do
7706 IFS=$as_save_IFS
7707 case $as_dir in #(((
7708 '') as_dir=./ ;;
7709 */) ;;
7710 *) as_dir=$as_dir/ ;;
7711 esac
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718 done
7719 done
7720 IFS=$as_save_IFS
7721
7722 fi ;;
7723 esac
7724 fi
7725 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7726 if test -n "$ac_ct_DUMPBIN"; then
7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7728 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7729 else
7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 printf "%s\n" "no" >&6; }
7732 fi
7733
7734
7735 test -n "$ac_ct_DUMPBIN" && break
7736 done
7737
7738 if test "x$ac_ct_DUMPBIN" = x; then
7739 DUMPBIN=":"
7740 else
7741 case $cross_compiling:$ac_tool_warned in
7742 yes:)
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745 ac_tool_warned=yes ;;
7746 esac
7747 DUMPBIN=$ac_ct_DUMPBIN
7748 fi
7749 fi
7750
7751 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7752 *COFF*)
7753 DUMPBIN="$DUMPBIN -symbols -headers"
7754 ;;
7755 *)
7756 DUMPBIN=:
7757 ;;
7758 esac
7759 fi
7760
7761 if test : != "$DUMPBIN"; then
7762 NM=$DUMPBIN
7763 fi
7764 fi
7765 test -z "$NM" && NM=nm
7766
7767
7768
7769
7770
7771
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7773 printf %s "checking the name lister ($NM) interface... " >&6; }
7774 if test ${lt_cv_nm_interface+y}
7775 then :
7776 printf %s "(cached) " >&6
7777 else case e in #(
7778 e) lt_cv_nm_interface="BSD nm"
7779 echo "int some_variable = 0;" > conftest.$ac_ext
7780 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7781 (eval "$ac_compile" 2>conftest.err)
7782 cat conftest.err >&5
7783 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7784 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7785 cat conftest.err >&5
7786 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7787 cat conftest.out >&5
7788 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7789 lt_cv_nm_interface="MS dumpbin"
7790 fi
7791 rm -f conftest* ;;
7792 esac
7793 fi
7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7795 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7796
7797 # find the maximum length of command line arguments
7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7799 printf %s "checking the maximum length of command line arguments... " >&6; }
7800 if test ${lt_cv_sys_max_cmd_len+y}
7801 then :
7802 printf %s "(cached) " >&6
7803 else case e in #(
7804 e) i=0
7805 teststring=ABCD
7806
7807 case $build_os in
7808 msdosdjgpp*)
7809 # On DJGPP, this test can blow up pretty badly due to problems in libc
7810 # (any single argument exceeding 2000 bytes causes a buffer overrun
7811 # during glob expansion). Even if it were fixed, the result of this
7812 # check would be larger than it should be.
7813 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7814 ;;
7815
7816 gnu* | ironclad*)
7817 # Under GNU Hurd and Ironclad, this test is not required because there
7818 # is no limit to the length of command line arguments.
7819 # Libtool will interpret -1 as no limit whatsoever
7820 lt_cv_sys_max_cmd_len=-1;
7821 ;;
7822
7823 cygwin* | mingw* | windows* | cegcc*)
7824 # On Win9x/ME, this test blows up -- it succeeds, but takes
7825 # about 5 minutes as the teststring grows exponentially.
7826 # Worse, since 9x/ME are not pre-emptively multitasking,
7827 # you end up with a "frozen" computer, even though with patience
7828 # the test eventually succeeds (with a max line length of 256k).
7829 # Instead, let's just punt: use the minimum linelength reported by
7830 # all of the supported platforms: 8192 (on NT/2K/XP).
7831 lt_cv_sys_max_cmd_len=8192;
7832 ;;
7833
7834 mint*)
7835 # On MiNT this can take a long time and run out of memory.
7836 lt_cv_sys_max_cmd_len=8192;
7837 ;;
7838
7839 amigaos*)
7840 # On AmigaOS with pdksh, this test takes hours, literally.
7841 # So we just punt and use a minimum line length of 8192.
7842 lt_cv_sys_max_cmd_len=8192;
7843 ;;
7844
7845 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7846 # This has been around since 386BSD, at least. Likely further.
7847 if test -x /sbin/sysctl; then
7848 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7849 elif test -x /usr/sbin/sysctl; then
7850 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7851 else
7852 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7853 fi
7854 # And add a safety zone
7855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7857 ;;
7858
7859 interix*)
7860 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7861 lt_cv_sys_max_cmd_len=196608
7862 ;;
7863
7864 os2*)
7865 # The test takes a long time on OS/2.
7866 lt_cv_sys_max_cmd_len=8192
7867 ;;
7868
7869 osf*)
7870 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7871 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7872 # nice to cause kernel panics so lets avoid the loop below.
7873 # First set a reasonable default.
7874 lt_cv_sys_max_cmd_len=16384
7875 #
7876 if test -x /sbin/sysconfig; then
7877 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7878 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7879 esac
7880 fi
7881 ;;
7882 sco3.2v5*)
7883 lt_cv_sys_max_cmd_len=102400
7884 ;;
7885 sysv5* | sco5v6* | sysv4.2uw2*)
7886 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7887 if test -n "$kargmax"; then
7888 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7889 else
7890 lt_cv_sys_max_cmd_len=32768
7891 fi
7892 ;;
7893 *)
7894 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7895 if test -n "$lt_cv_sys_max_cmd_len" && \
7896 test undefined != "$lt_cv_sys_max_cmd_len"; then
7897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7898 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7899 else
7900 # Make teststring a little bigger before we do anything with it.
7901 # a 1K string should be a reasonable start.
7902 for i in 1 2 3 4 5 6 7 8; do
7903 teststring=$teststring$teststring
7904 done
7905 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7906 # If test is not a shell built-in, we'll probably end up computing a
7907 # maximum length that is only half of the actual maximum length, but
7908 # we can't tell.
7909 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7910 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7911 test 17 != "$i" # 1/2 MB should be enough
7912 do
7913 i=`expr $i + 1`
7914 teststring=$teststring$teststring
7915 done
7916 # Only check the string length outside the loop.
7917 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7918 teststring=
7919 # Add a significant safety factor because C++ compilers can tack on
7920 # massive amounts of additional arguments before passing them to the
7921 # linker. It appears as though 1/2 is a usable value.
7922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7923 fi
7924 ;;
7925 esac
7926 ;;
7927 esac
7928 fi
7929
7930 if test -n "$lt_cv_sys_max_cmd_len"; then
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7932 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7933 else
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7935 printf "%s\n" "none" >&6; }
7936 fi
7937 max_cmd_len=$lt_cv_sys_max_cmd_len
7938
7939
7940
7941
7942
7943
7944 : ${CP="cp -f"}
7945 : ${MV="mv -f"}
7946 : ${RM="rm -f"}
7947
7948 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7949 lt_unset=unset
7950 else
7951 lt_unset=false
7952 fi
7953
7954
7955
7956
7957
7958 # test EBCDIC or ASCII
7959 case `echo X|tr X '\101'` in
7960 A) # ASCII based system
7961 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7962 lt_SP2NL='tr \040 \012'
7963 lt_NL2SP='tr \015\012 \040\040'
7964 ;;
7965 *) # EBCDIC based system
7966 lt_SP2NL='tr \100 \n'
7967 lt_NL2SP='tr \r\n \100\100'
7968 ;;
7969 esac
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7980 printf %s "checking how to convert $build file names to $host format... " >&6; }
7981 if test ${lt_cv_to_host_file_cmd+y}
7982 then :
7983 printf %s "(cached) " >&6
7984 else case e in #(
7985 e) case $host in
7986 *-*-mingw* )
7987 case $build in
7988 *-*-mingw* | *-*-windows* ) # actually msys
7989 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7990 ;;
7991 *-*-cygwin* )
7992 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7993 ;;
7994 * ) # otherwise, assume *nix
7995 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7996 ;;
7997 esac
7998 ;;
7999 *-*-cygwin* )
8000 case $build in
8001 *-*-mingw* | *-*-windows* ) # actually msys
8002 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8003 ;;
8004 *-*-cygwin* )
8005 lt_cv_to_host_file_cmd=func_convert_file_noop
8006 ;;
8007 * ) # otherwise, assume *nix
8008 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8009 ;;
8010 esac
8011 ;;
8012 * ) # unhandled hosts (and "normal" native builds)
8013 lt_cv_to_host_file_cmd=func_convert_file_noop
8014 ;;
8015 esac
8016 ;;
8017 esac
8018 fi
8019
8020 to_host_file_cmd=$lt_cv_to_host_file_cmd
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8022 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8023
8024
8025
8026
8027
8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8029 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8030 if test ${lt_cv_to_tool_file_cmd+y}
8031 then :
8032 printf %s "(cached) " >&6
8033 else case e in #(
8034 e) #assume ordinary cross tools, or native build.
8035 lt_cv_to_tool_file_cmd=func_convert_file_noop
8036 case $host in
8037 *-*-mingw* | *-*-windows* )
8038 case $build in
8039 *-*-mingw* | *-*-windows* ) # actually msys
8040 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8041 ;;
8042 esac
8043 ;;
8044 esac
8045 ;;
8046 esac
8047 fi
8048
8049 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8051 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8052
8053
8054
8055
8056
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8058 printf %s "checking for $LD option to reload object files... " >&6; }
8059 if test ${lt_cv_ld_reload_flag+y}
8060 then :
8061 printf %s "(cached) " >&6
8062 else case e in #(
8063 e) lt_cv_ld_reload_flag='-r' ;;
8064 esac
8065 fi
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8067 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8068 reload_flag=$lt_cv_ld_reload_flag
8069 case $reload_flag in
8070 "" | " "*) ;;
8071 *) reload_flag=" $reload_flag" ;;
8072 esac
8073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8074 case $host_os in
8075 cygwin* | mingw* | windows* | pw32* | cegcc*)
8076 if test yes != "$GCC"; then
8077 reload_cmds=false
8078 fi
8079 ;;
8080 darwin*)
8081 if test yes = "$GCC"; then
8082 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8083 else
8084 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8085 fi
8086 ;;
8087 esac
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097 # Extract the first word of "file", so it can be a program name with args.
8098 set dummy file; ac_word=$2
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 printf %s "checking for $ac_word... " >&6; }
8101 if test ${ac_cv_prog_FILECMD+y}
8102 then :
8103 printf %s "(cached) " >&6
8104 else case e in #(
8105 e) if test -n "$FILECMD"; then
8106 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
8107 else
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 for as_dir in $PATH
8110 do
8111 IFS=$as_save_IFS
8112 case $as_dir in #(((
8113 '') as_dir=./ ;;
8114 */) ;;
8115 *) as_dir=$as_dir/ ;;
8116 esac
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8119 ac_cv_prog_FILECMD="file"
8120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8121 break 2
8122 fi
8123 done
8124 done
8125 IFS=$as_save_IFS
8126
8127 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
8128 fi ;;
8129 esac
8130 fi
8131 FILECMD=$ac_cv_prog_FILECMD
8132 if test -n "$FILECMD"; then
8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
8134 printf "%s\n" "$FILECMD" >&6; }
8135 else
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 printf "%s\n" "no" >&6; }
8138 fi
8139
8140
8141
8142
8143
8144
8145
8146
8147 if test -n "$ac_tool_prefix"; then
8148 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8149 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 printf %s "checking for $ac_word... " >&6; }
8152 if test ${ac_cv_prog_OBJDUMP+y}
8153 then :
8154 printf %s "(cached) " >&6
8155 else case e in #(
8156 e) if test -n "$OBJDUMP"; then
8157 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8158 else
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162 IFS=$as_save_IFS
8163 case $as_dir in #(((
8164 '') as_dir=./ ;;
8165 */) ;;
8166 *) as_dir=$as_dir/ ;;
8167 esac
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8170 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8172 break 2
8173 fi
8174 done
8175 done
8176 IFS=$as_save_IFS
8177
8178 fi ;;
8179 esac
8180 fi
8181 OBJDUMP=$ac_cv_prog_OBJDUMP
8182 if test -n "$OBJDUMP"; then
8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8184 printf "%s\n" "$OBJDUMP" >&6; }
8185 else
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 printf "%s\n" "no" >&6; }
8188 fi
8189
8190
8191 fi
8192 if test -z "$ac_cv_prog_OBJDUMP"; then
8193 ac_ct_OBJDUMP=$OBJDUMP
8194 # Extract the first word of "objdump", so it can be a program name with args.
8195 set dummy objdump; ac_word=$2
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 printf %s "checking for $ac_word... " >&6; }
8198 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8199 then :
8200 printf %s "(cached) " >&6
8201 else case e in #(
8202 e) if test -n "$ac_ct_OBJDUMP"; then
8203 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208 IFS=$as_save_IFS
8209 case $as_dir in #(((
8210 '') as_dir=./ ;;
8211 */) ;;
8212 *) as_dir=$as_dir/ ;;
8213 esac
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8216 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220 done
8221 done
8222 IFS=$as_save_IFS
8223
8224 fi ;;
8225 esac
8226 fi
8227 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8228 if test -n "$ac_ct_OBJDUMP"; then
8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8230 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8231 else
8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 printf "%s\n" "no" >&6; }
8234 fi
8235
8236 if test "x$ac_ct_OBJDUMP" = x; then
8237 OBJDUMP="false"
8238 else
8239 case $cross_compiling:$ac_tool_warned in
8240 yes:)
8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8242 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8243 ac_tool_warned=yes ;;
8244 esac
8245 OBJDUMP=$ac_ct_OBJDUMP
8246 fi
8247 else
8248 OBJDUMP="$ac_cv_prog_OBJDUMP"
8249 fi
8250
8251 test -z "$OBJDUMP" && OBJDUMP=objdump
8252
8253
8254
8255
8256
8257
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8259 printf %s "checking how to recognize dependent libraries... " >&6; }
8260 if test ${lt_cv_deplibs_check_method+y}
8261 then :
8262 printf %s "(cached) " >&6
8263 else case e in #(
8264 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
8265 lt_cv_file_magic_test_file=
8266 lt_cv_deplibs_check_method='unknown'
8267 # Need to set the preceding variable on all platforms that support
8268 # interlibrary dependencies.
8269 # 'none' -- dependencies not supported.
8270 # 'unknown' -- same as none, but documents that we really don't know.
8271 # 'pass_all' -- all dependencies passed with no checks.
8272 # 'file_magic [[regex]]' -- check by looking for files in library path
8273 # that responds to the $file_magic_cmd with a given extended regex.
8274 # If you have 'file' or equivalent on your system and you're not sure
8275 # whether 'pass_all' will *always* work, you probably want this one.
8276
8277 case $host_os in
8278 aix[4-9]*)
8279 lt_cv_deplibs_check_method=pass_all
8280 ;;
8281
8282 beos*)
8283 lt_cv_deplibs_check_method=pass_all
8284 ;;
8285
8286 bsdi[45]*)
8287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8288 lt_cv_file_magic_cmd='$FILECMD -L'
8289 lt_cv_file_magic_test_file=/shlib/libc.so
8290 ;;
8291
8292 cygwin*)
8293 # func_win32_libid is a shell function defined in ltmain.sh
8294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8295 lt_cv_file_magic_cmd='func_win32_libid'
8296 ;;
8297
8298 mingw* | windows* | pw32*)
8299 # Base MSYS/MinGW do not provide the 'file' command needed by
8300 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8301 # unless we find 'file', for example because we are cross-compiling.
8302 if ( file / ) >/dev/null 2>&1; then
8303 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8304 lt_cv_file_magic_cmd='func_win32_libid'
8305 else
8306 # Keep this pattern in sync with the one in func_win32_libid.
8307 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
8308 lt_cv_file_magic_cmd='$OBJDUMP -f'
8309 fi
8310 ;;
8311
8312 cegcc*)
8313 # use the weaker test based on 'objdump'. See mingw*.
8314 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8315 lt_cv_file_magic_cmd='$OBJDUMP -f'
8316 ;;
8317
8318 darwin* | rhapsody*)
8319 lt_cv_deplibs_check_method=pass_all
8320 ;;
8321
8322 freebsd* | dragonfly* | midnightbsd*)
8323 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8324 case $host_cpu in
8325 i*86 )
8326 # Not sure whether the presence of OpenBSD here was a mistake.
8327 # Let's accept both of them until this is cleared up.
8328 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8329 lt_cv_file_magic_cmd=$FILECMD
8330 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8331 ;;
8332 esac
8333 else
8334 lt_cv_deplibs_check_method=pass_all
8335 fi
8336 ;;
8337
8338 haiku*)
8339 lt_cv_deplibs_check_method=pass_all
8340 ;;
8341
8342 hpux10.20* | hpux11*)
8343 lt_cv_file_magic_cmd=$FILECMD
8344 case $host_cpu in
8345 ia64*)
8346 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8347 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8348 ;;
8349 hppa*64*)
8350 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]'
8351 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8352 ;;
8353 *)
8354 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8355 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8356 ;;
8357 esac
8358 ;;
8359
8360 interix[3-9]*)
8361 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8363 ;;
8364
8365 irix5* | irix6* | nonstopux*)
8366 case $LD in
8367 *-32|*"-32 ") libmagic=32-bit;;
8368 *-n32|*"-n32 ") libmagic=N32;;
8369 *-64|*"-64 ") libmagic=64-bit;;
8370 *) libmagic=never-match;;
8371 esac
8372 lt_cv_deplibs_check_method=pass_all
8373 ;;
8374
8375 # This must be glibc/ELF.
8376 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8377 lt_cv_deplibs_check_method=pass_all
8378 ;;
8379
8380 *-mlibc)
8381 lt_cv_deplibs_check_method=pass_all
8382 ;;
8383
8384 netbsd* | netbsdelf*-gnu)
8385 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8387 else
8388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8389 fi
8390 ;;
8391
8392 newos6*)
8393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8394 lt_cv_file_magic_cmd=$FILECMD
8395 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8396 ;;
8397
8398 *nto* | *qnx*)
8399 lt_cv_deplibs_check_method=pass_all
8400 ;;
8401
8402 openbsd*)
8403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8405 else
8406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8407 fi
8408 ;;
8409
8410 osf3* | osf4* | osf5*)
8411 lt_cv_deplibs_check_method=pass_all
8412 ;;
8413
8414 rdos*)
8415 lt_cv_deplibs_check_method=pass_all
8416 ;;
8417
8418 serenity*)
8419 lt_cv_deplibs_check_method=pass_all
8420 ;;
8421
8422 solaris*)
8423 lt_cv_deplibs_check_method=pass_all
8424 ;;
8425
8426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8427 lt_cv_deplibs_check_method=pass_all
8428 ;;
8429
8430 sysv4 | sysv4.3*)
8431 case $host_vendor in
8432 motorola)
8433 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]'
8434 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8435 ;;
8436 ncr)
8437 lt_cv_deplibs_check_method=pass_all
8438 ;;
8439 sequent)
8440 lt_cv_file_magic_cmd='/bin/file'
8441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8442 ;;
8443 sni)
8444 lt_cv_file_magic_cmd='/bin/file'
8445 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8446 lt_cv_file_magic_test_file=/lib/libc.so
8447 ;;
8448 siemens)
8449 lt_cv_deplibs_check_method=pass_all
8450 ;;
8451 pc)
8452 lt_cv_deplibs_check_method=pass_all
8453 ;;
8454 esac
8455 ;;
8456
8457 tpf*)
8458 lt_cv_deplibs_check_method=pass_all
8459 ;;
8460 os2*)
8461 lt_cv_deplibs_check_method=pass_all
8462 ;;
8463 esac
8464 ;;
8465 esac
8466 fi
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8468 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8469
8470 file_magic_glob=
8471 want_nocaseglob=no
8472 if test "$build" = "$host"; then
8473 case $host_os in
8474 mingw* | windows* | pw32*)
8475 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8476 want_nocaseglob=yes
8477 else
8478 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8479 fi
8480 ;;
8481 esac
8482 fi
8483
8484 file_magic_cmd=$lt_cv_file_magic_cmd
8485 deplibs_check_method=$lt_cv_deplibs_check_method
8486 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509 if test -n "$ac_tool_prefix"; then
8510 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8511 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 printf %s "checking for $ac_word... " >&6; }
8514 if test ${ac_cv_prog_DLLTOOL+y}
8515 then :
8516 printf %s "(cached) " >&6
8517 else case e in #(
8518 e) if test -n "$DLLTOOL"; then
8519 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8520 else
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8523 do
8524 IFS=$as_save_IFS
8525 case $as_dir in #(((
8526 '') as_dir=./ ;;
8527 */) ;;
8528 *) as_dir=$as_dir/ ;;
8529 esac
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8534 break 2
8535 fi
8536 done
8537 done
8538 IFS=$as_save_IFS
8539
8540 fi ;;
8541 esac
8542 fi
8543 DLLTOOL=$ac_cv_prog_DLLTOOL
8544 if test -n "$DLLTOOL"; then
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8546 printf "%s\n" "$DLLTOOL" >&6; }
8547 else
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549 printf "%s\n" "no" >&6; }
8550 fi
8551
8552
8553 fi
8554 if test -z "$ac_cv_prog_DLLTOOL"; then
8555 ac_ct_DLLTOOL=$DLLTOOL
8556 # Extract the first word of "dlltool", so it can be a program name with args.
8557 set dummy dlltool; ac_word=$2
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 printf %s "checking for $ac_word... " >&6; }
8560 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8561 then :
8562 printf %s "(cached) " >&6
8563 else case e in #(
8564 e) if test -n "$ac_ct_DLLTOOL"; then
8565 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570 IFS=$as_save_IFS
8571 case $as_dir in #(((
8572 '') as_dir=./ ;;
8573 */) ;;
8574 *) as_dir=$as_dir/ ;;
8575 esac
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8578 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8580 break 2
8581 fi
8582 done
8583 done
8584 IFS=$as_save_IFS
8585
8586 fi ;;
8587 esac
8588 fi
8589 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8590 if test -n "$ac_ct_DLLTOOL"; then
8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8592 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8593 else
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 printf "%s\n" "no" >&6; }
8596 fi
8597
8598 if test "x$ac_ct_DLLTOOL" = x; then
8599 DLLTOOL="false"
8600 else
8601 case $cross_compiling:$ac_tool_warned in
8602 yes:)
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8604 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8605 ac_tool_warned=yes ;;
8606 esac
8607 DLLTOOL=$ac_ct_DLLTOOL
8608 fi
8609 else
8610 DLLTOOL="$ac_cv_prog_DLLTOOL"
8611 fi
8612
8613 test -z "$DLLTOOL" && DLLTOOL=dlltool
8614
8615
8616
8617
8618
8619
8620
8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8622 printf %s "checking how to associate runtime and link libraries... " >&6; }
8623 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8624 then :
8625 printf %s "(cached) " >&6
8626 else case e in #(
8627 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8628
8629 case $host_os in
8630 cygwin* | mingw* | windows* | pw32* | cegcc*)
8631 # two different shell functions defined in ltmain.sh;
8632 # decide which one to use based on capabilities of $DLLTOOL
8633 case `$DLLTOOL --help 2>&1` in
8634 *--identify-strict*)
8635 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8636 ;;
8637 *)
8638 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8639 ;;
8640 esac
8641 ;;
8642 *)
8643 # fallback: assume linklib IS sharedlib
8644 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8645 ;;
8646 esac
8647 ;;
8648 esac
8649 fi
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8651 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8652 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8653 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8654
8655
8656
8657
8658
8659
8660
8661
8662 if test -n "$ac_tool_prefix"; then
8663 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8664 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666 printf %s "checking for $ac_word... " >&6; }
8667 if test ${ac_cv_prog_RANLIB+y}
8668 then :
8669 printf %s "(cached) " >&6
8670 else case e in #(
8671 e) if test -n "$RANLIB"; then
8672 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8673 else
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 for as_dir in $PATH
8676 do
8677 IFS=$as_save_IFS
8678 case $as_dir in #(((
8679 '') as_dir=./ ;;
8680 */) ;;
8681 *) as_dir=$as_dir/ ;;
8682 esac
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8685 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8687 break 2
8688 fi
8689 done
8690 done
8691 IFS=$as_save_IFS
8692
8693 fi ;;
8694 esac
8695 fi
8696 RANLIB=$ac_cv_prog_RANLIB
8697 if test -n "$RANLIB"; then
8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8699 printf "%s\n" "$RANLIB" >&6; }
8700 else
8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 printf "%s\n" "no" >&6; }
8703 fi
8704
8705
8706 fi
8707 if test -z "$ac_cv_prog_RANLIB"; then
8708 ac_ct_RANLIB=$RANLIB
8709 # Extract the first word of "ranlib", so it can be a program name with args.
8710 set dummy ranlib; ac_word=$2
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 printf %s "checking for $ac_word... " >&6; }
8713 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8714 then :
8715 printf %s "(cached) " >&6
8716 else case e in #(
8717 e) if test -n "$ac_ct_RANLIB"; then
8718 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8719 else
8720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 for as_dir in $PATH
8722 do
8723 IFS=$as_save_IFS
8724 case $as_dir in #(((
8725 '') as_dir=./ ;;
8726 */) ;;
8727 *) as_dir=$as_dir/ ;;
8728 esac
8729 for ac_exec_ext in '' $ac_executable_extensions; do
8730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8731 ac_cv_prog_ac_ct_RANLIB="ranlib"
8732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8733 break 2
8734 fi
8735 done
8736 done
8737 IFS=$as_save_IFS
8738
8739 fi ;;
8740 esac
8741 fi
8742 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8743 if test -n "$ac_ct_RANLIB"; then
8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8745 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8746 else
8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 printf "%s\n" "no" >&6; }
8749 fi
8750
8751 if test "x$ac_ct_RANLIB" = x; then
8752 RANLIB=":"
8753 else
8754 case $cross_compiling:$ac_tool_warned in
8755 yes:)
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8757 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8758 ac_tool_warned=yes ;;
8759 esac
8760 RANLIB=$ac_ct_RANLIB
8761 fi
8762 else
8763 RANLIB="$ac_cv_prog_RANLIB"
8764 fi
8765
8766 if test -n "$ac_tool_prefix"; then
8767 for ac_prog in ar
8768 do
8769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 printf %s "checking for $ac_word... " >&6; }
8773 if test ${ac_cv_prog_AR+y}
8774 then :
8775 printf %s "(cached) " >&6
8776 else case e in #(
8777 e) if test -n "$AR"; then
8778 ac_cv_prog_AR="$AR" # Let the user override the test.
8779 else
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8782 do
8783 IFS=$as_save_IFS
8784 case $as_dir in #(((
8785 '') as_dir=./ ;;
8786 */) ;;
8787 *) as_dir=$as_dir/ ;;
8788 esac
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8791 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8793 break 2
8794 fi
8795 done
8796 done
8797 IFS=$as_save_IFS
8798
8799 fi ;;
8800 esac
8801 fi
8802 AR=$ac_cv_prog_AR
8803 if test -n "$AR"; then
8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8805 printf "%s\n" "$AR" >&6; }
8806 else
8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 printf "%s\n" "no" >&6; }
8809 fi
8810
8811
8812 test -n "$AR" && break
8813 done
8814 fi
8815 if test -z "$AR"; then
8816 ac_ct_AR=$AR
8817 for ac_prog in ar
8818 do
8819 # Extract the first word of "$ac_prog", so it can be a program name with args.
8820 set dummy $ac_prog; ac_word=$2
8821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 printf %s "checking for $ac_word... " >&6; }
8823 if test ${ac_cv_prog_ac_ct_AR+y}
8824 then :
8825 printf %s "(cached) " >&6
8826 else case e in #(
8827 e) if test -n "$ac_ct_AR"; then
8828 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8829 else
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 for as_dir in $PATH
8832 do
8833 IFS=$as_save_IFS
8834 case $as_dir in #(((
8835 '') as_dir=./ ;;
8836 */) ;;
8837 *) as_dir=$as_dir/ ;;
8838 esac
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8841 ac_cv_prog_ac_ct_AR="$ac_prog"
8842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8843 break 2
8844 fi
8845 done
8846 done
8847 IFS=$as_save_IFS
8848
8849 fi ;;
8850 esac
8851 fi
8852 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8853 if test -n "$ac_ct_AR"; then
8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8855 printf "%s\n" "$ac_ct_AR" >&6; }
8856 else
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858 printf "%s\n" "no" >&6; }
8859 fi
8860
8861
8862 test -n "$ac_ct_AR" && break
8863 done
8864
8865 if test "x$ac_ct_AR" = x; then
8866 AR="false"
8867 else
8868 case $cross_compiling:$ac_tool_warned in
8869 yes:)
8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8871 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8872 ac_tool_warned=yes ;;
8873 esac
8874 AR=$ac_ct_AR
8875 fi
8876 fi
8877
8878 : ${AR=ar}
8879
8880
8881
8882
8883
8884
8885 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8886 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8887 # higher priority because that's what people were doing historically (setting
8888 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8889 # variable obsoleted/removed.
8890
8891 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8892 lt_ar_flags=$AR_FLAGS
8893
8894
8895
8896
8897
8898
8899 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8900 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8901
8902
8903
8904
8905
8906
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8908 printf %s "checking for archiver @FILE support... " >&6; }
8909 if test ${lt_cv_ar_at_file+y}
8910 then :
8911 printf %s "(cached) " >&6
8912 else case e in #(
8913 e) lt_cv_ar_at_file=no
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916
8917 int
8918 main (void)
8919 {
8920
8921 ;
8922 return 0;
8923 }
8924 _ACEOF
8925 if ac_fn_cxx_try_compile "$LINENO"
8926 then :
8927 echo conftest.$ac_objext > conftest.lst
8928 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8930 (eval $lt_ar_try) 2>&5
8931 ac_status=$?
8932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8933 test $ac_status = 0; }
8934 if test 0 -eq "$ac_status"; then
8935 # Ensure the archiver fails upon bogus file names.
8936 rm -f conftest.$ac_objext libconftest.a
8937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8938 (eval $lt_ar_try) 2>&5
8939 ac_status=$?
8940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8941 test $ac_status = 0; }
8942 if test 0 -ne "$ac_status"; then
8943 lt_cv_ar_at_file=@
8944 fi
8945 fi
8946 rm -f conftest.* libconftest.a
8947
8948 fi
8949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8950 ;;
8951 esac
8952 fi
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8954 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8955
8956 if test no = "$lt_cv_ar_at_file"; then
8957 archiver_list_spec=
8958 else
8959 archiver_list_spec=$lt_cv_ar_at_file
8960 fi
8961
8962
8963
8964
8965
8966
8967
8968 if test -n "$ac_tool_prefix"; then
8969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8970 set dummy ${ac_tool_prefix}strip; ac_word=$2
8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972 printf %s "checking for $ac_word... " >&6; }
8973 if test ${ac_cv_prog_STRIP+y}
8974 then :
8975 printf %s "(cached) " >&6
8976 else case e in #(
8977 e) if test -n "$STRIP"; then
8978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8979 else
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 for as_dir in $PATH
8982 do
8983 IFS=$as_save_IFS
8984 case $as_dir in #(((
8985 '') as_dir=./ ;;
8986 */) ;;
8987 *) as_dir=$as_dir/ ;;
8988 esac
8989 for ac_exec_ext in '' $ac_executable_extensions; do
8990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8991 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8993 break 2
8994 fi
8995 done
8996 done
8997 IFS=$as_save_IFS
8998
8999 fi ;;
9000 esac
9001 fi
9002 STRIP=$ac_cv_prog_STRIP
9003 if test -n "$STRIP"; then
9004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9005 printf "%s\n" "$STRIP" >&6; }
9006 else
9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008 printf "%s\n" "no" >&6; }
9009 fi
9010
9011
9012 fi
9013 if test -z "$ac_cv_prog_STRIP"; then
9014 ac_ct_STRIP=$STRIP
9015 # Extract the first word of "strip", so it can be a program name with args.
9016 set dummy strip; ac_word=$2
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018 printf %s "checking for $ac_word... " >&6; }
9019 if test ${ac_cv_prog_ac_ct_STRIP+y}
9020 then :
9021 printf %s "(cached) " >&6
9022 else case e in #(
9023 e) if test -n "$ac_ct_STRIP"; then
9024 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9025 else
9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027 for as_dir in $PATH
9028 do
9029 IFS=$as_save_IFS
9030 case $as_dir in #(((
9031 '') as_dir=./ ;;
9032 */) ;;
9033 *) as_dir=$as_dir/ ;;
9034 esac
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9037 ac_cv_prog_ac_ct_STRIP="strip"
9038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9039 break 2
9040 fi
9041 done
9042 done
9043 IFS=$as_save_IFS
9044
9045 fi ;;
9046 esac
9047 fi
9048 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9049 if test -n "$ac_ct_STRIP"; then
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9051 printf "%s\n" "$ac_ct_STRIP" >&6; }
9052 else
9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054 printf "%s\n" "no" >&6; }
9055 fi
9056
9057 if test "x$ac_ct_STRIP" = x; then
9058 STRIP=":"
9059 else
9060 case $cross_compiling:$ac_tool_warned in
9061 yes:)
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9063 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9064 ac_tool_warned=yes ;;
9065 esac
9066 STRIP=$ac_ct_STRIP
9067 fi
9068 else
9069 STRIP="$ac_cv_prog_STRIP"
9070 fi
9071
9072 test -z "$STRIP" && STRIP=:
9073
9074
9075
9076
9077
9078
9079
9080 test -z "$RANLIB" && RANLIB=:
9081
9082
9083
9084
9085
9086
9087 # Determine commands to create old-style static archives.
9088 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9089 old_postinstall_cmds='chmod 644 $oldlib'
9090 old_postuninstall_cmds=
9091
9092 if test -n "$RANLIB"; then
9093 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9095 fi
9096
9097 case $host_os in
9098 darwin*)
9099 lock_old_archive_extraction=yes ;;
9100 *)
9101 lock_old_archive_extraction=no ;;
9102 esac
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142 # If no C compiler was specified, use CC.
9143 LTCC=${LTCC-"$CC"}
9144
9145 # If no C compiler flags were specified, use CFLAGS.
9146 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9147
9148 # Allow CC to be a program name with arguments.
9149 compiler=$CC
9150
9151
9152 # Check for command to grab the raw symbol name followed by C symbol from nm.
9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9154 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9155 if test ${lt_cv_sys_global_symbol_pipe+y}
9156 then :
9157 printf %s "(cached) " >&6
9158 else case e in #(
9159 e)
9160 # These are sane defaults that work on at least a few old systems.
9161 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9162
9163 # Character class describing NM global symbol codes.
9164 symcode='[BCDEGRST]'
9165
9166 # Regexp to match symbols that can be accessed directly from C.
9167 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9168
9169 # Define system-specific variables.
9170 case $host_os in
9171 aix*)
9172 symcode='[BCDT]'
9173 ;;
9174 cygwin* | mingw* | windows* | pw32* | cegcc*)
9175 symcode='[ABCDGISTW]'
9176 ;;
9177 hpux*)
9178 if test ia64 = "$host_cpu"; then
9179 symcode='[ABCDEGRST]'
9180 fi
9181 ;;
9182 irix* | nonstopux*)
9183 symcode='[BCDEGRST]'
9184 ;;
9185 osf*)
9186 symcode='[BCDEGQRST]'
9187 ;;
9188 solaris*)
9189 symcode='[BCDRT]'
9190 ;;
9191 sco3.2v5*)
9192 symcode='[DT]'
9193 ;;
9194 sysv4.2uw2*)
9195 symcode='[DT]'
9196 ;;
9197 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9198 symcode='[ABDT]'
9199 ;;
9200 sysv4)
9201 symcode='[DFNSTU]'
9202 ;;
9203 esac
9204
9205 # If we're using GNU nm, then use its standard symbol codes.
9206 case `$NM -V 2>&1` in
9207 *GNU* | *'with BFD'*)
9208 symcode='[ABCDGIRSTW]' ;;
9209 esac
9210
9211 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9212 # Gets list of data symbols to import.
9213 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9214 # Adjust the below global symbol transforms to fixup imported variables.
9215 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9216 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9217 lt_c_name_lib_hook="\
9218 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9219 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9220 else
9221 # Disable hooks by default.
9222 lt_cv_sys_global_symbol_to_import=
9223 lt_cdecl_hook=
9224 lt_c_name_hook=
9225 lt_c_name_lib_hook=
9226 fi
9227
9228 # Transform an extracted symbol line into a proper C declaration.
9229 # Some systems (esp. on ia64) link data and code symbols differently,
9230 # so use this general approach.
9231 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9232 $lt_cdecl_hook\
9233 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9234 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9235
9236 # Transform an extracted symbol line into symbol name and symbol address
9237 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9238 $lt_c_name_hook\
9239 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9240 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9241
9242 # Transform an extracted symbol line into symbol name with lib prefix and
9243 # symbol address.
9244 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9245 $lt_c_name_lib_hook\
9246 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9247 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9248 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9249
9250 # Handle CRLF in mingw tool chain
9251 opt_cr=
9252 case $build_os in
9253 mingw* | windows*)
9254 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9255 ;;
9256 esac
9257
9258 # Try without a prefix underscore, then with it.
9259 for ac_symprfx in "" "_"; do
9260
9261 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9262 symxfrm="\\1 $ac_symprfx\\2 \\2"
9263
9264 # Write the raw and C identifiers.
9265 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9266 # Fake it for dumpbin and say T for any non-static function,
9267 # D for any global variable and I for any imported variable.
9268 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9269 # which start with @ or ?.
9270 lt_cv_sys_global_symbol_pipe="$AWK '"\
9271 " {last_section=section; section=\$ 3};"\
9272 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9273 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9274 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9275 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9276 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9277 " \$ 0!~/External *\|/{next};"\
9278 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9279 " {if(hide[section]) next};"\
9280 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9281 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9282 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9283 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9284 " ' prfx=^$ac_symprfx"
9285 else
9286 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9287 fi
9288 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
9289
9290 # Check to see that the pipe works correctly.
9291 pipe_works=no
9292
9293 rm -f conftest*
9294 cat > conftest.$ac_ext <<_LT_EOF
9295 #ifdef __cplusplus
9296 extern "C" {
9297 #endif
9298 char nm_test_var;
9299 void nm_test_func(void);
9300 void nm_test_func(void){}
9301 #ifdef __cplusplus
9302 }
9303 #endif
9304 int main(void){nm_test_var='a';nm_test_func();return(0);}
9305 _LT_EOF
9306
9307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9308 (eval $ac_compile) 2>&5
9309 ac_status=$?
9310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9311 test $ac_status = 0; }; then
9312 # Now try to grab the symbols.
9313 nlist=conftest.nm
9314 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9315 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9316 # Try sorting and uniquifying the output.
9317 if sort "$nlist" | uniq > "$nlist"T; then
9318 mv -f "$nlist"T "$nlist"
9319 else
9320 rm -f "$nlist"T
9321 fi
9322
9323 # Make sure that we snagged all the symbols we need.
9324 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9325 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9326 cat <<_LT_EOF > conftest.$ac_ext
9327 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9328 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9329 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9330 relocations are performed -- see ld's documentation on pseudo-relocs. */
9331 # define LT_DLSYM_CONST
9332 #elif defined __osf__
9333 /* This system does not cope well with relocations in const data. */
9334 # define LT_DLSYM_CONST
9335 #else
9336 # define LT_DLSYM_CONST const
9337 #endif
9338
9339 #ifdef __cplusplus
9340 extern "C" {
9341 #endif
9342
9343 _LT_EOF
9344 # Now generate the symbol file.
9345 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9346
9347 cat <<_LT_EOF >> conftest.$ac_ext
9348
9349 /* The mapping between symbol names and symbols. */
9350 LT_DLSYM_CONST struct {
9351 const char *name;
9352 void *address;
9353 }
9354 lt__PROGRAM__LTX_preloaded_symbols[] =
9355 {
9356 { "@PROGRAM@", (void *) 0 },
9357 _LT_EOF
9358 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9359 cat <<\_LT_EOF >> conftest.$ac_ext
9360 {0, (void *) 0}
9361 };
9362
9363 /* This works around a problem in FreeBSD linker */
9364 #ifdef FREEBSD_WORKAROUND
9365 static const void *lt_preloaded_setup() {
9366 return lt__PROGRAM__LTX_preloaded_symbols;
9367 }
9368 #endif
9369
9370 #ifdef __cplusplus
9371 }
9372 #endif
9373 _LT_EOF
9374 # Now try linking the two files.
9375 mv conftest.$ac_objext conftstm.$ac_objext
9376 lt_globsym_save_LIBS=$LIBS
9377 lt_globsym_save_CFLAGS=$CFLAGS
9378 LIBS=conftstm.$ac_objext
9379 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9381 (eval $ac_link) 2>&5
9382 ac_status=$?
9383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9384 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9385 pipe_works=yes
9386 fi
9387 LIBS=$lt_globsym_save_LIBS
9388 CFLAGS=$lt_globsym_save_CFLAGS
9389 else
9390 echo "cannot find nm_test_func in $nlist" >&5
9391 fi
9392 else
9393 echo "cannot find nm_test_var in $nlist" >&5
9394 fi
9395 else
9396 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9397 fi
9398 else
9399 echo "$progname: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9401 fi
9402 rm -rf conftest* conftst*
9403
9404 # Do not use the global_symbol_pipe unless it works.
9405 if test yes = "$pipe_works"; then
9406 break
9407 else
9408 lt_cv_sys_global_symbol_pipe=
9409 fi
9410 done
9411 ;;
9412 esac
9413 fi
9414
9415 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9416 lt_cv_sys_global_symbol_to_cdecl=
9417 fi
9418 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9420 printf "%s\n" "failed" >&6; }
9421 else
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9423 printf "%s\n" "ok" >&6; }
9424 fi
9425
9426 # Response file support.
9427 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9428 nm_file_list_spec='@'
9429 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9430 nm_file_list_spec='@'
9431 fi
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9470 printf %s "checking for sysroot... " >&6; }
9471
9472 # Check whether --with-sysroot was given.
9473 if test ${with_sysroot+y}
9474 then :
9475 withval=$with_sysroot;
9476 else case e in #(
9477 e) with_sysroot=no ;;
9478 esac
9479 fi
9480
9481
9482 lt_sysroot=
9483 case $with_sysroot in #(
9484 yes)
9485 if test yes = "$GCC"; then
9486 # Trim trailing / since we'll always append absolute paths and we want
9487 # to avoid //, if only for less confusing output for the user.
9488 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
9489 fi
9490 ;; #(
9491 /*)
9492 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9493 ;; #(
9494 no|'')
9495 ;; #(
9496 *)
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9498 printf "%s\n" "$with_sysroot" >&6; }
9499 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9500 ;;
9501 esac
9502
9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9504 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9505
9506
9507
9508
9509
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9511 printf %s "checking for a working dd... " >&6; }
9512 if test ${ac_cv_path_lt_DD+y}
9513 then :
9514 printf %s "(cached) " >&6
9515 else case e in #(
9516 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9517 cat conftest.i conftest.i >conftest2.i
9518 : ${lt_DD:=$DD}
9519 if test -z "$lt_DD"; then
9520 ac_path_lt_DD_found=false
9521 # Loop through the user's path and test for each of PROGNAME-LIST
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in $PATH
9524 do
9525 IFS=$as_save_IFS
9526 case $as_dir in #(((
9527 '') as_dir=./ ;;
9528 */) ;;
9529 *) as_dir=$as_dir/ ;;
9530 esac
9531 for ac_prog in dd
9532 do
9533 for ac_exec_ext in '' $ac_executable_extensions; do
9534 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9535 as_fn_executable_p "$ac_path_lt_DD" || continue
9536 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9537 cmp -s conftest.i conftest.out \
9538 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9539 fi
9540 $ac_path_lt_DD_found && break 3
9541 done
9542 done
9543 done
9544 IFS=$as_save_IFS
9545 if test -z "$ac_cv_path_lt_DD"; then
9546 :
9547 fi
9548 else
9549 ac_cv_path_lt_DD=$lt_DD
9550 fi
9551
9552 rm -f conftest.i conftest2.i conftest.out ;;
9553 esac
9554 fi
9555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9556 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9557
9558
9559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9560 printf %s "checking how to truncate binary pipes... " >&6; }
9561 if test ${lt_cv_truncate_bin+y}
9562 then :
9563 printf %s "(cached) " >&6
9564 else case e in #(
9565 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9566 cat conftest.i conftest.i >conftest2.i
9567 lt_cv_truncate_bin=
9568 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9569 cmp -s conftest.i conftest.out \
9570 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9571 fi
9572 rm -f conftest.i conftest2.i conftest.out
9573 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9574 esac
9575 fi
9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9577 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9578
9579
9580
9581
9582
9583
9584
9585 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9586 func_cc_basename ()
9587 {
9588 for cc_temp in $*""; do
9589 case $cc_temp in
9590 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9591 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9592 \-*) ;;
9593 *) break;;
9594 esac
9595 done
9596 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9597 }
9598
9599 # Check whether --enable-libtool-lock was given.
9600 if test ${enable_libtool_lock+y}
9601 then :
9602 enableval=$enable_libtool_lock;
9603 fi
9604
9605 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9606
9607 # Some flags need to be propagated to the compiler or linker for good
9608 # libtool support.
9609 case $host in
9610 ia64-*-hpux*)
9611 # Find out what ABI is being produced by ac_compile, and set mode
9612 # options accordingly.
9613 echo 'int i;' > conftest.$ac_ext
9614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9615 (eval $ac_compile) 2>&5
9616 ac_status=$?
9617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9618 test $ac_status = 0; }; then
9619 case `$FILECMD conftest.$ac_objext` in
9620 *ELF-32*)
9621 HPUX_IA64_MODE=32
9622 ;;
9623 *ELF-64*)
9624 HPUX_IA64_MODE=64
9625 ;;
9626 esac
9627 fi
9628 rm -rf conftest*
9629 ;;
9630 *-*-irix6*)
9631 # Find out what ABI is being produced by ac_compile, and set linker
9632 # options accordingly.
9633 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9635 (eval $ac_compile) 2>&5
9636 ac_status=$?
9637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9638 test $ac_status = 0; }; then
9639 if test yes = "$lt_cv_prog_gnu_ld"; then
9640 case `$FILECMD conftest.$ac_objext` in
9641 *32-bit*)
9642 LD="${LD-ld} -melf32bsmip"
9643 ;;
9644 *N32*)
9645 LD="${LD-ld} -melf32bmipn32"
9646 ;;
9647 *64-bit*)
9648 LD="${LD-ld} -melf64bmip"
9649 ;;
9650 esac
9651 else
9652 case `$FILECMD conftest.$ac_objext` in
9653 *32-bit*)
9654 LD="${LD-ld} -32"
9655 ;;
9656 *N32*)
9657 LD="${LD-ld} -n32"
9658 ;;
9659 *64-bit*)
9660 LD="${LD-ld} -64"
9661 ;;
9662 esac
9663 fi
9664 fi
9665 rm -rf conftest*
9666 ;;
9667
9668 mips64*-*linux*)
9669 # Find out what ABI is being produced by ac_compile, and set linker
9670 # options accordingly.
9671 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9673 (eval $ac_compile) 2>&5
9674 ac_status=$?
9675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9676 test $ac_status = 0; }; then
9677 emul=elf
9678 case `$FILECMD conftest.$ac_objext` in
9679 *32-bit*)
9680 emul="${emul}32"
9681 ;;
9682 *64-bit*)
9683 emul="${emul}64"
9684 ;;
9685 esac
9686 case `$FILECMD conftest.$ac_objext` in
9687 *MSB*)
9688 emul="${emul}btsmip"
9689 ;;
9690 *LSB*)
9691 emul="${emul}ltsmip"
9692 ;;
9693 esac
9694 case `$FILECMD conftest.$ac_objext` in
9695 *N32*)
9696 emul="${emul}n32"
9697 ;;
9698 esac
9699 LD="${LD-ld} -m $emul"
9700 fi
9701 rm -rf conftest*
9702 ;;
9703
9704 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9705 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9706 # Find out what ABI is being produced by ac_compile, and set linker
9707 # options accordingly. Note that the listed cases only cover the
9708 # situations where additional linker options are needed (such as when
9709 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9710 # vice versa); the common cases where no linker options are needed do
9711 # not appear in the list.
9712 echo 'int i;' > conftest.$ac_ext
9713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9714 (eval $ac_compile) 2>&5
9715 ac_status=$?
9716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9717 test $ac_status = 0; }; then
9718 case `$FILECMD conftest.o` in
9719 *32-bit*)
9720 case $host in
9721 x86_64-*kfreebsd*-gnu)
9722 LD="${LD-ld} -m elf_i386_fbsd"
9723 ;;
9724 x86_64-*linux*|x86_64-gnu*)
9725 case `$FILECMD conftest.o` in
9726 *x86-64*)
9727 LD="${LD-ld} -m elf32_x86_64"
9728 ;;
9729 *)
9730 LD="${LD-ld} -m elf_i386"
9731 ;;
9732 esac
9733 ;;
9734 powerpc64le-*linux*)
9735 LD="${LD-ld} -m elf32lppclinux"
9736 ;;
9737 powerpc64-*linux*)
9738 LD="${LD-ld} -m elf32ppclinux"
9739 ;;
9740 s390x-*linux*)
9741 LD="${LD-ld} -m elf_s390"
9742 ;;
9743 sparc64-*linux*)
9744 LD="${LD-ld} -m elf32_sparc"
9745 ;;
9746 esac
9747 ;;
9748 *64-bit*)
9749 case $host in
9750 x86_64-*kfreebsd*-gnu)
9751 LD="${LD-ld} -m elf_x86_64_fbsd"
9752 ;;
9753 x86_64-*linux*|x86_64-gnu*)
9754 LD="${LD-ld} -m elf_x86_64"
9755 ;;
9756 powerpcle-*linux*)
9757 LD="${LD-ld} -m elf64lppc"
9758 ;;
9759 powerpc-*linux*)
9760 LD="${LD-ld} -m elf64ppc"
9761 ;;
9762 s390*-*linux*|s390*-*tpf*)
9763 LD="${LD-ld} -m elf64_s390"
9764 ;;
9765 sparc*-*linux*)
9766 LD="${LD-ld} -m elf64_sparc"
9767 ;;
9768 esac
9769 ;;
9770 esac
9771 fi
9772 rm -rf conftest*
9773 ;;
9774
9775 *-*-sco3.2v5*)
9776 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9777 SAVE_CFLAGS=$CFLAGS
9778 CFLAGS="$CFLAGS -belf"
9779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9780 printf %s "checking whether the C compiler needs -belf... " >&6; }
9781 if test ${lt_cv_cc_needs_belf+y}
9782 then :
9783 printf %s "(cached) " >&6
9784 else case e in #(
9785 e) ac_ext=c
9786 ac_cpp='$CPP $CPPFLAGS'
9787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9790
9791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792 /* end confdefs.h. */
9793
9794 int
9795 main (void)
9796 {
9797
9798 ;
9799 return 0;
9800 }
9801 _ACEOF
9802 if ac_fn_c_try_link "$LINENO"
9803 then :
9804 lt_cv_cc_needs_belf=yes
9805 else case e in #(
9806 e) lt_cv_cc_needs_belf=no ;;
9807 esac
9808 fi
9809 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9810 conftest$ac_exeext conftest.$ac_ext
9811 ac_ext=c
9812 ac_cpp='$CPP $CPPFLAGS'
9813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9816 ;;
9817 esac
9818 fi
9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9820 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9821 if test yes != "$lt_cv_cc_needs_belf"; then
9822 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9823 CFLAGS=$SAVE_CFLAGS
9824 fi
9825 ;;
9826 *-*solaris*)
9827 # Find out what ABI is being produced by ac_compile, and set linker
9828 # options accordingly.
9829 echo 'int i;' > conftest.$ac_ext
9830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9831 (eval $ac_compile) 2>&5
9832 ac_status=$?
9833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9834 test $ac_status = 0; }; then
9835 case `$FILECMD conftest.o` in
9836 *64-bit*)
9837 case $lt_cv_prog_gnu_ld in
9838 yes*)
9839 case $host in
9840 i?86-*-solaris*|x86_64-*-solaris*)
9841 LD="${LD-ld} -m elf_x86_64"
9842 ;;
9843 sparc*-*-solaris*)
9844 LD="${LD-ld} -m elf64_sparc"
9845 ;;
9846 esac
9847 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9848 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9849 LD=${LD-ld}_sol2
9850 fi
9851 ;;
9852 *)
9853 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9854 LD="${LD-ld} -64"
9855 fi
9856 ;;
9857 esac
9858 ;;
9859 esac
9860 fi
9861 rm -rf conftest*
9862 ;;
9863 esac
9864
9865 need_locks=$enable_libtool_lock
9866
9867 if test -n "$ac_tool_prefix"; then
9868 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9869 set dummy ${ac_tool_prefix}mt; ac_word=$2
9870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871 printf %s "checking for $ac_word... " >&6; }
9872 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9873 then :
9874 printf %s "(cached) " >&6
9875 else case e in #(
9876 e) if test -n "$MANIFEST_TOOL"; then
9877 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9878 else
9879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880 for as_dir in $PATH
9881 do
9882 IFS=$as_save_IFS
9883 case $as_dir in #(((
9884 '') as_dir=./ ;;
9885 */) ;;
9886 *) as_dir=$as_dir/ ;;
9887 esac
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9890 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9892 break 2
9893 fi
9894 done
9895 done
9896 IFS=$as_save_IFS
9897
9898 fi ;;
9899 esac
9900 fi
9901 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9902 if test -n "$MANIFEST_TOOL"; then
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9904 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9905 else
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907 printf "%s\n" "no" >&6; }
9908 fi
9909
9910
9911 fi
9912 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9913 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9914 # Extract the first word of "mt", so it can be a program name with args.
9915 set dummy mt; ac_word=$2
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9917 printf %s "checking for $ac_word... " >&6; }
9918 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9919 then :
9920 printf %s "(cached) " >&6
9921 else case e in #(
9922 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9923 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9924 else
9925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926 for as_dir in $PATH
9927 do
9928 IFS=$as_save_IFS
9929 case $as_dir in #(((
9930 '') as_dir=./ ;;
9931 */) ;;
9932 *) as_dir=$as_dir/ ;;
9933 esac
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9936 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9938 break 2
9939 fi
9940 done
9941 done
9942 IFS=$as_save_IFS
9943
9944 fi ;;
9945 esac
9946 fi
9947 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9948 if test -n "$ac_ct_MANIFEST_TOOL"; then
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9950 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9951 else
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 printf "%s\n" "no" >&6; }
9954 fi
9955
9956 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9957 MANIFEST_TOOL=":"
9958 else
9959 case $cross_compiling:$ac_tool_warned in
9960 yes:)
9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9962 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9963 ac_tool_warned=yes ;;
9964 esac
9965 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9966 fi
9967 else
9968 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9969 fi
9970
9971 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9973 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9974 if test ${lt_cv_path_manifest_tool+y}
9975 then :
9976 printf %s "(cached) " >&6
9977 else case e in #(
9978 e) lt_cv_path_manifest_tool=no
9979 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9980 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9981 cat conftest.err >&5
9982 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9983 lt_cv_path_manifest_tool=yes
9984 fi
9985 rm -f conftest* ;;
9986 esac
9987 fi
9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9989 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9990 if test yes != "$lt_cv_path_manifest_tool"; then
9991 MANIFEST_TOOL=:
9992 fi
9993
9994
9995
9996
9997
9998
9999 case $host_os in
10000 rhapsody* | darwin*)
10001 if test -n "$ac_tool_prefix"; then
10002 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10003 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10005 printf %s "checking for $ac_word... " >&6; }
10006 if test ${ac_cv_prog_DSYMUTIL+y}
10007 then :
10008 printf %s "(cached) " >&6
10009 else case e in #(
10010 e) if test -n "$DSYMUTIL"; then
10011 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10012 else
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10015 do
10016 IFS=$as_save_IFS
10017 case $as_dir in #(((
10018 '') as_dir=./ ;;
10019 */) ;;
10020 *) as_dir=$as_dir/ ;;
10021 esac
10022 for ac_exec_ext in '' $ac_executable_extensions; do
10023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10024 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10026 break 2
10027 fi
10028 done
10029 done
10030 IFS=$as_save_IFS
10031
10032 fi ;;
10033 esac
10034 fi
10035 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10036 if test -n "$DSYMUTIL"; then
10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10038 printf "%s\n" "$DSYMUTIL" >&6; }
10039 else
10040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 printf "%s\n" "no" >&6; }
10042 fi
10043
10044
10045 fi
10046 if test -z "$ac_cv_prog_DSYMUTIL"; then
10047 ac_ct_DSYMUTIL=$DSYMUTIL
10048 # Extract the first word of "dsymutil", so it can be a program name with args.
10049 set dummy dsymutil; ac_word=$2
10050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051 printf %s "checking for $ac_word... " >&6; }
10052 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10053 then :
10054 printf %s "(cached) " >&6
10055 else case e in #(
10056 e) if test -n "$ac_ct_DSYMUTIL"; then
10057 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10058 else
10059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10061 do
10062 IFS=$as_save_IFS
10063 case $as_dir in #(((
10064 '') as_dir=./ ;;
10065 */) ;;
10066 *) as_dir=$as_dir/ ;;
10067 esac
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10070 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10072 break 2
10073 fi
10074 done
10075 done
10076 IFS=$as_save_IFS
10077
10078 fi ;;
10079 esac
10080 fi
10081 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10082 if test -n "$ac_ct_DSYMUTIL"; then
10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10084 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10085 else
10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 printf "%s\n" "no" >&6; }
10088 fi
10089
10090 if test "x$ac_ct_DSYMUTIL" = x; then
10091 DSYMUTIL=":"
10092 else
10093 case $cross_compiling:$ac_tool_warned in
10094 yes:)
10095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10096 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10097 ac_tool_warned=yes ;;
10098 esac
10099 DSYMUTIL=$ac_ct_DSYMUTIL
10100 fi
10101 else
10102 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10103 fi
10104
10105 if test -n "$ac_tool_prefix"; then
10106 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10107 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10109 printf %s "checking for $ac_word... " >&6; }
10110 if test ${ac_cv_prog_NMEDIT+y}
10111 then :
10112 printf %s "(cached) " >&6
10113 else case e in #(
10114 e) if test -n "$NMEDIT"; then
10115 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10116 else
10117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118 for as_dir in $PATH
10119 do
10120 IFS=$as_save_IFS
10121 case $as_dir in #(((
10122 '') as_dir=./ ;;
10123 */) ;;
10124 *) as_dir=$as_dir/ ;;
10125 esac
10126 for ac_exec_ext in '' $ac_executable_extensions; do
10127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10128 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10130 break 2
10131 fi
10132 done
10133 done
10134 IFS=$as_save_IFS
10135
10136 fi ;;
10137 esac
10138 fi
10139 NMEDIT=$ac_cv_prog_NMEDIT
10140 if test -n "$NMEDIT"; then
10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10142 printf "%s\n" "$NMEDIT" >&6; }
10143 else
10144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 printf "%s\n" "no" >&6; }
10146 fi
10147
10148
10149 fi
10150 if test -z "$ac_cv_prog_NMEDIT"; then
10151 ac_ct_NMEDIT=$NMEDIT
10152 # Extract the first word of "nmedit", so it can be a program name with args.
10153 set dummy nmedit; ac_word=$2
10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10155 printf %s "checking for $ac_word... " >&6; }
10156 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10157 then :
10158 printf %s "(cached) " >&6
10159 else case e in #(
10160 e) if test -n "$ac_ct_NMEDIT"; then
10161 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10162 else
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10165 do
10166 IFS=$as_save_IFS
10167 case $as_dir in #(((
10168 '') as_dir=./ ;;
10169 */) ;;
10170 *) as_dir=$as_dir/ ;;
10171 esac
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10174 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10176 break 2
10177 fi
10178 done
10179 done
10180 IFS=$as_save_IFS
10181
10182 fi ;;
10183 esac
10184 fi
10185 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10186 if test -n "$ac_ct_NMEDIT"; then
10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10188 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10189 else
10190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10191 printf "%s\n" "no" >&6; }
10192 fi
10193
10194 if test "x$ac_ct_NMEDIT" = x; then
10195 NMEDIT=":"
10196 else
10197 case $cross_compiling:$ac_tool_warned in
10198 yes:)
10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10200 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10201 ac_tool_warned=yes ;;
10202 esac
10203 NMEDIT=$ac_ct_NMEDIT
10204 fi
10205 else
10206 NMEDIT="$ac_cv_prog_NMEDIT"
10207 fi
10208
10209 if test -n "$ac_tool_prefix"; then
10210 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10211 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 printf %s "checking for $ac_word... " >&6; }
10214 if test ${ac_cv_prog_LIPO+y}
10215 then :
10216 printf %s "(cached) " >&6
10217 else case e in #(
10218 e) if test -n "$LIPO"; then
10219 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10220 else
10221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222 for as_dir in $PATH
10223 do
10224 IFS=$as_save_IFS
10225 case $as_dir in #(((
10226 '') as_dir=./ ;;
10227 */) ;;
10228 *) as_dir=$as_dir/ ;;
10229 esac
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10232 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10234 break 2
10235 fi
10236 done
10237 done
10238 IFS=$as_save_IFS
10239
10240 fi ;;
10241 esac
10242 fi
10243 LIPO=$ac_cv_prog_LIPO
10244 if test -n "$LIPO"; then
10245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10246 printf "%s\n" "$LIPO" >&6; }
10247 else
10248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 printf "%s\n" "no" >&6; }
10250 fi
10251
10252
10253 fi
10254 if test -z "$ac_cv_prog_LIPO"; then
10255 ac_ct_LIPO=$LIPO
10256 # Extract the first word of "lipo", so it can be a program name with args.
10257 set dummy lipo; ac_word=$2
10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259 printf %s "checking for $ac_word... " >&6; }
10260 if test ${ac_cv_prog_ac_ct_LIPO+y}
10261 then :
10262 printf %s "(cached) " >&6
10263 else case e in #(
10264 e) if test -n "$ac_ct_LIPO"; then
10265 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10266 else
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10269 do
10270 IFS=$as_save_IFS
10271 case $as_dir in #(((
10272 '') as_dir=./ ;;
10273 */) ;;
10274 *) as_dir=$as_dir/ ;;
10275 esac
10276 for ac_exec_ext in '' $ac_executable_extensions; do
10277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10278 ac_cv_prog_ac_ct_LIPO="lipo"
10279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10280 break 2
10281 fi
10282 done
10283 done
10284 IFS=$as_save_IFS
10285
10286 fi ;;
10287 esac
10288 fi
10289 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10290 if test -n "$ac_ct_LIPO"; then
10291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10292 printf "%s\n" "$ac_ct_LIPO" >&6; }
10293 else
10294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295 printf "%s\n" "no" >&6; }
10296 fi
10297
10298 if test "x$ac_ct_LIPO" = x; then
10299 LIPO=":"
10300 else
10301 case $cross_compiling:$ac_tool_warned in
10302 yes:)
10303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10304 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10305 ac_tool_warned=yes ;;
10306 esac
10307 LIPO=$ac_ct_LIPO
10308 fi
10309 else
10310 LIPO="$ac_cv_prog_LIPO"
10311 fi
10312
10313 if test -n "$ac_tool_prefix"; then
10314 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10315 set dummy ${ac_tool_prefix}otool; ac_word=$2
10316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317 printf %s "checking for $ac_word... " >&6; }
10318 if test ${ac_cv_prog_OTOOL+y}
10319 then :
10320 printf %s "(cached) " >&6
10321 else case e in #(
10322 e) if test -n "$OTOOL"; then
10323 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10324 else
10325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326 for as_dir in $PATH
10327 do
10328 IFS=$as_save_IFS
10329 case $as_dir in #(((
10330 '') as_dir=./ ;;
10331 */) ;;
10332 *) as_dir=$as_dir/ ;;
10333 esac
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10336 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10338 break 2
10339 fi
10340 done
10341 done
10342 IFS=$as_save_IFS
10343
10344 fi ;;
10345 esac
10346 fi
10347 OTOOL=$ac_cv_prog_OTOOL
10348 if test -n "$OTOOL"; then
10349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10350 printf "%s\n" "$OTOOL" >&6; }
10351 else
10352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 printf "%s\n" "no" >&6; }
10354 fi
10355
10356
10357 fi
10358 if test -z "$ac_cv_prog_OTOOL"; then
10359 ac_ct_OTOOL=$OTOOL
10360 # Extract the first word of "otool", so it can be a program name with args.
10361 set dummy otool; ac_word=$2
10362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 printf %s "checking for $ac_word... " >&6; }
10364 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10365 then :
10366 printf %s "(cached) " >&6
10367 else case e in #(
10368 e) if test -n "$ac_ct_OTOOL"; then
10369 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10370 else
10371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10372 for as_dir in $PATH
10373 do
10374 IFS=$as_save_IFS
10375 case $as_dir in #(((
10376 '') as_dir=./ ;;
10377 */) ;;
10378 *) as_dir=$as_dir/ ;;
10379 esac
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10382 ac_cv_prog_ac_ct_OTOOL="otool"
10383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10384 break 2
10385 fi
10386 done
10387 done
10388 IFS=$as_save_IFS
10389
10390 fi ;;
10391 esac
10392 fi
10393 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10394 if test -n "$ac_ct_OTOOL"; then
10395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10396 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10397 else
10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 printf "%s\n" "no" >&6; }
10400 fi
10401
10402 if test "x$ac_ct_OTOOL" = x; then
10403 OTOOL=":"
10404 else
10405 case $cross_compiling:$ac_tool_warned in
10406 yes:)
10407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10408 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10409 ac_tool_warned=yes ;;
10410 esac
10411 OTOOL=$ac_ct_OTOOL
10412 fi
10413 else
10414 OTOOL="$ac_cv_prog_OTOOL"
10415 fi
10416
10417 if test -n "$ac_tool_prefix"; then
10418 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10419 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10421 printf %s "checking for $ac_word... " >&6; }
10422 if test ${ac_cv_prog_OTOOL64+y}
10423 then :
10424 printf %s "(cached) " >&6
10425 else case e in #(
10426 e) if test -n "$OTOOL64"; then
10427 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10428 else
10429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430 for as_dir in $PATH
10431 do
10432 IFS=$as_save_IFS
10433 case $as_dir in #(((
10434 '') as_dir=./ ;;
10435 */) ;;
10436 *) as_dir=$as_dir/ ;;
10437 esac
10438 for ac_exec_ext in '' $ac_executable_extensions; do
10439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10440 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10442 break 2
10443 fi
10444 done
10445 done
10446 IFS=$as_save_IFS
10447
10448 fi ;;
10449 esac
10450 fi
10451 OTOOL64=$ac_cv_prog_OTOOL64
10452 if test -n "$OTOOL64"; then
10453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10454 printf "%s\n" "$OTOOL64" >&6; }
10455 else
10456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457 printf "%s\n" "no" >&6; }
10458 fi
10459
10460
10461 fi
10462 if test -z "$ac_cv_prog_OTOOL64"; then
10463 ac_ct_OTOOL64=$OTOOL64
10464 # Extract the first word of "otool64", so it can be a program name with args.
10465 set dummy otool64; ac_word=$2
10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467 printf %s "checking for $ac_word... " >&6; }
10468 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10469 then :
10470 printf %s "(cached) " >&6
10471 else case e in #(
10472 e) if test -n "$ac_ct_OTOOL64"; then
10473 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10474 else
10475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476 for as_dir in $PATH
10477 do
10478 IFS=$as_save_IFS
10479 case $as_dir in #(((
10480 '') as_dir=./ ;;
10481 */) ;;
10482 *) as_dir=$as_dir/ ;;
10483 esac
10484 for ac_exec_ext in '' $ac_executable_extensions; do
10485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10486 ac_cv_prog_ac_ct_OTOOL64="otool64"
10487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10488 break 2
10489 fi
10490 done
10491 done
10492 IFS=$as_save_IFS
10493
10494 fi ;;
10495 esac
10496 fi
10497 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10498 if test -n "$ac_ct_OTOOL64"; then
10499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10500 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10501 else
10502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 printf "%s\n" "no" >&6; }
10504 fi
10505
10506 if test "x$ac_ct_OTOOL64" = x; then
10507 OTOOL64=":"
10508 else
10509 case $cross_compiling:$ac_tool_warned in
10510 yes:)
10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10512 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10513 ac_tool_warned=yes ;;
10514 esac
10515 OTOOL64=$ac_ct_OTOOL64
10516 fi
10517 else
10518 OTOOL64="$ac_cv_prog_OTOOL64"
10519 fi
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10548 printf %s "checking for -single_module linker flag... " >&6; }
10549 if test ${lt_cv_apple_cc_single_mod+y}
10550 then :
10551 printf %s "(cached) " >&6
10552 else case e in #(
10553 e) lt_cv_apple_cc_single_mod=no
10554 if test -z "$LT_MULTI_MODULE"; then
10555 # By default we will add the -single_module flag. You can override
10556 # by either setting the environment variable LT_MULTI_MODULE
10557 # non-empty at configure time, or by adding -multi_module to the
10558 # link flags.
10559 rm -rf libconftest.dylib*
10560 echo "int foo(void){return 1;}" > conftest.c
10561 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10562 -dynamiclib -Wl,-single_module conftest.c" >&5
10563 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10564 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10565 _lt_result=$?
10566 # If there is a non-empty error log, and "single_module"
10567 # appears in it, assume the flag caused a linker warning
10568 if test -s conftest.err && $GREP single_module conftest.err; then
10569 cat conftest.err >&5
10570 # Otherwise, if the output was created with a 0 exit code from
10571 # the compiler, it worked.
10572 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10573 lt_cv_apple_cc_single_mod=yes
10574 else
10575 cat conftest.err >&5
10576 fi
10577 rm -rf libconftest.dylib*
10578 rm -f conftest.*
10579 fi ;;
10580 esac
10581 fi
10582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10583 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10584
10585 # Feature test to disable chained fixups since it is not
10586 # compatible with '-undefined dynamic_lookup'
10587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
10588 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
10589 if test ${lt_cv_support_no_fixup_chains+y}
10590 then :
10591 printf %s "(cached) " >&6
10592 else case e in #(
10593 e) save_LDFLAGS=$LDFLAGS
10594 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597
10598 int
10599 main (void)
10600 {
10601
10602 ;
10603 return 0;
10604 }
10605 _ACEOF
10606 if ac_fn_c_try_link "$LINENO"
10607 then :
10608 lt_cv_support_no_fixup_chains=yes
10609 else case e in #(
10610 e) lt_cv_support_no_fixup_chains=no
10611 ;;
10612 esac
10613 fi
10614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10615 conftest$ac_exeext conftest.$ac_ext
10616 LDFLAGS=$save_LDFLAGS
10617
10618 ;;
10619 esac
10620 fi
10621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10622 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
10623
10624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10625 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10626 if test ${lt_cv_ld_exported_symbols_list+y}
10627 then :
10628 printf %s "(cached) " >&6
10629 else case e in #(
10630 e) lt_cv_ld_exported_symbols_list=no
10631 save_LDFLAGS=$LDFLAGS
10632 echo "_main" > conftest.sym
10633 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10636
10637 int
10638 main (void)
10639 {
10640
10641 ;
10642 return 0;
10643 }
10644 _ACEOF
10645 if ac_fn_c_try_link "$LINENO"
10646 then :
10647 lt_cv_ld_exported_symbols_list=yes
10648 else case e in #(
10649 e) lt_cv_ld_exported_symbols_list=no ;;
10650 esac
10651 fi
10652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10653 conftest$ac_exeext conftest.$ac_ext
10654 LDFLAGS=$save_LDFLAGS
10655 ;;
10656 esac
10657 fi
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10659 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10660
10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10662 printf %s "checking for -force_load linker flag... " >&6; }
10663 if test ${lt_cv_ld_force_load+y}
10664 then :
10665 printf %s "(cached) " >&6
10666 else case e in #(
10667 e) lt_cv_ld_force_load=no
10668 cat > conftest.c << _LT_EOF
10669 int forced_loaded() { return 2;}
10670 _LT_EOF
10671 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10672 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10673 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10674 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10675 echo "$RANLIB libconftest.a" >&5
10676 $RANLIB libconftest.a 2>&5
10677 cat > conftest.c << _LT_EOF
10678 int main(void) { return 0;}
10679 _LT_EOF
10680 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10681 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10682 _lt_result=$?
10683 if test -s conftest.err && $GREP force_load conftest.err; then
10684 cat conftest.err >&5
10685 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10686 lt_cv_ld_force_load=yes
10687 else
10688 cat conftest.err >&5
10689 fi
10690 rm -f conftest.err libconftest.a conftest conftest.c
10691 rm -rf conftest.dSYM
10692 ;;
10693 esac
10694 fi
10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10696 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10697 case $host_os in
10698 rhapsody* | darwin1.[012])
10699 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10700 darwin1.*)
10701 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10702 darwin*)
10703 case $MACOSX_DEPLOYMENT_TARGET,$host in
10704 10.[012],*|,*powerpc*-darwin[5-8]*)
10705 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10706 *)
10707 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10708 if test yes = "$lt_cv_support_no_fixup_chains"; then
10709 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10710 fi
10711 ;;
10712 esac
10713 ;;
10714 esac
10715 if test yes = "$lt_cv_apple_cc_single_mod"; then
10716 _lt_dar_single_mod='$single_module'
10717 fi
10718 _lt_dar_needs_single_mod=no
10719 case $host_os in
10720 rhapsody* | darwin1.*)
10721 _lt_dar_needs_single_mod=yes ;;
10722 darwin*)
10723 # When targeting Mac OS X 10.4 (darwin 8) or later,
10724 # -single_module is the default and -multi_module is unsupported.
10725 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10726 # target any OS version that needs -single_module.
10727 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10728 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10729 _lt_dar_needs_single_mod=yes ;;
10730 esac
10731 ;;
10732 esac
10733 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10734 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10735 else
10736 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10737 fi
10738 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10739 _lt_dsymutil='~$DSYMUTIL $lib || :'
10740 else
10741 _lt_dsymutil=
10742 fi
10743 ;;
10744 esac
10745
10746 # func_munge_path_list VARIABLE PATH
10747 # -----------------------------------
10748 # VARIABLE is name of variable containing _space_ separated list of
10749 # directories to be munged by the contents of PATH, which is string
10750 # having a format:
10751 # "DIR[:DIR]:"
10752 # string "DIR[ DIR]" will be prepended to VARIABLE
10753 # ":DIR[:DIR]"
10754 # string "DIR[ DIR]" will be appended to VARIABLE
10755 # "DIRP[:DIRP]::[DIRA:]DIRA"
10756 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10757 # "DIRA[ DIRA]" will be appended to VARIABLE
10758 # "DIR[:DIR]"
10759 # VARIABLE will be replaced by "DIR[ DIR]"
10760 func_munge_path_list ()
10761 {
10762 case x$2 in
10763 x)
10764 ;;
10765 *:)
10766 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10767 ;;
10768 x:*)
10769 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10770 ;;
10771 *::*)
10772 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10773 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10774 ;;
10775 *)
10776 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10777 ;;
10778 esac
10779 }
10780
10781 ac_header= ac_cache=
10782 for ac_item in $ac_header_c_list
10783 do
10784 if test $ac_cache; then
10785 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
10786 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
10787 printf "%s\n" "#define $ac_item 1" >> confdefs.h
10788 fi
10789 ac_header= ac_cache=
10790 elif test $ac_header; then
10791 ac_cache=$ac_item
10792 else
10793 ac_header=$ac_item
10794 fi
10795 done
10796
10797
10798
10799
10800
10801
10802
10803
10804 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
10805 then :
10806
10807 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
10808
10809 fi
10810 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10811 "
10812 if test "x$ac_cv_header_dlfcn_h" = xyes
10813 then :
10814 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10815
10816 fi
10817
10818
10819
10820 func_stripname_cnf ()
10821 {
10822 case $2 in
10823 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10824 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10825 esac
10826 } # func_stripname_cnf
10827
10828
10829
10830
10831
10832 # Set options
10833 enable_win32_dll=yes
10834
10835 case $host in
10836 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
10837 if test -n "$ac_tool_prefix"; then
10838 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10839 set dummy ${ac_tool_prefix}as; ac_word=$2
10840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10841 printf %s "checking for $ac_word... " >&6; }
10842 if test ${ac_cv_prog_AS+y}
10843 then :
10844 printf %s "(cached) " >&6
10845 else case e in #(
10846 e) if test -n "$AS"; then
10847 ac_cv_prog_AS="$AS" # Let the user override the test.
10848 else
10849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850 for as_dir in $PATH
10851 do
10852 IFS=$as_save_IFS
10853 case $as_dir in #(((
10854 '') as_dir=./ ;;
10855 */) ;;
10856 *) as_dir=$as_dir/ ;;
10857 esac
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10860 ac_cv_prog_AS="${ac_tool_prefix}as"
10861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10862 break 2
10863 fi
10864 done
10865 done
10866 IFS=$as_save_IFS
10867
10868 fi ;;
10869 esac
10870 fi
10871 AS=$ac_cv_prog_AS
10872 if test -n "$AS"; then
10873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10874 printf "%s\n" "$AS" >&6; }
10875 else
10876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 printf "%s\n" "no" >&6; }
10878 fi
10879
10880
10881 fi
10882 if test -z "$ac_cv_prog_AS"; then
10883 ac_ct_AS=$AS
10884 # Extract the first word of "as", so it can be a program name with args.
10885 set dummy as; ac_word=$2
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10887 printf %s "checking for $ac_word... " >&6; }
10888 if test ${ac_cv_prog_ac_ct_AS+y}
10889 then :
10890 printf %s "(cached) " >&6
10891 else case e in #(
10892 e) if test -n "$ac_ct_AS"; then
10893 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10894 else
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $PATH
10897 do
10898 IFS=$as_save_IFS
10899 case $as_dir in #(((
10900 '') as_dir=./ ;;
10901 */) ;;
10902 *) as_dir=$as_dir/ ;;
10903 esac
10904 for ac_exec_ext in '' $ac_executable_extensions; do
10905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10906 ac_cv_prog_ac_ct_AS="as"
10907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10908 break 2
10909 fi
10910 done
10911 done
10912 IFS=$as_save_IFS
10913
10914 fi ;;
10915 esac
10916 fi
10917 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10918 if test -n "$ac_ct_AS"; then
10919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10920 printf "%s\n" "$ac_ct_AS" >&6; }
10921 else
10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923 printf "%s\n" "no" >&6; }
10924 fi
10925
10926 if test "x$ac_ct_AS" = x; then
10927 AS="false"
10928 else
10929 case $cross_compiling:$ac_tool_warned in
10930 yes:)
10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10932 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10933 ac_tool_warned=yes ;;
10934 esac
10935 AS=$ac_ct_AS
10936 fi
10937 else
10938 AS="$ac_cv_prog_AS"
10939 fi
10940
10941 if test -n "$ac_tool_prefix"; then
10942 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10943 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945 printf %s "checking for $ac_word... " >&6; }
10946 if test ${ac_cv_prog_DLLTOOL+y}
10947 then :
10948 printf %s "(cached) " >&6
10949 else case e in #(
10950 e) if test -n "$DLLTOOL"; then
10951 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10952 else
10953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954 for as_dir in $PATH
10955 do
10956 IFS=$as_save_IFS
10957 case $as_dir in #(((
10958 '') as_dir=./ ;;
10959 */) ;;
10960 *) as_dir=$as_dir/ ;;
10961 esac
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10964 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10966 break 2
10967 fi
10968 done
10969 done
10970 IFS=$as_save_IFS
10971
10972 fi ;;
10973 esac
10974 fi
10975 DLLTOOL=$ac_cv_prog_DLLTOOL
10976 if test -n "$DLLTOOL"; then
10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10978 printf "%s\n" "$DLLTOOL" >&6; }
10979 else
10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 printf "%s\n" "no" >&6; }
10982 fi
10983
10984
10985 fi
10986 if test -z "$ac_cv_prog_DLLTOOL"; then
10987 ac_ct_DLLTOOL=$DLLTOOL
10988 # Extract the first word of "dlltool", so it can be a program name with args.
10989 set dummy dlltool; ac_word=$2
10990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10991 printf %s "checking for $ac_word... " >&6; }
10992 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10993 then :
10994 printf %s "(cached) " >&6
10995 else case e in #(
10996 e) if test -n "$ac_ct_DLLTOOL"; then
10997 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10998 else
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11001 do
11002 IFS=$as_save_IFS
11003 case $as_dir in #(((
11004 '') as_dir=./ ;;
11005 */) ;;
11006 *) as_dir=$as_dir/ ;;
11007 esac
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11010 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11012 break 2
11013 fi
11014 done
11015 done
11016 IFS=$as_save_IFS
11017
11018 fi ;;
11019 esac
11020 fi
11021 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11022 if test -n "$ac_ct_DLLTOOL"; then
11023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11024 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11025 else
11026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027 printf "%s\n" "no" >&6; }
11028 fi
11029
11030 if test "x$ac_ct_DLLTOOL" = x; then
11031 DLLTOOL="false"
11032 else
11033 case $cross_compiling:$ac_tool_warned in
11034 yes:)
11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11036 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11037 ac_tool_warned=yes ;;
11038 esac
11039 DLLTOOL=$ac_ct_DLLTOOL
11040 fi
11041 else
11042 DLLTOOL="$ac_cv_prog_DLLTOOL"
11043 fi
11044
11045 if test -n "$ac_tool_prefix"; then
11046 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11047 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11049 printf %s "checking for $ac_word... " >&6; }
11050 if test ${ac_cv_prog_OBJDUMP+y}
11051 then :
11052 printf %s "(cached) " >&6
11053 else case e in #(
11054 e) if test -n "$OBJDUMP"; then
11055 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11056 else
11057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058 for as_dir in $PATH
11059 do
11060 IFS=$as_save_IFS
11061 case $as_dir in #(((
11062 '') as_dir=./ ;;
11063 */) ;;
11064 *) as_dir=$as_dir/ ;;
11065 esac
11066 for ac_exec_ext in '' $ac_executable_extensions; do
11067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11068 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11070 break 2
11071 fi
11072 done
11073 done
11074 IFS=$as_save_IFS
11075
11076 fi ;;
11077 esac
11078 fi
11079 OBJDUMP=$ac_cv_prog_OBJDUMP
11080 if test -n "$OBJDUMP"; then
11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11082 printf "%s\n" "$OBJDUMP" >&6; }
11083 else
11084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 printf "%s\n" "no" >&6; }
11086 fi
11087
11088
11089 fi
11090 if test -z "$ac_cv_prog_OBJDUMP"; then
11091 ac_ct_OBJDUMP=$OBJDUMP
11092 # Extract the first word of "objdump", so it can be a program name with args.
11093 set dummy objdump; ac_word=$2
11094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 printf %s "checking for $ac_word... " >&6; }
11096 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11097 then :
11098 printf %s "(cached) " >&6
11099 else case e in #(
11100 e) if test -n "$ac_ct_OBJDUMP"; then
11101 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11102 else
11103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104 for as_dir in $PATH
11105 do
11106 IFS=$as_save_IFS
11107 case $as_dir in #(((
11108 '') as_dir=./ ;;
11109 */) ;;
11110 *) as_dir=$as_dir/ ;;
11111 esac
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11114 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11116 break 2
11117 fi
11118 done
11119 done
11120 IFS=$as_save_IFS
11121
11122 fi ;;
11123 esac
11124 fi
11125 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11126 if test -n "$ac_ct_OBJDUMP"; then
11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11128 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
11129 else
11130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 printf "%s\n" "no" >&6; }
11132 fi
11133
11134 if test "x$ac_ct_OBJDUMP" = x; then
11135 OBJDUMP="false"
11136 else
11137 case $cross_compiling:$ac_tool_warned in
11138 yes:)
11139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11140 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11141 ac_tool_warned=yes ;;
11142 esac
11143 OBJDUMP=$ac_ct_OBJDUMP
11144 fi
11145 else
11146 OBJDUMP="$ac_cv_prog_OBJDUMP"
11147 fi
11148
11149 ;;
11150 esac
11151
11152 test -z "$AS" && AS=as
11153
11154
11155
11156
11157
11158 test -z "$DLLTOOL" && DLLTOOL=dlltool
11159
11160
11161
11162
11163
11164 test -z "$OBJDUMP" && OBJDUMP=objdump
11165
11166
11167
11168
11169 # Check whether --enable-static was given.
11170 if test ${enable_static+y}
11171 then :
11172 enableval=$enable_static; p=${PACKAGE-default}
11173 case $enableval in
11174 yes) enable_static=yes ;;
11175 no) enable_static=no ;;
11176 *)
11177 enable_static=no
11178 # Look at the argument we got. We use all the common list separators.
11179 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11180 for pkg in $enableval; do
11181 IFS=$lt_save_ifs
11182 if test "X$pkg" = "X$p"; then
11183 enable_static=yes
11184 fi
11185 done
11186 IFS=$lt_save_ifs
11187 ;;
11188 esac
11189 else case e in #(
11190 e) enable_static=no ;;
11191 esac
11192 fi
11193
11194
11195
11196
11197
11198
11199
11200 # Check whether --enable-pic was given.
11201 if test ${enable_pic+y}
11202 then :
11203 enableval=$enable_pic; lt_p=${PACKAGE-default}
11204 case $enableval in
11205 yes|no) pic_mode=$enableval ;;
11206 *)
11207 pic_mode=default
11208 # Look at the argument we got. We use all the common list separators.
11209 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11210 for lt_pkg in $enableval; do
11211 IFS=$lt_save_ifs
11212 if test "X$lt_pkg" = "X$lt_p"; then
11213 pic_mode=yes
11214 fi
11215 done
11216 IFS=$lt_save_ifs
11217 ;;
11218 esac
11219 else case e in #(
11220 e) # Check whether --with-pic was given.
11221 if test ${with_pic+y}
11222 then :
11223 withval=$with_pic; lt_p=${PACKAGE-default}
11224 case $withval in
11225 yes|no) pic_mode=$withval ;;
11226 *)
11227 pic_mode=default
11228 # Look at the argument we got. We use all the common list separators.
11229 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11230 for lt_pkg in $withval; do
11231 IFS=$lt_save_ifs
11232 if test "X$lt_pkg" = "X$lt_p"; then
11233 pic_mode=yes
11234 fi
11235 done
11236 IFS=$lt_save_ifs
11237 ;;
11238 esac
11239 else case e in #(
11240 e) pic_mode=yes ;;
11241 esac
11242 fi
11243
11244 ;;
11245 esac
11246 fi
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256 enable_dlopen=no
11257
11258
11259
11260 # Check whether --enable-shared was given.
11261 if test ${enable_shared+y}
11262 then :
11263 enableval=$enable_shared; p=${PACKAGE-default}
11264 case $enableval in
11265 yes) enable_shared=yes ;;
11266 no) enable_shared=no ;;
11267 *)
11268 enable_shared=no
11269 # Look at the argument we got. We use all the common list separators.
11270 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11271 for pkg in $enableval; do
11272 IFS=$lt_save_ifs
11273 if test "X$pkg" = "X$p"; then
11274 enable_shared=yes
11275 fi
11276 done
11277 IFS=$lt_save_ifs
11278 ;;
11279 esac
11280 else case e in #(
11281 e) enable_shared=yes ;;
11282 esac
11283 fi
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295 # Check whether --enable-fast-install was given.
11296 if test ${enable_fast_install+y}
11297 then :
11298 enableval=$enable_fast_install; p=${PACKAGE-default}
11299 case $enableval in
11300 yes) enable_fast_install=yes ;;
11301 no) enable_fast_install=no ;;
11302 *)
11303 enable_fast_install=no
11304 # Look at the argument we got. We use all the common list separators.
11305 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11306 for pkg in $enableval; do
11307 IFS=$lt_save_ifs
11308 if test "X$pkg" = "X$p"; then
11309 enable_fast_install=yes
11310 fi
11311 done
11312 IFS=$lt_save_ifs
11313 ;;
11314 esac
11315 else case e in #(
11316 e) enable_fast_install=yes ;;
11317 esac
11318 fi
11319
11320
11321
11322
11323
11324
11325
11326
11327 shared_archive_member_spec=
11328 case $host,$enable_shared in
11329 power*-*-aix[5-9]*,yes)
11330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11331 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11332 # Check whether --enable-aix-soname was given.
11333 if test ${enable_aix_soname+y}
11334 then :
11335 enableval=$enable_aix_soname; case $enableval in
11336 aix|svr4|both)
11337 ;;
11338 *)
11339 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
11340 ;;
11341 esac
11342 lt_cv_with_aix_soname=$enable_aix_soname
11343 else case e in #(
11344 e) # Check whether --with-aix-soname was given.
11345 if test ${with_aix_soname+y}
11346 then :
11347 withval=$with_aix_soname; case $withval in
11348 aix|svr4|both)
11349 ;;
11350 *)
11351 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11352 ;;
11353 esac
11354 lt_cv_with_aix_soname=$with_aix_soname
11355 else case e in #(
11356 e) if test ${lt_cv_with_aix_soname+y}
11357 then :
11358 printf %s "(cached) " >&6
11359 else case e in #(
11360 e) lt_cv_with_aix_soname=aix ;;
11361 esac
11362 fi
11363 ;;
11364 esac
11365 fi
11366
11367 enable_aix_soname=$lt_cv_with_aix_soname ;;
11368 esac
11369 fi
11370
11371 with_aix_soname=$enable_aix_soname
11372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11373 printf "%s\n" "$with_aix_soname" >&6; }
11374 if test aix != "$with_aix_soname"; then
11375 # For the AIX way of multilib, we name the shared archive member
11376 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11377 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11378 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11379 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11380 if test 64 = "${OBJECT_MODE-32}"; then
11381 shared_archive_member_spec=shr_64
11382 else
11383 shared_archive_member_spec=shr
11384 fi
11385 fi
11386 ;;
11387 *)
11388 with_aix_soname=aix
11389 ;;
11390 esac
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401 # This can be used to rebuild libtool when needed
11402 LIBTOOL_DEPS=$ltmain
11403
11404 # Always use our own libtool.
11405 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436 test -z "$LN_S" && LN_S="ln -s"
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451 if test -n "${ZSH_VERSION+set}"; then
11452 setopt NO_GLOB_SUBST
11453 fi
11454
11455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11456 printf %s "checking for objdir... " >&6; }
11457 if test ${lt_cv_objdir+y}
11458 then :
11459 printf %s "(cached) " >&6
11460 else case e in #(
11461 e) rm -f .libs 2>/dev/null
11462 mkdir .libs 2>/dev/null
11463 if test -d .libs; then
11464 lt_cv_objdir=.libs
11465 else
11466 # MS-DOS does not allow filenames that begin with a dot.
11467 lt_cv_objdir=_libs
11468 fi
11469 rmdir .libs 2>/dev/null ;;
11470 esac
11471 fi
11472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11473 printf "%s\n" "$lt_cv_objdir" >&6; }
11474 objdir=$lt_cv_objdir
11475
11476
11477
11478
11479
11480 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11481
11482
11483
11484
11485 case $host_os in
11486 aix3*)
11487 # AIX sometimes has problems with the GCC collect2 program. For some
11488 # reason, if we set the COLLECT_NAMES environment variable, the problems
11489 # vanish in a puff of smoke.
11490 if test set != "${COLLECT_NAMES+set}"; then
11491 COLLECT_NAMES=
11492 export COLLECT_NAMES
11493 fi
11494 ;;
11495 esac
11496
11497 # Global variables:
11498 ofile=libtool
11499 can_build_shared=yes
11500
11501 # All known linkers require a '.a' archive for static linking (except MSVC and
11502 # ICC, which need '.lib').
11503 libext=a
11504
11505 with_gnu_ld=$lt_cv_prog_gnu_ld
11506
11507 old_CC=$CC
11508 old_CFLAGS=$CFLAGS
11509
11510 # Set sane defaults for various variables
11511 test -z "$CC" && CC=cc
11512 test -z "$LTCC" && LTCC=$CC
11513 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11514 test -z "$LD" && LD=ld
11515 test -z "$ac_objext" && ac_objext=o
11516
11517 func_cc_basename $compiler
11518 cc_basename=$func_cc_basename_result
11519
11520
11521 # Only perform the check for file, if the check method requires it
11522 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11523 case $deplibs_check_method in
11524 file_magic*)
11525 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11527 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11528 if test ${lt_cv_path_MAGIC_CMD+y}
11529 then :
11530 printf %s "(cached) " >&6
11531 else case e in #(
11532 e) case $MAGIC_CMD in
11533 [\\/*] | ?:[\\/]*)
11534 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11535 ;;
11536 *)
11537 lt_save_MAGIC_CMD=$MAGIC_CMD
11538 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11539 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11540 for ac_dir in $ac_dummy; do
11541 IFS=$lt_save_ifs
11542 test -z "$ac_dir" && ac_dir=.
11543 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11544 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11545 if test -n "$file_magic_test_file"; then
11546 case $deplibs_check_method in
11547 "file_magic "*)
11548 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11549 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11550 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11551 $EGREP "$file_magic_regex" > /dev/null; then
11552 :
11553 else
11554 cat <<_LT_EOF 1>&2
11555
11556 *** Warning: the command libtool uses to detect shared libraries,
11557 *** $file_magic_cmd, produces output that libtool cannot recognize.
11558 *** The result is that libtool may fail to recognize shared libraries
11559 *** as such. This will affect the creation of libtool libraries that
11560 *** depend on shared libraries, but programs linked with such libtool
11561 *** libraries will work regardless of this problem. Nevertheless, you
11562 *** may want to report the problem to your system manager and/or to
11563 *** [email protected]
11564
11565 _LT_EOF
11566 fi ;;
11567 esac
11568 fi
11569 break
11570 fi
11571 done
11572 IFS=$lt_save_ifs
11573 MAGIC_CMD=$lt_save_MAGIC_CMD
11574 ;;
11575 esac ;;
11576 esac
11577 fi
11578
11579 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11580 if test -n "$MAGIC_CMD"; then
11581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11582 printf "%s\n" "$MAGIC_CMD" >&6; }
11583 else
11584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585 printf "%s\n" "no" >&6; }
11586 fi
11587
11588
11589
11590
11591
11592 if test -z "$lt_cv_path_MAGIC_CMD"; then
11593 if test -n "$ac_tool_prefix"; then
11594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11595 printf %s "checking for file... " >&6; }
11596 if test ${lt_cv_path_MAGIC_CMD+y}
11597 then :
11598 printf %s "(cached) " >&6
11599 else case e in #(
11600 e) case $MAGIC_CMD in
11601 [\\/*] | ?:[\\/]*)
11602 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11603 ;;
11604 *)
11605 lt_save_MAGIC_CMD=$MAGIC_CMD
11606 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11607 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11608 for ac_dir in $ac_dummy; do
11609 IFS=$lt_save_ifs
11610 test -z "$ac_dir" && ac_dir=.
11611 if test -f "$ac_dir/file"; then
11612 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11613 if test -n "$file_magic_test_file"; then
11614 case $deplibs_check_method in
11615 "file_magic "*)
11616 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11617 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11618 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11619 $EGREP "$file_magic_regex" > /dev/null; then
11620 :
11621 else
11622 cat <<_LT_EOF 1>&2
11623
11624 *** Warning: the command libtool uses to detect shared libraries,
11625 *** $file_magic_cmd, produces output that libtool cannot recognize.
11626 *** The result is that libtool may fail to recognize shared libraries
11627 *** as such. This will affect the creation of libtool libraries that
11628 *** depend on shared libraries, but programs linked with such libtool
11629 *** libraries will work regardless of this problem. Nevertheless, you
11630 *** may want to report the problem to your system manager and/or to
11631 *** [email protected]
11632
11633 _LT_EOF
11634 fi ;;
11635 esac
11636 fi
11637 break
11638 fi
11639 done
11640 IFS=$lt_save_ifs
11641 MAGIC_CMD=$lt_save_MAGIC_CMD
11642 ;;
11643 esac ;;
11644 esac
11645 fi
11646
11647 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11648 if test -n "$MAGIC_CMD"; then
11649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11650 printf "%s\n" "$MAGIC_CMD" >&6; }
11651 else
11652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 printf "%s\n" "no" >&6; }
11654 fi
11655
11656
11657 else
11658 MAGIC_CMD=:
11659 fi
11660 fi
11661
11662 fi
11663 ;;
11664 esac
11665
11666 # Use C for the default configuration in the libtool script
11667
11668 lt_save_CC=$CC
11669 ac_ext=c
11670 ac_cpp='$CPP $CPPFLAGS'
11671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11674
11675
11676 # Source file extension for C test sources.
11677 ac_ext=c
11678
11679 # Object file extension for compiled C test sources.
11680 objext=o
11681 objext=$objext
11682
11683 # Code to be used in simple compile tests
11684 lt_simple_compile_test_code="int some_variable = 0;"
11685
11686 # Code to be used in simple link tests
11687 lt_simple_link_test_code='int main(void){return(0);}'
11688
11689
11690
11691
11692
11693
11694
11695 # If no C compiler was specified, use CC.
11696 LTCC=${LTCC-"$CC"}
11697
11698 # If no C compiler flags were specified, use CFLAGS.
11699 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11700
11701 # Allow CC to be a program name with arguments.
11702 compiler=$CC
11703
11704 # Save the default compiler, since it gets overwritten when the other
11705 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11706 compiler_DEFAULT=$CC
11707
11708 # save warnings/boilerplate of simple test code
11709 ac_outfile=conftest.$ac_objext
11710 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11711 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11712 _lt_compiler_boilerplate=`cat conftest.err`
11713 $RM conftest*
11714
11715 ac_outfile=conftest.$ac_objext
11716 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11717 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11718 _lt_linker_boilerplate=`cat conftest.err`
11719 $RM -r conftest*
11720
11721
11722 ## CAVEAT EMPTOR:
11723 ## There is no encapsulation within the following macros, do not change
11724 ## the running order or otherwise move them around unless you know exactly
11725 ## what you are doing...
11726 if test -n "$compiler"; then
11727
11728 lt_prog_compiler_no_builtin_flag=
11729
11730 if test yes = "$GCC"; then
11731 case $cc_basename in
11732 nvcc*)
11733 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11734 *)
11735 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11736 esac
11737
11738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11739 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11740 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11741 then :
11742 printf %s "(cached) " >&6
11743 else case e in #(
11744 e) lt_cv_prog_compiler_rtti_exceptions=no
11745 ac_outfile=conftest.$ac_objext
11746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11747 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11748 # Insert the option either (1) after the last *FLAGS variable, or
11749 # (2) before a word containing "conftest.", or (3) at the end.
11750 # Note that $ac_compile itself does not contain backslashes and begins
11751 # with a dollar sign (not a hyphen), so the echo should work correctly.
11752 # The option is referenced via a variable to avoid confusing sed.
11753 lt_compile=`echo "$ac_compile" | $SED \
11754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11756 -e 's:$: $lt_compiler_flag:'`
11757 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11758 (eval "$lt_compile" 2>conftest.err)
11759 ac_status=$?
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 if (exit $ac_status) && test -s "$ac_outfile"; then
11763 # The compiler can only warn and ignore the option if not recognized
11764 # So say no if there are warnings other than the usual output.
11765 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11766 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11767 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11768 lt_cv_prog_compiler_rtti_exceptions=yes
11769 fi
11770 fi
11771 $RM conftest*
11772 ;;
11773 esac
11774 fi
11775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11776 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11777
11778 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11779 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11780 else
11781 :
11782 fi
11783
11784 fi
11785
11786
11787
11788
11789
11790
11791 lt_prog_compiler_wl=
11792 lt_prog_compiler_pic=
11793 lt_prog_compiler_static=
11794
11795
11796 if test yes = "$GCC"; then
11797 lt_prog_compiler_wl='-Wl,'
11798 lt_prog_compiler_static='-static'
11799
11800 case $host_os in
11801 aix*)
11802 # All AIX code is PIC.
11803 if test ia64 = "$host_cpu"; then
11804 # AIX 5 now supports IA64 processor
11805 lt_prog_compiler_static='-Bstatic'
11806 fi
11807 lt_prog_compiler_pic='-fPIC'
11808 ;;
11809
11810 amigaos*)
11811 case $host_cpu in
11812 powerpc)
11813 # see comment about AmigaOS4 .so support
11814 lt_prog_compiler_pic='-fPIC'
11815 ;;
11816 m68k)
11817 # FIXME: we need at least 68020 code to build shared libraries, but
11818 # adding the '-m68020' flag to GCC prevents building anything better,
11819 # like '-m68040'.
11820 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11821 ;;
11822 esac
11823 ;;
11824
11825 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11826 # PIC is the default for these OSes.
11827 ;;
11828
11829 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11830 # This hack is so that the source file can tell whether it is being
11831 # built for inclusion in a dll (and should export symbols for example).
11832 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11833 # (--disable-auto-import) libraries
11834 lt_prog_compiler_pic='-DDLL_EXPORT'
11835 case $host_os in
11836 os2*)
11837 lt_prog_compiler_static='$wl-static'
11838 ;;
11839 esac
11840 ;;
11841
11842 darwin* | rhapsody*)
11843 # PIC is the default on this platform
11844 # Common symbols not allowed in MH_DYLIB files
11845 lt_prog_compiler_pic='-fno-common'
11846 ;;
11847
11848 haiku*)
11849 # PIC is the default for Haiku.
11850 # The "-static" flag exists, but is broken.
11851 lt_prog_compiler_static=
11852 ;;
11853
11854 hpux*)
11855 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11856 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11857 # sets the default TLS model and affects inlining.
11858 case $host_cpu in
11859 hppa*64*)
11860 # +Z the default
11861 ;;
11862 *)
11863 lt_prog_compiler_pic='-fPIC'
11864 ;;
11865 esac
11866 ;;
11867
11868 interix[3-9]*)
11869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11870 # Instead, we relocate shared libraries at runtime.
11871 ;;
11872
11873 msdosdjgpp*)
11874 # Just because we use GCC doesn't mean we suddenly get shared libraries
11875 # on systems that don't support them.
11876 lt_prog_compiler_can_build_shared=no
11877 enable_shared=no
11878 ;;
11879
11880 *nto* | *qnx*)
11881 # QNX uses GNU C++, but need to define -shared option too, otherwise
11882 # it will coredump.
11883 lt_prog_compiler_pic='-fPIC -shared'
11884 ;;
11885
11886 sysv4*MP*)
11887 if test -d /usr/nec; then
11888 lt_prog_compiler_pic=-Kconform_pic
11889 fi
11890 ;;
11891
11892 *)
11893 lt_prog_compiler_pic='-fPIC'
11894 ;;
11895 esac
11896
11897 case $cc_basename in
11898 nvcc*) # Cuda Compiler Driver 2.2
11899 lt_prog_compiler_wl='-Xlinker '
11900 if test -n "$lt_prog_compiler_pic"; then
11901 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11902 fi
11903 ;;
11904 esac
11905 else
11906 # PORTME Check for flag to pass linker flags through the system compiler.
11907 case $host_os in
11908 aix*)
11909 lt_prog_compiler_wl='-Wl,'
11910 if test ia64 = "$host_cpu"; then
11911 # AIX 5 now supports IA64 processor
11912 lt_prog_compiler_static='-Bstatic'
11913 else
11914 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11915 fi
11916 ;;
11917
11918 darwin* | rhapsody*)
11919 # PIC is the default on this platform
11920 # Common symbols not allowed in MH_DYLIB files
11921 lt_prog_compiler_pic='-fno-common'
11922 case $cc_basename in
11923 nagfor*)
11924 # NAG Fortran compiler
11925 lt_prog_compiler_wl='-Wl,-Wl,,'
11926 lt_prog_compiler_pic='-PIC'
11927 lt_prog_compiler_static='-Bstatic'
11928 ;;
11929 esac
11930 ;;
11931
11932 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11933 # This hack is so that the source file can tell whether it is being
11934 # built for inclusion in a dll (and should export symbols for example).
11935 lt_prog_compiler_pic='-DDLL_EXPORT'
11936 case $host_os in
11937 os2*)
11938 lt_prog_compiler_static='$wl-static'
11939 ;;
11940 esac
11941 ;;
11942
11943 hpux9* | hpux10* | hpux11*)
11944 lt_prog_compiler_wl='-Wl,'
11945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11946 # not for PA HP-UX.
11947 case $host_cpu in
11948 hppa*64*|ia64*)
11949 # +Z the default
11950 ;;
11951 *)
11952 lt_prog_compiler_pic='+Z'
11953 ;;
11954 esac
11955 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11956 lt_prog_compiler_static='$wl-a ${wl}archive'
11957 ;;
11958
11959 irix5* | irix6* | nonstopux*)
11960 lt_prog_compiler_wl='-Wl,'
11961 # PIC (with -KPIC) is the default.
11962 lt_prog_compiler_static='-non_shared'
11963 ;;
11964
11965 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11966 case $cc_basename in
11967 # old Intel for x86_64, which still supported -KPIC.
11968 ecc*)
11969 lt_prog_compiler_wl='-Wl,'
11970 lt_prog_compiler_pic='-KPIC'
11971 lt_prog_compiler_static='-static'
11972 ;;
11973 *flang* | ftn | f18* | f95*)
11974 # Flang compiler.
11975 lt_prog_compiler_wl='-Wl,'
11976 lt_prog_compiler_pic='-fPIC'
11977 lt_prog_compiler_static='-static'
11978 ;;
11979 # flang / f18. f95 an alias for gfortran or flang on Debian
11980 flang* | f18* | f95*)
11981 lt_prog_compiler_wl='-Wl,'
11982 lt_prog_compiler_pic='-fPIC'
11983 lt_prog_compiler_static='-static'
11984 ;;
11985 # icc used to be incompatible with GCC.
11986 # ICC 10 doesn't accept -KPIC any more.
11987 icc* | ifort*)
11988 lt_prog_compiler_wl='-Wl,'
11989 lt_prog_compiler_pic='-fPIC'
11990 lt_prog_compiler_static='-static'
11991 ;;
11992 # Lahey Fortran 8.1.
11993 lf95*)
11994 lt_prog_compiler_wl='-Wl,'
11995 lt_prog_compiler_pic='--shared'
11996 lt_prog_compiler_static='--static'
11997 ;;
11998 nagfor*)
11999 # NAG Fortran compiler
12000 lt_prog_compiler_wl='-Wl,-Wl,,'
12001 lt_prog_compiler_pic='-PIC'
12002 lt_prog_compiler_static='-Bstatic'
12003 ;;
12004 tcc*)
12005 # Fabrice Bellard et al's Tiny C Compiler
12006 lt_prog_compiler_wl='-Wl,'
12007 lt_prog_compiler_pic='-fPIC'
12008 lt_prog_compiler_static='-static'
12009 ;;
12010 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12011 # Portland Group compilers (*not* the Pentium gcc compiler,
12012 # which looks to be a dead project)
12013 lt_prog_compiler_wl='-Wl,'
12014 lt_prog_compiler_pic='-fpic'
12015 lt_prog_compiler_static='-Bstatic'
12016 ;;
12017 ccc*)
12018 lt_prog_compiler_wl='-Wl,'
12019 # All Alpha code is PIC.
12020 lt_prog_compiler_static='-non_shared'
12021 ;;
12022 xl* | bgxl* | bgf* | mpixl*)
12023 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12024 lt_prog_compiler_wl='-Wl,'
12025 lt_prog_compiler_pic='-qpic'
12026 lt_prog_compiler_static='-qstaticlink'
12027 ;;
12028 *)
12029 case `$CC -V 2>&1 | $SED 5q` in
12030 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12031 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12032 lt_prog_compiler_pic='-KPIC'
12033 lt_prog_compiler_static='-Bstatic'
12034 lt_prog_compiler_wl=''
12035 ;;
12036 *Sun\ F* | *Sun*Fortran*)
12037 lt_prog_compiler_pic='-KPIC'
12038 lt_prog_compiler_static='-Bstatic'
12039 lt_prog_compiler_wl='-Qoption ld '
12040 ;;
12041 *Sun\ C*)
12042 # Sun C 5.9
12043 lt_prog_compiler_pic='-KPIC'
12044 lt_prog_compiler_static='-Bstatic'
12045 lt_prog_compiler_wl='-Wl,'
12046 ;;
12047 *Intel*\ [CF]*Compiler*)
12048 lt_prog_compiler_wl='-Wl,'
12049 lt_prog_compiler_pic='-fPIC'
12050 lt_prog_compiler_static='-static'
12051 ;;
12052 *Portland\ Group*)
12053 lt_prog_compiler_wl='-Wl,'
12054 lt_prog_compiler_pic='-fpic'
12055 lt_prog_compiler_static='-Bstatic'
12056 ;;
12057 esac
12058 ;;
12059 esac
12060 ;;
12061
12062 newsos6)
12063 lt_prog_compiler_pic='-KPIC'
12064 lt_prog_compiler_static='-Bstatic'
12065 ;;
12066
12067 *-mlibc)
12068 lt_prog_compiler_wl='-Wl,'
12069 lt_prog_compiler_pic='-fPIC'
12070 lt_prog_compiler_static='-static'
12071 ;;
12072
12073 *nto* | *qnx*)
12074 # QNX uses GNU C++, but need to define -shared option too, otherwise
12075 # it will coredump.
12076 lt_prog_compiler_pic='-fPIC -shared'
12077 ;;
12078
12079 osf3* | osf4* | osf5*)
12080 lt_prog_compiler_wl='-Wl,'
12081 # All OSF/1 code is PIC.
12082 lt_prog_compiler_static='-non_shared'
12083 ;;
12084
12085 rdos*)
12086 lt_prog_compiler_static='-non_shared'
12087 ;;
12088
12089 serenity*)
12090 ;;
12091
12092 solaris*)
12093 lt_prog_compiler_pic='-KPIC'
12094 lt_prog_compiler_static='-Bstatic'
12095 case $cc_basename in
12096 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12097 lt_prog_compiler_wl='-Qoption ld ';;
12098 *)
12099 lt_prog_compiler_wl='-Wl,';;
12100 esac
12101 ;;
12102
12103 sunos4*)
12104 lt_prog_compiler_wl='-Qoption ld '
12105 lt_prog_compiler_pic='-PIC'
12106 lt_prog_compiler_static='-Bstatic'
12107 ;;
12108
12109 sysv4 | sysv4.2uw2* | sysv4.3*)
12110 lt_prog_compiler_wl='-Wl,'
12111 lt_prog_compiler_pic='-KPIC'
12112 lt_prog_compiler_static='-Bstatic'
12113 ;;
12114
12115 sysv4*MP*)
12116 if test -d /usr/nec; then
12117 lt_prog_compiler_pic='-Kconform_pic'
12118 lt_prog_compiler_static='-Bstatic'
12119 fi
12120 ;;
12121
12122 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12123 lt_prog_compiler_wl='-Wl,'
12124 lt_prog_compiler_pic='-KPIC'
12125 lt_prog_compiler_static='-Bstatic'
12126 ;;
12127
12128 unicos*)
12129 lt_prog_compiler_wl='-Wl,'
12130 lt_prog_compiler_can_build_shared=no
12131 ;;
12132
12133 uts4*)
12134 lt_prog_compiler_pic='-pic'
12135 lt_prog_compiler_static='-Bstatic'
12136 ;;
12137
12138 *)
12139 lt_prog_compiler_can_build_shared=no
12140 ;;
12141 esac
12142 fi
12143
12144 case $host_os in
12145 # For platforms that do not support PIC, -DPIC is meaningless:
12146 *djgpp*)
12147 lt_prog_compiler_pic=
12148 ;;
12149 *)
12150 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12151 ;;
12152 esac
12153
12154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12155 printf %s "checking for $compiler option to produce PIC... " >&6; }
12156 if test ${lt_cv_prog_compiler_pic+y}
12157 then :
12158 printf %s "(cached) " >&6
12159 else case e in #(
12160 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12161 esac
12162 fi
12163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12164 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12165 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12166
12167 #
12168 # Check to make sure the PIC flag actually works.
12169 #
12170 if test -n "$lt_prog_compiler_pic"; then
12171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12172 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12173 if test ${lt_cv_prog_compiler_pic_works+y}
12174 then :
12175 printf %s "(cached) " >&6
12176 else case e in #(
12177 e) lt_cv_prog_compiler_pic_works=no
12178 ac_outfile=conftest.$ac_objext
12179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12180 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12181 # Insert the option either (1) after the last *FLAGS variable, or
12182 # (2) before a word containing "conftest.", or (3) at the end.
12183 # Note that $ac_compile itself does not contain backslashes and begins
12184 # with a dollar sign (not a hyphen), so the echo should work correctly.
12185 # The option is referenced via a variable to avoid confusing sed.
12186 lt_compile=`echo "$ac_compile" | $SED \
12187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12189 -e 's:$: $lt_compiler_flag:'`
12190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12191 (eval "$lt_compile" 2>conftest.err)
12192 ac_status=$?
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 if (exit $ac_status) && test -s "$ac_outfile"; then
12196 # The compiler can only warn and ignore the option if not recognized
12197 # So say no if there are warnings other than the usual output.
12198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12200 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12201 lt_cv_prog_compiler_pic_works=yes
12202 fi
12203 fi
12204 $RM conftest*
12205 ;;
12206 esac
12207 fi
12208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12209 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12210
12211 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12212 case $lt_prog_compiler_pic in
12213 "" | " "*) ;;
12214 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12215 esac
12216 else
12217 lt_prog_compiler_pic=
12218 lt_prog_compiler_can_build_shared=no
12219 fi
12220
12221 fi
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233 #
12234 # Check to make sure the static flag actually works.
12235 #
12236 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12238 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12239 if test ${lt_cv_prog_compiler_static_works+y}
12240 then :
12241 printf %s "(cached) " >&6
12242 else case e in #(
12243 e) lt_cv_prog_compiler_static_works=no
12244 save_LDFLAGS=$LDFLAGS
12245 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12246 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12248 # The linker can only warn and ignore the option if not recognized
12249 # So say no if there are warnings
12250 if test -s conftest.err; then
12251 # Append any errors to the config.log.
12252 cat conftest.err 1>&5
12253 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12255 if diff conftest.exp conftest.er2 >/dev/null; then
12256 lt_cv_prog_compiler_static_works=yes
12257 fi
12258 else
12259 lt_cv_prog_compiler_static_works=yes
12260 fi
12261 fi
12262 $RM -r conftest*
12263 LDFLAGS=$save_LDFLAGS
12264 ;;
12265 esac
12266 fi
12267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12268 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12269
12270 if test yes = "$lt_cv_prog_compiler_static_works"; then
12271 :
12272 else
12273 lt_prog_compiler_static=
12274 fi
12275
12276
12277
12278
12279
12280
12281
12282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12283 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12284 if test ${lt_cv_prog_compiler_c_o+y}
12285 then :
12286 printf %s "(cached) " >&6
12287 else case e in #(
12288 e) lt_cv_prog_compiler_c_o=no
12289 $RM -r conftest 2>/dev/null
12290 mkdir conftest
12291 cd conftest
12292 mkdir out
12293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12294
12295 lt_compiler_flag="-o out/conftest2.$ac_objext"
12296 # Insert the option either (1) after the last *FLAGS variable, or
12297 # (2) before a word containing "conftest.", or (3) at the end.
12298 # Note that $ac_compile itself does not contain backslashes and begins
12299 # with a dollar sign (not a hyphen), so the echo should work correctly.
12300 lt_compile=`echo "$ac_compile" | $SED \
12301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12303 -e 's:$: $lt_compiler_flag:'`
12304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12305 (eval "$lt_compile" 2>out/conftest.err)
12306 ac_status=$?
12307 cat out/conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12310 then
12311 # The compiler can only warn and ignore the option if not recognized
12312 # So say no if there are warnings
12313 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12316 lt_cv_prog_compiler_c_o=yes
12317 fi
12318 fi
12319 chmod u+w . 2>&5
12320 $RM conftest*
12321 # SGI C++ compiler will create directory out/ii_files/ for
12322 # template instantiation
12323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12324 $RM out/* && rmdir out
12325 cd ..
12326 $RM -r conftest
12327 $RM conftest*
12328 ;;
12329 esac
12330 fi
12331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12332 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12333
12334
12335
12336
12337
12338
12339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12340 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12341 if test ${lt_cv_prog_compiler_c_o+y}
12342 then :
12343 printf %s "(cached) " >&6
12344 else case e in #(
12345 e) lt_cv_prog_compiler_c_o=no
12346 $RM -r conftest 2>/dev/null
12347 mkdir conftest
12348 cd conftest
12349 mkdir out
12350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12351
12352 lt_compiler_flag="-o out/conftest2.$ac_objext"
12353 # Insert the option either (1) after the last *FLAGS variable, or
12354 # (2) before a word containing "conftest.", or (3) at the end.
12355 # Note that $ac_compile itself does not contain backslashes and begins
12356 # with a dollar sign (not a hyphen), so the echo should work correctly.
12357 lt_compile=`echo "$ac_compile" | $SED \
12358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12360 -e 's:$: $lt_compiler_flag:'`
12361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12362 (eval "$lt_compile" 2>out/conftest.err)
12363 ac_status=$?
12364 cat out/conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12367 then
12368 # The compiler can only warn and ignore the option if not recognized
12369 # So say no if there are warnings
12370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12373 lt_cv_prog_compiler_c_o=yes
12374 fi
12375 fi
12376 chmod u+w . 2>&5
12377 $RM conftest*
12378 # SGI C++ compiler will create directory out/ii_files/ for
12379 # template instantiation
12380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12381 $RM out/* && rmdir out
12382 cd ..
12383 $RM -r conftest
12384 $RM conftest*
12385 ;;
12386 esac
12387 fi
12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12389 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12390
12391
12392
12393
12394 hard_links=nottested
12395 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12396 # do not overwrite the value of need_locks provided by the user
12397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12398 printf %s "checking if we can lock with hard links... " >&6; }
12399 hard_links=yes
12400 $RM conftest*
12401 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12402 touch conftest.a
12403 ln conftest.a conftest.b 2>&5 || hard_links=no
12404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12406 printf "%s\n" "$hard_links" >&6; }
12407 if test no = "$hard_links"; then
12408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12409 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12410 need_locks=warn
12411 fi
12412 else
12413 need_locks=no
12414 fi
12415
12416
12417
12418
12419
12420
12421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12422 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12423
12424 runpath_var=
12425 allow_undefined_flag=
12426 always_export_symbols=no
12427 archive_cmds=
12428 archive_expsym_cmds=
12429 compiler_needs_object=no
12430 enable_shared_with_static_runtimes=no
12431 export_dynamic_flag_spec=
12432 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12433 hardcode_automatic=no
12434 hardcode_direct=no
12435 hardcode_direct_absolute=no
12436 hardcode_libdir_flag_spec=
12437 hardcode_libdir_separator=
12438 hardcode_minus_L=no
12439 hardcode_shlibpath_var=unsupported
12440 inherit_rpath=no
12441 link_all_deplibs=unknown
12442 module_cmds=
12443 module_expsym_cmds=
12444 old_archive_from_new_cmds=
12445 old_archive_from_expsyms_cmds=
12446 thread_safe_flag_spec=
12447 whole_archive_flag_spec=
12448 # include_expsyms should be a list of space-separated symbols to be *always*
12449 # included in the symbol list
12450 include_expsyms=
12451 # exclude_expsyms can be an extended regexp of symbols to exclude
12452 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12453 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12454 # as well as any symbol that contains 'd'.
12455 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12456 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12457 # platforms (ab)use it in PIC code, but their linkers get confused if
12458 # the symbol is explicitly referenced. Since portable code cannot
12459 # rely on this symbol name, it's probably fine to never include it in
12460 # preloaded symbol tables.
12461 # Exclude shared library initialization/finalization symbols.
12462 extract_expsyms_cmds=
12463
12464 case $host_os in
12465 cygwin* | mingw* | windows* | pw32* | cegcc*)
12466 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12467 # When not using gcc, we currently assume that we are using
12468 # Microsoft Visual C++ or Intel C++ Compiler.
12469 if test yes != "$GCC"; then
12470 with_gnu_ld=no
12471 fi
12472 ;;
12473 interix*)
12474 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12475 with_gnu_ld=yes
12476 ;;
12477 linux* | k*bsd*-gnu | gnu*)
12478 link_all_deplibs=no
12479 ;;
12480 esac
12481
12482 ld_shlibs=yes
12483
12484 # On some targets, GNU ld is compatible enough with the native linker
12485 # that we're better off using the native interface for both.
12486 lt_use_gnu_ld_interface=no
12487 if test yes = "$with_gnu_ld"; then
12488 case $host_os in
12489 aix*)
12490 # The AIX port of GNU ld has always aspired to compatibility
12491 # with the native linker. However, as the warning in the GNU ld
12492 # block says, versions before 2.19.5* couldn't really create working
12493 # shared libraries, regardless of the interface used.
12494 case `$LD -v 2>&1` in
12495 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12496 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12497 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12498 *)
12499 lt_use_gnu_ld_interface=yes
12500 ;;
12501 esac
12502 ;;
12503 *)
12504 lt_use_gnu_ld_interface=yes
12505 ;;
12506 esac
12507 fi
12508
12509 if test yes = "$lt_use_gnu_ld_interface"; then
12510 # If archive_cmds runs LD, not CC, wlarc should be empty
12511 wlarc='$wl'
12512
12513 # Set some defaults for GNU ld with shared library support. These
12514 # are reset later if shared libraries are not supported. Putting them
12515 # here allows them to be overridden if necessary.
12516 runpath_var=LD_RUN_PATH
12517 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12518 export_dynamic_flag_spec='$wl--export-dynamic'
12519 # ancient GNU ld didn't support --whole-archive et. al.
12520 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12521 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12522 else
12523 whole_archive_flag_spec=
12524 fi
12525 supports_anon_versioning=no
12526 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12527 *GNU\ gold*) supports_anon_versioning=yes ;;
12528 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12529 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12530 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12531 *\ 2.11.*) ;; # other 2.11 versions
12532 *) supports_anon_versioning=yes ;;
12533 esac
12534
12535 # See if GNU ld supports shared libraries.
12536 case $host_os in
12537 aix[3-9]*)
12538 # On AIX/PPC, the GNU linker is very broken
12539 if test ia64 != "$host_cpu"; then
12540 ld_shlibs=no
12541 cat <<_LT_EOF 1>&2
12542
12543 *** Warning: the GNU linker, at least up to release 2.19, is reported
12544 *** to be unable to reliably create shared libraries on AIX.
12545 *** Therefore, libtool is disabling shared libraries support. If you
12546 *** really care for shared libraries, you may want to install binutils
12547 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12548 *** You will then need to restart the configuration process.
12549
12550 _LT_EOF
12551 fi
12552 ;;
12553
12554 amigaos*)
12555 case $host_cpu in
12556 powerpc)
12557 # see comment about AmigaOS4 .so support
12558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12559 archive_expsym_cmds=''
12560 ;;
12561 m68k)
12562 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)'
12563 hardcode_libdir_flag_spec='-L$libdir'
12564 hardcode_minus_L=yes
12565 ;;
12566 esac
12567 ;;
12568
12569 beos*)
12570 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12571 allow_undefined_flag=unsupported
12572 # Joseph Beckenbach <[email protected]> says some releases of gcc
12573 # support --undefined. This deserves some investigation. FIXME
12574 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12575 else
12576 ld_shlibs=no
12577 fi
12578 ;;
12579
12580 cygwin* | mingw* | windows* | pw32* | cegcc*)
12581 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12582 # as there is no search path for DLLs.
12583 hardcode_libdir_flag_spec='-L$libdir'
12584 export_dynamic_flag_spec='$wl--export-all-symbols'
12585 allow_undefined_flag=unsupported
12586 always_export_symbols=no
12587 enable_shared_with_static_runtimes=yes
12588 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'
12589 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12590 file_list_spec='@'
12591
12592 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12594 # If the export-symbols file already is a .def file, use it as
12595 # is; otherwise, prepend EXPORTS...
12596 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12597 cp $export_symbols $output_objdir/$soname.def;
12598 else
12599 echo EXPORTS > $output_objdir/$soname.def;
12600 cat $export_symbols >> $output_objdir/$soname.def;
12601 fi~
12602 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12603 else
12604 ld_shlibs=no
12605 fi
12606 ;;
12607
12608 haiku*)
12609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12610 link_all_deplibs=no
12611 ;;
12612
12613 os2*)
12614 hardcode_libdir_flag_spec='-L$libdir'
12615 hardcode_minus_L=yes
12616 allow_undefined_flag=unsupported
12617 shrext_cmds=.dll
12618 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12619 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12620 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12621 $ECHO EXPORTS >> $output_objdir/$libname.def~
12622 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12623 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12624 emximp -o $lib $output_objdir/$libname.def'
12625 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12626 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12627 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12628 $ECHO EXPORTS >> $output_objdir/$libname.def~
12629 prefix_cmds="$SED"~
12630 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12631 prefix_cmds="$prefix_cmds -e 1d";
12632 fi~
12633 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12634 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12635 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12636 emximp -o $lib $output_objdir/$libname.def'
12637 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12638 enable_shared_with_static_runtimes=yes
12639 file_list_spec='@'
12640 ;;
12641
12642 interix[3-9]*)
12643 hardcode_direct=no
12644 hardcode_shlibpath_var=no
12645 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12646 export_dynamic_flag_spec='$wl-E'
12647 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12648 # Instead, shared libraries are loaded at an image base (0x10000000 by
12649 # default) and relocated if they conflict, which is a slow very memory
12650 # consuming and fragmenting process. To avoid this, we pick a random,
12651 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12652 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12653 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12654 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'
12655 ;;
12656
12657 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12658 tmp_diet=no
12659 if test linux-dietlibc = "$host_os"; then
12660 case $cc_basename in
12661 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12662 esac
12663 fi
12664 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12665 && test no = "$tmp_diet"
12666 then
12667 tmp_addflag=' $pic_flag'
12668 tmp_sharedflag='-shared'
12669 case $cc_basename,$host_cpu in
12670 pgcc*) # Portland Group C compiler
12671 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'
12672 tmp_addflag=' $pic_flag'
12673 ;;
12674 pgf77* | pgf90* | pgf95* | pgfortran*)
12675 # Portland Group f77 and f90 compilers
12676 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'
12677 tmp_addflag=' $pic_flag -Mnomain' ;;
12678 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12679 tmp_addflag=' -i_dynamic' ;;
12680 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12681 tmp_addflag=' -i_dynamic -nofor_main' ;;
12682 ifc* | ifort*) # Intel Fortran compiler
12683 tmp_addflag=' -nofor_main' ;;
12684 lf95*) # Lahey Fortran 8.1
12685 whole_archive_flag_spec=
12686 tmp_sharedflag='--shared' ;;
12687 nagfor*) # NAGFOR 5.3
12688 tmp_sharedflag='-Wl,-shared' ;;
12689 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12690 tmp_sharedflag='-qmkshrobj'
12691 tmp_addflag= ;;
12692 nvcc*) # Cuda Compiler Driver 2.2
12693 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'
12694 compiler_needs_object=yes
12695 ;;
12696 esac
12697 case `$CC -V 2>&1 | $SED 5q` in
12698 *Sun\ C*) # Sun C 5.9
12699 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'
12700 compiler_needs_object=yes
12701 tmp_sharedflag='-G' ;;
12702 *Sun\ F*) # Sun Fortran 8.3
12703 tmp_sharedflag='-G' ;;
12704 esac
12705 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12706
12707 if test yes = "$supports_anon_versioning"; then
12708 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12709 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12710 echo "local: *; };" >> $output_objdir/$libname.ver~
12711 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12712 fi
12713
12714 case $cc_basename in
12715 tcc*)
12716 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12717 export_dynamic_flag_spec='-rdynamic'
12718 ;;
12719 xlf* | bgf* | bgxlf* | mpixlf*)
12720 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12721 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12722 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12723 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12724 if test yes = "$supports_anon_versioning"; then
12725 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12726 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12727 echo "local: *; };" >> $output_objdir/$libname.ver~
12728 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12729 fi
12730 ;;
12731 esac
12732 else
12733 ld_shlibs=no
12734 fi
12735 ;;
12736
12737 *-mlibc)
12738 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12739 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12740 ;;
12741
12742 netbsd* | netbsdelf*-gnu)
12743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12744 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12745 wlarc=
12746 else
12747 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12748 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12749 fi
12750 ;;
12751
12752 solaris*)
12753 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12754 ld_shlibs=no
12755 cat <<_LT_EOF 1>&2
12756
12757 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12758 *** create shared libraries on Solaris systems. Therefore, libtool
12759 *** is disabling shared libraries support. We urge you to upgrade GNU
12760 *** binutils to release 2.9.1 or newer. Another option is to modify
12761 *** your PATH or compiler configuration so that the native linker is
12762 *** used, and then restart.
12763
12764 _LT_EOF
12765 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12767 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12768 else
12769 ld_shlibs=no
12770 fi
12771 ;;
12772
12773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12774 case `$LD -v 2>&1` in
12775 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12776 ld_shlibs=no
12777 cat <<_LT_EOF 1>&2
12778
12779 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12780 *** reliably create shared libraries on SCO systems. Therefore, libtool
12781 *** is disabling shared libraries support. We urge you to upgrade GNU
12782 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12783 *** your PATH or compiler configuration so that the native linker is
12784 *** used, and then restart.
12785
12786 _LT_EOF
12787 ;;
12788 *)
12789 # For security reasons, it is highly recommended that you always
12790 # use absolute paths for naming shared libraries, and exclude the
12791 # DT_RUNPATH tag from executables and libraries. But doing so
12792 # requires that you compile everything twice, which is a pain.
12793 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12794 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12797 else
12798 ld_shlibs=no
12799 fi
12800 ;;
12801 esac
12802 ;;
12803
12804 sunos4*)
12805 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12806 wlarc=
12807 hardcode_direct=yes
12808 hardcode_shlibpath_var=no
12809 ;;
12810
12811 *)
12812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12813 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12814 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12815 else
12816 ld_shlibs=no
12817 fi
12818 ;;
12819 esac
12820
12821 if test no = "$ld_shlibs"; then
12822 runpath_var=
12823 hardcode_libdir_flag_spec=
12824 export_dynamic_flag_spec=
12825 whole_archive_flag_spec=
12826 fi
12827 else
12828 # PORTME fill in a description of your system's linker (not GNU ld)
12829 case $host_os in
12830 aix3*)
12831 allow_undefined_flag=unsupported
12832 always_export_symbols=yes
12833 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'
12834 # Note: this linker hardcodes the directories in LIBPATH if there
12835 # are no directories specified by -L.
12836 hardcode_minus_L=yes
12837 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12838 # Neither direct hardcoding nor static linking is supported with a
12839 # broken collect2.
12840 hardcode_direct=unsupported
12841 fi
12842 ;;
12843
12844 aix[4-9]*)
12845 if test ia64 = "$host_cpu"; then
12846 # On IA64, the linker does run time linking by default, so we don't
12847 # have to do anything special.
12848 aix_use_runtimelinking=no
12849 exp_sym_flag='-Bexport'
12850 no_entry_flag=
12851 else
12852 # If we're using GNU nm, then we don't want the "-C" option.
12853 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12854 # Without the "-l" option, or with the "-B" option, AIX nm treats
12855 # weak defined symbols like other global defined symbols, whereas
12856 # GNU nm marks them as "W".
12857 # While the 'weak' keyword is ignored in the Export File, we need
12858 # it in the Import File for the 'aix-soname' feature, so we have
12859 # to replace the "-B" option with "-P" for AIX nm.
12860 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12861 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'
12862 else
12863 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'
12864 fi
12865 aix_use_runtimelinking=no
12866
12867 # Test if we are trying to use run time linking or normal
12868 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12869 # have runtime linking enabled, and use it for executables.
12870 # For shared libraries, we enable/disable runtime linking
12871 # depending on the kind of the shared library created -
12872 # when "with_aix_soname,aix_use_runtimelinking" is:
12873 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12874 # "aix,yes" lib.so shared, rtl:yes, for executables
12875 # lib.a static archive
12876 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12877 # lib.a(lib.so.V) shared, rtl:no, for executables
12878 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12879 # lib.a(lib.so.V) shared, rtl:no
12880 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12881 # lib.a static archive
12882 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12883 for ld_flag in $LDFLAGS; do
12884 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12885 aix_use_runtimelinking=yes
12886 break
12887 fi
12888 done
12889 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12890 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12891 # so we don't have lib.a shared libs to link our executables.
12892 # We have to force runtime linking in this case.
12893 aix_use_runtimelinking=yes
12894 LDFLAGS="$LDFLAGS -Wl,-brtl"
12895 fi
12896 ;;
12897 esac
12898
12899 exp_sym_flag='-bexport'
12900 no_entry_flag='-bnoentry'
12901 fi
12902
12903 # When large executables or shared objects are built, AIX ld can
12904 # have problems creating the table of contents. If linking a library
12905 # or program results in "error TOC overflow" add -mminimal-toc to
12906 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12907 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12908
12909 archive_cmds=''
12910 hardcode_direct=yes
12911 hardcode_direct_absolute=yes
12912 hardcode_libdir_separator=':'
12913 link_all_deplibs=yes
12914 file_list_spec='$wl-f,'
12915 case $with_aix_soname,$aix_use_runtimelinking in
12916 aix,*) ;; # traditional, no import file
12917 svr4,* | *,yes) # use import file
12918 # The Import File defines what to hardcode.
12919 hardcode_direct=no
12920 hardcode_direct_absolute=no
12921 ;;
12922 esac
12923
12924 if test yes = "$GCC"; then
12925 case $host_os in aix4.[012]|aix4.[012].*)
12926 # We only want to do this on AIX 4.2 and lower, the check
12927 # below for broken collect2 doesn't work under 4.3+
12928 collect2name=`$CC -print-prog-name=collect2`
12929 if test -f "$collect2name" &&
12930 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12931 then
12932 # We have reworked collect2
12933 :
12934 else
12935 # We have old collect2
12936 hardcode_direct=unsupported
12937 # It fails to find uninstalled libraries when the uninstalled
12938 # path is not listed in the libpath. Setting hardcode_minus_L
12939 # to unsupported forces relinking
12940 hardcode_minus_L=yes
12941 hardcode_libdir_flag_spec='-L$libdir'
12942 hardcode_libdir_separator=
12943 fi
12944 ;;
12945 esac
12946 shared_flag='-shared'
12947 if test yes = "$aix_use_runtimelinking"; then
12948 shared_flag="$shared_flag "'$wl-G'
12949 fi
12950 # Need to ensure runtime linking is disabled for the traditional
12951 # shared library, or the linker may eventually find shared libraries
12952 # /with/ Import File - we do not want to mix them.
12953 shared_flag_aix='-shared'
12954 shared_flag_svr4='-shared $wl-G'
12955 else
12956 # not using gcc
12957 if test ia64 = "$host_cpu"; then
12958 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12959 # chokes on -Wl,-G. The following line is correct:
12960 shared_flag='-G'
12961 else
12962 if test yes = "$aix_use_runtimelinking"; then
12963 shared_flag='$wl-G'
12964 else
12965 shared_flag='$wl-bM:SRE'
12966 fi
12967 shared_flag_aix='$wl-bM:SRE'
12968 shared_flag_svr4='$wl-G'
12969 fi
12970 fi
12971
12972 export_dynamic_flag_spec='$wl-bexpall'
12973 # It seems that -bexpall does not export symbols beginning with
12974 # underscore (_), so it is better to generate a list of symbols to export.
12975 always_export_symbols=yes
12976 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12977 # Warning - without using the other runtime loading flags (-brtl),
12978 # -berok will link without error, but may produce a broken library.
12979 allow_undefined_flag='-berok'
12980 # Determine the default libpath from the value encoded in an
12981 # empty executable.
12982 if test set = "${lt_cv_aix_libpath+set}"; then
12983 aix_libpath=$lt_cv_aix_libpath
12984 else
12985 if test ${lt_cv_aix_libpath_+y}
12986 then :
12987 printf %s "(cached) " >&6
12988 else case e in #(
12989 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12991
12992 int
12993 main (void)
12994 {
12995
12996 ;
12997 return 0;
12998 }
12999 _ACEOF
13000 if ac_fn_c_try_link "$LINENO"
13001 then :
13002
13003 lt_aix_libpath_sed='
13004 /Import File Strings/,/^$/ {
13005 /^0/ {
13006 s/^0 *\([^ ]*\) *$/\1/
13007 p
13008 }
13009 }'
13010 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13011 # Check for a 64-bit object if we didn't find anything.
13012 if test -z "$lt_cv_aix_libpath_"; then
13013 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13014 fi
13015 fi
13016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13017 conftest$ac_exeext conftest.$ac_ext
13018 if test -z "$lt_cv_aix_libpath_"; then
13019 lt_cv_aix_libpath_=/usr/lib:/lib
13020 fi
13021 ;;
13022 esac
13023 fi
13024
13025 aix_libpath=$lt_cv_aix_libpath_
13026 fi
13027
13028 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13029 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
13030 else
13031 if test ia64 = "$host_cpu"; then
13032 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13033 allow_undefined_flag="-z nodefs"
13034 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"
13035 else
13036 # Determine the default libpath from the value encoded in an
13037 # empty executable.
13038 if test set = "${lt_cv_aix_libpath+set}"; then
13039 aix_libpath=$lt_cv_aix_libpath
13040 else
13041 if test ${lt_cv_aix_libpath_+y}
13042 then :
13043 printf %s "(cached) " >&6
13044 else case e in #(
13045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13047
13048 int
13049 main (void)
13050 {
13051
13052 ;
13053 return 0;
13054 }
13055 _ACEOF
13056 if ac_fn_c_try_link "$LINENO"
13057 then :
13058
13059 lt_aix_libpath_sed='
13060 /Import File Strings/,/^$/ {
13061 /^0/ {
13062 s/^0 *\([^ ]*\) *$/\1/
13063 p
13064 }
13065 }'
13066 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13067 # Check for a 64-bit object if we didn't find anything.
13068 if test -z "$lt_cv_aix_libpath_"; then
13069 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13070 fi
13071 fi
13072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13073 conftest$ac_exeext conftest.$ac_ext
13074 if test -z "$lt_cv_aix_libpath_"; then
13075 lt_cv_aix_libpath_=/usr/lib:/lib
13076 fi
13077 ;;
13078 esac
13079 fi
13080
13081 aix_libpath=$lt_cv_aix_libpath_
13082 fi
13083
13084 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13085 # Warning - without using the other run time loading flags,
13086 # -berok will link without error, but may produce a broken library.
13087 no_undefined_flag=' $wl-bernotok'
13088 allow_undefined_flag=' $wl-berok'
13089 if test yes = "$with_gnu_ld"; then
13090 # We only use this code for GNU lds that support --whole-archive.
13091 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13092 else
13093 # Exported symbols can be pulled into shared objects from archives
13094 whole_archive_flag_spec='$convenience'
13095 fi
13096 archive_cmds_need_lc=yes
13097 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13098 # -brtl affects multiple linker settings, -berok does not and is overridden later
13099 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13100 if test svr4 != "$with_aix_soname"; then
13101 # This is similar to how AIX traditionally builds its shared libraries.
13102 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'
13103 fi
13104 if test aix != "$with_aix_soname"; then
13105 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'
13106 else
13107 # used by -dlpreopen to get the symbols
13108 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13109 fi
13110 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13111 fi
13112 fi
13113 ;;
13114
13115 amigaos*)
13116 case $host_cpu in
13117 powerpc)
13118 # see comment about AmigaOS4 .so support
13119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13120 archive_expsym_cmds=''
13121 ;;
13122 m68k)
13123 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)'
13124 hardcode_libdir_flag_spec='-L$libdir'
13125 hardcode_minus_L=yes
13126 ;;
13127 esac
13128 ;;
13129
13130 bsdi[45]*)
13131 export_dynamic_flag_spec=-rdynamic
13132 ;;
13133
13134 cygwin* | mingw* | windows* | pw32* | cegcc*)
13135 # When not using gcc, we currently assume that we are using
13136 # Microsoft Visual C++ or Intel C++ Compiler.
13137 # hardcode_libdir_flag_spec is actually meaningless, as there is
13138 # no search path for DLLs.
13139 case $cc_basename in
13140 cl* | icl*)
13141 # Native MSVC or ICC
13142 hardcode_libdir_flag_spec=' '
13143 allow_undefined_flag=unsupported
13144 always_export_symbols=yes
13145 file_list_spec='@'
13146 # Tell ltmain to make .lib files, not .a files.
13147 libext=lib
13148 # Tell ltmain to make .dll files, not .so files.
13149 shrext_cmds=.dll
13150 # FIXME: Setting linknames here is a bad hack.
13151 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13152 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13153 cp "$export_symbols" "$output_objdir/$soname.def";
13154 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13155 else
13156 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13157 fi~
13158 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13159 linknames='
13160 # The linker will not automatically build a static lib if we build a DLL.
13161 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13162 enable_shared_with_static_runtimes=yes
13163 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13164 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13165 # Don't use ranlib
13166 old_postinstall_cmds='chmod 644 $oldlib'
13167 postlink_cmds='lt_outputfile="@OUTPUT@"~
13168 lt_tool_outputfile="@TOOL_OUTPUT@"~
13169 case $lt_outputfile in
13170 *.exe|*.EXE) ;;
13171 *)
13172 lt_outputfile=$lt_outputfile.exe
13173 lt_tool_outputfile=$lt_tool_outputfile.exe
13174 ;;
13175 esac~
13176 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13177 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13178 $RM "$lt_outputfile.manifest";
13179 fi'
13180 ;;
13181 *)
13182 # Assume MSVC and ICC wrapper
13183 hardcode_libdir_flag_spec=' '
13184 allow_undefined_flag=unsupported
13185 # Tell ltmain to make .lib files, not .a files.
13186 libext=lib
13187 # Tell ltmain to make .dll files, not .so files.
13188 shrext_cmds=.dll
13189 # FIXME: Setting linknames here is a bad hack.
13190 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13191 # The linker will automatically build a .lib file if we build a DLL.
13192 old_archive_from_new_cmds='true'
13193 # FIXME: Should let the user specify the lib program.
13194 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13195 enable_shared_with_static_runtimes=yes
13196 ;;
13197 esac
13198 ;;
13199
13200 darwin* | rhapsody*)
13201
13202
13203 archive_cmds_need_lc=no
13204 hardcode_direct=no
13205 hardcode_automatic=yes
13206 hardcode_shlibpath_var=unsupported
13207 if test yes = "$lt_cv_ld_force_load"; then
13208 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\"`'
13209
13210 else
13211 whole_archive_flag_spec=''
13212 fi
13213 link_all_deplibs=yes
13214 allow_undefined_flag=$_lt_dar_allow_undefined
13215 case $cc_basename in
13216 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13217 *) _lt_dar_can_shared=$GCC ;;
13218 esac
13219 if test yes = "$_lt_dar_can_shared"; then
13220 output_verbose_link_cmd=func_echo_all
13221 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13222 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13223 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"
13224 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"
13225
13226 else
13227 ld_shlibs=no
13228 fi
13229
13230 ;;
13231
13232 dgux*)
13233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13234 hardcode_libdir_flag_spec='-L$libdir'
13235 hardcode_shlibpath_var=no
13236 ;;
13237
13238 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13239 # support. Future versions do this automatically, but an explicit c++rt0.o
13240 # does not break anything, and helps significantly (at the cost of a little
13241 # extra space).
13242 freebsd2.2*)
13243 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13244 hardcode_libdir_flag_spec='-R$libdir'
13245 hardcode_direct=yes
13246 hardcode_shlibpath_var=no
13247 ;;
13248
13249 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13250 freebsd2.*)
13251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13252 hardcode_direct=yes
13253 hardcode_minus_L=yes
13254 hardcode_shlibpath_var=no
13255 ;;
13256
13257 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13258 freebsd* | dragonfly* | midnightbsd*)
13259 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13260 hardcode_libdir_flag_spec='-R$libdir'
13261 hardcode_direct=yes
13262 hardcode_shlibpath_var=no
13263 ;;
13264
13265 hpux9*)
13266 if test yes = "$GCC"; then
13267 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'
13268 else
13269 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'
13270 fi
13271 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13272 hardcode_libdir_separator=:
13273 hardcode_direct=yes
13274
13275 # hardcode_minus_L: Not really in the search PATH,
13276 # but as the default location of the library.
13277 hardcode_minus_L=yes
13278 export_dynamic_flag_spec='$wl-E'
13279 ;;
13280
13281 hpux10*)
13282 if test yes,no = "$GCC,$with_gnu_ld"; then
13283 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13284 else
13285 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13286 fi
13287 if test no = "$with_gnu_ld"; then
13288 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13289 hardcode_libdir_separator=:
13290 hardcode_direct=yes
13291 hardcode_direct_absolute=yes
13292 export_dynamic_flag_spec='$wl-E'
13293 # hardcode_minus_L: Not really in the search PATH,
13294 # but as the default location of the library.
13295 hardcode_minus_L=yes
13296 fi
13297 ;;
13298
13299 hpux11*)
13300 if test yes,no = "$GCC,$with_gnu_ld"; then
13301 case $host_cpu in
13302 hppa*64*)
13303 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13304 ;;
13305 ia64*)
13306 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13307 ;;
13308 *)
13309 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13310 ;;
13311 esac
13312 else
13313 case $host_cpu in
13314 hppa*64*)
13315 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13316 ;;
13317 ia64*)
13318 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13319 ;;
13320 *)
13321
13322 # Older versions of the 11.00 compiler do not understand -b yet
13323 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13325 printf %s "checking if $CC understands -b... " >&6; }
13326 if test ${lt_cv_prog_compiler__b+y}
13327 then :
13328 printf %s "(cached) " >&6
13329 else case e in #(
13330 e) lt_cv_prog_compiler__b=no
13331 save_LDFLAGS=$LDFLAGS
13332 LDFLAGS="$LDFLAGS -b"
13333 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13334 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13335 # The linker can only warn and ignore the option if not recognized
13336 # So say no if there are warnings
13337 if test -s conftest.err; then
13338 # Append any errors to the config.log.
13339 cat conftest.err 1>&5
13340 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13342 if diff conftest.exp conftest.er2 >/dev/null; then
13343 lt_cv_prog_compiler__b=yes
13344 fi
13345 else
13346 lt_cv_prog_compiler__b=yes
13347 fi
13348 fi
13349 $RM -r conftest*
13350 LDFLAGS=$save_LDFLAGS
13351 ;;
13352 esac
13353 fi
13354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13355 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13356
13357 if test yes = "$lt_cv_prog_compiler__b"; then
13358 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13359 else
13360 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13361 fi
13362
13363 ;;
13364 esac
13365 fi
13366 if test no = "$with_gnu_ld"; then
13367 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13368 hardcode_libdir_separator=:
13369
13370 case $host_cpu in
13371 hppa*64*|ia64*)
13372 hardcode_direct=no
13373 hardcode_shlibpath_var=no
13374 ;;
13375 *)
13376 hardcode_direct=yes
13377 hardcode_direct_absolute=yes
13378 export_dynamic_flag_spec='$wl-E'
13379
13380 # hardcode_minus_L: Not really in the search PATH,
13381 # but as the default location of the library.
13382 hardcode_minus_L=yes
13383 ;;
13384 esac
13385 fi
13386 ;;
13387
13388 irix5* | irix6* | nonstopux*)
13389 if test yes = "$GCC"; then
13390 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'
13391 # Try to use the -exported_symbol ld option, if it does not
13392 # work, assume that -exports_file does not work either and
13393 # implicitly export all symbols.
13394 # This should be the same for all languages, so no per-tag cache variable.
13395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13396 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13397 if test ${lt_cv_irix_exported_symbol+y}
13398 then :
13399 printf %s "(cached) " >&6
13400 else case e in #(
13401 e) save_LDFLAGS=$LDFLAGS
13402 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404 /* end confdefs.h. */
13405 int foo (void) { return 0; }
13406 _ACEOF
13407 if ac_fn_c_try_link "$LINENO"
13408 then :
13409 lt_cv_irix_exported_symbol=yes
13410 else case e in #(
13411 e) lt_cv_irix_exported_symbol=no ;;
13412 esac
13413 fi
13414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13415 conftest$ac_exeext conftest.$ac_ext
13416 LDFLAGS=$save_LDFLAGS ;;
13417 esac
13418 fi
13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13420 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13421 if test yes = "$lt_cv_irix_exported_symbol"; then
13422 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'
13423 fi
13424 link_all_deplibs=no
13425 else
13426 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'
13427 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'
13428 fi
13429 archive_cmds_need_lc='no'
13430 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13431 hardcode_libdir_separator=:
13432 inherit_rpath=yes
13433 link_all_deplibs=yes
13434 ;;
13435
13436 linux*)
13437 case $cc_basename in
13438 tcc*)
13439 # Fabrice Bellard et al's Tiny C Compiler
13440 ld_shlibs=yes
13441 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13442 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13443 ;;
13444 esac
13445 ;;
13446
13447 *-mlibc)
13448 ;;
13449
13450 netbsd* | netbsdelf*-gnu)
13451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13453 else
13454 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13455 fi
13456 hardcode_libdir_flag_spec='-R$libdir'
13457 hardcode_direct=yes
13458 hardcode_shlibpath_var=no
13459 ;;
13460
13461 newsos6)
13462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13463 hardcode_direct=yes
13464 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13465 hardcode_libdir_separator=:
13466 hardcode_shlibpath_var=no
13467 ;;
13468
13469 *nto* | *qnx*)
13470 ;;
13471
13472 openbsd*)
13473 if test -f /usr/libexec/ld.so; then
13474 hardcode_direct=yes
13475 hardcode_shlibpath_var=no
13476 hardcode_direct_absolute=yes
13477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13479 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13480 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13481 export_dynamic_flag_spec='$wl-E'
13482 else
13483 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13484 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13485 fi
13486 else
13487 ld_shlibs=no
13488 fi
13489 ;;
13490
13491 os2*)
13492 hardcode_libdir_flag_spec='-L$libdir'
13493 hardcode_minus_L=yes
13494 allow_undefined_flag=unsupported
13495 shrext_cmds=.dll
13496 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13497 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13498 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13499 $ECHO EXPORTS >> $output_objdir/$libname.def~
13500 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13501 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13502 emximp -o $lib $output_objdir/$libname.def'
13503 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13504 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13505 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13506 $ECHO EXPORTS >> $output_objdir/$libname.def~
13507 prefix_cmds="$SED"~
13508 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13509 prefix_cmds="$prefix_cmds -e 1d";
13510 fi~
13511 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13512 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13513 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13514 emximp -o $lib $output_objdir/$libname.def'
13515 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13516 enable_shared_with_static_runtimes=yes
13517 file_list_spec='@'
13518 ;;
13519
13520 osf3*)
13521 if test yes = "$GCC"; then
13522 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13523 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'
13524 else
13525 allow_undefined_flag=' -expect_unresolved \*'
13526 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'
13527 fi
13528 archive_cmds_need_lc='no'
13529 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13530 hardcode_libdir_separator=:
13531 ;;
13532
13533 osf4* | osf5*) # as osf3* with the addition of -msym flag
13534 if test yes = "$GCC"; then
13535 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13536 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'
13537 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13538 else
13539 allow_undefined_flag=' -expect_unresolved \*'
13540 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'
13541 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~
13542 $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'
13543
13544 # Both c and cxx compiler support -rpath directly
13545 hardcode_libdir_flag_spec='-rpath $libdir'
13546 fi
13547 archive_cmds_need_lc='no'
13548 hardcode_libdir_separator=:
13549 ;;
13550
13551 serenity*)
13552 ;;
13553
13554 solaris*)
13555 no_undefined_flag=' -z defs'
13556 if test yes = "$GCC"; then
13557 wlarc='$wl'
13558 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13559 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13560 $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'
13561 else
13562 case `$CC -V 2>&1` in
13563 *"Compilers 5.0"*)
13564 wlarc=''
13565 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13566 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13567 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13568 ;;
13569 *)
13570 wlarc='$wl'
13571 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13572 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13573 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13574 ;;
13575 esac
13576 fi
13577 hardcode_libdir_flag_spec='-R$libdir'
13578 hardcode_shlibpath_var=no
13579 case $host_os in
13580 solaris2.[0-5] | solaris2.[0-5].*) ;;
13581 *)
13582 # The compiler driver will combine and reorder linker options,
13583 # but understands '-z linker_flag'. GCC discards it without '$wl',
13584 # but is careful enough not to reorder.
13585 # Supported since Solaris 2.6 (maybe 2.5.1?)
13586 if test yes = "$GCC"; then
13587 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13588 else
13589 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13590 fi
13591 ;;
13592 esac
13593 link_all_deplibs=yes
13594 ;;
13595
13596 sunos4*)
13597 if test sequent = "$host_vendor"; then
13598 # Use $CC to link under sequent, because it throws in some extra .o
13599 # files that make .init and .fini sections work.
13600 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13601 else
13602 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13603 fi
13604 hardcode_libdir_flag_spec='-L$libdir'
13605 hardcode_direct=yes
13606 hardcode_minus_L=yes
13607 hardcode_shlibpath_var=no
13608 ;;
13609
13610 sysv4)
13611 case $host_vendor in
13612 sni)
13613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13614 hardcode_direct=yes # is this really true???
13615 ;;
13616 siemens)
13617 ## LD is ld it makes a PLAMLIB
13618 ## CC just makes a GrossModule.
13619 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13620 reload_cmds='$CC -r -o $output$reload_objs'
13621 hardcode_direct=no
13622 ;;
13623 motorola)
13624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13626 ;;
13627 esac
13628 runpath_var='LD_RUN_PATH'
13629 hardcode_shlibpath_var=no
13630 ;;
13631
13632 sysv4.3*)
13633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13634 hardcode_shlibpath_var=no
13635 export_dynamic_flag_spec='-Bexport'
13636 ;;
13637
13638 sysv4*MP*)
13639 if test -d /usr/nec; then
13640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13641 hardcode_shlibpath_var=no
13642 runpath_var=LD_RUN_PATH
13643 hardcode_runpath_var=yes
13644 ld_shlibs=yes
13645 fi
13646 ;;
13647
13648 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13649 no_undefined_flag='$wl-z,text'
13650 archive_cmds_need_lc=no
13651 hardcode_shlibpath_var=no
13652 runpath_var='LD_RUN_PATH'
13653
13654 if test yes = "$GCC"; then
13655 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13656 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13657 else
13658 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13659 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13660 fi
13661 ;;
13662
13663 sysv5* | sco3.2v5* | sco5v6*)
13664 # Note: We CANNOT use -z defs as we might desire, because we do not
13665 # link with -lc, and that would cause any symbols used from libc to
13666 # always be unresolved, which means just about no library would
13667 # ever link correctly. If we're not using GNU ld we use -z text
13668 # though, which does catch some bad symbols but isn't as heavy-handed
13669 # as -z defs.
13670 no_undefined_flag='$wl-z,text'
13671 allow_undefined_flag='$wl-z,nodefs'
13672 archive_cmds_need_lc=no
13673 hardcode_shlibpath_var=no
13674 hardcode_libdir_flag_spec='$wl-R,$libdir'
13675 hardcode_libdir_separator=':'
13676 link_all_deplibs=yes
13677 export_dynamic_flag_spec='$wl-Bexport'
13678 runpath_var='LD_RUN_PATH'
13679
13680 if test yes = "$GCC"; then
13681 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13682 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13683 else
13684 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13685 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13686 fi
13687 ;;
13688
13689 uts4*)
13690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13691 hardcode_libdir_flag_spec='-L$libdir'
13692 hardcode_shlibpath_var=no
13693 ;;
13694
13695 *)
13696 ld_shlibs=no
13697 ;;
13698 esac
13699
13700 if test sni = "$host_vendor"; then
13701 case $host in
13702 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13703 export_dynamic_flag_spec='$wl-Blargedynsym'
13704 ;;
13705 esac
13706 fi
13707 fi
13708
13709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13710 printf "%s\n" "$ld_shlibs" >&6; }
13711 test no = "$ld_shlibs" && can_build_shared=no
13712
13713 with_gnu_ld=$with_gnu_ld
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729 #
13730 # Do we need to explicitly link libc?
13731 #
13732 case "x$archive_cmds_need_lc" in
13733 x|xyes)
13734 # Assume -lc should be added
13735 archive_cmds_need_lc=yes
13736
13737 if test yes,yes = "$GCC,$enable_shared"; then
13738 case $archive_cmds in
13739 *'~'*)
13740 # FIXME: we may have to deal with multi-command sequences.
13741 ;;
13742 '$CC '*)
13743 # Test whether the compiler implicitly links with -lc since on some
13744 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13745 # to ld, don't add -lc before -lgcc.
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13747 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13748 if test ${lt_cv_archive_cmds_need_lc+y}
13749 then :
13750 printf %s "(cached) " >&6
13751 else case e in #(
13752 e) $RM conftest*
13753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13754
13755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13756 (eval $ac_compile) 2>&5
13757 ac_status=$?
13758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13759 test $ac_status = 0; } 2>conftest.err; then
13760 soname=conftest
13761 lib=conftest
13762 libobjs=conftest.$ac_objext
13763 deplibs=
13764 wl=$lt_prog_compiler_wl
13765 pic_flag=$lt_prog_compiler_pic
13766 compiler_flags=-v
13767 linker_flags=-v
13768 verstring=
13769 output_objdir=.
13770 libname=conftest
13771 lt_save_allow_undefined_flag=$allow_undefined_flag
13772 allow_undefined_flag=
13773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13774 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13775 ac_status=$?
13776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13777 test $ac_status = 0; }
13778 then
13779 lt_cv_archive_cmds_need_lc=no
13780 else
13781 lt_cv_archive_cmds_need_lc=yes
13782 fi
13783 allow_undefined_flag=$lt_save_allow_undefined_flag
13784 else
13785 cat conftest.err 1>&5
13786 fi
13787 $RM conftest*
13788 ;;
13789 esac
13790 fi
13791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13792 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13793 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13794 ;;
13795 esac
13796 fi
13797 ;;
13798 esac
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13952 printf %s "checking dynamic linker characteristics... " >&6; }
13953
13954 if test yes = "$GCC"; then
13955 case $host_os in
13956 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13957 *) lt_awk_arg='/^libraries:/' ;;
13958 esac
13959 case $host_os in
13960 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13961 *) lt_sed_strip_eq='s|=/|/|g' ;;
13962 esac
13963 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13964 case $lt_search_path_spec in
13965 *\;*)
13966 # if the path contains ";" then we assume it to be the separator
13967 # otherwise default to the standard path separator (i.e. ":") - it is
13968 # assumed that no part of a normal pathname contains ";" but that should
13969 # okay in the real world where ";" in dirpaths is itself problematic.
13970 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13971 ;;
13972 *)
13973 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13974 ;;
13975 esac
13976 # Ok, now we have the path, separated by spaces, we can step through it
13977 # and add multilib dir if necessary...
13978 lt_tmp_lt_search_path_spec=
13979 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13980 # ...but if some path component already ends with the multilib dir we assume
13981 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13982 case "$lt_multi_os_dir; $lt_search_path_spec " in
13983 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13984 lt_multi_os_dir=
13985 ;;
13986 esac
13987 for lt_sys_path in $lt_search_path_spec; do
13988 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13989 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13990 elif test -n "$lt_multi_os_dir"; then
13991 test -d "$lt_sys_path" && \
13992 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13993 fi
13994 done
13995 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13996 BEGIN {RS = " "; FS = "/|\n";} {
13997 lt_foo = "";
13998 lt_count = 0;
13999 for (lt_i = NF; lt_i > 0; lt_i--) {
14000 if ($lt_i != "" && $lt_i != ".") {
14001 if ($lt_i == "..") {
14002 lt_count++;
14003 } else {
14004 if (lt_count == 0) {
14005 lt_foo = "/" $lt_i lt_foo;
14006 } else {
14007 lt_count--;
14008 }
14009 }
14010 }
14011 }
14012 if (lt_foo != "") { lt_freq[lt_foo]++; }
14013 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14014 }'`
14015 # AWK program above erroneously prepends '/' to C:/dos/paths
14016 # for these hosts.
14017 case $host_os in
14018 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14019 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14020 esac
14021 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14022 else
14023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14024 fi
14025 library_names_spec=
14026 libname_spec='lib$name'
14027 soname_spec=
14028 shrext_cmds=.so
14029 postinstall_cmds=
14030 postuninstall_cmds=
14031 finish_cmds=
14032 finish_eval=
14033 shlibpath_var=
14034 shlibpath_overrides_runpath=unknown
14035 version_type=none
14036 dynamic_linker="$host_os ld.so"
14037 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14038 need_lib_prefix=unknown
14039 hardcode_into_libs=no
14040
14041 # when you set need_version to no, make sure it does not cause -set_version
14042 # flags to be left without arguments
14043 need_version=unknown
14044
14045
14046
14047 case $host_os in
14048 aix3*)
14049 version_type=linux # correct to gnu/linux during the next big refactor
14050 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14051 shlibpath_var=LIBPATH
14052
14053 # AIX 3 has no versioning support, so we append a major version to the name.
14054 soname_spec='$libname$release$shared_ext$major'
14055 ;;
14056
14057 aix[4-9]*)
14058 version_type=linux # correct to gnu/linux during the next big refactor
14059 need_lib_prefix=no
14060 need_version=no
14061 hardcode_into_libs=yes
14062 if test ia64 = "$host_cpu"; then
14063 # AIX 5 supports IA64
14064 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14065 shlibpath_var=LD_LIBRARY_PATH
14066 else
14067 # With GCC up to 2.95.x, collect2 would create an import file
14068 # for dependence libraries. The import file would start with
14069 # the line '#! .'. This would cause the generated library to
14070 # depend on '.', always an invalid library. This was fixed in
14071 # development snapshots of GCC prior to 3.0.
14072 case $host_os in
14073 aix4 | aix4.[01] | aix4.[01].*)
14074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14075 echo ' yes '
14076 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14077 :
14078 else
14079 can_build_shared=no
14080 fi
14081 ;;
14082 esac
14083 # Using Import Files as archive members, it is possible to support
14084 # filename-based versioning of shared library archives on AIX. While
14085 # this would work for both with and without runtime linking, it will
14086 # prevent static linking of such archives. So we do filename-based
14087 # shared library versioning with .so extension only, which is used
14088 # when both runtime linking and shared linking is enabled.
14089 # Unfortunately, runtime linking may impact performance, so we do
14090 # not want this to be the default eventually. Also, we use the
14091 # versioned .so libs for executables only if there is the -brtl
14092 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
14093 # To allow for filename-based versioning support, we need to create
14094 # libNAME.so.V as an archive file, containing:
14095 # *) an Import File, referring to the versioned filename of the
14096 # archive as well as the shared archive member, telling the
14097 # bitwidth (32 or 64) of that shared object, and providing the
14098 # list of exported symbols of that shared object, eventually
14099 # decorated with the 'weak' keyword
14100 # *) the shared object with the F_LOADONLY flag set, to really avoid
14101 # it being seen by the linker.
14102 # At run time we better use the real file rather than another symlink,
14103 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14104
14105 case $with_aix_soname,$aix_use_runtimelinking in
14106 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14107 # soname into executable. Probably we can add versioning support to
14108 # collect2, so additional links can be useful in future.
14109 aix,yes) # traditional libtool
14110 dynamic_linker='AIX unversionable lib.so'
14111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14112 # instead of lib<name>.a to let people know that these are not
14113 # typical AIX shared libraries.
14114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14115 ;;
14116 aix,no) # traditional AIX only
14117 dynamic_linker='AIX lib.a(lib.so.V)'
14118 # We preserve .a as extension for shared libraries through AIX4.2
14119 # and later when we are not doing run time linking.
14120 library_names_spec='$libname$release.a $libname.a'
14121 soname_spec='$libname$release$shared_ext$major'
14122 ;;
14123 svr4,*) # full svr4 only
14124 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14125 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14126 # We do not specify a path in Import Files, so LIBPATH fires.
14127 shlibpath_overrides_runpath=yes
14128 ;;
14129 *,yes) # both, prefer svr4
14130 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14131 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14132 # unpreferred sharedlib libNAME.a needs extra handling
14133 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"'
14134 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"'
14135 # We do not specify a path in Import Files, so LIBPATH fires.
14136 shlibpath_overrides_runpath=yes
14137 ;;
14138 *,no) # both, prefer aix
14139 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14140 library_names_spec='$libname$release.a $libname.a'
14141 soname_spec='$libname$release$shared_ext$major'
14142 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14143 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)'
14144 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"'
14145 ;;
14146 esac
14147 shlibpath_var=LIBPATH
14148 fi
14149 ;;
14150
14151 amigaos*)
14152 case $host_cpu in
14153 powerpc)
14154 # Since July 2007 AmigaOS4 officially supports .so libraries.
14155 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14156 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14157 ;;
14158 m68k)
14159 library_names_spec='$libname.ixlibrary $libname.a'
14160 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14161 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'
14162 ;;
14163 esac
14164 ;;
14165
14166 beos*)
14167 library_names_spec='$libname$shared_ext'
14168 dynamic_linker="$host_os ld.so"
14169 shlibpath_var=LIBRARY_PATH
14170 ;;
14171
14172 bsdi[45]*)
14173 version_type=linux # correct to gnu/linux during the next big refactor
14174 need_version=no
14175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14176 soname_spec='$libname$release$shared_ext$major'
14177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14178 shlibpath_var=LD_LIBRARY_PATH
14179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14181 # the default ld.so.conf also contains /usr/contrib/lib and
14182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14183 # libtool to hard-code these into programs
14184 ;;
14185
14186 cygwin* | mingw* | windows* | pw32* | cegcc*)
14187 version_type=windows
14188 shrext_cmds=.dll
14189 need_version=no
14190 need_lib_prefix=no
14191
14192 case $GCC,$cc_basename in
14193 yes,*)
14194 # gcc
14195 library_names_spec='$libname.dll.a'
14196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14197 # If user builds GCC with multilib enabled,
14198 # it should just install on $(libdir)
14199 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
14200 if test xyes = x"$multilib"; then
14201 postinstall_cmds='base_file=`basename \$file`~
14202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14203 dldir=$destdir/`dirname \$dlpath`~
14204 $install_prog $dir/$dlname $destdir/$dlname~
14205 chmod a+x $destdir/$dlname~
14206 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14207 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
14208 fi'
14209 else
14210 postinstall_cmds='base_file=`basename \$file`~
14211 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14212 dldir=$destdir/`dirname \$dlpath`~
14213 test -d \$dldir || mkdir -p \$dldir~
14214 $install_prog $dir/$dlname \$dldir/$dlname~
14215 chmod a+x \$dldir/$dlname~
14216 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14217 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14218 fi'
14219 fi
14220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14221 dlpath=$dir/\$dldll~
14222 $RM \$dlpath'
14223 shlibpath_overrides_runpath=yes
14224
14225 case $host_os in
14226 cygwin*)
14227 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14228 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14229
14230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14231 ;;
14232 mingw* | windows* | cegcc*)
14233 # MinGW DLLs use traditional 'lib' prefix
14234 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14235 ;;
14236 pw32*)
14237 # pw32 DLLs use 'pw' prefix rather than 'lib'
14238 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14239 ;;
14240 esac
14241 dynamic_linker='Win32 ld.exe'
14242 ;;
14243
14244 *,cl* | *,icl*)
14245 # Native MSVC or ICC
14246 libname_spec='$name'
14247 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14248 library_names_spec='$libname.dll.lib'
14249
14250 case $build_os in
14251 mingw* | windows*)
14252 sys_lib_search_path_spec=
14253 lt_save_ifs=$IFS
14254 IFS=';'
14255 for lt_path in $LIB
14256 do
14257 IFS=$lt_save_ifs
14258 # Let DOS variable expansion print the short 8.3 style file name.
14259 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14260 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14261 done
14262 IFS=$lt_save_ifs
14263 # Convert to MSYS style.
14264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14265 ;;
14266 cygwin*)
14267 # Convert to unix form, then to dos form, then back to unix form
14268 # but this time dos style (no spaces!) so that the unix form looks
14269 # like /cygdrive/c/PROGRA~1:/cygdr...
14270 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14271 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14272 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14273 ;;
14274 *)
14275 sys_lib_search_path_spec=$LIB
14276 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14277 # It is most probably a Windows format PATH.
14278 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14279 else
14280 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14281 fi
14282 # FIXME: find the short name or the path components, as spaces are
14283 # common. (e.g. "Program Files" -> "PROGRA~1")
14284 ;;
14285 esac
14286
14287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14288 postinstall_cmds='base_file=`basename \$file`~
14289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14290 dldir=$destdir/`dirname \$dlpath`~
14291 test -d \$dldir || mkdir -p \$dldir~
14292 $install_prog $dir/$dlname \$dldir/$dlname'
14293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14294 dlpath=$dir/\$dldll~
14295 $RM \$dlpath'
14296 shlibpath_overrides_runpath=yes
14297 dynamic_linker='Win32 link.exe'
14298 ;;
14299
14300 *)
14301 # Assume MSVC and ICC wrapper
14302 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14303 dynamic_linker='Win32 ld.exe'
14304 ;;
14305 esac
14306 # FIXME: first we should search . and the directory the executable is in
14307 shlibpath_var=PATH
14308 ;;
14309
14310 darwin* | rhapsody*)
14311 dynamic_linker="$host_os dyld"
14312 version_type=darwin
14313 need_lib_prefix=no
14314 need_version=no
14315 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14316 soname_spec='$libname$release$major$shared_ext'
14317 shlibpath_overrides_runpath=yes
14318 shlibpath_var=DYLD_LIBRARY_PATH
14319 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14320
14321 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14322 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14323 ;;
14324
14325 dgux*)
14326 version_type=linux # correct to gnu/linux during the next big refactor
14327 need_lib_prefix=no
14328 need_version=no
14329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14330 soname_spec='$libname$release$shared_ext$major'
14331 shlibpath_var=LD_LIBRARY_PATH
14332 ;;
14333
14334 freebsd* | dragonfly* | midnightbsd*)
14335 # DragonFly does not have aout. When/if they implement a new
14336 # versioning mechanism, adjust this.
14337 if test -x /usr/bin/objformat; then
14338 objformat=`/usr/bin/objformat`
14339 else
14340 case $host_os in
14341 freebsd[23].*) objformat=aout ;;
14342 *) objformat=elf ;;
14343 esac
14344 fi
14345 version_type=freebsd-$objformat
14346 case $version_type in
14347 freebsd-elf*)
14348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14349 soname_spec='$libname$release$shared_ext$major'
14350 need_version=no
14351 need_lib_prefix=no
14352 ;;
14353 freebsd-*)
14354 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14355 need_version=yes
14356 ;;
14357 esac
14358 case $host_cpu in
14359 powerpc64)
14360 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
14361 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h. */
14364 int test_pointer_size[sizeof (void *) - 5];
14365
14366 _ACEOF
14367 if ac_fn_c_try_compile "$LINENO"
14368 then :
14369 shlibpath_var=LD_LIBRARY_PATH
14370 else case e in #(
14371 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
14372 esac
14373 fi
14374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14375 ;;
14376 *)
14377 shlibpath_var=LD_LIBRARY_PATH
14378 ;;
14379 esac
14380 case $host_os in
14381 freebsd2.*)
14382 shlibpath_overrides_runpath=yes
14383 ;;
14384 freebsd3.[01]* | freebsdelf3.[01]*)
14385 shlibpath_overrides_runpath=yes
14386 hardcode_into_libs=yes
14387 ;;
14388 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14389 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14390 shlibpath_overrides_runpath=no
14391 hardcode_into_libs=yes
14392 ;;
14393 *) # from 4.6 on, and DragonFly
14394 shlibpath_overrides_runpath=yes
14395 hardcode_into_libs=yes
14396 ;;
14397 esac
14398 ;;
14399
14400 haiku*)
14401 version_type=linux # correct to gnu/linux during the next big refactor
14402 need_lib_prefix=no
14403 need_version=no
14404 dynamic_linker="$host_os runtime_loader"
14405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14406 soname_spec='$libname$release$shared_ext$major'
14407 shlibpath_var=LIBRARY_PATH
14408 shlibpath_overrides_runpath=no
14409 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
14410 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
14411 hardcode_into_libs=no
14412 ;;
14413
14414 hpux9* | hpux10* | hpux11*)
14415 # Give a soname corresponding to the major version so that dld.sl refuses to
14416 # link against other versions.
14417 version_type=sunos
14418 need_lib_prefix=no
14419 need_version=no
14420 case $host_cpu in
14421 ia64*)
14422 shrext_cmds='.so'
14423 hardcode_into_libs=yes
14424 dynamic_linker="$host_os dld.so"
14425 shlibpath_var=LD_LIBRARY_PATH
14426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14428 soname_spec='$libname$release$shared_ext$major'
14429 if test 32 = "$HPUX_IA64_MODE"; then
14430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14431 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14432 else
14433 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14434 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14435 fi
14436 ;;
14437 hppa*64*)
14438 shrext_cmds='.sl'
14439 hardcode_into_libs=yes
14440 dynamic_linker="$host_os dld.sl"
14441 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14444 soname_spec='$libname$release$shared_ext$major'
14445 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14447 ;;
14448 *)
14449 shrext_cmds='.sl'
14450 dynamic_linker="$host_os dld.sl"
14451 shlibpath_var=SHLIB_PATH
14452 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14454 soname_spec='$libname$release$shared_ext$major'
14455 ;;
14456 esac
14457 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14458 postinstall_cmds='chmod 555 $lib'
14459 # or fails outright, so override atomically:
14460 install_override_mode=555
14461 ;;
14462
14463 interix[3-9]*)
14464 version_type=linux # correct to gnu/linux during the next big refactor
14465 need_lib_prefix=no
14466 need_version=no
14467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14468 soname_spec='$libname$release$shared_ext$major'
14469 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14470 shlibpath_var=LD_LIBRARY_PATH
14471 shlibpath_overrides_runpath=no
14472 hardcode_into_libs=yes
14473 ;;
14474
14475 irix5* | irix6* | nonstopux*)
14476 case $host_os in
14477 nonstopux*) version_type=nonstopux ;;
14478 *)
14479 if test yes = "$lt_cv_prog_gnu_ld"; then
14480 version_type=linux # correct to gnu/linux during the next big refactor
14481 else
14482 version_type=irix
14483 fi ;;
14484 esac
14485 need_lib_prefix=no
14486 need_version=no
14487 soname_spec='$libname$release$shared_ext$major'
14488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14489 case $host_os in
14490 irix5* | nonstopux*)
14491 libsuff= shlibsuff=
14492 ;;
14493 *)
14494 case $LD in # libtool.m4 will add one of these switches to LD
14495 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14496 libsuff= shlibsuff= libmagic=32-bit;;
14497 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14498 libsuff=32 shlibsuff=N32 libmagic=N32;;
14499 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14500 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14501 *) libsuff= shlibsuff= libmagic=never-match;;
14502 esac
14503 ;;
14504 esac
14505 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14506 shlibpath_overrides_runpath=no
14507 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14508 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14509 hardcode_into_libs=yes
14510 ;;
14511
14512 # No shared lib support for Linux oldld, aout, or coff.
14513 linux*oldld* | linux*aout* | linux*coff*)
14514 dynamic_linker=no
14515 ;;
14516
14517 linux*android*)
14518 version_type=none # Android doesn't support versioned libraries.
14519 need_lib_prefix=no
14520 need_version=no
14521 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14522 soname_spec='$libname$release$shared_ext'
14523 finish_cmds=
14524 shlibpath_var=LD_LIBRARY_PATH
14525 shlibpath_overrides_runpath=yes
14526
14527 # This implies no fast_install, which is unacceptable.
14528 # Some rework will be needed to allow for fast_install
14529 # before this can be enabled.
14530 hardcode_into_libs=yes
14531
14532 dynamic_linker='Android linker'
14533 # -rpath works at least for libraries that are not overridden by
14534 # libraries installed in system locations.
14535 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14536 ;;
14537
14538 # This must be glibc/ELF.
14539 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14540 version_type=linux # correct to gnu/linux during the next big refactor
14541 need_lib_prefix=no
14542 need_version=no
14543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14544 soname_spec='$libname$release$shared_ext$major'
14545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14546 shlibpath_var=LD_LIBRARY_PATH
14547 shlibpath_overrides_runpath=no
14548
14549 # Some binutils ld are patched to set DT_RUNPATH
14550 if test ${lt_cv_shlibpath_overrides_runpath+y}
14551 then :
14552 printf %s "(cached) " >&6
14553 else case e in #(
14554 e) lt_cv_shlibpath_overrides_runpath=no
14555 save_LDFLAGS=$LDFLAGS
14556 save_libdir=$libdir
14557 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14558 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14560 /* end confdefs.h. */
14561
14562 int
14563 main (void)
14564 {
14565
14566 ;
14567 return 0;
14568 }
14569 _ACEOF
14570 if ac_fn_c_try_link "$LINENO"
14571 then :
14572 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14573 then :
14574 lt_cv_shlibpath_overrides_runpath=yes
14575 fi
14576 fi
14577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14578 conftest$ac_exeext conftest.$ac_ext
14579 LDFLAGS=$save_LDFLAGS
14580 libdir=$save_libdir
14581 ;;
14582 esac
14583 fi
14584
14585 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14586
14587 # This implies no fast_install, which is unacceptable.
14588 # Some rework will be needed to allow for fast_install
14589 # before this can be enabled.
14590 hardcode_into_libs=yes
14591
14592 # Ideally, we could use ldconfig to report *all* directories which are
14593 # searched for libraries, however this is still not possible. Aside from not
14594 # being certain /sbin/ldconfig is available, command
14595 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14596 # even though it is searched at run-time. Try to do the best guess by
14597 # appending ld.so.conf contents (and includes) to the search path.
14598 if test -f /etc/ld.so.conf; then
14599 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' ' '`
14600 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14601 fi
14602
14603 # We used to test for /lib/ld.so.1 and disable shared libraries on
14604 # powerpc, because MkLinux only supported shared libraries with the
14605 # GNU dynamic linker. Since this was broken with cross compilers,
14606 # most powerpc-linux boxes support dynamic linking these days and
14607 # people can always --disable-shared, the test was removed, and we
14608 # assume the GNU/Linux dynamic linker is in use.
14609 dynamic_linker='GNU/Linux ld.so'
14610 ;;
14611
14612 netbsdelf*-gnu)
14613 version_type=linux
14614 need_lib_prefix=no
14615 need_version=no
14616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14617 soname_spec='$libname$release$shared_ext$major'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 shlibpath_overrides_runpath=no
14620 hardcode_into_libs=yes
14621 dynamic_linker='NetBSD ld.elf_so'
14622 ;;
14623
14624 netbsdelf*-gnu)
14625 version_type=linux
14626 need_lib_prefix=no
14627 need_version=no
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14629 soname_spec='${libname}${release}${shared_ext}$major'
14630 shlibpath_var=LD_LIBRARY_PATH
14631 shlibpath_overrides_runpath=no
14632 hardcode_into_libs=yes
14633 dynamic_linker='NetBSD ld.elf_so'
14634 ;;
14635
14636 netbsd*)
14637 version_type=sunos
14638 need_lib_prefix=no
14639 need_version=no
14640 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14641 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14643 dynamic_linker='NetBSD (a.out) ld.so'
14644 else
14645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14646 soname_spec='$libname$release$shared_ext$major'
14647 dynamic_linker='NetBSD ld.elf_so'
14648 fi
14649 shlibpath_var=LD_LIBRARY_PATH
14650 shlibpath_overrides_runpath=yes
14651 hardcode_into_libs=yes
14652 ;;
14653
14654 *-mlibc)
14655 version_type=linux # correct to gnu/linux during the next big refactor
14656 need_lib_prefix=no
14657 need_version=no
14658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14659 soname_spec='$libname$release$shared_ext$major'
14660 dynamic_linker='mlibc ld.so'
14661 shlibpath_var=LD_LIBRARY_PATH
14662 shlibpath_overrides_runpath=no
14663 hardcode_into_libs=yes
14664 ;;
14665
14666 newsos6)
14667 version_type=linux # correct to gnu/linux during the next big refactor
14668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14669 shlibpath_var=LD_LIBRARY_PATH
14670 shlibpath_overrides_runpath=yes
14671 ;;
14672
14673 *nto* | *qnx*)
14674 version_type=qnx
14675 need_lib_prefix=no
14676 need_version=no
14677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14678 soname_spec='$libname$release$shared_ext$major'
14679 shlibpath_var=LD_LIBRARY_PATH
14680 shlibpath_overrides_runpath=no
14681 hardcode_into_libs=yes
14682 dynamic_linker='ldqnx.so'
14683 ;;
14684
14685 openbsd*)
14686 version_type=sunos
14687 sys_lib_dlsearch_path_spec=/usr/lib
14688 need_lib_prefix=no
14689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14690 need_version=no
14691 else
14692 need_version=yes
14693 fi
14694 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 shlibpath_overrides_runpath=yes
14698 ;;
14699
14700 os2*)
14701 libname_spec='$name'
14702 version_type=windows
14703 shrext_cmds=.dll
14704 need_version=no
14705 need_lib_prefix=no
14706 # OS/2 can only load a DLL with a base name of 8 characters or less.
14707 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14708 v=$($ECHO $release$versuffix | tr -d .-);
14709 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14710 $ECHO $n$v`$shared_ext'
14711 library_names_spec='${libname}_dll.$libext'
14712 dynamic_linker='OS/2 ld.exe'
14713 shlibpath_var=BEGINLIBPATH
14714 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14716 postinstall_cmds='base_file=`basename \$file`~
14717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14718 dldir=$destdir/`dirname \$dlpath`~
14719 test -d \$dldir || mkdir -p \$dldir~
14720 $install_prog $dir/$dlname \$dldir/$dlname~
14721 chmod a+x \$dldir/$dlname~
14722 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14723 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14724 fi'
14725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14726 dlpath=$dir/\$dldll~
14727 $RM \$dlpath'
14728 ;;
14729
14730 osf3* | osf4* | osf5*)
14731 version_type=osf
14732 need_lib_prefix=no
14733 need_version=no
14734 soname_spec='$libname$release$shared_ext$major'
14735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14736 shlibpath_var=LD_LIBRARY_PATH
14737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14739 ;;
14740
14741 rdos*)
14742 dynamic_linker=no
14743 ;;
14744
14745 serenity*)
14746 version_type=linux # correct to gnu/linux during the next big refactor
14747 need_lib_prefix=no
14748 need_version=no
14749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14750 soname_spec='$libname$release$shared_ext$major'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 shlibpath_overrides_runpath=no
14753 dynamic_linker='SerenityOS LibELF'
14754 ;;
14755
14756 solaris*)
14757 version_type=linux # correct to gnu/linux during the next big refactor
14758 need_lib_prefix=no
14759 need_version=no
14760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14761 soname_spec='$libname$release$shared_ext$major'
14762 shlibpath_var=LD_LIBRARY_PATH
14763 shlibpath_overrides_runpath=yes
14764 hardcode_into_libs=yes
14765 # ldd complains unless libraries are executable
14766 postinstall_cmds='chmod +x $lib'
14767 ;;
14768
14769 sunos4*)
14770 version_type=sunos
14771 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14772 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14773 shlibpath_var=LD_LIBRARY_PATH
14774 shlibpath_overrides_runpath=yes
14775 if test yes = "$with_gnu_ld"; then
14776 need_lib_prefix=no
14777 fi
14778 need_version=yes
14779 ;;
14780
14781 sysv4 | sysv4.3*)
14782 version_type=linux # correct to gnu/linux during the next big refactor
14783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14784 soname_spec='$libname$release$shared_ext$major'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 case $host_vendor in
14787 sni)
14788 shlibpath_overrides_runpath=no
14789 need_lib_prefix=no
14790 runpath_var=LD_RUN_PATH
14791 ;;
14792 siemens)
14793 need_lib_prefix=no
14794 ;;
14795 motorola)
14796 need_lib_prefix=no
14797 need_version=no
14798 shlibpath_overrides_runpath=no
14799 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14800 ;;
14801 esac
14802 ;;
14803
14804 sysv4*MP*)
14805 if test -d /usr/nec; then
14806 version_type=linux # correct to gnu/linux during the next big refactor
14807 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14808 soname_spec='$libname$shared_ext.$major'
14809 shlibpath_var=LD_LIBRARY_PATH
14810 fi
14811 ;;
14812
14813 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14814 version_type=sco
14815 need_lib_prefix=no
14816 need_version=no
14817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14818 soname_spec='$libname$release$shared_ext$major'
14819 shlibpath_var=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath=yes
14821 hardcode_into_libs=yes
14822 if test yes = "$with_gnu_ld"; then
14823 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14824 else
14825 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14826 case $host_os in
14827 sco3.2v5*)
14828 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14829 ;;
14830 esac
14831 fi
14832 sys_lib_dlsearch_path_spec='/usr/lib'
14833 ;;
14834
14835 tpf*)
14836 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14837 version_type=linux # correct to gnu/linux during the next big refactor
14838 need_lib_prefix=no
14839 need_version=no
14840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14841 shlibpath_var=LD_LIBRARY_PATH
14842 shlibpath_overrides_runpath=no
14843 hardcode_into_libs=yes
14844 ;;
14845
14846 uts4*)
14847 version_type=linux # correct to gnu/linux during the next big refactor
14848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14849 soname_spec='$libname$release$shared_ext$major'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 ;;
14852
14853 emscripten*)
14854 version_type=none
14855 need_lib_prefix=no
14856 need_version=no
14857 library_names_spec='$libname$release$shared_ext'
14858 soname_spec='$libname$release$shared_ext'
14859 finish_cmds=
14860 dynamic_linker="Emscripten linker"
14861 lt_prog_compiler_wl=
14862 lt_prog_compiler_pic=
14863 lt_prog_compiler_static=
14864
14865
14866 if test yes = "$GCC"; then
14867 lt_prog_compiler_wl='-Wl,'
14868 lt_prog_compiler_static='-static'
14869
14870 case $host_os in
14871 aix*)
14872 # All AIX code is PIC.
14873 if test ia64 = "$host_cpu"; then
14874 # AIX 5 now supports IA64 processor
14875 lt_prog_compiler_static='-Bstatic'
14876 fi
14877 lt_prog_compiler_pic='-fPIC'
14878 ;;
14879
14880 amigaos*)
14881 case $host_cpu in
14882 powerpc)
14883 # see comment about AmigaOS4 .so support
14884 lt_prog_compiler_pic='-fPIC'
14885 ;;
14886 m68k)
14887 # FIXME: we need at least 68020 code to build shared libraries, but
14888 # adding the '-m68020' flag to GCC prevents building anything better,
14889 # like '-m68040'.
14890 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14891 ;;
14892 esac
14893 ;;
14894
14895 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14896 # PIC is the default for these OSes.
14897 ;;
14898
14899 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14900 # This hack is so that the source file can tell whether it is being
14901 # built for inclusion in a dll (and should export symbols for example).
14902 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14903 # (--disable-auto-import) libraries
14904 lt_prog_compiler_pic='-DDLL_EXPORT'
14905 case $host_os in
14906 os2*)
14907 lt_prog_compiler_static='$wl-static'
14908 ;;
14909 esac
14910 ;;
14911
14912 darwin* | rhapsody*)
14913 # PIC is the default on this platform
14914 # Common symbols not allowed in MH_DYLIB files
14915 lt_prog_compiler_pic='-fno-common'
14916 ;;
14917
14918 haiku*)
14919 # PIC is the default for Haiku.
14920 # The "-static" flag exists, but is broken.
14921 lt_prog_compiler_static=
14922 ;;
14923
14924 hpux*)
14925 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14926 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14927 # sets the default TLS model and affects inlining.
14928 case $host_cpu in
14929 hppa*64*)
14930 # +Z the default
14931 ;;
14932 *)
14933 lt_prog_compiler_pic='-fPIC'
14934 ;;
14935 esac
14936 ;;
14937
14938 interix[3-9]*)
14939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14940 # Instead, we relocate shared libraries at runtime.
14941 ;;
14942
14943 msdosdjgpp*)
14944 # Just because we use GCC doesn't mean we suddenly get shared libraries
14945 # on systems that don't support them.
14946 lt_prog_compiler_can_build_shared=no
14947 enable_shared=no
14948 ;;
14949
14950 *nto* | *qnx*)
14951 # QNX uses GNU C++, but need to define -shared option too, otherwise
14952 # it will coredump.
14953 lt_prog_compiler_pic='-fPIC -shared'
14954 ;;
14955
14956 sysv4*MP*)
14957 if test -d /usr/nec; then
14958 lt_prog_compiler_pic=-Kconform_pic
14959 fi
14960 ;;
14961
14962 *)
14963 lt_prog_compiler_pic='-fPIC'
14964 ;;
14965 esac
14966
14967 case $cc_basename in
14968 nvcc*) # Cuda Compiler Driver 2.2
14969 lt_prog_compiler_wl='-Xlinker '
14970 if test -n "$lt_prog_compiler_pic"; then
14971 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14972 fi
14973 ;;
14974 esac
14975 else
14976 # PORTME Check for flag to pass linker flags through the system compiler.
14977 case $host_os in
14978 aix*)
14979 lt_prog_compiler_wl='-Wl,'
14980 if test ia64 = "$host_cpu"; then
14981 # AIX 5 now supports IA64 processor
14982 lt_prog_compiler_static='-Bstatic'
14983 else
14984 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14985 fi
14986 ;;
14987
14988 darwin* | rhapsody*)
14989 # PIC is the default on this platform
14990 # Common symbols not allowed in MH_DYLIB files
14991 lt_prog_compiler_pic='-fno-common'
14992 case $cc_basename in
14993 nagfor*)
14994 # NAG Fortran compiler
14995 lt_prog_compiler_wl='-Wl,-Wl,,'
14996 lt_prog_compiler_pic='-PIC'
14997 lt_prog_compiler_static='-Bstatic'
14998 ;;
14999 esac
15000 ;;
15001
15002 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
15003 # This hack is so that the source file can tell whether it is being
15004 # built for inclusion in a dll (and should export symbols for example).
15005 lt_prog_compiler_pic='-DDLL_EXPORT'
15006 case $host_os in
15007 os2*)
15008 lt_prog_compiler_static='$wl-static'
15009 ;;
15010 esac
15011 ;;
15012
15013 hpux9* | hpux10* | hpux11*)
15014 lt_prog_compiler_wl='-Wl,'
15015 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15016 # not for PA HP-UX.
15017 case $host_cpu in
15018 hppa*64*|ia64*)
15019 # +Z the default
15020 ;;
15021 *)
15022 lt_prog_compiler_pic='+Z'
15023 ;;
15024 esac
15025 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15026 lt_prog_compiler_static='$wl-a ${wl}archive'
15027 ;;
15028
15029 irix5* | irix6* | nonstopux*)
15030 lt_prog_compiler_wl='-Wl,'
15031 # PIC (with -KPIC) is the default.
15032 lt_prog_compiler_static='-non_shared'
15033 ;;
15034
15035 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15036 case $cc_basename in
15037 # old Intel for x86_64, which still supported -KPIC.
15038 ecc*)
15039 lt_prog_compiler_wl='-Wl,'
15040 lt_prog_compiler_pic='-KPIC'
15041 lt_prog_compiler_static='-static'
15042 ;;
15043 *flang* | ftn | f18* | f95*)
15044 # Flang compiler.
15045 lt_prog_compiler_wl='-Wl,'
15046 lt_prog_compiler_pic='-fPIC'
15047 lt_prog_compiler_static='-static'
15048 ;;
15049 # flang / f18. f95 an alias for gfortran or flang on Debian
15050 flang* | f18* | f95*)
15051 lt_prog_compiler_wl='-Wl,'
15052 lt_prog_compiler_pic='-fPIC'
15053 lt_prog_compiler_static='-static'
15054 ;;
15055 # icc used to be incompatible with GCC.
15056 # ICC 10 doesn't accept -KPIC any more.
15057 icc* | ifort*)
15058 lt_prog_compiler_wl='-Wl,'
15059 lt_prog_compiler_pic='-fPIC'
15060 lt_prog_compiler_static='-static'
15061 ;;
15062 # Lahey Fortran 8.1.
15063 lf95*)
15064 lt_prog_compiler_wl='-Wl,'
15065 lt_prog_compiler_pic='--shared'
15066 lt_prog_compiler_static='--static'
15067 ;;
15068 nagfor*)
15069 # NAG Fortran compiler
15070 lt_prog_compiler_wl='-Wl,-Wl,,'
15071 lt_prog_compiler_pic='-PIC'
15072 lt_prog_compiler_static='-Bstatic'
15073 ;;
15074 tcc*)
15075 # Fabrice Bellard et al's Tiny C Compiler
15076 lt_prog_compiler_wl='-Wl,'
15077 lt_prog_compiler_pic='-fPIC'
15078 lt_prog_compiler_static='-static'
15079 ;;
15080 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15081 # Portland Group compilers (*not* the Pentium gcc compiler,
15082 # which looks to be a dead project)
15083 lt_prog_compiler_wl='-Wl,'
15084 lt_prog_compiler_pic='-fpic'
15085 lt_prog_compiler_static='-Bstatic'
15086 ;;
15087 ccc*)
15088 lt_prog_compiler_wl='-Wl,'
15089 # All Alpha code is PIC.
15090 lt_prog_compiler_static='-non_shared'
15091 ;;
15092 xl* | bgxl* | bgf* | mpixl*)
15093 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15094 lt_prog_compiler_wl='-Wl,'
15095 lt_prog_compiler_pic='-qpic'
15096 lt_prog_compiler_static='-qstaticlink'
15097 ;;
15098 *)
15099 case `$CC -V 2>&1 | $SED 5q` in
15100 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15101 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15102 lt_prog_compiler_pic='-KPIC'
15103 lt_prog_compiler_static='-Bstatic'
15104 lt_prog_compiler_wl=''
15105 ;;
15106 *Sun\ F* | *Sun*Fortran*)
15107 lt_prog_compiler_pic='-KPIC'
15108 lt_prog_compiler_static='-Bstatic'
15109 lt_prog_compiler_wl='-Qoption ld '
15110 ;;
15111 *Sun\ C*)
15112 # Sun C 5.9
15113 lt_prog_compiler_pic='-KPIC'
15114 lt_prog_compiler_static='-Bstatic'
15115 lt_prog_compiler_wl='-Wl,'
15116 ;;
15117 *Intel*\ [CF]*Compiler*)
15118 lt_prog_compiler_wl='-Wl,'
15119 lt_prog_compiler_pic='-fPIC'
15120 lt_prog_compiler_static='-static'
15121 ;;
15122 *Portland\ Group*)
15123 lt_prog_compiler_wl='-Wl,'
15124 lt_prog_compiler_pic='-fpic'
15125 lt_prog_compiler_static='-Bstatic'
15126 ;;
15127 esac
15128 ;;
15129 esac
15130 ;;
15131
15132 newsos6)
15133 lt_prog_compiler_pic='-KPIC'
15134 lt_prog_compiler_static='-Bstatic'
15135 ;;
15136
15137 *-mlibc)
15138 lt_prog_compiler_wl='-Wl,'
15139 lt_prog_compiler_pic='-fPIC'
15140 lt_prog_compiler_static='-static'
15141 ;;
15142
15143 *nto* | *qnx*)
15144 # QNX uses GNU C++, but need to define -shared option too, otherwise
15145 # it will coredump.
15146 lt_prog_compiler_pic='-fPIC -shared'
15147 ;;
15148
15149 osf3* | osf4* | osf5*)
15150 lt_prog_compiler_wl='-Wl,'
15151 # All OSF/1 code is PIC.
15152 lt_prog_compiler_static='-non_shared'
15153 ;;
15154
15155 rdos*)
15156 lt_prog_compiler_static='-non_shared'
15157 ;;
15158
15159 serenity*)
15160 ;;
15161
15162 solaris*)
15163 lt_prog_compiler_pic='-KPIC'
15164 lt_prog_compiler_static='-Bstatic'
15165 case $cc_basename in
15166 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15167 lt_prog_compiler_wl='-Qoption ld ';;
15168 *)
15169 lt_prog_compiler_wl='-Wl,';;
15170 esac
15171 ;;
15172
15173 sunos4*)
15174 lt_prog_compiler_wl='-Qoption ld '
15175 lt_prog_compiler_pic='-PIC'
15176 lt_prog_compiler_static='-Bstatic'
15177 ;;
15178
15179 sysv4 | sysv4.2uw2* | sysv4.3*)
15180 lt_prog_compiler_wl='-Wl,'
15181 lt_prog_compiler_pic='-KPIC'
15182 lt_prog_compiler_static='-Bstatic'
15183 ;;
15184
15185 sysv4*MP*)
15186 if test -d /usr/nec; then
15187 lt_prog_compiler_pic='-Kconform_pic'
15188 lt_prog_compiler_static='-Bstatic'
15189 fi
15190 ;;
15191
15192 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15193 lt_prog_compiler_wl='-Wl,'
15194 lt_prog_compiler_pic='-KPIC'
15195 lt_prog_compiler_static='-Bstatic'
15196 ;;
15197
15198 unicos*)
15199 lt_prog_compiler_wl='-Wl,'
15200 lt_prog_compiler_can_build_shared=no
15201 ;;
15202
15203 uts4*)
15204 lt_prog_compiler_pic='-pic'
15205 lt_prog_compiler_static='-Bstatic'
15206 ;;
15207
15208 *)
15209 lt_prog_compiler_can_build_shared=no
15210 ;;
15211 esac
15212 fi
15213
15214 case $host_os in
15215 # For platforms that do not support PIC, -DPIC is meaningless:
15216 *djgpp*)
15217 lt_prog_compiler_pic=
15218 ;;
15219 *)
15220 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15221 ;;
15222 esac
15223
15224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15225 printf %s "checking for $compiler option to produce PIC... " >&6; }
15226 if test ${lt_cv_prog_compiler_pic+y}
15227 then :
15228 printf %s "(cached) " >&6
15229 else case e in #(
15230 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
15231 esac
15232 fi
15233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15234 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15235 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15236
15237 #
15238 # Check to make sure the PIC flag actually works.
15239 #
15240 if test -n "$lt_prog_compiler_pic"; then
15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15242 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15243 if test ${lt_cv_prog_compiler_pic_works+y}
15244 then :
15245 printf %s "(cached) " >&6
15246 else case e in #(
15247 e) lt_cv_prog_compiler_pic_works=no
15248 ac_outfile=conftest.$ac_objext
15249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15250 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15251 # Insert the option either (1) after the last *FLAGS variable, or
15252 # (2) before a word containing "conftest.", or (3) at the end.
15253 # Note that $ac_compile itself does not contain backslashes and begins
15254 # with a dollar sign (not a hyphen), so the echo should work correctly.
15255 # The option is referenced via a variable to avoid confusing sed.
15256 lt_compile=`echo "$ac_compile" | $SED \
15257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15259 -e 's:$: $lt_compiler_flag:'`
15260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15261 (eval "$lt_compile" 2>conftest.err)
15262 ac_status=$?
15263 cat conftest.err >&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 if (exit $ac_status) && test -s "$ac_outfile"; then
15266 # The compiler can only warn and ignore the option if not recognized
15267 # So say no if there are warnings other than the usual output.
15268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15271 lt_cv_prog_compiler_pic_works=yes
15272 fi
15273 fi
15274 $RM conftest*
15275 ;;
15276 esac
15277 fi
15278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15279 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15280
15281 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15282 case $lt_prog_compiler_pic in
15283 "" | " "*) ;;
15284 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15285 esac
15286 else
15287 lt_prog_compiler_pic=
15288 lt_prog_compiler_can_build_shared=no
15289 fi
15290
15291 fi
15292
15293
15294
15295
15296
15297 #
15298 # Check to make sure the static flag actually works.
15299 #
15300 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15302 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15303 if test ${lt_cv_prog_compiler_static_works+y}
15304 then :
15305 printf %s "(cached) " >&6
15306 else case e in #(
15307 e) lt_cv_prog_compiler_static_works=no
15308 save_LDFLAGS=$LDFLAGS
15309 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15310 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15311 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15312 # The linker can only warn and ignore the option if not recognized
15313 # So say no if there are warnings
15314 if test -s conftest.err; then
15315 # Append any errors to the config.log.
15316 cat conftest.err 1>&5
15317 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15319 if diff conftest.exp conftest.er2 >/dev/null; then
15320 lt_cv_prog_compiler_static_works=yes
15321 fi
15322 else
15323 lt_cv_prog_compiler_static_works=yes
15324 fi
15325 fi
15326 $RM -r conftest*
15327 LDFLAGS=$save_LDFLAGS
15328 ;;
15329 esac
15330 fi
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15332 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15333
15334 if test yes = "$lt_cv_prog_compiler_static_works"; then
15335 :
15336 else
15337 lt_prog_compiler_static=
15338 fi
15339
15340
15341
15342 ='-fPIC'
15343 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
15344 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
15345 archive_cmds_need_lc=no
15346 no_undefined_flag=
15347 ;;
15348
15349 *)
15350 dynamic_linker=no
15351 ;;
15352 esac
15353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15354 printf "%s\n" "$dynamic_linker" >&6; }
15355 test no = "$dynamic_linker" && can_build_shared=no
15356
15357 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15358 if test yes = "$GCC"; then
15359 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15360 fi
15361
15362 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15363 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15364 fi
15365
15366 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15367 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15368 fi
15369
15370 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15371 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15372
15373 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15374 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15375
15376 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15377 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15476 printf %s "checking how to hardcode library paths into programs... " >&6; }
15477 hardcode_action=
15478 if test -n "$hardcode_libdir_flag_spec" ||
15479 test -n "$runpath_var" ||
15480 test yes = "$hardcode_automatic"; then
15481
15482 # We can hardcode non-existent directories.
15483 if test no != "$hardcode_direct" &&
15484 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15485 # have to relink, otherwise we might link with an installed library
15486 # when we should be linking with a yet-to-be-installed one
15487 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15488 test no != "$hardcode_minus_L"; then
15489 # Linking always hardcodes the temporary library directory.
15490 hardcode_action=relink
15491 else
15492 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15493 hardcode_action=immediate
15494 fi
15495 else
15496 # We cannot hardcode anything, or else we can only hardcode existing
15497 # directories.
15498 hardcode_action=unsupported
15499 fi
15500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15501 printf "%s\n" "$hardcode_action" >&6; }
15502
15503 if test relink = "$hardcode_action" ||
15504 test yes = "$inherit_rpath"; then
15505 # Fast installation is not supported
15506 enable_fast_install=no
15507 elif test yes = "$shlibpath_overrides_runpath" ||
15508 test no = "$enable_shared"; then
15509 # Fast installation is not necessary
15510 enable_fast_install=needless
15511 fi
15512
15513
15514
15515
15516
15517
15518 if test yes != "$enable_dlopen"; then
15519 enable_dlopen=unknown
15520 enable_dlopen_self=unknown
15521 enable_dlopen_self_static=unknown
15522 else
15523 lt_cv_dlopen=no
15524 lt_cv_dlopen_libs=
15525
15526 case $host_os in
15527 beos*)
15528 lt_cv_dlopen=load_add_on
15529 lt_cv_dlopen_libs=
15530 lt_cv_dlopen_self=yes
15531 ;;
15532
15533 mingw* | windows* | pw32* | cegcc*)
15534 lt_cv_dlopen=LoadLibrary
15535 lt_cv_dlopen_libs=
15536 ;;
15537
15538 cygwin*)
15539 lt_cv_dlopen=dlopen
15540 lt_cv_dlopen_libs=
15541 ;;
15542
15543 darwin*)
15544 # if libdl is installed we need to link against it
15545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15546 printf %s "checking for dlopen in -ldl... " >&6; }
15547 if test ${ac_cv_lib_dl_dlopen+y}
15548 then :
15549 printf %s "(cached) " >&6
15550 else case e in #(
15551 e) ac_check_lib_save_LIBS=$LIBS
15552 LIBS="-ldl $LIBS"
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15555
15556 /* Override any GCC internal prototype to avoid an error.
15557 Use char because int might match the return type of a GCC
15558 builtin and then its argument prototype would still apply.
15559 The 'extern "C"' is for builds by C++ compilers;
15560 although this is not generally supported in C code supporting it here
15561 has little cost and some practical benefit (sr 110532). */
15562 #ifdef __cplusplus
15563 extern "C"
15564 #endif
15565 char dlopen (void);
15566 int
15567 main (void)
15568 {
15569 return dlopen ();
15570 ;
15571 return 0;
15572 }
15573 _ACEOF
15574 if ac_fn_c_try_link "$LINENO"
15575 then :
15576 ac_cv_lib_dl_dlopen=yes
15577 else case e in #(
15578 e) ac_cv_lib_dl_dlopen=no ;;
15579 esac
15580 fi
15581 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15582 conftest$ac_exeext conftest.$ac_ext
15583 LIBS=$ac_check_lib_save_LIBS ;;
15584 esac
15585 fi
15586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15587 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15588 if test "x$ac_cv_lib_dl_dlopen" = xyes
15589 then :
15590 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15591 else case e in #(
15592 e)
15593 lt_cv_dlopen=dyld
15594 lt_cv_dlopen_libs=
15595 lt_cv_dlopen_self=yes
15596 ;;
15597 esac
15598 fi
15599
15600 ;;
15601
15602 tpf*)
15603 # Don't try to run any link tests for TPF. We know it's impossible
15604 # because TPF is a cross-compiler, and we know how we open DSOs.
15605 lt_cv_dlopen=dlopen
15606 lt_cv_dlopen_libs=
15607 lt_cv_dlopen_self=no
15608 ;;
15609
15610 *)
15611 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15612 if test "x$ac_cv_func_shl_load" = xyes
15613 then :
15614 lt_cv_dlopen=shl_load
15615 else case e in #(
15616 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15617 printf %s "checking for shl_load in -ldld... " >&6; }
15618 if test ${ac_cv_lib_dld_shl_load+y}
15619 then :
15620 printf %s "(cached) " >&6
15621 else case e in #(
15622 e) ac_check_lib_save_LIBS=$LIBS
15623 LIBS="-ldld $LIBS"
15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626
15627 /* Override any GCC internal prototype to avoid an error.
15628 Use char because int might match the return type of a GCC
15629 builtin and then its argument prototype would still apply.
15630 The 'extern "C"' is for builds by C++ compilers;
15631 although this is not generally supported in C code supporting it here
15632 has little cost and some practical benefit (sr 110532). */
15633 #ifdef __cplusplus
15634 extern "C"
15635 #endif
15636 char shl_load (void);
15637 int
15638 main (void)
15639 {
15640 return shl_load ();
15641 ;
15642 return 0;
15643 }
15644 _ACEOF
15645 if ac_fn_c_try_link "$LINENO"
15646 then :
15647 ac_cv_lib_dld_shl_load=yes
15648 else case e in #(
15649 e) ac_cv_lib_dld_shl_load=no ;;
15650 esac
15651 fi
15652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15653 conftest$ac_exeext conftest.$ac_ext
15654 LIBS=$ac_check_lib_save_LIBS ;;
15655 esac
15656 fi
15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15658 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15659 if test "x$ac_cv_lib_dld_shl_load" = xyes
15660 then :
15661 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15662 else case e in #(
15663 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15664 if test "x$ac_cv_func_dlopen" = xyes
15665 then :
15666 lt_cv_dlopen=dlopen
15667 else case e in #(
15668 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15669 printf %s "checking for dlopen in -ldl... " >&6; }
15670 if test ${ac_cv_lib_dl_dlopen+y}
15671 then :
15672 printf %s "(cached) " >&6
15673 else case e in #(
15674 e) ac_check_lib_save_LIBS=$LIBS
15675 LIBS="-ldl $LIBS"
15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15678
15679 /* Override any GCC internal prototype to avoid an error.
15680 Use char because int might match the return type of a GCC
15681 builtin and then its argument prototype would still apply.
15682 The 'extern "C"' is for builds by C++ compilers;
15683 although this is not generally supported in C code supporting it here
15684 has little cost and some practical benefit (sr 110532). */
15685 #ifdef __cplusplus
15686 extern "C"
15687 #endif
15688 char dlopen (void);
15689 int
15690 main (void)
15691 {
15692 return dlopen ();
15693 ;
15694 return 0;
15695 }
15696 _ACEOF
15697 if ac_fn_c_try_link "$LINENO"
15698 then :
15699 ac_cv_lib_dl_dlopen=yes
15700 else case e in #(
15701 e) ac_cv_lib_dl_dlopen=no ;;
15702 esac
15703 fi
15704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15705 conftest$ac_exeext conftest.$ac_ext
15706 LIBS=$ac_check_lib_save_LIBS ;;
15707 esac
15708 fi
15709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15710 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15711 if test "x$ac_cv_lib_dl_dlopen" = xyes
15712 then :
15713 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15714 else case e in #(
15715 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15716 printf %s "checking for dlopen in -lsvld... " >&6; }
15717 if test ${ac_cv_lib_svld_dlopen+y}
15718 then :
15719 printf %s "(cached) " >&6
15720 else case e in #(
15721 e) ac_check_lib_save_LIBS=$LIBS
15722 LIBS="-lsvld $LIBS"
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15725
15726 /* Override any GCC internal prototype to avoid an error.
15727 Use char because int might match the return type of a GCC
15728 builtin and then its argument prototype would still apply.
15729 The 'extern "C"' is for builds by C++ compilers;
15730 although this is not generally supported in C code supporting it here
15731 has little cost and some practical benefit (sr 110532). */
15732 #ifdef __cplusplus
15733 extern "C"
15734 #endif
15735 char dlopen (void);
15736 int
15737 main (void)
15738 {
15739 return dlopen ();
15740 ;
15741 return 0;
15742 }
15743 _ACEOF
15744 if ac_fn_c_try_link "$LINENO"
15745 then :
15746 ac_cv_lib_svld_dlopen=yes
15747 else case e in #(
15748 e) ac_cv_lib_svld_dlopen=no ;;
15749 esac
15750 fi
15751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15752 conftest$ac_exeext conftest.$ac_ext
15753 LIBS=$ac_check_lib_save_LIBS ;;
15754 esac
15755 fi
15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15757 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15758 if test "x$ac_cv_lib_svld_dlopen" = xyes
15759 then :
15760 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15761 else case e in #(
15762 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15763 printf %s "checking for dld_link in -ldld... " >&6; }
15764 if test ${ac_cv_lib_dld_dld_link+y}
15765 then :
15766 printf %s "(cached) " >&6
15767 else case e in #(
15768 e) ac_check_lib_save_LIBS=$LIBS
15769 LIBS="-ldld $LIBS"
15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15772
15773 /* Override any GCC internal prototype to avoid an error.
15774 Use char because int might match the return type of a GCC
15775 builtin and then its argument prototype would still apply.
15776 The 'extern "C"' is for builds by C++ compilers;
15777 although this is not generally supported in C code supporting it here
15778 has little cost and some practical benefit (sr 110532). */
15779 #ifdef __cplusplus
15780 extern "C"
15781 #endif
15782 char dld_link (void);
15783 int
15784 main (void)
15785 {
15786 return dld_link ();
15787 ;
15788 return 0;
15789 }
15790 _ACEOF
15791 if ac_fn_c_try_link "$LINENO"
15792 then :
15793 ac_cv_lib_dld_dld_link=yes
15794 else case e in #(
15795 e) ac_cv_lib_dld_dld_link=no ;;
15796 esac
15797 fi
15798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15799 conftest$ac_exeext conftest.$ac_ext
15800 LIBS=$ac_check_lib_save_LIBS ;;
15801 esac
15802 fi
15803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15804 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15805 if test "x$ac_cv_lib_dld_dld_link" = xyes
15806 then :
15807 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15808 fi
15809
15810 ;;
15811 esac
15812 fi
15813
15814 ;;
15815 esac
15816 fi
15817
15818 ;;
15819 esac
15820 fi
15821
15822 ;;
15823 esac
15824 fi
15825
15826 ;;
15827 esac
15828 fi
15829
15830 ;;
15831 esac
15832
15833 if test no = "$lt_cv_dlopen"; then
15834 enable_dlopen=no
15835 else
15836 enable_dlopen=yes
15837 fi
15838
15839 case $lt_cv_dlopen in
15840 dlopen)
15841 save_CPPFLAGS=$CPPFLAGS
15842 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15843
15844 save_LDFLAGS=$LDFLAGS
15845 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15846
15847 save_LIBS=$LIBS
15848 LIBS="$lt_cv_dlopen_libs $LIBS"
15849
15850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15851 printf %s "checking whether a program can dlopen itself... " >&6; }
15852 if test ${lt_cv_dlopen_self+y}
15853 then :
15854 printf %s "(cached) " >&6
15855 else case e in #(
15856 e) if test yes = "$cross_compiling"; then :
15857 lt_cv_dlopen_self=cross
15858 else
15859 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15860 lt_status=$lt_dlunknown
15861 cat > conftest.$ac_ext <<_LT_EOF
15862 #line $LINENO "configure"
15863 #include "confdefs.h"
15864
15865 #if HAVE_DLFCN_H
15866 #include <dlfcn.h>
15867 #endif
15868
15869 #include <stdio.h>
15870
15871 #ifdef RTLD_GLOBAL
15872 # define LT_DLGLOBAL RTLD_GLOBAL
15873 #else
15874 # ifdef DL_GLOBAL
15875 # define LT_DLGLOBAL DL_GLOBAL
15876 # else
15877 # define LT_DLGLOBAL 0
15878 # endif
15879 #endif
15880
15881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15882 find out it does not work in some platform. */
15883 #ifndef LT_DLLAZY_OR_NOW
15884 # ifdef RTLD_LAZY
15885 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15886 # else
15887 # ifdef DL_LAZY
15888 # define LT_DLLAZY_OR_NOW DL_LAZY
15889 # else
15890 # ifdef RTLD_NOW
15891 # define LT_DLLAZY_OR_NOW RTLD_NOW
15892 # else
15893 # ifdef DL_NOW
15894 # define LT_DLLAZY_OR_NOW DL_NOW
15895 # else
15896 # define LT_DLLAZY_OR_NOW 0
15897 # endif
15898 # endif
15899 # endif
15900 # endif
15901 #endif
15902
15903 /* When -fvisibility=hidden is used, assume the code has been annotated
15904 correspondingly for the symbols needed. */
15905 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15906 int fnord (void) __attribute__((visibility("default")));
15907 #endif
15908
15909 int fnord (void) { return 42; }
15910 int main (void)
15911 {
15912 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15913 int status = $lt_dlunknown;
15914
15915 if (self)
15916 {
15917 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15918 else
15919 {
15920 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15921 else puts (dlerror ());
15922 }
15923 /* dlclose (self); */
15924 }
15925 else
15926 puts (dlerror ());
15927
15928 return status;
15929 }
15930 _LT_EOF
15931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15932 (eval $ac_link) 2>&5
15933 ac_status=$?
15934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15935 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15936 (./conftest; exit; ) >&5 2>/dev/null
15937 lt_status=$?
15938 case x$lt_status in
15939 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15940 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15941 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15942 esac
15943 else :
15944 # compilation failed
15945 lt_cv_dlopen_self=no
15946 fi
15947 fi
15948 rm -fr conftest*
15949
15950 ;;
15951 esac
15952 fi
15953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15954 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15955
15956 if test yes = "$lt_cv_dlopen_self"; then
15957 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15959 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15960 if test ${lt_cv_dlopen_self_static+y}
15961 then :
15962 printf %s "(cached) " >&6
15963 else case e in #(
15964 e) if test yes = "$cross_compiling"; then :
15965 lt_cv_dlopen_self_static=cross
15966 else
15967 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15968 lt_status=$lt_dlunknown
15969 cat > conftest.$ac_ext <<_LT_EOF
15970 #line $LINENO "configure"
15971 #include "confdefs.h"
15972
15973 #if HAVE_DLFCN_H
15974 #include <dlfcn.h>
15975 #endif
15976
15977 #include <stdio.h>
15978
15979 #ifdef RTLD_GLOBAL
15980 # define LT_DLGLOBAL RTLD_GLOBAL
15981 #else
15982 # ifdef DL_GLOBAL
15983 # define LT_DLGLOBAL DL_GLOBAL
15984 # else
15985 # define LT_DLGLOBAL 0
15986 # endif
15987 #endif
15988
15989 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15990 find out it does not work in some platform. */
15991 #ifndef LT_DLLAZY_OR_NOW
15992 # ifdef RTLD_LAZY
15993 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15994 # else
15995 # ifdef DL_LAZY
15996 # define LT_DLLAZY_OR_NOW DL_LAZY
15997 # else
15998 # ifdef RTLD_NOW
15999 # define LT_DLLAZY_OR_NOW RTLD_NOW
16000 # else
16001 # ifdef DL_NOW
16002 # define LT_DLLAZY_OR_NOW DL_NOW
16003 # else
16004 # define LT_DLLAZY_OR_NOW 0
16005 # endif
16006 # endif
16007 # endif
16008 # endif
16009 #endif
16010
16011 /* When -fvisibility=hidden is used, assume the code has been annotated
16012 correspondingly for the symbols needed. */
16013 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16014 int fnord (void) __attribute__((visibility("default")));
16015 #endif
16016
16017 int fnord (void) { return 42; }
16018 int main (void)
16019 {
16020 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16021 int status = $lt_dlunknown;
16022
16023 if (self)
16024 {
16025 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16026 else
16027 {
16028 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16029 else puts (dlerror ());
16030 }
16031 /* dlclose (self); */
16032 }
16033 else
16034 puts (dlerror ());
16035
16036 return status;
16037 }
16038 _LT_EOF
16039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16040 (eval $ac_link) 2>&5
16041 ac_status=$?
16042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16043 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16044 (./conftest; exit; ) >&5 2>/dev/null
16045 lt_status=$?
16046 case x$lt_status in
16047 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16048 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16049 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16050 esac
16051 else :
16052 # compilation failed
16053 lt_cv_dlopen_self_static=no
16054 fi
16055 fi
16056 rm -fr conftest*
16057
16058 ;;
16059 esac
16060 fi
16061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16062 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16063 fi
16064
16065 CPPFLAGS=$save_CPPFLAGS
16066 LDFLAGS=$save_LDFLAGS
16067 LIBS=$save_LIBS
16068 ;;
16069 esac
16070
16071 case $lt_cv_dlopen_self in
16072 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16073 *) enable_dlopen_self=unknown ;;
16074 esac
16075
16076 case $lt_cv_dlopen_self_static in
16077 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16078 *) enable_dlopen_self_static=unknown ;;
16079 esac
16080 fi
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098 striplib=
16099 old_striplib=
16100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16101 printf %s "checking whether stripping libraries is possible... " >&6; }
16102 if test -z "$STRIP"; then
16103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16104 printf "%s\n" "no" >&6; }
16105 else
16106 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16107 old_striplib="$STRIP --strip-debug"
16108 striplib="$STRIP --strip-unneeded"
16109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16110 printf "%s\n" "yes" >&6; }
16111 else
16112 case $host_os in
16113 darwin*)
16114 # FIXME - insert some real tests, host_os isn't really good enough
16115 striplib="$STRIP -x"
16116 old_striplib="$STRIP -S"
16117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16118 printf "%s\n" "yes" >&6; }
16119 ;;
16120 freebsd*)
16121 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16122 old_striplib="$STRIP --strip-debug"
16123 striplib="$STRIP --strip-unneeded"
16124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16125 printf "%s\n" "yes" >&6; }
16126 else
16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16128 printf "%s\n" "no" >&6; }
16129 fi
16130 ;;
16131 *)
16132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16133 printf "%s\n" "no" >&6; }
16134 ;;
16135 esac
16136 fi
16137 fi
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150 # Report what library types will actually be built
16151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16152 printf %s "checking if libtool supports shared libraries... " >&6; }
16153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16154 printf "%s\n" "$can_build_shared" >&6; }
16155
16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16157 printf %s "checking whether to build shared libraries... " >&6; }
16158 test no = "$can_build_shared" && enable_shared=no
16159
16160 # On AIX, shared libraries and static libraries use the same namespace, and
16161 # are all built from PIC.
16162 case $host_os in
16163 aix3*)
16164 test yes = "$enable_shared" && enable_static=no
16165 if test -n "$RANLIB"; then
16166 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16167 postinstall_cmds='$RANLIB $lib'
16168 fi
16169 ;;
16170
16171 aix[4-9]*)
16172 if test ia64 != "$host_cpu"; then
16173 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16174 yes,aix,yes) ;; # shared object as lib.so file only
16175 yes,svr4,*) ;; # shared object as lib.so archive member only
16176 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16177 esac
16178 fi
16179 ;;
16180 esac
16181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16182 printf "%s\n" "$enable_shared" >&6; }
16183
16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16185 printf %s "checking whether to build static libraries... " >&6; }
16186 # Make sure either enable_shared or enable_static is yes.
16187 test yes = "$enable_shared" || enable_static=yes
16188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16189 printf "%s\n" "$enable_static" >&6; }
16190
16191
16192
16193
16194 fi
16195 ac_ext=cpp
16196 ac_cpp='$CXXCPP $CPPFLAGS'
16197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16200
16201 CC=$lt_save_CC
16202
16203 if test -n "$CXX" && ( test no != "$CXX" &&
16204 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16205 (test g++ != "$CXX"))); then
16206 ac_ext=cpp
16207 ac_cpp='$CXXCPP $CPPFLAGS'
16208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16212 printf %s "checking how to run the C++ preprocessor... " >&6; }
16213 if test -z "$CXXCPP"; then
16214 if test ${ac_cv_prog_CXXCPP+y}
16215 then :
16216 printf %s "(cached) " >&6
16217 else case e in #(
16218 e) # Double quotes because $CXX needs to be expanded
16219 for CXXCPP in "$CXX -E" cpp /lib/cpp
16220 do
16221 ac_preproc_ok=false
16222 for ac_cxx_preproc_warn_flag in '' yes
16223 do
16224 # Use a header file that comes with gcc, so configuring glibc
16225 # with a fresh cross-compiler works.
16226 # On the NeXT, cc -E runs the code through the compiler's parser,
16227 # not just through cpp. "Syntax error" is here to catch this case.
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16230 #include <limits.h>
16231 Syntax error
16232 _ACEOF
16233 if ac_fn_cxx_try_cpp "$LINENO"
16234 then :
16235
16236 else case e in #(
16237 e) # Broken: fails on valid input.
16238 continue ;;
16239 esac
16240 fi
16241 rm -f conftest.err conftest.i conftest.$ac_ext
16242
16243 # OK, works on sane cases. Now check whether nonexistent headers
16244 # can be detected and how.
16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h. */
16247 #include <ac_nonexistent.h>
16248 _ACEOF
16249 if ac_fn_cxx_try_cpp "$LINENO"
16250 then :
16251 # Broken: success on invalid input.
16252 continue
16253 else case e in #(
16254 e) # Passes both tests.
16255 ac_preproc_ok=:
16256 break ;;
16257 esac
16258 fi
16259 rm -f conftest.err conftest.i conftest.$ac_ext
16260
16261 done
16262 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16263 rm -f conftest.i conftest.err conftest.$ac_ext
16264 if $ac_preproc_ok
16265 then :
16266 break
16267 fi
16268
16269 done
16270 ac_cv_prog_CXXCPP=$CXXCPP
16271 ;;
16272 esac
16273 fi
16274 CXXCPP=$ac_cv_prog_CXXCPP
16275 else
16276 ac_cv_prog_CXXCPP=$CXXCPP
16277 fi
16278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16279 printf "%s\n" "$CXXCPP" >&6; }
16280 ac_preproc_ok=false
16281 for ac_cxx_preproc_warn_flag in '' yes
16282 do
16283 # Use a header file that comes with gcc, so configuring glibc
16284 # with a fresh cross-compiler works.
16285 # On the NeXT, cc -E runs the code through the compiler's parser,
16286 # not just through cpp. "Syntax error" is here to catch this case.
16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288 /* end confdefs.h. */
16289 #include <limits.h>
16290 Syntax error
16291 _ACEOF
16292 if ac_fn_cxx_try_cpp "$LINENO"
16293 then :
16294
16295 else case e in #(
16296 e) # Broken: fails on valid input.
16297 continue ;;
16298 esac
16299 fi
16300 rm -f conftest.err conftest.i conftest.$ac_ext
16301
16302 # OK, works on sane cases. Now check whether nonexistent headers
16303 # can be detected and how.
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 #include <ac_nonexistent.h>
16307 _ACEOF
16308 if ac_fn_cxx_try_cpp "$LINENO"
16309 then :
16310 # Broken: success on invalid input.
16311 continue
16312 else case e in #(
16313 e) # Passes both tests.
16314 ac_preproc_ok=:
16315 break ;;
16316 esac
16317 fi
16318 rm -f conftest.err conftest.i conftest.$ac_ext
16319
16320 done
16321 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16322 rm -f conftest.i conftest.err conftest.$ac_ext
16323 if $ac_preproc_ok
16324 then :
16325
16326 else case e in #(
16327 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16328 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16329 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16330 See 'config.log' for more details" "$LINENO" 5; } ;;
16331 esac
16332 fi
16333
16334 ac_ext=cpp
16335 ac_cpp='$CXXCPP $CPPFLAGS'
16336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16339
16340 else
16341 _lt_caught_CXX_error=yes
16342 fi
16343
16344 ac_ext=cpp
16345 ac_cpp='$CXXCPP $CPPFLAGS'
16346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16349
16350 archive_cmds_need_lc_CXX=no
16351 allow_undefined_flag_CXX=
16352 always_export_symbols_CXX=no
16353 archive_expsym_cmds_CXX=
16354 compiler_needs_object_CXX=no
16355 export_dynamic_flag_spec_CXX=
16356 hardcode_direct_CXX=no
16357 hardcode_direct_absolute_CXX=no
16358 hardcode_libdir_flag_spec_CXX=
16359 hardcode_libdir_separator_CXX=
16360 hardcode_minus_L_CXX=no
16361 hardcode_shlibpath_var_CXX=unsupported
16362 hardcode_automatic_CXX=no
16363 inherit_rpath_CXX=no
16364 module_cmds_CXX=
16365 module_expsym_cmds_CXX=
16366 link_all_deplibs_CXX=unknown
16367 old_archive_cmds_CXX=$old_archive_cmds
16368 reload_flag_CXX=$reload_flag
16369 reload_cmds_CXX=$reload_cmds
16370 no_undefined_flag_CXX=
16371 whole_archive_flag_spec_CXX=
16372 enable_shared_with_static_runtimes_CXX=no
16373
16374 # Source file extension for C++ test sources.
16375 ac_ext=cpp
16376
16377 # Object file extension for compiled C++ test sources.
16378 objext=o
16379 objext_CXX=$objext
16380
16381 # No sense in running all these tests if we already determined that
16382 # the CXX compiler isn't working. Some variables (like enable_shared)
16383 # are currently assumed to apply to all compilers on this platform,
16384 # and will be corrupted by setting them based on a non-working compiler.
16385 if test yes != "$_lt_caught_CXX_error"; then
16386 # Code to be used in simple compile tests
16387 lt_simple_compile_test_code="int some_variable = 0;"
16388
16389 # Code to be used in simple link tests
16390 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16391
16392 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16393
16394
16395
16396
16397
16398
16399 # If no C compiler was specified, use CC.
16400 LTCC=${LTCC-"$CC"}
16401
16402 # If no C compiler flags were specified, use CFLAGS.
16403 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16404
16405 # Allow CC to be a program name with arguments.
16406 compiler=$CC
16407
16408
16409 # save warnings/boilerplate of simple test code
16410 ac_outfile=conftest.$ac_objext
16411 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16412 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16413 _lt_compiler_boilerplate=`cat conftest.err`
16414 $RM conftest*
16415
16416 ac_outfile=conftest.$ac_objext
16417 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16418 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16419 _lt_linker_boilerplate=`cat conftest.err`
16420 $RM -r conftest*
16421
16422
16423 # Allow CC to be a program name with arguments.
16424 lt_save_CC=$CC
16425 lt_save_CFLAGS=$CFLAGS
16426 lt_save_LD=$LD
16427 lt_save_GCC=$GCC
16428 GCC=$GXX
16429 lt_save_with_gnu_ld=$with_gnu_ld
16430 lt_save_path_LD=$lt_cv_path_LD
16431 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16432 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16433 else
16434 $as_unset lt_cv_prog_gnu_ld
16435 fi
16436 if test -n "${lt_cv_path_LDCXX+set}"; then
16437 lt_cv_path_LD=$lt_cv_path_LDCXX
16438 else
16439 $as_unset lt_cv_path_LD
16440 fi
16441 test -z "${LDCXX+set}" || LD=$LDCXX
16442 CC=${CXX-"c++"}
16443 CFLAGS=$CXXFLAGS
16444 compiler=$CC
16445 compiler_CXX=$CC
16446 func_cc_basename $compiler
16447 cc_basename=$func_cc_basename_result
16448
16449
16450 if test -n "$compiler"; then
16451 # We don't want -fno-exception when compiling C++ code, so set the
16452 # no_builtin_flag separately
16453 if test yes = "$GXX"; then
16454 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16455 else
16456 lt_prog_compiler_no_builtin_flag_CXX=
16457 fi
16458
16459 if test yes = "$GXX"; then
16460 # Set up default GNU C++ configuration
16461
16462
16463
16464 # Check whether --with-gnu-ld was given.
16465 if test ${with_gnu_ld+y}
16466 then :
16467 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16468 else case e in #(
16469 e) with_gnu_ld=no ;;
16470 esac
16471 fi
16472
16473 ac_prog=ld
16474 if test yes = "$GCC"; then
16475 # Check if gcc -print-prog-name=ld gives a path.
16476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16477 printf %s "checking for ld used by $CC... " >&6; }
16478 case $host in
16479 *-*-mingw* | *-*-windows*)
16480 # gcc leaves a trailing carriage return, which upsets mingw
16481 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16482 *)
16483 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16484 esac
16485 case $ac_prog in
16486 # Accept absolute paths.
16487 [\\/]* | ?:[\\/]*)
16488 re_direlt='/[^/][^/]*/\.\./'
16489 # Canonicalize the pathname of ld
16490 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16491 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16492 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16493 done
16494 test -z "$LD" && LD=$ac_prog
16495 ;;
16496 "")
16497 # If it fails, then pretend we aren't using GCC.
16498 ac_prog=ld
16499 ;;
16500 *)
16501 # If it is relative, then search for the first ld in PATH.
16502 with_gnu_ld=unknown
16503 ;;
16504 esac
16505 elif test yes = "$with_gnu_ld"; then
16506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16507 printf %s "checking for GNU ld... " >&6; }
16508 else
16509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16510 printf %s "checking for non-GNU ld... " >&6; }
16511 fi
16512 if test ${lt_cv_path_LD+y}
16513 then :
16514 printf %s "(cached) " >&6
16515 else case e in #(
16516 e) if test -z "$LD"; then
16517 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16518 for ac_dir in $PATH; do
16519 IFS=$lt_save_ifs
16520 test -z "$ac_dir" && ac_dir=.
16521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16522 lt_cv_path_LD=$ac_dir/$ac_prog
16523 # Check to see if the program is GNU ld. I'd rather use --version,
16524 # but apparently some variants of GNU ld only accept -v.
16525 # Break only if it was the GNU/non-GNU ld that we prefer.
16526 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16527 *GNU* | *'with BFD'*)
16528 test no != "$with_gnu_ld" && break
16529 ;;
16530 *)
16531 test yes != "$with_gnu_ld" && break
16532 ;;
16533 esac
16534 fi
16535 done
16536 IFS=$lt_save_ifs
16537 else
16538 lt_cv_path_LD=$LD # Let the user override the test with a path.
16539 fi ;;
16540 esac
16541 fi
16542
16543 LD=$lt_cv_path_LD
16544 if test -n "$LD"; then
16545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16546 printf "%s\n" "$LD" >&6; }
16547 else
16548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16549 printf "%s\n" "no" >&6; }
16550 fi
16551 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16553 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16554 if test ${lt_cv_prog_gnu_ld+y}
16555 then :
16556 printf %s "(cached) " >&6
16557 else case e in #(
16558 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
16559 case `$LD -v 2>&1 </dev/null` in
16560 *GNU* | *'with BFD'*)
16561 lt_cv_prog_gnu_ld=yes
16562 ;;
16563 *)
16564 lt_cv_prog_gnu_ld=no
16565 ;;
16566 esac ;;
16567 esac
16568 fi
16569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16570 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
16571 with_gnu_ld=$lt_cv_prog_gnu_ld
16572
16573
16574
16575
16576
16577
16578
16579 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16580 # archiving commands below assume that GNU ld is being used.
16581 if test yes = "$with_gnu_ld"; then
16582 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16583 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'
16584
16585 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16586 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16587
16588 # If archive_cmds runs LD, not CC, wlarc should be empty
16589 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16590 # investigate it a little bit more. (MM)
16591 wlarc='$wl'
16592
16593 # ancient GNU ld didn't support --whole-archive et. al.
16594 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16595 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16596 else
16597 whole_archive_flag_spec_CXX=
16598 fi
16599 else
16600 with_gnu_ld=no
16601 wlarc=
16602
16603 # A generic and very simple default shared library creation
16604 # command for GNU C++ for the case where it uses the native
16605 # linker, instead of GNU ld. If possible, this setting should
16606 # overridden to take advantage of the native linker features on
16607 # the platform it is being used on.
16608 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16609 fi
16610
16611 # Commands to make compiler produce verbose output that lists
16612 # what "hidden" libraries, object files and flags are used when
16613 # linking a shared library.
16614 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16615
16616 else
16617 GXX=no
16618 with_gnu_ld=no
16619 wlarc=
16620 fi
16621
16622 # PORTME: fill in a description of your system's C++ link characteristics
16623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16624 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16625 ld_shlibs_CXX=yes
16626 case $host_os in
16627 aix3*)
16628 # FIXME: insert proper C++ library support
16629 ld_shlibs_CXX=no
16630 ;;
16631 aix[4-9]*)
16632 if test ia64 = "$host_cpu"; then
16633 # On IA64, the linker does run time linking by default, so we don't
16634 # have to do anything special.
16635 aix_use_runtimelinking=no
16636 exp_sym_flag='-Bexport'
16637 no_entry_flag=
16638 else
16639 aix_use_runtimelinking=no
16640
16641 # Test if we are trying to use run time linking or normal
16642 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16643 # have runtime linking enabled, and use it for executables.
16644 # For shared libraries, we enable/disable runtime linking
16645 # depending on the kind of the shared library created -
16646 # when "with_aix_soname,aix_use_runtimelinking" is:
16647 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16648 # "aix,yes" lib.so shared, rtl:yes, for executables
16649 # lib.a static archive
16650 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16651 # lib.a(lib.so.V) shared, rtl:no, for executables
16652 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16653 # lib.a(lib.so.V) shared, rtl:no
16654 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16655 # lib.a static archive
16656 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16657 for ld_flag in $LDFLAGS; do
16658 case $ld_flag in
16659 *-brtl*)
16660 aix_use_runtimelinking=yes
16661 break
16662 ;;
16663 esac
16664 done
16665 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16666 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16667 # so we don't have lib.a shared libs to link our executables.
16668 # We have to force runtime linking in this case.
16669 aix_use_runtimelinking=yes
16670 LDFLAGS="$LDFLAGS -Wl,-brtl"
16671 fi
16672 ;;
16673 esac
16674
16675 exp_sym_flag='-bexport'
16676 no_entry_flag='-bnoentry'
16677 fi
16678
16679 # When large executables or shared objects are built, AIX ld can
16680 # have problems creating the table of contents. If linking a library
16681 # or program results in "error TOC overflow" add -mminimal-toc to
16682 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16683 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16684
16685 archive_cmds_CXX=''
16686 hardcode_direct_CXX=yes
16687 hardcode_direct_absolute_CXX=yes
16688 hardcode_libdir_separator_CXX=':'
16689 link_all_deplibs_CXX=yes
16690 file_list_spec_CXX='$wl-f,'
16691 case $with_aix_soname,$aix_use_runtimelinking in
16692 aix,*) ;; # no import file
16693 svr4,* | *,yes) # use import file
16694 # The Import File defines what to hardcode.
16695 hardcode_direct_CXX=no
16696 hardcode_direct_absolute_CXX=no
16697 ;;
16698 esac
16699
16700 if test yes = "$GXX"; then
16701 case $host_os in aix4.[012]|aix4.[012].*)
16702 # We only want to do this on AIX 4.2 and lower, the check
16703 # below for broken collect2 doesn't work under 4.3+
16704 collect2name=`$CC -print-prog-name=collect2`
16705 if test -f "$collect2name" &&
16706 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16707 then
16708 # We have reworked collect2
16709 :
16710 else
16711 # We have old collect2
16712 hardcode_direct_CXX=unsupported
16713 # It fails to find uninstalled libraries when the uninstalled
16714 # path is not listed in the libpath. Setting hardcode_minus_L
16715 # to unsupported forces relinking
16716 hardcode_minus_L_CXX=yes
16717 hardcode_libdir_flag_spec_CXX='-L$libdir'
16718 hardcode_libdir_separator_CXX=
16719 fi
16720 esac
16721 shared_flag='-shared'
16722 if test yes = "$aix_use_runtimelinking"; then
16723 shared_flag=$shared_flag' $wl-G'
16724 fi
16725 # Need to ensure runtime linking is disabled for the traditional
16726 # shared library, or the linker may eventually find shared libraries
16727 # /with/ Import File - we do not want to mix them.
16728 shared_flag_aix='-shared'
16729 shared_flag_svr4='-shared $wl-G'
16730 else
16731 # not using gcc
16732 if test ia64 = "$host_cpu"; then
16733 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16734 # chokes on -Wl,-G. The following line is correct:
16735 shared_flag='-G'
16736 else
16737 if test yes = "$aix_use_runtimelinking"; then
16738 shared_flag='$wl-G'
16739 else
16740 shared_flag='$wl-bM:SRE'
16741 fi
16742 shared_flag_aix='$wl-bM:SRE'
16743 shared_flag_svr4='$wl-G'
16744 fi
16745 fi
16746
16747 export_dynamic_flag_spec_CXX='$wl-bexpall'
16748 # It seems that -bexpall does not export symbols beginning with
16749 # underscore (_), so it is better to generate a list of symbols to
16750 # export.
16751 always_export_symbols_CXX=yes
16752 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16753 # Warning - without using the other runtime loading flags (-brtl),
16754 # -berok will link without error, but may produce a broken library.
16755 # The "-G" linker flag allows undefined symbols.
16756 no_undefined_flag_CXX='-bernotok'
16757 # Determine the default libpath from the value encoded in an empty
16758 # executable.
16759 if test set = "${lt_cv_aix_libpath+set}"; then
16760 aix_libpath=$lt_cv_aix_libpath
16761 else
16762 if test ${lt_cv_aix_libpath__CXX+y}
16763 then :
16764 printf %s "(cached) " >&6
16765 else case e in #(
16766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767 /* end confdefs.h. */
16768
16769 int
16770 main (void)
16771 {
16772
16773 ;
16774 return 0;
16775 }
16776 _ACEOF
16777 if ac_fn_cxx_try_link "$LINENO"
16778 then :
16779
16780 lt_aix_libpath_sed='
16781 /Import File Strings/,/^$/ {
16782 /^0/ {
16783 s/^0 *\([^ ]*\) *$/\1/
16784 p
16785 }
16786 }'
16787 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16788 # Check for a 64-bit object if we didn't find anything.
16789 if test -z "$lt_cv_aix_libpath__CXX"; then
16790 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16791 fi
16792 fi
16793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16794 conftest$ac_exeext conftest.$ac_ext
16795 if test -z "$lt_cv_aix_libpath__CXX"; then
16796 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16797 fi
16798 ;;
16799 esac
16800 fi
16801
16802 aix_libpath=$lt_cv_aix_libpath__CXX
16803 fi
16804
16805 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16806
16807 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
16808 else
16809 if test ia64 = "$host_cpu"; then
16810 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16811 allow_undefined_flag_CXX="-z nodefs"
16812 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"
16813 else
16814 # Determine the default libpath from the value encoded in an
16815 # empty executable.
16816 if test set = "${lt_cv_aix_libpath+set}"; then
16817 aix_libpath=$lt_cv_aix_libpath
16818 else
16819 if test ${lt_cv_aix_libpath__CXX+y}
16820 then :
16821 printf %s "(cached) " >&6
16822 else case e in #(
16823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16825
16826 int
16827 main (void)
16828 {
16829
16830 ;
16831 return 0;
16832 }
16833 _ACEOF
16834 if ac_fn_cxx_try_link "$LINENO"
16835 then :
16836
16837 lt_aix_libpath_sed='
16838 /Import File Strings/,/^$/ {
16839 /^0/ {
16840 s/^0 *\([^ ]*\) *$/\1/
16841 p
16842 }
16843 }'
16844 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16845 # Check for a 64-bit object if we didn't find anything.
16846 if test -z "$lt_cv_aix_libpath__CXX"; then
16847 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16848 fi
16849 fi
16850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16851 conftest$ac_exeext conftest.$ac_ext
16852 if test -z "$lt_cv_aix_libpath__CXX"; then
16853 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16854 fi
16855 ;;
16856 esac
16857 fi
16858
16859 aix_libpath=$lt_cv_aix_libpath__CXX
16860 fi
16861
16862 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16863 # Warning - without using the other run time loading flags,
16864 # -berok will link without error, but may produce a broken library.
16865 no_undefined_flag_CXX=' $wl-bernotok'
16866 allow_undefined_flag_CXX=' $wl-berok'
16867 if test yes = "$with_gnu_ld"; then
16868 # We only use this code for GNU lds that support --whole-archive.
16869 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16870 else
16871 # Exported symbols can be pulled into shared objects from archives
16872 whole_archive_flag_spec_CXX='$convenience'
16873 fi
16874 archive_cmds_need_lc_CXX=yes
16875 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16876 # -brtl affects multiple linker settings, -berok does not and is overridden later
16877 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16878 if test svr4 != "$with_aix_soname"; then
16879 # This is similar to how AIX traditionally builds its shared
16880 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16881 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'
16882 fi
16883 if test aix != "$with_aix_soname"; then
16884 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'
16885 else
16886 # used by -dlpreopen to get the symbols
16887 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16888 fi
16889 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16890 fi
16891 fi
16892 ;;
16893
16894 beos*)
16895 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16896 allow_undefined_flag_CXX=unsupported
16897 # Joseph Beckenbach <[email protected]> says some releases of gcc
16898 # support --undefined. This deserves some investigation. FIXME
16899 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16900 else
16901 ld_shlibs_CXX=no
16902 fi
16903 ;;
16904
16905 chorus*)
16906 case $cc_basename in
16907 *)
16908 # FIXME: insert proper C++ library support
16909 ld_shlibs_CXX=no
16910 ;;
16911 esac
16912 ;;
16913
16914 cygwin* | mingw* | windows* | pw32* | cegcc*)
16915 case $GXX,$cc_basename in
16916 ,cl* | no,cl* | ,icl* | no,icl*)
16917 # Native MSVC or ICC
16918 # hardcode_libdir_flag_spec is actually meaningless, as there is
16919 # no search path for DLLs.
16920 hardcode_libdir_flag_spec_CXX=' '
16921 allow_undefined_flag_CXX=unsupported
16922 always_export_symbols_CXX=yes
16923 file_list_spec_CXX='@'
16924 # Tell ltmain to make .lib files, not .a files.
16925 libext=lib
16926 # Tell ltmain to make .dll files, not .so files.
16927 shrext_cmds=.dll
16928 # FIXME: Setting linknames here is a bad hack.
16929 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16930 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16931 cp "$export_symbols" "$output_objdir/$soname.def";
16932 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16933 else
16934 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16935 fi~
16936 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16937 linknames='
16938 # The linker will not automatically build a static lib if we build a DLL.
16939 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16940 enable_shared_with_static_runtimes_CXX=yes
16941 # Don't use ranlib
16942 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16943 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16944 lt_tool_outputfile="@TOOL_OUTPUT@"~
16945 case $lt_outputfile in
16946 *.exe|*.EXE) ;;
16947 *)
16948 lt_outputfile=$lt_outputfile.exe
16949 lt_tool_outputfile=$lt_tool_outputfile.exe
16950 ;;
16951 esac~
16952 func_to_tool_file "$lt_outputfile"~
16953 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16954 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16955 $RM "$lt_outputfile.manifest";
16956 fi'
16957 ;;
16958 *)
16959 # g++
16960 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16961 # as there is no search path for DLLs.
16962 hardcode_libdir_flag_spec_CXX='-L$libdir'
16963 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16964 allow_undefined_flag_CXX=unsupported
16965 always_export_symbols_CXX=no
16966 enable_shared_with_static_runtimes_CXX=yes
16967 file_list_spec_CXX='@'
16968
16969 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16970 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'
16971 # If the export-symbols file already is a .def file, use it as
16972 # is; otherwise, prepend EXPORTS...
16973 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16974 cp $export_symbols $output_objdir/$soname.def;
16975 else
16976 echo EXPORTS > $output_objdir/$soname.def;
16977 cat $export_symbols >> $output_objdir/$soname.def;
16978 fi~
16979 $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'
16980 else
16981 ld_shlibs_CXX=no
16982 fi
16983 ;;
16984 esac
16985 ;;
16986 darwin* | rhapsody*)
16987
16988
16989 archive_cmds_need_lc_CXX=no
16990 hardcode_direct_CXX=no
16991 hardcode_automatic_CXX=yes
16992 hardcode_shlibpath_var_CXX=unsupported
16993 if test yes = "$lt_cv_ld_force_load"; then
16994 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\"`'
16995
16996 else
16997 whole_archive_flag_spec_CXX=''
16998 fi
16999 link_all_deplibs_CXX=yes
17000 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17001 case $cc_basename in
17002 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17003 *) _lt_dar_can_shared=$GCC ;;
17004 esac
17005 if test yes = "$_lt_dar_can_shared"; then
17006 output_verbose_link_cmd=func_echo_all
17007 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"
17008 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17009 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"
17010 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"
17011 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
17012 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"
17013 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"
17014 fi
17015
17016 else
17017 ld_shlibs_CXX=no
17018 fi
17019
17020 ;;
17021
17022 os2*)
17023 hardcode_libdir_flag_spec_CXX='-L$libdir'
17024 hardcode_minus_L_CXX=yes
17025 allow_undefined_flag_CXX=unsupported
17026 shrext_cmds=.dll
17027 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17028 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17029 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17030 $ECHO EXPORTS >> $output_objdir/$libname.def~
17031 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17032 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17033 emximp -o $lib $output_objdir/$libname.def'
17034 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17035 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17036 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17037 $ECHO EXPORTS >> $output_objdir/$libname.def~
17038 prefix_cmds="$SED"~
17039 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17040 prefix_cmds="$prefix_cmds -e 1d";
17041 fi~
17042 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17043 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17044 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17045 emximp -o $lib $output_objdir/$libname.def'
17046 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17047 enable_shared_with_static_runtimes_CXX=yes
17048 file_list_spec_CXX='@'
17049 ;;
17050
17051 dgux*)
17052 case $cc_basename in
17053 ec++*)
17054 # FIXME: insert proper C++ library support
17055 ld_shlibs_CXX=no
17056 ;;
17057 ghcx*)
17058 # Green Hills C++ Compiler
17059 # FIXME: insert proper C++ library support
17060 ld_shlibs_CXX=no
17061 ;;
17062 *)
17063 # FIXME: insert proper C++ library support
17064 ld_shlibs_CXX=no
17065 ;;
17066 esac
17067 ;;
17068
17069 freebsd2.*)
17070 # C++ shared libraries reported to be fairly broken before
17071 # switch to ELF
17072 ld_shlibs_CXX=no
17073 ;;
17074
17075 freebsd-elf*)
17076 archive_cmds_need_lc_CXX=no
17077 ;;
17078
17079 freebsd* | dragonfly* | midnightbsd*)
17080 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17081 # conventions
17082 ld_shlibs_CXX=yes
17083 ;;
17084
17085 haiku*)
17086 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17087 link_all_deplibs_CXX=no
17088 ;;
17089
17090 hpux9*)
17091 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17092 hardcode_libdir_separator_CXX=:
17093 export_dynamic_flag_spec_CXX='$wl-E'
17094 hardcode_direct_CXX=yes
17095 hardcode_minus_L_CXX=yes # Not in the search PATH,
17096 # but as the default
17097 # location of the library.
17098
17099 case $cc_basename in
17100 CC*)
17101 # FIXME: insert proper C++ library support
17102 ld_shlibs_CXX=no
17103 ;;
17104 aCC*)
17105 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'
17106 # Commands to make compiler produce verbose output that lists
17107 # what "hidden" libraries, object files and flags are used when
17108 # linking a shared library.
17109 #
17110 # There doesn't appear to be a way to prevent this compiler from
17111 # explicitly linking system object files so we need to strip them
17112 # from the output so that they don't get included in the library
17113 # dependencies.
17114 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"'
17115 ;;
17116 *)
17117 if test yes = "$GXX"; then
17118 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'
17119 else
17120 # FIXME: insert proper C++ library support
17121 ld_shlibs_CXX=no
17122 fi
17123 ;;
17124 esac
17125 ;;
17126
17127 hpux10*|hpux11*)
17128 if test no = "$with_gnu_ld"; then
17129 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17130 hardcode_libdir_separator_CXX=:
17131
17132 case $host_cpu in
17133 hppa*64*|ia64*)
17134 ;;
17135 *)
17136 export_dynamic_flag_spec_CXX='$wl-E'
17137 ;;
17138 esac
17139 fi
17140 case $host_cpu in
17141 hppa*64*|ia64*)
17142 hardcode_direct_CXX=no
17143 hardcode_shlibpath_var_CXX=no
17144 ;;
17145 *)
17146 hardcode_direct_CXX=yes
17147 hardcode_direct_absolute_CXX=yes
17148 hardcode_minus_L_CXX=yes # Not in the search PATH,
17149 # but as the default
17150 # location of the library.
17151 ;;
17152 esac
17153
17154 case $cc_basename in
17155 CC*)
17156 # FIXME: insert proper C++ library support
17157 ld_shlibs_CXX=no
17158 ;;
17159 aCC*)
17160 case $host_cpu in
17161 hppa*64*)
17162 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17163 ;;
17164 ia64*)
17165 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17166 ;;
17167 *)
17168 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17169 ;;
17170 esac
17171 # Commands to make compiler produce verbose output that lists
17172 # what "hidden" libraries, object files and flags are used when
17173 # linking a shared library.
17174 #
17175 # There doesn't appear to be a way to prevent this compiler from
17176 # explicitly linking system object files so we need to strip them
17177 # from the output so that they don't get included in the library
17178 # dependencies.
17179 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"'
17180 ;;
17181 *)
17182 if test yes = "$GXX"; then
17183 if test no = "$with_gnu_ld"; then
17184 case $host_cpu in
17185 hppa*64*)
17186 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17187 ;;
17188 ia64*)
17189 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17190 ;;
17191 *)
17192 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'
17193 ;;
17194 esac
17195 fi
17196 else
17197 # FIXME: insert proper C++ library support
17198 ld_shlibs_CXX=no
17199 fi
17200 ;;
17201 esac
17202 ;;
17203
17204 interix[3-9]*)
17205 hardcode_direct_CXX=no
17206 hardcode_shlibpath_var_CXX=no
17207 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17208 export_dynamic_flag_spec_CXX='$wl-E'
17209 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17210 # Instead, shared libraries are loaded at an image base (0x10000000 by
17211 # default) and relocated if they conflict, which is a slow very memory
17212 # consuming and fragmenting process. To avoid this, we pick a random,
17213 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17214 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17215 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'
17216 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'
17217 ;;
17218 irix5* | irix6*)
17219 case $cc_basename in
17220 CC*)
17221 # SGI C++
17222 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'
17223
17224 # Archives containing C++ object files must be created using
17225 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17226 # necessary to make sure instantiated templates are included
17227 # in the archive.
17228 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17229 ;;
17230 *)
17231 if test yes = "$GXX"; then
17232 if test no = "$with_gnu_ld"; then
17233 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'
17234 else
17235 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'
17236 fi
17237 fi
17238 link_all_deplibs_CXX=yes
17239 ;;
17240 esac
17241 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17242 hardcode_libdir_separator_CXX=:
17243 inherit_rpath_CXX=yes
17244 ;;
17245
17246 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17247 case $cc_basename in
17248 KCC*)
17249 # Kuck and Associates, Inc. (KAI) C++ Compiler
17250
17251 # KCC will only create a shared library if the output file
17252 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17253 # to its proper name (with version) after linking.
17254 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'
17255 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'
17256 # Commands to make compiler produce verbose output that lists
17257 # what "hidden" libraries, object files and flags are used when
17258 # linking a shared library.
17259 #
17260 # There doesn't appear to be a way to prevent this compiler from
17261 # explicitly linking system object files so we need to strip them
17262 # from the output so that they don't get included in the library
17263 # dependencies.
17264 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"'
17265
17266 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17267 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17268
17269 # Archives containing C++ object files must be created using
17270 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17271 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17272 ;;
17273 icpc* | ecpc* )
17274 # Intel C++
17275 with_gnu_ld=yes
17276 # version 8.0 and above of icpc choke on multiply defined symbols
17277 # if we add $predep_objects and $postdep_objects, however 7.1 and
17278 # earlier do not add the objects themselves.
17279 case `$CC -V 2>&1` in
17280 *"Version 7."*)
17281 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17282 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'
17283 ;;
17284 *) # Version 8.0 or newer
17285 tmp_idyn=
17286 case $host_cpu in
17287 ia64*) tmp_idyn=' -i_dynamic';;
17288 esac
17289 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17290 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'
17291 ;;
17292 esac
17293 archive_cmds_need_lc_CXX=no
17294 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17295 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17296 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17297 ;;
17298 pgCC* | pgcpp*)
17299 # Portland Group C++ compiler
17300 case `$CC -V` in
17301 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17302 prelink_cmds_CXX='tpldir=Template.dir~
17303 rm -rf $tpldir~
17304 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17305 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17306 old_archive_cmds_CXX='tpldir=Template.dir~
17307 rm -rf $tpldir~
17308 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17309 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17310 $RANLIB $oldlib'
17311 archive_cmds_CXX='tpldir=Template.dir~
17312 rm -rf $tpldir~
17313 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17314 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17315 archive_expsym_cmds_CXX='tpldir=Template.dir~
17316 rm -rf $tpldir~
17317 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17318 $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'
17319 ;;
17320 *) # Version 6 and above use weak symbols
17321 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17322 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'
17323 ;;
17324 esac
17325
17326 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17327 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17328 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'
17329 ;;
17330 cxx*)
17331 # Compaq C++
17332 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17333 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'
17334
17335 runpath_var=LD_RUN_PATH
17336 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17337 hardcode_libdir_separator_CXX=:
17338
17339 # Commands to make compiler produce verbose output that lists
17340 # what "hidden" libraries, object files and flags are used when
17341 # linking a shared library.
17342 #
17343 # There doesn't appear to be a way to prevent this compiler from
17344 # explicitly linking system object files so we need to strip them
17345 # from the output so that they don't get included in the library
17346 # dependencies.
17347 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'
17348 ;;
17349 xl* | mpixl* | bgxl*)
17350 # IBM XL 8.0 on PPC, with GNU ld
17351 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17352 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17353 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17354 if test yes = "$supports_anon_versioning"; then
17355 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17356 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17357 echo "local: *; };" >> $output_objdir/$libname.ver~
17358 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17359 fi
17360 ;;
17361 *)
17362 case `$CC -V 2>&1 | $SED 5q` in
17363 *Sun\ C*)
17364 # Sun C++ 5.9
17365 no_undefined_flag_CXX=' -zdefs'
17366 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17367 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'
17368 hardcode_libdir_flag_spec_CXX='-R$libdir'
17369 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'
17370 compiler_needs_object_CXX=yes
17371
17372 # Not sure whether something based on
17373 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17374 # would be better.
17375 output_verbose_link_cmd='func_echo_all'
17376
17377 # Archives containing C++ object files must be created using
17378 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17379 # necessary to make sure instantiated templates are included
17380 # in the archive.
17381 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17382 ;;
17383 esac
17384 ;;
17385 esac
17386 ;;
17387
17388 lynxos*)
17389 # FIXME: insert proper C++ library support
17390 ld_shlibs_CXX=no
17391 ;;
17392
17393 m88k*)
17394 # FIXME: insert proper C++ library support
17395 ld_shlibs_CXX=no
17396 ;;
17397
17398 mvs*)
17399 case $cc_basename in
17400 cxx*)
17401 # FIXME: insert proper C++ library support
17402 ld_shlibs_CXX=no
17403 ;;
17404 *)
17405 # FIXME: insert proper C++ library support
17406 ld_shlibs_CXX=no
17407 ;;
17408 esac
17409 ;;
17410
17411 *-mlibc)
17412 ld_shlibs_CXX=yes
17413 ;;
17414
17415 netbsd*)
17416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17417 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17418 wlarc=
17419 hardcode_libdir_flag_spec_CXX='-R$libdir'
17420 hardcode_direct_CXX=yes
17421 hardcode_shlibpath_var_CXX=no
17422 fi
17423 # Workaround some broken pre-1.5 toolchains
17424 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17425 ;;
17426
17427 *nto* | *qnx*)
17428 ld_shlibs_CXX=yes
17429 ;;
17430
17431 openbsd*)
17432 if test -f /usr/libexec/ld.so; then
17433 hardcode_direct_CXX=yes
17434 hardcode_shlibpath_var_CXX=no
17435 hardcode_direct_absolute_CXX=yes
17436 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17437 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17439 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17440 export_dynamic_flag_spec_CXX='$wl-E'
17441 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17442 fi
17443 output_verbose_link_cmd=func_echo_all
17444 else
17445 ld_shlibs_CXX=no
17446 fi
17447 ;;
17448
17449 osf3* | osf4* | osf5*)
17450 case $cc_basename in
17451 KCC*)
17452 # Kuck and Associates, Inc. (KAI) C++ Compiler
17453
17454 # KCC will only create a shared library if the output file
17455 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17456 # to its proper name (with version) after linking.
17457 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'
17458
17459 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17460 hardcode_libdir_separator_CXX=:
17461
17462 # Archives containing C++ object files must be created using
17463 # the KAI C++ compiler.
17464 case $host in
17465 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17466 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17467 esac
17468 ;;
17469 RCC*)
17470 # Rational C++ 2.4.1
17471 # FIXME: insert proper C++ library support
17472 ld_shlibs_CXX=no
17473 ;;
17474 cxx*)
17475 case $host in
17476 osf3*)
17477 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17478 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'
17479 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17480 ;;
17481 *)
17482 allow_undefined_flag_CXX=' -expect_unresolved \*'
17483 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'
17484 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17485 echo "-hidden">> $lib.exp~
17486 $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~
17487 $RM $lib.exp'
17488 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17489 ;;
17490 esac
17491
17492 hardcode_libdir_separator_CXX=:
17493
17494 # Commands to make compiler produce verbose output that lists
17495 # what "hidden" libraries, object files and flags are used when
17496 # linking a shared library.
17497 #
17498 # There doesn't appear to be a way to prevent this compiler from
17499 # explicitly linking system object files so we need to strip them
17500 # from the output so that they don't get included in the library
17501 # dependencies.
17502 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"'
17503 ;;
17504 *)
17505 if test yes,no = "$GXX,$with_gnu_ld"; then
17506 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17507 case $host in
17508 osf3*)
17509 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'
17510 ;;
17511 *)
17512 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'
17513 ;;
17514 esac
17515
17516 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17517 hardcode_libdir_separator_CXX=:
17518
17519 # Commands to make compiler produce verbose output that lists
17520 # what "hidden" libraries, object files and flags are used when
17521 # linking a shared library.
17522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17523
17524 else
17525 # FIXME: insert proper C++ library support
17526 ld_shlibs_CXX=no
17527 fi
17528 ;;
17529 esac
17530 ;;
17531
17532 psos*)
17533 # FIXME: insert proper C++ library support
17534 ld_shlibs_CXX=no
17535 ;;
17536
17537 serenity*)
17538 ;;
17539
17540 sunos4*)
17541 case $cc_basename in
17542 CC*)
17543 # Sun C++ 4.x
17544 # FIXME: insert proper C++ library support
17545 ld_shlibs_CXX=no
17546 ;;
17547 lcc*)
17548 # Lucid
17549 # FIXME: insert proper C++ library support
17550 ld_shlibs_CXX=no
17551 ;;
17552 *)
17553 # FIXME: insert proper C++ library support
17554 ld_shlibs_CXX=no
17555 ;;
17556 esac
17557 ;;
17558
17559 solaris*)
17560 case $cc_basename in
17561 CC* | sunCC*)
17562 # Sun C++ 4.2, 5.x and Centerline C++
17563 archive_cmds_need_lc_CXX=yes
17564 no_undefined_flag_CXX=' -zdefs'
17565 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17566 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17567 $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'
17568
17569 hardcode_libdir_flag_spec_CXX='-R$libdir'
17570 hardcode_shlibpath_var_CXX=no
17571 case $host_os in
17572 solaris2.[0-5] | solaris2.[0-5].*) ;;
17573 *)
17574 # The compiler driver will combine and reorder linker options,
17575 # but understands '-z linker_flag'.
17576 # Supported since Solaris 2.6 (maybe 2.5.1?)
17577 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17578 ;;
17579 esac
17580 link_all_deplibs_CXX=yes
17581
17582 output_verbose_link_cmd='func_echo_all'
17583
17584 # Archives containing C++ object files must be created using
17585 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17586 # necessary to make sure instantiated templates are included
17587 # in the archive.
17588 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17589 ;;
17590 gcx*)
17591 # Green Hills C++ Compiler
17592 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17593
17594 # The C++ compiler must be used to create the archive.
17595 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17596 ;;
17597 *)
17598 # GNU C++ compiler with Solaris linker
17599 if test yes,no = "$GXX,$with_gnu_ld"; then
17600 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17601 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17602 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17603 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17604 $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'
17605
17606 # Commands to make compiler produce verbose output that lists
17607 # what "hidden" libraries, object files and flags are used when
17608 # linking a shared library.
17609 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17610 else
17611 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17612 # platform.
17613 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17614 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17615 $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'
17616
17617 # Commands to make compiler produce verbose output that lists
17618 # what "hidden" libraries, object files and flags are used when
17619 # linking a shared library.
17620 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17621 fi
17622
17623 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17624 case $host_os in
17625 solaris2.[0-5] | solaris2.[0-5].*) ;;
17626 *)
17627 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17628 ;;
17629 esac
17630 fi
17631 ;;
17632 esac
17633 ;;
17634
17635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17636 no_undefined_flag_CXX='$wl-z,text'
17637 archive_cmds_need_lc_CXX=no
17638 hardcode_shlibpath_var_CXX=no
17639 runpath_var='LD_RUN_PATH'
17640
17641 case $cc_basename in
17642 CC*)
17643 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17644 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17645 ;;
17646 *)
17647 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17648 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17649 ;;
17650 esac
17651 ;;
17652
17653 sysv5* | sco3.2v5* | sco5v6*)
17654 # Note: We CANNOT use -z defs as we might desire, because we do not
17655 # link with -lc, and that would cause any symbols used from libc to
17656 # always be unresolved, which means just about no library would
17657 # ever link correctly. If we're not using GNU ld we use -z text
17658 # though, which does catch some bad symbols but isn't as heavy-handed
17659 # as -z defs.
17660 no_undefined_flag_CXX='$wl-z,text'
17661 allow_undefined_flag_CXX='$wl-z,nodefs'
17662 archive_cmds_need_lc_CXX=no
17663 hardcode_shlibpath_var_CXX=no
17664 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17665 hardcode_libdir_separator_CXX=':'
17666 link_all_deplibs_CXX=yes
17667 export_dynamic_flag_spec_CXX='$wl-Bexport'
17668 runpath_var='LD_RUN_PATH'
17669
17670 case $cc_basename in
17671 CC*)
17672 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17673 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17674 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17675 '"$old_archive_cmds_CXX"
17676 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17677 '"$reload_cmds_CXX"
17678 ;;
17679 *)
17680 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17681 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17682 ;;
17683 esac
17684 ;;
17685
17686 tandem*)
17687 case $cc_basename in
17688 NCC*)
17689 # NonStop-UX NCC 3.20
17690 # FIXME: insert proper C++ library support
17691 ld_shlibs_CXX=no
17692 ;;
17693 *)
17694 # FIXME: insert proper C++ library support
17695 ld_shlibs_CXX=no
17696 ;;
17697 esac
17698 ;;
17699
17700 vxworks*)
17701 # FIXME: insert proper C++ library support
17702 ld_shlibs_CXX=no
17703 ;;
17704
17705 *)
17706 # FIXME: insert proper C++ library support
17707 ld_shlibs_CXX=no
17708 ;;
17709 esac
17710
17711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17712 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17713 test no = "$ld_shlibs_CXX" && can_build_shared=no
17714
17715 GCC_CXX=$GXX
17716 LD_CXX=$LD
17717
17718 ## CAVEAT EMPTOR:
17719 ## There is no encapsulation within the following macros, do not change
17720 ## the running order or otherwise move them around unless you know exactly
17721 ## what you are doing...
17722 # Dependencies to place before and after the object being linked:
17723 predep_objects_CXX=
17724 postdep_objects_CXX=
17725 predeps_CXX=
17726 postdeps_CXX=
17727 compiler_lib_search_path_CXX=
17728
17729 cat > conftest.$ac_ext <<_LT_EOF
17730 class Foo
17731 {
17732 public:
17733 Foo (void) { a = 0; }
17734 private:
17735 int a;
17736 };
17737 _LT_EOF
17738
17739
17740 _lt_libdeps_save_CFLAGS=$CFLAGS
17741 case "$CC $CFLAGS " in #(
17742 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17743 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17744 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17745 esac
17746
17747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17748 (eval $ac_compile) 2>&5
17749 ac_status=$?
17750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17751 test $ac_status = 0; }; then
17752 # Parse the compiler output and extract the necessary
17753 # objects, libraries and library flags.
17754
17755 # Sentinel used to keep track of whether or not we are before
17756 # the conftest object file.
17757 pre_test_object_deps_done=no
17758
17759 for p in `eval "$output_verbose_link_cmd"`; do
17760 case $prev$p in
17761
17762 -L* | -R* | -l*)
17763 # Some compilers place space between "-{L,R,l}" and the path.
17764 # Remove the space.
17765 if test x-L = x"$p" ||
17766 test x-R = x"$p" ||
17767 test x-l = x"$p"; then
17768 prev=$p
17769 continue
17770 fi
17771
17772 # Expand the sysroot to ease extracting the directories later.
17773 if test -z "$prev"; then
17774 case $p in
17775 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17776 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17777 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17778 esac
17779 fi
17780 case $p in
17781 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17782 esac
17783 if test no = "$pre_test_object_deps_done"; then
17784 case $prev in
17785 -L | -R)
17786 # Internal compiler library paths should come after those
17787 # provided the user. The postdeps already come after the
17788 # user supplied libs so there is no need to process them.
17789 if test -z "$compiler_lib_search_path_CXX"; then
17790 compiler_lib_search_path_CXX=$prev$p
17791 else
17792 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17793 fi
17794 ;;
17795 # The "-l" case would never come before the object being
17796 # linked, so don't bother handling this case.
17797 esac
17798 else
17799 if test -z "$postdeps_CXX"; then
17800 postdeps_CXX=$prev$p
17801 else
17802 postdeps_CXX="${postdeps_CXX} $prev$p"
17803 fi
17804 fi
17805 prev=
17806 ;;
17807
17808 *.lto.$objext) ;; # Ignore GCC LTO objects
17809 *.$objext)
17810 # This assumes that the test object file only shows up
17811 # once in the compiler output.
17812 if test "$p" = "conftest.$objext"; then
17813 pre_test_object_deps_done=yes
17814 continue
17815 fi
17816
17817 if test no = "$pre_test_object_deps_done"; then
17818 if test -z "$predep_objects_CXX"; then
17819 predep_objects_CXX=$p
17820 else
17821 predep_objects_CXX="$predep_objects_CXX $p"
17822 fi
17823 else
17824 if test -z "$postdep_objects_CXX"; then
17825 postdep_objects_CXX=$p
17826 else
17827 postdep_objects_CXX="$postdep_objects_CXX $p"
17828 fi
17829 fi
17830 ;;
17831
17832 *) ;; # Ignore the rest.
17833
17834 esac
17835 done
17836
17837 # Clean up.
17838 rm -f a.out a.exe
17839 else
17840 echo "libtool.m4: error: problem compiling CXX test program"
17841 fi
17842
17843 $RM -f confest.$objext
17844 CFLAGS=$_lt_libdeps_save_CFLAGS
17845
17846 # PORTME: override above test on systems where it is broken
17847 case $host_os in
17848 interix[3-9]*)
17849 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17850 # hack all around it, let's just trust "g++" to DTRT.
17851 predep_objects_CXX=
17852 postdep_objects_CXX=
17853 postdeps_CXX=
17854 ;;
17855 esac
17856
17857
17858 case " $postdeps_CXX " in
17859 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17860 esac
17861 compiler_lib_search_dirs_CXX=
17862 if test -n "${compiler_lib_search_path_CXX}"; then
17863 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17864 fi
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896 lt_prog_compiler_wl_CXX=
17897 lt_prog_compiler_pic_CXX=
17898 lt_prog_compiler_static_CXX=
17899
17900
17901 # C++ specific cases for pic, static, wl, etc.
17902 if test yes = "$GXX"; then
17903 lt_prog_compiler_wl_CXX='-Wl,'
17904 lt_prog_compiler_static_CXX='-static'
17905
17906 case $host_os in
17907 aix*)
17908 # All AIX code is PIC.
17909 if test ia64 = "$host_cpu"; then
17910 # AIX 5 now supports IA64 processor
17911 lt_prog_compiler_static_CXX='-Bstatic'
17912 fi
17913 lt_prog_compiler_pic_CXX='-fPIC'
17914 ;;
17915
17916 amigaos*)
17917 case $host_cpu in
17918 powerpc)
17919 # see comment about AmigaOS4 .so support
17920 lt_prog_compiler_pic_CXX='-fPIC'
17921 ;;
17922 m68k)
17923 # FIXME: we need at least 68020 code to build shared libraries, but
17924 # adding the '-m68020' flag to GCC prevents building anything better,
17925 # like '-m68040'.
17926 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17927 ;;
17928 esac
17929 ;;
17930
17931 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17932 # PIC is the default for these OSes.
17933 ;;
17934 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17935 # This hack is so that the source file can tell whether it is being
17936 # built for inclusion in a dll (and should export symbols for example).
17937 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17938 # (--disable-auto-import) libraries
17939 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17940 case $host_os in
17941 os2*)
17942 lt_prog_compiler_static_CXX='$wl-static'
17943 ;;
17944 esac
17945 ;;
17946 darwin* | rhapsody*)
17947 # PIC is the default on this platform
17948 # Common symbols not allowed in MH_DYLIB files
17949 lt_prog_compiler_pic_CXX='-fno-common'
17950 ;;
17951 *djgpp*)
17952 # DJGPP does not support shared libraries at all
17953 lt_prog_compiler_pic_CXX=
17954 ;;
17955 haiku*)
17956 # PIC is the default for Haiku.
17957 # The "-static" flag exists, but is broken.
17958 lt_prog_compiler_static_CXX=
17959 ;;
17960 interix[3-9]*)
17961 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17962 # Instead, we relocate shared libraries at runtime.
17963 ;;
17964 sysv4*MP*)
17965 if test -d /usr/nec; then
17966 lt_prog_compiler_pic_CXX=-Kconform_pic
17967 fi
17968 ;;
17969 hpux*)
17970 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17971 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17972 # sets the default TLS model and affects inlining.
17973 case $host_cpu in
17974 hppa*64*)
17975 ;;
17976 *)
17977 lt_prog_compiler_pic_CXX='-fPIC'
17978 ;;
17979 esac
17980 ;;
17981 *qnx* | *nto*)
17982 # QNX uses GNU C++, but need to define -shared option too, otherwise
17983 # it will coredump.
17984 lt_prog_compiler_pic_CXX='-fPIC -shared'
17985 ;;
17986 *)
17987 lt_prog_compiler_pic_CXX='-fPIC'
17988 ;;
17989 esac
17990 else
17991 case $host_os in
17992 aix[4-9]*)
17993 # All AIX code is PIC.
17994 if test ia64 = "$host_cpu"; then
17995 # AIX 5 now supports IA64 processor
17996 lt_prog_compiler_static_CXX='-Bstatic'
17997 else
17998 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17999 fi
18000 ;;
18001 chorus*)
18002 case $cc_basename in
18003 cxch68*)
18004 # Green Hills C++ Compiler
18005 # _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"
18006 ;;
18007 esac
18008 ;;
18009 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18010 # This hack is so that the source file can tell whether it is being
18011 # built for inclusion in a dll (and should export symbols for example).
18012 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18013 ;;
18014 dgux*)
18015 case $cc_basename in
18016 ec++*)
18017 lt_prog_compiler_pic_CXX='-KPIC'
18018 ;;
18019 ghcx*)
18020 # Green Hills C++ Compiler
18021 lt_prog_compiler_pic_CXX='-pic'
18022 ;;
18023 *)
18024 ;;
18025 esac
18026 ;;
18027 freebsd* | dragonfly* | midnightbsd*)
18028 # FreeBSD uses GNU C++
18029 ;;
18030 hpux9* | hpux10* | hpux11*)
18031 case $cc_basename in
18032 CC*)
18033 lt_prog_compiler_wl_CXX='-Wl,'
18034 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18035 if test ia64 != "$host_cpu"; then
18036 lt_prog_compiler_pic_CXX='+Z'
18037 fi
18038 ;;
18039 aCC*)
18040 lt_prog_compiler_wl_CXX='-Wl,'
18041 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18042 case $host_cpu in
18043 hppa*64*|ia64*)
18044 # +Z the default
18045 ;;
18046 *)
18047 lt_prog_compiler_pic_CXX='+Z'
18048 ;;
18049 esac
18050 ;;
18051 *)
18052 ;;
18053 esac
18054 ;;
18055 interix*)
18056 # This is c89, which is MS Visual C++ (no shared libs)
18057 # Anyone wants to do a port?
18058 ;;
18059 irix5* | irix6* | nonstopux*)
18060 case $cc_basename in
18061 CC*)
18062 lt_prog_compiler_wl_CXX='-Wl,'
18063 lt_prog_compiler_static_CXX='-non_shared'
18064 # CC pic flag -KPIC is the default.
18065 ;;
18066 *)
18067 ;;
18068 esac
18069 ;;
18070 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18071 case $cc_basename in
18072 KCC*)
18073 # KAI C++ Compiler
18074 lt_prog_compiler_wl_CXX='--backend -Wl,'
18075 lt_prog_compiler_pic_CXX='-fPIC'
18076 ;;
18077 ecpc* )
18078 # old Intel C++ for x86_64, which still supported -KPIC.
18079 lt_prog_compiler_wl_CXX='-Wl,'
18080 lt_prog_compiler_pic_CXX='-KPIC'
18081 lt_prog_compiler_static_CXX='-static'
18082 ;;
18083 icpc* )
18084 # Intel C++, used to be incompatible with GCC.
18085 # ICC 10 doesn't accept -KPIC any more.
18086 lt_prog_compiler_wl_CXX='-Wl,'
18087 lt_prog_compiler_pic_CXX='-fPIC'
18088 lt_prog_compiler_static_CXX='-static'
18089 ;;
18090 pgCC* | pgcpp*)
18091 # Portland Group C++ compiler
18092 lt_prog_compiler_wl_CXX='-Wl,'
18093 lt_prog_compiler_pic_CXX='-fpic'
18094 lt_prog_compiler_static_CXX='-Bstatic'
18095 ;;
18096 cxx*)
18097 # Compaq C++
18098 # Make sure the PIC flag is empty. It appears that all Alpha
18099 # Linux and Compaq Tru64 Unix objects are PIC.
18100 lt_prog_compiler_pic_CXX=
18101 lt_prog_compiler_static_CXX='-non_shared'
18102 ;;
18103 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18104 # IBM XL 8.0, 9.0 on PPC and BlueGene
18105 lt_prog_compiler_wl_CXX='-Wl,'
18106 lt_prog_compiler_pic_CXX='-qpic'
18107 lt_prog_compiler_static_CXX='-qstaticlink'
18108 ;;
18109 *)
18110 case `$CC -V 2>&1 | $SED 5q` in
18111 *Sun\ C*)
18112 # Sun C++ 5.9
18113 lt_prog_compiler_pic_CXX='-KPIC'
18114 lt_prog_compiler_static_CXX='-Bstatic'
18115 lt_prog_compiler_wl_CXX='-Qoption ld '
18116 ;;
18117 esac
18118 ;;
18119 esac
18120 ;;
18121 lynxos*)
18122 ;;
18123 m88k*)
18124 ;;
18125 mvs*)
18126 case $cc_basename in
18127 cxx*)
18128 lt_prog_compiler_pic_CXX='-W c,exportall'
18129 ;;
18130 *)
18131 ;;
18132 esac
18133 ;;
18134 netbsd* | netbsdelf*-gnu)
18135 ;;
18136 *-mlibc)
18137 ;;
18138 *qnx* | *nto*)
18139 # QNX uses GNU C++, but need to define -shared option too, otherwise
18140 # it will coredump.
18141 lt_prog_compiler_pic_CXX='-fPIC -shared'
18142 ;;
18143 osf3* | osf4* | osf5*)
18144 case $cc_basename in
18145 KCC*)
18146 lt_prog_compiler_wl_CXX='--backend -Wl,'
18147 ;;
18148 RCC*)
18149 # Rational C++ 2.4.1
18150 lt_prog_compiler_pic_CXX='-pic'
18151 ;;
18152 cxx*)
18153 # Digital/Compaq C++
18154 lt_prog_compiler_wl_CXX='-Wl,'
18155 # Make sure the PIC flag is empty. It appears that all Alpha
18156 # Linux and Compaq Tru64 Unix objects are PIC.
18157 lt_prog_compiler_pic_CXX=
18158 lt_prog_compiler_static_CXX='-non_shared'
18159 ;;
18160 *)
18161 ;;
18162 esac
18163 ;;
18164 psos*)
18165 ;;
18166 serenity*)
18167 ;;
18168 solaris*)
18169 case $cc_basename in
18170 CC* | sunCC*)
18171 # Sun C++ 4.2, 5.x and Centerline C++
18172 lt_prog_compiler_pic_CXX='-KPIC'
18173 lt_prog_compiler_static_CXX='-Bstatic'
18174 lt_prog_compiler_wl_CXX='-Qoption ld '
18175 ;;
18176 gcx*)
18177 # Green Hills C++ Compiler
18178 lt_prog_compiler_pic_CXX='-PIC'
18179 ;;
18180 *)
18181 ;;
18182 esac
18183 ;;
18184 sunos4*)
18185 case $cc_basename in
18186 CC*)
18187 # Sun C++ 4.x
18188 lt_prog_compiler_pic_CXX='-pic'
18189 lt_prog_compiler_static_CXX='-Bstatic'
18190 ;;
18191 lcc*)
18192 # Lucid
18193 lt_prog_compiler_pic_CXX='-pic'
18194 ;;
18195 *)
18196 ;;
18197 esac
18198 ;;
18199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18200 case $cc_basename in
18201 CC*)
18202 lt_prog_compiler_wl_CXX='-Wl,'
18203 lt_prog_compiler_pic_CXX='-KPIC'
18204 lt_prog_compiler_static_CXX='-Bstatic'
18205 ;;
18206 esac
18207 ;;
18208 tandem*)
18209 case $cc_basename in
18210 NCC*)
18211 # NonStop-UX NCC 3.20
18212 lt_prog_compiler_pic_CXX='-KPIC'
18213 ;;
18214 *)
18215 ;;
18216 esac
18217 ;;
18218 vxworks*)
18219 ;;
18220 *)
18221 lt_prog_compiler_can_build_shared_CXX=no
18222 ;;
18223 esac
18224 fi
18225
18226 case $host_os in
18227 # For platforms that do not support PIC, -DPIC is meaningless:
18228 *djgpp*)
18229 lt_prog_compiler_pic_CXX=
18230 ;;
18231 *)
18232 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18233 ;;
18234 esac
18235
18236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18237 printf %s "checking for $compiler option to produce PIC... " >&6; }
18238 if test ${lt_cv_prog_compiler_pic_CXX+y}
18239 then :
18240 printf %s "(cached) " >&6
18241 else case e in #(
18242 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18243 esac
18244 fi
18245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18246 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18247 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18248
18249 #
18250 # Check to make sure the PIC flag actually works.
18251 #
18252 if test -n "$lt_prog_compiler_pic_CXX"; then
18253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18254 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18255 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18256 then :
18257 printf %s "(cached) " >&6
18258 else case e in #(
18259 e) lt_cv_prog_compiler_pic_works_CXX=no
18260 ac_outfile=conftest.$ac_objext
18261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18262 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18263 # Insert the option either (1) after the last *FLAGS variable, or
18264 # (2) before a word containing "conftest.", or (3) at the end.
18265 # Note that $ac_compile itself does not contain backslashes and begins
18266 # with a dollar sign (not a hyphen), so the echo should work correctly.
18267 # The option is referenced via a variable to avoid confusing sed.
18268 lt_compile=`echo "$ac_compile" | $SED \
18269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18271 -e 's:$: $lt_compiler_flag:'`
18272 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18273 (eval "$lt_compile" 2>conftest.err)
18274 ac_status=$?
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 if (exit $ac_status) && test -s "$ac_outfile"; then
18278 # The compiler can only warn and ignore the option if not recognized
18279 # So say no if there are warnings other than the usual output.
18280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18281 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18282 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18283 lt_cv_prog_compiler_pic_works_CXX=yes
18284 fi
18285 fi
18286 $RM conftest*
18287 ;;
18288 esac
18289 fi
18290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18291 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18292
18293 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18294 case $lt_prog_compiler_pic_CXX in
18295 "" | " "*) ;;
18296 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18297 esac
18298 else
18299 lt_prog_compiler_pic_CXX=
18300 lt_prog_compiler_can_build_shared_CXX=no
18301 fi
18302
18303 fi
18304
18305
18306
18307
18308
18309 #
18310 # Check to make sure the static flag actually works.
18311 #
18312 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18314 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18315 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18316 then :
18317 printf %s "(cached) " >&6
18318 else case e in #(
18319 e) lt_cv_prog_compiler_static_works_CXX=no
18320 save_LDFLAGS=$LDFLAGS
18321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18322 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18324 # The linker can only warn and ignore the option if not recognized
18325 # So say no if there are warnings
18326 if test -s conftest.err; then
18327 # Append any errors to the config.log.
18328 cat conftest.err 1>&5
18329 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18331 if diff conftest.exp conftest.er2 >/dev/null; then
18332 lt_cv_prog_compiler_static_works_CXX=yes
18333 fi
18334 else
18335 lt_cv_prog_compiler_static_works_CXX=yes
18336 fi
18337 fi
18338 $RM -r conftest*
18339 LDFLAGS=$save_LDFLAGS
18340 ;;
18341 esac
18342 fi
18343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18344 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18345
18346 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18347 :
18348 else
18349 lt_prog_compiler_static_CXX=
18350 fi
18351
18352
18353
18354
18355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18356 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18357 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18358 then :
18359 printf %s "(cached) " >&6
18360 else case e in #(
18361 e) lt_cv_prog_compiler_c_o_CXX=no
18362 $RM -r conftest 2>/dev/null
18363 mkdir conftest
18364 cd conftest
18365 mkdir out
18366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18367
18368 lt_compiler_flag="-o out/conftest2.$ac_objext"
18369 # Insert the option either (1) after the last *FLAGS variable, or
18370 # (2) before a word containing "conftest.", or (3) at the end.
18371 # Note that $ac_compile itself does not contain backslashes and begins
18372 # with a dollar sign (not a hyphen), so the echo should work correctly.
18373 lt_compile=`echo "$ac_compile" | $SED \
18374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18376 -e 's:$: $lt_compiler_flag:'`
18377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18378 (eval "$lt_compile" 2>out/conftest.err)
18379 ac_status=$?
18380 cat out/conftest.err >&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18383 then
18384 # The compiler can only warn and ignore the option if not recognized
18385 # So say no if there are warnings
18386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18389 lt_cv_prog_compiler_c_o_CXX=yes
18390 fi
18391 fi
18392 chmod u+w . 2>&5
18393 $RM conftest*
18394 # SGI C++ compiler will create directory out/ii_files/ for
18395 # template instantiation
18396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18397 $RM out/* && rmdir out
18398 cd ..
18399 $RM -r conftest
18400 $RM conftest*
18401 ;;
18402 esac
18403 fi
18404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18405 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18406
18407
18408
18409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18410 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18411 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18412 then :
18413 printf %s "(cached) " >&6
18414 else case e in #(
18415 e) lt_cv_prog_compiler_c_o_CXX=no
18416 $RM -r conftest 2>/dev/null
18417 mkdir conftest
18418 cd conftest
18419 mkdir out
18420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18421
18422 lt_compiler_flag="-o out/conftest2.$ac_objext"
18423 # Insert the option either (1) after the last *FLAGS variable, or
18424 # (2) before a word containing "conftest.", or (3) at the end.
18425 # Note that $ac_compile itself does not contain backslashes and begins
18426 # with a dollar sign (not a hyphen), so the echo should work correctly.
18427 lt_compile=`echo "$ac_compile" | $SED \
18428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18430 -e 's:$: $lt_compiler_flag:'`
18431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18432 (eval "$lt_compile" 2>out/conftest.err)
18433 ac_status=$?
18434 cat out/conftest.err >&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18437 then
18438 # The compiler can only warn and ignore the option if not recognized
18439 # So say no if there are warnings
18440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18443 lt_cv_prog_compiler_c_o_CXX=yes
18444 fi
18445 fi
18446 chmod u+w . 2>&5
18447 $RM conftest*
18448 # SGI C++ compiler will create directory out/ii_files/ for
18449 # template instantiation
18450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18451 $RM out/* && rmdir out
18452 cd ..
18453 $RM -r conftest
18454 $RM conftest*
18455 ;;
18456 esac
18457 fi
18458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18459 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18460
18461
18462
18463
18464 hard_links=nottested
18465 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18466 # do not overwrite the value of need_locks provided by the user
18467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18468 printf %s "checking if we can lock with hard links... " >&6; }
18469 hard_links=yes
18470 $RM conftest*
18471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18472 touch conftest.a
18473 ln conftest.a conftest.b 2>&5 || hard_links=no
18474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18476 printf "%s\n" "$hard_links" >&6; }
18477 if test no = "$hard_links"; then
18478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18479 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18480 need_locks=warn
18481 fi
18482 else
18483 need_locks=no
18484 fi
18485
18486
18487
18488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18489 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18490
18491 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18492 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18493 case $host_os in
18494 aix[4-9]*)
18495 # If we're using GNU nm, then we don't want the "-C" option.
18496 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18497 # Without the "-l" option, or with the "-B" option, AIX nm treats
18498 # weak defined symbols like other global defined symbols, whereas
18499 # GNU nm marks them as "W".
18500 # While the 'weak' keyword is ignored in the Export File, we need
18501 # it in the Import File for the 'aix-soname' feature, so we have
18502 # to replace the "-B" option with "-P" for AIX nm.
18503 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18504 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'
18505 else
18506 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'
18507 fi
18508 ;;
18509 pw32*)
18510 export_symbols_cmds_CXX=$ltdll_cmds
18511 ;;
18512 cygwin* | mingw* | windows* | cegcc*)
18513 case $cc_basename in
18514 cl* | icl*)
18515 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18516 ;;
18517 *)
18518 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'
18519 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18520 ;;
18521 esac
18522 ;;
18523 linux* | k*bsd*-gnu | gnu*)
18524 link_all_deplibs_CXX=no
18525 ;;
18526 *)
18527 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18528 ;;
18529 esac
18530
18531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18532 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18533 test no = "$ld_shlibs_CXX" && can_build_shared=no
18534
18535 with_gnu_ld_CXX=$with_gnu_ld
18536
18537
18538
18539
18540
18541
18542 #
18543 # Do we need to explicitly link libc?
18544 #
18545 case "x$archive_cmds_need_lc_CXX" in
18546 x|xyes)
18547 # Assume -lc should be added
18548 archive_cmds_need_lc_CXX=yes
18549
18550 if test yes,yes = "$GCC,$enable_shared"; then
18551 case $archive_cmds_CXX in
18552 *'~'*)
18553 # FIXME: we may have to deal with multi-command sequences.
18554 ;;
18555 '$CC '*)
18556 # Test whether the compiler implicitly links with -lc since on some
18557 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18558 # to ld, don't add -lc before -lgcc.
18559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18560 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18561 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18562 then :
18563 printf %s "(cached) " >&6
18564 else case e in #(
18565 e) $RM conftest*
18566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18567
18568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18569 (eval $ac_compile) 2>&5
18570 ac_status=$?
18571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18572 test $ac_status = 0; } 2>conftest.err; then
18573 soname=conftest
18574 lib=conftest
18575 libobjs=conftest.$ac_objext
18576 deplibs=
18577 wl=$lt_prog_compiler_wl_CXX
18578 pic_flag=$lt_prog_compiler_pic_CXX
18579 compiler_flags=-v
18580 linker_flags=-v
18581 verstring=
18582 output_objdir=.
18583 libname=conftest
18584 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18585 allow_undefined_flag_CXX=
18586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18587 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18588 ac_status=$?
18589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18590 test $ac_status = 0; }
18591 then
18592 lt_cv_archive_cmds_need_lc_CXX=no
18593 else
18594 lt_cv_archive_cmds_need_lc_CXX=yes
18595 fi
18596 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18597 else
18598 cat conftest.err 1>&5
18599 fi
18600 $RM conftest*
18601 ;;
18602 esac
18603 fi
18604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18605 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18606 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18607 ;;
18608 esac
18609 fi
18610 ;;
18611 esac
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18675 printf %s "checking dynamic linker characteristics... " >&6; }
18676
18677 library_names_spec=
18678 libname_spec='lib$name'
18679 soname_spec=
18680 shrext_cmds=.so
18681 postinstall_cmds=
18682 postuninstall_cmds=
18683 finish_cmds=
18684 finish_eval=
18685 shlibpath_var=
18686 shlibpath_overrides_runpath=unknown
18687 version_type=none
18688 dynamic_linker="$host_os ld.so"
18689 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18690 need_lib_prefix=unknown
18691 hardcode_into_libs=no
18692
18693 # when you set need_version to no, make sure it does not cause -set_version
18694 # flags to be left without arguments
18695 need_version=unknown
18696
18697
18698
18699 case $host_os in
18700 aix3*)
18701 version_type=linux # correct to gnu/linux during the next big refactor
18702 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18703 shlibpath_var=LIBPATH
18704
18705 # AIX 3 has no versioning support, so we append a major version to the name.
18706 soname_spec='$libname$release$shared_ext$major'
18707 ;;
18708
18709 aix[4-9]*)
18710 version_type=linux # correct to gnu/linux during the next big refactor
18711 need_lib_prefix=no
18712 need_version=no
18713 hardcode_into_libs=yes
18714 if test ia64 = "$host_cpu"; then
18715 # AIX 5 supports IA64
18716 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18717 shlibpath_var=LD_LIBRARY_PATH
18718 else
18719 # With GCC up to 2.95.x, collect2 would create an import file
18720 # for dependence libraries. The import file would start with
18721 # the line '#! .'. This would cause the generated library to
18722 # depend on '.', always an invalid library. This was fixed in
18723 # development snapshots of GCC prior to 3.0.
18724 case $host_os in
18725 aix4 | aix4.[01] | aix4.[01].*)
18726 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18727 echo ' yes '
18728 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18729 :
18730 else
18731 can_build_shared=no
18732 fi
18733 ;;
18734 esac
18735 # Using Import Files as archive members, it is possible to support
18736 # filename-based versioning of shared library archives on AIX. While
18737 # this would work for both with and without runtime linking, it will
18738 # prevent static linking of such archives. So we do filename-based
18739 # shared library versioning with .so extension only, which is used
18740 # when both runtime linking and shared linking is enabled.
18741 # Unfortunately, runtime linking may impact performance, so we do
18742 # not want this to be the default eventually. Also, we use the
18743 # versioned .so libs for executables only if there is the -brtl
18744 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18745 # To allow for filename-based versioning support, we need to create
18746 # libNAME.so.V as an archive file, containing:
18747 # *) an Import File, referring to the versioned filename of the
18748 # archive as well as the shared archive member, telling the
18749 # bitwidth (32 or 64) of that shared object, and providing the
18750 # list of exported symbols of that shared object, eventually
18751 # decorated with the 'weak' keyword
18752 # *) the shared object with the F_LOADONLY flag set, to really avoid
18753 # it being seen by the linker.
18754 # At run time we better use the real file rather than another symlink,
18755 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18756
18757 case $with_aix_soname,$aix_use_runtimelinking in
18758 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18759 # soname into executable. Probably we can add versioning support to
18760 # collect2, so additional links can be useful in future.
18761 aix,yes) # traditional libtool
18762 dynamic_linker='AIX unversionable lib.so'
18763 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18764 # instead of lib<name>.a to let people know that these are not
18765 # typical AIX shared libraries.
18766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18767 ;;
18768 aix,no) # traditional AIX only
18769 dynamic_linker='AIX lib.a(lib.so.V)'
18770 # We preserve .a as extension for shared libraries through AIX4.2
18771 # and later when we are not doing run time linking.
18772 library_names_spec='$libname$release.a $libname.a'
18773 soname_spec='$libname$release$shared_ext$major'
18774 ;;
18775 svr4,*) # full svr4 only
18776 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18777 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18778 # We do not specify a path in Import Files, so LIBPATH fires.
18779 shlibpath_overrides_runpath=yes
18780 ;;
18781 *,yes) # both, prefer svr4
18782 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18783 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18784 # unpreferred sharedlib libNAME.a needs extra handling
18785 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"'
18786 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"'
18787 # We do not specify a path in Import Files, so LIBPATH fires.
18788 shlibpath_overrides_runpath=yes
18789 ;;
18790 *,no) # both, prefer aix
18791 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18792 library_names_spec='$libname$release.a $libname.a'
18793 soname_spec='$libname$release$shared_ext$major'
18794 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18795 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)'
18796 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"'
18797 ;;
18798 esac
18799 shlibpath_var=LIBPATH
18800 fi
18801 ;;
18802
18803 amigaos*)
18804 case $host_cpu in
18805 powerpc)
18806 # Since July 2007 AmigaOS4 officially supports .so libraries.
18807 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18809 ;;
18810 m68k)
18811 library_names_spec='$libname.ixlibrary $libname.a'
18812 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18813 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'
18814 ;;
18815 esac
18816 ;;
18817
18818 beos*)
18819 library_names_spec='$libname$shared_ext'
18820 dynamic_linker="$host_os ld.so"
18821 shlibpath_var=LIBRARY_PATH
18822 ;;
18823
18824 bsdi[45]*)
18825 version_type=linux # correct to gnu/linux during the next big refactor
18826 need_version=no
18827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18828 soname_spec='$libname$release$shared_ext$major'
18829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18830 shlibpath_var=LD_LIBRARY_PATH
18831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18833 # the default ld.so.conf also contains /usr/contrib/lib and
18834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18835 # libtool to hard-code these into programs
18836 ;;
18837
18838 cygwin* | mingw* | windows* | pw32* | cegcc*)
18839 version_type=windows
18840 shrext_cmds=.dll
18841 need_version=no
18842 need_lib_prefix=no
18843
18844 case $GCC,$cc_basename in
18845 yes,*)
18846 # gcc
18847 library_names_spec='$libname.dll.a'
18848 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18849 # If user builds GCC with multilib enabled,
18850 # it should just install on $(libdir)
18851 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
18852 if test xyes = x"$multilib"; then
18853 postinstall_cmds='base_file=`basename \$file`~
18854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18855 dldir=$destdir/`dirname \$dlpath`~
18856 $install_prog $dir/$dlname $destdir/$dlname~
18857 chmod a+x $destdir/$dlname~
18858 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18859 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
18860 fi'
18861 else
18862 postinstall_cmds='base_file=`basename \$file`~
18863 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18864 dldir=$destdir/`dirname \$dlpath`~
18865 test -d \$dldir || mkdir -p \$dldir~
18866 $install_prog $dir/$dlname \$dldir/$dlname~
18867 chmod a+x \$dldir/$dlname~
18868 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18869 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18870 fi'
18871 fi
18872 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18873 dlpath=$dir/\$dldll~
18874 $RM \$dlpath'
18875 shlibpath_overrides_runpath=yes
18876
18877 case $host_os in
18878 cygwin*)
18879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18880 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18881
18882 ;;
18883 mingw* | windows* | cegcc*)
18884 # MinGW DLLs use traditional 'lib' prefix
18885 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18886 ;;
18887 pw32*)
18888 # pw32 DLLs use 'pw' prefix rather than 'lib'
18889 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18890 ;;
18891 esac
18892 dynamic_linker='Win32 ld.exe'
18893 ;;
18894
18895 *,cl* | *,icl*)
18896 # Native MSVC or ICC
18897 libname_spec='$name'
18898 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18899 library_names_spec='$libname.dll.lib'
18900
18901 case $build_os in
18902 mingw* | windows*)
18903 sys_lib_search_path_spec=
18904 lt_save_ifs=$IFS
18905 IFS=';'
18906 for lt_path in $LIB
18907 do
18908 IFS=$lt_save_ifs
18909 # Let DOS variable expansion print the short 8.3 style file name.
18910 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18911 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18912 done
18913 IFS=$lt_save_ifs
18914 # Convert to MSYS style.
18915 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18916 ;;
18917 cygwin*)
18918 # Convert to unix form, then to dos form, then back to unix form
18919 # but this time dos style (no spaces!) so that the unix form looks
18920 # like /cygdrive/c/PROGRA~1:/cygdr...
18921 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18922 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18923 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18924 ;;
18925 *)
18926 sys_lib_search_path_spec=$LIB
18927 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18928 # It is most probably a Windows format PATH.
18929 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18930 else
18931 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18932 fi
18933 # FIXME: find the short name or the path components, as spaces are
18934 # common. (e.g. "Program Files" -> "PROGRA~1")
18935 ;;
18936 esac
18937
18938 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18939 postinstall_cmds='base_file=`basename \$file`~
18940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18941 dldir=$destdir/`dirname \$dlpath`~
18942 test -d \$dldir || mkdir -p \$dldir~
18943 $install_prog $dir/$dlname \$dldir/$dlname'
18944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18945 dlpath=$dir/\$dldll~
18946 $RM \$dlpath'
18947 shlibpath_overrides_runpath=yes
18948 dynamic_linker='Win32 link.exe'
18949 ;;
18950
18951 *)
18952 # Assume MSVC and ICC wrapper
18953 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18954 dynamic_linker='Win32 ld.exe'
18955 ;;
18956 esac
18957 # FIXME: first we should search . and the directory the executable is in
18958 shlibpath_var=PATH
18959 ;;
18960
18961 darwin* | rhapsody*)
18962 dynamic_linker="$host_os dyld"
18963 version_type=darwin
18964 need_lib_prefix=no
18965 need_version=no
18966 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18967 soname_spec='$libname$release$major$shared_ext'
18968 shlibpath_overrides_runpath=yes
18969 shlibpath_var=DYLD_LIBRARY_PATH
18970 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18971
18972 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18973 ;;
18974
18975 dgux*)
18976 version_type=linux # correct to gnu/linux during the next big refactor
18977 need_lib_prefix=no
18978 need_version=no
18979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18980 soname_spec='$libname$release$shared_ext$major'
18981 shlibpath_var=LD_LIBRARY_PATH
18982 ;;
18983
18984 freebsd* | dragonfly* | midnightbsd*)
18985 # DragonFly does not have aout. When/if they implement a new
18986 # versioning mechanism, adjust this.
18987 if test -x /usr/bin/objformat; then
18988 objformat=`/usr/bin/objformat`
18989 else
18990 case $host_os in
18991 freebsd[23].*) objformat=aout ;;
18992 *) objformat=elf ;;
18993 esac
18994 fi
18995 version_type=freebsd-$objformat
18996 case $version_type in
18997 freebsd-elf*)
18998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18999 soname_spec='$libname$release$shared_ext$major'
19000 need_version=no
19001 need_lib_prefix=no
19002 ;;
19003 freebsd-*)
19004 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19005 need_version=yes
19006 ;;
19007 esac
19008 case $host_cpu in
19009 powerpc64)
19010 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
19011 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
19012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013 /* end confdefs.h. */
19014 int test_pointer_size[sizeof (void *) - 5];
19015
19016 _ACEOF
19017 if ac_fn_cxx_try_compile "$LINENO"
19018 then :
19019 shlibpath_var=LD_LIBRARY_PATH
19020 else case e in #(
19021 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
19022 esac
19023 fi
19024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19025 ;;
19026 *)
19027 shlibpath_var=LD_LIBRARY_PATH
19028 ;;
19029 esac
19030 case $host_os in
19031 freebsd2.*)
19032 shlibpath_overrides_runpath=yes
19033 ;;
19034 freebsd3.[01]* | freebsdelf3.[01]*)
19035 shlibpath_overrides_runpath=yes
19036 hardcode_into_libs=yes
19037 ;;
19038 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19039 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19040 shlibpath_overrides_runpath=no
19041 hardcode_into_libs=yes
19042 ;;
19043 *) # from 4.6 on, and DragonFly
19044 shlibpath_overrides_runpath=yes
19045 hardcode_into_libs=yes
19046 ;;
19047 esac
19048 ;;
19049
19050 haiku*)
19051 version_type=linux # correct to gnu/linux during the next big refactor
19052 need_lib_prefix=no
19053 need_version=no
19054 dynamic_linker="$host_os runtime_loader"
19055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19056 soname_spec='$libname$release$shared_ext$major'
19057 shlibpath_var=LIBRARY_PATH
19058 shlibpath_overrides_runpath=no
19059 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
19060 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
19061 hardcode_into_libs=no
19062 ;;
19063
19064 hpux9* | hpux10* | hpux11*)
19065 # Give a soname corresponding to the major version so that dld.sl refuses to
19066 # link against other versions.
19067 version_type=sunos
19068 need_lib_prefix=no
19069 need_version=no
19070 case $host_cpu in
19071 ia64*)
19072 shrext_cmds='.so'
19073 hardcode_into_libs=yes
19074 dynamic_linker="$host_os dld.so"
19075 shlibpath_var=LD_LIBRARY_PATH
19076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19078 soname_spec='$libname$release$shared_ext$major'
19079 if test 32 = "$HPUX_IA64_MODE"; then
19080 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19081 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19082 else
19083 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19084 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19085 fi
19086 ;;
19087 hppa*64*)
19088 shrext_cmds='.sl'
19089 hardcode_into_libs=yes
19090 dynamic_linker="$host_os dld.sl"
19091 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19094 soname_spec='$libname$release$shared_ext$major'
19095 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19097 ;;
19098 *)
19099 shrext_cmds='.sl'
19100 dynamic_linker="$host_os dld.sl"
19101 shlibpath_var=SHLIB_PATH
19102 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19104 soname_spec='$libname$release$shared_ext$major'
19105 ;;
19106 esac
19107 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19108 postinstall_cmds='chmod 555 $lib'
19109 # or fails outright, so override atomically:
19110 install_override_mode=555
19111 ;;
19112
19113 interix[3-9]*)
19114 version_type=linux # correct to gnu/linux during the next big refactor
19115 need_lib_prefix=no
19116 need_version=no
19117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19118 soname_spec='$libname$release$shared_ext$major'
19119 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19120 shlibpath_var=LD_LIBRARY_PATH
19121 shlibpath_overrides_runpath=no
19122 hardcode_into_libs=yes
19123 ;;
19124
19125 irix5* | irix6* | nonstopux*)
19126 case $host_os in
19127 nonstopux*) version_type=nonstopux ;;
19128 *)
19129 if test yes = "$lt_cv_prog_gnu_ld"; then
19130 version_type=linux # correct to gnu/linux during the next big refactor
19131 else
19132 version_type=irix
19133 fi ;;
19134 esac
19135 need_lib_prefix=no
19136 need_version=no
19137 soname_spec='$libname$release$shared_ext$major'
19138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19139 case $host_os in
19140 irix5* | nonstopux*)
19141 libsuff= shlibsuff=
19142 ;;
19143 *)
19144 case $LD in # libtool.m4 will add one of these switches to LD
19145 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19146 libsuff= shlibsuff= libmagic=32-bit;;
19147 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19148 libsuff=32 shlibsuff=N32 libmagic=N32;;
19149 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19150 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19151 *) libsuff= shlibsuff= libmagic=never-match;;
19152 esac
19153 ;;
19154 esac
19155 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19156 shlibpath_overrides_runpath=no
19157 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19158 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19159 hardcode_into_libs=yes
19160 ;;
19161
19162 # No shared lib support for Linux oldld, aout, or coff.
19163 linux*oldld* | linux*aout* | linux*coff*)
19164 dynamic_linker=no
19165 ;;
19166
19167 linux*android*)
19168 version_type=none # Android doesn't support versioned libraries.
19169 need_lib_prefix=no
19170 need_version=no
19171 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
19172 soname_spec='$libname$release$shared_ext'
19173 finish_cmds=
19174 shlibpath_var=LD_LIBRARY_PATH
19175 shlibpath_overrides_runpath=yes
19176
19177 # This implies no fast_install, which is unacceptable.
19178 # Some rework will be needed to allow for fast_install
19179 # before this can be enabled.
19180 hardcode_into_libs=yes
19181
19182 dynamic_linker='Android linker'
19183 # -rpath works at least for libraries that are not overridden by
19184 # libraries installed in system locations.
19185 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19186 ;;
19187
19188 # This must be glibc/ELF.
19189 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19190 version_type=linux # correct to gnu/linux during the next big refactor
19191 need_lib_prefix=no
19192 need_version=no
19193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19194 soname_spec='$libname$release$shared_ext$major'
19195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19196 shlibpath_var=LD_LIBRARY_PATH
19197 shlibpath_overrides_runpath=no
19198
19199 # Some binutils ld are patched to set DT_RUNPATH
19200 if test ${lt_cv_shlibpath_overrides_runpath+y}
19201 then :
19202 printf %s "(cached) " >&6
19203 else case e in #(
19204 e) lt_cv_shlibpath_overrides_runpath=no
19205 save_LDFLAGS=$LDFLAGS
19206 save_libdir=$libdir
19207 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19208 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19210 /* end confdefs.h. */
19211
19212 int
19213 main (void)
19214 {
19215
19216 ;
19217 return 0;
19218 }
19219 _ACEOF
19220 if ac_fn_cxx_try_link "$LINENO"
19221 then :
19222 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19223 then :
19224 lt_cv_shlibpath_overrides_runpath=yes
19225 fi
19226 fi
19227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19228 conftest$ac_exeext conftest.$ac_ext
19229 LDFLAGS=$save_LDFLAGS
19230 libdir=$save_libdir
19231 ;;
19232 esac
19233 fi
19234
19235 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19236
19237 # This implies no fast_install, which is unacceptable.
19238 # Some rework will be needed to allow for fast_install
19239 # before this can be enabled.
19240 hardcode_into_libs=yes
19241
19242 # Ideally, we could use ldconfig to report *all* directories which are
19243 # searched for libraries, however this is still not possible. Aside from not
19244 # being certain /sbin/ldconfig is available, command
19245 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19246 # even though it is searched at run-time. Try to do the best guess by
19247 # appending ld.so.conf contents (and includes) to the search path.
19248 if test -f /etc/ld.so.conf; then
19249 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' ' '`
19250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19251 fi
19252
19253 # We used to test for /lib/ld.so.1 and disable shared libraries on
19254 # powerpc, because MkLinux only supported shared libraries with the
19255 # GNU dynamic linker. Since this was broken with cross compilers,
19256 # most powerpc-linux boxes support dynamic linking these days and
19257 # people can always --disable-shared, the test was removed, and we
19258 # assume the GNU/Linux dynamic linker is in use.
19259 dynamic_linker='GNU/Linux ld.so'
19260 ;;
19261
19262 netbsdelf*-gnu)
19263 version_type=linux
19264 need_lib_prefix=no
19265 need_version=no
19266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19267 soname_spec='$libname$release$shared_ext$major'
19268 shlibpath_var=LD_LIBRARY_PATH
19269 shlibpath_overrides_runpath=no
19270 hardcode_into_libs=yes
19271 dynamic_linker='NetBSD ld.elf_so'
19272 ;;
19273
19274 netbsdelf*-gnu)
19275 version_type=linux
19276 need_lib_prefix=no
19277 need_version=no
19278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19279 soname_spec='${libname}${release}${shared_ext}$major'
19280 shlibpath_var=LD_LIBRARY_PATH
19281 shlibpath_overrides_runpath=no
19282 hardcode_into_libs=yes
19283 dynamic_linker='NetBSD ld.elf_so'
19284 ;;
19285
19286 netbsd*)
19287 version_type=sunos
19288 need_lib_prefix=no
19289 need_version=no
19290 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19291 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19293 dynamic_linker='NetBSD (a.out) ld.so'
19294 else
19295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19296 soname_spec='$libname$release$shared_ext$major'
19297 dynamic_linker='NetBSD ld.elf_so'
19298 fi
19299 shlibpath_var=LD_LIBRARY_PATH
19300 shlibpath_overrides_runpath=yes
19301 hardcode_into_libs=yes
19302 ;;
19303
19304 *-mlibc)
19305 version_type=linux # correct to gnu/linux during the next big refactor
19306 need_lib_prefix=no
19307 need_version=no
19308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19309 soname_spec='$libname$release$shared_ext$major'
19310 dynamic_linker='mlibc ld.so'
19311 shlibpath_var=LD_LIBRARY_PATH
19312 shlibpath_overrides_runpath=no
19313 hardcode_into_libs=yes
19314 ;;
19315
19316 newsos6)
19317 version_type=linux # correct to gnu/linux during the next big refactor
19318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19319 shlibpath_var=LD_LIBRARY_PATH
19320 shlibpath_overrides_runpath=yes
19321 ;;
19322
19323 *nto* | *qnx*)
19324 version_type=qnx
19325 need_lib_prefix=no
19326 need_version=no
19327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19328 soname_spec='$libname$release$shared_ext$major'
19329 shlibpath_var=LD_LIBRARY_PATH
19330 shlibpath_overrides_runpath=no
19331 hardcode_into_libs=yes
19332 dynamic_linker='ldqnx.so'
19333 ;;
19334
19335 openbsd*)
19336 version_type=sunos
19337 sys_lib_dlsearch_path_spec=/usr/lib
19338 need_lib_prefix=no
19339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19340 need_version=no
19341 else
19342 need_version=yes
19343 fi
19344 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19346 shlibpath_var=LD_LIBRARY_PATH
19347 shlibpath_overrides_runpath=yes
19348 ;;
19349
19350 os2*)
19351 libname_spec='$name'
19352 version_type=windows
19353 shrext_cmds=.dll
19354 need_version=no
19355 need_lib_prefix=no
19356 # OS/2 can only load a DLL with a base name of 8 characters or less.
19357 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19358 v=$($ECHO $release$versuffix | tr -d .-);
19359 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19360 $ECHO $n$v`$shared_ext'
19361 library_names_spec='${libname}_dll.$libext'
19362 dynamic_linker='OS/2 ld.exe'
19363 shlibpath_var=BEGINLIBPATH
19364 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19366 postinstall_cmds='base_file=`basename \$file`~
19367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19368 dldir=$destdir/`dirname \$dlpath`~
19369 test -d \$dldir || mkdir -p \$dldir~
19370 $install_prog $dir/$dlname \$dldir/$dlname~
19371 chmod a+x \$dldir/$dlname~
19372 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19373 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19374 fi'
19375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19376 dlpath=$dir/\$dldll~
19377 $RM \$dlpath'
19378 ;;
19379
19380 osf3* | osf4* | osf5*)
19381 version_type=osf
19382 need_lib_prefix=no
19383 need_version=no
19384 soname_spec='$libname$release$shared_ext$major'
19385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19386 shlibpath_var=LD_LIBRARY_PATH
19387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19389 ;;
19390
19391 rdos*)
19392 dynamic_linker=no
19393 ;;
19394
19395 serenity*)
19396 version_type=linux # correct to gnu/linux during the next big refactor
19397 need_lib_prefix=no
19398 need_version=no
19399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19400 soname_spec='$libname$release$shared_ext$major'
19401 shlibpath_var=LD_LIBRARY_PATH
19402 shlibpath_overrides_runpath=no
19403 dynamic_linker='SerenityOS LibELF'
19404 ;;
19405
19406 solaris*)
19407 version_type=linux # correct to gnu/linux during the next big refactor
19408 need_lib_prefix=no
19409 need_version=no
19410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19411 soname_spec='$libname$release$shared_ext$major'
19412 shlibpath_var=LD_LIBRARY_PATH
19413 shlibpath_overrides_runpath=yes
19414 hardcode_into_libs=yes
19415 # ldd complains unless libraries are executable
19416 postinstall_cmds='chmod +x $lib'
19417 ;;
19418
19419 sunos4*)
19420 version_type=sunos
19421 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19422 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19423 shlibpath_var=LD_LIBRARY_PATH
19424 shlibpath_overrides_runpath=yes
19425 if test yes = "$with_gnu_ld"; then
19426 need_lib_prefix=no
19427 fi
19428 need_version=yes
19429 ;;
19430
19431 sysv4 | sysv4.3*)
19432 version_type=linux # correct to gnu/linux during the next big refactor
19433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19434 soname_spec='$libname$release$shared_ext$major'
19435 shlibpath_var=LD_LIBRARY_PATH
19436 case $host_vendor in
19437 sni)
19438 shlibpath_overrides_runpath=no
19439 need_lib_prefix=no
19440 runpath_var=LD_RUN_PATH
19441 ;;
19442 siemens)
19443 need_lib_prefix=no
19444 ;;
19445 motorola)
19446 need_lib_prefix=no
19447 need_version=no
19448 shlibpath_overrides_runpath=no
19449 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19450 ;;
19451 esac
19452 ;;
19453
19454 sysv4*MP*)
19455 if test -d /usr/nec; then
19456 version_type=linux # correct to gnu/linux during the next big refactor
19457 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19458 soname_spec='$libname$shared_ext.$major'
19459 shlibpath_var=LD_LIBRARY_PATH
19460 fi
19461 ;;
19462
19463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19464 version_type=sco
19465 need_lib_prefix=no
19466 need_version=no
19467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19468 soname_spec='$libname$release$shared_ext$major'
19469 shlibpath_var=LD_LIBRARY_PATH
19470 shlibpath_overrides_runpath=yes
19471 hardcode_into_libs=yes
19472 if test yes = "$with_gnu_ld"; then
19473 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19474 else
19475 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19476 case $host_os in
19477 sco3.2v5*)
19478 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19479 ;;
19480 esac
19481 fi
19482 sys_lib_dlsearch_path_spec='/usr/lib'
19483 ;;
19484
19485 tpf*)
19486 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19487 version_type=linux # correct to gnu/linux during the next big refactor
19488 need_lib_prefix=no
19489 need_version=no
19490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19491 shlibpath_var=LD_LIBRARY_PATH
19492 shlibpath_overrides_runpath=no
19493 hardcode_into_libs=yes
19494 ;;
19495
19496 uts4*)
19497 version_type=linux # correct to gnu/linux during the next big refactor
19498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19499 soname_spec='$libname$release$shared_ext$major'
19500 shlibpath_var=LD_LIBRARY_PATH
19501 ;;
19502
19503 emscripten*)
19504 version_type=none
19505 need_lib_prefix=no
19506 need_version=no
19507 library_names_spec='$libname$release$shared_ext'
19508 soname_spec='$libname$release$shared_ext'
19509 finish_cmds=
19510 dynamic_linker="Emscripten linker"
19511 lt_prog_compiler_wl_CXX=
19512 lt_prog_compiler_pic_CXX=
19513 lt_prog_compiler_static_CXX=
19514
19515
19516 # C++ specific cases for pic, static, wl, etc.
19517 if test yes = "$GXX"; then
19518 lt_prog_compiler_wl_CXX='-Wl,'
19519 lt_prog_compiler_static_CXX='-static'
19520
19521 case $host_os in
19522 aix*)
19523 # All AIX code is PIC.
19524 if test ia64 = "$host_cpu"; then
19525 # AIX 5 now supports IA64 processor
19526 lt_prog_compiler_static_CXX='-Bstatic'
19527 fi
19528 lt_prog_compiler_pic_CXX='-fPIC'
19529 ;;
19530
19531 amigaos*)
19532 case $host_cpu in
19533 powerpc)
19534 # see comment about AmigaOS4 .so support
19535 lt_prog_compiler_pic_CXX='-fPIC'
19536 ;;
19537 m68k)
19538 # FIXME: we need at least 68020 code to build shared libraries, but
19539 # adding the '-m68020' flag to GCC prevents building anything better,
19540 # like '-m68040'.
19541 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19542 ;;
19543 esac
19544 ;;
19545
19546 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19547 # PIC is the default for these OSes.
19548 ;;
19549 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19550 # This hack is so that the source file can tell whether it is being
19551 # built for inclusion in a dll (and should export symbols for example).
19552 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19553 # (--disable-auto-import) libraries
19554 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19555 case $host_os in
19556 os2*)
19557 lt_prog_compiler_static_CXX='$wl-static'
19558 ;;
19559 esac
19560 ;;
19561 darwin* | rhapsody*)
19562 # PIC is the default on this platform
19563 # Common symbols not allowed in MH_DYLIB files
19564 lt_prog_compiler_pic_CXX='-fno-common'
19565 ;;
19566 *djgpp*)
19567 # DJGPP does not support shared libraries at all
19568 lt_prog_compiler_pic_CXX=
19569 ;;
19570 haiku*)
19571 # PIC is the default for Haiku.
19572 # The "-static" flag exists, but is broken.
19573 lt_prog_compiler_static_CXX=
19574 ;;
19575 interix[3-9]*)
19576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19577 # Instead, we relocate shared libraries at runtime.
19578 ;;
19579 sysv4*MP*)
19580 if test -d /usr/nec; then
19581 lt_prog_compiler_pic_CXX=-Kconform_pic
19582 fi
19583 ;;
19584 hpux*)
19585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19587 # sets the default TLS model and affects inlining.
19588 case $host_cpu in
19589 hppa*64*)
19590 ;;
19591 *)
19592 lt_prog_compiler_pic_CXX='-fPIC'
19593 ;;
19594 esac
19595 ;;
19596 *qnx* | *nto*)
19597 # QNX uses GNU C++, but need to define -shared option too, otherwise
19598 # it will coredump.
19599 lt_prog_compiler_pic_CXX='-fPIC -shared'
19600 ;;
19601 *)
19602 lt_prog_compiler_pic_CXX='-fPIC'
19603 ;;
19604 esac
19605 else
19606 case $host_os in
19607 aix[4-9]*)
19608 # All AIX code is PIC.
19609 if test ia64 = "$host_cpu"; then
19610 # AIX 5 now supports IA64 processor
19611 lt_prog_compiler_static_CXX='-Bstatic'
19612 else
19613 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19614 fi
19615 ;;
19616 chorus*)
19617 case $cc_basename in
19618 cxch68*)
19619 # Green Hills C++ Compiler
19620 # _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"
19621 ;;
19622 esac
19623 ;;
19624 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19625 # This hack is so that the source file can tell whether it is being
19626 # built for inclusion in a dll (and should export symbols for example).
19627 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19628 ;;
19629 dgux*)
19630 case $cc_basename in
19631 ec++*)
19632 lt_prog_compiler_pic_CXX='-KPIC'
19633 ;;
19634 ghcx*)
19635 # Green Hills C++ Compiler
19636 lt_prog_compiler_pic_CXX='-pic'
19637 ;;
19638 *)
19639 ;;
19640 esac
19641 ;;
19642 freebsd* | dragonfly* | midnightbsd*)
19643 # FreeBSD uses GNU C++
19644 ;;
19645 hpux9* | hpux10* | hpux11*)
19646 case $cc_basename in
19647 CC*)
19648 lt_prog_compiler_wl_CXX='-Wl,'
19649 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19650 if test ia64 != "$host_cpu"; then
19651 lt_prog_compiler_pic_CXX='+Z'
19652 fi
19653 ;;
19654 aCC*)
19655 lt_prog_compiler_wl_CXX='-Wl,'
19656 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19657 case $host_cpu in
19658 hppa*64*|ia64*)
19659 # +Z the default
19660 ;;
19661 *)
19662 lt_prog_compiler_pic_CXX='+Z'
19663 ;;
19664 esac
19665 ;;
19666 *)
19667 ;;
19668 esac
19669 ;;
19670 interix*)
19671 # This is c89, which is MS Visual C++ (no shared libs)
19672 # Anyone wants to do a port?
19673 ;;
19674 irix5* | irix6* | nonstopux*)
19675 case $cc_basename in
19676 CC*)
19677 lt_prog_compiler_wl_CXX='-Wl,'
19678 lt_prog_compiler_static_CXX='-non_shared'
19679 # CC pic flag -KPIC is the default.
19680 ;;
19681 *)
19682 ;;
19683 esac
19684 ;;
19685 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19686 case $cc_basename in
19687 KCC*)
19688 # KAI C++ Compiler
19689 lt_prog_compiler_wl_CXX='--backend -Wl,'
19690 lt_prog_compiler_pic_CXX='-fPIC'
19691 ;;
19692 ecpc* )
19693 # old Intel C++ for x86_64, which still supported -KPIC.
19694 lt_prog_compiler_wl_CXX='-Wl,'
19695 lt_prog_compiler_pic_CXX='-KPIC'
19696 lt_prog_compiler_static_CXX='-static'
19697 ;;
19698 icpc* )
19699 # Intel C++, used to be incompatible with GCC.
19700 # ICC 10 doesn't accept -KPIC any more.
19701 lt_prog_compiler_wl_CXX='-Wl,'
19702 lt_prog_compiler_pic_CXX='-fPIC'
19703 lt_prog_compiler_static_CXX='-static'
19704 ;;
19705 pgCC* | pgcpp*)
19706 # Portland Group C++ compiler
19707 lt_prog_compiler_wl_CXX='-Wl,'
19708 lt_prog_compiler_pic_CXX='-fpic'
19709 lt_prog_compiler_static_CXX='-Bstatic'
19710 ;;
19711 cxx*)
19712 # Compaq C++
19713 # Make sure the PIC flag is empty. It appears that all Alpha
19714 # Linux and Compaq Tru64 Unix objects are PIC.
19715 lt_prog_compiler_pic_CXX=
19716 lt_prog_compiler_static_CXX='-non_shared'
19717 ;;
19718 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19719 # IBM XL 8.0, 9.0 on PPC and BlueGene
19720 lt_prog_compiler_wl_CXX='-Wl,'
19721 lt_prog_compiler_pic_CXX='-qpic'
19722 lt_prog_compiler_static_CXX='-qstaticlink'
19723 ;;
19724 *)
19725 case `$CC -V 2>&1 | $SED 5q` in
19726 *Sun\ C*)
19727 # Sun C++ 5.9
19728 lt_prog_compiler_pic_CXX='-KPIC'
19729 lt_prog_compiler_static_CXX='-Bstatic'
19730 lt_prog_compiler_wl_CXX='-Qoption ld '
19731 ;;
19732 esac
19733 ;;
19734 esac
19735 ;;
19736 lynxos*)
19737 ;;
19738 m88k*)
19739 ;;
19740 mvs*)
19741 case $cc_basename in
19742 cxx*)
19743 lt_prog_compiler_pic_CXX='-W c,exportall'
19744 ;;
19745 *)
19746 ;;
19747 esac
19748 ;;
19749 netbsd* | netbsdelf*-gnu)
19750 ;;
19751 *-mlibc)
19752 ;;
19753 *qnx* | *nto*)
19754 # QNX uses GNU C++, but need to define -shared option too, otherwise
19755 # it will coredump.
19756 lt_prog_compiler_pic_CXX='-fPIC -shared'
19757 ;;
19758 osf3* | osf4* | osf5*)
19759 case $cc_basename in
19760 KCC*)
19761 lt_prog_compiler_wl_CXX='--backend -Wl,'
19762 ;;
19763 RCC*)
19764 # Rational C++ 2.4.1
19765 lt_prog_compiler_pic_CXX='-pic'
19766 ;;
19767 cxx*)
19768 # Digital/Compaq C++
19769 lt_prog_compiler_wl_CXX='-Wl,'
19770 # Make sure the PIC flag is empty. It appears that all Alpha
19771 # Linux and Compaq Tru64 Unix objects are PIC.
19772 lt_prog_compiler_pic_CXX=
19773 lt_prog_compiler_static_CXX='-non_shared'
19774 ;;
19775 *)
19776 ;;
19777 esac
19778 ;;
19779 psos*)
19780 ;;
19781 serenity*)
19782 ;;
19783 solaris*)
19784 case $cc_basename in
19785 CC* | sunCC*)
19786 # Sun C++ 4.2, 5.x and Centerline C++
19787 lt_prog_compiler_pic_CXX='-KPIC'
19788 lt_prog_compiler_static_CXX='-Bstatic'
19789 lt_prog_compiler_wl_CXX='-Qoption ld '
19790 ;;
19791 gcx*)
19792 # Green Hills C++ Compiler
19793 lt_prog_compiler_pic_CXX='-PIC'
19794 ;;
19795 *)
19796 ;;
19797 esac
19798 ;;
19799 sunos4*)
19800 case $cc_basename in
19801 CC*)
19802 # Sun C++ 4.x
19803 lt_prog_compiler_pic_CXX='-pic'
19804 lt_prog_compiler_static_CXX='-Bstatic'
19805 ;;
19806 lcc*)
19807 # Lucid
19808 lt_prog_compiler_pic_CXX='-pic'
19809 ;;
19810 *)
19811 ;;
19812 esac
19813 ;;
19814 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19815 case $cc_basename in
19816 CC*)
19817 lt_prog_compiler_wl_CXX='-Wl,'
19818 lt_prog_compiler_pic_CXX='-KPIC'
19819 lt_prog_compiler_static_CXX='-Bstatic'
19820 ;;
19821 esac
19822 ;;
19823 tandem*)
19824 case $cc_basename in
19825 NCC*)
19826 # NonStop-UX NCC 3.20
19827 lt_prog_compiler_pic_CXX='-KPIC'
19828 ;;
19829 *)
19830 ;;
19831 esac
19832 ;;
19833 vxworks*)
19834 ;;
19835 *)
19836 lt_prog_compiler_can_build_shared_CXX=no
19837 ;;
19838 esac
19839 fi
19840
19841 case $host_os in
19842 # For platforms that do not support PIC, -DPIC is meaningless:
19843 *djgpp*)
19844 lt_prog_compiler_pic_CXX=
19845 ;;
19846 *)
19847 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19848 ;;
19849 esac
19850
19851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19852 printf %s "checking for $compiler option to produce PIC... " >&6; }
19853 if test ${lt_cv_prog_compiler_pic_CXX+y}
19854 then :
19855 printf %s "(cached) " >&6
19856 else case e in #(
19857 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
19858 esac
19859 fi
19860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19861 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
19862 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19863
19864 #
19865 # Check to make sure the PIC flag actually works.
19866 #
19867 if test -n "$lt_prog_compiler_pic_CXX"; then
19868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19869 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19870 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19871 then :
19872 printf %s "(cached) " >&6
19873 else case e in #(
19874 e) lt_cv_prog_compiler_pic_works_CXX=no
19875 ac_outfile=conftest.$ac_objext
19876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19877 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19878 # Insert the option either (1) after the last *FLAGS variable, or
19879 # (2) before a word containing "conftest.", or (3) at the end.
19880 # Note that $ac_compile itself does not contain backslashes and begins
19881 # with a dollar sign (not a hyphen), so the echo should work correctly.
19882 # The option is referenced via a variable to avoid confusing sed.
19883 lt_compile=`echo "$ac_compile" | $SED \
19884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19886 -e 's:$: $lt_compiler_flag:'`
19887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19888 (eval "$lt_compile" 2>conftest.err)
19889 ac_status=$?
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 if (exit $ac_status) && test -s "$ac_outfile"; then
19893 # The compiler can only warn and ignore the option if not recognized
19894 # So say no if there are warnings other than the usual output.
19895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19897 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19898 lt_cv_prog_compiler_pic_works_CXX=yes
19899 fi
19900 fi
19901 $RM conftest*
19902 ;;
19903 esac
19904 fi
19905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19906 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19907
19908 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19909 case $lt_prog_compiler_pic_CXX in
19910 "" | " "*) ;;
19911 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19912 esac
19913 else
19914 lt_prog_compiler_pic_CXX=
19915 lt_prog_compiler_can_build_shared_CXX=no
19916 fi
19917
19918 fi
19919
19920
19921
19922
19923
19924 #
19925 # Check to make sure the static flag actually works.
19926 #
19927 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19929 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19930 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19931 then :
19932 printf %s "(cached) " >&6
19933 else case e in #(
19934 e) lt_cv_prog_compiler_static_works_CXX=no
19935 save_LDFLAGS=$LDFLAGS
19936 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19937 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19938 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19939 # The linker can only warn and ignore the option if not recognized
19940 # So say no if there are warnings
19941 if test -s conftest.err; then
19942 # Append any errors to the config.log.
19943 cat conftest.err 1>&5
19944 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19946 if diff conftest.exp conftest.er2 >/dev/null; then
19947 lt_cv_prog_compiler_static_works_CXX=yes
19948 fi
19949 else
19950 lt_cv_prog_compiler_static_works_CXX=yes
19951 fi
19952 fi
19953 $RM -r conftest*
19954 LDFLAGS=$save_LDFLAGS
19955 ;;
19956 esac
19957 fi
19958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19959 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19960
19961 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19962 :
19963 else
19964 lt_prog_compiler_static_CXX=
19965 fi
19966
19967
19968
19969 ='-fPIC'
19970 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
19971 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
19972 archive_cmds_need_lc_CXX=no
19973 no_undefined_flag_CXX=
19974 ;;
19975
19976 *)
19977 dynamic_linker=no
19978 ;;
19979 esac
19980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19981 printf "%s\n" "$dynamic_linker" >&6; }
19982 test no = "$dynamic_linker" && can_build_shared=no
19983
19984 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19985 if test yes = "$GCC"; then
19986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19987 fi
19988
19989 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19990 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19991 fi
19992
19993 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19994 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19995 fi
19996
19997 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19998 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19999
20000 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20001 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20002
20003 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20004 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20046 printf %s "checking how to hardcode library paths into programs... " >&6; }
20047 hardcode_action_CXX=
20048 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20049 test -n "$runpath_var_CXX" ||
20050 test yes = "$hardcode_automatic_CXX"; then
20051
20052 # We can hardcode non-existent directories.
20053 if test no != "$hardcode_direct_CXX" &&
20054 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20055 # have to relink, otherwise we might link with an installed library
20056 # when we should be linking with a yet-to-be-installed one
20057 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20058 test no != "$hardcode_minus_L_CXX"; then
20059 # Linking always hardcodes the temporary library directory.
20060 hardcode_action_CXX=relink
20061 else
20062 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20063 hardcode_action_CXX=immediate
20064 fi
20065 else
20066 # We cannot hardcode anything, or else we can only hardcode existing
20067 # directories.
20068 hardcode_action_CXX=unsupported
20069 fi
20070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20071 printf "%s\n" "$hardcode_action_CXX" >&6; }
20072
20073 if test relink = "$hardcode_action_CXX" ||
20074 test yes = "$inherit_rpath_CXX"; then
20075 # Fast installation is not supported
20076 enable_fast_install=no
20077 elif test yes = "$shlibpath_overrides_runpath" ||
20078 test no = "$enable_shared"; then
20079 # Fast installation is not necessary
20080 enable_fast_install=needless
20081 fi
20082
20083
20084
20085
20086
20087
20088
20089 fi # test -n "$compiler"
20090
20091 CC=$lt_save_CC
20092 CFLAGS=$lt_save_CFLAGS
20093 LDCXX=$LD
20094 LD=$lt_save_LD
20095 GCC=$lt_save_GCC
20096 with_gnu_ld=$lt_save_with_gnu_ld
20097 lt_cv_path_LDCXX=$lt_cv_path_LD
20098 lt_cv_path_LD=$lt_save_path_LD
20099 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20100 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20101 fi # test yes != "$_lt_caught_CXX_error"
20102
20103 ac_ext=cpp
20104 ac_cpp='$CXXCPP $CPPFLAGS'
20105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123 ac_config_commands="$ac_config_commands libtool"
20124
20125
20126
20127
20128 # Only expand once:
20129
20130
20131
20132
20133 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
20134 ac_ext=cpp
20135 ac_cpp='$CXXCPP $CPPFLAGS'
20136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20139 ac_success=no
20140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
20141 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
20142 if test ${ax_cv_cxx_compile_cxx11+y}
20143 then :
20144 printf %s "(cached) " >&6
20145 else case e in #(
20146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20147 /* end confdefs.h. */
20148
20149
20150 // If the compiler admits that it is not ready for C++11, why torture it?
20151 // Hopefully, this will speed up the test.
20152
20153 #ifndef __cplusplus
20154
20155 #error "This is not a C++ compiler"
20156
20157 #elif __cplusplus < 201103L && !(defined _MSC_VER)
20158
20159 #error "This is not a C++11 compiler"
20160
20161 #else
20162
20163 namespace cxx11
20164 {
20165
20166 namespace test_static_assert
20167 {
20168
20169 template <typename T>
20170 struct check
20171 {
20172 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20173 };
20174
20175 }
20176
20177 namespace test_final_override
20178 {
20179
20180 struct Base
20181 {
20182 virtual void f() {}
20183 };
20184
20185 struct Derived : public Base
20186 {
20187 virtual void f() override {}
20188 };
20189
20190 }
20191
20192 namespace test_double_right_angle_brackets
20193 {
20194
20195 template < typename T >
20196 struct check {};
20197
20198 typedef check<void> single_type;
20199 typedef check<check<void>> double_type;
20200 typedef check<check<check<void>>> triple_type;
20201 typedef check<check<check<check<void>>>> quadruple_type;
20202
20203 }
20204
20205 namespace test_decltype
20206 {
20207
20208 int
20209 f()
20210 {
20211 int a = 1;
20212 decltype(a) b = 2;
20213 return a + b;
20214 }
20215
20216 }
20217
20218 namespace test_type_deduction
20219 {
20220
20221 template < typename T1, typename T2 >
20222 struct is_same
20223 {
20224 static const bool value = false;
20225 };
20226
20227 template < typename T >
20228 struct is_same<T, T>
20229 {
20230 static const bool value = true;
20231 };
20232
20233 template < typename T1, typename T2 >
20234 auto
20235 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20236 {
20237 return a1 + a2;
20238 }
20239
20240 int
20241 test(const int c, volatile int v)
20242 {
20243 static_assert(is_same<int, decltype(0)>::value == true, "");
20244 static_assert(is_same<int, decltype(c)>::value == false, "");
20245 static_assert(is_same<int, decltype(v)>::value == false, "");
20246 auto ac = c;
20247 auto av = v;
20248 auto sumi = ac + av + 'x';
20249 auto sumf = ac + av + 1.0;
20250 static_assert(is_same<int, decltype(ac)>::value == true, "");
20251 static_assert(is_same<int, decltype(av)>::value == true, "");
20252 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20253 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20254 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20255 return (sumf > 0.0) ? sumi : add(c, v);
20256 }
20257
20258 }
20259
20260 namespace test_noexcept
20261 {
20262
20263 int f() { return 0; }
20264 int g() noexcept { return 0; }
20265
20266 static_assert(noexcept(f()) == false, "");
20267 static_assert(noexcept(g()) == true, "");
20268
20269 }
20270
20271 namespace test_constexpr
20272 {
20273
20274 template < typename CharT >
20275 unsigned long constexpr
20276 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20277 {
20278 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20279 }
20280
20281 template < typename CharT >
20282 unsigned long constexpr
20283 strlen_c(const CharT *const s) noexcept
20284 {
20285 return strlen_c_r(s, 0UL);
20286 }
20287
20288 static_assert(strlen_c("") == 0UL, "");
20289 static_assert(strlen_c("1") == 1UL, "");
20290 static_assert(strlen_c("example") == 7UL, "");
20291 static_assert(strlen_c("another\0example") == 7UL, "");
20292
20293 }
20294
20295 namespace test_rvalue_references
20296 {
20297
20298 template < int N >
20299 struct answer
20300 {
20301 static constexpr int value = N;
20302 };
20303
20304 answer<1> f(int&) { return answer<1>(); }
20305 answer<2> f(const int&) { return answer<2>(); }
20306 answer<3> f(int&&) { return answer<3>(); }
20307
20308 void
20309 test()
20310 {
20311 int i = 0;
20312 const int c = 0;
20313 static_assert(decltype(f(i))::value == 1, "");
20314 static_assert(decltype(f(c))::value == 2, "");
20315 static_assert(decltype(f(0))::value == 3, "");
20316 }
20317
20318 }
20319
20320 namespace test_uniform_initialization
20321 {
20322
20323 struct test
20324 {
20325 static const int zero {};
20326 static const int one {1};
20327 };
20328
20329 static_assert(test::zero == 0, "");
20330 static_assert(test::one == 1, "");
20331
20332 }
20333
20334 namespace test_lambdas
20335 {
20336
20337 void
20338 test1()
20339 {
20340 auto lambda1 = [](){};
20341 auto lambda2 = lambda1;
20342 lambda1();
20343 lambda2();
20344 }
20345
20346 int
20347 test2()
20348 {
20349 auto a = [](int i, int j){ return i + j; }(1, 2);
20350 auto b = []() -> int { return '0'; }();
20351 auto c = [=](){ return a + b; }();
20352 auto d = [&](){ return c; }();
20353 auto e = [a, &b](int x) mutable {
20354 const auto identity = [](int y){ return y; };
20355 for (auto i = 0; i < a; ++i)
20356 a += b--;
20357 return x + identity(a + b);
20358 }(0);
20359 return a + b + c + d + e;
20360 }
20361
20362 int
20363 test3()
20364 {
20365 const auto nullary = [](){ return 0; };
20366 const auto unary = [](int x){ return x; };
20367 using nullary_t = decltype(nullary);
20368 using unary_t = decltype(unary);
20369 const auto higher1st = [](nullary_t f){ return f(); };
20370 const auto higher2nd = [unary](nullary_t f1){
20371 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20372 };
20373 return higher1st(nullary) + higher2nd(nullary)(unary);
20374 }
20375
20376 }
20377
20378 namespace test_variadic_templates
20379 {
20380
20381 template <int...>
20382 struct sum;
20383
20384 template <int N0, int... N1toN>
20385 struct sum<N0, N1toN...>
20386 {
20387 static constexpr auto value = N0 + sum<N1toN...>::value;
20388 };
20389
20390 template <>
20391 struct sum<>
20392 {
20393 static constexpr auto value = 0;
20394 };
20395
20396 static_assert(sum<>::value == 0, "");
20397 static_assert(sum<1>::value == 1, "");
20398 static_assert(sum<23>::value == 23, "");
20399 static_assert(sum<1, 2>::value == 3, "");
20400 static_assert(sum<5, 5, 11>::value == 21, "");
20401 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20402
20403 }
20404
20405 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20406 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20407 // because of this.
20408 namespace test_template_alias_sfinae
20409 {
20410
20411 struct foo {};
20412
20413 template<typename T>
20414 using member = typename T::member_type;
20415
20416 template<typename T>
20417 void func(...) {}
20418
20419 template<typename T>
20420 void func(member<T>*) {}
20421
20422 void test();
20423
20424 void test() { func<foo>(0); }
20425
20426 }
20427
20428 } // namespace cxx11
20429
20430 #endif // __cplusplus >= 201103L
20431
20432
20433
20434 _ACEOF
20435 if ac_fn_cxx_try_compile "$LINENO"
20436 then :
20437 ax_cv_cxx_compile_cxx11=yes
20438 else case e in #(
20439 e) ax_cv_cxx_compile_cxx11=no ;;
20440 esac
20441 fi
20442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20443 esac
20444 fi
20445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
20446 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
20447 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
20448 ac_success=yes
20449 fi
20450
20451 if test x$ac_success = xno; then
20452 for alternative in ${ax_cxx_compile_alternatives}; do
20453 switch="-std=gnu++${alternative}"
20454 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
20455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20456 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
20457 if eval test \${$cachevar+y}
20458 then :
20459 printf %s "(cached) " >&6
20460 else case e in #(
20461 e) ac_save_CXX="$CXX"
20462 CXX="$CXX $switch"
20463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20464 /* end confdefs.h. */
20465
20466
20467 // If the compiler admits that it is not ready for C++11, why torture it?
20468 // Hopefully, this will speed up the test.
20469
20470 #ifndef __cplusplus
20471
20472 #error "This is not a C++ compiler"
20473
20474 #elif __cplusplus < 201103L && !(defined _MSC_VER)
20475
20476 #error "This is not a C++11 compiler"
20477
20478 #else
20479
20480 namespace cxx11
20481 {
20482
20483 namespace test_static_assert
20484 {
20485
20486 template <typename T>
20487 struct check
20488 {
20489 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20490 };
20491
20492 }
20493
20494 namespace test_final_override
20495 {
20496
20497 struct Base
20498 {
20499 virtual void f() {}
20500 };
20501
20502 struct Derived : public Base
20503 {
20504 virtual void f() override {}
20505 };
20506
20507 }
20508
20509 namespace test_double_right_angle_brackets
20510 {
20511
20512 template < typename T >
20513 struct check {};
20514
20515 typedef check<void> single_type;
20516 typedef check<check<void>> double_type;
20517 typedef check<check<check<void>>> triple_type;
20518 typedef check<check<check<check<void>>>> quadruple_type;
20519
20520 }
20521
20522 namespace test_decltype
20523 {
20524
20525 int
20526 f()
20527 {
20528 int a = 1;
20529 decltype(a) b = 2;
20530 return a + b;
20531 }
20532
20533 }
20534
20535 namespace test_type_deduction
20536 {
20537
20538 template < typename T1, typename T2 >
20539 struct is_same
20540 {
20541 static const bool value = false;
20542 };
20543
20544 template < typename T >
20545 struct is_same<T, T>
20546 {
20547 static const bool value = true;
20548 };
20549
20550 template < typename T1, typename T2 >
20551 auto
20552 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20553 {
20554 return a1 + a2;
20555 }
20556
20557 int
20558 test(const int c, volatile int v)
20559 {
20560 static_assert(is_same<int, decltype(0)>::value == true, "");
20561 static_assert(is_same<int, decltype(c)>::value == false, "");
20562 static_assert(is_same<int, decltype(v)>::value == false, "");
20563 auto ac = c;
20564 auto av = v;
20565 auto sumi = ac + av + 'x';
20566 auto sumf = ac + av + 1.0;
20567 static_assert(is_same<int, decltype(ac)>::value == true, "");
20568 static_assert(is_same<int, decltype(av)>::value == true, "");
20569 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20570 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20571 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20572 return (sumf > 0.0) ? sumi : add(c, v);
20573 }
20574
20575 }
20576
20577 namespace test_noexcept
20578 {
20579
20580 int f() { return 0; }
20581 int g() noexcept { return 0; }
20582
20583 static_assert(noexcept(f()) == false, "");
20584 static_assert(noexcept(g()) == true, "");
20585
20586 }
20587
20588 namespace test_constexpr
20589 {
20590
20591 template < typename CharT >
20592 unsigned long constexpr
20593 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20594 {
20595 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20596 }
20597
20598 template < typename CharT >
20599 unsigned long constexpr
20600 strlen_c(const CharT *const s) noexcept
20601 {
20602 return strlen_c_r(s, 0UL);
20603 }
20604
20605 static_assert(strlen_c("") == 0UL, "");
20606 static_assert(strlen_c("1") == 1UL, "");
20607 static_assert(strlen_c("example") == 7UL, "");
20608 static_assert(strlen_c("another\0example") == 7UL, "");
20609
20610 }
20611
20612 namespace test_rvalue_references
20613 {
20614
20615 template < int N >
20616 struct answer
20617 {
20618 static constexpr int value = N;
20619 };
20620
20621 answer<1> f(int&) { return answer<1>(); }
20622 answer<2> f(const int&) { return answer<2>(); }
20623 answer<3> f(int&&) { return answer<3>(); }
20624
20625 void
20626 test()
20627 {
20628 int i = 0;
20629 const int c = 0;
20630 static_assert(decltype(f(i))::value == 1, "");
20631 static_assert(decltype(f(c))::value == 2, "");
20632 static_assert(decltype(f(0))::value == 3, "");
20633 }
20634
20635 }
20636
20637 namespace test_uniform_initialization
20638 {
20639
20640 struct test
20641 {
20642 static const int zero {};
20643 static const int one {1};
20644 };
20645
20646 static_assert(test::zero == 0, "");
20647 static_assert(test::one == 1, "");
20648
20649 }
20650
20651 namespace test_lambdas
20652 {
20653
20654 void
20655 test1()
20656 {
20657 auto lambda1 = [](){};
20658 auto lambda2 = lambda1;
20659 lambda1();
20660 lambda2();
20661 }
20662
20663 int
20664 test2()
20665 {
20666 auto a = [](int i, int j){ return i + j; }(1, 2);
20667 auto b = []() -> int { return '0'; }();
20668 auto c = [=](){ return a + b; }();
20669 auto d = [&](){ return c; }();
20670 auto e = [a, &b](int x) mutable {
20671 const auto identity = [](int y){ return y; };
20672 for (auto i = 0; i < a; ++i)
20673 a += b--;
20674 return x + identity(a + b);
20675 }(0);
20676 return a + b + c + d + e;
20677 }
20678
20679 int
20680 test3()
20681 {
20682 const auto nullary = [](){ return 0; };
20683 const auto unary = [](int x){ return x; };
20684 using nullary_t = decltype(nullary);
20685 using unary_t = decltype(unary);
20686 const auto higher1st = [](nullary_t f){ return f(); };
20687 const auto higher2nd = [unary](nullary_t f1){
20688 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20689 };
20690 return higher1st(nullary) + higher2nd(nullary)(unary);
20691 }
20692
20693 }
20694
20695 namespace test_variadic_templates
20696 {
20697
20698 template <int...>
20699 struct sum;
20700
20701 template <int N0, int... N1toN>
20702 struct sum<N0, N1toN...>
20703 {
20704 static constexpr auto value = N0 + sum<N1toN...>::value;
20705 };
20706
20707 template <>
20708 struct sum<>
20709 {
20710 static constexpr auto value = 0;
20711 };
20712
20713 static_assert(sum<>::value == 0, "");
20714 static_assert(sum<1>::value == 1, "");
20715 static_assert(sum<23>::value == 23, "");
20716 static_assert(sum<1, 2>::value == 3, "");
20717 static_assert(sum<5, 5, 11>::value == 21, "");
20718 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20719
20720 }
20721
20722 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20723 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20724 // because of this.
20725 namespace test_template_alias_sfinae
20726 {
20727
20728 struct foo {};
20729
20730 template<typename T>
20731 using member = typename T::member_type;
20732
20733 template<typename T>
20734 void func(...) {}
20735
20736 template<typename T>
20737 void func(member<T>*) {}
20738
20739 void test();
20740
20741 void test() { func<foo>(0); }
20742
20743 }
20744
20745 } // namespace cxx11
20746
20747 #endif // __cplusplus >= 201103L
20748
20749
20750
20751 _ACEOF
20752 if ac_fn_cxx_try_compile "$LINENO"
20753 then :
20754 eval $cachevar=yes
20755 else case e in #(
20756 e) eval $cachevar=no ;;
20757 esac
20758 fi
20759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20760 CXX="$ac_save_CXX" ;;
20761 esac
20762 fi
20763 eval ac_res=\$$cachevar
20764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20765 printf "%s\n" "$ac_res" >&6; }
20766 if eval test x\$$cachevar = xyes; then
20767 CXX="$CXX $switch"
20768 if test -n "$CXXCPP" ; then
20769 CXXCPP="$CXXCPP $switch"
20770 fi
20771 ac_success=yes
20772 break
20773 fi
20774 done
20775 fi
20776
20777 if test x$ac_success = xno; then
20778 for alternative in ${ax_cxx_compile_alternatives}; do
20779 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
20780 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
20781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20782 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
20783 if eval test \${$cachevar+y}
20784 then :
20785 printf %s "(cached) " >&6
20786 else case e in #(
20787 e) ac_save_CXX="$CXX"
20788 CXX="$CXX $switch"
20789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20790 /* end confdefs.h. */
20791
20792
20793 // If the compiler admits that it is not ready for C++11, why torture it?
20794 // Hopefully, this will speed up the test.
20795
20796 #ifndef __cplusplus
20797
20798 #error "This is not a C++ compiler"
20799
20800 #elif __cplusplus < 201103L && !(defined _MSC_VER)
20801
20802 #error "This is not a C++11 compiler"
20803
20804 #else
20805
20806 namespace cxx11
20807 {
20808
20809 namespace test_static_assert
20810 {
20811
20812 template <typename T>
20813 struct check
20814 {
20815 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20816 };
20817
20818 }
20819
20820 namespace test_final_override
20821 {
20822
20823 struct Base
20824 {
20825 virtual void f() {}
20826 };
20827
20828 struct Derived : public Base
20829 {
20830 virtual void f() override {}
20831 };
20832
20833 }
20834
20835 namespace test_double_right_angle_brackets
20836 {
20837
20838 template < typename T >
20839 struct check {};
20840
20841 typedef check<void> single_type;
20842 typedef check<check<void>> double_type;
20843 typedef check<check<check<void>>> triple_type;
20844 typedef check<check<check<check<void>>>> quadruple_type;
20845
20846 }
20847
20848 namespace test_decltype
20849 {
20850
20851 int
20852 f()
20853 {
20854 int a = 1;
20855 decltype(a) b = 2;
20856 return a + b;
20857 }
20858
20859 }
20860
20861 namespace test_type_deduction
20862 {
20863
20864 template < typename T1, typename T2 >
20865 struct is_same
20866 {
20867 static const bool value = false;
20868 };
20869
20870 template < typename T >
20871 struct is_same<T, T>
20872 {
20873 static const bool value = true;
20874 };
20875
20876 template < typename T1, typename T2 >
20877 auto
20878 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20879 {
20880 return a1 + a2;
20881 }
20882
20883 int
20884 test(const int c, volatile int v)
20885 {
20886 static_assert(is_same<int, decltype(0)>::value == true, "");
20887 static_assert(is_same<int, decltype(c)>::value == false, "");
20888 static_assert(is_same<int, decltype(v)>::value == false, "");
20889 auto ac = c;
20890 auto av = v;
20891 auto sumi = ac + av + 'x';
20892 auto sumf = ac + av + 1.0;
20893 static_assert(is_same<int, decltype(ac)>::value == true, "");
20894 static_assert(is_same<int, decltype(av)>::value == true, "");
20895 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20896 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20897 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20898 return (sumf > 0.0) ? sumi : add(c, v);
20899 }
20900
20901 }
20902
20903 namespace test_noexcept
20904 {
20905
20906 int f() { return 0; }
20907 int g() noexcept { return 0; }
20908
20909 static_assert(noexcept(f()) == false, "");
20910 static_assert(noexcept(g()) == true, "");
20911
20912 }
20913
20914 namespace test_constexpr
20915 {
20916
20917 template < typename CharT >
20918 unsigned long constexpr
20919 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20920 {
20921 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20922 }
20923
20924 template < typename CharT >
20925 unsigned long constexpr
20926 strlen_c(const CharT *const s) noexcept
20927 {
20928 return strlen_c_r(s, 0UL);
20929 }
20930
20931 static_assert(strlen_c("") == 0UL, "");
20932 static_assert(strlen_c("1") == 1UL, "");
20933 static_assert(strlen_c("example") == 7UL, "");
20934 static_assert(strlen_c("another\0example") == 7UL, "");
20935
20936 }
20937
20938 namespace test_rvalue_references
20939 {
20940
20941 template < int N >
20942 struct answer
20943 {
20944 static constexpr int value = N;
20945 };
20946
20947 answer<1> f(int&) { return answer<1>(); }
20948 answer<2> f(const int&) { return answer<2>(); }
20949 answer<3> f(int&&) { return answer<3>(); }
20950
20951 void
20952 test()
20953 {
20954 int i = 0;
20955 const int c = 0;
20956 static_assert(decltype(f(i))::value == 1, "");
20957 static_assert(decltype(f(c))::value == 2, "");
20958 static_assert(decltype(f(0))::value == 3, "");
20959 }
20960
20961 }
20962
20963 namespace test_uniform_initialization
20964 {
20965
20966 struct test
20967 {
20968 static const int zero {};
20969 static const int one {1};
20970 };
20971
20972 static_assert(test::zero == 0, "");
20973 static_assert(test::one == 1, "");
20974
20975 }
20976
20977 namespace test_lambdas
20978 {
20979
20980 void
20981 test1()
20982 {
20983 auto lambda1 = [](){};
20984 auto lambda2 = lambda1;
20985 lambda1();
20986 lambda2();
20987 }
20988
20989 int
20990 test2()
20991 {
20992 auto a = [](int i, int j){ return i + j; }(1, 2);
20993 auto b = []() -> int { return '0'; }();
20994 auto c = [=](){ return a + b; }();
20995 auto d = [&](){ return c; }();
20996 auto e = [a, &b](int x) mutable {
20997 const auto identity = [](int y){ return y; };
20998 for (auto i = 0; i < a; ++i)
20999 a += b--;
21000 return x + identity(a + b);
21001 }(0);
21002 return a + b + c + d + e;
21003 }
21004
21005 int
21006 test3()
21007 {
21008 const auto nullary = [](){ return 0; };
21009 const auto unary = [](int x){ return x; };
21010 using nullary_t = decltype(nullary);
21011 using unary_t = decltype(unary);
21012 const auto higher1st = [](nullary_t f){ return f(); };
21013 const auto higher2nd = [unary](nullary_t f1){
21014 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
21015 };
21016 return higher1st(nullary) + higher2nd(nullary)(unary);
21017 }
21018
21019 }
21020
21021 namespace test_variadic_templates
21022 {
21023
21024 template <int...>
21025 struct sum;
21026
21027 template <int N0, int... N1toN>
21028 struct sum<N0, N1toN...>
21029 {
21030 static constexpr auto value = N0 + sum<N1toN...>::value;
21031 };
21032
21033 template <>
21034 struct sum<>
21035 {
21036 static constexpr auto value = 0;
21037 };
21038
21039 static_assert(sum<>::value == 0, "");
21040 static_assert(sum<1>::value == 1, "");
21041 static_assert(sum<23>::value == 23, "");
21042 static_assert(sum<1, 2>::value == 3, "");
21043 static_assert(sum<5, 5, 11>::value == 21, "");
21044 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
21045
21046 }
21047
21048 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
21049 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
21050 // because of this.
21051 namespace test_template_alias_sfinae
21052 {
21053
21054 struct foo {};
21055
21056 template<typename T>
21057 using member = typename T::member_type;
21058
21059 template<typename T>
21060 void func(...) {}
21061
21062 template<typename T>
21063 void func(member<T>*) {}
21064
21065 void test();
21066
21067 void test() { func<foo>(0); }
21068
21069 }
21070
21071 } // namespace cxx11
21072
21073 #endif // __cplusplus >= 201103L
21074
21075
21076
21077 _ACEOF
21078 if ac_fn_cxx_try_compile "$LINENO"
21079 then :
21080 eval $cachevar=yes
21081 else case e in #(
21082 e) eval $cachevar=no ;;
21083 esac
21084 fi
21085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21086 CXX="$ac_save_CXX" ;;
21087 esac
21088 fi
21089 eval ac_res=\$$cachevar
21090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21091 printf "%s\n" "$ac_res" >&6; }
21092 if eval test x\$$cachevar = xyes; then
21093 CXX="$CXX $switch"
21094 if test -n "$CXXCPP" ; then
21095 CXXCPP="$CXXCPP $switch"
21096 fi
21097 ac_success=yes
21098 break
21099 fi
21100 done
21101 if test x$ac_success = xyes; then
21102 break
21103 fi
21104 done
21105 fi
21106 ac_ext=cpp
21107 ac_cpp='$CXXCPP $CPPFLAGS'
21108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21111
21112 if test x$ax_cxx_compile_cxx11_required = xtrue; then
21113 if test x$ac_success = xno; then
21114 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
21115 fi
21116 fi
21117 if test x$ac_success = xno; then
21118 HAVE_CXX11=0
21119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
21120 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
21121 else
21122 HAVE_CXX11=1
21123
21124 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
21125
21126 fi
21127
21128
21129
21130
21131
21132
21133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((format))" >&5
21134 printf %s "checking for __attribute__((format))... " >&6; }
21135 if test ${ax_cv_have_func_attribute_format+y}
21136 then :
21137 printf %s "(cached) " >&6
21138 else case e in #(
21139 e)
21140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21141 /* end confdefs.h. */
21142
21143
21144 int foo(const char *p, ...) __attribute__((format(printf, 1, 2)));
21145
21146 int
21147 main (void)
21148 {
21149
21150 ;
21151 return 0;
21152 }
21153
21154 _ACEOF
21155 if ac_fn_cxx_try_link "$LINENO"
21156 then :
21157 if grep -- -Wattributes conftest.err
21158 then :
21159 ax_cv_have_func_attribute_format=no
21160 else case e in #(
21161 e) ax_cv_have_func_attribute_format=yes ;;
21162 esac
21163 fi
21164 else case e in #(
21165 e) ax_cv_have_func_attribute_format=no ;;
21166 esac
21167 fi
21168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21169 conftest$ac_exeext conftest.$ac_ext
21170 ;;
21171 esac
21172 fi
21173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_format" >&5
21174 printf "%s\n" "$ax_cv_have_func_attribute_format" >&6; }
21175
21176 if test yes = $ax_cv_have_func_attribute_format
21177 then :
21178
21179 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_FORMAT 1" >>confdefs.h
21180
21181 fi
21182
21183
21184
21185
21186
21187
21188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility))" >&5
21189 printf %s "checking for __attribute__((visibility))... " >&6; }
21190 if test ${ax_cv_have_func_attribute_visibility+y}
21191 then :
21192 printf %s "(cached) " >&6
21193 else case e in #(
21194 e)
21195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21197
21198
21199 int foo_def( void ) __attribute__((visibility("default")));
21200 int foo_hid( void ) __attribute__((visibility("hidden")));
21201 int foo_int( void ) __attribute__((visibility("internal")));
21202 int foo_pro( void ) __attribute__((visibility("protected")));
21203
21204 int
21205 main (void)
21206 {
21207
21208 ;
21209 return 0;
21210 }
21211
21212 _ACEOF
21213 if ac_fn_cxx_try_link "$LINENO"
21214 then :
21215 if grep -- -Wattributes conftest.err
21216 then :
21217 ax_cv_have_func_attribute_visibility=no
21218 else case e in #(
21219 e) ax_cv_have_func_attribute_visibility=yes ;;
21220 esac
21221 fi
21222 else case e in #(
21223 e) ax_cv_have_func_attribute_visibility=no ;;
21224 esac
21225 fi
21226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21227 conftest$ac_exeext conftest.$ac_ext
21228 ;;
21229 esac
21230 fi
21231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_visibility" >&5
21232 printf "%s\n" "$ax_cv_have_func_attribute_visibility" >&6; }
21233
21234 if test yes = $ax_cv_have_func_attribute_visibility
21235 then :
21236
21237 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
21238
21239 fi
21240
21241
21242
21243
21244
21245
21246
21247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((fallthrough))" >&5
21248 printf %s "checking for __attribute__((fallthrough))... " >&6; }
21249 if test ${ax_cv_have_gcc_attribute_falltrough+y}
21250 then :
21251 printf %s "(cached) " >&6
21252 else case e in #(
21253 e)
21254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21255 /* end confdefs.h. */
21256
21257 void foo(int &i)
21258 {
21259 switch (i)
21260 {
21261 case 0:
21262 i += 1;
21263 __attribute__((fallthrough));
21264 default:
21265 i += 1;
21266 }
21267 }
21268
21269 int
21270 main (void)
21271 {
21272
21273 ;
21274 return 0;
21275 }
21276
21277 _ACEOF
21278 if ac_fn_cxx_try_link "$LINENO"
21279 then :
21280 if test -s conftest.err
21281 then :
21282 ax_cv_have_gcc_attribute_falltrough=no
21283 else case e in #(
21284 e) ax_cv_have_gcc_attribute_falltrough=yes ;;
21285 esac
21286 fi
21287 else case e in #(
21288 e) ax_cv_have_gcc_attribute_falltrough=no ;;
21289 esac
21290 fi
21291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21292 conftest$ac_exeext conftest.$ac_ext
21293 ;;
21294 esac
21295 fi
21296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_gcc_attribute_falltrough" >&5
21297 printf "%s\n" "$ax_cv_have_gcc_attribute_falltrough" >&6; }
21298
21299 if test yes = $ax_cv_have_gcc_attribute_falltrough
21300 then :
21301
21302 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_FALLTHROUGH 1" >>confdefs.h
21303
21304 fi
21305
21306
21307
21308
21309
21310
21311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for [[clang:fallthrough]]" >&5
21312 printf %s "checking for [[clang:fallthrough]]... " >&6; }
21313 if test ${ax_cv_have_clang_attribute_falltrough+y}
21314 then :
21315 printf %s "(cached) " >&6
21316 else case e in #(
21317 e)
21318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21319 /* end confdefs.h. */
21320
21321 void foo(int &i)
21322 {
21323 switch (i)
21324 {
21325 case 0:
21326 i += 1;
21327 [[clang:fallthrough]];
21328 default:
21329 i += 1;
21330 }
21331 }
21332
21333 int
21334 main (void)
21335 {
21336
21337 ;
21338 return 0;
21339 }
21340
21341 _ACEOF
21342 if ac_fn_cxx_try_link "$LINENO"
21343 then :
21344 if test -s conftest.err
21345 then :
21346 ax_cv_have_clang_attribute_falltrough=no
21347 else case e in #(
21348 e) ax_cv_have_clang_attribute_falltrough=yes ;;
21349 esac
21350 fi
21351 else case e in #(
21352 e) ax_cv_have_clang_attribute_falltrough=no ;;
21353 esac
21354 fi
21355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21356 conftest$ac_exeext conftest.$ac_ext
21357 ;;
21358 esac
21359 fi
21360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_clang_attribute_falltrough" >&5
21361 printf "%s\n" "$ax_cv_have_clang_attribute_falltrough" >&6; }
21362
21363 if test yes = $ax_cv_have_clang_attribute_falltrough
21364 then :
21365
21366 printf "%s\n" "#define HAVE_CLANG_ATTRIBUTE_FALLTHROUGH 1" >>confdefs.h
21367
21368 fi
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21382 if test -n "$ac_tool_prefix"; then
21383 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21384 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21386 printf %s "checking for $ac_word... " >&6; }
21387 if test ${ac_cv_path_PKG_CONFIG+y}
21388 then :
21389 printf %s "(cached) " >&6
21390 else case e in #(
21391 e) case $PKG_CONFIG in
21392 [\\/]* | ?:[\\/]*)
21393 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21394 ;;
21395 *)
21396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21397 for as_dir in $PATH
21398 do
21399 IFS=$as_save_IFS
21400 case $as_dir in #(((
21401 '') as_dir=./ ;;
21402 */) ;;
21403 *) as_dir=$as_dir/ ;;
21404 esac
21405 for ac_exec_ext in '' $ac_executable_extensions; do
21406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21407 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21409 break 2
21410 fi
21411 done
21412 done
21413 IFS=$as_save_IFS
21414
21415 ;;
21416 esac ;;
21417 esac
21418 fi
21419 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21420 if test -n "$PKG_CONFIG"; then
21421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21422 printf "%s\n" "$PKG_CONFIG" >&6; }
21423 else
21424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21425 printf "%s\n" "no" >&6; }
21426 fi
21427
21428
21429 fi
21430 if test -z "$ac_cv_path_PKG_CONFIG"; then
21431 ac_pt_PKG_CONFIG=$PKG_CONFIG
21432 # Extract the first word of "pkg-config", so it can be a program name with args.
21433 set dummy pkg-config; ac_word=$2
21434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21435 printf %s "checking for $ac_word... " >&6; }
21436 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21437 then :
21438 printf %s "(cached) " >&6
21439 else case e in #(
21440 e) case $ac_pt_PKG_CONFIG in
21441 [\\/]* | ?:[\\/]*)
21442 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21443 ;;
21444 *)
21445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21446 for as_dir in $PATH
21447 do
21448 IFS=$as_save_IFS
21449 case $as_dir in #(((
21450 '') as_dir=./ ;;
21451 */) ;;
21452 *) as_dir=$as_dir/ ;;
21453 esac
21454 for ac_exec_ext in '' $ac_executable_extensions; do
21455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21456 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21458 break 2
21459 fi
21460 done
21461 done
21462 IFS=$as_save_IFS
21463
21464 ;;
21465 esac ;;
21466 esac
21467 fi
21468 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21469 if test -n "$ac_pt_PKG_CONFIG"; then
21470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21471 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21472 else
21473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21474 printf "%s\n" "no" >&6; }
21475 fi
21476
21477 if test "x$ac_pt_PKG_CONFIG" = x; then
21478 PKG_CONFIG=""
21479 else
21480 case $cross_compiling:$ac_tool_warned in
21481 yes:)
21482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21483 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21484 ac_tool_warned=yes ;;
21485 esac
21486 PKG_CONFIG=$ac_pt_PKG_CONFIG
21487 fi
21488 else
21489 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21490 fi
21491
21492 fi
21493 if test -n "$PKG_CONFIG"; then
21494 _pkg_min_version=0.20
21495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21496 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21497 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21499 printf "%s\n" "yes" >&6; }
21500 else
21501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21502 printf "%s\n" "no" >&6; }
21503 PKG_CONFIG=""
21504 fi
21505 fi
21506
21507 # ====================
21508 # Find additional apps
21509 # ====================
21510
21511 pkg_failed=no
21512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librevenge-0.0" >&5
21513 printf %s "checking for librevenge-0.0... " >&6; }
21514
21515 if test -n "$REVENGE_CFLAGS"; then
21516 pkg_cv_REVENGE_CFLAGS="$REVENGE_CFLAGS"
21517 elif test -n "$PKG_CONFIG"; then
21518 if test -n "$PKG_CONFIG" && \
21519 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-0.0\""; } >&5
21520 ($PKG_CONFIG --exists --print-errors "librevenge-0.0") 2>&5
21521 ac_status=$?
21522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21523 test $ac_status = 0; }; then
21524 pkg_cv_REVENGE_CFLAGS=`$PKG_CONFIG --cflags "librevenge-0.0" 2>/dev/null`
21525 test "x$?" != "x0" && pkg_failed=yes
21526 else
21527 pkg_failed=yes
21528 fi
21529 else
21530 pkg_failed=untried
21531 fi
21532 if test -n "$REVENGE_LIBS"; then
21533 pkg_cv_REVENGE_LIBS="$REVENGE_LIBS"
21534 elif test -n "$PKG_CONFIG"; then
21535 if test -n "$PKG_CONFIG" && \
21536 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-0.0\""; } >&5
21537 ($PKG_CONFIG --exists --print-errors "librevenge-0.0") 2>&5
21538 ac_status=$?
21539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21540 test $ac_status = 0; }; then
21541 pkg_cv_REVENGE_LIBS=`$PKG_CONFIG --libs "librevenge-0.0" 2>/dev/null`
21542 test "x$?" != "x0" && pkg_failed=yes
21543 else
21544 pkg_failed=yes
21545 fi
21546 else
21547 pkg_failed=untried
21548 fi
21549
21550
21551
21552 if test $pkg_failed = yes; then
21553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21554 printf "%s\n" "no" >&6; }
21555
21556 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21557 _pkg_short_errors_supported=yes
21558 else
21559 _pkg_short_errors_supported=no
21560 fi
21561 if test $_pkg_short_errors_supported = yes; then
21562 REVENGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librevenge-0.0" 2>&1`
21563 else
21564 REVENGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librevenge-0.0" 2>&1`
21565 fi
21566 # Put the nasty error message in config.log where it belongs
21567 echo "$REVENGE_PKG_ERRORS" >&5
21568
21569 as_fn_error $? "Package requirements (librevenge-0.0) were not met:
21570
21571 $REVENGE_PKG_ERRORS
21572
21573 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21574 installed software in a non-standard prefix.
21575
21576 Alternatively, you may set the environment variables REVENGE_CFLAGS
21577 and REVENGE_LIBS to avoid the need to call pkg-config.
21578 See the pkg-config man page for more details." "$LINENO" 5
21579 elif test $pkg_failed = untried; then
21580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21581 printf "%s\n" "no" >&6; }
21582 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21583 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21584 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21585 is in your PATH or set the PKG_CONFIG environment variable to the full
21586 path to pkg-config.
21587
21588 Alternatively, you may set the environment variables REVENGE_CFLAGS
21589 and REVENGE_LIBS to avoid the need to call pkg-config.
21590 See the pkg-config man page for more details.
21591
21592 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21593 See 'config.log' for more details" "$LINENO" 5; }
21594 else
21595 REVENGE_CFLAGS=$pkg_cv_REVENGE_CFLAGS
21596 REVENGE_LIBS=$pkg_cv_REVENGE_LIBS
21597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21598 printf "%s\n" "yes" >&6; }
21599
21600 fi
21601
21602 # ==================
21603 # Find boost headers
21604 # ==================
21605 saved_CPPFLAGS="${CPPFLAGS}"
21606 CPPFLAGS="${BOOST_CFLAGS} ${CPPFLAGS}"
21607 for ac_header in boost/cstdint.hpp boost/math/constants/constants.hpp boost/optional.hpp boost/range/adaptor/reversed.hpp boost/variant.hpp
21608 do :
21609 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
21610 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21611
21612 "
21613 if eval test \"x\$"$as_ac_Header"\" = x"yes"
21614 then :
21615 cat >>confdefs.h <<_ACEOF
21616 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
21617 _ACEOF
21618
21619 else case e in #(
21620 e) as_fn_error $? "Required boost headers not found." "$LINENO" 5 ;;
21621 esac
21622 fi
21623
21624 done
21625 CPPFLAGS="${saved_CPPFLAGS}"
21626
21627
21628 # ========
21629 # Find icu
21630 # ========
21631
21632 pkg_failed=no
21633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icu-uc" >&5
21634 printf %s "checking for icu-uc... " >&6; }
21635
21636 if test -n "$ICU_CFLAGS"; then
21637 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
21638 elif test -n "$PKG_CONFIG"; then
21639 if test -n "$PKG_CONFIG" && \
21640 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21641 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21642 ac_status=$?
21643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21644 test $ac_status = 0; }; then
21645 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
21646 test "x$?" != "x0" && pkg_failed=yes
21647 else
21648 pkg_failed=yes
21649 fi
21650 else
21651 pkg_failed=untried
21652 fi
21653 if test -n "$ICU_LIBS"; then
21654 pkg_cv_ICU_LIBS="$ICU_LIBS"
21655 elif test -n "$PKG_CONFIG"; then
21656 if test -n "$PKG_CONFIG" && \
21657 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21658 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21659 ac_status=$?
21660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21661 test $ac_status = 0; }; then
21662 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
21663 test "x$?" != "x0" && pkg_failed=yes
21664 else
21665 pkg_failed=yes
21666 fi
21667 else
21668 pkg_failed=untried
21669 fi
21670
21671
21672
21673 if test $pkg_failed = yes; then
21674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21675 printf "%s\n" "no" >&6; }
21676
21677 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21678 _pkg_short_errors_supported=yes
21679 else
21680 _pkg_short_errors_supported=no
21681 fi
21682 if test $_pkg_short_errors_supported = yes; then
21683 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
21684 else
21685 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
21686 fi
21687 # Put the nasty error message in config.log where it belongs
21688 echo "$ICU_PKG_ERRORS" >&5
21689
21690 as_fn_error $? "Package requirements (icu-uc) were not met:
21691
21692 $ICU_PKG_ERRORS
21693
21694 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21695 installed software in a non-standard prefix.
21696
21697 Alternatively, you may set the environment variables ICU_CFLAGS
21698 and ICU_LIBS to avoid the need to call pkg-config.
21699 See the pkg-config man page for more details." "$LINENO" 5
21700 elif test $pkg_failed = untried; then
21701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21702 printf "%s\n" "no" >&6; }
21703 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21704 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21705 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21706 is in your PATH or set the PKG_CONFIG environment variable to the full
21707 path to pkg-config.
21708
21709 Alternatively, you may set the environment variables ICU_CFLAGS
21710 and ICU_LIBS to avoid the need to call pkg-config.
21711 See the pkg-config man page for more details.
21712
21713 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21714 See 'config.log' for more details" "$LINENO" 5; }
21715 else
21716 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
21717 ICU_LIBS=$pkg_cv_ICU_LIBS
21718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21719 printf "%s\n" "yes" >&6; }
21720
21721 fi
21722
21723
21724
21725 # =================================
21726 # Libtool/Version Makefile settings
21727 # =================================
21728 QXP_MAJOR_VERSION=0
21729
21730 QXP_MINOR_VERSION=0
21731
21732 QXP_MICRO_VERSION=3
21733
21734 QXP_VERSION=0.0.3
21735
21736 # AC_SUBST(LT_RELEASE, [libqxp_version_major.libqxp_version_minor])
21737 LT_CURRENT=`expr 100 '*' 0 + 0`
21738 # For 1.0.0 comment the first line and uncomment the second
21739 LT_AGE=0
21740 # LT_AGE=libqxp_version_minor
21741
21742 LT_REVISION=3
21743
21744
21745
21746 # ==========================
21747 # Platform check for windows
21748 # ==========================
21749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
21750 printf %s "checking for native Win32... " >&6; }
21751 case $host in #(
21752 *-*-mingw*) :
21753
21754 native_win32=yes
21755 LIBQXP_WIN32_RESOURCE=libqxp-win32res.lo
21756 QXP2RAW_WIN32_RESOURCE=qxp2raw-win32res.lo QXP2SVG_WIN32_RESOURCE=qxp2svg-win32res.lo
21757 ;; #(
21758 *) :
21759
21760 native_win32=no
21761 LIBQXP_WIN32_RESOURCE=
21762 QXP2RAW_WIN32_RESOURCE= QXP2SVG_WIN32_RESOURCE=
21763
21764 ;;
21765 esac
21766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
21767 printf "%s\n" "$native_win32" >&6; }
21768 if test "x$native_win32" = "xyes"; then
21769 OS_WIN32_TRUE=
21770 OS_WIN32_FALSE='#'
21771 else
21772 OS_WIN32_TRUE='#'
21773 OS_WIN32_FALSE=
21774 fi
21775
21776
21777
21778
21779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Win32 platform in general" >&5
21780 printf %s "checking for Win32 platform in general... " >&6; }
21781 case $host in #(
21782 *-*-mingw*|*-*-cygwin*) :
21783 platform_win32=yes ;; #(
21784 *) :
21785 platform_win32=no
21786 ;;
21787 esac
21788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
21789 printf "%s\n" "$platform_win32" >&6; }
21790 if test "x$platform_win32" = "xyes"; then
21791 PLATFORM_WIN32_TRUE=
21792 PLATFORM_WIN32_FALSE='#'
21793 else
21794 PLATFORM_WIN32_TRUE='#'
21795 PLATFORM_WIN32_FALSE=
21796 fi
21797
21798
21799 if test "x$platform_win32" = "xyes"
21800 then :
21801
21802 else case e in #(
21803 e)
21804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
21805 printf %s "checking for -fvisibility=hidden compiler flag... " >&6; }
21806 saved_CXXFLAGS="$CXXFLAGS"
21807 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
21808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21809 /* end confdefs.h. */
21810
21811 int
21812 main (void)
21813 {
21814
21815 ;
21816 return 0;
21817 }
21818 _ACEOF
21819 if ac_fn_cxx_try_compile "$LINENO"
21820 then :
21821 have_visibility=yes
21822 else case e in #(
21823 e) have_visibility=no ;;
21824 esac
21825 fi
21826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
21828 printf "%s\n" "$have_visibility" >&6; }
21829 CXXFLAGS="$saved_CXXFLAGS"
21830
21831 ;;
21832 esac
21833 fi
21834 if
21835 test x"$have_visibility" = xyes && test x"$ax_cv_have_func_attribute_visibility" = xyes; then
21836 HAVE_VISIBILITY_TRUE=
21837 HAVE_VISIBILITY_FALSE='#'
21838 else
21839 HAVE_VISIBILITY_TRUE='#'
21840 HAVE_VISIBILITY_FALSE=
21841 fi
21842
21843
21844 # ================
21845 # Check for cflags
21846 # ================
21847 # Check whether --enable-werror was given.
21848 if test ${enable_werror+y}
21849 then :
21850 enableval=$enable_werror; enable_werror="$enableval"
21851 else case e in #(
21852 e) enable_werror=no
21853 ;;
21854 esac
21855 fi
21856
21857 if test x"$enable_werror" != "xno"
21858 then :
21859
21860 CFLAGS="$CFLAGS -Werror"
21861 CXXFLAGS="$CXXFLAGS -Werror"
21862
21863 fi
21864 # Check whether --enable-weffc was given.
21865 if test ${enable_weffc+y}
21866 then :
21867 enableval=$enable_weffc; enable_weffc="$enableval"
21868 else case e in #(
21869 e) enable_weffc=yes
21870 ;;
21871 esac
21872 fi
21873
21874 # Check whether --enable-wparanoic was given.
21875 if test ${enable_wparanoic+y}
21876 then :
21877 enableval=$enable_wparanoic; enable_wparanoic="$enableval"
21878 else case e in #(
21879 e) enable_wparanoic=no
21880 ;;
21881 esac
21882 fi
21883
21884 # Courtesy of Glib: Ensure MSVC-compatible struct packing convention
21885 # is used when compiling for Win32 with gcc.
21886 if test "x$native_win32" = "xyes"
21887 then :
21888
21889 if test -n "$ac_tool_prefix"; then
21890 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
21891 set dummy ${ac_tool_prefix}windres; ac_word=$2
21892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21893 printf %s "checking for $ac_word... " >&6; }
21894 if test ${ac_cv_prog_WINDRES+y}
21895 then :
21896 printf %s "(cached) " >&6
21897 else case e in #(
21898 e) if test -n "$WINDRES"; then
21899 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
21900 else
21901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21902 for as_dir in $PATH
21903 do
21904 IFS=$as_save_IFS
21905 case $as_dir in #(((
21906 '') as_dir=./ ;;
21907 */) ;;
21908 *) as_dir=$as_dir/ ;;
21909 esac
21910 for ac_exec_ext in '' $ac_executable_extensions; do
21911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21912 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
21913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21914 break 2
21915 fi
21916 done
21917 done
21918 IFS=$as_save_IFS
21919
21920 fi ;;
21921 esac
21922 fi
21923 WINDRES=$ac_cv_prog_WINDRES
21924 if test -n "$WINDRES"; then
21925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
21926 printf "%s\n" "$WINDRES" >&6; }
21927 else
21928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21929 printf "%s\n" "no" >&6; }
21930 fi
21931
21932
21933 fi
21934 if test -z "$ac_cv_prog_WINDRES"; then
21935 ac_ct_WINDRES=$WINDRES
21936 # Extract the first word of "windres", so it can be a program name with args.
21937 set dummy windres; ac_word=$2
21938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21939 printf %s "checking for $ac_word... " >&6; }
21940 if test ${ac_cv_prog_ac_ct_WINDRES+y}
21941 then :
21942 printf %s "(cached) " >&6
21943 else case e in #(
21944 e) if test -n "$ac_ct_WINDRES"; then
21945 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
21946 else
21947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21948 for as_dir in $PATH
21949 do
21950 IFS=$as_save_IFS
21951 case $as_dir in #(((
21952 '') as_dir=./ ;;
21953 */) ;;
21954 *) as_dir=$as_dir/ ;;
21955 esac
21956 for ac_exec_ext in '' $ac_executable_extensions; do
21957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21958 ac_cv_prog_ac_ct_WINDRES="windres"
21959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21960 break 2
21961 fi
21962 done
21963 done
21964 IFS=$as_save_IFS
21965
21966 fi ;;
21967 esac
21968 fi
21969 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
21970 if test -n "$ac_ct_WINDRES"; then
21971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
21972 printf "%s\n" "$ac_ct_WINDRES" >&6; }
21973 else
21974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21975 printf "%s\n" "no" >&6; }
21976 fi
21977
21978 if test "x$ac_ct_WINDRES" = x; then
21979 WINDRES=""
21980 else
21981 case $cross_compiling:$ac_tool_warned in
21982 yes:)
21983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21984 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21985 ac_tool_warned=yes ;;
21986 esac
21987 WINDRES=$ac_ct_WINDRES
21988 fi
21989 else
21990 WINDRES="$ac_cv_prog_WINDRES"
21991 fi
21992
21993 if test x"$GCC" = xyes
21994 then :
21995
21996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
21997 printf %s "checking how to get MSVC-compatible struct packing... " >&6; }
21998 if test -z "$ac_cv_prog_CC"
21999 then :
22000
22001 our_gcc="$CC"
22002
22003 else case e in #(
22004 e)
22005 our_gcc="$ac_cv_prog_CC"
22006 ;;
22007 esac
22008 fi
22009 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null
22010 then :
22011
22012 msnative_struct="-mms-bitfields"
22013 CFLAGS="$CFLAGS $msnative_struct"
22014 CXXFLAGS="$CXXFLAGS $msnative_struct"
22015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
22016 printf "%s\n" "${msnative_struct}" >&6; }
22017
22018 else case e in #(
22019 e)
22020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no way" >&5
22021 printf "%s\n" "no way" >&6; }
22022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
22023 printf "%s\n" "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
22024 ;;
22025 esac
22026 fi
22027
22028 fi
22029 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
22030 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wshadow -pedantic"
22031
22032 else case e in #(
22033 e)
22034 if test x"$GCC" = xyes
22035 then :
22036
22037 # Be tough with warnings and produce less careless code
22038 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
22039 CXXFLAGS="$CXXFLAGS -Wall -Wextra -pedantic -Wshadow -Wunused-variable"
22040 if test x"$enable_weffc" != "xno"
22041 then :
22042
22043 CXXFLAGS="$CXXFLAGS -Weffc++"
22044
22045 fi
22046 if test x"$enable_wparanoic" != "xno"
22047 then :
22048
22049 CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wchar-subscripts"
22050 CXXFLAGS="$CXXFLAGS -Wcomment -Wconversion -Wdisabled-optimization"
22051 CXXFLAGS="$CXXFLAGS -Wfloat-equal -Wformat -Wformat=2"
22052 CXXFLAGS="$CXXFLAGS -Wformat-nonliteral -Wformat-security"
22053 CXXFLAGS="$CXXFLAGS -Wformat-y2k -Wimport -Winit-self -Winvalid-pch"
22054 CXXFLAGS="$CXXFLAGS -Wmissing-braces -Wmissing-field-initializers"
22055 CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute -Wmissing-include-dirs"
22056 CXXFLAGS="$CXXFLAGS -Wmissing-noreturn -Wpacked -Wparentheses"
22057 CXXFLAGS="$CXXFLAGS -Wpointer-arith -Wredundant-decls -Wreturn-type"
22058 CXXFLAGS="$CXXFLAGS -Wsequence-point -Wsign-compare -Wstrict-aliasing"
22059 CXXFLAGS="$CXXFLAGS -Wstrict-aliasing=2 -Wswitch -Wswitch-default"
22060 CXXFLAGS="$CXXFLAGS -Wswitch-enum -Wtrigraphs -Wunknown-pragmas -Wunused"
22061 CXXFLAGS="$CXXFLAGS -Wunused-function -Wunused-label -Wunused-parameter"
22062 CXXFLAGS="$CXXFLAGS -Wunused-value -Wvariadic-macros"
22063 CXXFLAGS="$CXXFLAGS -Wvolatile-register-var -Wwrite-strings"
22064
22065 fi
22066
22067 fi
22068 ;;
22069 esac
22070 fi
22071
22072
22073 # ============
22074 # Debug switch
22075 # ============
22076 # Check whether --enable-debug was given.
22077 if test ${enable_debug+y}
22078 then :
22079 enableval=$enable_debug; enable_debug="$enableval"
22080 else case e in #(
22081 e) enable_debug=no
22082 ;;
22083 esac
22084 fi
22085
22086 if test "x$enable_debug" = "xyes"
22087 then :
22088
22089 DEBUG_CXXFLAGS="-DDEBUG -g"
22090 CXXFLAGS="$CXXFLAGS -O0"
22091 CFLAGS="$CFLAGS -O0"
22092
22093 else case e in #(
22094 e)
22095 DEBUG_CXXFLAGS="-DNDEBUG"
22096 ;;
22097 esac
22098 fi
22099
22100
22101 # ==========
22102 # Unit tests
22103 # ==========
22104 # Check whether --enable-tests was given.
22105 if test ${enable_tests+y}
22106 then :
22107 enableval=$enable_tests; enable_tests="$enableval"
22108 else case e in #(
22109 e) enable_tests=yes
22110 ;;
22111 esac
22112 fi
22113
22114 if test "x$enable_tests" = "xyes"
22115 then :
22116
22117
22118 pkg_failed=no
22119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cppunit" >&5
22120 printf %s "checking for cppunit... " >&6; }
22121
22122 if test -n "$CPPUNIT_CFLAGS"; then
22123 pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
22124 elif test -n "$PKG_CONFIG"; then
22125 if test -n "$PKG_CONFIG" && \
22126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
22127 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
22128 ac_status=$?
22129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22130 test $ac_status = 0; }; then
22131 pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit" 2>/dev/null`
22132 test "x$?" != "x0" && pkg_failed=yes
22133 else
22134 pkg_failed=yes
22135 fi
22136 else
22137 pkg_failed=untried
22138 fi
22139 if test -n "$CPPUNIT_LIBS"; then
22140 pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
22141 elif test -n "$PKG_CONFIG"; then
22142 if test -n "$PKG_CONFIG" && \
22143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
22144 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
22145 ac_status=$?
22146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22147 test $ac_status = 0; }; then
22148 pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit" 2>/dev/null`
22149 test "x$?" != "x0" && pkg_failed=yes
22150 else
22151 pkg_failed=yes
22152 fi
22153 else
22154 pkg_failed=untried
22155 fi
22156
22157
22158
22159 if test $pkg_failed = yes; then
22160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22161 printf "%s\n" "no" >&6; }
22162
22163 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22164 _pkg_short_errors_supported=yes
22165 else
22166 _pkg_short_errors_supported=no
22167 fi
22168 if test $_pkg_short_errors_supported = yes; then
22169 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit" 2>&1`
22170 else
22171 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit" 2>&1`
22172 fi
22173 # Put the nasty error message in config.log where it belongs
22174 echo "$CPPUNIT_PKG_ERRORS" >&5
22175
22176 as_fn_error $? "Package requirements (cppunit) were not met:
22177
22178 $CPPUNIT_PKG_ERRORS
22179
22180 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22181 installed software in a non-standard prefix.
22182
22183 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
22184 and CPPUNIT_LIBS to avoid the need to call pkg-config.
22185 See the pkg-config man page for more details." "$LINENO" 5
22186 elif test $pkg_failed = untried; then
22187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22188 printf "%s\n" "no" >&6; }
22189 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22190 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22191 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22192 is in your PATH or set the PKG_CONFIG environment variable to the full
22193 path to pkg-config.
22194
22195 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
22196 and CPPUNIT_LIBS to avoid the need to call pkg-config.
22197 See the pkg-config man page for more details.
22198
22199 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22200 See 'config.log' for more details" "$LINENO" 5; }
22201 else
22202 CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
22203 CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
22204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22205 printf "%s\n" "yes" >&6; }
22206
22207 fi
22208
22209 fi
22210
22211
22212 if test "x$enable_tests" = "xyes"; then
22213 WITH_TESTS_TRUE=
22214 WITH_TESTS_FALSE='#'
22215 else
22216 WITH_TESTS_TRUE='#'
22217 WITH_TESTS_FALSE=
22218 fi
22219
22220 if test "x$enable_tests" = "xyes"
22221 then :
22222 need_stream=yes
22223 fi
22224
22225 # =============
22226 # Documentation
22227 # =============
22228
22229 # Check whether --with-docs was given.
22230 if test ${with_docs+y}
22231 then :
22232 withval=$with_docs; with_docs="$withval"
22233 else case e in #(
22234 e) if test "x$native_win32" = "xyes"
22235 then :
22236 with_docs=no
22237 else case e in #(
22238 e) with_docs=yes ;;
22239 esac
22240 fi
22241 ;;
22242 esac
22243 fi
22244
22245 if test "x$with_docs" != "xno"
22246 then :
22247
22248 # Extract the first word of "doxygen", so it can be a program name with args.
22249 set dummy doxygen; ac_word=$2
22250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22251 printf %s "checking for $ac_word... " >&6; }
22252 if test ${ac_cv_path_DOXYGEN+y}
22253 then :
22254 printf %s "(cached) " >&6
22255 else case e in #(
22256 e) case $DOXYGEN in
22257 [\\/]* | ?:[\\/]*)
22258 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
22259 ;;
22260 *)
22261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22262 for as_dir in $PATH
22263 do
22264 IFS=$as_save_IFS
22265 case $as_dir in #(((
22266 '') as_dir=./ ;;
22267 */) ;;
22268 *) as_dir=$as_dir/ ;;
22269 esac
22270 for ac_exec_ext in '' $ac_executable_extensions; do
22271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22272 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
22273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22274 break 2
22275 fi
22276 done
22277 done
22278 IFS=$as_save_IFS
22279
22280 ;;
22281 esac ;;
22282 esac
22283 fi
22284 DOXYGEN=$ac_cv_path_DOXYGEN
22285 if test -n "$DOXYGEN"; then
22286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
22287 printf "%s\n" "$DOXYGEN" >&6; }
22288 else
22289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22290 printf "%s\n" "no" >&6; }
22291 fi
22292
22293
22294 if test -z "$DOXYGEN"
22295 then :
22296
22297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not find doxygen in your PATH." >&5
22298 printf "%s\n" "$as_me: WARNING: *** Could not find doxygen in your PATH." >&2;}
22299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** The documentation will not be built." >&5
22300 printf "%s\n" "$as_me: WARNING: *** The documentation will not be built." >&2;}
22301 build_docs=no
22302
22303 else case e in #(
22304 e) build_docs=yes ;;
22305 esac
22306 fi
22307
22308 else case e in #(
22309 e) build_docs=no ;;
22310 esac
22311 fi
22312 if test "x$build_docs" != "xno"; then
22313 WITH_DOCS_TRUE=
22314 WITH_DOCS_FALSE='#'
22315 else
22316 WITH_DOCS_TRUE='#'
22317 WITH_DOCS_FALSE=
22318 fi
22319
22320
22321 # ================
22322 # Conversion tools
22323 # ================
22324 # Check whether --enable-tools was given.
22325 if test ${enable_tools+y}
22326 then :
22327 enableval=$enable_tools; enable_tools="$enableval"
22328 else case e in #(
22329 e) if test "x$native_win32" = "xyes"
22330 then :
22331 enable_tools=no
22332 else case e in #(
22333 e) enable_tools=yes ;;
22334 esac
22335 fi
22336 ;;
22337 esac
22338 fi
22339
22340 if test "x$enable_tools" = "xyes"; then
22341 BUILD_TOOLS_TRUE=
22342 BUILD_TOOLS_FALSE='#'
22343 else
22344 BUILD_TOOLS_TRUE='#'
22345 BUILD_TOOLS_FALSE=
22346 fi
22347
22348 if test "x$enable_tools" = "xyes"
22349 then :
22350 need_stream=yes; need_generators=yes
22351 fi
22352
22353 # =======
22354 # Fuzzers
22355 # =======
22356 # Check whether --enable-fuzzers was given.
22357 if test ${enable_fuzzers+y}
22358 then :
22359 enableval=$enable_fuzzers; enable_fuzzers="$enableval"
22360 else case e in #(
22361 e) enable_fuzzers=no
22362 ;;
22363 esac
22364 fi
22365
22366 if test "x$enable_fuzzers" = "xyes"; then
22367 BUILD_FUZZERS_TRUE=
22368 BUILD_FUZZERS_FALSE='#'
22369 else
22370 BUILD_FUZZERS_TRUE='#'
22371 BUILD_FUZZERS_FALSE=
22372 fi
22373
22374 if test "x$enable_fuzzers" = "xyes"
22375 then :
22376 need_stream=yes; need_generators=yes
22377 fi
22378
22379 if test "x$need_generators" = "xyes"
22380 then :
22381
22382
22383 pkg_failed=no
22384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librevenge-generators-0.0" >&5
22385 printf %s "checking for librevenge-generators-0.0... " >&6; }
22386
22387 if test -n "$REVENGE_GENERATORS_CFLAGS"; then
22388 pkg_cv_REVENGE_GENERATORS_CFLAGS="$REVENGE_GENERATORS_CFLAGS"
22389 elif test -n "$PKG_CONFIG"; then
22390 if test -n "$PKG_CONFIG" && \
22391 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-generators-0.0\""; } >&5
22392 ($PKG_CONFIG --exists --print-errors "librevenge-generators-0.0") 2>&5
22393 ac_status=$?
22394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22395 test $ac_status = 0; }; then
22396 pkg_cv_REVENGE_GENERATORS_CFLAGS=`$PKG_CONFIG --cflags "librevenge-generators-0.0" 2>/dev/null`
22397 test "x$?" != "x0" && pkg_failed=yes
22398 else
22399 pkg_failed=yes
22400 fi
22401 else
22402 pkg_failed=untried
22403 fi
22404 if test -n "$REVENGE_GENERATORS_LIBS"; then
22405 pkg_cv_REVENGE_GENERATORS_LIBS="$REVENGE_GENERATORS_LIBS"
22406 elif test -n "$PKG_CONFIG"; then
22407 if test -n "$PKG_CONFIG" && \
22408 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-generators-0.0\""; } >&5
22409 ($PKG_CONFIG --exists --print-errors "librevenge-generators-0.0") 2>&5
22410 ac_status=$?
22411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22412 test $ac_status = 0; }; then
22413 pkg_cv_REVENGE_GENERATORS_LIBS=`$PKG_CONFIG --libs "librevenge-generators-0.0" 2>/dev/null`
22414 test "x$?" != "x0" && pkg_failed=yes
22415 else
22416 pkg_failed=yes
22417 fi
22418 else
22419 pkg_failed=untried
22420 fi
22421
22422
22423
22424 if test $pkg_failed = yes; then
22425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22426 printf "%s\n" "no" >&6; }
22427
22428 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22429 _pkg_short_errors_supported=yes
22430 else
22431 _pkg_short_errors_supported=no
22432 fi
22433 if test $_pkg_short_errors_supported = yes; then
22434 REVENGE_GENERATORS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librevenge-generators-0.0" 2>&1`
22435 else
22436 REVENGE_GENERATORS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librevenge-generators-0.0" 2>&1`
22437 fi
22438 # Put the nasty error message in config.log where it belongs
22439 echo "$REVENGE_GENERATORS_PKG_ERRORS" >&5
22440
22441 as_fn_error $? "Package requirements (librevenge-generators-0.0) were not met:
22442
22443 $REVENGE_GENERATORS_PKG_ERRORS
22444
22445 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22446 installed software in a non-standard prefix.
22447
22448 Alternatively, you may set the environment variables REVENGE_GENERATORS_CFLAGS
22449 and REVENGE_GENERATORS_LIBS to avoid the need to call pkg-config.
22450 See the pkg-config man page for more details." "$LINENO" 5
22451 elif test $pkg_failed = untried; then
22452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22453 printf "%s\n" "no" >&6; }
22454 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22455 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22456 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22457 is in your PATH or set the PKG_CONFIG environment variable to the full
22458 path to pkg-config.
22459
22460 Alternatively, you may set the environment variables REVENGE_GENERATORS_CFLAGS
22461 and REVENGE_GENERATORS_LIBS to avoid the need to call pkg-config.
22462 See the pkg-config man page for more details.
22463
22464 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22465 See 'config.log' for more details" "$LINENO" 5; }
22466 else
22467 REVENGE_GENERATORS_CFLAGS=$pkg_cv_REVENGE_GENERATORS_CFLAGS
22468 REVENGE_GENERATORS_LIBS=$pkg_cv_REVENGE_GENERATORS_LIBS
22469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22470 printf "%s\n" "yes" >&6; }
22471
22472 fi
22473
22474 fi
22475
22476
22477
22478 if test "x$need_stream" = "xyes"
22479 then :
22480
22481
22482 pkg_failed=no
22483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librevenge-stream-0.0" >&5
22484 printf %s "checking for librevenge-stream-0.0... " >&6; }
22485
22486 if test -n "$REVENGE_STREAM_CFLAGS"; then
22487 pkg_cv_REVENGE_STREAM_CFLAGS="$REVENGE_STREAM_CFLAGS"
22488 elif test -n "$PKG_CONFIG"; then
22489 if test -n "$PKG_CONFIG" && \
22490 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-stream-0.0\""; } >&5
22491 ($PKG_CONFIG --exists --print-errors "librevenge-stream-0.0") 2>&5
22492 ac_status=$?
22493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22494 test $ac_status = 0; }; then
22495 pkg_cv_REVENGE_STREAM_CFLAGS=`$PKG_CONFIG --cflags "librevenge-stream-0.0" 2>/dev/null`
22496 test "x$?" != "x0" && pkg_failed=yes
22497 else
22498 pkg_failed=yes
22499 fi
22500 else
22501 pkg_failed=untried
22502 fi
22503 if test -n "$REVENGE_STREAM_LIBS"; then
22504 pkg_cv_REVENGE_STREAM_LIBS="$REVENGE_STREAM_LIBS"
22505 elif test -n "$PKG_CONFIG"; then
22506 if test -n "$PKG_CONFIG" && \
22507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-stream-0.0\""; } >&5
22508 ($PKG_CONFIG --exists --print-errors "librevenge-stream-0.0") 2>&5
22509 ac_status=$?
22510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22511 test $ac_status = 0; }; then
22512 pkg_cv_REVENGE_STREAM_LIBS=`$PKG_CONFIG --libs "librevenge-stream-0.0" 2>/dev/null`
22513 test "x$?" != "x0" && pkg_failed=yes
22514 else
22515 pkg_failed=yes
22516 fi
22517 else
22518 pkg_failed=untried
22519 fi
22520
22521
22522
22523 if test $pkg_failed = yes; then
22524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22525 printf "%s\n" "no" >&6; }
22526
22527 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22528 _pkg_short_errors_supported=yes
22529 else
22530 _pkg_short_errors_supported=no
22531 fi
22532 if test $_pkg_short_errors_supported = yes; then
22533 REVENGE_STREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librevenge-stream-0.0" 2>&1`
22534 else
22535 REVENGE_STREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librevenge-stream-0.0" 2>&1`
22536 fi
22537 # Put the nasty error message in config.log where it belongs
22538 echo "$REVENGE_STREAM_PKG_ERRORS" >&5
22539
22540 as_fn_error $? "Package requirements (librevenge-stream-0.0) were not met:
22541
22542 $REVENGE_STREAM_PKG_ERRORS
22543
22544 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22545 installed software in a non-standard prefix.
22546
22547 Alternatively, you may set the environment variables REVENGE_STREAM_CFLAGS
22548 and REVENGE_STREAM_LIBS to avoid the need to call pkg-config.
22549 See the pkg-config man page for more details." "$LINENO" 5
22550 elif test $pkg_failed = untried; then
22551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22552 printf "%s\n" "no" >&6; }
22553 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22554 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22555 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22556 is in your PATH or set the PKG_CONFIG environment variable to the full
22557 path to pkg-config.
22558
22559 Alternatively, you may set the environment variables REVENGE_STREAM_CFLAGS
22560 and REVENGE_STREAM_LIBS to avoid the need to call pkg-config.
22561 See the pkg-config man page for more details.
22562
22563 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22564 See 'config.log' for more details" "$LINENO" 5; }
22565 else
22566 REVENGE_STREAM_CFLAGS=$pkg_cv_REVENGE_STREAM_CFLAGS
22567 REVENGE_STREAM_LIBS=$pkg_cv_REVENGE_STREAM_LIBS
22568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22569 printf "%s\n" "yes" >&6; }
22570
22571 fi
22572
22573 fi
22574
22575
22576
22577 # =====================
22578 # Prepare all .in files
22579 # =====================
22580 ac_config_files="$ac_config_files Makefile inc/Makefile inc/libqxp/Makefile src/Makefile src/conv/Makefile src/fuzz/Makefile src/lib/Makefile src/lib/libqxp.rc src/conv/raw/Makefile src/conv/raw/qxp2raw.rc src/conv/svg/Makefile src/conv/svg/qxp2svg.rc src/conv/text/Makefile src/conv/text/qxp2text.rc src/test/Makefile build/Makefile build/win32/Makefile docs/Makefile docs/doxygen/Makefile libqxp-$QXP_MAJOR_VERSION.$QXP_MINOR_VERSION.pc:libqxp.pc.in"
22581
22582 cat >confcache <<\_ACEOF
22583 # This file is a shell script that caches the results of configure
22584 # tests run on this system so they can be shared between configure
22585 # scripts and configure runs, see configure's option --config-cache.
22586 # It is not useful on other systems. If it contains results you don't
22587 # want to keep, you may remove or edit it.
22588 #
22589 # config.status only pays attention to the cache file if you give it
22590 # the --recheck option to rerun configure.
22591 #
22592 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
22593 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
22594 # following values.
22595
22596 _ACEOF
22597
22598 # The following way of writing the cache mishandles newlines in values,
22599 # but we know of no workaround that is simple, portable, and efficient.
22600 # So, we kill variables containing newlines.
22601 # Ultrix sh set writes to stderr and can't be redirected directly,
22602 # and sets the high bit in the cache file unless we assign to the vars.
22603 (
22604 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22605 eval ac_val=\$$ac_var
22606 case $ac_val in #(
22607 *${as_nl}*)
22608 case $ac_var in #(
22609 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22610 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22611 esac
22612 case $ac_var in #(
22613 _ | IFS | as_nl) ;; #(
22614 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22615 *) { eval $ac_var=; unset $ac_var;} ;;
22616 esac ;;
22617 esac
22618 done
22619
22620 (set) 2>&1 |
22621 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22622 *${as_nl}ac_space=\ *)
22623 # 'set' does not quote correctly, so add quotes: double-quote
22624 # substitution turns \\\\ into \\, and sed turns \\ into \.
22625 sed -n \
22626 "s/'/'\\\\''/g;
22627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22628 ;; #(
22629 *)
22630 # 'set' quotes correctly as required by POSIX, so do not add quotes.
22631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22632 ;;
22633 esac |
22634 sort
22635 ) |
22636 sed '
22637 /^ac_cv_env_/b end
22638 t clear
22639 :clear
22640 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
22641 t end
22642 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22643 :end' >>confcache
22644 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22645 if test -w "$cache_file"; then
22646 if test "x$cache_file" != "x/dev/null"; then
22647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22648 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
22649 if test ! -f "$cache_file" || test -h "$cache_file"; then
22650 cat confcache >"$cache_file"
22651 else
22652 case $cache_file in #(
22653 */* | ?:*)
22654 mv -f confcache "$cache_file"$$ &&
22655 mv -f "$cache_file"$$ "$cache_file" ;; #(
22656 *)
22657 mv -f confcache "$cache_file" ;;
22658 esac
22659 fi
22660 fi
22661 else
22662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22663 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
22664 fi
22665 fi
22666 rm -f confcache
22667
22668 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22669 # Let make expand exec_prefix.
22670 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22671
22672 DEFS=-DHAVE_CONFIG_H
22673
22674 ac_libobjs=
22675 ac_ltlibobjs=
22676 U=
22677 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22678 # 1. Remove the extension, and $U if already installed.
22679 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22680 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
22681 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22682 # will be set to the directory where LIBOBJS objects are built.
22683 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22684 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22685 done
22686 LIBOBJS=$ac_libobjs
22687
22688 LTLIBOBJS=$ac_ltlibobjs
22689
22690
22691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22692 printf %s "checking that generated files are newer than configure... " >&6; }
22693 if test -n "$am_sleep_pid"; then
22694 # Hide warnings about reused PIDs.
22695 wait $am_sleep_pid 2>/dev/null
22696 fi
22697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
22698 printf "%s\n" "done" >&6; }
22699 case $enable_silent_rules in # (((
22700 yes) AM_DEFAULT_VERBOSITY=0;;
22701 no) AM_DEFAULT_VERBOSITY=1;;
22702 esac
22703 if test $am_cv_make_support_nested_variables = yes; then
22704 AM_V='$(V)'
22705 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
22706 else
22707 AM_V=$AM_DEFAULT_VERBOSITY
22708 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
22709 fi
22710
22711 if test -n "$EXEEXT"; then
22712 am__EXEEXT_TRUE=
22713 am__EXEEXT_FALSE='#'
22714 else
22715 am__EXEEXT_TRUE='#'
22716 am__EXEEXT_FALSE=
22717 fi
22718
22719 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22720 as_fn_error $? "conditional \"AMDEP\" was never defined.
22721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22722 fi
22723 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22724 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22726 fi
22727 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22728 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22730 fi
22731 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22732 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22734 fi
22735 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
22736 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
22737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22738 fi
22739 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
22740 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
22741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22742 fi
22743 if test -z "${HAVE_VISIBILITY_TRUE}" && test -z "${HAVE_VISIBILITY_FALSE}"; then
22744 as_fn_error $? "conditional \"HAVE_VISIBILITY\" was never defined.
22745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22746 fi
22747 if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then
22748 as_fn_error $? "conditional \"WITH_TESTS\" was never defined.
22749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22750 fi
22751 if test -z "${WITH_DOCS_TRUE}" && test -z "${WITH_DOCS_FALSE}"; then
22752 as_fn_error $? "conditional \"WITH_DOCS\" was never defined.
22753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22754 fi
22755 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
22756 as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
22757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22758 fi
22759 if test -z "${BUILD_FUZZERS_TRUE}" && test -z "${BUILD_FUZZERS_FALSE}"; then
22760 as_fn_error $? "conditional \"BUILD_FUZZERS\" was never defined.
22761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22762 fi
22763
22764 : "${CONFIG_STATUS=./config.status}"
22765 ac_write_fail=0
22766 ac_clean_files_save=$ac_clean_files
22767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22769 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
22770 as_write_fail=0
22771 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22772 #! $SHELL
22773 # Generated by $as_me.
22774 # Run this file to recreate the current configuration.
22775 # Compiler output produced by configure, useful for debugging
22776 # configure, is in config.log if it exists.
22777
22778 debug=false
22779 ac_cs_recheck=false
22780 ac_cs_silent=false
22781
22782 SHELL=\${CONFIG_SHELL-$SHELL}
22783 export SHELL
22784 _ASEOF
22785 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22786 ## -------------------- ##
22787 ## M4sh Initialization. ##
22788 ## -------------------- ##
22789
22790 # Be more Bourne compatible
22791 DUALCASE=1; export DUALCASE # for MKS sh
22792 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22793 then :
22794 emulate sh
22795 NULLCMD=:
22796 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22797 # is contrary to our usage. Disable this feature.
22798 alias -g '${1+"$@"}'='"$@"'
22799 setopt NO_GLOB_SUBST
22800 else case e in #(
22801 e) case `(set -o) 2>/dev/null` in #(
22802 *posix*) :
22803 set -o posix ;; #(
22804 *) :
22805 ;;
22806 esac ;;
22807 esac
22808 fi
22809
22810
22811
22812 # Reset variables that may have inherited troublesome values from
22813 # the environment.
22814
22815 # IFS needs to be set, to space, tab, and newline, in precisely that order.
22816 # (If _AS_PATH_WALK were called with IFS unset, it would have the
22817 # side effect of setting IFS to empty, thus disabling word splitting.)
22818 # Quoting is to prevent editors from complaining about space-tab.
22819 as_nl='
22820 '
22821 export as_nl
22822 IFS=" "" $as_nl"
22823
22824 PS1='$ '
22825 PS2='> '
22826 PS4='+ '
22827
22828 # Ensure predictable behavior from utilities with locale-dependent output.
22829 LC_ALL=C
22830 export LC_ALL
22831 LANGUAGE=C
22832 export LANGUAGE
22833
22834 # We cannot yet rely on "unset" to work, but we need these variables
22835 # to be unset--not just set to an empty or harmless value--now, to
22836 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
22837 # also avoids known problems related to "unset" and subshell syntax
22838 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
22839 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
22840 do eval test \${$as_var+y} \
22841 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22842 done
22843
22844 # Ensure that fds 0, 1, and 2 are open.
22845 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
22846 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
22847 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
22848
22849 # The user is always right.
22850 if ${PATH_SEPARATOR+false} :; then
22851 PATH_SEPARATOR=:
22852 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22853 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22854 PATH_SEPARATOR=';'
22855 }
22856 fi
22857
22858
22859 # Find who we are. Look in the path if we contain no directory separator.
22860 as_myself=
22861 case $0 in #((
22862 *[\\/]* ) as_myself=$0 ;;
22863 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22864 for as_dir in $PATH
22865 do
22866 IFS=$as_save_IFS
22867 case $as_dir in #(((
22868 '') as_dir=./ ;;
22869 */) ;;
22870 *) as_dir=$as_dir/ ;;
22871 esac
22872 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
22873 done
22874 IFS=$as_save_IFS
22875
22876 ;;
22877 esac
22878 # We did not find ourselves, most probably we were run as 'sh COMMAND'
22879 # in which case we are not to be found in the path.
22880 if test "x$as_myself" = x; then
22881 as_myself=$0
22882 fi
22883 if test ! -f "$as_myself"; then
22884 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22885 exit 1
22886 fi
22887
22888
22889
22890 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22891 # ----------------------------------------
22892 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22893 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22894 # script with STATUS, using 1 if that was 0.
22895 as_fn_error ()
22896 {
22897 as_status=$1; test $as_status -eq 0 && as_status=1
22898 if test "$4"; then
22899 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22901 fi
22902 printf "%s\n" "$as_me: error: $2" >&2
22903 as_fn_exit $as_status
22904 } # as_fn_error
22905
22906
22907 # as_fn_set_status STATUS
22908 # -----------------------
22909 # Set $? to STATUS, without forking.
22910 as_fn_set_status ()
22911 {
22912 return $1
22913 } # as_fn_set_status
22914
22915 # as_fn_exit STATUS
22916 # -----------------
22917 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22918 as_fn_exit ()
22919 {
22920 set +e
22921 as_fn_set_status $1
22922 exit $1
22923 } # as_fn_exit
22924
22925 # as_fn_unset VAR
22926 # ---------------
22927 # Portably unset VAR.
22928 as_fn_unset ()
22929 {
22930 { eval $1=; unset $1;}
22931 }
22932 as_unset=as_fn_unset
22933
22934 # as_fn_append VAR VALUE
22935 # ----------------------
22936 # Append the text in VALUE to the end of the definition contained in VAR. Take
22937 # advantage of any shell optimizations that allow amortized linear growth over
22938 # repeated appends, instead of the typical quadratic growth present in naive
22939 # implementations.
22940 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
22941 then :
22942 eval 'as_fn_append ()
22943 {
22944 eval $1+=\$2
22945 }'
22946 else case e in #(
22947 e) as_fn_append ()
22948 {
22949 eval $1=\$$1\$2
22950 } ;;
22951 esac
22952 fi # as_fn_append
22953
22954 # as_fn_arith ARG...
22955 # ------------------
22956 # Perform arithmetic evaluation on the ARGs, and store the result in the
22957 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22958 # must be portable across $(()) and expr.
22959 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
22960 then :
22961 eval 'as_fn_arith ()
22962 {
22963 as_val=$(( $* ))
22964 }'
22965 else case e in #(
22966 e) as_fn_arith ()
22967 {
22968 as_val=`expr "$@" || test $? -eq 1`
22969 } ;;
22970 esac
22971 fi # as_fn_arith
22972
22973
22974 if expr a : '\(a\)' >/dev/null 2>&1 &&
22975 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22976 as_expr=expr
22977 else
22978 as_expr=false
22979 fi
22980
22981 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22982 as_basename=basename
22983 else
22984 as_basename=false
22985 fi
22986
22987 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22988 as_dirname=dirname
22989 else
22990 as_dirname=false
22991 fi
22992
22993 as_me=`$as_basename -- "$0" ||
22994 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22995 X"$0" : 'X\(//\)$' \| \
22996 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22997 printf "%s\n" X/"$0" |
22998 sed '/^.*\/\([^/][^/]*\)\/*$/{
22999 s//\1/
23000 q
23001 }
23002 /^X\/\(\/\/\)$/{
23003 s//\1/
23004 q
23005 }
23006 /^X\/\(\/\).*/{
23007 s//\1/
23008 q
23009 }
23010 s/.*/./; q'`
23011
23012 # Avoid depending upon Character Ranges.
23013 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23014 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23015 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23016 as_cr_digits='0123456789'
23017 as_cr_alnum=$as_cr_Letters$as_cr_digits
23018
23019
23020 # Determine whether it's possible to make 'echo' print without a newline.
23021 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23022 # for compatibility with existing Makefiles.
23023 ECHO_C= ECHO_N= ECHO_T=
23024 case `echo -n x` in #(((((
23025 -n*)
23026 case `echo 'xy\c'` in
23027 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23028 xy) ECHO_C='\c';;
23029 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23030 ECHO_T=' ';;
23031 esac;;
23032 *)
23033 ECHO_N='-n';;
23034 esac
23035
23036 # For backward compatibility with old third-party macros, we provide
23037 # the shell variables $as_echo and $as_echo_n. New code should use
23038 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23039 as_echo='printf %s\n'
23040 as_echo_n='printf %s'
23041
23042 rm -f conf$$ conf$$.exe conf$$.file
23043 if test -d conf$$.dir; then
23044 rm -f conf$$.dir/conf$$.file
23045 else
23046 rm -f conf$$.dir
23047 mkdir conf$$.dir 2>/dev/null
23048 fi
23049 if (echo >conf$$.file) 2>/dev/null; then
23050 if ln -s conf$$.file conf$$ 2>/dev/null; then
23051 as_ln_s='ln -s'
23052 # ... but there are two gotchas:
23053 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
23054 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
23055 # In both cases, we have to default to 'cp -pR'.
23056 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23057 as_ln_s='cp -pR'
23058 elif ln conf$$.file conf$$ 2>/dev/null; then
23059 as_ln_s=ln
23060 else
23061 as_ln_s='cp -pR'
23062 fi
23063 else
23064 as_ln_s='cp -pR'
23065 fi
23066 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23067 rmdir conf$$.dir 2>/dev/null
23068
23069
23070 # as_fn_mkdir_p
23071 # -------------
23072 # Create "$as_dir" as a directory, including parents if necessary.
23073 as_fn_mkdir_p ()
23074 {
23075
23076 case $as_dir in #(
23077 -*) as_dir=./$as_dir;;
23078 esac
23079 test -d "$as_dir" || eval $as_mkdir_p || {
23080 as_dirs=
23081 while :; do
23082 case $as_dir in #(
23083 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23084 *) as_qdir=$as_dir;;
23085 esac
23086 as_dirs="'$as_qdir' $as_dirs"
23087 as_dir=`$as_dirname -- "$as_dir" ||
23088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23089 X"$as_dir" : 'X\(//\)[^/]' \| \
23090 X"$as_dir" : 'X\(//\)$' \| \
23091 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23092 printf "%s\n" X"$as_dir" |
23093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23094 s//\1/
23095 q
23096 }
23097 /^X\(\/\/\)[^/].*/{
23098 s//\1/
23099 q
23100 }
23101 /^X\(\/\/\)$/{
23102 s//\1/
23103 q
23104 }
23105 /^X\(\/\).*/{
23106 s//\1/
23107 q
23108 }
23109 s/.*/./; q'`
23110 test -d "$as_dir" && break
23111 done
23112 test -z "$as_dirs" || eval "mkdir $as_dirs"
23113 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23114
23115
23116 } # as_fn_mkdir_p
23117 if mkdir -p . 2>/dev/null; then
23118 as_mkdir_p='mkdir -p "$as_dir"'
23119 else
23120 test -d ./-p && rmdir ./-p
23121 as_mkdir_p=false
23122 fi
23123
23124
23125 # as_fn_executable_p FILE
23126 # -----------------------
23127 # Test if FILE is an executable regular file.
23128 as_fn_executable_p ()
23129 {
23130 test -f "$1" && test -x "$1"
23131 } # as_fn_executable_p
23132 as_test_x='test -x'
23133 as_executable_p=as_fn_executable_p
23134
23135 # Sed expression to map a string onto a valid CPP name.
23136 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23137 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
23138
23139 # Sed expression to map a string onto a valid variable name.
23140 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23141 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
23142
23143
23144 exec 6>&1
23145 ## ----------------------------------- ##
23146 ## Main body of $CONFIG_STATUS script. ##
23147 ## ----------------------------------- ##
23148 _ASEOF
23149 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23150
23151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23152 # Save the log message, to keep $0 and so on meaningful, and to
23153 # report actual input values of CONFIG_FILES etc. instead of their
23154 # values after options handling.
23155 ac_log="
23156 This file was extended by libqxp $as_me 0.0.3, which was
23157 generated by GNU Autoconf 2.72. Invocation command line was
23158
23159 CONFIG_FILES = $CONFIG_FILES
23160 CONFIG_HEADERS = $CONFIG_HEADERS
23161 CONFIG_LINKS = $CONFIG_LINKS
23162 CONFIG_COMMANDS = $CONFIG_COMMANDS
23163 $ $0 $@
23164
23165 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23166 "
23167
23168 _ACEOF
23169
23170 case $ac_config_files in *"
23171 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23172 esac
23173
23174 case $ac_config_headers in *"
23175 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23176 esac
23177
23178
23179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23180 # Files that config.status was made for.
23181 config_files="$ac_config_files"
23182 config_headers="$ac_config_headers"
23183 config_commands="$ac_config_commands"
23184
23185 _ACEOF
23186
23187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23188 ac_cs_usage="\
23189 '$as_me' instantiates files and other configuration actions
23190 from templates according to the current configuration. Unless the files
23191 and actions are specified as TAGs, all are instantiated by default.
23192
23193 Usage: $0 [OPTION]... [TAG]...
23194
23195 -h, --help print this help, then exit
23196 -V, --version print version number and configuration settings, then exit
23197 --config print configuration, then exit
23198 -q, --quiet, --silent
23199 do not print progress messages
23200 -d, --debug don't remove temporary files
23201 --recheck update $as_me by reconfiguring in the same conditions
23202 --file=FILE[:TEMPLATE]
23203 instantiate the configuration file FILE
23204 --header=FILE[:TEMPLATE]
23205 instantiate the configuration header FILE
23206
23207 Configuration files:
23208 $config_files
23209
23210 Configuration headers:
23211 $config_headers
23212
23213 Configuration commands:
23214 $config_commands
23215
23216 Report bugs to the package provider."
23217
23218 _ACEOF
23219 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23220 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23222 ac_cs_config='$ac_cs_config_escaped'
23223 ac_cs_version="\\
23224 libqxp config.status 0.0.3
23225 configured by $0, generated by GNU Autoconf 2.72,
23226 with options \\"\$ac_cs_config\\"
23227
23228 Copyright (C) 2023 Free Software Foundation, Inc.
23229 This config.status script is free software; the Free Software Foundation
23230 gives unlimited permission to copy, distribute and modify it."
23231
23232 ac_pwd='$ac_pwd'
23233 srcdir='$srcdir'
23234 INSTALL='$INSTALL'
23235 MKDIR_P='$MKDIR_P'
23236 AWK='$AWK'
23237 test -n "\$AWK" || AWK=awk
23238 _ACEOF
23239
23240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23241 # The default lists apply if the user does not specify any file.
23242 ac_need_defaults=:
23243 while test $# != 0
23244 do
23245 case $1 in
23246 --*=?*)
23247 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23248 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23249 ac_shift=:
23250 ;;
23251 --*=)
23252 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23253 ac_optarg=
23254 ac_shift=:
23255 ;;
23256 *)
23257 ac_option=$1
23258 ac_optarg=$2
23259 ac_shift=shift
23260 ;;
23261 esac
23262
23263 case $ac_option in
23264 # Handling of the options.
23265 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23266 ac_cs_recheck=: ;;
23267 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23268 printf "%s\n" "$ac_cs_version"; exit ;;
23269 --config | --confi | --conf | --con | --co | --c )
23270 printf "%s\n" "$ac_cs_config"; exit ;;
23271 --debug | --debu | --deb | --de | --d | -d )
23272 debug=: ;;
23273 --file | --fil | --fi | --f )
23274 $ac_shift
23275 case $ac_optarg in
23276 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23277 '') as_fn_error $? "missing file argument" ;;
23278 esac
23279 as_fn_append CONFIG_FILES " '$ac_optarg'"
23280 ac_need_defaults=false;;
23281 --header | --heade | --head | --hea )
23282 $ac_shift
23283 case $ac_optarg in
23284 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23285 esac
23286 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23287 ac_need_defaults=false;;
23288 --he | --h)
23289 # Conflict between --help and --header
23290 as_fn_error $? "ambiguous option: '$1'
23291 Try '$0 --help' for more information.";;
23292 --help | --hel | -h )
23293 printf "%s\n" "$ac_cs_usage"; exit ;;
23294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23295 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23296 ac_cs_silent=: ;;
23297
23298 # This is an error.
23299 -*) as_fn_error $? "unrecognized option: '$1'
23300 Try '$0 --help' for more information." ;;
23301
23302 *) as_fn_append ac_config_targets " $1"
23303 ac_need_defaults=false ;;
23304
23305 esac
23306 shift
23307 done
23308
23309 ac_configure_extra_args=
23310
23311 if $ac_cs_silent; then
23312 exec 6>/dev/null
23313 ac_configure_extra_args="$ac_configure_extra_args --silent"
23314 fi
23315
23316 _ACEOF
23317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23318 if \$ac_cs_recheck; then
23319 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23320 shift
23321 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23322 CONFIG_SHELL='$SHELL'
23323 export CONFIG_SHELL
23324 exec "\$@"
23325 fi
23326
23327 _ACEOF
23328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23329 exec 5>>config.log
23330 {
23331 echo
23332 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23333 ## Running $as_me. ##
23334 _ASBOX
23335 printf "%s\n" "$ac_log"
23336 } >&5
23337
23338 _ACEOF
23339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23340 #
23341 # INIT-COMMANDS
23342 #
23343 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23344
23345
23346 # The HP-UX ksh and POSIX shell print the target directory to stdout
23347 # if CDPATH is set.
23348 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23349
23350 sed_quote_subst='$sed_quote_subst'
23351 double_quote_subst='$double_quote_subst'
23352 delay_variable_subst='$delay_variable_subst'
23353 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23354 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23355 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23356 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23357 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23358 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23359 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23360 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23361 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23362 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23363 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23364 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23365 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23366 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23367 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23368 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23369 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23370 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23371 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23372 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23373 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23374 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23375 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23376 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23377 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23378 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23379 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23380 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23381 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23382 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23383 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23384 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23385 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23386 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23387 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23388 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23389 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23390 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23391 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23392 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23393 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23394 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23395 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23396 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23397 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23398 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23399 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23400 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23401 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23402 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23403 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23404 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23405 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23406 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23407 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23408 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23409 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23410 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23411 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23412 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23413 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23414 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"`'
23415 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23416 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23417 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23418 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23419 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23420 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23421 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23422 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23423 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23424 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23425 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23426 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23427 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23428 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23429 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23430 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23431 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23432 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23433 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23434 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23435 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23436 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23437 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23438 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23439 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23440 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23441 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23442 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23443 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23444 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23445 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23446 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23447 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23448 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23449 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23450 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23451 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23452 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23453 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23454 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23455 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23456 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23457 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23458 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23459 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23460 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23461 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23462 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23463 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23464 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23465 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23466 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23467 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23468 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23469 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23470 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23471 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23472 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23473 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23474 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23475 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23476 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23477 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23478 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23479 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23480 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23481 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23482 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23483 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23484 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23485 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23486 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23487 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23488 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23489 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23490 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23491 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23492 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23493 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23494 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23495 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23496 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23497 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23498 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23499 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23500 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23501 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23502 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23503 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23504 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23505 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23506 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23507 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23508 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23509 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23510 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23511 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23512 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23513 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23514 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23515 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23516 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23517 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23518 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23519 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23520 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23521 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23522 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23523 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23524 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23525 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23526 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23527 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23528 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23529 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23530 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23531 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23532 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23533 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23534 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23535 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23536 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23537 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23538 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23539 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23540 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23541 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23542 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23543 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23544 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23545
23546 LTCC='$LTCC'
23547 LTCFLAGS='$LTCFLAGS'
23548 compiler='$compiler_DEFAULT'
23549
23550 # A function that is used when there is no print builtin or printf.
23551 func_fallback_echo ()
23552 {
23553 eval 'cat <<_LTECHO_EOF
23554 \$1
23555 _LTECHO_EOF'
23556 }
23557
23558 # Quote evaled strings.
23559 for var in AS \
23560 DLLTOOL \
23561 OBJDUMP \
23562 SHELL \
23563 ECHO \
23564 PATH_SEPARATOR \
23565 SED \
23566 GREP \
23567 EGREP \
23568 FGREP \
23569 LD \
23570 NM \
23571 LN_S \
23572 lt_SP2NL \
23573 lt_NL2SP \
23574 reload_flag \
23575 FILECMD \
23576 deplibs_check_method \
23577 file_magic_cmd \
23578 file_magic_glob \
23579 want_nocaseglob \
23580 sharedlib_from_linklib_cmd \
23581 AR \
23582 archiver_list_spec \
23583 STRIP \
23584 RANLIB \
23585 CC \
23586 CFLAGS \
23587 compiler \
23588 lt_cv_sys_global_symbol_pipe \
23589 lt_cv_sys_global_symbol_to_cdecl \
23590 lt_cv_sys_global_symbol_to_import \
23591 lt_cv_sys_global_symbol_to_c_name_address \
23592 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23593 lt_cv_nm_interface \
23594 nm_file_list_spec \
23595 lt_cv_truncate_bin \
23596 lt_prog_compiler_no_builtin_flag \
23597 lt_prog_compiler_pic \
23598 lt_prog_compiler_wl \
23599 lt_prog_compiler_static \
23600 lt_cv_prog_compiler_c_o \
23601 need_locks \
23602 MANIFEST_TOOL \
23603 DSYMUTIL \
23604 NMEDIT \
23605 LIPO \
23606 OTOOL \
23607 OTOOL64 \
23608 shrext_cmds \
23609 export_dynamic_flag_spec \
23610 whole_archive_flag_spec \
23611 compiler_needs_object \
23612 with_gnu_ld \
23613 allow_undefined_flag \
23614 no_undefined_flag \
23615 hardcode_libdir_flag_spec \
23616 hardcode_libdir_separator \
23617 exclude_expsyms \
23618 include_expsyms \
23619 file_list_spec \
23620 variables_saved_for_relink \
23621 libname_spec \
23622 library_names_spec \
23623 soname_spec \
23624 install_override_mode \
23625 finish_eval \
23626 old_striplib \
23627 striplib \
23628 compiler_lib_search_dirs \
23629 predep_objects \
23630 postdep_objects \
23631 predeps \
23632 postdeps \
23633 compiler_lib_search_path \
23634 LD_CXX \
23635 reload_flag_CXX \
23636 compiler_CXX \
23637 lt_prog_compiler_no_builtin_flag_CXX \
23638 lt_prog_compiler_pic_CXX \
23639 lt_prog_compiler_wl_CXX \
23640 lt_prog_compiler_static_CXX \
23641 lt_cv_prog_compiler_c_o_CXX \
23642 export_dynamic_flag_spec_CXX \
23643 whole_archive_flag_spec_CXX \
23644 compiler_needs_object_CXX \
23645 with_gnu_ld_CXX \
23646 allow_undefined_flag_CXX \
23647 no_undefined_flag_CXX \
23648 hardcode_libdir_flag_spec_CXX \
23649 hardcode_libdir_separator_CXX \
23650 exclude_expsyms_CXX \
23651 include_expsyms_CXX \
23652 file_list_spec_CXX \
23653 compiler_lib_search_dirs_CXX \
23654 predep_objects_CXX \
23655 postdep_objects_CXX \
23656 predeps_CXX \
23657 postdeps_CXX \
23658 compiler_lib_search_path_CXX; do
23659 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23660 *[\\\\\\\`\\"\\\$]*)
23661 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23662 ;;
23663 *)
23664 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23665 ;;
23666 esac
23667 done
23668
23669 # Double-quote double-evaled strings.
23670 for var in reload_cmds \
23671 old_postinstall_cmds \
23672 old_postuninstall_cmds \
23673 old_archive_cmds \
23674 extract_expsyms_cmds \
23675 old_archive_from_new_cmds \
23676 old_archive_from_expsyms_cmds \
23677 archive_cmds \
23678 archive_expsym_cmds \
23679 module_cmds \
23680 module_expsym_cmds \
23681 export_symbols_cmds \
23682 prelink_cmds \
23683 postlink_cmds \
23684 postinstall_cmds \
23685 postuninstall_cmds \
23686 finish_cmds \
23687 sys_lib_search_path_spec \
23688 configure_time_dlsearch_path \
23689 configure_time_lt_sys_library_path \
23690 reload_cmds_CXX \
23691 old_archive_cmds_CXX \
23692 old_archive_from_new_cmds_CXX \
23693 old_archive_from_expsyms_cmds_CXX \
23694 archive_cmds_CXX \
23695 archive_expsym_cmds_CXX \
23696 module_cmds_CXX \
23697 module_expsym_cmds_CXX \
23698 export_symbols_cmds_CXX \
23699 prelink_cmds_CXX \
23700 postlink_cmds_CXX; do
23701 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23702 *[\\\\\\\`\\"\\\$]*)
23703 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23704 ;;
23705 *)
23706 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23707 ;;
23708 esac
23709 done
23710
23711 ac_aux_dir='$ac_aux_dir'
23712
23713 # See if we are running on zsh, and set the options that allow our
23714 # commands through without removal of \ escapes INIT.
23715 if test -n "\${ZSH_VERSION+set}"; then
23716 setopt NO_GLOB_SUBST
23717 fi
23718
23719
23720 PACKAGE='$PACKAGE'
23721 VERSION='$VERSION'
23722 RM='$RM'
23723 ofile='$ofile'
23724
23725
23726
23727
23728
23729
23730 _ACEOF
23731
23732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23733
23734 # Handling of arguments.
23735 for ac_config_target in $ac_config_targets
23736 do
23737 case $ac_config_target in
23738 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23739 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23740 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23741 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23742 "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
23743 "inc/libqxp/Makefile") CONFIG_FILES="$CONFIG_FILES inc/libqxp/Makefile" ;;
23744 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23745 "src/conv/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/Makefile" ;;
23746 "src/fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES src/fuzz/Makefile" ;;
23747 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
23748 "src/lib/libqxp.rc") CONFIG_FILES="$CONFIG_FILES src/lib/libqxp.rc" ;;
23749 "src/conv/raw/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/raw/Makefile" ;;
23750 "src/conv/raw/qxp2raw.rc") CONFIG_FILES="$CONFIG_FILES src/conv/raw/qxp2raw.rc" ;;
23751 "src/conv/svg/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/svg/Makefile" ;;
23752 "src/conv/svg/qxp2svg.rc") CONFIG_FILES="$CONFIG_FILES src/conv/svg/qxp2svg.rc" ;;
23753 "src/conv/text/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/text/Makefile" ;;
23754 "src/conv/text/qxp2text.rc") CONFIG_FILES="$CONFIG_FILES src/conv/text/qxp2text.rc" ;;
23755 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
23756 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
23757 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
23758 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23759 "docs/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Makefile" ;;
23760 "libqxp-$QXP_MAJOR_VERSION.$QXP_MINOR_VERSION.pc") CONFIG_FILES="$CONFIG_FILES libqxp-$QXP_MAJOR_VERSION.$QXP_MINOR_VERSION.pc:libqxp.pc.in" ;;
23761
23762 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
23763 esac
23764 done
23765
23766
23767 # If the user did not use the arguments to specify the items to instantiate,
23768 # then the envvar interface is used. Set only those that are not.
23769 # We use the long form for the default assignment because of an extremely
23770 # bizarre bug on SunOS 4.1.3.
23771 if $ac_need_defaults; then
23772 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
23773 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
23774 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
23775 fi
23776
23777 # Have a temporary directory for convenience. Make it in the build tree
23778 # simply because there is no reason against having it here, and in addition,
23779 # creating and moving files from /tmp can sometimes cause problems.
23780 # Hook for its removal unless debugging.
23781 # Note that there is a small window in which the directory will not be cleaned:
23782 # after its creation but before its name has been assigned to '$tmp'.
23783 $debug ||
23784 {
23785 tmp= ac_tmp=
23786 trap 'exit_status=$?
23787 : "${ac_tmp:=$tmp}"
23788 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23789 ' 0
23790 trap 'as_fn_exit 1' 1 2 13 15
23791 }
23792 # Create a (secure) tmp directory for tmp files.
23793
23794 {
23795 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23796 test -d "$tmp"
23797 } ||
23798 {
23799 tmp=./conf$$-$RANDOM
23800 (umask 077 && mkdir "$tmp")
23801 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23802 ac_tmp=$tmp
23803
23804 # Set up the scripts for CONFIG_FILES section.
23805 # No need to generate them if there are no CONFIG_FILES.
23806 # This happens for instance with './config.status config.h'.
23807 if test -n "$CONFIG_FILES"; then
23808
23809
23810 ac_cr=`echo X | tr X '\015'`
23811 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23812 # But we know of no other shell where ac_cr would be empty at this
23813 # point, so we can use a bashism as a fallback.
23814 if test "x$ac_cr" = x; then
23815 eval ac_cr=\$\'\\r\'
23816 fi
23817 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23818 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23819 ac_cs_awk_cr='\\r'
23820 else
23821 ac_cs_awk_cr=$ac_cr
23822 fi
23823
23824 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23825 _ACEOF
23826
23827
23828 {
23829 echo "cat >conf$$subs.awk <<_ACEOF" &&
23830 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23831 echo "_ACEOF"
23832 } >conf$$subs.sh ||
23833 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23834 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23835 ac_delim='%!_!# '
23836 for ac_last_try in false false false false false :; do
23837 . ./conf$$subs.sh ||
23838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23839
23840 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23841 if test $ac_delim_n = $ac_delim_num; then
23842 break
23843 elif $ac_last_try; then
23844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23845 else
23846 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23847 fi
23848 done
23849 rm -f conf$$subs.sh
23850
23851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23852 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23853 _ACEOF
23854 sed -n '
23855 h
23856 s/^/S["/; s/!.*/"]=/
23857 p
23858 g
23859 s/^[^!]*!//
23860 :repl
23861 t repl
23862 s/'"$ac_delim"'$//
23863 t delim
23864 :nl
23865 h
23866 s/\(.\{148\}\)..*/\1/
23867 t more1
23868 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23869 p
23870 n
23871 b repl
23872 :more1
23873 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23874 p
23875 g
23876 s/.\{148\}//
23877 t nl
23878 :delim
23879 h
23880 s/\(.\{148\}\)..*/\1/
23881 t more2
23882 s/["\\]/\\&/g; s/^/"/; s/$/"/
23883 p
23884 b
23885 :more2
23886 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23887 p
23888 g
23889 s/.\{148\}//
23890 t delim
23891 ' <conf$$subs.awk | sed '
23892 /^[^""]/{
23893 N
23894 s/\n//
23895 }
23896 ' >>$CONFIG_STATUS || ac_write_fail=1
23897 rm -f conf$$subs.awk
23898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23899 _ACAWK
23900 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23901 for (key in S) S_is_set[key] = 1
23902 FS = ""
23903
23904 }
23905 {
23906 line = $ 0
23907 nfields = split(line, field, "@")
23908 substed = 0
23909 len = length(field[1])
23910 for (i = 2; i < nfields; i++) {
23911 key = field[i]
23912 keylen = length(key)
23913 if (S_is_set[key]) {
23914 value = S[key]
23915 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23916 len += length(value) + length(field[++i])
23917 substed = 1
23918 } else
23919 len += 1 + keylen
23920 }
23921
23922 print line
23923 }
23924
23925 _ACAWK
23926 _ACEOF
23927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23928 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23929 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23930 else
23931 cat
23932 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23933 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23934 _ACEOF
23935
23936 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23937 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23938 # trailing colons and then remove the whole line if VPATH becomes empty
23939 # (actually we leave an empty line to preserve line numbers).
23940 if test "x$srcdir" = x.; then
23941 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23942 h
23943 s///
23944 s/^/:/
23945 s/[ ]*$/:/
23946 s/:\$(srcdir):/:/g
23947 s/:\${srcdir}:/:/g
23948 s/:@srcdir@:/:/g
23949 s/^:*//
23950 s/:*$//
23951 x
23952 s/\(=[ ]*\).*/\1/
23953 G
23954 s/\n//
23955 s/^[^=]*=[ ]*$//
23956 }'
23957 fi
23958
23959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23960 fi # test -n "$CONFIG_FILES"
23961
23962 # Set up the scripts for CONFIG_HEADERS section.
23963 # No need to generate them if there are no CONFIG_HEADERS.
23964 # This happens for instance with './config.status Makefile'.
23965 if test -n "$CONFIG_HEADERS"; then
23966 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23967 BEGIN {
23968 _ACEOF
23969
23970 # Transform confdefs.h into an awk script 'defines.awk', embedded as
23971 # here-document in config.status, that substitutes the proper values into
23972 # config.h.in to produce config.h.
23973
23974 # Create a delimiter string that does not exist in confdefs.h, to ease
23975 # handling of long lines.
23976 ac_delim='%!_!# '
23977 for ac_last_try in false false :; do
23978 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23979 if test -z "$ac_tt"; then
23980 break
23981 elif $ac_last_try; then
23982 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23983 else
23984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23985 fi
23986 done
23987
23988 # For the awk script, D is an array of macro values keyed by name,
23989 # likewise P contains macro parameters if any. Preserve backslash
23990 # newline sequences.
23991
23992 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23993 sed -n '
23994 s/.\{148\}/&'"$ac_delim"'/g
23995 t rset
23996 :rset
23997 s/^[ ]*#[ ]*define[ ][ ]*/ /
23998 t def
23999 d
24000 :def
24001 s/\\$//
24002 t bsnl
24003 s/["\\]/\\&/g
24004 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24005 D["\1"]=" \3"/p
24006 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24007 d
24008 :bsnl
24009 s/["\\]/\\&/g
24010 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24011 D["\1"]=" \3\\\\\\n"\\/p
24012 t cont
24013 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24014 t cont
24015 d
24016 :cont
24017 n
24018 s/.\{148\}/&'"$ac_delim"'/g
24019 t clear
24020 :clear
24021 s/\\$//
24022 t bsnlc
24023 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24024 d
24025 :bsnlc
24026 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24027 b cont
24028 ' <confdefs.h | sed '
24029 s/'"$ac_delim"'/"\\\
24030 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24031
24032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24033 for (key in D) D_is_set[key] = 1
24034 FS = ""
24035 }
24036 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24037 line = \$ 0
24038 split(line, arg, " ")
24039 if (arg[1] == "#") {
24040 defundef = arg[2]
24041 mac1 = arg[3]
24042 } else {
24043 defundef = substr(arg[1], 2)
24044 mac1 = arg[2]
24045 }
24046 split(mac1, mac2, "(") #)
24047 macro = mac2[1]
24048 prefix = substr(line, 1, index(line, defundef) - 1)
24049 if (D_is_set[macro]) {
24050 # Preserve the white space surrounding the "#".
24051 print prefix "define", macro P[macro] D[macro]
24052 next
24053 } else {
24054 # Replace #undef with comments. This is necessary, for example,
24055 # in the case of _POSIX_SOURCE, which is predefined and required
24056 # on some systems where configure will not decide to define it.
24057 if (defundef == "undef") {
24058 print "/*", prefix defundef, macro, "*/"
24059 next
24060 }
24061 }
24062 }
24063 { print }
24064 _ACAWK
24065 _ACEOF
24066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24067 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24068 fi # test -n "$CONFIG_HEADERS"
24069
24070
24071 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24072 shift
24073 for ac_tag
24074 do
24075 case $ac_tag in
24076 :[FHLC]) ac_mode=$ac_tag; continue;;
24077 esac
24078 case $ac_mode$ac_tag in
24079 :[FHL]*:*);;
24080 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
24081 :[FH]-) ac_tag=-:-;;
24082 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24083 esac
24084 ac_save_IFS=$IFS
24085 IFS=:
24086 set x $ac_tag
24087 IFS=$ac_save_IFS
24088 shift
24089 ac_file=$1
24090 shift
24091
24092 case $ac_mode in
24093 :L) ac_source=$1;;
24094 :[FH])
24095 ac_file_inputs=
24096 for ac_f
24097 do
24098 case $ac_f in
24099 -) ac_f="$ac_tmp/stdin";;
24100 *) # Look for the file first in the build tree, then in the source tree
24101 # (if the path is not absolute). The absolute path cannot be DOS-style,
24102 # because $ac_f cannot contain ':'.
24103 test -f "$ac_f" ||
24104 case $ac_f in
24105 [\\/$]*) false;;
24106 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24107 esac ||
24108 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
24109 esac
24110 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24111 as_fn_append ac_file_inputs " '$ac_f'"
24112 done
24113
24114 # Let's still pretend it is 'configure' which instantiates (i.e., don't
24115 # use $as_me), people would be surprised to read:
24116 # /* config.h. Generated by config.status. */
24117 configure_input='Generated from '`
24118 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24119 `' by configure.'
24120 if test x"$ac_file" != x-; then
24121 configure_input="$ac_file. $configure_input"
24122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24123 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24124 fi
24125 # Neutralize special characters interpreted by sed in replacement strings.
24126 case $configure_input in #(
24127 *\&* | *\|* | *\\* )
24128 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24129 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24130 *) ac_sed_conf_input=$configure_input;;
24131 esac
24132
24133 case $ac_tag in
24134 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24136 esac
24137 ;;
24138 esac
24139
24140 ac_dir=`$as_dirname -- "$ac_file" ||
24141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24142 X"$ac_file" : 'X\(//\)[^/]' \| \
24143 X"$ac_file" : 'X\(//\)$' \| \
24144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24145 printf "%s\n" X"$ac_file" |
24146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24147 s//\1/
24148 q
24149 }
24150 /^X\(\/\/\)[^/].*/{
24151 s//\1/
24152 q
24153 }
24154 /^X\(\/\/\)$/{
24155 s//\1/
24156 q
24157 }
24158 /^X\(\/\).*/{
24159 s//\1/
24160 q
24161 }
24162 s/.*/./; q'`
24163 as_dir="$ac_dir"; as_fn_mkdir_p
24164 ac_builddir=.
24165
24166 case "$ac_dir" in
24167 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24168 *)
24169 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24170 # A ".." for each directory in $ac_dir_suffix.
24171 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24172 case $ac_top_builddir_sub in
24173 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24174 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24175 esac ;;
24176 esac
24177 ac_abs_top_builddir=$ac_pwd
24178 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24179 # for backward compatibility:
24180 ac_top_builddir=$ac_top_build_prefix
24181
24182 case $srcdir in
24183 .) # We are building in place.
24184 ac_srcdir=.
24185 ac_top_srcdir=$ac_top_builddir_sub
24186 ac_abs_top_srcdir=$ac_pwd ;;
24187 [\\/]* | ?:[\\/]* ) # Absolute name.
24188 ac_srcdir=$srcdir$ac_dir_suffix;
24189 ac_top_srcdir=$srcdir
24190 ac_abs_top_srcdir=$srcdir ;;
24191 *) # Relative name.
24192 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24193 ac_top_srcdir=$ac_top_build_prefix$srcdir
24194 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24195 esac
24196 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24197
24198
24199 case $ac_mode in
24200 :F)
24201 #
24202 # CONFIG_FILE
24203 #
24204
24205 case $INSTALL in
24206 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24207 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24208 esac
24209 ac_MKDIR_P=$MKDIR_P
24210 case $MKDIR_P in
24211 [\\/$]* | ?:[\\/]* ) ;;
24212 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24213 esac
24214 _ACEOF
24215
24216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24217 # If the template does not know about datarootdir, expand it.
24218 # FIXME: This hack should be removed a few years after 2.60.
24219 ac_datarootdir_hack=; ac_datarootdir_seen=
24220 ac_sed_dataroot='
24221 /datarootdir/ {
24222 p
24223 q
24224 }
24225 /@datadir@/p
24226 /@docdir@/p
24227 /@infodir@/p
24228 /@localedir@/p
24229 /@mandir@/p'
24230 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24231 *datarootdir*) ac_datarootdir_seen=yes;;
24232 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24234 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24235 _ACEOF
24236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24237 ac_datarootdir_hack='
24238 s&@datadir@&$datadir&g
24239 s&@docdir@&$docdir&g
24240 s&@infodir@&$infodir&g
24241 s&@localedir@&$localedir&g
24242 s&@mandir@&$mandir&g
24243 s&\\\${datarootdir}&$datarootdir&g' ;;
24244 esac
24245 _ACEOF
24246
24247 # Neutralize VPATH when '$srcdir' = '.'.
24248 # Shell code in configure.ac might set extrasub.
24249 # FIXME: do we really want to maintain this feature?
24250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24251 ac_sed_extra="$ac_vpsub
24252 $extrasub
24253 _ACEOF
24254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24255 :t
24256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24257 s|@configure_input@|$ac_sed_conf_input|;t t
24258 s&@top_builddir@&$ac_top_builddir_sub&;t t
24259 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24260 s&@srcdir@&$ac_srcdir&;t t
24261 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24262 s&@top_srcdir@&$ac_top_srcdir&;t t
24263 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24264 s&@builddir@&$ac_builddir&;t t
24265 s&@abs_builddir@&$ac_abs_builddir&;t t
24266 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24267 s&@INSTALL@&$ac_INSTALL&;t t
24268 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24269 $ac_datarootdir_hack
24270 "
24271 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24272 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24273
24274 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24275 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24276 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24277 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24279 which seems to be undefined. Please make sure it is defined" >&5
24280 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24281 which seems to be undefined. Please make sure it is defined" >&2;}
24282
24283 rm -f "$ac_tmp/stdin"
24284 case $ac_file in
24285 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24286 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24287 esac \
24288 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24289 ;;
24290 :H)
24291 #
24292 # CONFIG_HEADER
24293 #
24294 if test x"$ac_file" != x-; then
24295 {
24296 printf "%s\n" "/* $configure_input */" >&1 \
24297 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24298 } >"$ac_tmp/config.h" \
24299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24300 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24302 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24303 else
24304 rm -f "$ac_file"
24305 mv "$ac_tmp/config.h" "$ac_file" \
24306 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24307 fi
24308 else
24309 printf "%s\n" "/* $configure_input */" >&1 \
24310 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24311 || as_fn_error $? "could not create -" "$LINENO" 5
24312 fi
24313 # Compute "$ac_file"'s index in $config_headers.
24314 _am_arg="$ac_file"
24315 _am_stamp_count=1
24316 for _am_header in $config_headers :; do
24317 case $_am_header in
24318 $_am_arg | $_am_arg:* )
24319 break ;;
24320 * )
24321 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24322 esac
24323 done
24324 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24325 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24326 X"$_am_arg" : 'X\(//\)[^/]' \| \
24327 X"$_am_arg" : 'X\(//\)$' \| \
24328 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24329 printf "%s\n" X"$_am_arg" |
24330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24331 s//\1/
24332 q
24333 }
24334 /^X\(\/\/\)[^/].*/{
24335 s//\1/
24336 q
24337 }
24338 /^X\(\/\/\)$/{
24339 s//\1/
24340 q
24341 }
24342 /^X\(\/\).*/{
24343 s//\1/
24344 q
24345 }
24346 s/.*/./; q'`/stamp-h$_am_stamp_count
24347 ;;
24348
24349 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24350 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24351 ;;
24352 esac
24353
24354
24355 case $ac_file$ac_mode in
24356 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24357 # Older Autoconf quotes --file arguments for eval, but not when files
24358 # are listed without --file. Let's play safe and only enable the eval
24359 # if we detect the quoting.
24360 # TODO: see whether this extra hack can be removed once we start
24361 # requiring Autoconf 2.70 or later.
24362 case $CONFIG_FILES in #(
24363 *\'*) :
24364 eval set x "$CONFIG_FILES" ;; #(
24365 *) :
24366 set x $CONFIG_FILES ;; #(
24367 *) :
24368 ;;
24369 esac
24370 shift
24371 # Used to flag and report bootstrapping failures.
24372 am_rc=0
24373 for am_mf
24374 do
24375 # Strip MF so we end up with the name of the file.
24376 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24377 # Check whether this is an Automake generated Makefile which includes
24378 # dependency-tracking related rules and includes.
24379 # Grep'ing the whole file directly is not great: AIX grep has a line
24380 # limit of 2048, but all sed's we know have understand at least 4000.
24381 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24382 || continue
24383 am_dirpart=`$as_dirname -- "$am_mf" ||
24384 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24385 X"$am_mf" : 'X\(//\)[^/]' \| \
24386 X"$am_mf" : 'X\(//\)$' \| \
24387 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24388 printf "%s\n" X"$am_mf" |
24389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24390 s//\1/
24391 q
24392 }
24393 /^X\(\/\/\)[^/].*/{
24394 s//\1/
24395 q
24396 }
24397 /^X\(\/\/\)$/{
24398 s//\1/
24399 q
24400 }
24401 /^X\(\/\).*/{
24402 s//\1/
24403 q
24404 }
24405 s/.*/./; q'`
24406 am_filepart=`$as_basename -- "$am_mf" ||
24407 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24408 X"$am_mf" : 'X\(//\)$' \| \
24409 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24410 printf "%s\n" X/"$am_mf" |
24411 sed '/^.*\/\([^/][^/]*\)\/*$/{
24412 s//\1/
24413 q
24414 }
24415 /^X\/\(\/\/\)$/{
24416 s//\1/
24417 q
24418 }
24419 /^X\/\(\/\).*/{
24420 s//\1/
24421 q
24422 }
24423 s/.*/./; q'`
24424 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24425 && sed -e '/# am--include-marker/d' "$am_filepart" \
24426 | $MAKE -f - am--depfiles" >&5
24427 (cd "$am_dirpart" \
24428 && sed -e '/# am--include-marker/d' "$am_filepart" \
24429 | $MAKE -f - am--depfiles) >&5 2>&5
24430 ac_status=$?
24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); } || am_rc=$?
24433 done
24434 if test $am_rc -ne 0; then
24435 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24436 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24437 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24438 for automatic dependency tracking. If GNU make was not used, consider
24439 re-running the configure script with MAKE=\"gmake\" (or whatever is
24440 necessary). You can also try re-running configure with the
24441 '--disable-dependency-tracking' option to at least be able to build
24442 the package (albeit without support for automatic dependency tracking).
24443 See 'config.log' for more details" "$LINENO" 5; }
24444 fi
24445 { am_dirpart=; unset am_dirpart;}
24446 { am_filepart=; unset am_filepart;}
24447 { am_mf=; unset am_mf;}
24448 { am_rc=; unset am_rc;}
24449 rm -f conftest-deps.mk
24450 }
24451 ;;
24452 "libtool":C)
24453
24454 # See if we are running on zsh, and set the options that allow our
24455 # commands through without removal of \ escapes.
24456 if test -n "${ZSH_VERSION+set}"; then
24457 setopt NO_GLOB_SUBST
24458 fi
24459
24460 cfgfile=${ofile}T
24461 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24462 $RM "$cfgfile"
24463
24464 cat <<_LT_EOF >> "$cfgfile"
24465 #! $SHELL
24466 # Generated automatically by $as_me ($PACKAGE) $VERSION
24467 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24468
24469 # Provide generalized library-building support services.
24470 # Written by Gordon Matzigkeit, 1996
24471
24472 # Copyright (C) 2024 Free Software Foundation, Inc.
24473 # This is free software; see the source for copying conditions. There is NO
24474 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24475
24476 # GNU Libtool is free software; you can redistribute it and/or modify
24477 # it under the terms of the GNU General Public License as published by
24478 # the Free Software Foundation; either version 2 of the License, or
24479 # (at your option) any later version.
24480 #
24481 # As a special exception to the GNU General Public License, if you
24482 # distribute this file as part of a program or library that is built
24483 # using GNU Libtool, you may include this file under the same
24484 # distribution terms that you use for the rest of that program.
24485 #
24486 # GNU Libtool is distributed in the hope that it will be useful, but
24487 # WITHOUT ANY WARRANTY; without even the implied warranty of
24488 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24489 # GNU General Public License for more details.
24490 #
24491 # You should have received a copy of the GNU General Public License
24492 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24493
24494
24495 # The names of the tagged configurations supported by this script.
24496 available_tags='CXX '
24497
24498 # Configured defaults for sys_lib_dlsearch_path munging.
24499 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24500
24501 # ### BEGIN LIBTOOL CONFIG
24502
24503 # Which release of libtool.m4 was used?
24504 macro_version=$macro_version
24505 macro_revision=$macro_revision
24506
24507 # Assembler program.
24508 AS=$lt_AS
24509
24510 # DLL creation program.
24511 DLLTOOL=$lt_DLLTOOL
24512
24513 # Object dumper program.
24514 OBJDUMP=$lt_OBJDUMP
24515
24516 # Whether or not to build static libraries.
24517 build_old_libs=$enable_static
24518
24519 # What type of objects to build.
24520 pic_mode=$pic_mode
24521
24522 # Whether or not to build shared libraries.
24523 build_libtool_libs=$enable_shared
24524
24525 # Whether or not to optimize for fast installation.
24526 fast_install=$enable_fast_install
24527
24528 # Shared archive member basename,for filename based shared library versioning on AIX.
24529 shared_archive_member_spec=$shared_archive_member_spec
24530
24531 # Shell to use when invoking shell scripts.
24532 SHELL=$lt_SHELL
24533
24534 # An echo program that protects backslashes.
24535 ECHO=$lt_ECHO
24536
24537 # The PATH separator for the build system.
24538 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24539
24540 # The host system.
24541 host_alias=$host_alias
24542 host=$host
24543 host_os=$host_os
24544
24545 # The build system.
24546 build_alias=$build_alias
24547 build=$build
24548 build_os=$build_os
24549
24550 # A sed program that does not truncate output.
24551 SED=$lt_SED
24552
24553 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24554 Xsed="\$SED -e 1s/^X//"
24555
24556 # A grep program that handles long lines.
24557 GREP=$lt_GREP
24558
24559 # An ERE matcher.
24560 EGREP=$lt_EGREP
24561
24562 # A literal string matcher.
24563 FGREP=$lt_FGREP
24564
24565 # A BSD- or MS-compatible name lister.
24566 NM=$lt_NM
24567
24568 # Whether we need soft or hard links.
24569 LN_S=$lt_LN_S
24570
24571 # What is the maximum length of a command?
24572 max_cmd_len=$max_cmd_len
24573
24574 # Object file suffix (normally "o").
24575 objext=$ac_objext
24576
24577 # Executable file suffix (normally "").
24578 exeext=$exeext
24579
24580 # whether the shell understands "unset".
24581 lt_unset=$lt_unset
24582
24583 # turn spaces into newlines.
24584 SP2NL=$lt_lt_SP2NL
24585
24586 # turn newlines into spaces.
24587 NL2SP=$lt_lt_NL2SP
24588
24589 # convert \$build file names to \$host format.
24590 to_host_file_cmd=$lt_cv_to_host_file_cmd
24591
24592 # convert \$build files to toolchain format.
24593 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24594
24595 # A file(cmd) program that detects file types.
24596 FILECMD=$lt_FILECMD
24597
24598 # Method to check whether dependent libraries are shared objects.
24599 deplibs_check_method=$lt_deplibs_check_method
24600
24601 # Command to use when deplibs_check_method = "file_magic".
24602 file_magic_cmd=$lt_file_magic_cmd
24603
24604 # How to find potential files when deplibs_check_method = "file_magic".
24605 file_magic_glob=$lt_file_magic_glob
24606
24607 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24608 want_nocaseglob=$lt_want_nocaseglob
24609
24610 # Command to associate shared and link libraries.
24611 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24612
24613 # The archiver.
24614 AR=$lt_AR
24615
24616 # Flags to create an archive (by configure).
24617 lt_ar_flags=$lt_ar_flags
24618
24619 # Flags to create an archive.
24620 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
24621
24622 # How to feed a file listing to the archiver.
24623 archiver_list_spec=$lt_archiver_list_spec
24624
24625 # A symbol stripping program.
24626 STRIP=$lt_STRIP
24627
24628 # Commands used to install an old-style archive.
24629 RANLIB=$lt_RANLIB
24630 old_postinstall_cmds=$lt_old_postinstall_cmds
24631 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24632
24633 # Whether to use a lock for old archive extraction.
24634 lock_old_archive_extraction=$lock_old_archive_extraction
24635
24636 # A C compiler.
24637 LTCC=$lt_CC
24638
24639 # LTCC compiler flags.
24640 LTCFLAGS=$lt_CFLAGS
24641
24642 # Take the output of nm and produce a listing of raw symbols and C names.
24643 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24644
24645 # Transform the output of nm in a proper C declaration.
24646 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24647
24648 # Transform the output of nm into a list of symbols to manually relocate.
24649 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24650
24651 # Transform the output of nm in a C name address pair.
24652 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24653
24654 # Transform the output of nm in a C name address pair when lib prefix is needed.
24655 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24656
24657 # The name lister interface.
24658 nm_interface=$lt_lt_cv_nm_interface
24659
24660 # Specify filename containing input files for \$NM.
24661 nm_file_list_spec=$lt_nm_file_list_spec
24662
24663 # The root where to search for dependent libraries,and where our libraries should be installed.
24664 lt_sysroot=$lt_sysroot
24665
24666 # Command to truncate a binary pipe.
24667 lt_truncate_bin=$lt_lt_cv_truncate_bin
24668
24669 # The name of the directory that contains temporary libtool files.
24670 objdir=$objdir
24671
24672 # Used to examine libraries when file_magic_cmd begins with "file".
24673 MAGIC_CMD=$MAGIC_CMD
24674
24675 # Must we lock files when doing compilation?
24676 need_locks=$lt_need_locks
24677
24678 # Manifest tool.
24679 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24680
24681 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24682 DSYMUTIL=$lt_DSYMUTIL
24683
24684 # Tool to change global to local symbols on Mac OS X.
24685 NMEDIT=$lt_NMEDIT
24686
24687 # Tool to manipulate fat objects and archives on Mac OS X.
24688 LIPO=$lt_LIPO
24689
24690 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24691 OTOOL=$lt_OTOOL
24692
24693 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24694 OTOOL64=$lt_OTOOL64
24695
24696 # Old archive suffix (normally "a").
24697 libext=$libext
24698
24699 # Shared library suffix (normally ".so").
24700 shrext_cmds=$lt_shrext_cmds
24701
24702 # The commands to extract the exported symbol list from a shared archive.
24703 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24704
24705 # Variables whose values should be saved in libtool wrapper scripts and
24706 # restored at link time.
24707 variables_saved_for_relink=$lt_variables_saved_for_relink
24708
24709 # Do we need the "lib" prefix for modules?
24710 need_lib_prefix=$need_lib_prefix
24711
24712 # Do we need a version for libraries?
24713 need_version=$need_version
24714
24715 # Library versioning type.
24716 version_type=$version_type
24717
24718 # Shared library runtime path variable.
24719 runpath_var=$runpath_var
24720
24721 # Shared library path variable.
24722 shlibpath_var=$shlibpath_var
24723
24724 # Is shlibpath searched before the hard-coded library search path?
24725 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24726
24727 # Format of library name prefix.
24728 libname_spec=$lt_libname_spec
24729
24730 # List of archive names. First name is the real one, the rest are links.
24731 # The last name is the one that the linker finds with -lNAME
24732 library_names_spec=$lt_library_names_spec
24733
24734 # The coded name of the library, if different from the real name.
24735 soname_spec=$lt_soname_spec
24736
24737 # Permission mode override for installation of shared libraries.
24738 install_override_mode=$lt_install_override_mode
24739
24740 # Command to use after installation of a shared archive.
24741 postinstall_cmds=$lt_postinstall_cmds
24742
24743 # Command to use after uninstallation of a shared archive.
24744 postuninstall_cmds=$lt_postuninstall_cmds
24745
24746 # Commands used to finish a libtool library installation in a directory.
24747 finish_cmds=$lt_finish_cmds
24748
24749 # As "finish_cmds", except a single script fragment to be evaled but
24750 # not shown.
24751 finish_eval=$lt_finish_eval
24752
24753 # Whether we should hardcode library paths into libraries.
24754 hardcode_into_libs=$hardcode_into_libs
24755
24756 # Compile-time system search path for libraries.
24757 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24758
24759 # Detected run-time system search path for libraries.
24760 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24761
24762 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24763 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24764
24765 # Whether dlopen is supported.
24766 dlopen_support=$enable_dlopen
24767
24768 # Whether dlopen of programs is supported.
24769 dlopen_self=$enable_dlopen_self
24770
24771 # Whether dlopen of statically linked programs is supported.
24772 dlopen_self_static=$enable_dlopen_self_static
24773
24774 # Commands to strip libraries.
24775 old_striplib=$lt_old_striplib
24776 striplib=$lt_striplib
24777
24778
24779 # The linker used to build libraries.
24780 LD=$lt_LD
24781
24782 # How to create reloadable object files.
24783 reload_flag=$lt_reload_flag
24784 reload_cmds=$lt_reload_cmds
24785
24786 # Commands used to build an old-style archive.
24787 old_archive_cmds=$lt_old_archive_cmds
24788
24789 # A language specific compiler.
24790 CC=$lt_compiler
24791
24792 # Is the compiler the GNU compiler?
24793 with_gcc=$GCC
24794
24795 # Compiler flag to turn off builtin functions.
24796 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24797
24798 # Additional compiler flags for building library objects.
24799 pic_flag=$lt_lt_prog_compiler_pic
24800
24801 # How to pass a linker flag through the compiler.
24802 wl=$lt_lt_prog_compiler_wl
24803
24804 # Compiler flag to prevent dynamic linking.
24805 link_static_flag=$lt_lt_prog_compiler_static
24806
24807 # Does compiler simultaneously support -c and -o options?
24808 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24809
24810 # Whether or not to add -lc for building shared libraries.
24811 build_libtool_need_lc=$archive_cmds_need_lc
24812
24813 # Whether or not to disallow shared libs when runtime libs are static.
24814 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24815
24816 # Compiler flag to allow reflexive dlopens.
24817 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24818
24819 # Compiler flag to generate shared objects directly from archives.
24820 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24821
24822 # Whether the compiler copes with passing no objects directly.
24823 compiler_needs_object=$lt_compiler_needs_object
24824
24825 # Create an old-style archive from a shared archive.
24826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24827
24828 # Create a temporary old-style archive to link instead of a shared archive.
24829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24830
24831 # Commands used to build a shared archive.
24832 archive_cmds=$lt_archive_cmds
24833 archive_expsym_cmds=$lt_archive_expsym_cmds
24834
24835 # Commands used to build a loadable module if different from building
24836 # a shared archive.
24837 module_cmds=$lt_module_cmds
24838 module_expsym_cmds=$lt_module_expsym_cmds
24839
24840 # Whether we are building with GNU ld or not.
24841 with_gnu_ld=$lt_with_gnu_ld
24842
24843 # Flag that allows shared libraries with undefined symbols to be built.
24844 allow_undefined_flag=$lt_allow_undefined_flag
24845
24846 # Flag that enforces no undefined symbols.
24847 no_undefined_flag=$lt_no_undefined_flag
24848
24849 # Flag to hardcode \$libdir into a binary during linking.
24850 # This must work even if \$libdir does not exist
24851 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24852
24853 # Whether we need a single "-rpath" flag with a separated argument.
24854 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24855
24856 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24857 # DIR into the resulting binary.
24858 hardcode_direct=$hardcode_direct
24859
24860 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24861 # DIR into the resulting binary and the resulting library dependency is
24862 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
24863 # library is relocated.
24864 hardcode_direct_absolute=$hardcode_direct_absolute
24865
24866 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24867 # into the resulting binary.
24868 hardcode_minus_L=$hardcode_minus_L
24869
24870 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24871 # into the resulting binary.
24872 hardcode_shlibpath_var=$hardcode_shlibpath_var
24873
24874 # Set to "yes" if building a shared library automatically hardcodes DIR
24875 # into the library and all subsequent libraries and executables linked
24876 # against it.
24877 hardcode_automatic=$hardcode_automatic
24878
24879 # Set to yes if linker adds runtime paths of dependent libraries
24880 # to runtime path list.
24881 inherit_rpath=$inherit_rpath
24882
24883 # Whether libtool must link a program against all its dependency libraries.
24884 link_all_deplibs=$link_all_deplibs
24885
24886 # Set to "yes" if exported symbols are required.
24887 always_export_symbols=$always_export_symbols
24888
24889 # The commands to list exported symbols.
24890 export_symbols_cmds=$lt_export_symbols_cmds
24891
24892 # Symbols that should not be listed in the preloaded symbols.
24893 exclude_expsyms=$lt_exclude_expsyms
24894
24895 # Symbols that must always be exported.
24896 include_expsyms=$lt_include_expsyms
24897
24898 # Commands necessary for linking programs (against libraries) with templates.
24899 prelink_cmds=$lt_prelink_cmds
24900
24901 # Commands necessary for finishing linking programs.
24902 postlink_cmds=$lt_postlink_cmds
24903
24904 # Specify filename containing input files.
24905 file_list_spec=$lt_file_list_spec
24906
24907 # How to hardcode a shared library path into an executable.
24908 hardcode_action=$hardcode_action
24909
24910 # The directories searched by this compiler when creating a shared library.
24911 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24912
24913 # Dependencies to place before and after the objects being linked to
24914 # create a shared library.
24915 predep_objects=$lt_predep_objects
24916 postdep_objects=$lt_postdep_objects
24917 predeps=$lt_predeps
24918 postdeps=$lt_postdeps
24919
24920 # The library search path used internally by the compiler when linking
24921 # a shared library.
24922 compiler_lib_search_path=$lt_compiler_lib_search_path
24923
24924 # ### END LIBTOOL CONFIG
24925
24926 _LT_EOF
24927
24928 cat <<'_LT_EOF' >> "$cfgfile"
24929
24930 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24931
24932 # func_munge_path_list VARIABLE PATH
24933 # -----------------------------------
24934 # VARIABLE is name of variable containing _space_ separated list of
24935 # directories to be munged by the contents of PATH, which is string
24936 # having a format:
24937 # "DIR[:DIR]:"
24938 # string "DIR[ DIR]" will be prepended to VARIABLE
24939 # ":DIR[:DIR]"
24940 # string "DIR[ DIR]" will be appended to VARIABLE
24941 # "DIRP[:DIRP]::[DIRA:]DIRA"
24942 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24943 # "DIRA[ DIRA]" will be appended to VARIABLE
24944 # "DIR[:DIR]"
24945 # VARIABLE will be replaced by "DIR[ DIR]"
24946 func_munge_path_list ()
24947 {
24948 case x$2 in
24949 x)
24950 ;;
24951 *:)
24952 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24953 ;;
24954 x:*)
24955 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24956 ;;
24957 *::*)
24958 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24959 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24960 ;;
24961 *)
24962 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24963 ;;
24964 esac
24965 }
24966
24967
24968 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24969 func_cc_basename ()
24970 {
24971 for cc_temp in $*""; do
24972 case $cc_temp in
24973 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24974 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24975 \-*) ;;
24976 *) break;;
24977 esac
24978 done
24979 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24980 }
24981
24982
24983 # ### END FUNCTIONS SHARED WITH CONFIGURE
24984
24985 _LT_EOF
24986
24987 case $host_os in
24988 aix3*)
24989 cat <<\_LT_EOF >> "$cfgfile"
24990 # AIX sometimes has problems with the GCC collect2 program. For some
24991 # reason, if we set the COLLECT_NAMES environment variable, the problems
24992 # vanish in a puff of smoke.
24993 if test set != "${COLLECT_NAMES+set}"; then
24994 COLLECT_NAMES=
24995 export COLLECT_NAMES
24996 fi
24997 _LT_EOF
24998 ;;
24999 esac
25000
25001
25002
25003 ltmain=$ac_aux_dir/ltmain.sh
25004
25005
25006 # We use sed instead of cat because bash on DJGPP gets confused if
25007 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25008 # text mode, it properly converts lines to CR/LF. This bash problem
25009 # is reportedly fixed, but why not run on old versions too?
25010 $SED '$q' "$ltmain" >> "$cfgfile" \
25011 || (rm -f "$cfgfile"; exit 1)
25012
25013 mv -f "$cfgfile" "$ofile" ||
25014 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25015 chmod +x "$ofile"
25016
25017
25018 cat <<_LT_EOF >> "$ofile"
25019
25020 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25021
25022 # The linker used to build libraries.
25023 LD=$lt_LD_CXX
25024
25025 # How to create reloadable object files.
25026 reload_flag=$lt_reload_flag_CXX
25027 reload_cmds=$lt_reload_cmds_CXX
25028
25029 # Commands used to build an old-style archive.
25030 old_archive_cmds=$lt_old_archive_cmds_CXX
25031
25032 # A language specific compiler.
25033 CC=$lt_compiler_CXX
25034
25035 # Is the compiler the GNU compiler?
25036 with_gcc=$GCC_CXX
25037
25038 # Compiler flag to turn off builtin functions.
25039 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25040
25041 # Additional compiler flags for building library objects.
25042 pic_flag=$lt_lt_prog_compiler_pic_CXX
25043
25044 # How to pass a linker flag through the compiler.
25045 wl=$lt_lt_prog_compiler_wl_CXX
25046
25047 # Compiler flag to prevent dynamic linking.
25048 link_static_flag=$lt_lt_prog_compiler_static_CXX
25049
25050 # Does compiler simultaneously support -c and -o options?
25051 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25052
25053 # Whether or not to add -lc for building shared libraries.
25054 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25055
25056 # Whether or not to disallow shared libs when runtime libs are static.
25057 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25058
25059 # Compiler flag to allow reflexive dlopens.
25060 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25061
25062 # Compiler flag to generate shared objects directly from archives.
25063 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25064
25065 # Whether the compiler copes with passing no objects directly.
25066 compiler_needs_object=$lt_compiler_needs_object_CXX
25067
25068 # Create an old-style archive from a shared archive.
25069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25070
25071 # Create a temporary old-style archive to link instead of a shared archive.
25072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25073
25074 # Commands used to build a shared archive.
25075 archive_cmds=$lt_archive_cmds_CXX
25076 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25077
25078 # Commands used to build a loadable module if different from building
25079 # a shared archive.
25080 module_cmds=$lt_module_cmds_CXX
25081 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25082
25083 # Whether we are building with GNU ld or not.
25084 with_gnu_ld=$lt_with_gnu_ld_CXX
25085
25086 # Flag that allows shared libraries with undefined symbols to be built.
25087 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25088
25089 # Flag that enforces no undefined symbols.
25090 no_undefined_flag=$lt_no_undefined_flag_CXX
25091
25092 # Flag to hardcode \$libdir into a binary during linking.
25093 # This must work even if \$libdir does not exist
25094 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25095
25096 # Whether we need a single "-rpath" flag with a separated argument.
25097 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25098
25099 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25100 # DIR into the resulting binary.
25101 hardcode_direct=$hardcode_direct_CXX
25102
25103 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25104 # DIR into the resulting binary and the resulting library dependency is
25105 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
25106 # library is relocated.
25107 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25108
25109 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25110 # into the resulting binary.
25111 hardcode_minus_L=$hardcode_minus_L_CXX
25112
25113 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25114 # into the resulting binary.
25115 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25116
25117 # Set to "yes" if building a shared library automatically hardcodes DIR
25118 # into the library and all subsequent libraries and executables linked
25119 # against it.
25120 hardcode_automatic=$hardcode_automatic_CXX
25121
25122 # Set to yes if linker adds runtime paths of dependent libraries
25123 # to runtime path list.
25124 inherit_rpath=$inherit_rpath_CXX
25125
25126 # Whether libtool must link a program against all its dependency libraries.
25127 link_all_deplibs=$link_all_deplibs_CXX
25128
25129 # Set to "yes" if exported symbols are required.
25130 always_export_symbols=$always_export_symbols_CXX
25131
25132 # The commands to list exported symbols.
25133 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25134
25135 # Symbols that should not be listed in the preloaded symbols.
25136 exclude_expsyms=$lt_exclude_expsyms_CXX
25137
25138 # Symbols that must always be exported.
25139 include_expsyms=$lt_include_expsyms_CXX
25140
25141 # Commands necessary for linking programs (against libraries) with templates.
25142 prelink_cmds=$lt_prelink_cmds_CXX
25143
25144 # Commands necessary for finishing linking programs.
25145 postlink_cmds=$lt_postlink_cmds_CXX
25146
25147 # Specify filename containing input files.
25148 file_list_spec=$lt_file_list_spec_CXX
25149
25150 # How to hardcode a shared library path into an executable.
25151 hardcode_action=$hardcode_action_CXX
25152
25153 # The directories searched by this compiler when creating a shared library.
25154 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25155
25156 # Dependencies to place before and after the objects being linked to
25157 # create a shared library.
25158 predep_objects=$lt_predep_objects_CXX
25159 postdep_objects=$lt_postdep_objects_CXX
25160 predeps=$lt_predeps_CXX
25161 postdeps=$lt_postdeps_CXX
25162
25163 # The library search path used internally by the compiler when linking
25164 # a shared library.
25165 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25166
25167 # ### END LIBTOOL TAG CONFIG: CXX
25168 _LT_EOF
25169
25170 ;;
25171
25172 esac
25173 done # for ac_tag
25174
25175
25176 as_fn_exit 0
25177 _ACEOF
25178 ac_clean_files=$ac_clean_files_save
25179
25180 test $ac_write_fail = 0 ||
25181 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25182
25183
25184 # configure is writing to config.log, and then calls config.status.
25185 # config.status does its own redirection, appending to config.log.
25186 # Unfortunately, on DOS this fails, as config.log is still kept open
25187 # by configure, so config.status won't be able to write to it; its
25188 # output is simply discarded. So we exec the FD to /dev/null,
25189 # effectively closing config.log, so it can be properly (re)opened and
25190 # appended to by config.status. When coming back to configure, we
25191 # need to make the FD available again.
25192 if test "$no_create" != yes; then
25193 ac_cs_success=:
25194 ac_config_status_args=
25195 test "$silent" = yes &&
25196 ac_config_status_args="$ac_config_status_args --quiet"
25197 exec 5>/dev/null
25198 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25199 exec 5>>config.log
25200 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25201 # would make configure fail if this is the last instruction.
25202 $ac_cs_success || as_fn_exit 1
25203 fi
25204 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25206 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25207 fi
25208
25209
25210 # ==============================================
25211 # Display final informations about configuration
25212 # ==============================================
25213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
25214 ==============================================================================
25215 Build configuration:
25216 debug: ${enable_debug}
25217 docs: ${build_docs}
25218 fuzzers: ${enable_fuzzers}
25219 tests: ${enable_tests}
25220 tools: ${enable_tools}
25221 werror: ${enable_werror}
25222 ==============================================================================
25223 " >&5
25224 printf "%s\n" "$as_me:
25225 ==============================================================================
25226 Build configuration:
25227 debug: ${enable_debug}
25228 docs: ${build_docs}
25229 fuzzers: ${enable_fuzzers}
25230 tests: ${enable_tests}
25231 tools: ${enable_tools}
25232 werror: ${enable_werror}
25233 ==============================================================================
25234 " >&6;}
25235
25236