Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for nghttp3 1.17.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: [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 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='nghttp3'
623 PACKAGE_TARNAME='nghttp3'
624 PACKAGE_VERSION='1.17.0'
625 PACKAGE_STRING='nghttp3 1.17.0'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_subst_vars='am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 LIBOBJS
665 EXTRACFLAG
666 WARNCXXFLAGS
667 WARNCFLAGS
668 ENABLE_EXAMPLES_FALSE
669 ENABLE_EXAMPLES_TRUE
670 HAVE_CXX17
671 PKG_CONFIG_LIBDIR
672 PKG_CONFIG_PATH
673 PKG_CONFIG
674 CPP
675 am__fastdepCXX_FALSE
676 am__fastdepCXX_TRUE
677 CXXDEPMODE
678 CXXCPP
679 ac_ct_CXX
680 CXXFLAGS
681 CXX
682 DEBUGCFLAGS
683 PACKAGE_VERSION_NUM
684 LT_AGE
685 LT_REVISION
686 LT_CURRENT
687 AM_BACKSLASH
688 AM_DEFAULT_VERBOSITY
689 AM_DEFAULT_V
690 AM_V
691 CSCOPE
692 ETAGS
693 CTAGS
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__include
702 DEPDIR
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 install_sh
712 MAKEINFO
713 AUTOHEADER
714 AUTOMAKE
715 AUTOCONF
716 ACLOCAL
717 VERSION
718 PACKAGE
719 CYGPATH_W
720 am__isrc
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_os
725 target_vendor
726 target_cpu
727 target
728 LT_SYS_LIBRARY_PATH
729 OTOOL64
730 OTOOL
731 LIPO
732 NMEDIT
733 DSYMUTIL
734 MANIFEST_TOOL
735 AWK
736 RANLIB
737 STRIP
738 ac_ct_AR
739 AR
740 DLLTOOL
741 OBJDUMP
742 FILECMD
743 LN_S
744 NM
745 ac_ct_DUMPBIN
746 DUMPBIN
747 LD
748 FGREP
749 EGREP
750 GREP
751 SED
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 LIBTOOL
761 OBJEXT
762 EXEEXT
763 ac_ct_CC
764 CPPFLAGS
765 LDFLAGS
766 CFLAGS
767 CC
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 runstatedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL
807 am__quote'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 enable_shared
812 enable_static
813 with_pic
814 enable_fast_install
815 with_aix_soname
816 with_gnu_ld
817 with_sysroot
818 enable_libtool_lock
819 enable_dependency_tracking
820 enable_silent_rules
821 enable_werror
822 enable_debug
823 enable_memdebug
824 enable_asan
825 enable_lib_only
826 enable_largefile
827 '
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 LT_SYS_LIBRARY_PATH
837 CXX
838 CXXFLAGS
839 CCC
840 CXXCPP
841 CPP
842 PKG_CONFIG
843 PKG_CONFIG_PATH
844 PKG_CONFIG_LIBDIR'
845
846
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
868
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 runstatedir='${localstatedir}/run'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
895
896 ac_prev=
897 ac_dashdash=
898 for ac_option
899 do
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
903 ac_prev=
904 continue
905 fi
906
907 case $ac_option in
908 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *=) ac_optarg= ;;
910 *) ac_optarg=yes ;;
911 esac
912
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
921
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
936
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
941
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: \`$ac_useropt'"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
974
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: \`$ac_useropt'"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1010
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1015
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1045
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1119
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -runstatedir | --runstatedir | --runstatedi | --runstated \
1135 | --runstate | --runstat | --runsta | --runst | --runs \
1136 | --run | --ru | --r)
1137 ac_prev=runstatedir ;;
1138 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1139 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1140 | --run=* | --ru=* | --r=*)
1141 runstatedir=$ac_optarg ;;
1142
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1148
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1159
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1164
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1169
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1176
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1181
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1184
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1187
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: \`$ac_useropt'"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1203
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: \`$ac_useropt'"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1219
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1223
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1230
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1237
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1240 ;;
1241
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1251
1252 *)
1253 # FIXME: should be removed in autoconf 3.0.
1254 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1258 ;;
1259
1260 esac
1261 done
1262
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $? "missing argument to $ac_option"
1266 fi
1267
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1274 fi
1275
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir runstatedir
1281 do
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1296
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1303
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 as_fn_error $? "working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 as_fn_error $? "pwd does not report name of working directory"
1325
1326
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 printf "%s\n" X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\).*/{
1350 s//\1/
1351 q
1352 }
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1357 fi
1358 else
1359 ac_srcdir_defaulted=no
1360 fi
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364 fi
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures nghttp3 1.17.0 to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking ...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/nghttp3]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447 _ACEOF
1448
1449 cat <<\_ACEOF
1450
1451 Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
1456 System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 --target=TARGET configure for building compilers for TARGET [HOST]
1460 _ACEOF
1461 fi
1462
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of nghttp3 1.17.0:";;
1466 esac
1467 cat <<\_ACEOF
1468
1469 Optional Features:
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-static[=PKGS] build static libraries [default=yes]
1475 --enable-fast-install[=PKGS]
1476 optimize for fast installation [default=yes]
1477 --disable-libtool-lock avoid locking (might break parallel builds)
1478 --enable-dependency-tracking
1479 do not reject slow dependency extractors
1480 --disable-dependency-tracking
1481 speeds up one-time build
1482 --enable-silent-rules less verbose build output (undo: "make V=1")
1483 --disable-silent-rules verbose build output (undo: "make V=0")
1484 --enable-werror Turn on compile time warnings
1485 --enable-debug Turn on debug output
1486 --enable-memdebug Turn on memory allocation debug output
1487 --enable-asan Enable AddressSanitizer (ASAN)
1488 --enable-lib-only Build libnghttp3 only.
1489 --disable-largefile omit support for large files
1490
1491 Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1495 both]
1496 --with-aix-soname=aix|svr4|both
1497 shared library versioning (aka "SONAME") variant to
1498 provide on AIX, [default=aix].
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1501 compiler's sysroot if not specified).
1502
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 LT_SYS_LIBRARY_PATH
1512 User-defined run-time library search path.
1513 CXX C++ compiler command
1514 CXXFLAGS C++ compiler flags
1515 CXXCPP C++ preprocessor
1516 CPP C preprocessor
1517 PKG_CONFIG path to pkg-config utility
1518 PKG_CONFIG_PATH
1519 directories to add to pkg-config's search path
1520 PKG_CONFIG_LIBDIR
1521 path overriding pkg-config's built-in search path
1522
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1525
1526 Report bugs to <[email protected]>.
1527 _ACEOF
1528 ac_status=$?
1529 fi
1530
1531 if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" ||
1535 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536 continue
1537 ac_builddir=.
1538
1539 case "$ac_dir" in
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *)
1542 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1543 # A ".." for each directory in $ac_dir_suffix.
1544 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545 case $ac_top_builddir_sub in
1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548 esac ;;
1549 esac
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1554
1555 case $srcdir in
1556 .) # We are building in place.
1557 ac_srcdir=.
1558 ac_top_srcdir=$ac_top_builddir_sub
1559 ac_abs_top_srcdir=$ac_pwd ;;
1560 [\\/]* | ?:[\\/]* ) # Absolute name.
1561 ac_srcdir=$srcdir$ac_dir_suffix;
1562 ac_top_srcdir=$srcdir
1563 ac_abs_top_srcdir=$srcdir ;;
1564 *) # Relative name.
1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566 ac_top_srcdir=$ac_top_build_prefix$srcdir
1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568 esac
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570
1571 cd "$ac_dir" || { ac_status=$?; continue; }
1572 # Check for configure.gnu first; this name is used for a wrapper for
1573 # Metaconfig's "Configure" on case-insensitive file systems.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1585 fi
1586
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589 cat <<\_ACEOF
1590 nghttp3 configure 1.17.0
1591 generated by GNU Autoconf 2.71
1592
1593 Copyright (C) 2021 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1598 fi
1599
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1603
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext conftest.beam
1611 if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 printf "%s\n" "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext
1630 then :
1631 ac_retval=0
1632 else $as_nop
1633 printf "%s\n" "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1635
1636 ac_retval=1
1637 fi
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639 as_fn_set_status $ac_retval
1640
1641 } # ac_fn_c_try_compile
1642
1643 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644 # -------------------------------------------------------
1645 # Tests whether HEADER exists and can be compiled using the include files in
1646 # INCLUDES, setting the cache variable VAR accordingly.
1647 ac_fn_c_check_header_compile ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 printf %s "checking for $2... " >&6; }
1652 if eval test \${$3+y}
1653 then :
1654 printf %s "(cached) " >&6
1655 else $as_nop
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1658 $4
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"
1662 then :
1663 eval "$3=yes"
1664 else $as_nop
1665 eval "$3=no"
1666 fi
1667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1668 fi
1669 eval ac_res=\$$3
1670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 printf "%s\n" "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674 } # ac_fn_c_check_header_compile
1675
1676 # ac_fn_c_try_link LINENO
1677 # -----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_link ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1683 if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 printf "%s\n" "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest$ac_exeext && {
1702 test "$cross_compiling" = yes ||
1703 test -x conftest$ac_exeext
1704 }
1705 then :
1706 ac_retval=0
1707 else $as_nop
1708 printf "%s\n" "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712 fi
1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715 # interfere with the next link command; also delete a directory that is
1716 # left behind by Apple's compiler. We do this before executing the actions.
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_link
1722
1723 # ac_fn_c_check_func LINENO FUNC VAR
1724 # ----------------------------------
1725 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1726 ac_fn_c_check_func ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 printf %s "checking for $2... " >&6; }
1731 if eval test \${$3+y}
1732 then :
1733 printf %s "(cached) " >&6
1734 else $as_nop
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1739 #define $2 innocuous_$2
1740
1741 /* System header to define __stub macros and hopefully few prototypes,
1742 which can conflict with char $2 (); below. */
1743
1744 #include <limits.h>
1745 #undef $2
1746
1747 /* Override any GCC internal prototype to avoid an error.
1748 Use char because int might match the return type of a GCC
1749 builtin and then its argument prototype would still apply. */
1750 #ifdef __cplusplus
1751 extern "C"
1752 #endif
1753 char $2 ();
1754 /* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757 #if defined __stub_$2 || defined __stub___$2
1758 choke me
1759 #endif
1760
1761 int
1762 main (void)
1763 {
1764 return $2 ();
1765 ;
1766 return 0;
1767 }
1768 _ACEOF
1769 if ac_fn_c_try_link "$LINENO"
1770 then :
1771 eval "$3=yes"
1772 else $as_nop
1773 eval "$3=no"
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1776 conftest$ac_exeext conftest.$ac_ext
1777 fi
1778 eval ac_res=\$$3
1779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 printf "%s\n" "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783 } # ac_fn_c_check_func
1784
1785 # ac_fn_cxx_try_compile LINENO
1786 # ----------------------------
1787 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_cxx_try_compile ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest.beam
1792 if { { ac_try="$ac_compile"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 printf "%s\n" "$ac_try_echo"; } >&5
1799 (eval "$ac_compile") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1805 fi
1806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_cxx_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest.$ac_objext
1811 then :
1812 ac_retval=0
1813 else $as_nop
1814 printf "%s\n" "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818 fi
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1821
1822 } # ac_fn_cxx_try_compile
1823
1824 # ac_fn_cxx_try_cpp LINENO
1825 # ------------------------
1826 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_cxx_try_cpp ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_cpp conftest.$ac_ext"
1831 case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 printf "%s\n" "$ac_try_echo"; } >&5
1837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1838 ac_status=$?
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1843 fi
1844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } > conftest.i && {
1846 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1847 test ! -s conftest.err
1848 }
1849 then :
1850 ac_retval=0
1851 else $as_nop
1852 printf "%s\n" "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 ac_retval=1
1856 fi
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1859
1860 } # ac_fn_cxx_try_cpp
1861
1862 # ac_fn_cxx_try_link LINENO
1863 # -------------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_link ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1869 if { { ac_try="$ac_link"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 printf "%s\n" "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1882 fi
1883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest$ac_exeext && {
1888 test "$cross_compiling" = yes ||
1889 test -x conftest$ac_exeext
1890 }
1891 then :
1892 ac_retval=0
1893 else $as_nop
1894 printf "%s\n" "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1896
1897 ac_retval=1
1898 fi
1899 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901 # interfere with the next link command; also delete a directory that is
1902 # left behind by Apple's compiler. We do this before executing the actions.
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1906
1907 } # ac_fn_cxx_try_link
1908
1909 # ac_fn_c_try_cpp LINENO
1910 # ----------------------
1911 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_c_try_cpp ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if { { ac_try="$ac_cpp conftest.$ac_ext"
1916 case "(($ac_try" in
1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 printf "%s\n" "$ac_try_echo"; } >&5
1922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1923 ac_status=$?
1924 if test -s conftest.err; then
1925 grep -v '^ *+' conftest.err >conftest.er1
1926 cat conftest.er1 >&5
1927 mv -f conftest.er1 conftest.err
1928 fi
1929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; } > conftest.i && {
1931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1932 test ! -s conftest.err
1933 }
1934 then :
1935 ac_retval=0
1936 else $as_nop
1937 printf "%s\n" "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939
1940 ac_retval=1
1941 fi
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 as_fn_set_status $ac_retval
1944
1945 } # ac_fn_c_try_cpp
1946
1947 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1948 # -------------------------------------------
1949 # Tests whether TYPE exists after having included INCLUDES, setting cache
1950 # variable VAR accordingly.
1951 ac_fn_c_check_type ()
1952 {
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 printf %s "checking for $2... " >&6; }
1956 if eval test \${$3+y}
1957 then :
1958 printf %s "(cached) " >&6
1959 else $as_nop
1960 eval "$3=no"
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 $4
1964 int
1965 main (void)
1966 {
1967 if (sizeof ($2))
1968 return 0;
1969 ;
1970 return 0;
1971 }
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"
1974 then :
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 $4
1978 int
1979 main (void)
1980 {
1981 if (sizeof (($2)))
1982 return 0;
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"
1988 then :
1989
1990 else $as_nop
1991 eval "$3=yes"
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1996 fi
1997 eval ac_res=\$$3
1998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 printf "%s\n" "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002 } # ac_fn_c_check_type
2003
2004 # ac_fn_c_find_uintX_t LINENO BITS VAR
2005 # ------------------------------------
2006 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2007 # accordingly.
2008 ac_fn_c_find_uintX_t ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2012 printf %s "checking for uint$2_t... " >&6; }
2013 if eval test \${$3+y}
2014 then :
2015 printf %s "(cached) " >&6
2016 else $as_nop
2017 eval "$3=no"
2018 # Order is important - never check a type that is potentially smaller
2019 # than half of the expected target width.
2020 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2021 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $ac_includes_default
2025 int
2026 main (void)
2027 {
2028 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2029 test_array [0] = 0;
2030 return test_array [0];
2031
2032 ;
2033 return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"
2037 then :
2038 case $ac_type in #(
2039 uint$2_t) :
2040 eval "$3=yes" ;; #(
2041 *) :
2042 eval "$3=\$ac_type" ;;
2043 esac
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2046 if eval test \"x\$"$3"\" = x"no"
2047 then :
2048
2049 else $as_nop
2050 break
2051 fi
2052 done
2053 fi
2054 eval ac_res=\$$3
2055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 printf "%s\n" "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059 } # ac_fn_c_find_uintX_t
2060
2061 # ac_fn_c_find_intX_t LINENO BITS VAR
2062 # -----------------------------------
2063 # Finds a signed integer type with width BITS, setting cache variable VAR
2064 # accordingly.
2065 ac_fn_c_find_intX_t ()
2066 {
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2069 printf %s "checking for int$2_t... " >&6; }
2070 if eval test \${$3+y}
2071 then :
2072 printf %s "(cached) " >&6
2073 else $as_nop
2074 eval "$3=no"
2075 # Order is important - never check a type that is potentially smaller
2076 # than half of the expected target width.
2077 for ac_type in int$2_t 'int' 'long int' \
2078 'long long int' 'short int' 'signed char'; do
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 $ac_includes_default
2082 enum { N = $2 / 2 - 1 };
2083 int
2084 main (void)
2085 {
2086 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2087 test_array [0] = 0;
2088 return test_array [0];
2089
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"
2095 then :
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2098 $ac_includes_default
2099 enum { N = $2 / 2 - 1 };
2100 int
2101 main (void)
2102 {
2103 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2104 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2105 test_array [0] = 0;
2106 return test_array [0];
2107
2108 ;
2109 return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"
2113 then :
2114
2115 else $as_nop
2116 case $ac_type in #(
2117 int$2_t) :
2118 eval "$3=yes" ;; #(
2119 *) :
2120 eval "$3=\$ac_type" ;;
2121 esac
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2126 if eval test \"x\$"$3"\" = x"no"
2127 then :
2128
2129 else $as_nop
2130 break
2131 fi
2132 done
2133 fi
2134 eval ac_res=\$$3
2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 printf "%s\n" "$ac_res" >&6; }
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138
2139 } # ac_fn_c_find_intX_t
2140
2141 # ac_fn_c_try_run LINENO
2142 # ----------------------
2143 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2144 # executables *can* be run.
2145 ac_fn_c_try_run ()
2146 {
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if { { ac_try="$ac_link"
2149 case "(($ac_try" in
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2152 esac
2153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 printf "%s\n" "$ac_try_echo"; } >&5
2155 (eval "$ac_link") 2>&5
2156 ac_status=$?
2157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2158 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2159 { { case "(($ac_try" in
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2162 esac
2163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2164 printf "%s\n" "$ac_try_echo"; } >&5
2165 (eval "$ac_try") 2>&5
2166 ac_status=$?
2167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168 test $ac_status = 0; }; }
2169 then :
2170 ac_retval=0
2171 else $as_nop
2172 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2173 printf "%s\n" "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2175
2176 ac_retval=$ac_status
2177 fi
2178 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 as_fn_set_status $ac_retval
2181
2182 } # ac_fn_c_try_run
2183
2184 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2185 # ------------------------------------------------------------------
2186 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2187 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2188 ac_fn_check_decl ()
2189 {
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 as_decl_name=`echo $2|sed 's/ *(.*//'`
2192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2193 printf %s "checking whether $as_decl_name is declared... " >&6; }
2194 if eval test \${$3+y}
2195 then :
2196 printf %s "(cached) " >&6
2197 else $as_nop
2198 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2199 eval ac_save_FLAGS=\$$6
2200 as_fn_append $6 " $5"
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2203 $4
2204 int
2205 main (void)
2206 {
2207 #ifndef $as_decl_name
2208 #ifdef __cplusplus
2209 (void) $as_decl_use;
2210 #else
2211 (void) $as_decl_name;
2212 #endif
2213 #endif
2214
2215 ;
2216 return 0;
2217 }
2218 _ACEOF
2219 if ac_fn_c_try_compile "$LINENO"
2220 then :
2221 eval "$3=yes"
2222 else $as_nop
2223 eval "$3=no"
2224 fi
2225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2226 eval $6=\$ac_save_FLAGS
2227
2228 fi
2229 eval ac_res=\$$3
2230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 printf "%s\n" "$ac_res" >&6; }
2232 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2233
2234 } # ac_fn_check_decl
2235 ac_configure_args_raw=
2236 for ac_arg
2237 do
2238 case $ac_arg in
2239 *\'*)
2240 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2241 esac
2242 as_fn_append ac_configure_args_raw " '$ac_arg'"
2243 done
2244
2245 case $ac_configure_args_raw in
2246 *$as_nl*)
2247 ac_safe_unquote= ;;
2248 *)
2249 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2250 ac_unsafe_a="$ac_unsafe_z#~"
2251 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2252 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2253 esac
2254
2255 cat >config.log <<_ACEOF
2256 This file contains any messages produced by compilers while
2257 running configure, to aid debugging if configure makes a mistake.
2258
2259 It was created by nghttp3 $as_me 1.17.0, which was
2260 generated by GNU Autoconf 2.71. Invocation command line was
2261
2262 $ $0$ac_configure_args_raw
2263
2264 _ACEOF
2265 exec 5>>config.log
2266 {
2267 cat <<_ASUNAME
2268 ## --------- ##
2269 ## Platform. ##
2270 ## --------- ##
2271
2272 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2273 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2274 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2275 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2276 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2277
2278 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2279 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2280
2281 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2282 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2283 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2284 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2285 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2286 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2287 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2288
2289 _ASUNAME
2290
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
2294 IFS=$as_save_IFS
2295 case $as_dir in #(((
2296 '') as_dir=./ ;;
2297 */) ;;
2298 *) as_dir=$as_dir/ ;;
2299 esac
2300 printf "%s\n" "PATH: $as_dir"
2301 done
2302 IFS=$as_save_IFS
2303
2304 } >&5
2305
2306 cat >&5 <<_ACEOF
2307
2308
2309 ## ----------- ##
2310 ## Core tests. ##
2311 ## ----------- ##
2312
2313 _ACEOF
2314
2315
2316 # Keep a trace of the command line.
2317 # Strip out --no-create and --no-recursion so they do not pile up.
2318 # Strip out --silent because we don't want to record it for future runs.
2319 # Also quote any args containing shell meta-characters.
2320 # Make two passes to allow for proper duplicate-argument suppression.
2321 ac_configure_args=
2322 ac_configure_args0=
2323 ac_configure_args1=
2324 ac_must_keep_next=false
2325 for ac_pass in 1 2
2326 do
2327 for ac_arg
2328 do
2329 case $ac_arg in
2330 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2332 | -silent | --silent | --silen | --sile | --sil)
2333 continue ;;
2334 *\'*)
2335 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2336 esac
2337 case $ac_pass in
2338 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2339 2)
2340 as_fn_append ac_configure_args1 " '$ac_arg'"
2341 if test $ac_must_keep_next = true; then
2342 ac_must_keep_next=false # Got value, back to normal.
2343 else
2344 case $ac_arg in
2345 *=* | --config-cache | -C | -disable-* | --disable-* \
2346 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2347 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2348 | -with-* | --with-* | -without-* | --without-* | --x)
2349 case "$ac_configure_args0 " in
2350 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2351 esac
2352 ;;
2353 -* ) ac_must_keep_next=true ;;
2354 esac
2355 fi
2356 as_fn_append ac_configure_args " '$ac_arg'"
2357 ;;
2358 esac
2359 done
2360 done
2361 { ac_configure_args0=; unset ac_configure_args0;}
2362 { ac_configure_args1=; unset ac_configure_args1;}
2363
2364 # When interrupted or exit'd, cleanup temporary files, and complete
2365 # config.log. We remove comments because anyway the quotes in there
2366 # would cause problems or look ugly.
2367 # WARNING: Use '\'' to represent an apostrophe within the trap.
2368 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2369 trap 'exit_status=$?
2370 # Sanitize IFS.
2371 IFS=" "" $as_nl"
2372 # Save into config.log some information that might help in debugging.
2373 {
2374 echo
2375
2376 printf "%s\n" "## ---------------- ##
2377 ## Cache variables. ##
2378 ## ---------------- ##"
2379 echo
2380 # The following way of writing the cache mishandles newlines in values,
2381 (
2382 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2383 eval ac_val=\$$ac_var
2384 case $ac_val in #(
2385 *${as_nl}*)
2386 case $ac_var in #(
2387 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2388 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2389 esac
2390 case $ac_var in #(
2391 _ | IFS | as_nl) ;; #(
2392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2393 *) { eval $ac_var=; unset $ac_var;} ;;
2394 esac ;;
2395 esac
2396 done
2397 (set) 2>&1 |
2398 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2399 *${as_nl}ac_space=\ *)
2400 sed -n \
2401 "s/'\''/'\''\\\\'\'''\''/g;
2402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2403 ;; #(
2404 *)
2405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2406 ;;
2407 esac |
2408 sort
2409 )
2410 echo
2411
2412 printf "%s\n" "## ----------------- ##
2413 ## Output variables. ##
2414 ## ----------------- ##"
2415 echo
2416 for ac_var in $ac_subst_vars
2417 do
2418 eval ac_val=\$$ac_var
2419 case $ac_val in
2420 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421 esac
2422 printf "%s\n" "$ac_var='\''$ac_val'\''"
2423 done | sort
2424 echo
2425
2426 if test -n "$ac_subst_files"; then
2427 printf "%s\n" "## ------------------- ##
2428 ## File substitutions. ##
2429 ## ------------------- ##"
2430 echo
2431 for ac_var in $ac_subst_files
2432 do
2433 eval ac_val=\$$ac_var
2434 case $ac_val in
2435 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 esac
2437 printf "%s\n" "$ac_var='\''$ac_val'\''"
2438 done | sort
2439 echo
2440 fi
2441
2442 if test -s confdefs.h; then
2443 printf "%s\n" "## ----------- ##
2444 ## confdefs.h. ##
2445 ## ----------- ##"
2446 echo
2447 cat confdefs.h
2448 echo
2449 fi
2450 test "$ac_signal" != 0 &&
2451 printf "%s\n" "$as_me: caught signal $ac_signal"
2452 printf "%s\n" "$as_me: exit $exit_status"
2453 } >&5
2454 rm -f core *.core core.conftest.* &&
2455 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2456 exit $exit_status
2457 ' 0
2458 for ac_signal in 1 2 13 15; do
2459 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2460 done
2461 ac_signal=0
2462
2463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2464 rm -f -r conftest* confdefs.h
2465
2466 printf "%s\n" "/* confdefs.h */" > confdefs.h
2467
2468 # Predefined preprocessor variables.
2469
2470 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2471
2472 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2473
2474 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2475
2476 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2477
2478 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2479
2480 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2481
2482
2483 # Let the site file select an alternate cache file if it wants to.
2484 # Prefer an explicitly selected file to automatically selected ones.
2485 if test -n "$CONFIG_SITE"; then
2486 ac_site_files="$CONFIG_SITE"
2487 elif test "x$prefix" != xNONE; then
2488 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2489 else
2490 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2491 fi
2492
2493 for ac_site_file in $ac_site_files
2494 do
2495 case $ac_site_file in #(
2496 */*) :
2497 ;; #(
2498 *) :
2499 ac_site_file=./$ac_site_file ;;
2500 esac
2501 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2503 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2504 sed 's/^/| /' "$ac_site_file" >&5
2505 . "$ac_site_file" \
2506 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2508 as_fn_error $? "failed to load site script $ac_site_file
2509 See \`config.log' for more details" "$LINENO" 5; }
2510 fi
2511 done
2512
2513 if test -r "$cache_file"; then
2514 # Some versions of bash will fail to source /dev/null (special files
2515 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2516 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2518 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2519 case $cache_file in
2520 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2521 *) . "./$cache_file";;
2522 esac
2523 fi
2524 else
2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2526 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2527 >$cache_file
2528 fi
2529
2530 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2531 # Test code for whether the C compiler supports C89 (global declarations)
2532 ac_c_conftest_c89_globals='
2533 /* Does the compiler advertise C89 conformance?
2534 Do not test the value of __STDC__, because some compilers set it to 0
2535 while being otherwise adequately conformant. */
2536 #if !defined __STDC__
2537 # error "Compiler does not advertise C89 conformance"
2538 #endif
2539
2540 #include <stddef.h>
2541 #include <stdarg.h>
2542 struct stat;
2543 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2544 struct buf { int x; };
2545 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2546 static char *e (p, i)
2547 char **p;
2548 int i;
2549 {
2550 return p[i];
2551 }
2552 static char *f (char * (*g) (char **, int), char **p, ...)
2553 {
2554 char *s;
2555 va_list v;
2556 va_start (v,p);
2557 s = g (p, va_arg (v,int));
2558 va_end (v);
2559 return s;
2560 }
2561
2562 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2563 function prototypes and stuff, but not \xHH hex character constants.
2564 These do not provoke an error unfortunately, instead are silently treated
2565 as an "x". The following induces an error, until -std is added to get
2566 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2567 array size at least. It is necessary to write \x00 == 0 to get something
2568 that is true only with -std. */
2569 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2570
2571 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2572 inside strings and character constants. */
2573 #define FOO(x) '\''x'\''
2574 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2575
2576 int test (int i, double x);
2577 struct s1 {int (*f) (int a);};
2578 struct s2 {int (*f) (double a);};
2579 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2580 int, int);'
2581
2582 # Test code for whether the C compiler supports C89 (body of main).
2583 ac_c_conftest_c89_main='
2584 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2585 '
2586
2587 # Test code for whether the C compiler supports C99 (global declarations)
2588 ac_c_conftest_c99_globals='
2589 // Does the compiler advertise C99 conformance?
2590 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2591 # error "Compiler does not advertise C99 conformance"
2592 #endif
2593
2594 #include <stdbool.h>
2595 extern int puts (const char *);
2596 extern int printf (const char *, ...);
2597 extern int dprintf (int, const char *, ...);
2598 extern void *malloc (size_t);
2599
2600 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2601 // dprintf is used instead of fprintf to avoid needing to declare
2602 // FILE and stderr.
2603 #define debug(...) dprintf (2, __VA_ARGS__)
2604 #define showlist(...) puts (#__VA_ARGS__)
2605 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2606 static void
2607 test_varargs_macros (void)
2608 {
2609 int x = 1234;
2610 int y = 5678;
2611 debug ("Flag");
2612 debug ("X = %d\n", x);
2613 showlist (The first, second, and third items.);
2614 report (x>y, "x is %d but y is %d", x, y);
2615 }
2616
2617 // Check long long types.
2618 #define BIG64 18446744073709551615ull
2619 #define BIG32 4294967295ul
2620 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2621 #if !BIG_OK
2622 #error "your preprocessor is broken"
2623 #endif
2624 #if BIG_OK
2625 #else
2626 #error "your preprocessor is broken"
2627 #endif
2628 static long long int bignum = -9223372036854775807LL;
2629 static unsigned long long int ubignum = BIG64;
2630
2631 struct incomplete_array
2632 {
2633 int datasize;
2634 double data[];
2635 };
2636
2637 struct named_init {
2638 int number;
2639 const wchar_t *name;
2640 double average;
2641 };
2642
2643 typedef const char *ccp;
2644
2645 static inline int
2646 test_restrict (ccp restrict text)
2647 {
2648 // See if C++-style comments work.
2649 // Iterate through items via the restricted pointer.
2650 // Also check for declarations in for loops.
2651 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2652 continue;
2653 return 0;
2654 }
2655
2656 // Check varargs and va_copy.
2657 static bool
2658 test_varargs (const char *format, ...)
2659 {
2660 va_list args;
2661 va_start (args, format);
2662 va_list args_copy;
2663 va_copy (args_copy, args);
2664
2665 const char *str = "";
2666 int number = 0;
2667 float fnumber = 0;
2668
2669 while (*format)
2670 {
2671 switch (*format++)
2672 {
2673 case '\''s'\'': // string
2674 str = va_arg (args_copy, const char *);
2675 break;
2676 case '\''d'\'': // int
2677 number = va_arg (args_copy, int);
2678 break;
2679 case '\''f'\'': // float
2680 fnumber = va_arg (args_copy, double);
2681 break;
2682 default:
2683 break;
2684 }
2685 }
2686 va_end (args_copy);
2687 va_end (args);
2688
2689 return *str && number && fnumber;
2690 }
2691 '
2692
2693 # Test code for whether the C compiler supports C99 (body of main).
2694 ac_c_conftest_c99_main='
2695 // Check bool.
2696 _Bool success = false;
2697 success |= (argc != 0);
2698
2699 // Check restrict.
2700 if (test_restrict ("String literal") == 0)
2701 success = true;
2702 char *restrict newvar = "Another string";
2703
2704 // Check varargs.
2705 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2706 test_varargs_macros ();
2707
2708 // Check flexible array members.
2709 struct incomplete_array *ia =
2710 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2711 ia->datasize = 10;
2712 for (int i = 0; i < ia->datasize; ++i)
2713 ia->data[i] = i * 1.234;
2714
2715 // Check named initializers.
2716 struct named_init ni = {
2717 .number = 34,
2718 .name = L"Test wide string",
2719 .average = 543.34343,
2720 };
2721
2722 ni.number = 58;
2723
2724 int dynamic_array[ni.number];
2725 dynamic_array[0] = argv[0][0];
2726 dynamic_array[ni.number - 1] = 543;
2727
2728 // work around unused variable warnings
2729 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2730 || dynamic_array[ni.number - 1] != 543);
2731 '
2732
2733 # Test code for whether the C compiler supports C11 (global declarations)
2734 ac_c_conftest_c11_globals='
2735 // Does the compiler advertise C11 conformance?
2736 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2737 # error "Compiler does not advertise C11 conformance"
2738 #endif
2739
2740 // Check _Alignas.
2741 char _Alignas (double) aligned_as_double;
2742 char _Alignas (0) no_special_alignment;
2743 extern char aligned_as_int;
2744 char _Alignas (0) _Alignas (int) aligned_as_int;
2745
2746 // Check _Alignof.
2747 enum
2748 {
2749 int_alignment = _Alignof (int),
2750 int_array_alignment = _Alignof (int[100]),
2751 char_alignment = _Alignof (char)
2752 };
2753 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2754
2755 // Check _Noreturn.
2756 int _Noreturn does_not_return (void) { for (;;) continue; }
2757
2758 // Check _Static_assert.
2759 struct test_static_assert
2760 {
2761 int x;
2762 _Static_assert (sizeof (int) <= sizeof (long int),
2763 "_Static_assert does not work in struct");
2764 long int y;
2765 };
2766
2767 // Check UTF-8 literals.
2768 #define u8 syntax error!
2769 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2770
2771 // Check duplicate typedefs.
2772 typedef long *long_ptr;
2773 typedef long int *long_ptr;
2774 typedef long_ptr long_ptr;
2775
2776 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2777 struct anonymous
2778 {
2779 union {
2780 struct { int i; int j; };
2781 struct { int k; long int l; } w;
2782 };
2783 int m;
2784 } v1;
2785 '
2786
2787 # Test code for whether the C compiler supports C11 (body of main).
2788 ac_c_conftest_c11_main='
2789 _Static_assert ((offsetof (struct anonymous, i)
2790 == offsetof (struct anonymous, w.k)),
2791 "Anonymous union alignment botch");
2792 v1.i = 2;
2793 v1.w.k = 5;
2794 ok |= v1.i != 5;
2795 '
2796
2797 # Test code for whether the C compiler supports C11 (complete).
2798 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2799 ${ac_c_conftest_c99_globals}
2800 ${ac_c_conftest_c11_globals}
2801
2802 int
2803 main (int argc, char **argv)
2804 {
2805 int ok = 0;
2806 ${ac_c_conftest_c89_main}
2807 ${ac_c_conftest_c99_main}
2808 ${ac_c_conftest_c11_main}
2809 return ok;
2810 }
2811 "
2812
2813 # Test code for whether the C compiler supports C99 (complete).
2814 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2815 ${ac_c_conftest_c99_globals}
2816
2817 int
2818 main (int argc, char **argv)
2819 {
2820 int ok = 0;
2821 ${ac_c_conftest_c89_main}
2822 ${ac_c_conftest_c99_main}
2823 return ok;
2824 }
2825 "
2826
2827 # Test code for whether the C compiler supports C89 (complete).
2828 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2829
2830 int
2831 main (int argc, char **argv)
2832 {
2833 int ok = 0;
2834 ${ac_c_conftest_c89_main}
2835 return ok;
2836 }
2837 "
2838
2839 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2840 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2841 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2842 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2843 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2844 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2845 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2846 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2847 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2848 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2849 # Test code for whether the C++ compiler supports C++98 (global declarations)
2850 ac_cxx_conftest_cxx98_globals='
2851 // Does the compiler advertise C++98 conformance?
2852 #if !defined __cplusplus || __cplusplus < 199711L
2853 # error "Compiler does not advertise C++98 conformance"
2854 #endif
2855
2856 // These inclusions are to reject old compilers that
2857 // lack the unsuffixed header files.
2858 #include <cstdlib>
2859 #include <exception>
2860
2861 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2862 extern void assert (int);
2863 namespace std {
2864 extern int strcmp (const char *, const char *);
2865 }
2866
2867 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2868 using std::exception;
2869 using std::strcmp;
2870
2871 namespace {
2872
2873 void test_exception_syntax()
2874 {
2875 try {
2876 throw "test";
2877 } catch (const char *s) {
2878 // Extra parentheses suppress a warning when building autoconf itself,
2879 // due to lint rules shared with more typical C programs.
2880 assert (!(strcmp) (s, "test"));
2881 }
2882 }
2883
2884 template <typename T> struct test_template
2885 {
2886 T const val;
2887 explicit test_template(T t) : val(t) {}
2888 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2889 };
2890
2891 } // anonymous namespace
2892 '
2893
2894 # Test code for whether the C++ compiler supports C++98 (body of main)
2895 ac_cxx_conftest_cxx98_main='
2896 assert (argc);
2897 assert (! argv[0]);
2898 {
2899 test_exception_syntax ();
2900 test_template<double> tt (2.0);
2901 assert (tt.add (4) == 6.0);
2902 assert (true && !false);
2903 }
2904 '
2905
2906 # Test code for whether the C++ compiler supports C++11 (global declarations)
2907 ac_cxx_conftest_cxx11_globals='
2908 // Does the compiler advertise C++ 2011 conformance?
2909 #if !defined __cplusplus || __cplusplus < 201103L
2910 # error "Compiler does not advertise C++11 conformance"
2911 #endif
2912
2913 namespace cxx11test
2914 {
2915 constexpr int get_val() { return 20; }
2916
2917 struct testinit
2918 {
2919 int i;
2920 double d;
2921 };
2922
2923 class delegate
2924 {
2925 public:
2926 delegate(int n) : n(n) {}
2927 delegate(): delegate(2354) {}
2928
2929 virtual int getval() { return this->n; };
2930 protected:
2931 int n;
2932 };
2933
2934 class overridden : public delegate
2935 {
2936 public:
2937 overridden(int n): delegate(n) {}
2938 virtual int getval() override final { return this->n * 2; }
2939 };
2940
2941 class nocopy
2942 {
2943 public:
2944 nocopy(int i): i(i) {}
2945 nocopy() = default;
2946 nocopy(const nocopy&) = delete;
2947 nocopy & operator=(const nocopy&) = delete;
2948 private:
2949 int i;
2950 };
2951
2952 // for testing lambda expressions
2953 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2954 {
2955 return f(v);
2956 }
2957
2958 // for testing variadic templates and trailing return types
2959 template <typename V> auto sum(V first) -> V
2960 {
2961 return first;
2962 }
2963 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2964 {
2965 return first + sum(rest...);
2966 }
2967 }
2968 '
2969
2970 # Test code for whether the C++ compiler supports C++11 (body of main)
2971 ac_cxx_conftest_cxx11_main='
2972 {
2973 // Test auto and decltype
2974 auto a1 = 6538;
2975 auto a2 = 48573953.4;
2976 auto a3 = "String literal";
2977
2978 int total = 0;
2979 for (auto i = a3; *i; ++i) { total += *i; }
2980
2981 decltype(a2) a4 = 34895.034;
2982 }
2983 {
2984 // Test constexpr
2985 short sa[cxx11test::get_val()] = { 0 };
2986 }
2987 {
2988 // Test initializer lists
2989 cxx11test::testinit il = { 4323, 435234.23544 };
2990 }
2991 {
2992 // Test range-based for
2993 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2994 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2995 for (auto &x : array) { x += 23; }
2996 }
2997 {
2998 // Test lambda expressions
2999 using cxx11test::eval;
3000 assert (eval ([](int x) { return x*2; }, 21) == 42);
3001 double d = 2.0;
3002 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3003 assert (d == 5.0);
3004 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3005 assert (d == 5.0);
3006 }
3007 {
3008 // Test use of variadic templates
3009 using cxx11test::sum;
3010 auto a = sum(1);
3011 auto b = sum(1, 2);
3012 auto c = sum(1.0, 2.0, 3.0);
3013 }
3014 {
3015 // Test constructor delegation
3016 cxx11test::delegate d1;
3017 cxx11test::delegate d2();
3018 cxx11test::delegate d3(45);
3019 }
3020 {
3021 // Test override and final
3022 cxx11test::overridden o1(55464);
3023 }
3024 {
3025 // Test nullptr
3026 char *c = nullptr;
3027 }
3028 {
3029 // Test template brackets
3030 test_template<::test_template<int>> v(test_template<int>(12));
3031 }
3032 {
3033 // Unicode literals
3034 char const *utf8 = u8"UTF-8 string \u2500";
3035 char16_t const *utf16 = u"UTF-8 string \u2500";
3036 char32_t const *utf32 = U"UTF-32 string \u2500";
3037 }
3038 '
3039
3040 # Test code for whether the C compiler supports C++11 (complete).
3041 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3042 ${ac_cxx_conftest_cxx11_globals}
3043
3044 int
3045 main (int argc, char **argv)
3046 {
3047 int ok = 0;
3048 ${ac_cxx_conftest_cxx98_main}
3049 ${ac_cxx_conftest_cxx11_main}
3050 return ok;
3051 }
3052 "
3053
3054 # Test code for whether the C compiler supports C++98 (complete).
3055 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3056 int
3057 main (int argc, char **argv)
3058 {
3059 int ok = 0;
3060 ${ac_cxx_conftest_cxx98_main}
3061 return ok;
3062 }
3063 "
3064
3065
3066 # Auxiliary files required by this configure script.
3067 ac_aux_files="missing install-sh config.guess config.sub ltmain.sh compile"
3068
3069 # Locations in which to look for auxiliary files.
3070 ac_aux_dir_candidates="${srcdir}/."
3071
3072 # Search for a directory containing all of the required auxiliary files,
3073 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3074 # If we don't find one directory that contains all the files we need,
3075 # we report the set of missing files from the *first* directory in
3076 # $ac_aux_dir_candidates and give up.
3077 ac_missing_aux_files=""
3078 ac_first_candidate=:
3079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 as_found=false
3082 for as_dir in $ac_aux_dir_candidates
3083 do
3084 IFS=$as_save_IFS
3085 case $as_dir in #(((
3086 '') as_dir=./ ;;
3087 */) ;;
3088 *) as_dir=$as_dir/ ;;
3089 esac
3090 as_found=:
3091
3092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3093 ac_aux_dir_found=yes
3094 ac_install_sh=
3095 for ac_aux in $ac_aux_files
3096 do
3097 # As a special case, if "install-sh" is required, that requirement
3098 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3099 # and $ac_install_sh is set appropriately for whichever one is found.
3100 if test x"$ac_aux" = x"install-sh"
3101 then
3102 if test -f "${as_dir}install-sh"; then
3103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3104 ac_install_sh="${as_dir}install-sh -c"
3105 elif test -f "${as_dir}install.sh"; then
3106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3107 ac_install_sh="${as_dir}install.sh -c"
3108 elif test -f "${as_dir}shtool"; then
3109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3110 ac_install_sh="${as_dir}shtool install -c"
3111 else
3112 ac_aux_dir_found=no
3113 if $ac_first_candidate; then
3114 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3115 else
3116 break
3117 fi
3118 fi
3119 else
3120 if test -f "${as_dir}${ac_aux}"; then
3121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3122 else
3123 ac_aux_dir_found=no
3124 if $ac_first_candidate; then
3125 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3126 else
3127 break
3128 fi
3129 fi
3130 fi
3131 done
3132 if test "$ac_aux_dir_found" = yes; then
3133 ac_aux_dir="$as_dir"
3134 break
3135 fi
3136 ac_first_candidate=false
3137
3138 as_found=false
3139 done
3140 IFS=$as_save_IFS
3141 if $as_found
3142 then :
3143
3144 else $as_nop
3145 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3146 fi
3147
3148
3149 # These three variables are undocumented and unsupported,
3150 # and are intended to be withdrawn in a future Autoconf release.
3151 # They can cause serious problems if a builder's source tree is in a directory
3152 # whose full name contains unusual characters.
3153 if test -f "${ac_aux_dir}config.guess"; then
3154 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3155 fi
3156 if test -f "${ac_aux_dir}config.sub"; then
3157 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3158 fi
3159 if test -f "$ac_aux_dir/configure"; then
3160 ac_configure="$SHELL ${ac_aux_dir}configure"
3161 fi
3162
3163 # Check that the precious variables saved in the cache have kept the same
3164 # value.
3165 ac_cache_corrupted=false
3166 for ac_var in $ac_precious_vars; do
3167 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3168 eval ac_new_set=\$ac_env_${ac_var}_set
3169 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3170 eval ac_new_val=\$ac_env_${ac_var}_value
3171 case $ac_old_set,$ac_new_set in
3172 set,)
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3174 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3175 ac_cache_corrupted=: ;;
3176 ,set)
3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3178 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3179 ac_cache_corrupted=: ;;
3180 ,);;
3181 *)
3182 if test "x$ac_old_val" != "x$ac_new_val"; then
3183 # differences in whitespace do not lead to failure.
3184 ac_old_val_w=`echo x $ac_old_val`
3185 ac_new_val_w=`echo x $ac_new_val`
3186 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3188 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3189 ac_cache_corrupted=:
3190 else
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3192 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3193 eval $ac_var=\$ac_old_val
3194 fi
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3196 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3198 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3199 fi;;
3200 esac
3201 # Pass precious variables to config.status.
3202 if test "$ac_new_set" = set; then
3203 case $ac_new_val in
3204 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3205 *) ac_arg=$ac_var=$ac_new_val ;;
3206 esac
3207 case " $ac_configure_args " in
3208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3209 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3210 esac
3211 fi
3212 done
3213 if $ac_cache_corrupted; then
3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3217 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3218 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3219 and start over" "$LINENO" 5
3220 fi
3221 ## -------------------- ##
3222 ## Main body of script. ##
3223 ## -------------------- ##
3224
3225 ac_ext=c
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230
3231
3232
3233
3234 ac_config_headers="$ac_config_headers config.h"
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247 # Expand $ac_aux_dir to an absolute path.
3248 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3249
3250 ac_ext=c
3251 ac_cpp='$CPP $CPPFLAGS'
3252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 printf %s "checking for $ac_word... " >&6; }
3260 if test ${ac_cv_prog_CC+y}
3261 then :
3262 printf %s "(cached) " >&6
3263 else $as_nop
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 case $as_dir in #(((
3272 '') as_dir=./ ;;
3273 */) ;;
3274 *) as_dir=$as_dir/ ;;
3275 esac
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282 done
3283 done
3284 IFS=$as_save_IFS
3285
3286 fi
3287 fi
3288 CC=$ac_cv_prog_CC
3289 if test -n "$CC"; then
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291 printf "%s\n" "$CC" >&6; }
3292 else
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 printf "%s\n" "no" >&6; }
3295 fi
3296
3297
3298 fi
3299 if test -z "$ac_cv_prog_CC"; then
3300 ac_ct_CC=$CC
3301 # Extract the first word of "gcc", so it can be a program name with args.
3302 set dummy gcc; ac_word=$2
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 printf %s "checking for $ac_word... " >&6; }
3305 if test ${ac_cv_prog_ac_ct_CC+y}
3306 then :
3307 printf %s "(cached) " >&6
3308 else $as_nop
3309 if test -n "$ac_ct_CC"; then
3310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315 IFS=$as_save_IFS
3316 case $as_dir in #(((
3317 '') as_dir=./ ;;
3318 */) ;;
3319 *) as_dir=$as_dir/ ;;
3320 esac
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_ac_ct_CC="gcc"
3324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3334 if test -n "$ac_ct_CC"; then
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3336 printf "%s\n" "$ac_ct_CC" >&6; }
3337 else
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 printf "%s\n" "no" >&6; }
3340 fi
3341
3342 if test "x$ac_ct_CC" = x; then
3343 CC=""
3344 else
3345 case $cross_compiling:$ac_tool_warned in
3346 yes:)
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3348 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3349 ac_tool_warned=yes ;;
3350 esac
3351 CC=$ac_ct_CC
3352 fi
3353 else
3354 CC="$ac_cv_prog_CC"
3355 fi
3356
3357 if test -z "$CC"; then
3358 if test -n "$ac_tool_prefix"; then
3359 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3360 set dummy ${ac_tool_prefix}cc; ac_word=$2
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 printf %s "checking for $ac_word... " >&6; }
3363 if test ${ac_cv_prog_CC+y}
3364 then :
3365 printf %s "(cached) " >&6
3366 else $as_nop
3367 if test -n "$CC"; then
3368 ac_cv_prog_CC="$CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373 IFS=$as_save_IFS
3374 case $as_dir in #(((
3375 '') as_dir=./ ;;
3376 */) ;;
3377 *) as_dir=$as_dir/ ;;
3378 esac
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_CC="${ac_tool_prefix}cc"
3382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385 done
3386 done
3387 IFS=$as_save_IFS
3388
3389 fi
3390 fi
3391 CC=$ac_cv_prog_CC
3392 if test -n "$CC"; then
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 printf "%s\n" "$CC" >&6; }
3395 else
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 printf "%s\n" "no" >&6; }
3398 fi
3399
3400
3401 fi
3402 fi
3403 if test -z "$CC"; then
3404 # Extract the first word of "cc", so it can be a program name with args.
3405 set dummy cc; ac_word=$2
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 printf %s "checking for $ac_word... " >&6; }
3408 if test ${ac_cv_prog_CC+y}
3409 then :
3410 printf %s "(cached) " >&6
3411 else $as_nop
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC="$CC" # Let the user override the test.
3414 else
3415 ac_prog_rejected=no
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419 IFS=$as_save_IFS
3420 case $as_dir in #(((
3421 '') as_dir=./ ;;
3422 */) ;;
3423 *) as_dir=$as_dir/ ;;
3424 esac
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3427 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3428 ac_prog_rejected=yes
3429 continue
3430 fi
3431 ac_cv_prog_CC="cc"
3432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435 done
3436 done
3437 IFS=$as_save_IFS
3438
3439 if test $ac_prog_rejected = yes; then
3440 # We found a bogon in the path, so make sure we never use it.
3441 set dummy $ac_cv_prog_CC
3442 shift
3443 if test $# != 0; then
3444 # We chose a different compiler from the bogus one.
3445 # However, it has the same basename, so the bogon will be chosen
3446 # first if we set CC to just the basename; use the full file name.
3447 shift
3448 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3449 fi
3450 fi
3451 fi
3452 fi
3453 CC=$ac_cv_prog_CC
3454 if test -n "$CC"; then
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 printf "%s\n" "$CC" >&6; }
3457 else
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 printf "%s\n" "no" >&6; }
3460 fi
3461
3462
3463 fi
3464 if test -z "$CC"; then
3465 if test -n "$ac_tool_prefix"; then
3466 for ac_prog in cl.exe
3467 do
3468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 printf %s "checking for $ac_word... " >&6; }
3472 if test ${ac_cv_prog_CC+y}
3473 then :
3474 printf %s "(cached) " >&6
3475 else $as_nop
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 case $as_dir in #(((
3484 '') as_dir=./ ;;
3485 */) ;;
3486 *) as_dir=$as_dir/ ;;
3487 esac
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494 done
3495 done
3496 IFS=$as_save_IFS
3497
3498 fi
3499 fi
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 printf "%s\n" "$CC" >&6; }
3504 else
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 printf "%s\n" "no" >&6; }
3507 fi
3508
3509
3510 test -n "$CC" && break
3511 done
3512 fi
3513 if test -z "$CC"; then
3514 ac_ct_CC=$CC
3515 for ac_prog in cl.exe
3516 do
3517 # Extract the first word of "$ac_prog", so it can be a program name with args.
3518 set dummy $ac_prog; ac_word=$2
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 printf %s "checking for $ac_word... " >&6; }
3521 if test ${ac_cv_prog_ac_ct_CC+y}
3522 then :
3523 printf %s "(cached) " >&6
3524 else $as_nop
3525 if test -n "$ac_ct_CC"; then
3526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531 IFS=$as_save_IFS
3532 case $as_dir in #(((
3533 '') as_dir=./ ;;
3534 */) ;;
3535 *) as_dir=$as_dir/ ;;
3536 esac
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_ac_ct_CC="$ac_prog"
3540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543 done
3544 done
3545 IFS=$as_save_IFS
3546
3547 fi
3548 fi
3549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3550 if test -n "$ac_ct_CC"; then
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3552 printf "%s\n" "$ac_ct_CC" >&6; }
3553 else
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 printf "%s\n" "no" >&6; }
3556 fi
3557
3558
3559 test -n "$ac_ct_CC" && break
3560 done
3561
3562 if test "x$ac_ct_CC" = x; then
3563 CC=""
3564 else
3565 case $cross_compiling:$ac_tool_warned in
3566 yes:)
3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3568 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3569 ac_tool_warned=yes ;;
3570 esac
3571 CC=$ac_ct_CC
3572 fi
3573 fi
3574
3575 fi
3576 if test -z "$CC"; then
3577 if test -n "$ac_tool_prefix"; then
3578 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3579 set dummy ${ac_tool_prefix}clang; ac_word=$2
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 printf %s "checking for $ac_word... " >&6; }
3582 if test ${ac_cv_prog_CC+y}
3583 then :
3584 printf %s "(cached) " >&6
3585 else $as_nop
3586 if test -n "$CC"; then
3587 ac_cv_prog_CC="$CC" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592 IFS=$as_save_IFS
3593 case $as_dir in #(((
3594 '') as_dir=./ ;;
3595 */) ;;
3596 *) as_dir=$as_dir/ ;;
3597 esac
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_CC="${ac_tool_prefix}clang"
3601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3602 break 2
3603 fi
3604 done
3605 done
3606 IFS=$as_save_IFS
3607
3608 fi
3609 fi
3610 CC=$ac_cv_prog_CC
3611 if test -n "$CC"; then
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613 printf "%s\n" "$CC" >&6; }
3614 else
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 printf "%s\n" "no" >&6; }
3617 fi
3618
3619
3620 fi
3621 if test -z "$ac_cv_prog_CC"; then
3622 ac_ct_CC=$CC
3623 # Extract the first word of "clang", so it can be a program name with args.
3624 set dummy clang; ac_word=$2
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 printf %s "checking for $ac_word... " >&6; }
3627 if test ${ac_cv_prog_ac_ct_CC+y}
3628 then :
3629 printf %s "(cached) " >&6
3630 else $as_nop
3631 if test -n "$ac_ct_CC"; then
3632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3633 else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637 IFS=$as_save_IFS
3638 case $as_dir in #(((
3639 '') as_dir=./ ;;
3640 */) ;;
3641 *) as_dir=$as_dir/ ;;
3642 esac
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3645 ac_cv_prog_ac_ct_CC="clang"
3646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3647 break 2
3648 fi
3649 done
3650 done
3651 IFS=$as_save_IFS
3652
3653 fi
3654 fi
3655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3656 if test -n "$ac_ct_CC"; then
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3658 printf "%s\n" "$ac_ct_CC" >&6; }
3659 else
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 printf "%s\n" "no" >&6; }
3662 fi
3663
3664 if test "x$ac_ct_CC" = x; then
3665 CC=""
3666 else
3667 case $cross_compiling:$ac_tool_warned in
3668 yes:)
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3670 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3671 ac_tool_warned=yes ;;
3672 esac
3673 CC=$ac_ct_CC
3674 fi
3675 else
3676 CC="$ac_cv_prog_CC"
3677 fi
3678
3679 fi
3680
3681
3682 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3684 as_fn_error $? "no acceptable C compiler found in \$PATH
3685 See \`config.log' for more details" "$LINENO" 5; }
3686
3687 # Provide some information about the compiler.
3688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3689 set X $ac_compile
3690 ac_compiler=$2
3691 for ac_option in --version -v -V -qversion -version; do
3692 { { ac_try="$ac_compiler $ac_option >&5"
3693 case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698 printf "%s\n" "$ac_try_echo"; } >&5
3699 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3700 ac_status=$?
3701 if test -s conftest.err; then
3702 sed '10a\
3703 ... rest of stderr output deleted ...
3704 10q' conftest.err >conftest.er1
3705 cat conftest.er1 >&5
3706 fi
3707 rm -f conftest.er1 conftest.err
3708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }
3710 done
3711
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3714
3715 int
3716 main (void)
3717 {
3718
3719 ;
3720 return 0;
3721 }
3722 _ACEOF
3723 ac_clean_files_save=$ac_clean_files
3724 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3725 # Try to create an executable without -o first, disregard a.out.
3726 # It will help us diagnose broken compilers, and finding out an intuition
3727 # of exeext.
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3729 printf %s "checking whether the C compiler works... " >&6; }
3730 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3731
3732 # The possible output files:
3733 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3734
3735 ac_rmfiles=
3736 for ac_file in $ac_files
3737 do
3738 case $ac_file in
3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3741 esac
3742 done
3743 rm -f $ac_rmfiles
3744
3745 if { { ac_try="$ac_link_default"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 printf "%s\n" "$ac_try_echo"; } >&5
3752 (eval "$ac_link_default") 2>&5
3753 ac_status=$?
3754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }
3756 then :
3757 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3758 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3759 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3760 # so that the user can short-circuit this test for compilers unknown to
3761 # Autoconf.
3762 for ac_file in $ac_files ''
3763 do
3764 test -f "$ac_file" || continue
3765 case $ac_file in
3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3767 ;;
3768 [ab].out )
3769 # We found the default executable, but exeext='' is most
3770 # certainly right.
3771 break;;
3772 *.* )
3773 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3774 then :; else
3775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776 fi
3777 # We set ac_cv_exeext here because the later test for it is not
3778 # safe: cross compilers may not add the suffix if given an `-o'
3779 # argument, so we may need to know it at that point already.
3780 # Even if this section looks crufty: it has the advantage of
3781 # actually working.
3782 break;;
3783 * )
3784 break;;
3785 esac
3786 done
3787 test "$ac_cv_exeext" = no && ac_cv_exeext=
3788
3789 else $as_nop
3790 ac_file=''
3791 fi
3792 if test -z "$ac_file"
3793 then :
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 printf "%s\n" "no" >&6; }
3796 printf "%s\n" "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3798
3799 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error 77 "C compiler cannot create executables
3802 See \`config.log' for more details" "$LINENO" 5; }
3803 else $as_nop
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3805 printf "%s\n" "yes" >&6; }
3806 fi
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3808 printf %s "checking for C compiler default output file name... " >&6; }
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3810 printf "%s\n" "$ac_file" >&6; }
3811 ac_exeext=$ac_cv_exeext
3812
3813 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3814 ac_clean_files=$ac_clean_files_save
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3816 printf %s "checking for suffix of executables... " >&6; }
3817 if { { ac_try="$ac_link"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 printf "%s\n" "$ac_try_echo"; } >&5
3824 (eval "$ac_link") 2>&5
3825 ac_status=$?
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3828 then :
3829 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3830 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3831 # work properly (i.e., refer to `conftest.exe'), while it won't with
3832 # `rm'.
3833 for ac_file in conftest.exe conftest conftest.*; do
3834 test -f "$ac_file" || continue
3835 case $ac_file in
3836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838 break;;
3839 * ) break;;
3840 esac
3841 done
3842 else $as_nop
3843 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3846 See \`config.log' for more details" "$LINENO" 5; }
3847 fi
3848 rm -f conftest conftest$ac_cv_exeext
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3850 printf "%s\n" "$ac_cv_exeext" >&6; }
3851
3852 rm -f conftest.$ac_ext
3853 EXEEXT=$ac_cv_exeext
3854 ac_exeext=$EXEEXT
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857 #include <stdio.h>
3858 int
3859 main (void)
3860 {
3861 FILE *f = fopen ("conftest.out", "w");
3862 return ferror (f) || fclose (f) != 0;
3863
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 ac_clean_files="$ac_clean_files conftest.out"
3869 # Check that the compiler produces executables we can run. If not, either
3870 # the compiler is broken, or we cross compile.
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3872 printf %s "checking whether we are cross compiling... " >&6; }
3873 if test "$cross_compiling" != yes; then
3874 { { ac_try="$ac_link"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 printf "%s\n" "$ac_try_echo"; } >&5
3881 (eval "$ac_link") 2>&5
3882 ac_status=$?
3883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }
3885 if { ac_try='./conftest$ac_cv_exeext'
3886 { { case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889 esac
3890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891 printf "%s\n" "$ac_try_echo"; } >&5
3892 (eval "$ac_try") 2>&5
3893 ac_status=$?
3894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }; }; then
3896 cross_compiling=no
3897 else
3898 if test "$cross_compiling" = maybe; then
3899 cross_compiling=yes
3900 else
3901 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3903 as_fn_error 77 "cannot run C compiled programs.
3904 If you meant to cross compile, use \`--host'.
3905 See \`config.log' for more details" "$LINENO" 5; }
3906 fi
3907 fi
3908 fi
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3910 printf "%s\n" "$cross_compiling" >&6; }
3911
3912 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3913 ac_clean_files=$ac_clean_files_save
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3915 printf %s "checking for suffix of object files... " >&6; }
3916 if test ${ac_cv_objext+y}
3917 then :
3918 printf %s "(cached) " >&6
3919 else $as_nop
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922
3923 int
3924 main (void)
3925 {
3926
3927 ;
3928 return 0;
3929 }
3930 _ACEOF
3931 rm -f conftest.o conftest.obj
3932 if { { ac_try="$ac_compile"
3933 case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936 esac
3937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938 printf "%s\n" "$ac_try_echo"; } >&5
3939 (eval "$ac_compile") 2>&5
3940 ac_status=$?
3941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942 test $ac_status = 0; }
3943 then :
3944 for ac_file in conftest.o conftest.obj conftest.*; do
3945 test -f "$ac_file" || continue;
3946 case $ac_file in
3947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3949 break;;
3950 esac
3951 done
3952 else $as_nop
3953 printf "%s\n" "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3958 as_fn_error $? "cannot compute suffix of object files: cannot compile
3959 See \`config.log' for more details" "$LINENO" 5; }
3960 fi
3961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3962 fi
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3964 printf "%s\n" "$ac_cv_objext" >&6; }
3965 OBJEXT=$ac_cv_objext
3966 ac_objext=$OBJEXT
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3968 printf %s "checking whether the compiler supports GNU C... " >&6; }
3969 if test ${ac_cv_c_compiler_gnu+y}
3970 then :
3971 printf %s "(cached) " >&6
3972 else $as_nop
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975
3976 int
3977 main (void)
3978 {
3979 #ifndef __GNUC__
3980 choke me
3981 #endif
3982
3983 ;
3984 return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"
3988 then :
3989 ac_compiler_gnu=yes
3990 else $as_nop
3991 ac_compiler_gnu=no
3992 fi
3993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3995
3996 fi
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3998 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000
4001 if test $ac_compiler_gnu = yes; then
4002 GCC=yes
4003 else
4004 GCC=
4005 fi
4006 ac_test_CFLAGS=${CFLAGS+y}
4007 ac_save_CFLAGS=$CFLAGS
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4009 printf %s "checking whether $CC accepts -g... " >&6; }
4010 if test ${ac_cv_prog_cc_g+y}
4011 then :
4012 printf %s "(cached) " >&6
4013 else $as_nop
4014 ac_save_c_werror_flag=$ac_c_werror_flag
4015 ac_c_werror_flag=yes
4016 ac_cv_prog_cc_g=no
4017 CFLAGS="-g"
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020
4021 int
4022 main (void)
4023 {
4024
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"
4030 then :
4031 ac_cv_prog_cc_g=yes
4032 else $as_nop
4033 CFLAGS=""
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036
4037 int
4038 main (void)
4039 {
4040
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 if ac_fn_c_try_compile "$LINENO"
4046 then :
4047
4048 else $as_nop
4049 ac_c_werror_flag=$ac_save_c_werror_flag
4050 CFLAGS="-g"
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4053
4054 int
4055 main (void)
4056 {
4057
4058 ;
4059 return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"
4063 then :
4064 ac_cv_prog_cc_g=yes
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4067 fi
4068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4069 fi
4070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4071 ac_c_werror_flag=$ac_save_c_werror_flag
4072 fi
4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4074 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4075 if test $ac_test_CFLAGS; then
4076 CFLAGS=$ac_save_CFLAGS
4077 elif test $ac_cv_prog_cc_g = yes; then
4078 if test "$GCC" = yes; then
4079 CFLAGS="-g -O2"
4080 else
4081 CFLAGS="-g"
4082 fi
4083 else
4084 if test "$GCC" = yes; then
4085 CFLAGS="-O2"
4086 else
4087 CFLAGS=
4088 fi
4089 fi
4090 ac_prog_cc_stdc=no
4091 if test x$ac_prog_cc_stdc = xno
4092 then :
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4094 printf %s "checking for $CC option to enable C11 features... " >&6; }
4095 if test ${ac_cv_prog_cc_c11+y}
4096 then :
4097 printf %s "(cached) " >&6
4098 else $as_nop
4099 ac_cv_prog_cc_c11=no
4100 ac_save_CC=$CC
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103 $ac_c_conftest_c11_program
4104 _ACEOF
4105 for ac_arg in '' -std=gnu11
4106 do
4107 CC="$ac_save_CC $ac_arg"
4108 if ac_fn_c_try_compile "$LINENO"
4109 then :
4110 ac_cv_prog_cc_c11=$ac_arg
4111 fi
4112 rm -f core conftest.err conftest.$ac_objext conftest.beam
4113 test "x$ac_cv_prog_cc_c11" != "xno" && break
4114 done
4115 rm -f conftest.$ac_ext
4116 CC=$ac_save_CC
4117 fi
4118
4119 if test "x$ac_cv_prog_cc_c11" = xno
4120 then :
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4122 printf "%s\n" "unsupported" >&6; }
4123 else $as_nop
4124 if test "x$ac_cv_prog_cc_c11" = x
4125 then :
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4127 printf "%s\n" "none needed" >&6; }
4128 else $as_nop
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4130 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4131 CC="$CC $ac_cv_prog_cc_c11"
4132 fi
4133 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4134 ac_prog_cc_stdc=c11
4135 fi
4136 fi
4137 if test x$ac_prog_cc_stdc = xno
4138 then :
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4140 printf %s "checking for $CC option to enable C99 features... " >&6; }
4141 if test ${ac_cv_prog_cc_c99+y}
4142 then :
4143 printf %s "(cached) " >&6
4144 else $as_nop
4145 ac_cv_prog_cc_c99=no
4146 ac_save_CC=$CC
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 $ac_c_conftest_c99_program
4150 _ACEOF
4151 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4152 do
4153 CC="$ac_save_CC $ac_arg"
4154 if ac_fn_c_try_compile "$LINENO"
4155 then :
4156 ac_cv_prog_cc_c99=$ac_arg
4157 fi
4158 rm -f core conftest.err conftest.$ac_objext conftest.beam
4159 test "x$ac_cv_prog_cc_c99" != "xno" && break
4160 done
4161 rm -f conftest.$ac_ext
4162 CC=$ac_save_CC
4163 fi
4164
4165 if test "x$ac_cv_prog_cc_c99" = xno
4166 then :
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4168 printf "%s\n" "unsupported" >&6; }
4169 else $as_nop
4170 if test "x$ac_cv_prog_cc_c99" = x
4171 then :
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4173 printf "%s\n" "none needed" >&6; }
4174 else $as_nop
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4176 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4177 CC="$CC $ac_cv_prog_cc_c99"
4178 fi
4179 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4180 ac_prog_cc_stdc=c99
4181 fi
4182 fi
4183 if test x$ac_prog_cc_stdc = xno
4184 then :
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4186 printf %s "checking for $CC option to enable C89 features... " >&6; }
4187 if test ${ac_cv_prog_cc_c89+y}
4188 then :
4189 printf %s "(cached) " >&6
4190 else $as_nop
4191 ac_cv_prog_cc_c89=no
4192 ac_save_CC=$CC
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195 $ac_c_conftest_c89_program
4196 _ACEOF
4197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4198 do
4199 CC="$ac_save_CC $ac_arg"
4200 if ac_fn_c_try_compile "$LINENO"
4201 then :
4202 ac_cv_prog_cc_c89=$ac_arg
4203 fi
4204 rm -f core conftest.err conftest.$ac_objext conftest.beam
4205 test "x$ac_cv_prog_cc_c89" != "xno" && break
4206 done
4207 rm -f conftest.$ac_ext
4208 CC=$ac_save_CC
4209 fi
4210
4211 if test "x$ac_cv_prog_cc_c89" = xno
4212 then :
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4214 printf "%s\n" "unsupported" >&6; }
4215 else $as_nop
4216 if test "x$ac_cv_prog_cc_c89" = x
4217 then :
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4219 printf "%s\n" "none needed" >&6; }
4220 else $as_nop
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4222 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4223 CC="$CC $ac_cv_prog_cc_c89"
4224 fi
4225 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4226 ac_prog_cc_stdc=c89
4227 fi
4228 fi
4229
4230 ac_ext=c
4231 ac_cpp='$CPP $CPPFLAGS'
4232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235
4236
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4243 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4244 if test ${am_cv_prog_cc_c_o+y}
4245 then :
4246 printf %s "(cached) " >&6
4247 else $as_nop
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250
4251 int
4252 main (void)
4253 {
4254
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 # Make sure it works both with $CC and with simple cc.
4260 # Following AC_PROG_CC_C_O, we do the test twice because some
4261 # compilers refuse to overwrite an existing .o file with -o,
4262 # though they will create one.
4263 am_cv_prog_cc_c_o=yes
4264 for am_i in 1 2; do
4265 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4266 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } \
4270 && test -f conftest2.$ac_objext; then
4271 : OK
4272 else
4273 am_cv_prog_cc_c_o=no
4274 break
4275 fi
4276 done
4277 rm -f core conftest*
4278 unset am_i
4279 fi
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4281 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4282 if test "$am_cv_prog_cc_c_o" != yes; then
4283 # Losing compiler, so override with the script.
4284 # FIXME: It is wrong to rewrite CC.
4285 # But if we don't then we get into trouble of one sort or another.
4286 # A longer-term fix would be to have automake use am__CC in this case,
4287 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4288 CC="$am_aux_dir/compile $CC"
4289 fi
4290 ac_ext=c
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295
4296
4297
4298 ac_header= ac_cache=
4299 for ac_item in $ac_header_c_list
4300 do
4301 if test $ac_cache; then
4302 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4303 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4304 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4305 fi
4306 ac_header= ac_cache=
4307 elif test $ac_header; then
4308 ac_cache=$ac_item
4309 else
4310 ac_header=$ac_item
4311 fi
4312 done
4313
4314
4315
4316
4317
4318
4319
4320
4321 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4322 then :
4323
4324 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4325
4326 fi
4327
4328
4329
4330
4331
4332
4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4334 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4335 if test ${ac_cv_safe_to_define___extensions__+y}
4336 then :
4337 printf %s "(cached) " >&6
4338 else $as_nop
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341
4342 # define __EXTENSIONS__ 1
4343 $ac_includes_default
4344 int
4345 main (void)
4346 {
4347
4348 ;
4349 return 0;
4350 }
4351 _ACEOF
4352 if ac_fn_c_try_compile "$LINENO"
4353 then :
4354 ac_cv_safe_to_define___extensions__=yes
4355 else $as_nop
4356 ac_cv_safe_to_define___extensions__=no
4357 fi
4358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4359 fi
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4361 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4362
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4364 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4365 if test ${ac_cv_should_define__xopen_source+y}
4366 then :
4367 printf %s "(cached) " >&6
4368 else $as_nop
4369 ac_cv_should_define__xopen_source=no
4370 if test $ac_cv_header_wchar_h = yes
4371 then :
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374
4375 #include <wchar.h>
4376 mbstate_t x;
4377 int
4378 main (void)
4379 {
4380
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"
4386 then :
4387
4388 else $as_nop
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391
4392 #define _XOPEN_SOURCE 500
4393 #include <wchar.h>
4394 mbstate_t x;
4395 int
4396 main (void)
4397 {
4398
4399 ;
4400 return 0;
4401 }
4402 _ACEOF
4403 if ac_fn_c_try_compile "$LINENO"
4404 then :
4405 ac_cv_should_define__xopen_source=yes
4406 fi
4407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4408 fi
4409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4410 fi
4411 fi
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4413 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4414
4415 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4416
4417 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4418
4419 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4420
4421 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4422
4423 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4424
4425 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4426
4427 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4428
4429 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4430
4431 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4432
4433 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4434
4435 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4436
4437 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4438
4439 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4440
4441 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4442
4443 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4444
4445 if test $ac_cv_header_minix_config_h = yes
4446 then :
4447 MINIX=yes
4448 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4449
4450 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4451
4452 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4453
4454 else $as_nop
4455 MINIX=
4456 fi
4457 if test $ac_cv_safe_to_define___extensions__ = yes
4458 then :
4459 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4460
4461 fi
4462 if test $ac_cv_should_define__xopen_source = yes
4463 then :
4464 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4465
4466 fi
4467
4468
4469
4470 case `pwd` in
4471 *\ * | *\ *)
4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4473 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4474 esac
4475
4476
4477
4478 macro_version='2.4.7'
4479 macro_revision='2.4.7'
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494 ltmain=$ac_aux_dir/ltmain.sh
4495
4496
4497
4498 # Make sure we can run config.sub.
4499 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4500 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4501
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4503 printf %s "checking build system type... " >&6; }
4504 if test ${ac_cv_build+y}
4505 then :
4506 printf %s "(cached) " >&6
4507 else $as_nop
4508 ac_build_alias=$build_alias
4509 test "x$ac_build_alias" = x &&
4510 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4511 test "x$ac_build_alias" = x &&
4512 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4513 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4514 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4515
4516 fi
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4518 printf "%s\n" "$ac_cv_build" >&6; }
4519 case $ac_cv_build in
4520 *-*-*) ;;
4521 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4522 esac
4523 build=$ac_cv_build
4524 ac_save_IFS=$IFS; IFS='-'
4525 set x $ac_cv_build
4526 shift
4527 build_cpu=$1
4528 build_vendor=$2
4529 shift; shift
4530 # Remember, the first character of IFS is used to create $*,
4531 # except with old shells:
4532 build_os=$*
4533 IFS=$ac_save_IFS
4534 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4535
4536
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4538 printf %s "checking host system type... " >&6; }
4539 if test ${ac_cv_host+y}
4540 then :
4541 printf %s "(cached) " >&6
4542 else $as_nop
4543 if test "x$host_alias" = x; then
4544 ac_cv_host=$ac_cv_build
4545 else
4546 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4547 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4548 fi
4549
4550 fi
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4552 printf "%s\n" "$ac_cv_host" >&6; }
4553 case $ac_cv_host in
4554 *-*-*) ;;
4555 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4556 esac
4557 host=$ac_cv_host
4558 ac_save_IFS=$IFS; IFS='-'
4559 set x $ac_cv_host
4560 shift
4561 host_cpu=$1
4562 host_vendor=$2
4563 shift; shift
4564 # Remember, the first character of IFS is used to create $*,
4565 # except with old shells:
4566 host_os=$*
4567 IFS=$ac_save_IFS
4568 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4569
4570
4571 # Backslashify metacharacters that are still active within
4572 # double-quoted strings.
4573 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4574
4575 # Same as above, but do not quote variable references.
4576 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4577
4578 # Sed substitution to delay expansion of an escaped shell variable in a
4579 # double_quote_subst'ed string.
4580 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4581
4582 # Sed substitution to delay expansion of an escaped single quote.
4583 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4584
4585 # Sed substitution to avoid accidental globbing in evaled expressions
4586 no_glob_subst='s/\*/\\\*/g'
4587
4588 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4589 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4590 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4591
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4593 printf %s "checking how to print strings... " >&6; }
4594 # Test print first, because it will be a builtin if present.
4595 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4596 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4597 ECHO='print -r --'
4598 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4599 ECHO='printf %s\n'
4600 else
4601 # Use this function as a fallback that always works.
4602 func_fallback_echo ()
4603 {
4604 eval 'cat <<_LTECHO_EOF
4605 $1
4606 _LTECHO_EOF'
4607 }
4608 ECHO='func_fallback_echo'
4609 fi
4610
4611 # func_echo_all arg...
4612 # Invoke $ECHO with all args, space-separated.
4613 func_echo_all ()
4614 {
4615 $ECHO ""
4616 }
4617
4618 case $ECHO in
4619 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4620 printf "%s\n" "printf" >&6; } ;;
4621 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4622 printf "%s\n" "print -r" >&6; } ;;
4623 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4624 printf "%s\n" "cat" >&6; } ;;
4625 esac
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4641 printf %s "checking for a sed that does not truncate output... " >&6; }
4642 if test ${ac_cv_path_SED+y}
4643 then :
4644 printf %s "(cached) " >&6
4645 else $as_nop
4646 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4647 for ac_i in 1 2 3 4 5 6 7; do
4648 ac_script="$ac_script$as_nl$ac_script"
4649 done
4650 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4651 { ac_script=; unset ac_script;}
4652 if test -z "$SED"; then
4653 ac_path_SED_found=false
4654 # Loop through the user's path and test for each of PROGNAME-LIST
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658 IFS=$as_save_IFS
4659 case $as_dir in #(((
4660 '') as_dir=./ ;;
4661 */) ;;
4662 *) as_dir=$as_dir/ ;;
4663 esac
4664 for ac_prog in sed gsed
4665 do
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4668 as_fn_executable_p "$ac_path_SED" || continue
4669 # Check for GNU ac_path_SED and select it if it is found.
4670 # Check for GNU $ac_path_SED
4671 case `"$ac_path_SED" --version 2>&1` in
4672 *GNU*)
4673 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4674 *)
4675 ac_count=0
4676 printf %s 0123456789 >"conftest.in"
4677 while :
4678 do
4679 cat "conftest.in" "conftest.in" >"conftest.tmp"
4680 mv "conftest.tmp" "conftest.in"
4681 cp "conftest.in" "conftest.nl"
4682 printf "%s\n" '' >> "conftest.nl"
4683 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685 as_fn_arith $ac_count + 1 && ac_count=$as_val
4686 if test $ac_count -gt ${ac_path_SED_max-0}; then
4687 # Best one so far, save it but keep looking for a better one
4688 ac_cv_path_SED="$ac_path_SED"
4689 ac_path_SED_max=$ac_count
4690 fi
4691 # 10*(2^10) chars as input seems more than enough
4692 test $ac_count -gt 10 && break
4693 done
4694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695 esac
4696
4697 $ac_path_SED_found && break 3
4698 done
4699 done
4700 done
4701 IFS=$as_save_IFS
4702 if test -z "$ac_cv_path_SED"; then
4703 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4704 fi
4705 else
4706 ac_cv_path_SED=$SED
4707 fi
4708
4709 fi
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4711 printf "%s\n" "$ac_cv_path_SED" >&6; }
4712 SED="$ac_cv_path_SED"
4713 rm -f conftest.sed
4714
4715 test -z "$SED" && SED=sed
4716 Xsed="$SED -e 1s/^X//"
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4729 printf %s "checking for grep that handles long lines and -e... " >&6; }
4730 if test ${ac_cv_path_GREP+y}
4731 then :
4732 printf %s "(cached) " >&6
4733 else $as_nop
4734 if test -z "$GREP"; then
4735 ac_path_GREP_found=false
4736 # Loop through the user's path and test for each of PROGNAME-LIST
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4739 do
4740 IFS=$as_save_IFS
4741 case $as_dir in #(((
4742 '') as_dir=./ ;;
4743 */) ;;
4744 *) as_dir=$as_dir/ ;;
4745 esac
4746 for ac_prog in grep ggrep
4747 do
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4750 as_fn_executable_p "$ac_path_GREP" || continue
4751 # Check for GNU ac_path_GREP and select it if it is found.
4752 # Check for GNU $ac_path_GREP
4753 case `"$ac_path_GREP" --version 2>&1` in
4754 *GNU*)
4755 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4756 *)
4757 ac_count=0
4758 printf %s 0123456789 >"conftest.in"
4759 while :
4760 do
4761 cat "conftest.in" "conftest.in" >"conftest.tmp"
4762 mv "conftest.tmp" "conftest.in"
4763 cp "conftest.in" "conftest.nl"
4764 printf "%s\n" 'GREP' >> "conftest.nl"
4765 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4767 as_fn_arith $ac_count + 1 && ac_count=$as_val
4768 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4769 # Best one so far, save it but keep looking for a better one
4770 ac_cv_path_GREP="$ac_path_GREP"
4771 ac_path_GREP_max=$ac_count
4772 fi
4773 # 10*(2^10) chars as input seems more than enough
4774 test $ac_count -gt 10 && break
4775 done
4776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4777 esac
4778
4779 $ac_path_GREP_found && break 3
4780 done
4781 done
4782 done
4783 IFS=$as_save_IFS
4784 if test -z "$ac_cv_path_GREP"; then
4785 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4786 fi
4787 else
4788 ac_cv_path_GREP=$GREP
4789 fi
4790
4791 fi
4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4793 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4794 GREP="$ac_cv_path_GREP"
4795
4796
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4798 printf %s "checking for egrep... " >&6; }
4799 if test ${ac_cv_path_EGREP+y}
4800 then :
4801 printf %s "(cached) " >&6
4802 else $as_nop
4803 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4804 then ac_cv_path_EGREP="$GREP -E"
4805 else
4806 if test -z "$EGREP"; then
4807 ac_path_EGREP_found=false
4808 # Loop through the user's path and test for each of PROGNAME-LIST
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4811 do
4812 IFS=$as_save_IFS
4813 case $as_dir in #(((
4814 '') as_dir=./ ;;
4815 */) ;;
4816 *) as_dir=$as_dir/ ;;
4817 esac
4818 for ac_prog in egrep
4819 do
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4822 as_fn_executable_p "$ac_path_EGREP" || continue
4823 # Check for GNU ac_path_EGREP and select it if it is found.
4824 # Check for GNU $ac_path_EGREP
4825 case `"$ac_path_EGREP" --version 2>&1` in
4826 *GNU*)
4827 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4828 *)
4829 ac_count=0
4830 printf %s 0123456789 >"conftest.in"
4831 while :
4832 do
4833 cat "conftest.in" "conftest.in" >"conftest.tmp"
4834 mv "conftest.tmp" "conftest.in"
4835 cp "conftest.in" "conftest.nl"
4836 printf "%s\n" 'EGREP' >> "conftest.nl"
4837 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4839 as_fn_arith $ac_count + 1 && ac_count=$as_val
4840 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4841 # Best one so far, save it but keep looking for a better one
4842 ac_cv_path_EGREP="$ac_path_EGREP"
4843 ac_path_EGREP_max=$ac_count
4844 fi
4845 # 10*(2^10) chars as input seems more than enough
4846 test $ac_count -gt 10 && break
4847 done
4848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4849 esac
4850
4851 $ac_path_EGREP_found && break 3
4852 done
4853 done
4854 done
4855 IFS=$as_save_IFS
4856 if test -z "$ac_cv_path_EGREP"; then
4857 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4858 fi
4859 else
4860 ac_cv_path_EGREP=$EGREP
4861 fi
4862
4863 fi
4864 fi
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4866 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4867 EGREP="$ac_cv_path_EGREP"
4868
4869
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4871 printf %s "checking for fgrep... " >&6; }
4872 if test ${ac_cv_path_FGREP+y}
4873 then :
4874 printf %s "(cached) " >&6
4875 else $as_nop
4876 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4877 then ac_cv_path_FGREP="$GREP -F"
4878 else
4879 if test -z "$FGREP"; then
4880 ac_path_FGREP_found=false
4881 # Loop through the user's path and test for each of PROGNAME-LIST
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4884 do
4885 IFS=$as_save_IFS
4886 case $as_dir in #(((
4887 '') as_dir=./ ;;
4888 */) ;;
4889 *) as_dir=$as_dir/ ;;
4890 esac
4891 for ac_prog in fgrep
4892 do
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4895 as_fn_executable_p "$ac_path_FGREP" || continue
4896 # Check for GNU ac_path_FGREP and select it if it is found.
4897 # Check for GNU $ac_path_FGREP
4898 case `"$ac_path_FGREP" --version 2>&1` in
4899 *GNU*)
4900 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4901 *)
4902 ac_count=0
4903 printf %s 0123456789 >"conftest.in"
4904 while :
4905 do
4906 cat "conftest.in" "conftest.in" >"conftest.tmp"
4907 mv "conftest.tmp" "conftest.in"
4908 cp "conftest.in" "conftest.nl"
4909 printf "%s\n" 'FGREP' >> "conftest.nl"
4910 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4912 as_fn_arith $ac_count + 1 && ac_count=$as_val
4913 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4914 # Best one so far, save it but keep looking for a better one
4915 ac_cv_path_FGREP="$ac_path_FGREP"
4916 ac_path_FGREP_max=$ac_count
4917 fi
4918 # 10*(2^10) chars as input seems more than enough
4919 test $ac_count -gt 10 && break
4920 done
4921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4922 esac
4923
4924 $ac_path_FGREP_found && break 3
4925 done
4926 done
4927 done
4928 IFS=$as_save_IFS
4929 if test -z "$ac_cv_path_FGREP"; then
4930 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4931 fi
4932 else
4933 ac_cv_path_FGREP=$FGREP
4934 fi
4935
4936 fi
4937 fi
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4939 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4940 FGREP="$ac_cv_path_FGREP"
4941
4942
4943 test -z "$GREP" && GREP=grep
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963 # Check whether --with-gnu-ld was given.
4964 if test ${with_gnu_ld+y}
4965 then :
4966 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4967 else $as_nop
4968 with_gnu_ld=no
4969 fi
4970
4971 ac_prog=ld
4972 if test yes = "$GCC"; then
4973 # Check if gcc -print-prog-name=ld gives a path.
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4975 printf %s "checking for ld used by $CC... " >&6; }
4976 case $host in
4977 *-*-mingw*)
4978 # gcc leaves a trailing carriage return, which upsets mingw
4979 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4980 *)
4981 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4982 esac
4983 case $ac_prog in
4984 # Accept absolute paths.
4985 [\\/]* | ?:[\\/]*)
4986 re_direlt='/[^/][^/]*/\.\./'
4987 # Canonicalize the pathname of ld
4988 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4989 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4990 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4991 done
4992 test -z "$LD" && LD=$ac_prog
4993 ;;
4994 "")
4995 # If it fails, then pretend we aren't using GCC.
4996 ac_prog=ld
4997 ;;
4998 *)
4999 # If it is relative, then search for the first ld in PATH.
5000 with_gnu_ld=unknown
5001 ;;
5002 esac
5003 elif test yes = "$with_gnu_ld"; then
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5005 printf %s "checking for GNU ld... " >&6; }
5006 else
5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5008 printf %s "checking for non-GNU ld... " >&6; }
5009 fi
5010 if test ${lt_cv_path_LD+y}
5011 then :
5012 printf %s "(cached) " >&6
5013 else $as_nop
5014 if test -z "$LD"; then
5015 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5016 for ac_dir in $PATH; do
5017 IFS=$lt_save_ifs
5018 test -z "$ac_dir" && ac_dir=.
5019 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5020 lt_cv_path_LD=$ac_dir/$ac_prog
5021 # Check to see if the program is GNU ld. I'd rather use --version,
5022 # but apparently some variants of GNU ld only accept -v.
5023 # Break only if it was the GNU/non-GNU ld that we prefer.
5024 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5025 *GNU* | *'with BFD'*)
5026 test no != "$with_gnu_ld" && break
5027 ;;
5028 *)
5029 test yes != "$with_gnu_ld" && break
5030 ;;
5031 esac
5032 fi
5033 done
5034 IFS=$lt_save_ifs
5035 else
5036 lt_cv_path_LD=$LD # Let the user override the test with a path.
5037 fi
5038 fi
5039
5040 LD=$lt_cv_path_LD
5041 if test -n "$LD"; then
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5043 printf "%s\n" "$LD" >&6; }
5044 else
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 printf "%s\n" "no" >&6; }
5047 fi
5048 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5050 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5051 if test ${lt_cv_prog_gnu_ld+y}
5052 then :
5053 printf %s "(cached) " >&6
5054 else $as_nop
5055 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5056 case `$LD -v 2>&1 </dev/null` in
5057 *GNU* | *'with BFD'*)
5058 lt_cv_prog_gnu_ld=yes
5059 ;;
5060 *)
5061 lt_cv_prog_gnu_ld=no
5062 ;;
5063 esac
5064 fi
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5066 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5067 with_gnu_ld=$lt_cv_prog_gnu_ld
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5078 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5079 if test ${lt_cv_path_NM+y}
5080 then :
5081 printf %s "(cached) " >&6
5082 else $as_nop
5083 if test -n "$NM"; then
5084 # Let the user override the test.
5085 lt_cv_path_NM=$NM
5086 else
5087 lt_nm_to_check=${ac_tool_prefix}nm
5088 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5089 lt_nm_to_check="$lt_nm_to_check nm"
5090 fi
5091 for lt_tmp_nm in $lt_nm_to_check; do
5092 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5093 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5094 IFS=$lt_save_ifs
5095 test -z "$ac_dir" && ac_dir=.
5096 tmp_nm=$ac_dir/$lt_tmp_nm
5097 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5098 # Check to see if the nm accepts a BSD-compat flag.
5099 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5100 # nm: unknown option "B" ignored
5101 # Tru64's nm complains that /dev/null is an invalid object file
5102 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5103 case $build_os in
5104 mingw*) lt_bad_file=conftest.nm/nofile ;;
5105 *) lt_bad_file=/dev/null ;;
5106 esac
5107 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5108 *$lt_bad_file* | *'Invalid file or object type'*)
5109 lt_cv_path_NM="$tmp_nm -B"
5110 break 2
5111 ;;
5112 *)
5113 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5114 */dev/null*)
5115 lt_cv_path_NM="$tmp_nm -p"
5116 break 2
5117 ;;
5118 *)
5119 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5120 continue # so that we can try to find one that supports BSD flags
5121 ;;
5122 esac
5123 ;;
5124 esac
5125 fi
5126 done
5127 IFS=$lt_save_ifs
5128 done
5129 : ${lt_cv_path_NM=no}
5130 fi
5131 fi
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5133 printf "%s\n" "$lt_cv_path_NM" >&6; }
5134 if test no != "$lt_cv_path_NM"; then
5135 NM=$lt_cv_path_NM
5136 else
5137 # Didn't find any BSD compatible name lister, look for dumpbin.
5138 if test -n "$DUMPBIN"; then :
5139 # Let the user override the test.
5140 else
5141 if test -n "$ac_tool_prefix"; then
5142 for ac_prog in dumpbin "link -dump"
5143 do
5144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 printf %s "checking for $ac_word... " >&6; }
5148 if test ${ac_cv_prog_DUMPBIN+y}
5149 then :
5150 printf %s "(cached) " >&6
5151 else $as_nop
5152 if test -n "$DUMPBIN"; then
5153 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158 IFS=$as_save_IFS
5159 case $as_dir in #(((
5160 '') as_dir=./ ;;
5161 */) ;;
5162 *) as_dir=$as_dir/ ;;
5163 esac
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5166 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170 done
5171 done
5172 IFS=$as_save_IFS
5173
5174 fi
5175 fi
5176 DUMPBIN=$ac_cv_prog_DUMPBIN
5177 if test -n "$DUMPBIN"; then
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5179 printf "%s\n" "$DUMPBIN" >&6; }
5180 else
5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 printf "%s\n" "no" >&6; }
5183 fi
5184
5185
5186 test -n "$DUMPBIN" && break
5187 done
5188 fi
5189 if test -z "$DUMPBIN"; then
5190 ac_ct_DUMPBIN=$DUMPBIN
5191 for ac_prog in dumpbin "link -dump"
5192 do
5193 # Extract the first word of "$ac_prog", so it can be a program name with args.
5194 set dummy $ac_prog; ac_word=$2
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 printf %s "checking for $ac_word... " >&6; }
5197 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5198 then :
5199 printf %s "(cached) " >&6
5200 else $as_nop
5201 if test -n "$ac_ct_DUMPBIN"; then
5202 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207 IFS=$as_save_IFS
5208 case $as_dir in #(((
5209 '') as_dir=./ ;;
5210 */) ;;
5211 *) as_dir=$as_dir/ ;;
5212 esac
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219 done
5220 done
5221 IFS=$as_save_IFS
5222
5223 fi
5224 fi
5225 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5226 if test -n "$ac_ct_DUMPBIN"; then
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5228 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5229 else
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 printf "%s\n" "no" >&6; }
5232 fi
5233
5234
5235 test -n "$ac_ct_DUMPBIN" && break
5236 done
5237
5238 if test "x$ac_ct_DUMPBIN" = x; then
5239 DUMPBIN=":"
5240 else
5241 case $cross_compiling:$ac_tool_warned in
5242 yes:)
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245 ac_tool_warned=yes ;;
5246 esac
5247 DUMPBIN=$ac_ct_DUMPBIN
5248 fi
5249 fi
5250
5251 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5252 *COFF*)
5253 DUMPBIN="$DUMPBIN -symbols -headers"
5254 ;;
5255 *)
5256 DUMPBIN=:
5257 ;;
5258 esac
5259 fi
5260
5261 if test : != "$DUMPBIN"; then
5262 NM=$DUMPBIN
5263 fi
5264 fi
5265 test -z "$NM" && NM=nm
5266
5267
5268
5269
5270
5271
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5273 printf %s "checking the name lister ($NM) interface... " >&6; }
5274 if test ${lt_cv_nm_interface+y}
5275 then :
5276 printf %s "(cached) " >&6
5277 else $as_nop
5278 lt_cv_nm_interface="BSD nm"
5279 echo "int some_variable = 0;" > conftest.$ac_ext
5280 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5281 (eval "$ac_compile" 2>conftest.err)
5282 cat conftest.err >&5
5283 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5284 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5285 cat conftest.err >&5
5286 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5287 cat conftest.out >&5
5288 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5289 lt_cv_nm_interface="MS dumpbin"
5290 fi
5291 rm -f conftest*
5292 fi
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5294 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5295
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5297 printf %s "checking whether ln -s works... " >&6; }
5298 LN_S=$as_ln_s
5299 if test "$LN_S" = "ln -s"; then
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5301 printf "%s\n" "yes" >&6; }
5302 else
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5304 printf "%s\n" "no, using $LN_S" >&6; }
5305 fi
5306
5307 # find the maximum length of command line arguments
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5309 printf %s "checking the maximum length of command line arguments... " >&6; }
5310 if test ${lt_cv_sys_max_cmd_len+y}
5311 then :
5312 printf %s "(cached) " >&6
5313 else $as_nop
5314 i=0
5315 teststring=ABCD
5316
5317 case $build_os in
5318 msdosdjgpp*)
5319 # On DJGPP, this test can blow up pretty badly due to problems in libc
5320 # (any single argument exceeding 2000 bytes causes a buffer overrun
5321 # during glob expansion). Even if it were fixed, the result of this
5322 # check would be larger than it should be.
5323 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5324 ;;
5325
5326 gnu*)
5327 # Under GNU Hurd, this test is not required because there is
5328 # no limit to the length of command line arguments.
5329 # Libtool will interpret -1 as no limit whatsoever
5330 lt_cv_sys_max_cmd_len=-1;
5331 ;;
5332
5333 cygwin* | mingw* | cegcc*)
5334 # On Win9x/ME, this test blows up -- it succeeds, but takes
5335 # about 5 minutes as the teststring grows exponentially.
5336 # Worse, since 9x/ME are not pre-emptively multitasking,
5337 # you end up with a "frozen" computer, even though with patience
5338 # the test eventually succeeds (with a max line length of 256k).
5339 # Instead, let's just punt: use the minimum linelength reported by
5340 # all of the supported platforms: 8192 (on NT/2K/XP).
5341 lt_cv_sys_max_cmd_len=8192;
5342 ;;
5343
5344 mint*)
5345 # On MiNT this can take a long time and run out of memory.
5346 lt_cv_sys_max_cmd_len=8192;
5347 ;;
5348
5349 amigaos*)
5350 # On AmigaOS with pdksh, this test takes hours, literally.
5351 # So we just punt and use a minimum line length of 8192.
5352 lt_cv_sys_max_cmd_len=8192;
5353 ;;
5354
5355 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5356 # This has been around since 386BSD, at least. Likely further.
5357 if test -x /sbin/sysctl; then
5358 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5359 elif test -x /usr/sbin/sysctl; then
5360 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5361 else
5362 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5363 fi
5364 # And add a safety zone
5365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5367 ;;
5368
5369 interix*)
5370 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5371 lt_cv_sys_max_cmd_len=196608
5372 ;;
5373
5374 os2*)
5375 # The test takes a long time on OS/2.
5376 lt_cv_sys_max_cmd_len=8192
5377 ;;
5378
5379 osf*)
5380 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5381 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5382 # nice to cause kernel panics so lets avoid the loop below.
5383 # First set a reasonable default.
5384 lt_cv_sys_max_cmd_len=16384
5385 #
5386 if test -x /sbin/sysconfig; then
5387 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5388 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5389 esac
5390 fi
5391 ;;
5392 sco3.2v5*)
5393 lt_cv_sys_max_cmd_len=102400
5394 ;;
5395 sysv5* | sco5v6* | sysv4.2uw2*)
5396 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5397 if test -n "$kargmax"; then
5398 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5399 else
5400 lt_cv_sys_max_cmd_len=32768
5401 fi
5402 ;;
5403 *)
5404 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5405 if test -n "$lt_cv_sys_max_cmd_len" && \
5406 test undefined != "$lt_cv_sys_max_cmd_len"; then
5407 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5408 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5409 else
5410 # Make teststring a little bigger before we do anything with it.
5411 # a 1K string should be a reasonable start.
5412 for i in 1 2 3 4 5 6 7 8; do
5413 teststring=$teststring$teststring
5414 done
5415 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5416 # If test is not a shell built-in, we'll probably end up computing a
5417 # maximum length that is only half of the actual maximum length, but
5418 # we can't tell.
5419 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5420 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5421 test 17 != "$i" # 1/2 MB should be enough
5422 do
5423 i=`expr $i + 1`
5424 teststring=$teststring$teststring
5425 done
5426 # Only check the string length outside the loop.
5427 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5428 teststring=
5429 # Add a significant safety factor because C++ compilers can tack on
5430 # massive amounts of additional arguments before passing them to the
5431 # linker. It appears as though 1/2 is a usable value.
5432 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5433 fi
5434 ;;
5435 esac
5436
5437 fi
5438
5439 if test -n "$lt_cv_sys_max_cmd_len"; then
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5441 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5442 else
5443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5444 printf "%s\n" "none" >&6; }
5445 fi
5446 max_cmd_len=$lt_cv_sys_max_cmd_len
5447
5448
5449
5450
5451
5452
5453 : ${CP="cp -f"}
5454 : ${MV="mv -f"}
5455 : ${RM="rm -f"}
5456
5457 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5458 lt_unset=unset
5459 else
5460 lt_unset=false
5461 fi
5462
5463
5464
5465
5466
5467 # test EBCDIC or ASCII
5468 case `echo X|tr X '\101'` in
5469 A) # ASCII based system
5470 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5471 lt_SP2NL='tr \040 \012'
5472 lt_NL2SP='tr \015\012 \040\040'
5473 ;;
5474 *) # EBCDIC based system
5475 lt_SP2NL='tr \100 \n'
5476 lt_NL2SP='tr \r\n \100\100'
5477 ;;
5478 esac
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5489 printf %s "checking how to convert $build file names to $host format... " >&6; }
5490 if test ${lt_cv_to_host_file_cmd+y}
5491 then :
5492 printf %s "(cached) " >&6
5493 else $as_nop
5494 case $host in
5495 *-*-mingw* )
5496 case $build in
5497 *-*-mingw* ) # actually msys
5498 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5499 ;;
5500 *-*-cygwin* )
5501 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5502 ;;
5503 * ) # otherwise, assume *nix
5504 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5505 ;;
5506 esac
5507 ;;
5508 *-*-cygwin* )
5509 case $build in
5510 *-*-mingw* ) # actually msys
5511 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5512 ;;
5513 *-*-cygwin* )
5514 lt_cv_to_host_file_cmd=func_convert_file_noop
5515 ;;
5516 * ) # otherwise, assume *nix
5517 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5518 ;;
5519 esac
5520 ;;
5521 * ) # unhandled hosts (and "normal" native builds)
5522 lt_cv_to_host_file_cmd=func_convert_file_noop
5523 ;;
5524 esac
5525
5526 fi
5527
5528 to_host_file_cmd=$lt_cv_to_host_file_cmd
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5530 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5531
5532
5533
5534
5535
5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5537 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5538 if test ${lt_cv_to_tool_file_cmd+y}
5539 then :
5540 printf %s "(cached) " >&6
5541 else $as_nop
5542 #assume ordinary cross tools, or native build.
5543 lt_cv_to_tool_file_cmd=func_convert_file_noop
5544 case $host in
5545 *-*-mingw* )
5546 case $build in
5547 *-*-mingw* ) # actually msys
5548 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5549 ;;
5550 esac
5551 ;;
5552 esac
5553
5554 fi
5555
5556 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5558 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5559
5560
5561
5562
5563
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5565 printf %s "checking for $LD option to reload object files... " >&6; }
5566 if test ${lt_cv_ld_reload_flag+y}
5567 then :
5568 printf %s "(cached) " >&6
5569 else $as_nop
5570 lt_cv_ld_reload_flag='-r'
5571 fi
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5573 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5574 reload_flag=$lt_cv_ld_reload_flag
5575 case $reload_flag in
5576 "" | " "*) ;;
5577 *) reload_flag=" $reload_flag" ;;
5578 esac
5579 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5580 case $host_os in
5581 cygwin* | mingw* | pw32* | cegcc*)
5582 if test yes != "$GCC"; then
5583 reload_cmds=false
5584 fi
5585 ;;
5586 darwin*)
5587 if test yes = "$GCC"; then
5588 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5589 else
5590 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5591 fi
5592 ;;
5593 esac
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603 if test -n "$ac_tool_prefix"; then
5604 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5605 set dummy ${ac_tool_prefix}file; ac_word=$2
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 printf %s "checking for $ac_word... " >&6; }
5608 if test ${ac_cv_prog_FILECMD+y}
5609 then :
5610 printf %s "(cached) " >&6
5611 else $as_nop
5612 if test -n "$FILECMD"; then
5613 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618 IFS=$as_save_IFS
5619 case $as_dir in #(((
5620 '') as_dir=./ ;;
5621 */) ;;
5622 *) as_dir=$as_dir/ ;;
5623 esac
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5628 break 2
5629 fi
5630 done
5631 done
5632 IFS=$as_save_IFS
5633
5634 fi
5635 fi
5636 FILECMD=$ac_cv_prog_FILECMD
5637 if test -n "$FILECMD"; then
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5639 printf "%s\n" "$FILECMD" >&6; }
5640 else
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 printf "%s\n" "no" >&6; }
5643 fi
5644
5645
5646 fi
5647 if test -z "$ac_cv_prog_FILECMD"; then
5648 ac_ct_FILECMD=$FILECMD
5649 # Extract the first word of "file", so it can be a program name with args.
5650 set dummy file; ac_word=$2
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 printf %s "checking for $ac_word... " >&6; }
5653 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5654 then :
5655 printf %s "(cached) " >&6
5656 else $as_nop
5657 if test -n "$ac_ct_FILECMD"; then
5658 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5662 do
5663 IFS=$as_save_IFS
5664 case $as_dir in #(((
5665 '') as_dir=./ ;;
5666 */) ;;
5667 *) as_dir=$as_dir/ ;;
5668 esac
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5671 ac_cv_prog_ac_ct_FILECMD="file"
5672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5673 break 2
5674 fi
5675 done
5676 done
5677 IFS=$as_save_IFS
5678
5679 fi
5680 fi
5681 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5682 if test -n "$ac_ct_FILECMD"; then
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5684 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5685 else
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 printf "%s\n" "no" >&6; }
5688 fi
5689
5690 if test "x$ac_ct_FILECMD" = x; then
5691 FILECMD=":"
5692 else
5693 case $cross_compiling:$ac_tool_warned in
5694 yes:)
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5696 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5697 ac_tool_warned=yes ;;
5698 esac
5699 FILECMD=$ac_ct_FILECMD
5700 fi
5701 else
5702 FILECMD="$ac_cv_prog_FILECMD"
5703 fi
5704
5705
5706
5707
5708
5709
5710
5711 if test -n "$ac_tool_prefix"; then
5712 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5713 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 printf %s "checking for $ac_word... " >&6; }
5716 if test ${ac_cv_prog_OBJDUMP+y}
5717 then :
5718 printf %s "(cached) " >&6
5719 else $as_nop
5720 if test -n "$OBJDUMP"; then
5721 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726 IFS=$as_save_IFS
5727 case $as_dir in #(((
5728 '') as_dir=./ ;;
5729 */) ;;
5730 *) as_dir=$as_dir/ ;;
5731 esac
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738 done
5739 done
5740 IFS=$as_save_IFS
5741
5742 fi
5743 fi
5744 OBJDUMP=$ac_cv_prog_OBJDUMP
5745 if test -n "$OBJDUMP"; then
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5747 printf "%s\n" "$OBJDUMP" >&6; }
5748 else
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 printf "%s\n" "no" >&6; }
5751 fi
5752
5753
5754 fi
5755 if test -z "$ac_cv_prog_OBJDUMP"; then
5756 ac_ct_OBJDUMP=$OBJDUMP
5757 # Extract the first word of "objdump", so it can be a program name with args.
5758 set dummy objdump; ac_word=$2
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 printf %s "checking for $ac_word... " >&6; }
5761 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5762 then :
5763 printf %s "(cached) " >&6
5764 else $as_nop
5765 if test -n "$ac_ct_OBJDUMP"; then
5766 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771 IFS=$as_save_IFS
5772 case $as_dir in #(((
5773 '') as_dir=./ ;;
5774 */) ;;
5775 *) as_dir=$as_dir/ ;;
5776 esac
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783 done
5784 done
5785 IFS=$as_save_IFS
5786
5787 fi
5788 fi
5789 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5790 if test -n "$ac_ct_OBJDUMP"; then
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5792 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5793 else
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 printf "%s\n" "no" >&6; }
5796 fi
5797
5798 if test "x$ac_ct_OBJDUMP" = x; then
5799 OBJDUMP="false"
5800 else
5801 case $cross_compiling:$ac_tool_warned in
5802 yes:)
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5804 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5805 ac_tool_warned=yes ;;
5806 esac
5807 OBJDUMP=$ac_ct_OBJDUMP
5808 fi
5809 else
5810 OBJDUMP="$ac_cv_prog_OBJDUMP"
5811 fi
5812
5813 test -z "$OBJDUMP" && OBJDUMP=objdump
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5824 printf %s "checking how to recognize dependent libraries... " >&6; }
5825 if test ${lt_cv_deplibs_check_method+y}
5826 then :
5827 printf %s "(cached) " >&6
5828 else $as_nop
5829 lt_cv_file_magic_cmd='$MAGIC_CMD'
5830 lt_cv_file_magic_test_file=
5831 lt_cv_deplibs_check_method='unknown'
5832 # Need to set the preceding variable on all platforms that support
5833 # interlibrary dependencies.
5834 # 'none' -- dependencies not supported.
5835 # 'unknown' -- same as none, but documents that we really don't know.
5836 # 'pass_all' -- all dependencies passed with no checks.
5837 # 'test_compile' -- check by making test program.
5838 # 'file_magic [[regex]]' -- check by looking for files in library path
5839 # that responds to the $file_magic_cmd with a given extended regex.
5840 # If you have 'file' or equivalent on your system and you're not sure
5841 # whether 'pass_all' will *always* work, you probably want this one.
5842
5843 case $host_os in
5844 aix[4-9]*)
5845 lt_cv_deplibs_check_method=pass_all
5846 ;;
5847
5848 beos*)
5849 lt_cv_deplibs_check_method=pass_all
5850 ;;
5851
5852 bsdi[45]*)
5853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5854 lt_cv_file_magic_cmd='$FILECMD -L'
5855 lt_cv_file_magic_test_file=/shlib/libc.so
5856 ;;
5857
5858 cygwin*)
5859 # func_win32_libid is a shell function defined in ltmain.sh
5860 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5861 lt_cv_file_magic_cmd='func_win32_libid'
5862 ;;
5863
5864 mingw* | pw32*)
5865 # Base MSYS/MinGW do not provide the 'file' command needed by
5866 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5867 # unless we find 'file', for example because we are cross-compiling.
5868 if ( file / ) >/dev/null 2>&1; then
5869 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5870 lt_cv_file_magic_cmd='func_win32_libid'
5871 else
5872 # Keep this pattern in sync with the one in func_win32_libid.
5873 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5874 lt_cv_file_magic_cmd='$OBJDUMP -f'
5875 fi
5876 ;;
5877
5878 cegcc*)
5879 # use the weaker test based on 'objdump'. See mingw*.
5880 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5881 lt_cv_file_magic_cmd='$OBJDUMP -f'
5882 ;;
5883
5884 darwin* | rhapsody*)
5885 lt_cv_deplibs_check_method=pass_all
5886 ;;
5887
5888 freebsd* | dragonfly* | midnightbsd*)
5889 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5890 case $host_cpu in
5891 i*86 )
5892 # Not sure whether the presence of OpenBSD here was a mistake.
5893 # Let's accept both of them until this is cleared up.
5894 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5895 lt_cv_file_magic_cmd=$FILECMD
5896 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5897 ;;
5898 esac
5899 else
5900 lt_cv_deplibs_check_method=pass_all
5901 fi
5902 ;;
5903
5904 haiku*)
5905 lt_cv_deplibs_check_method=pass_all
5906 ;;
5907
5908 hpux10.20* | hpux11*)
5909 lt_cv_file_magic_cmd=$FILECMD
5910 case $host_cpu in
5911 ia64*)
5912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5913 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5914 ;;
5915 hppa*64*)
5916 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]'
5917 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5918 ;;
5919 *)
5920 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5921 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5922 ;;
5923 esac
5924 ;;
5925
5926 interix[3-9]*)
5927 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5929 ;;
5930
5931 irix5* | irix6* | nonstopux*)
5932 case $LD in
5933 *-32|*"-32 ") libmagic=32-bit;;
5934 *-n32|*"-n32 ") libmagic=N32;;
5935 *-64|*"-64 ") libmagic=64-bit;;
5936 *) libmagic=never-match;;
5937 esac
5938 lt_cv_deplibs_check_method=pass_all
5939 ;;
5940
5941 # This must be glibc/ELF.
5942 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5943 lt_cv_deplibs_check_method=pass_all
5944 ;;
5945
5946 netbsd* | netbsdelf*-gnu)
5947 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5949 else
5950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5951 fi
5952 ;;
5953
5954 newos6*)
5955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5956 lt_cv_file_magic_cmd=$FILECMD
5957 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5958 ;;
5959
5960 *nto* | *qnx*)
5961 lt_cv_deplibs_check_method=pass_all
5962 ;;
5963
5964 openbsd* | bitrig*)
5965 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5967 else
5968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5969 fi
5970 ;;
5971
5972 osf3* | osf4* | osf5*)
5973 lt_cv_deplibs_check_method=pass_all
5974 ;;
5975
5976 rdos*)
5977 lt_cv_deplibs_check_method=pass_all
5978 ;;
5979
5980 solaris*)
5981 lt_cv_deplibs_check_method=pass_all
5982 ;;
5983
5984 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5985 lt_cv_deplibs_check_method=pass_all
5986 ;;
5987
5988 sysv4 | sysv4.3*)
5989 case $host_vendor in
5990 motorola)
5991 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]'
5992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5993 ;;
5994 ncr)
5995 lt_cv_deplibs_check_method=pass_all
5996 ;;
5997 sequent)
5998 lt_cv_file_magic_cmd='/bin/file'
5999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6000 ;;
6001 sni)
6002 lt_cv_file_magic_cmd='/bin/file'
6003 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6004 lt_cv_file_magic_test_file=/lib/libc.so
6005 ;;
6006 siemens)
6007 lt_cv_deplibs_check_method=pass_all
6008 ;;
6009 pc)
6010 lt_cv_deplibs_check_method=pass_all
6011 ;;
6012 esac
6013 ;;
6014
6015 tpf*)
6016 lt_cv_deplibs_check_method=pass_all
6017 ;;
6018 os2*)
6019 lt_cv_deplibs_check_method=pass_all
6020 ;;
6021 esac
6022
6023 fi
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6025 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6026
6027 file_magic_glob=
6028 want_nocaseglob=no
6029 if test "$build" = "$host"; then
6030 case $host_os in
6031 mingw* | pw32*)
6032 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6033 want_nocaseglob=yes
6034 else
6035 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6036 fi
6037 ;;
6038 esac
6039 fi
6040
6041 file_magic_cmd=$lt_cv_file_magic_cmd
6042 deplibs_check_method=$lt_cv_deplibs_check_method
6043 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066 if test -n "$ac_tool_prefix"; then
6067 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6068 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 printf %s "checking for $ac_word... " >&6; }
6071 if test ${ac_cv_prog_DLLTOOL+y}
6072 then :
6073 printf %s "(cached) " >&6
6074 else $as_nop
6075 if test -n "$DLLTOOL"; then
6076 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081 IFS=$as_save_IFS
6082 case $as_dir in #(((
6083 '') as_dir=./ ;;
6084 */) ;;
6085 *) as_dir=$as_dir/ ;;
6086 esac
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093 done
6094 done
6095 IFS=$as_save_IFS
6096
6097 fi
6098 fi
6099 DLLTOOL=$ac_cv_prog_DLLTOOL
6100 if test -n "$DLLTOOL"; then
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6102 printf "%s\n" "$DLLTOOL" >&6; }
6103 else
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 printf "%s\n" "no" >&6; }
6106 fi
6107
6108
6109 fi
6110 if test -z "$ac_cv_prog_DLLTOOL"; then
6111 ac_ct_DLLTOOL=$DLLTOOL
6112 # Extract the first word of "dlltool", so it can be a program name with args.
6113 set dummy dlltool; ac_word=$2
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 printf %s "checking for $ac_word... " >&6; }
6116 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6117 then :
6118 printf %s "(cached) " >&6
6119 else $as_nop
6120 if test -n "$ac_ct_DLLTOOL"; then
6121 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 case $as_dir in #(((
6128 '') as_dir=./ ;;
6129 */) ;;
6130 *) as_dir=$as_dir/ ;;
6131 esac
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6134 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6136 break 2
6137 fi
6138 done
6139 done
6140 IFS=$as_save_IFS
6141
6142 fi
6143 fi
6144 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6145 if test -n "$ac_ct_DLLTOOL"; then
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6147 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6148 else
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 printf "%s\n" "no" >&6; }
6151 fi
6152
6153 if test "x$ac_ct_DLLTOOL" = x; then
6154 DLLTOOL="false"
6155 else
6156 case $cross_compiling:$ac_tool_warned in
6157 yes:)
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160 ac_tool_warned=yes ;;
6161 esac
6162 DLLTOOL=$ac_ct_DLLTOOL
6163 fi
6164 else
6165 DLLTOOL="$ac_cv_prog_DLLTOOL"
6166 fi
6167
6168 test -z "$DLLTOOL" && DLLTOOL=dlltool
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6180 printf %s "checking how to associate runtime and link libraries... " >&6; }
6181 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6182 then :
6183 printf %s "(cached) " >&6
6184 else $as_nop
6185 lt_cv_sharedlib_from_linklib_cmd='unknown'
6186
6187 case $host_os in
6188 cygwin* | mingw* | pw32* | cegcc*)
6189 # two different shell functions defined in ltmain.sh;
6190 # decide which one to use based on capabilities of $DLLTOOL
6191 case `$DLLTOOL --help 2>&1` in
6192 *--identify-strict*)
6193 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6194 ;;
6195 *)
6196 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6197 ;;
6198 esac
6199 ;;
6200 *)
6201 # fallback: assume linklib IS sharedlib
6202 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6203 ;;
6204 esac
6205
6206 fi
6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6208 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6209 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6210 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6211
6212
6213
6214
6215
6216
6217
6218 if test -n "$ac_tool_prefix"; then
6219 for ac_prog in ar
6220 do
6221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 printf %s "checking for $ac_word... " >&6; }
6225 if test ${ac_cv_prog_AR+y}
6226 then :
6227 printf %s "(cached) " >&6
6228 else $as_nop
6229 if test -n "$AR"; then
6230 ac_cv_prog_AR="$AR" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235 IFS=$as_save_IFS
6236 case $as_dir in #(((
6237 '') as_dir=./ ;;
6238 */) ;;
6239 *) as_dir=$as_dir/ ;;
6240 esac
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6243 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6245 break 2
6246 fi
6247 done
6248 done
6249 IFS=$as_save_IFS
6250
6251 fi
6252 fi
6253 AR=$ac_cv_prog_AR
6254 if test -n "$AR"; then
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6256 printf "%s\n" "$AR" >&6; }
6257 else
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 printf "%s\n" "no" >&6; }
6260 fi
6261
6262
6263 test -n "$AR" && break
6264 done
6265 fi
6266 if test -z "$AR"; then
6267 ac_ct_AR=$AR
6268 for ac_prog in ar
6269 do
6270 # Extract the first word of "$ac_prog", so it can be a program name with args.
6271 set dummy $ac_prog; ac_word=$2
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273 printf %s "checking for $ac_word... " >&6; }
6274 if test ${ac_cv_prog_ac_ct_AR+y}
6275 then :
6276 printf %s "(cached) " >&6
6277 else $as_nop
6278 if test -n "$ac_ct_AR"; then
6279 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284 IFS=$as_save_IFS
6285 case $as_dir in #(((
6286 '') as_dir=./ ;;
6287 */) ;;
6288 *) as_dir=$as_dir/ ;;
6289 esac
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6292 ac_cv_prog_ac_ct_AR="$ac_prog"
6293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300 fi
6301 fi
6302 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6303 if test -n "$ac_ct_AR"; then
6304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6305 printf "%s\n" "$ac_ct_AR" >&6; }
6306 else
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 printf "%s\n" "no" >&6; }
6309 fi
6310
6311
6312 test -n "$ac_ct_AR" && break
6313 done
6314
6315 if test "x$ac_ct_AR" = x; then
6316 AR="false"
6317 else
6318 case $cross_compiling:$ac_tool_warned in
6319 yes:)
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6321 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6322 ac_tool_warned=yes ;;
6323 esac
6324 AR=$ac_ct_AR
6325 fi
6326 fi
6327
6328 : ${AR=ar}
6329
6330
6331
6332
6333
6334
6335 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6336 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6337 # higher priority because thats what people were doing historically (setting
6338 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6339 # variable obsoleted/removed.
6340
6341 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6342 lt_ar_flags=$AR_FLAGS
6343
6344
6345
6346
6347
6348
6349 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6350 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6351
6352
6353
6354
6355
6356
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6358 printf %s "checking for archiver @FILE support... " >&6; }
6359 if test ${lt_cv_ar_at_file+y}
6360 then :
6361 printf %s "(cached) " >&6
6362 else $as_nop
6363 lt_cv_ar_at_file=no
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6366
6367 int
6368 main (void)
6369 {
6370
6371 ;
6372 return 0;
6373 }
6374 _ACEOF
6375 if ac_fn_c_try_compile "$LINENO"
6376 then :
6377 echo conftest.$ac_objext > conftest.lst
6378 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6380 (eval $lt_ar_try) 2>&5
6381 ac_status=$?
6382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383 test $ac_status = 0; }
6384 if test 0 -eq "$ac_status"; then
6385 # Ensure the archiver fails upon bogus file names.
6386 rm -f conftest.$ac_objext libconftest.a
6387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6388 (eval $lt_ar_try) 2>&5
6389 ac_status=$?
6390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; }
6392 if test 0 -ne "$ac_status"; then
6393 lt_cv_ar_at_file=@
6394 fi
6395 fi
6396 rm -f conftest.* libconftest.a
6397
6398 fi
6399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6400
6401 fi
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6403 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6404
6405 if test no = "$lt_cv_ar_at_file"; then
6406 archiver_list_spec=
6407 else
6408 archiver_list_spec=$lt_cv_ar_at_file
6409 fi
6410
6411
6412
6413
6414
6415
6416
6417 if test -n "$ac_tool_prefix"; then
6418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6419 set dummy ${ac_tool_prefix}strip; ac_word=$2
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421 printf %s "checking for $ac_word... " >&6; }
6422 if test ${ac_cv_prog_STRIP+y}
6423 then :
6424 printf %s "(cached) " >&6
6425 else $as_nop
6426 if test -n "$STRIP"; then
6427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432 IFS=$as_save_IFS
6433 case $as_dir in #(((
6434 '') as_dir=./ ;;
6435 */) ;;
6436 *) as_dir=$as_dir/ ;;
6437 esac
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6440 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6442 break 2
6443 fi
6444 done
6445 done
6446 IFS=$as_save_IFS
6447
6448 fi
6449 fi
6450 STRIP=$ac_cv_prog_STRIP
6451 if test -n "$STRIP"; then
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6453 printf "%s\n" "$STRIP" >&6; }
6454 else
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 printf "%s\n" "no" >&6; }
6457 fi
6458
6459
6460 fi
6461 if test -z "$ac_cv_prog_STRIP"; then
6462 ac_ct_STRIP=$STRIP
6463 # Extract the first word of "strip", so it can be a program name with args.
6464 set dummy strip; ac_word=$2
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 printf %s "checking for $ac_word... " >&6; }
6467 if test ${ac_cv_prog_ac_ct_STRIP+y}
6468 then :
6469 printf %s "(cached) " >&6
6470 else $as_nop
6471 if test -n "$ac_ct_STRIP"; then
6472 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6473 else
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477 IFS=$as_save_IFS
6478 case $as_dir in #(((
6479 '') as_dir=./ ;;
6480 */) ;;
6481 *) as_dir=$as_dir/ ;;
6482 esac
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_ac_ct_STRIP="strip"
6486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489 done
6490 done
6491 IFS=$as_save_IFS
6492
6493 fi
6494 fi
6495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6496 if test -n "$ac_ct_STRIP"; then
6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6498 printf "%s\n" "$ac_ct_STRIP" >&6; }
6499 else
6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 printf "%s\n" "no" >&6; }
6502 fi
6503
6504 if test "x$ac_ct_STRIP" = x; then
6505 STRIP=":"
6506 else
6507 case $cross_compiling:$ac_tool_warned in
6508 yes:)
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6510 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6511 ac_tool_warned=yes ;;
6512 esac
6513 STRIP=$ac_ct_STRIP
6514 fi
6515 else
6516 STRIP="$ac_cv_prog_STRIP"
6517 fi
6518
6519 test -z "$STRIP" && STRIP=:
6520
6521
6522
6523
6524
6525
6526 if test -n "$ac_tool_prefix"; then
6527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6528 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 printf %s "checking for $ac_word... " >&6; }
6531 if test ${ac_cv_prog_RANLIB+y}
6532 then :
6533 printf %s "(cached) " >&6
6534 else $as_nop
6535 if test -n "$RANLIB"; then
6536 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541 IFS=$as_save_IFS
6542 case $as_dir in #(((
6543 '') as_dir=./ ;;
6544 */) ;;
6545 *) as_dir=$as_dir/ ;;
6546 esac
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553 done
6554 done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 RANLIB=$ac_cv_prog_RANLIB
6560 if test -n "$RANLIB"; then
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6562 printf "%s\n" "$RANLIB" >&6; }
6563 else
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 printf "%s\n" "no" >&6; }
6566 fi
6567
6568
6569 fi
6570 if test -z "$ac_cv_prog_RANLIB"; then
6571 ac_ct_RANLIB=$RANLIB
6572 # Extract the first word of "ranlib", so it can be a program name with args.
6573 set dummy ranlib; ac_word=$2
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 printf %s "checking for $ac_word... " >&6; }
6576 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6577 then :
6578 printf %s "(cached) " >&6
6579 else $as_nop
6580 if test -n "$ac_ct_RANLIB"; then
6581 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586 IFS=$as_save_IFS
6587 case $as_dir in #(((
6588 '') as_dir=./ ;;
6589 */) ;;
6590 *) as_dir=$as_dir/ ;;
6591 esac
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6594 ac_cv_prog_ac_ct_RANLIB="ranlib"
6595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598 done
6599 done
6600 IFS=$as_save_IFS
6601
6602 fi
6603 fi
6604 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6605 if test -n "$ac_ct_RANLIB"; then
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6607 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6608 else
6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 printf "%s\n" "no" >&6; }
6611 fi
6612
6613 if test "x$ac_ct_RANLIB" = x; then
6614 RANLIB=":"
6615 else
6616 case $cross_compiling:$ac_tool_warned in
6617 yes:)
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6619 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620 ac_tool_warned=yes ;;
6621 esac
6622 RANLIB=$ac_ct_RANLIB
6623 fi
6624 else
6625 RANLIB="$ac_cv_prog_RANLIB"
6626 fi
6627
6628 test -z "$RANLIB" && RANLIB=:
6629
6630
6631
6632
6633
6634
6635 # Determine commands to create old-style static archives.
6636 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6637 old_postinstall_cmds='chmod 644 $oldlib'
6638 old_postuninstall_cmds=
6639
6640 if test -n "$RANLIB"; then
6641 case $host_os in
6642 bitrig* | openbsd*)
6643 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6644 ;;
6645 *)
6646 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6647 ;;
6648 esac
6649 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6650 fi
6651
6652 case $host_os in
6653 darwin*)
6654 lock_old_archive_extraction=yes ;;
6655 *)
6656 lock_old_archive_extraction=no ;;
6657 esac
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679 for ac_prog in gawk mawk nawk awk
6680 do
6681 # Extract the first word of "$ac_prog", so it can be a program name with args.
6682 set dummy $ac_prog; ac_word=$2
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 printf %s "checking for $ac_word... " >&6; }
6685 if test ${ac_cv_prog_AWK+y}
6686 then :
6687 printf %s "(cached) " >&6
6688 else $as_nop
6689 if test -n "$AWK"; then
6690 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695 IFS=$as_save_IFS
6696 case $as_dir in #(((
6697 '') as_dir=./ ;;
6698 */) ;;
6699 *) as_dir=$as_dir/ ;;
6700 esac
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_AWK="$ac_prog"
6704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707 done
6708 done
6709 IFS=$as_save_IFS
6710
6711 fi
6712 fi
6713 AWK=$ac_cv_prog_AWK
6714 if test -n "$AWK"; then
6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6716 printf "%s\n" "$AWK" >&6; }
6717 else
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 printf "%s\n" "no" >&6; }
6720 fi
6721
6722
6723 test -n "$AWK" && break
6724 done
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744 # If no C compiler was specified, use CC.
6745 LTCC=${LTCC-"$CC"}
6746
6747 # If no C compiler flags were specified, use CFLAGS.
6748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6749
6750 # Allow CC to be a program name with arguments.
6751 compiler=$CC
6752
6753
6754 # Check for command to grab the raw symbol name followed by C symbol from nm.
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6756 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6757 if test ${lt_cv_sys_global_symbol_pipe+y}
6758 then :
6759 printf %s "(cached) " >&6
6760 else $as_nop
6761
6762 # These are sane defaults that work on at least a few old systems.
6763 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6764
6765 # Character class describing NM global symbol codes.
6766 symcode='[BCDEGRST]'
6767
6768 # Regexp to match symbols that can be accessed directly from C.
6769 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6770
6771 # Define system-specific variables.
6772 case $host_os in
6773 aix*)
6774 symcode='[BCDT]'
6775 ;;
6776 cygwin* | mingw* | pw32* | cegcc*)
6777 symcode='[ABCDGISTW]'
6778 ;;
6779 hpux*)
6780 if test ia64 = "$host_cpu"; then
6781 symcode='[ABCDEGRST]'
6782 fi
6783 ;;
6784 irix* | nonstopux*)
6785 symcode='[BCDEGRST]'
6786 ;;
6787 osf*)
6788 symcode='[BCDEGQRST]'
6789 ;;
6790 solaris*)
6791 symcode='[BDRT]'
6792 ;;
6793 sco3.2v5*)
6794 symcode='[DT]'
6795 ;;
6796 sysv4.2uw2*)
6797 symcode='[DT]'
6798 ;;
6799 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6800 symcode='[ABDT]'
6801 ;;
6802 sysv4)
6803 symcode='[DFNSTU]'
6804 ;;
6805 esac
6806
6807 # If we're using GNU nm, then use its standard symbol codes.
6808 case `$NM -V 2>&1` in
6809 *GNU* | *'with BFD'*)
6810 symcode='[ABCDGIRSTW]' ;;
6811 esac
6812
6813 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6814 # Gets list of data symbols to import.
6815 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6816 # Adjust the below global symbol transforms to fixup imported variables.
6817 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6818 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6819 lt_c_name_lib_hook="\
6820 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6821 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6822 else
6823 # Disable hooks by default.
6824 lt_cv_sys_global_symbol_to_import=
6825 lt_cdecl_hook=
6826 lt_c_name_hook=
6827 lt_c_name_lib_hook=
6828 fi
6829
6830 # Transform an extracted symbol line into a proper C declaration.
6831 # Some systems (esp. on ia64) link data and code symbols differently,
6832 # so use this general approach.
6833 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6834 $lt_cdecl_hook\
6835 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6836 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6837
6838 # Transform an extracted symbol line into symbol name and symbol address
6839 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6840 $lt_c_name_hook\
6841 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6842 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6843
6844 # Transform an extracted symbol line into symbol name with lib prefix and
6845 # symbol address.
6846 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6847 $lt_c_name_lib_hook\
6848 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6849 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6850 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6851
6852 # Handle CRLF in mingw tool chain
6853 opt_cr=
6854 case $build_os in
6855 mingw*)
6856 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6857 ;;
6858 esac
6859
6860 # Try without a prefix underscore, then with it.
6861 for ac_symprfx in "" "_"; do
6862
6863 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6864 symxfrm="\\1 $ac_symprfx\\2 \\2"
6865
6866 # Write the raw and C identifiers.
6867 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6868 # Fake it for dumpbin and say T for any non-static function,
6869 # D for any global variable and I for any imported variable.
6870 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6871 # which start with @ or ?.
6872 lt_cv_sys_global_symbol_pipe="$AWK '"\
6873 " {last_section=section; section=\$ 3};"\
6874 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6875 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6876 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6877 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6878 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6879 " \$ 0!~/External *\|/{next};"\
6880 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6881 " {if(hide[section]) next};"\
6882 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6883 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6884 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6885 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6886 " ' prfx=^$ac_symprfx"
6887 else
6888 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6889 fi
6890 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6891
6892 # Check to see that the pipe works correctly.
6893 pipe_works=no
6894
6895 rm -f conftest*
6896 cat > conftest.$ac_ext <<_LT_EOF
6897 #ifdef __cplusplus
6898 extern "C" {
6899 #endif
6900 char nm_test_var;
6901 void nm_test_func(void);
6902 void nm_test_func(void){}
6903 #ifdef __cplusplus
6904 }
6905 #endif
6906 int main(){nm_test_var='a';nm_test_func();return(0);}
6907 _LT_EOF
6908
6909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6910 (eval $ac_compile) 2>&5
6911 ac_status=$?
6912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6913 test $ac_status = 0; }; then
6914 # Now try to grab the symbols.
6915 nlist=conftest.nm
6916 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6917 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6918 # Try sorting and uniquifying the output.
6919 if sort "$nlist" | uniq > "$nlist"T; then
6920 mv -f "$nlist"T "$nlist"
6921 else
6922 rm -f "$nlist"T
6923 fi
6924
6925 # Make sure that we snagged all the symbols we need.
6926 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6927 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6928 cat <<_LT_EOF > conftest.$ac_ext
6929 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6930 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6931 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6932 relocations are performed -- see ld's documentation on pseudo-relocs. */
6933 # define LT_DLSYM_CONST
6934 #elif defined __osf__
6935 /* This system does not cope well with relocations in const data. */
6936 # define LT_DLSYM_CONST
6937 #else
6938 # define LT_DLSYM_CONST const
6939 #endif
6940
6941 #ifdef __cplusplus
6942 extern "C" {
6943 #endif
6944
6945 _LT_EOF
6946 # Now generate the symbol file.
6947 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6948
6949 cat <<_LT_EOF >> conftest.$ac_ext
6950
6951 /* The mapping between symbol names and symbols. */
6952 LT_DLSYM_CONST struct {
6953 const char *name;
6954 void *address;
6955 }
6956 lt__PROGRAM__LTX_preloaded_symbols[] =
6957 {
6958 { "@PROGRAM@", (void *) 0 },
6959 _LT_EOF
6960 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6961 cat <<\_LT_EOF >> conftest.$ac_ext
6962 {0, (void *) 0}
6963 };
6964
6965 /* This works around a problem in FreeBSD linker */
6966 #ifdef FREEBSD_WORKAROUND
6967 static const void *lt_preloaded_setup() {
6968 return lt__PROGRAM__LTX_preloaded_symbols;
6969 }
6970 #endif
6971
6972 #ifdef __cplusplus
6973 }
6974 #endif
6975 _LT_EOF
6976 # Now try linking the two files.
6977 mv conftest.$ac_objext conftstm.$ac_objext
6978 lt_globsym_save_LIBS=$LIBS
6979 lt_globsym_save_CFLAGS=$CFLAGS
6980 LIBS=conftstm.$ac_objext
6981 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6983 (eval $ac_link) 2>&5
6984 ac_status=$?
6985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6986 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6987 pipe_works=yes
6988 fi
6989 LIBS=$lt_globsym_save_LIBS
6990 CFLAGS=$lt_globsym_save_CFLAGS
6991 else
6992 echo "cannot find nm_test_func in $nlist" >&5
6993 fi
6994 else
6995 echo "cannot find nm_test_var in $nlist" >&5
6996 fi
6997 else
6998 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6999 fi
7000 else
7001 echo "$progname: failed program was:" >&5
7002 cat conftest.$ac_ext >&5
7003 fi
7004 rm -rf conftest* conftst*
7005
7006 # Do not use the global_symbol_pipe unless it works.
7007 if test yes = "$pipe_works"; then
7008 break
7009 else
7010 lt_cv_sys_global_symbol_pipe=
7011 fi
7012 done
7013
7014 fi
7015
7016 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7017 lt_cv_sys_global_symbol_to_cdecl=
7018 fi
7019 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7021 printf "%s\n" "failed" >&6; }
7022 else
7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7024 printf "%s\n" "ok" >&6; }
7025 fi
7026
7027 # Response file support.
7028 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7029 nm_file_list_spec='@'
7030 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7031 nm_file_list_spec='@'
7032 fi
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7071 printf %s "checking for sysroot... " >&6; }
7072
7073 # Check whether --with-sysroot was given.
7074 if test ${with_sysroot+y}
7075 then :
7076 withval=$with_sysroot;
7077 else $as_nop
7078 with_sysroot=no
7079 fi
7080
7081
7082 lt_sysroot=
7083 case $with_sysroot in #(
7084 yes)
7085 if test yes = "$GCC"; then
7086 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7087 fi
7088 ;; #(
7089 /*)
7090 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7091 ;; #(
7092 no|'')
7093 ;; #(
7094 *)
7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7096 printf "%s\n" "$with_sysroot" >&6; }
7097 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7098 ;;
7099 esac
7100
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7102 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7103
7104
7105
7106
7107
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7109 printf %s "checking for a working dd... " >&6; }
7110 if test ${ac_cv_path_lt_DD+y}
7111 then :
7112 printf %s "(cached) " >&6
7113 else $as_nop
7114 printf 0123456789abcdef0123456789abcdef >conftest.i
7115 cat conftest.i conftest.i >conftest2.i
7116 : ${lt_DD:=$DD}
7117 if test -z "$lt_DD"; then
7118 ac_path_lt_DD_found=false
7119 # Loop through the user's path and test for each of PROGNAME-LIST
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123 IFS=$as_save_IFS
7124 case $as_dir in #(((
7125 '') as_dir=./ ;;
7126 */) ;;
7127 *) as_dir=$as_dir/ ;;
7128 esac
7129 for ac_prog in dd
7130 do
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7133 as_fn_executable_p "$ac_path_lt_DD" || continue
7134 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7135 cmp -s conftest.i conftest.out \
7136 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7137 fi
7138 $ac_path_lt_DD_found && break 3
7139 done
7140 done
7141 done
7142 IFS=$as_save_IFS
7143 if test -z "$ac_cv_path_lt_DD"; then
7144 :
7145 fi
7146 else
7147 ac_cv_path_lt_DD=$lt_DD
7148 fi
7149
7150 rm -f conftest.i conftest2.i conftest.out
7151 fi
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7153 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7154
7155
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7157 printf %s "checking how to truncate binary pipes... " >&6; }
7158 if test ${lt_cv_truncate_bin+y}
7159 then :
7160 printf %s "(cached) " >&6
7161 else $as_nop
7162 printf 0123456789abcdef0123456789abcdef >conftest.i
7163 cat conftest.i conftest.i >conftest2.i
7164 lt_cv_truncate_bin=
7165 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7166 cmp -s conftest.i conftest.out \
7167 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7168 fi
7169 rm -f conftest.i conftest2.i conftest.out
7170 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7171 fi
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7173 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7174
7175
7176
7177
7178
7179
7180
7181 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7182 func_cc_basename ()
7183 {
7184 for cc_temp in $*""; do
7185 case $cc_temp in
7186 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7187 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7188 \-*) ;;
7189 *) break;;
7190 esac
7191 done
7192 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7193 }
7194
7195 # Check whether --enable-libtool-lock was given.
7196 if test ${enable_libtool_lock+y}
7197 then :
7198 enableval=$enable_libtool_lock;
7199 fi
7200
7201 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7202
7203 # Some flags need to be propagated to the compiler or linker for good
7204 # libtool support.
7205 case $host in
7206 ia64-*-hpux*)
7207 # Find out what ABI is being produced by ac_compile, and set mode
7208 # options accordingly.
7209 echo 'int i;' > conftest.$ac_ext
7210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7211 (eval $ac_compile) 2>&5
7212 ac_status=$?
7213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7214 test $ac_status = 0; }; then
7215 case `$FILECMD conftest.$ac_objext` in
7216 *ELF-32*)
7217 HPUX_IA64_MODE=32
7218 ;;
7219 *ELF-64*)
7220 HPUX_IA64_MODE=64
7221 ;;
7222 esac
7223 fi
7224 rm -rf conftest*
7225 ;;
7226 *-*-irix6*)
7227 # Find out what ABI is being produced by ac_compile, and set linker
7228 # options accordingly.
7229 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7231 (eval $ac_compile) 2>&5
7232 ac_status=$?
7233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234 test $ac_status = 0; }; then
7235 if test yes = "$lt_cv_prog_gnu_ld"; then
7236 case `$FILECMD conftest.$ac_objext` in
7237 *32-bit*)
7238 LD="${LD-ld} -melf32bsmip"
7239 ;;
7240 *N32*)
7241 LD="${LD-ld} -melf32bmipn32"
7242 ;;
7243 *64-bit*)
7244 LD="${LD-ld} -melf64bmip"
7245 ;;
7246 esac
7247 else
7248 case `$FILECMD conftest.$ac_objext` in
7249 *32-bit*)
7250 LD="${LD-ld} -32"
7251 ;;
7252 *N32*)
7253 LD="${LD-ld} -n32"
7254 ;;
7255 *64-bit*)
7256 LD="${LD-ld} -64"
7257 ;;
7258 esac
7259 fi
7260 fi
7261 rm -rf conftest*
7262 ;;
7263
7264 mips64*-*linux*)
7265 # Find out what ABI is being produced by ac_compile, and set linker
7266 # options accordingly.
7267 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7269 (eval $ac_compile) 2>&5
7270 ac_status=$?
7271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 test $ac_status = 0; }; then
7273 emul=elf
7274 case `$FILECMD conftest.$ac_objext` in
7275 *32-bit*)
7276 emul="${emul}32"
7277 ;;
7278 *64-bit*)
7279 emul="${emul}64"
7280 ;;
7281 esac
7282 case `$FILECMD conftest.$ac_objext` in
7283 *MSB*)
7284 emul="${emul}btsmip"
7285 ;;
7286 *LSB*)
7287 emul="${emul}ltsmip"
7288 ;;
7289 esac
7290 case `$FILECMD conftest.$ac_objext` in
7291 *N32*)
7292 emul="${emul}n32"
7293 ;;
7294 esac
7295 LD="${LD-ld} -m $emul"
7296 fi
7297 rm -rf conftest*
7298 ;;
7299
7300 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7301 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7302 # Find out what ABI is being produced by ac_compile, and set linker
7303 # options accordingly. Note that the listed cases only cover the
7304 # situations where additional linker options are needed (such as when
7305 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7306 # vice versa); the common cases where no linker options are needed do
7307 # not appear in the list.
7308 echo 'int i;' > conftest.$ac_ext
7309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7310 (eval $ac_compile) 2>&5
7311 ac_status=$?
7312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7313 test $ac_status = 0; }; then
7314 case `$FILECMD conftest.o` in
7315 *32-bit*)
7316 case $host in
7317 x86_64-*kfreebsd*-gnu)
7318 LD="${LD-ld} -m elf_i386_fbsd"
7319 ;;
7320 x86_64-*linux*)
7321 case `$FILECMD conftest.o` in
7322 *x86-64*)
7323 LD="${LD-ld} -m elf32_x86_64"
7324 ;;
7325 *)
7326 LD="${LD-ld} -m elf_i386"
7327 ;;
7328 esac
7329 ;;
7330 powerpc64le-*linux*)
7331 LD="${LD-ld} -m elf32lppclinux"
7332 ;;
7333 powerpc64-*linux*)
7334 LD="${LD-ld} -m elf32ppclinux"
7335 ;;
7336 s390x-*linux*)
7337 LD="${LD-ld} -m elf_s390"
7338 ;;
7339 sparc64-*linux*)
7340 LD="${LD-ld} -m elf32_sparc"
7341 ;;
7342 esac
7343 ;;
7344 *64-bit*)
7345 case $host in
7346 x86_64-*kfreebsd*-gnu)
7347 LD="${LD-ld} -m elf_x86_64_fbsd"
7348 ;;
7349 x86_64-*linux*)
7350 LD="${LD-ld} -m elf_x86_64"
7351 ;;
7352 powerpcle-*linux*)
7353 LD="${LD-ld} -m elf64lppc"
7354 ;;
7355 powerpc-*linux*)
7356 LD="${LD-ld} -m elf64ppc"
7357 ;;
7358 s390*-*linux*|s390*-*tpf*)
7359 LD="${LD-ld} -m elf64_s390"
7360 ;;
7361 sparc*-*linux*)
7362 LD="${LD-ld} -m elf64_sparc"
7363 ;;
7364 esac
7365 ;;
7366 esac
7367 fi
7368 rm -rf conftest*
7369 ;;
7370
7371 *-*-sco3.2v5*)
7372 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7373 SAVE_CFLAGS=$CFLAGS
7374 CFLAGS="$CFLAGS -belf"
7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7376 printf %s "checking whether the C compiler needs -belf... " >&6; }
7377 if test ${lt_cv_cc_needs_belf+y}
7378 then :
7379 printf %s "(cached) " >&6
7380 else $as_nop
7381 ac_ext=c
7382 ac_cpp='$CPP $CPPFLAGS'
7383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7386
7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7389
7390 int
7391 main (void)
7392 {
7393
7394 ;
7395 return 0;
7396 }
7397 _ACEOF
7398 if ac_fn_c_try_link "$LINENO"
7399 then :
7400 lt_cv_cc_needs_belf=yes
7401 else $as_nop
7402 lt_cv_cc_needs_belf=no
7403 fi
7404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7405 conftest$ac_exeext conftest.$ac_ext
7406 ac_ext=c
7407 ac_cpp='$CPP $CPPFLAGS'
7408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7411
7412 fi
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7414 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7415 if test yes != "$lt_cv_cc_needs_belf"; then
7416 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7417 CFLAGS=$SAVE_CFLAGS
7418 fi
7419 ;;
7420 *-*solaris*)
7421 # Find out what ABI is being produced by ac_compile, and set linker
7422 # options accordingly.
7423 echo 'int i;' > conftest.$ac_ext
7424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7425 (eval $ac_compile) 2>&5
7426 ac_status=$?
7427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7428 test $ac_status = 0; }; then
7429 case `$FILECMD conftest.o` in
7430 *64-bit*)
7431 case $lt_cv_prog_gnu_ld in
7432 yes*)
7433 case $host in
7434 i?86-*-solaris*|x86_64-*-solaris*)
7435 LD="${LD-ld} -m elf_x86_64"
7436 ;;
7437 sparc*-*-solaris*)
7438 LD="${LD-ld} -m elf64_sparc"
7439 ;;
7440 esac
7441 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7442 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7443 LD=${LD-ld}_sol2
7444 fi
7445 ;;
7446 *)
7447 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7448 LD="${LD-ld} -64"
7449 fi
7450 ;;
7451 esac
7452 ;;
7453 esac
7454 fi
7455 rm -rf conftest*
7456 ;;
7457 esac
7458
7459 need_locks=$enable_libtool_lock
7460
7461 if test -n "$ac_tool_prefix"; then
7462 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7463 set dummy ${ac_tool_prefix}mt; ac_word=$2
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 printf %s "checking for $ac_word... " >&6; }
7466 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7467 then :
7468 printf %s "(cached) " >&6
7469 else $as_nop
7470 if test -n "$MANIFEST_TOOL"; then
7471 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476 IFS=$as_save_IFS
7477 case $as_dir in #(((
7478 '') as_dir=./ ;;
7479 */) ;;
7480 *) as_dir=$as_dir/ ;;
7481 esac
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488 done
7489 done
7490 IFS=$as_save_IFS
7491
7492 fi
7493 fi
7494 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7495 if test -n "$MANIFEST_TOOL"; then
7496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7497 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7498 else
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 printf "%s\n" "no" >&6; }
7501 fi
7502
7503
7504 fi
7505 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7506 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7507 # Extract the first word of "mt", so it can be a program name with args.
7508 set dummy mt; ac_word=$2
7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 printf %s "checking for $ac_word... " >&6; }
7511 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7512 then :
7513 printf %s "(cached) " >&6
7514 else $as_nop
7515 if test -n "$ac_ct_MANIFEST_TOOL"; then
7516 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521 IFS=$as_save_IFS
7522 case $as_dir in #(((
7523 '') as_dir=./ ;;
7524 */) ;;
7525 *) as_dir=$as_dir/ ;;
7526 esac
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533 done
7534 done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7540 if test -n "$ac_ct_MANIFEST_TOOL"; then
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7542 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7543 else
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 printf "%s\n" "no" >&6; }
7546 fi
7547
7548 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7549 MANIFEST_TOOL=":"
7550 else
7551 case $cross_compiling:$ac_tool_warned in
7552 yes:)
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7554 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7555 ac_tool_warned=yes ;;
7556 esac
7557 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7558 fi
7559 else
7560 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7561 fi
7562
7563 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7565 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7566 if test ${lt_cv_path_mainfest_tool+y}
7567 then :
7568 printf %s "(cached) " >&6
7569 else $as_nop
7570 lt_cv_path_mainfest_tool=no
7571 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7572 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7573 cat conftest.err >&5
7574 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7575 lt_cv_path_mainfest_tool=yes
7576 fi
7577 rm -f conftest*
7578 fi
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7580 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7581 if test yes != "$lt_cv_path_mainfest_tool"; then
7582 MANIFEST_TOOL=:
7583 fi
7584
7585
7586
7587
7588
7589
7590 case $host_os in
7591 rhapsody* | darwin*)
7592 if test -n "$ac_tool_prefix"; then
7593 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 printf %s "checking for $ac_word... " >&6; }
7597 if test ${ac_cv_prog_DSYMUTIL+y}
7598 then :
7599 printf %s "(cached) " >&6
7600 else $as_nop
7601 if test -n "$DSYMUTIL"; then
7602 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7603 else
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607 IFS=$as_save_IFS
7608 case $as_dir in #(((
7609 '') as_dir=./ ;;
7610 */) ;;
7611 *) as_dir=$as_dir/ ;;
7612 esac
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7615 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7617 break 2
7618 fi
7619 done
7620 done
7621 IFS=$as_save_IFS
7622
7623 fi
7624 fi
7625 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7626 if test -n "$DSYMUTIL"; then
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7628 printf "%s\n" "$DSYMUTIL" >&6; }
7629 else
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 printf "%s\n" "no" >&6; }
7632 fi
7633
7634
7635 fi
7636 if test -z "$ac_cv_prog_DSYMUTIL"; then
7637 ac_ct_DSYMUTIL=$DSYMUTIL
7638 # Extract the first word of "dsymutil", so it can be a program name with args.
7639 set dummy dsymutil; ac_word=$2
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 printf %s "checking for $ac_word... " >&6; }
7642 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7643 then :
7644 printf %s "(cached) " >&6
7645 else $as_nop
7646 if test -n "$ac_ct_DSYMUTIL"; then
7647 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7648 else
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7651 do
7652 IFS=$as_save_IFS
7653 case $as_dir in #(((
7654 '') as_dir=./ ;;
7655 */) ;;
7656 *) as_dir=$as_dir/ ;;
7657 esac
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7660 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7662 break 2
7663 fi
7664 done
7665 done
7666 IFS=$as_save_IFS
7667
7668 fi
7669 fi
7670 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7671 if test -n "$ac_ct_DSYMUTIL"; then
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7673 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7674 else
7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 printf "%s\n" "no" >&6; }
7677 fi
7678
7679 if test "x$ac_ct_DSYMUTIL" = x; then
7680 DSYMUTIL=":"
7681 else
7682 case $cross_compiling:$ac_tool_warned in
7683 yes:)
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7685 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7686 ac_tool_warned=yes ;;
7687 esac
7688 DSYMUTIL=$ac_ct_DSYMUTIL
7689 fi
7690 else
7691 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7692 fi
7693
7694 if test -n "$ac_tool_prefix"; then
7695 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 printf %s "checking for $ac_word... " >&6; }
7699 if test ${ac_cv_prog_NMEDIT+y}
7700 then :
7701 printf %s "(cached) " >&6
7702 else $as_nop
7703 if test -n "$NMEDIT"; then
7704 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709 IFS=$as_save_IFS
7710 case $as_dir in #(((
7711 '') as_dir=./ ;;
7712 */) ;;
7713 *) as_dir=$as_dir/ ;;
7714 esac
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721 done
7722 done
7723 IFS=$as_save_IFS
7724
7725 fi
7726 fi
7727 NMEDIT=$ac_cv_prog_NMEDIT
7728 if test -n "$NMEDIT"; then
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7730 printf "%s\n" "$NMEDIT" >&6; }
7731 else
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 printf "%s\n" "no" >&6; }
7734 fi
7735
7736
7737 fi
7738 if test -z "$ac_cv_prog_NMEDIT"; then
7739 ac_ct_NMEDIT=$NMEDIT
7740 # Extract the first word of "nmedit", so it can be a program name with args.
7741 set dummy nmedit; ac_word=$2
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 printf %s "checking for $ac_word... " >&6; }
7744 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7745 then :
7746 printf %s "(cached) " >&6
7747 else $as_nop
7748 if test -n "$ac_ct_NMEDIT"; then
7749 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7750 else
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7753 do
7754 IFS=$as_save_IFS
7755 case $as_dir in #(((
7756 '') as_dir=./ ;;
7757 */) ;;
7758 *) as_dir=$as_dir/ ;;
7759 esac
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7762 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7764 break 2
7765 fi
7766 done
7767 done
7768 IFS=$as_save_IFS
7769
7770 fi
7771 fi
7772 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7773 if test -n "$ac_ct_NMEDIT"; then
7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7775 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7776 else
7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 printf "%s\n" "no" >&6; }
7779 fi
7780
7781 if test "x$ac_ct_NMEDIT" = x; then
7782 NMEDIT=":"
7783 else
7784 case $cross_compiling:$ac_tool_warned in
7785 yes:)
7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7789 esac
7790 NMEDIT=$ac_ct_NMEDIT
7791 fi
7792 else
7793 NMEDIT="$ac_cv_prog_NMEDIT"
7794 fi
7795
7796 if test -n "$ac_tool_prefix"; then
7797 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 printf %s "checking for $ac_word... " >&6; }
7801 if test ${ac_cv_prog_LIPO+y}
7802 then :
7803 printf %s "(cached) " >&6
7804 else $as_nop
7805 if test -n "$LIPO"; then
7806 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7807 else
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7810 do
7811 IFS=$as_save_IFS
7812 case $as_dir in #(((
7813 '') as_dir=./ ;;
7814 */) ;;
7815 *) as_dir=$as_dir/ ;;
7816 esac
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7819 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7821 break 2
7822 fi
7823 done
7824 done
7825 IFS=$as_save_IFS
7826
7827 fi
7828 fi
7829 LIPO=$ac_cv_prog_LIPO
7830 if test -n "$LIPO"; then
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7832 printf "%s\n" "$LIPO" >&6; }
7833 else
7834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 printf "%s\n" "no" >&6; }
7836 fi
7837
7838
7839 fi
7840 if test -z "$ac_cv_prog_LIPO"; then
7841 ac_ct_LIPO=$LIPO
7842 # Extract the first word of "lipo", so it can be a program name with args.
7843 set dummy lipo; ac_word=$2
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 printf %s "checking for $ac_word... " >&6; }
7846 if test ${ac_cv_prog_ac_ct_LIPO+y}
7847 then :
7848 printf %s "(cached) " >&6
7849 else $as_nop
7850 if test -n "$ac_ct_LIPO"; then
7851 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7852 else
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7855 do
7856 IFS=$as_save_IFS
7857 case $as_dir in #(((
7858 '') as_dir=./ ;;
7859 */) ;;
7860 *) as_dir=$as_dir/ ;;
7861 esac
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7864 ac_cv_prog_ac_ct_LIPO="lipo"
7865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7866 break 2
7867 fi
7868 done
7869 done
7870 IFS=$as_save_IFS
7871
7872 fi
7873 fi
7874 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7875 if test -n "$ac_ct_LIPO"; then
7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7877 printf "%s\n" "$ac_ct_LIPO" >&6; }
7878 else
7879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 printf "%s\n" "no" >&6; }
7881 fi
7882
7883 if test "x$ac_ct_LIPO" = x; then
7884 LIPO=":"
7885 else
7886 case $cross_compiling:$ac_tool_warned in
7887 yes:)
7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890 ac_tool_warned=yes ;;
7891 esac
7892 LIPO=$ac_ct_LIPO
7893 fi
7894 else
7895 LIPO="$ac_cv_prog_LIPO"
7896 fi
7897
7898 if test -n "$ac_tool_prefix"; then
7899 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7900 set dummy ${ac_tool_prefix}otool; ac_word=$2
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 printf %s "checking for $ac_word... " >&6; }
7903 if test ${ac_cv_prog_OTOOL+y}
7904 then :
7905 printf %s "(cached) " >&6
7906 else $as_nop
7907 if test -n "$OTOOL"; then
7908 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913 IFS=$as_save_IFS
7914 case $as_dir in #(((
7915 '') as_dir=./ ;;
7916 */) ;;
7917 *) as_dir=$as_dir/ ;;
7918 esac
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7921 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7923 break 2
7924 fi
7925 done
7926 done
7927 IFS=$as_save_IFS
7928
7929 fi
7930 fi
7931 OTOOL=$ac_cv_prog_OTOOL
7932 if test -n "$OTOOL"; then
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7934 printf "%s\n" "$OTOOL" >&6; }
7935 else
7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 printf "%s\n" "no" >&6; }
7938 fi
7939
7940
7941 fi
7942 if test -z "$ac_cv_prog_OTOOL"; then
7943 ac_ct_OTOOL=$OTOOL
7944 # Extract the first word of "otool", so it can be a program name with args.
7945 set dummy otool; ac_word=$2
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 printf %s "checking for $ac_word... " >&6; }
7948 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7949 then :
7950 printf %s "(cached) " >&6
7951 else $as_nop
7952 if test -n "$ac_ct_OTOOL"; then
7953 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958 IFS=$as_save_IFS
7959 case $as_dir in #(((
7960 '') as_dir=./ ;;
7961 */) ;;
7962 *) as_dir=$as_dir/ ;;
7963 esac
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_ac_ct_OTOOL="otool"
7967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970 done
7971 done
7972 IFS=$as_save_IFS
7973
7974 fi
7975 fi
7976 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7977 if test -n "$ac_ct_OTOOL"; then
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7979 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7980 else
7981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 printf "%s\n" "no" >&6; }
7983 fi
7984
7985 if test "x$ac_ct_OTOOL" = x; then
7986 OTOOL=":"
7987 else
7988 case $cross_compiling:$ac_tool_warned in
7989 yes:)
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7992 ac_tool_warned=yes ;;
7993 esac
7994 OTOOL=$ac_ct_OTOOL
7995 fi
7996 else
7997 OTOOL="$ac_cv_prog_OTOOL"
7998 fi
7999
8000 if test -n "$ac_tool_prefix"; then
8001 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8002 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 printf %s "checking for $ac_word... " >&6; }
8005 if test ${ac_cv_prog_OTOOL64+y}
8006 then :
8007 printf %s "(cached) " >&6
8008 else $as_nop
8009 if test -n "$OTOOL64"; then
8010 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8011 else
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015 IFS=$as_save_IFS
8016 case $as_dir in #(((
8017 '') as_dir=./ ;;
8018 */) ;;
8019 *) as_dir=$as_dir/ ;;
8020 esac
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027 done
8028 done
8029 IFS=$as_save_IFS
8030
8031 fi
8032 fi
8033 OTOOL64=$ac_cv_prog_OTOOL64
8034 if test -n "$OTOOL64"; then
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8036 printf "%s\n" "$OTOOL64" >&6; }
8037 else
8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 printf "%s\n" "no" >&6; }
8040 fi
8041
8042
8043 fi
8044 if test -z "$ac_cv_prog_OTOOL64"; then
8045 ac_ct_OTOOL64=$OTOOL64
8046 # Extract the first word of "otool64", so it can be a program name with args.
8047 set dummy otool64; ac_word=$2
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049 printf %s "checking for $ac_word... " >&6; }
8050 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8051 then :
8052 printf %s "(cached) " >&6
8053 else $as_nop
8054 if test -n "$ac_ct_OTOOL64"; then
8055 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8056 else
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 for as_dir in $PATH
8059 do
8060 IFS=$as_save_IFS
8061 case $as_dir in #(((
8062 '') as_dir=./ ;;
8063 */) ;;
8064 *) as_dir=$as_dir/ ;;
8065 esac
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8068 ac_cv_prog_ac_ct_OTOOL64="otool64"
8069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8070 break 2
8071 fi
8072 done
8073 done
8074 IFS=$as_save_IFS
8075
8076 fi
8077 fi
8078 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8079 if test -n "$ac_ct_OTOOL64"; then
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8081 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8082 else
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 printf "%s\n" "no" >&6; }
8085 fi
8086
8087 if test "x$ac_ct_OTOOL64" = x; then
8088 OTOOL64=":"
8089 else
8090 case $cross_compiling:$ac_tool_warned in
8091 yes:)
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8093 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8094 ac_tool_warned=yes ;;
8095 esac
8096 OTOOL64=$ac_ct_OTOOL64
8097 fi
8098 else
8099 OTOOL64="$ac_cv_prog_OTOOL64"
8100 fi
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8129 printf %s "checking for -single_module linker flag... " >&6; }
8130 if test ${lt_cv_apple_cc_single_mod+y}
8131 then :
8132 printf %s "(cached) " >&6
8133 else $as_nop
8134 lt_cv_apple_cc_single_mod=no
8135 if test -z "$LT_MULTI_MODULE"; then
8136 # By default we will add the -single_module flag. You can override
8137 # by either setting the environment variable LT_MULTI_MODULE
8138 # non-empty at configure time, or by adding -multi_module to the
8139 # link flags.
8140 rm -rf libconftest.dylib*
8141 echo "int foo(void){return 1;}" > conftest.c
8142 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8143 -dynamiclib -Wl,-single_module conftest.c" >&5
8144 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8145 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8146 _lt_result=$?
8147 # If there is a non-empty error log, and "single_module"
8148 # appears in it, assume the flag caused a linker warning
8149 if test -s conftest.err && $GREP single_module conftest.err; then
8150 cat conftest.err >&5
8151 # Otherwise, if the output was created with a 0 exit code from
8152 # the compiler, it worked.
8153 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8154 lt_cv_apple_cc_single_mod=yes
8155 else
8156 cat conftest.err >&5
8157 fi
8158 rm -rf libconftest.dylib*
8159 rm -f conftest.*
8160 fi
8161 fi
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8163 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8164
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8166 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8167 if test ${lt_cv_ld_exported_symbols_list+y}
8168 then :
8169 printf %s "(cached) " >&6
8170 else $as_nop
8171 lt_cv_ld_exported_symbols_list=no
8172 save_LDFLAGS=$LDFLAGS
8173 echo "_main" > conftest.sym
8174 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177
8178 int
8179 main (void)
8180 {
8181
8182 ;
8183 return 0;
8184 }
8185 _ACEOF
8186 if ac_fn_c_try_link "$LINENO"
8187 then :
8188 lt_cv_ld_exported_symbols_list=yes
8189 else $as_nop
8190 lt_cv_ld_exported_symbols_list=no
8191 fi
8192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8193 conftest$ac_exeext conftest.$ac_ext
8194 LDFLAGS=$save_LDFLAGS
8195
8196 fi
8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8198 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8199
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8201 printf %s "checking for -force_load linker flag... " >&6; }
8202 if test ${lt_cv_ld_force_load+y}
8203 then :
8204 printf %s "(cached) " >&6
8205 else $as_nop
8206 lt_cv_ld_force_load=no
8207 cat > conftest.c << _LT_EOF
8208 int forced_loaded() { return 2;}
8209 _LT_EOF
8210 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8211 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8212 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8213 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8214 echo "$RANLIB libconftest.a" >&5
8215 $RANLIB libconftest.a 2>&5
8216 cat > conftest.c << _LT_EOF
8217 int main() { return 0;}
8218 _LT_EOF
8219 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8220 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8221 _lt_result=$?
8222 if test -s conftest.err && $GREP force_load conftest.err; then
8223 cat conftest.err >&5
8224 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8225 lt_cv_ld_force_load=yes
8226 else
8227 cat conftest.err >&5
8228 fi
8229 rm -f conftest.err libconftest.a conftest conftest.c
8230 rm -rf conftest.dSYM
8231
8232 fi
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8234 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8235 case $host_os in
8236 rhapsody* | darwin1.[012])
8237 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8238 darwin1.*)
8239 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8240 darwin*)
8241 case $MACOSX_DEPLOYMENT_TARGET,$host in
8242 10.[012],*|,*powerpc*-darwin[5-8]*)
8243 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8244 *)
8245 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8246 esac
8247 ;;
8248 esac
8249 if test yes = "$lt_cv_apple_cc_single_mod"; then
8250 _lt_dar_single_mod='$single_module'
8251 fi
8252 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8253 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8254 else
8255 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8256 fi
8257 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8258 _lt_dsymutil='~$DSYMUTIL $lib || :'
8259 else
8260 _lt_dsymutil=
8261 fi
8262 ;;
8263 esac
8264
8265 # func_munge_path_list VARIABLE PATH
8266 # -----------------------------------
8267 # VARIABLE is name of variable containing _space_ separated list of
8268 # directories to be munged by the contents of PATH, which is string
8269 # having a format:
8270 # "DIR[:DIR]:"
8271 # string "DIR[ DIR]" will be prepended to VARIABLE
8272 # ":DIR[:DIR]"
8273 # string "DIR[ DIR]" will be appended to VARIABLE
8274 # "DIRP[:DIRP]::[DIRA:]DIRA"
8275 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8276 # "DIRA[ DIRA]" will be appended to VARIABLE
8277 # "DIR[:DIR]"
8278 # VARIABLE will be replaced by "DIR[ DIR]"
8279 func_munge_path_list ()
8280 {
8281 case x$2 in
8282 x)
8283 ;;
8284 *:)
8285 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8286 ;;
8287 x:*)
8288 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8289 ;;
8290 *::*)
8291 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8292 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8293 ;;
8294 *)
8295 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8296 ;;
8297 esac
8298 }
8299
8300 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8301 "
8302 if test "x$ac_cv_header_dlfcn_h" = xyes
8303 then :
8304 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8305
8306 fi
8307
8308
8309
8310
8311
8312 # Set options
8313
8314
8315
8316 enable_dlopen=no
8317
8318
8319 enable_win32_dll=no
8320
8321
8322 # Check whether --enable-shared was given.
8323 if test ${enable_shared+y}
8324 then :
8325 enableval=$enable_shared; p=${PACKAGE-default}
8326 case $enableval in
8327 yes) enable_shared=yes ;;
8328 no) enable_shared=no ;;
8329 *)
8330 enable_shared=no
8331 # Look at the argument we got. We use all the common list separators.
8332 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8333 for pkg in $enableval; do
8334 IFS=$lt_save_ifs
8335 if test "X$pkg" = "X$p"; then
8336 enable_shared=yes
8337 fi
8338 done
8339 IFS=$lt_save_ifs
8340 ;;
8341 esac
8342 else $as_nop
8343 enable_shared=yes
8344 fi
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354 # Check whether --enable-static was given.
8355 if test ${enable_static+y}
8356 then :
8357 enableval=$enable_static; p=${PACKAGE-default}
8358 case $enableval in
8359 yes) enable_static=yes ;;
8360 no) enable_static=no ;;
8361 *)
8362 enable_static=no
8363 # Look at the argument we got. We use all the common list separators.
8364 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8365 for pkg in $enableval; do
8366 IFS=$lt_save_ifs
8367 if test "X$pkg" = "X$p"; then
8368 enable_static=yes
8369 fi
8370 done
8371 IFS=$lt_save_ifs
8372 ;;
8373 esac
8374 else $as_nop
8375 enable_static=yes
8376 fi
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387 # Check whether --with-pic was given.
8388 if test ${with_pic+y}
8389 then :
8390 withval=$with_pic; lt_p=${PACKAGE-default}
8391 case $withval in
8392 yes|no) pic_mode=$withval ;;
8393 *)
8394 pic_mode=default
8395 # Look at the argument we got. We use all the common list separators.
8396 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8397 for lt_pkg in $withval; do
8398 IFS=$lt_save_ifs
8399 if test "X$lt_pkg" = "X$lt_p"; then
8400 pic_mode=yes
8401 fi
8402 done
8403 IFS=$lt_save_ifs
8404 ;;
8405 esac
8406 else $as_nop
8407 pic_mode=default
8408 fi
8409
8410
8411
8412
8413
8414
8415
8416
8417 # Check whether --enable-fast-install was given.
8418 if test ${enable_fast_install+y}
8419 then :
8420 enableval=$enable_fast_install; p=${PACKAGE-default}
8421 case $enableval in
8422 yes) enable_fast_install=yes ;;
8423 no) enable_fast_install=no ;;
8424 *)
8425 enable_fast_install=no
8426 # Look at the argument we got. We use all the common list separators.
8427 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8428 for pkg in $enableval; do
8429 IFS=$lt_save_ifs
8430 if test "X$pkg" = "X$p"; then
8431 enable_fast_install=yes
8432 fi
8433 done
8434 IFS=$lt_save_ifs
8435 ;;
8436 esac
8437 else $as_nop
8438 enable_fast_install=yes
8439 fi
8440
8441
8442
8443
8444
8445
8446
8447
8448 shared_archive_member_spec=
8449 case $host,$enable_shared in
8450 power*-*-aix[5-9]*,yes)
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8452 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8453
8454 # Check whether --with-aix-soname was given.
8455 if test ${with_aix_soname+y}
8456 then :
8457 withval=$with_aix_soname; case $withval in
8458 aix|svr4|both)
8459 ;;
8460 *)
8461 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8462 ;;
8463 esac
8464 lt_cv_with_aix_soname=$with_aix_soname
8465 else $as_nop
8466 if test ${lt_cv_with_aix_soname+y}
8467 then :
8468 printf %s "(cached) " >&6
8469 else $as_nop
8470 lt_cv_with_aix_soname=aix
8471 fi
8472
8473 with_aix_soname=$lt_cv_with_aix_soname
8474 fi
8475
8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8477 printf "%s\n" "$with_aix_soname" >&6; }
8478 if test aix != "$with_aix_soname"; then
8479 # For the AIX way of multilib, we name the shared archive member
8480 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8481 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8482 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8483 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8484 if test 64 = "${OBJECT_MODE-32}"; then
8485 shared_archive_member_spec=shr_64
8486 else
8487 shared_archive_member_spec=shr
8488 fi
8489 fi
8490 ;;
8491 *)
8492 with_aix_soname=aix
8493 ;;
8494 esac
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505 # This can be used to rebuild libtool when needed
8506 LIBTOOL_DEPS=$ltmain
8507
8508 # Always use our own libtool.
8509 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540 test -z "$LN_S" && LN_S="ln -s"
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555 if test -n "${ZSH_VERSION+set}"; then
8556 setopt NO_GLOB_SUBST
8557 fi
8558
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8560 printf %s "checking for objdir... " >&6; }
8561 if test ${lt_cv_objdir+y}
8562 then :
8563 printf %s "(cached) " >&6
8564 else $as_nop
8565 rm -f .libs 2>/dev/null
8566 mkdir .libs 2>/dev/null
8567 if test -d .libs; then
8568 lt_cv_objdir=.libs
8569 else
8570 # MS-DOS does not allow filenames that begin with a dot.
8571 lt_cv_objdir=_libs
8572 fi
8573 rmdir .libs 2>/dev/null
8574 fi
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8576 printf "%s\n" "$lt_cv_objdir" >&6; }
8577 objdir=$lt_cv_objdir
8578
8579
8580
8581
8582
8583 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8584
8585
8586
8587
8588 case $host_os in
8589 aix3*)
8590 # AIX sometimes has problems with the GCC collect2 program. For some
8591 # reason, if we set the COLLECT_NAMES environment variable, the problems
8592 # vanish in a puff of smoke.
8593 if test set != "${COLLECT_NAMES+set}"; then
8594 COLLECT_NAMES=
8595 export COLLECT_NAMES
8596 fi
8597 ;;
8598 esac
8599
8600 # Global variables:
8601 ofile=libtool
8602 can_build_shared=yes
8603
8604 # All known linkers require a '.a' archive for static linking (except MSVC and
8605 # ICC, which need '.lib').
8606 libext=a
8607
8608 with_gnu_ld=$lt_cv_prog_gnu_ld
8609
8610 old_CC=$CC
8611 old_CFLAGS=$CFLAGS
8612
8613 # Set sane defaults for various variables
8614 test -z "$CC" && CC=cc
8615 test -z "$LTCC" && LTCC=$CC
8616 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8617 test -z "$LD" && LD=ld
8618 test -z "$ac_objext" && ac_objext=o
8619
8620 func_cc_basename $compiler
8621 cc_basename=$func_cc_basename_result
8622
8623
8624 # Only perform the check for file, if the check method requires it
8625 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8626 case $deplibs_check_method in
8627 file_magic*)
8628 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8630 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8631 if test ${lt_cv_path_MAGIC_CMD+y}
8632 then :
8633 printf %s "(cached) " >&6
8634 else $as_nop
8635 case $MAGIC_CMD in
8636 [\\/*] | ?:[\\/]*)
8637 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8638 ;;
8639 *)
8640 lt_save_MAGIC_CMD=$MAGIC_CMD
8641 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8642 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8643 for ac_dir in $ac_dummy; do
8644 IFS=$lt_save_ifs
8645 test -z "$ac_dir" && ac_dir=.
8646 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8647 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8648 if test -n "$file_magic_test_file"; then
8649 case $deplibs_check_method in
8650 "file_magic "*)
8651 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8652 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8653 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8654 $EGREP "$file_magic_regex" > /dev/null; then
8655 :
8656 else
8657 cat <<_LT_EOF 1>&2
8658
8659 *** Warning: the command libtool uses to detect shared libraries,
8660 *** $file_magic_cmd, produces output that libtool cannot recognize.
8661 *** The result is that libtool may fail to recognize shared libraries
8662 *** as such. This will affect the creation of libtool libraries that
8663 *** depend on shared libraries, but programs linked with such libtool
8664 *** libraries will work regardless of this problem. Nevertheless, you
8665 *** may want to report the problem to your system manager and/or to
8666 *** [email protected]
8667
8668 _LT_EOF
8669 fi ;;
8670 esac
8671 fi
8672 break
8673 fi
8674 done
8675 IFS=$lt_save_ifs
8676 MAGIC_CMD=$lt_save_MAGIC_CMD
8677 ;;
8678 esac
8679 fi
8680
8681 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8682 if test -n "$MAGIC_CMD"; then
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8684 printf "%s\n" "$MAGIC_CMD" >&6; }
8685 else
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 printf "%s\n" "no" >&6; }
8688 fi
8689
8690
8691
8692
8693
8694 if test -z "$lt_cv_path_MAGIC_CMD"; then
8695 if test -n "$ac_tool_prefix"; then
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8697 printf %s "checking for file... " >&6; }
8698 if test ${lt_cv_path_MAGIC_CMD+y}
8699 then :
8700 printf %s "(cached) " >&6
8701 else $as_nop
8702 case $MAGIC_CMD in
8703 [\\/*] | ?:[\\/]*)
8704 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8705 ;;
8706 *)
8707 lt_save_MAGIC_CMD=$MAGIC_CMD
8708 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8710 for ac_dir in $ac_dummy; do
8711 IFS=$lt_save_ifs
8712 test -z "$ac_dir" && ac_dir=.
8713 if test -f "$ac_dir/file"; then
8714 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8715 if test -n "$file_magic_test_file"; then
8716 case $deplibs_check_method in
8717 "file_magic "*)
8718 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8719 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8721 $EGREP "$file_magic_regex" > /dev/null; then
8722 :
8723 else
8724 cat <<_LT_EOF 1>&2
8725
8726 *** Warning: the command libtool uses to detect shared libraries,
8727 *** $file_magic_cmd, produces output that libtool cannot recognize.
8728 *** The result is that libtool may fail to recognize shared libraries
8729 *** as such. This will affect the creation of libtool libraries that
8730 *** depend on shared libraries, but programs linked with such libtool
8731 *** libraries will work regardless of this problem. Nevertheless, you
8732 *** may want to report the problem to your system manager and/or to
8733 *** [email protected]
8734
8735 _LT_EOF
8736 fi ;;
8737 esac
8738 fi
8739 break
8740 fi
8741 done
8742 IFS=$lt_save_ifs
8743 MAGIC_CMD=$lt_save_MAGIC_CMD
8744 ;;
8745 esac
8746 fi
8747
8748 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8749 if test -n "$MAGIC_CMD"; then
8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8751 printf "%s\n" "$MAGIC_CMD" >&6; }
8752 else
8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 printf "%s\n" "no" >&6; }
8755 fi
8756
8757
8758 else
8759 MAGIC_CMD=:
8760 fi
8761 fi
8762
8763 fi
8764 ;;
8765 esac
8766
8767 # Use C for the default configuration in the libtool script
8768
8769 lt_save_CC=$CC
8770 ac_ext=c
8771 ac_cpp='$CPP $CPPFLAGS'
8772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8775
8776
8777 # Source file extension for C test sources.
8778 ac_ext=c
8779
8780 # Object file extension for compiled C test sources.
8781 objext=o
8782 objext=$objext
8783
8784 # Code to be used in simple compile tests
8785 lt_simple_compile_test_code="int some_variable = 0;"
8786
8787 # Code to be used in simple link tests
8788 lt_simple_link_test_code='int main(){return(0);}'
8789
8790
8791
8792
8793
8794
8795
8796 # If no C compiler was specified, use CC.
8797 LTCC=${LTCC-"$CC"}
8798
8799 # If no C compiler flags were specified, use CFLAGS.
8800 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8801
8802 # Allow CC to be a program name with arguments.
8803 compiler=$CC
8804
8805 # Save the default compiler, since it gets overwritten when the other
8806 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8807 compiler_DEFAULT=$CC
8808
8809 # save warnings/boilerplate of simple test code
8810 ac_outfile=conftest.$ac_objext
8811 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8812 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8813 _lt_compiler_boilerplate=`cat conftest.err`
8814 $RM conftest*
8815
8816 ac_outfile=conftest.$ac_objext
8817 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8818 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8819 _lt_linker_boilerplate=`cat conftest.err`
8820 $RM -r conftest*
8821
8822
8823 ## CAVEAT EMPTOR:
8824 ## There is no encapsulation within the following macros, do not change
8825 ## the running order or otherwise move them around unless you know exactly
8826 ## what you are doing...
8827 if test -n "$compiler"; then
8828
8829 lt_prog_compiler_no_builtin_flag=
8830
8831 if test yes = "$GCC"; then
8832 case $cc_basename in
8833 nvcc*)
8834 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8835 *)
8836 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8837 esac
8838
8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8840 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8841 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8842 then :
8843 printf %s "(cached) " >&6
8844 else $as_nop
8845 lt_cv_prog_compiler_rtti_exceptions=no
8846 ac_outfile=conftest.$ac_objext
8847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8848 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8849 # Insert the option either (1) after the last *FLAGS variable, or
8850 # (2) before a word containing "conftest.", or (3) at the end.
8851 # Note that $ac_compile itself does not contain backslashes and begins
8852 # with a dollar sign (not a hyphen), so the echo should work correctly.
8853 # The option is referenced via a variable to avoid confusing sed.
8854 lt_compile=`echo "$ac_compile" | $SED \
8855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857 -e 's:$: $lt_compiler_flag:'`
8858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8859 (eval "$lt_compile" 2>conftest.err)
8860 ac_status=$?
8861 cat conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 if (exit $ac_status) && test -s "$ac_outfile"; then
8864 # The compiler can only warn and ignore the option if not recognized
8865 # So say no if there are warnings other than the usual output.
8866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8868 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8869 lt_cv_prog_compiler_rtti_exceptions=yes
8870 fi
8871 fi
8872 $RM conftest*
8873
8874 fi
8875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8876 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8877
8878 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8879 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8880 else
8881 :
8882 fi
8883
8884 fi
8885
8886
8887
8888
8889
8890
8891 lt_prog_compiler_wl=
8892 lt_prog_compiler_pic=
8893 lt_prog_compiler_static=
8894
8895
8896 if test yes = "$GCC"; then
8897 lt_prog_compiler_wl='-Wl,'
8898 lt_prog_compiler_static='-static'
8899
8900 case $host_os in
8901 aix*)
8902 # All AIX code is PIC.
8903 if test ia64 = "$host_cpu"; then
8904 # AIX 5 now supports IA64 processor
8905 lt_prog_compiler_static='-Bstatic'
8906 fi
8907 lt_prog_compiler_pic='-fPIC'
8908 ;;
8909
8910 amigaos*)
8911 case $host_cpu in
8912 powerpc)
8913 # see comment about AmigaOS4 .so support
8914 lt_prog_compiler_pic='-fPIC'
8915 ;;
8916 m68k)
8917 # FIXME: we need at least 68020 code to build shared libraries, but
8918 # adding the '-m68020' flag to GCC prevents building anything better,
8919 # like '-m68040'.
8920 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8921 ;;
8922 esac
8923 ;;
8924
8925 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8926 # PIC is the default for these OSes.
8927 ;;
8928
8929 mingw* | cygwin* | pw32* | os2* | cegcc*)
8930 # This hack is so that the source file can tell whether it is being
8931 # built for inclusion in a dll (and should export symbols for example).
8932 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8933 # (--disable-auto-import) libraries
8934 lt_prog_compiler_pic='-DDLL_EXPORT'
8935 case $host_os in
8936 os2*)
8937 lt_prog_compiler_static='$wl-static'
8938 ;;
8939 esac
8940 ;;
8941
8942 darwin* | rhapsody*)
8943 # PIC is the default on this platform
8944 # Common symbols not allowed in MH_DYLIB files
8945 lt_prog_compiler_pic='-fno-common'
8946 ;;
8947
8948 haiku*)
8949 # PIC is the default for Haiku.
8950 # The "-static" flag exists, but is broken.
8951 lt_prog_compiler_static=
8952 ;;
8953
8954 hpux*)
8955 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8956 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8957 # sets the default TLS model and affects inlining.
8958 case $host_cpu in
8959 hppa*64*)
8960 # +Z the default
8961 ;;
8962 *)
8963 lt_prog_compiler_pic='-fPIC'
8964 ;;
8965 esac
8966 ;;
8967
8968 interix[3-9]*)
8969 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8970 # Instead, we relocate shared libraries at runtime.
8971 ;;
8972
8973 msdosdjgpp*)
8974 # Just because we use GCC doesn't mean we suddenly get shared libraries
8975 # on systems that don't support them.
8976 lt_prog_compiler_can_build_shared=no
8977 enable_shared=no
8978 ;;
8979
8980 *nto* | *qnx*)
8981 # QNX uses GNU C++, but need to define -shared option too, otherwise
8982 # it will coredump.
8983 lt_prog_compiler_pic='-fPIC -shared'
8984 ;;
8985
8986 sysv4*MP*)
8987 if test -d /usr/nec; then
8988 lt_prog_compiler_pic=-Kconform_pic
8989 fi
8990 ;;
8991
8992 *)
8993 lt_prog_compiler_pic='-fPIC'
8994 ;;
8995 esac
8996
8997 case $cc_basename in
8998 nvcc*) # Cuda Compiler Driver 2.2
8999 lt_prog_compiler_wl='-Xlinker '
9000 if test -n "$lt_prog_compiler_pic"; then
9001 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9002 fi
9003 ;;
9004 esac
9005 else
9006 # PORTME Check for flag to pass linker flags through the system compiler.
9007 case $host_os in
9008 aix*)
9009 lt_prog_compiler_wl='-Wl,'
9010 if test ia64 = "$host_cpu"; then
9011 # AIX 5 now supports IA64 processor
9012 lt_prog_compiler_static='-Bstatic'
9013 else
9014 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9015 fi
9016 ;;
9017
9018 darwin* | rhapsody*)
9019 # PIC is the default on this platform
9020 # Common symbols not allowed in MH_DYLIB files
9021 lt_prog_compiler_pic='-fno-common'
9022 case $cc_basename in
9023 nagfor*)
9024 # NAG Fortran compiler
9025 lt_prog_compiler_wl='-Wl,-Wl,,'
9026 lt_prog_compiler_pic='-PIC'
9027 lt_prog_compiler_static='-Bstatic'
9028 ;;
9029 esac
9030 ;;
9031
9032 mingw* | cygwin* | pw32* | os2* | cegcc*)
9033 # This hack is so that the source file can tell whether it is being
9034 # built for inclusion in a dll (and should export symbols for example).
9035 lt_prog_compiler_pic='-DDLL_EXPORT'
9036 case $host_os in
9037 os2*)
9038 lt_prog_compiler_static='$wl-static'
9039 ;;
9040 esac
9041 ;;
9042
9043 hpux9* | hpux10* | hpux11*)
9044 lt_prog_compiler_wl='-Wl,'
9045 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9046 # not for PA HP-UX.
9047 case $host_cpu in
9048 hppa*64*|ia64*)
9049 # +Z the default
9050 ;;
9051 *)
9052 lt_prog_compiler_pic='+Z'
9053 ;;
9054 esac
9055 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9056 lt_prog_compiler_static='$wl-a ${wl}archive'
9057 ;;
9058
9059 irix5* | irix6* | nonstopux*)
9060 lt_prog_compiler_wl='-Wl,'
9061 # PIC (with -KPIC) is the default.
9062 lt_prog_compiler_static='-non_shared'
9063 ;;
9064
9065 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9066 case $cc_basename in
9067 # old Intel for x86_64, which still supported -KPIC.
9068 ecc*)
9069 lt_prog_compiler_wl='-Wl,'
9070 lt_prog_compiler_pic='-KPIC'
9071 lt_prog_compiler_static='-static'
9072 ;;
9073 # flang / f18. f95 an alias for gfortran or flang on Debian
9074 flang* | f18* | f95*)
9075 lt_prog_compiler_wl='-Wl,'
9076 lt_prog_compiler_pic='-fPIC'
9077 lt_prog_compiler_static='-static'
9078 ;;
9079 # icc used to be incompatible with GCC.
9080 # ICC 10 doesn't accept -KPIC any more.
9081 icc* | ifort*)
9082 lt_prog_compiler_wl='-Wl,'
9083 lt_prog_compiler_pic='-fPIC'
9084 lt_prog_compiler_static='-static'
9085 ;;
9086 # Lahey Fortran 8.1.
9087 lf95*)
9088 lt_prog_compiler_wl='-Wl,'
9089 lt_prog_compiler_pic='--shared'
9090 lt_prog_compiler_static='--static'
9091 ;;
9092 nagfor*)
9093 # NAG Fortran compiler
9094 lt_prog_compiler_wl='-Wl,-Wl,,'
9095 lt_prog_compiler_pic='-PIC'
9096 lt_prog_compiler_static='-Bstatic'
9097 ;;
9098 tcc*)
9099 # Fabrice Bellard et al's Tiny C Compiler
9100 lt_prog_compiler_wl='-Wl,'
9101 lt_prog_compiler_pic='-fPIC'
9102 lt_prog_compiler_static='-static'
9103 ;;
9104 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9105 # Portland Group compilers (*not* the Pentium gcc compiler,
9106 # which looks to be a dead project)
9107 lt_prog_compiler_wl='-Wl,'
9108 lt_prog_compiler_pic='-fpic'
9109 lt_prog_compiler_static='-Bstatic'
9110 ;;
9111 ccc*)
9112 lt_prog_compiler_wl='-Wl,'
9113 # All Alpha code is PIC.
9114 lt_prog_compiler_static='-non_shared'
9115 ;;
9116 xl* | bgxl* | bgf* | mpixl*)
9117 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9118 lt_prog_compiler_wl='-Wl,'
9119 lt_prog_compiler_pic='-qpic'
9120 lt_prog_compiler_static='-qstaticlink'
9121 ;;
9122 *)
9123 case `$CC -V 2>&1 | $SED 5q` in
9124 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9125 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9126 lt_prog_compiler_pic='-KPIC'
9127 lt_prog_compiler_static='-Bstatic'
9128 lt_prog_compiler_wl=''
9129 ;;
9130 *Sun\ F* | *Sun*Fortran*)
9131 lt_prog_compiler_pic='-KPIC'
9132 lt_prog_compiler_static='-Bstatic'
9133 lt_prog_compiler_wl='-Qoption ld '
9134 ;;
9135 *Sun\ C*)
9136 # Sun C 5.9
9137 lt_prog_compiler_pic='-KPIC'
9138 lt_prog_compiler_static='-Bstatic'
9139 lt_prog_compiler_wl='-Wl,'
9140 ;;
9141 *Intel*\ [CF]*Compiler*)
9142 lt_prog_compiler_wl='-Wl,'
9143 lt_prog_compiler_pic='-fPIC'
9144 lt_prog_compiler_static='-static'
9145 ;;
9146 *Portland\ Group*)
9147 lt_prog_compiler_wl='-Wl,'
9148 lt_prog_compiler_pic='-fpic'
9149 lt_prog_compiler_static='-Bstatic'
9150 ;;
9151 esac
9152 ;;
9153 esac
9154 ;;
9155
9156 newsos6)
9157 lt_prog_compiler_pic='-KPIC'
9158 lt_prog_compiler_static='-Bstatic'
9159 ;;
9160
9161 *nto* | *qnx*)
9162 # QNX uses GNU C++, but need to define -shared option too, otherwise
9163 # it will coredump.
9164 lt_prog_compiler_pic='-fPIC -shared'
9165 ;;
9166
9167 osf3* | osf4* | osf5*)
9168 lt_prog_compiler_wl='-Wl,'
9169 # All OSF/1 code is PIC.
9170 lt_prog_compiler_static='-non_shared'
9171 ;;
9172
9173 rdos*)
9174 lt_prog_compiler_static='-non_shared'
9175 ;;
9176
9177 solaris*)
9178 lt_prog_compiler_pic='-KPIC'
9179 lt_prog_compiler_static='-Bstatic'
9180 case $cc_basename in
9181 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9182 lt_prog_compiler_wl='-Qoption ld ';;
9183 *)
9184 lt_prog_compiler_wl='-Wl,';;
9185 esac
9186 ;;
9187
9188 sunos4*)
9189 lt_prog_compiler_wl='-Qoption ld '
9190 lt_prog_compiler_pic='-PIC'
9191 lt_prog_compiler_static='-Bstatic'
9192 ;;
9193
9194 sysv4 | sysv4.2uw2* | sysv4.3*)
9195 lt_prog_compiler_wl='-Wl,'
9196 lt_prog_compiler_pic='-KPIC'
9197 lt_prog_compiler_static='-Bstatic'
9198 ;;
9199
9200 sysv4*MP*)
9201 if test -d /usr/nec; then
9202 lt_prog_compiler_pic='-Kconform_pic'
9203 lt_prog_compiler_static='-Bstatic'
9204 fi
9205 ;;
9206
9207 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9208 lt_prog_compiler_wl='-Wl,'
9209 lt_prog_compiler_pic='-KPIC'
9210 lt_prog_compiler_static='-Bstatic'
9211 ;;
9212
9213 unicos*)
9214 lt_prog_compiler_wl='-Wl,'
9215 lt_prog_compiler_can_build_shared=no
9216 ;;
9217
9218 uts4*)
9219 lt_prog_compiler_pic='-pic'
9220 lt_prog_compiler_static='-Bstatic'
9221 ;;
9222
9223 *)
9224 lt_prog_compiler_can_build_shared=no
9225 ;;
9226 esac
9227 fi
9228
9229 case $host_os in
9230 # For platforms that do not support PIC, -DPIC is meaningless:
9231 *djgpp*)
9232 lt_prog_compiler_pic=
9233 ;;
9234 *)
9235 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9236 ;;
9237 esac
9238
9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9240 printf %s "checking for $compiler option to produce PIC... " >&6; }
9241 if test ${lt_cv_prog_compiler_pic+y}
9242 then :
9243 printf %s "(cached) " >&6
9244 else $as_nop
9245 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9246 fi
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9248 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9249 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9250
9251 #
9252 # Check to make sure the PIC flag actually works.
9253 #
9254 if test -n "$lt_prog_compiler_pic"; then
9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9256 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9257 if test ${lt_cv_prog_compiler_pic_works+y}
9258 then :
9259 printf %s "(cached) " >&6
9260 else $as_nop
9261 lt_cv_prog_compiler_pic_works=no
9262 ac_outfile=conftest.$ac_objext
9263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9264 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9265 # Insert the option either (1) after the last *FLAGS variable, or
9266 # (2) before a word containing "conftest.", or (3) at the end.
9267 # Note that $ac_compile itself does not contain backslashes and begins
9268 # with a dollar sign (not a hyphen), so the echo should work correctly.
9269 # The option is referenced via a variable to avoid confusing sed.
9270 lt_compile=`echo "$ac_compile" | $SED \
9271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9273 -e 's:$: $lt_compiler_flag:'`
9274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9275 (eval "$lt_compile" 2>conftest.err)
9276 ac_status=$?
9277 cat conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 if (exit $ac_status) && test -s "$ac_outfile"; then
9280 # The compiler can only warn and ignore the option if not recognized
9281 # So say no if there are warnings other than the usual output.
9282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9285 lt_cv_prog_compiler_pic_works=yes
9286 fi
9287 fi
9288 $RM conftest*
9289
9290 fi
9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9292 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9293
9294 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9295 case $lt_prog_compiler_pic in
9296 "" | " "*) ;;
9297 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9298 esac
9299 else
9300 lt_prog_compiler_pic=
9301 lt_prog_compiler_can_build_shared=no
9302 fi
9303
9304 fi
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316 #
9317 # Check to make sure the static flag actually works.
9318 #
9319 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9321 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9322 if test ${lt_cv_prog_compiler_static_works+y}
9323 then :
9324 printf %s "(cached) " >&6
9325 else $as_nop
9326 lt_cv_prog_compiler_static_works=no
9327 save_LDFLAGS=$LDFLAGS
9328 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9329 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9330 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9331 # The linker can only warn and ignore the option if not recognized
9332 # So say no if there are warnings
9333 if test -s conftest.err; then
9334 # Append any errors to the config.log.
9335 cat conftest.err 1>&5
9336 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9338 if diff conftest.exp conftest.er2 >/dev/null; then
9339 lt_cv_prog_compiler_static_works=yes
9340 fi
9341 else
9342 lt_cv_prog_compiler_static_works=yes
9343 fi
9344 fi
9345 $RM -r conftest*
9346 LDFLAGS=$save_LDFLAGS
9347
9348 fi
9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9350 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9351
9352 if test yes = "$lt_cv_prog_compiler_static_works"; then
9353 :
9354 else
9355 lt_prog_compiler_static=
9356 fi
9357
9358
9359
9360
9361
9362
9363
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9365 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9366 if test ${lt_cv_prog_compiler_c_o+y}
9367 then :
9368 printf %s "(cached) " >&6
9369 else $as_nop
9370 lt_cv_prog_compiler_c_o=no
9371 $RM -r conftest 2>/dev/null
9372 mkdir conftest
9373 cd conftest
9374 mkdir out
9375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9376
9377 lt_compiler_flag="-o out/conftest2.$ac_objext"
9378 # Insert the option either (1) after the last *FLAGS variable, or
9379 # (2) before a word containing "conftest.", or (3) at the end.
9380 # Note that $ac_compile itself does not contain backslashes and begins
9381 # with a dollar sign (not a hyphen), so the echo should work correctly.
9382 lt_compile=`echo "$ac_compile" | $SED \
9383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9385 -e 's:$: $lt_compiler_flag:'`
9386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9387 (eval "$lt_compile" 2>out/conftest.err)
9388 ac_status=$?
9389 cat out/conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9392 then
9393 # The compiler can only warn and ignore the option if not recognized
9394 # So say no if there are warnings
9395 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9396 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9397 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9398 lt_cv_prog_compiler_c_o=yes
9399 fi
9400 fi
9401 chmod u+w . 2>&5
9402 $RM conftest*
9403 # SGI C++ compiler will create directory out/ii_files/ for
9404 # template instantiation
9405 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9406 $RM out/* && rmdir out
9407 cd ..
9408 $RM -r conftest
9409 $RM conftest*
9410
9411 fi
9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9413 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9414
9415
9416
9417
9418
9419
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9421 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9422 if test ${lt_cv_prog_compiler_c_o+y}
9423 then :
9424 printf %s "(cached) " >&6
9425 else $as_nop
9426 lt_cv_prog_compiler_c_o=no
9427 $RM -r conftest 2>/dev/null
9428 mkdir conftest
9429 cd conftest
9430 mkdir out
9431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9432
9433 lt_compiler_flag="-o out/conftest2.$ac_objext"
9434 # Insert the option either (1) after the last *FLAGS variable, or
9435 # (2) before a word containing "conftest.", or (3) at the end.
9436 # Note that $ac_compile itself does not contain backslashes and begins
9437 # with a dollar sign (not a hyphen), so the echo should work correctly.
9438 lt_compile=`echo "$ac_compile" | $SED \
9439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9441 -e 's:$: $lt_compiler_flag:'`
9442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9443 (eval "$lt_compile" 2>out/conftest.err)
9444 ac_status=$?
9445 cat out/conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9448 then
9449 # The compiler can only warn and ignore the option if not recognized
9450 # So say no if there are warnings
9451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9454 lt_cv_prog_compiler_c_o=yes
9455 fi
9456 fi
9457 chmod u+w . 2>&5
9458 $RM conftest*
9459 # SGI C++ compiler will create directory out/ii_files/ for
9460 # template instantiation
9461 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9462 $RM out/* && rmdir out
9463 cd ..
9464 $RM -r conftest
9465 $RM conftest*
9466
9467 fi
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9469 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9470
9471
9472
9473
9474 hard_links=nottested
9475 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9476 # do not overwrite the value of need_locks provided by the user
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9478 printf %s "checking if we can lock with hard links... " >&6; }
9479 hard_links=yes
9480 $RM conftest*
9481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9482 touch conftest.a
9483 ln conftest.a conftest.b 2>&5 || hard_links=no
9484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9486 printf "%s\n" "$hard_links" >&6; }
9487 if test no = "$hard_links"; then
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9489 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9490 need_locks=warn
9491 fi
9492 else
9493 need_locks=no
9494 fi
9495
9496
9497
9498
9499
9500
9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9502 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9503
9504 runpath_var=
9505 allow_undefined_flag=
9506 always_export_symbols=no
9507 archive_cmds=
9508 archive_expsym_cmds=
9509 compiler_needs_object=no
9510 enable_shared_with_static_runtimes=no
9511 export_dynamic_flag_spec=
9512 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9513 hardcode_automatic=no
9514 hardcode_direct=no
9515 hardcode_direct_absolute=no
9516 hardcode_libdir_flag_spec=
9517 hardcode_libdir_separator=
9518 hardcode_minus_L=no
9519 hardcode_shlibpath_var=unsupported
9520 inherit_rpath=no
9521 link_all_deplibs=unknown
9522 module_cmds=
9523 module_expsym_cmds=
9524 old_archive_from_new_cmds=
9525 old_archive_from_expsyms_cmds=
9526 thread_safe_flag_spec=
9527 whole_archive_flag_spec=
9528 # include_expsyms should be a list of space-separated symbols to be *always*
9529 # included in the symbol list
9530 include_expsyms=
9531 # exclude_expsyms can be an extended regexp of symbols to exclude
9532 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9533 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9534 # as well as any symbol that contains 'd'.
9535 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9536 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9537 # platforms (ab)use it in PIC code, but their linkers get confused if
9538 # the symbol is explicitly referenced. Since portable code cannot
9539 # rely on this symbol name, it's probably fine to never include it in
9540 # preloaded symbol tables.
9541 # Exclude shared library initialization/finalization symbols.
9542 extract_expsyms_cmds=
9543
9544 case $host_os in
9545 cygwin* | mingw* | pw32* | cegcc*)
9546 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9547 # When not using gcc, we currently assume that we are using
9548 # Microsoft Visual C++ or Intel C++ Compiler.
9549 if test yes != "$GCC"; then
9550 with_gnu_ld=no
9551 fi
9552 ;;
9553 interix*)
9554 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9555 with_gnu_ld=yes
9556 ;;
9557 openbsd* | bitrig*)
9558 with_gnu_ld=no
9559 ;;
9560 linux* | k*bsd*-gnu | gnu*)
9561 link_all_deplibs=no
9562 ;;
9563 esac
9564
9565 ld_shlibs=yes
9566
9567 # On some targets, GNU ld is compatible enough with the native linker
9568 # that we're better off using the native interface for both.
9569 lt_use_gnu_ld_interface=no
9570 if test yes = "$with_gnu_ld"; then
9571 case $host_os in
9572 aix*)
9573 # The AIX port of GNU ld has always aspired to compatibility
9574 # with the native linker. However, as the warning in the GNU ld
9575 # block says, versions before 2.19.5* couldn't really create working
9576 # shared libraries, regardless of the interface used.
9577 case `$LD -v 2>&1` in
9578 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9579 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9580 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9581 *)
9582 lt_use_gnu_ld_interface=yes
9583 ;;
9584 esac
9585 ;;
9586 *)
9587 lt_use_gnu_ld_interface=yes
9588 ;;
9589 esac
9590 fi
9591
9592 if test yes = "$lt_use_gnu_ld_interface"; then
9593 # If archive_cmds runs LD, not CC, wlarc should be empty
9594 wlarc='$wl'
9595
9596 # Set some defaults for GNU ld with shared library support. These
9597 # are reset later if shared libraries are not supported. Putting them
9598 # here allows them to be overridden if necessary.
9599 runpath_var=LD_RUN_PATH
9600 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9601 export_dynamic_flag_spec='$wl--export-dynamic'
9602 # ancient GNU ld didn't support --whole-archive et. al.
9603 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9604 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9605 else
9606 whole_archive_flag_spec=
9607 fi
9608 supports_anon_versioning=no
9609 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9610 *GNU\ gold*) supports_anon_versioning=yes ;;
9611 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9612 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9613 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9614 *\ 2.11.*) ;; # other 2.11 versions
9615 *) supports_anon_versioning=yes ;;
9616 esac
9617
9618 # See if GNU ld supports shared libraries.
9619 case $host_os in
9620 aix[3-9]*)
9621 # On AIX/PPC, the GNU linker is very broken
9622 if test ia64 != "$host_cpu"; then
9623 ld_shlibs=no
9624 cat <<_LT_EOF 1>&2
9625
9626 *** Warning: the GNU linker, at least up to release 2.19, is reported
9627 *** to be unable to reliably create shared libraries on AIX.
9628 *** Therefore, libtool is disabling shared libraries support. If you
9629 *** really care for shared libraries, you may want to install binutils
9630 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9631 *** You will then need to restart the configuration process.
9632
9633 _LT_EOF
9634 fi
9635 ;;
9636
9637 amigaos*)
9638 case $host_cpu in
9639 powerpc)
9640 # see comment about AmigaOS4 .so support
9641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9642 archive_expsym_cmds=''
9643 ;;
9644 m68k)
9645 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)'
9646 hardcode_libdir_flag_spec='-L$libdir'
9647 hardcode_minus_L=yes
9648 ;;
9649 esac
9650 ;;
9651
9652 beos*)
9653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9654 allow_undefined_flag=unsupported
9655 # Joseph Beckenbach <[email protected]> says some releases of gcc
9656 # support --undefined. This deserves some investigation. FIXME
9657 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9658 else
9659 ld_shlibs=no
9660 fi
9661 ;;
9662
9663 cygwin* | mingw* | pw32* | cegcc*)
9664 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9665 # as there is no search path for DLLs.
9666 hardcode_libdir_flag_spec='-L$libdir'
9667 export_dynamic_flag_spec='$wl--export-all-symbols'
9668 allow_undefined_flag=unsupported
9669 always_export_symbols=no
9670 enable_shared_with_static_runtimes=yes
9671 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'
9672 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9673
9674 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9676 # If the export-symbols file already is a .def file, use it as
9677 # is; otherwise, prepend EXPORTS...
9678 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9679 cp $export_symbols $output_objdir/$soname.def;
9680 else
9681 echo EXPORTS > $output_objdir/$soname.def;
9682 cat $export_symbols >> $output_objdir/$soname.def;
9683 fi~
9684 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9685 else
9686 ld_shlibs=no
9687 fi
9688 ;;
9689
9690 haiku*)
9691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9692 link_all_deplibs=yes
9693 ;;
9694
9695 os2*)
9696 hardcode_libdir_flag_spec='-L$libdir'
9697 hardcode_minus_L=yes
9698 allow_undefined_flag=unsupported
9699 shrext_cmds=.dll
9700 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9701 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9702 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9703 $ECHO EXPORTS >> $output_objdir/$libname.def~
9704 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9705 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9706 emximp -o $lib $output_objdir/$libname.def'
9707 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9708 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9709 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9710 $ECHO EXPORTS >> $output_objdir/$libname.def~
9711 prefix_cmds="$SED"~
9712 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9713 prefix_cmds="$prefix_cmds -e 1d";
9714 fi~
9715 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9716 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9717 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9718 emximp -o $lib $output_objdir/$libname.def'
9719 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9720 enable_shared_with_static_runtimes=yes
9721 file_list_spec='@'
9722 ;;
9723
9724 interix[3-9]*)
9725 hardcode_direct=no
9726 hardcode_shlibpath_var=no
9727 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9728 export_dynamic_flag_spec='$wl-E'
9729 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9730 # Instead, shared libraries are loaded at an image base (0x10000000 by
9731 # default) and relocated if they conflict, which is a slow very memory
9732 # consuming and fragmenting process. To avoid this, we pick a random,
9733 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9734 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9735 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9736 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'
9737 ;;
9738
9739 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9740 tmp_diet=no
9741 if test linux-dietlibc = "$host_os"; then
9742 case $cc_basename in
9743 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9744 esac
9745 fi
9746 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9747 && test no = "$tmp_diet"
9748 then
9749 tmp_addflag=' $pic_flag'
9750 tmp_sharedflag='-shared'
9751 case $cc_basename,$host_cpu in
9752 pgcc*) # Portland Group C compiler
9753 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'
9754 tmp_addflag=' $pic_flag'
9755 ;;
9756 pgf77* | pgf90* | pgf95* | pgfortran*)
9757 # Portland Group f77 and f90 compilers
9758 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'
9759 tmp_addflag=' $pic_flag -Mnomain' ;;
9760 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9761 tmp_addflag=' -i_dynamic' ;;
9762 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9763 tmp_addflag=' -i_dynamic -nofor_main' ;;
9764 ifc* | ifort*) # Intel Fortran compiler
9765 tmp_addflag=' -nofor_main' ;;
9766 lf95*) # Lahey Fortran 8.1
9767 whole_archive_flag_spec=
9768 tmp_sharedflag='--shared' ;;
9769 nagfor*) # NAGFOR 5.3
9770 tmp_sharedflag='-Wl,-shared' ;;
9771 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9772 tmp_sharedflag='-qmkshrobj'
9773 tmp_addflag= ;;
9774 nvcc*) # Cuda Compiler Driver 2.2
9775 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'
9776 compiler_needs_object=yes
9777 ;;
9778 esac
9779 case `$CC -V 2>&1 | $SED 5q` in
9780 *Sun\ C*) # Sun C 5.9
9781 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'
9782 compiler_needs_object=yes
9783 tmp_sharedflag='-G' ;;
9784 *Sun\ F*) # Sun Fortran 8.3
9785 tmp_sharedflag='-G' ;;
9786 esac
9787 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9788
9789 if test yes = "$supports_anon_versioning"; then
9790 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9791 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9792 echo "local: *; };" >> $output_objdir/$libname.ver~
9793 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9794 fi
9795
9796 case $cc_basename in
9797 tcc*)
9798 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9799 export_dynamic_flag_spec='-rdynamic'
9800 ;;
9801 xlf* | bgf* | bgxlf* | mpixlf*)
9802 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9803 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9804 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9805 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9806 if test yes = "$supports_anon_versioning"; then
9807 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9808 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9809 echo "local: *; };" >> $output_objdir/$libname.ver~
9810 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9811 fi
9812 ;;
9813 esac
9814 else
9815 ld_shlibs=no
9816 fi
9817 ;;
9818
9819 netbsd* | netbsdelf*-gnu)
9820 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9821 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9822 wlarc=
9823 else
9824 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9825 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9826 fi
9827 ;;
9828
9829 solaris*)
9830 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9831 ld_shlibs=no
9832 cat <<_LT_EOF 1>&2
9833
9834 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9835 *** create shared libraries on Solaris systems. Therefore, libtool
9836 *** is disabling shared libraries support. We urge you to upgrade GNU
9837 *** binutils to release 2.9.1 or newer. Another option is to modify
9838 *** your PATH or compiler configuration so that the native linker is
9839 *** used, and then restart.
9840
9841 _LT_EOF
9842 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9844 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9845 else
9846 ld_shlibs=no
9847 fi
9848 ;;
9849
9850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9851 case `$LD -v 2>&1` in
9852 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9853 ld_shlibs=no
9854 cat <<_LT_EOF 1>&2
9855
9856 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9857 *** reliably create shared libraries on SCO systems. Therefore, libtool
9858 *** is disabling shared libraries support. We urge you to upgrade GNU
9859 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9860 *** your PATH or compiler configuration so that the native linker is
9861 *** used, and then restart.
9862
9863 _LT_EOF
9864 ;;
9865 *)
9866 # For security reasons, it is highly recommended that you always
9867 # use absolute paths for naming shared libraries, and exclude the
9868 # DT_RUNPATH tag from executables and libraries. But doing so
9869 # requires that you compile everything twice, which is a pain.
9870 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9871 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9873 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9874 else
9875 ld_shlibs=no
9876 fi
9877 ;;
9878 esac
9879 ;;
9880
9881 sunos4*)
9882 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9883 wlarc=
9884 hardcode_direct=yes
9885 hardcode_shlibpath_var=no
9886 ;;
9887
9888 *)
9889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9890 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9891 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9892 else
9893 ld_shlibs=no
9894 fi
9895 ;;
9896 esac
9897
9898 if test no = "$ld_shlibs"; then
9899 runpath_var=
9900 hardcode_libdir_flag_spec=
9901 export_dynamic_flag_spec=
9902 whole_archive_flag_spec=
9903 fi
9904 else
9905 # PORTME fill in a description of your system's linker (not GNU ld)
9906 case $host_os in
9907 aix3*)
9908 allow_undefined_flag=unsupported
9909 always_export_symbols=yes
9910 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'
9911 # Note: this linker hardcodes the directories in LIBPATH if there
9912 # are no directories specified by -L.
9913 hardcode_minus_L=yes
9914 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9915 # Neither direct hardcoding nor static linking is supported with a
9916 # broken collect2.
9917 hardcode_direct=unsupported
9918 fi
9919 ;;
9920
9921 aix[4-9]*)
9922 if test ia64 = "$host_cpu"; then
9923 # On IA64, the linker does run time linking by default, so we don't
9924 # have to do anything special.
9925 aix_use_runtimelinking=no
9926 exp_sym_flag='-Bexport'
9927 no_entry_flag=
9928 else
9929 # If we're using GNU nm, then we don't want the "-C" option.
9930 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9931 # Without the "-l" option, or with the "-B" option, AIX nm treats
9932 # weak defined symbols like other global defined symbols, whereas
9933 # GNU nm marks them as "W".
9934 # While the 'weak' keyword is ignored in the Export File, we need
9935 # it in the Import File for the 'aix-soname' feature, so we have
9936 # to replace the "-B" option with "-P" for AIX nm.
9937 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9938 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'
9939 else
9940 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'
9941 fi
9942 aix_use_runtimelinking=no
9943
9944 # Test if we are trying to use run time linking or normal
9945 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9946 # have runtime linking enabled, and use it for executables.
9947 # For shared libraries, we enable/disable runtime linking
9948 # depending on the kind of the shared library created -
9949 # when "with_aix_soname,aix_use_runtimelinking" is:
9950 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9951 # "aix,yes" lib.so shared, rtl:yes, for executables
9952 # lib.a static archive
9953 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9954 # lib.a(lib.so.V) shared, rtl:no, for executables
9955 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9956 # lib.a(lib.so.V) shared, rtl:no
9957 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9958 # lib.a static archive
9959 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9960 for ld_flag in $LDFLAGS; do
9961 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9962 aix_use_runtimelinking=yes
9963 break
9964 fi
9965 done
9966 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9967 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9968 # so we don't have lib.a shared libs to link our executables.
9969 # We have to force runtime linking in this case.
9970 aix_use_runtimelinking=yes
9971 LDFLAGS="$LDFLAGS -Wl,-brtl"
9972 fi
9973 ;;
9974 esac
9975
9976 exp_sym_flag='-bexport'
9977 no_entry_flag='-bnoentry'
9978 fi
9979
9980 # When large executables or shared objects are built, AIX ld can
9981 # have problems creating the table of contents. If linking a library
9982 # or program results in "error TOC overflow" add -mminimal-toc to
9983 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9984 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9985
9986 archive_cmds=''
9987 hardcode_direct=yes
9988 hardcode_direct_absolute=yes
9989 hardcode_libdir_separator=':'
9990 link_all_deplibs=yes
9991 file_list_spec='$wl-f,'
9992 case $with_aix_soname,$aix_use_runtimelinking in
9993 aix,*) ;; # traditional, no import file
9994 svr4,* | *,yes) # use import file
9995 # The Import File defines what to hardcode.
9996 hardcode_direct=no
9997 hardcode_direct_absolute=no
9998 ;;
9999 esac
10000
10001 if test yes = "$GCC"; then
10002 case $host_os in aix4.[012]|aix4.[012].*)
10003 # We only want to do this on AIX 4.2 and lower, the check
10004 # below for broken collect2 doesn't work under 4.3+
10005 collect2name=`$CC -print-prog-name=collect2`
10006 if test -f "$collect2name" &&
10007 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10008 then
10009 # We have reworked collect2
10010 :
10011 else
10012 # We have old collect2
10013 hardcode_direct=unsupported
10014 # It fails to find uninstalled libraries when the uninstalled
10015 # path is not listed in the libpath. Setting hardcode_minus_L
10016 # to unsupported forces relinking
10017 hardcode_minus_L=yes
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_libdir_separator=
10020 fi
10021 ;;
10022 esac
10023 shared_flag='-shared'
10024 if test yes = "$aix_use_runtimelinking"; then
10025 shared_flag="$shared_flag "'$wl-G'
10026 fi
10027 # Need to ensure runtime linking is disabled for the traditional
10028 # shared library, or the linker may eventually find shared libraries
10029 # /with/ Import File - we do not want to mix them.
10030 shared_flag_aix='-shared'
10031 shared_flag_svr4='-shared $wl-G'
10032 else
10033 # not using gcc
10034 if test ia64 = "$host_cpu"; then
10035 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10036 # chokes on -Wl,-G. The following line is correct:
10037 shared_flag='-G'
10038 else
10039 if test yes = "$aix_use_runtimelinking"; then
10040 shared_flag='$wl-G'
10041 else
10042 shared_flag='$wl-bM:SRE'
10043 fi
10044 shared_flag_aix='$wl-bM:SRE'
10045 shared_flag_svr4='$wl-G'
10046 fi
10047 fi
10048
10049 export_dynamic_flag_spec='$wl-bexpall'
10050 # It seems that -bexpall does not export symbols beginning with
10051 # underscore (_), so it is better to generate a list of symbols to export.
10052 always_export_symbols=yes
10053 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10054 # Warning - without using the other runtime loading flags (-brtl),
10055 # -berok will link without error, but may produce a broken library.
10056 allow_undefined_flag='-berok'
10057 # Determine the default libpath from the value encoded in an
10058 # empty executable.
10059 if test set = "${lt_cv_aix_libpath+set}"; then
10060 aix_libpath=$lt_cv_aix_libpath
10061 else
10062 if test ${lt_cv_aix_libpath_+y}
10063 then :
10064 printf %s "(cached) " >&6
10065 else $as_nop
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068
10069 int
10070 main (void)
10071 {
10072
10073 ;
10074 return 0;
10075 }
10076 _ACEOF
10077 if ac_fn_c_try_link "$LINENO"
10078 then :
10079
10080 lt_aix_libpath_sed='
10081 /Import File Strings/,/^$/ {
10082 /^0/ {
10083 s/^0 *\([^ ]*\) *$/\1/
10084 p
10085 }
10086 }'
10087 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10088 # Check for a 64-bit object if we didn't find anything.
10089 if test -z "$lt_cv_aix_libpath_"; then
10090 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10091 fi
10092 fi
10093 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10094 conftest$ac_exeext conftest.$ac_ext
10095 if test -z "$lt_cv_aix_libpath_"; then
10096 lt_cv_aix_libpath_=/usr/lib:/lib
10097 fi
10098
10099 fi
10100
10101 aix_libpath=$lt_cv_aix_libpath_
10102 fi
10103
10104 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10105 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
10106 else
10107 if test ia64 = "$host_cpu"; then
10108 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10109 allow_undefined_flag="-z nodefs"
10110 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"
10111 else
10112 # Determine the default libpath from the value encoded in an
10113 # empty executable.
10114 if test set = "${lt_cv_aix_libpath+set}"; then
10115 aix_libpath=$lt_cv_aix_libpath
10116 else
10117 if test ${lt_cv_aix_libpath_+y}
10118 then :
10119 printf %s "(cached) " >&6
10120 else $as_nop
10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10123
10124 int
10125 main (void)
10126 {
10127
10128 ;
10129 return 0;
10130 }
10131 _ACEOF
10132 if ac_fn_c_try_link "$LINENO"
10133 then :
10134
10135 lt_aix_libpath_sed='
10136 /Import File Strings/,/^$/ {
10137 /^0/ {
10138 s/^0 *\([^ ]*\) *$/\1/
10139 p
10140 }
10141 }'
10142 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10143 # Check for a 64-bit object if we didn't find anything.
10144 if test -z "$lt_cv_aix_libpath_"; then
10145 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10146 fi
10147 fi
10148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10149 conftest$ac_exeext conftest.$ac_ext
10150 if test -z "$lt_cv_aix_libpath_"; then
10151 lt_cv_aix_libpath_=/usr/lib:/lib
10152 fi
10153
10154 fi
10155
10156 aix_libpath=$lt_cv_aix_libpath_
10157 fi
10158
10159 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10160 # Warning - without using the other run time loading flags,
10161 # -berok will link without error, but may produce a broken library.
10162 no_undefined_flag=' $wl-bernotok'
10163 allow_undefined_flag=' $wl-berok'
10164 if test yes = "$with_gnu_ld"; then
10165 # We only use this code for GNU lds that support --whole-archive.
10166 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10167 else
10168 # Exported symbols can be pulled into shared objects from archives
10169 whole_archive_flag_spec='$convenience'
10170 fi
10171 archive_cmds_need_lc=yes
10172 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10173 # -brtl affects multiple linker settings, -berok does not and is overridden later
10174 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10175 if test svr4 != "$with_aix_soname"; then
10176 # This is similar to how AIX traditionally builds its shared libraries.
10177 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'
10178 fi
10179 if test aix != "$with_aix_soname"; then
10180 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'
10181 else
10182 # used by -dlpreopen to get the symbols
10183 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10184 fi
10185 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10186 fi
10187 fi
10188 ;;
10189
10190 amigaos*)
10191 case $host_cpu in
10192 powerpc)
10193 # see comment about AmigaOS4 .so support
10194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10195 archive_expsym_cmds=''
10196 ;;
10197 m68k)
10198 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)'
10199 hardcode_libdir_flag_spec='-L$libdir'
10200 hardcode_minus_L=yes
10201 ;;
10202 esac
10203 ;;
10204
10205 bsdi[45]*)
10206 export_dynamic_flag_spec=-rdynamic
10207 ;;
10208
10209 cygwin* | mingw* | pw32* | cegcc*)
10210 # When not using gcc, we currently assume that we are using
10211 # Microsoft Visual C++ or Intel C++ Compiler.
10212 # hardcode_libdir_flag_spec is actually meaningless, as there is
10213 # no search path for DLLs.
10214 case $cc_basename in
10215 cl* | icl*)
10216 # Native MSVC or ICC
10217 hardcode_libdir_flag_spec=' '
10218 allow_undefined_flag=unsupported
10219 always_export_symbols=yes
10220 file_list_spec='@'
10221 # Tell ltmain to make .lib files, not .a files.
10222 libext=lib
10223 # Tell ltmain to make .dll files, not .so files.
10224 shrext_cmds=.dll
10225 # FIXME: Setting linknames here is a bad hack.
10226 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10227 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10228 cp "$export_symbols" "$output_objdir/$soname.def";
10229 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10230 else
10231 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10232 fi~
10233 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10234 linknames='
10235 # The linker will not automatically build a static lib if we build a DLL.
10236 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10237 enable_shared_with_static_runtimes=yes
10238 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10239 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10240 # Don't use ranlib
10241 old_postinstall_cmds='chmod 644 $oldlib'
10242 postlink_cmds='lt_outputfile="@OUTPUT@"~
10243 lt_tool_outputfile="@TOOL_OUTPUT@"~
10244 case $lt_outputfile in
10245 *.exe|*.EXE) ;;
10246 *)
10247 lt_outputfile=$lt_outputfile.exe
10248 lt_tool_outputfile=$lt_tool_outputfile.exe
10249 ;;
10250 esac~
10251 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10252 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10253 $RM "$lt_outputfile.manifest";
10254 fi'
10255 ;;
10256 *)
10257 # Assume MSVC and ICC wrapper
10258 hardcode_libdir_flag_spec=' '
10259 allow_undefined_flag=unsupported
10260 # Tell ltmain to make .lib files, not .a files.
10261 libext=lib
10262 # Tell ltmain to make .dll files, not .so files.
10263 shrext_cmds=.dll
10264 # FIXME: Setting linknames here is a bad hack.
10265 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10266 # The linker will automatically build a .lib file if we build a DLL.
10267 old_archive_from_new_cmds='true'
10268 # FIXME: Should let the user specify the lib program.
10269 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10270 enable_shared_with_static_runtimes=yes
10271 ;;
10272 esac
10273 ;;
10274
10275 darwin* | rhapsody*)
10276
10277
10278 archive_cmds_need_lc=no
10279 hardcode_direct=no
10280 hardcode_automatic=yes
10281 hardcode_shlibpath_var=unsupported
10282 if test yes = "$lt_cv_ld_force_load"; then
10283 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\"`'
10284
10285 else
10286 whole_archive_flag_spec=''
10287 fi
10288 link_all_deplibs=yes
10289 allow_undefined_flag=$_lt_dar_allow_undefined
10290 case $cc_basename in
10291 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10292 *) _lt_dar_can_shared=$GCC ;;
10293 esac
10294 if test yes = "$_lt_dar_can_shared"; then
10295 output_verbose_link_cmd=func_echo_all
10296 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10297 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10298 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"
10299 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"
10300
10301 else
10302 ld_shlibs=no
10303 fi
10304
10305 ;;
10306
10307 dgux*)
10308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10309 hardcode_libdir_flag_spec='-L$libdir'
10310 hardcode_shlibpath_var=no
10311 ;;
10312
10313 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10314 # support. Future versions do this automatically, but an explicit c++rt0.o
10315 # does not break anything, and helps significantly (at the cost of a little
10316 # extra space).
10317 freebsd2.2*)
10318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10319 hardcode_libdir_flag_spec='-R$libdir'
10320 hardcode_direct=yes
10321 hardcode_shlibpath_var=no
10322 ;;
10323
10324 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10325 freebsd2.*)
10326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10327 hardcode_direct=yes
10328 hardcode_minus_L=yes
10329 hardcode_shlibpath_var=no
10330 ;;
10331
10332 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10333 freebsd* | dragonfly* | midnightbsd*)
10334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10335 hardcode_libdir_flag_spec='-R$libdir'
10336 hardcode_direct=yes
10337 hardcode_shlibpath_var=no
10338 ;;
10339
10340 hpux9*)
10341 if test yes = "$GCC"; then
10342 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'
10343 else
10344 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'
10345 fi
10346 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10347 hardcode_libdir_separator=:
10348 hardcode_direct=yes
10349
10350 # hardcode_minus_L: Not really in the search PATH,
10351 # but as the default location of the library.
10352 hardcode_minus_L=yes
10353 export_dynamic_flag_spec='$wl-E'
10354 ;;
10355
10356 hpux10*)
10357 if test yes,no = "$GCC,$with_gnu_ld"; then
10358 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10359 else
10360 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10361 fi
10362 if test no = "$with_gnu_ld"; then
10363 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10364 hardcode_libdir_separator=:
10365 hardcode_direct=yes
10366 hardcode_direct_absolute=yes
10367 export_dynamic_flag_spec='$wl-E'
10368 # hardcode_minus_L: Not really in the search PATH,
10369 # but as the default location of the library.
10370 hardcode_minus_L=yes
10371 fi
10372 ;;
10373
10374 hpux11*)
10375 if test yes,no = "$GCC,$with_gnu_ld"; then
10376 case $host_cpu in
10377 hppa*64*)
10378 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10379 ;;
10380 ia64*)
10381 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10382 ;;
10383 *)
10384 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10385 ;;
10386 esac
10387 else
10388 case $host_cpu in
10389 hppa*64*)
10390 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 ;;
10392 ia64*)
10393 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10394 ;;
10395 *)
10396
10397 # Older versions of the 11.00 compiler do not understand -b yet
10398 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10400 printf %s "checking if $CC understands -b... " >&6; }
10401 if test ${lt_cv_prog_compiler__b+y}
10402 then :
10403 printf %s "(cached) " >&6
10404 else $as_nop
10405 lt_cv_prog_compiler__b=no
10406 save_LDFLAGS=$LDFLAGS
10407 LDFLAGS="$LDFLAGS -b"
10408 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10409 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10410 # The linker can only warn and ignore the option if not recognized
10411 # So say no if there are warnings
10412 if test -s conftest.err; then
10413 # Append any errors to the config.log.
10414 cat conftest.err 1>&5
10415 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10417 if diff conftest.exp conftest.er2 >/dev/null; then
10418 lt_cv_prog_compiler__b=yes
10419 fi
10420 else
10421 lt_cv_prog_compiler__b=yes
10422 fi
10423 fi
10424 $RM -r conftest*
10425 LDFLAGS=$save_LDFLAGS
10426
10427 fi
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10429 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10430
10431 if test yes = "$lt_cv_prog_compiler__b"; then
10432 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10433 else
10434 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10435 fi
10436
10437 ;;
10438 esac
10439 fi
10440 if test no = "$with_gnu_ld"; then
10441 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10442 hardcode_libdir_separator=:
10443
10444 case $host_cpu in
10445 hppa*64*|ia64*)
10446 hardcode_direct=no
10447 hardcode_shlibpath_var=no
10448 ;;
10449 *)
10450 hardcode_direct=yes
10451 hardcode_direct_absolute=yes
10452 export_dynamic_flag_spec='$wl-E'
10453
10454 # hardcode_minus_L: Not really in the search PATH,
10455 # but as the default location of the library.
10456 hardcode_minus_L=yes
10457 ;;
10458 esac
10459 fi
10460 ;;
10461
10462 irix5* | irix6* | nonstopux*)
10463 if test yes = "$GCC"; then
10464 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'
10465 # Try to use the -exported_symbol ld option, if it does not
10466 # work, assume that -exports_file does not work either and
10467 # implicitly export all symbols.
10468 # This should be the same for all languages, so no per-tag cache variable.
10469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10470 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10471 if test ${lt_cv_irix_exported_symbol+y}
10472 then :
10473 printf %s "(cached) " >&6
10474 else $as_nop
10475 save_LDFLAGS=$LDFLAGS
10476 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10479 int foo (void) { return 0; }
10480 _ACEOF
10481 if ac_fn_c_try_link "$LINENO"
10482 then :
10483 lt_cv_irix_exported_symbol=yes
10484 else $as_nop
10485 lt_cv_irix_exported_symbol=no
10486 fi
10487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10488 conftest$ac_exeext conftest.$ac_ext
10489 LDFLAGS=$save_LDFLAGS
10490 fi
10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10492 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10493 if test yes = "$lt_cv_irix_exported_symbol"; then
10494 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'
10495 fi
10496 link_all_deplibs=no
10497 else
10498 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'
10499 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'
10500 fi
10501 archive_cmds_need_lc='no'
10502 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10503 hardcode_libdir_separator=:
10504 inherit_rpath=yes
10505 link_all_deplibs=yes
10506 ;;
10507
10508 linux*)
10509 case $cc_basename in
10510 tcc*)
10511 # Fabrice Bellard et al's Tiny C Compiler
10512 ld_shlibs=yes
10513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10514 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10515 ;;
10516 esac
10517 ;;
10518
10519 netbsd* | netbsdelf*-gnu)
10520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10522 else
10523 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10524 fi
10525 hardcode_libdir_flag_spec='-R$libdir'
10526 hardcode_direct=yes
10527 hardcode_shlibpath_var=no
10528 ;;
10529
10530 newsos6)
10531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10532 hardcode_direct=yes
10533 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10534 hardcode_libdir_separator=:
10535 hardcode_shlibpath_var=no
10536 ;;
10537
10538 *nto* | *qnx*)
10539 ;;
10540
10541 openbsd* | bitrig*)
10542 if test -f /usr/libexec/ld.so; then
10543 hardcode_direct=yes
10544 hardcode_shlibpath_var=no
10545 hardcode_direct_absolute=yes
10546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10548 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10549 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10550 export_dynamic_flag_spec='$wl-E'
10551 else
10552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10553 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10554 fi
10555 else
10556 ld_shlibs=no
10557 fi
10558 ;;
10559
10560 os2*)
10561 hardcode_libdir_flag_spec='-L$libdir'
10562 hardcode_minus_L=yes
10563 allow_undefined_flag=unsupported
10564 shrext_cmds=.dll
10565 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10566 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10567 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10568 $ECHO EXPORTS >> $output_objdir/$libname.def~
10569 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10570 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10571 emximp -o $lib $output_objdir/$libname.def'
10572 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10573 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10574 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10575 $ECHO EXPORTS >> $output_objdir/$libname.def~
10576 prefix_cmds="$SED"~
10577 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10578 prefix_cmds="$prefix_cmds -e 1d";
10579 fi~
10580 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10581 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10582 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10583 emximp -o $lib $output_objdir/$libname.def'
10584 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10585 enable_shared_with_static_runtimes=yes
10586 file_list_spec='@'
10587 ;;
10588
10589 osf3*)
10590 if test yes = "$GCC"; then
10591 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10592 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'
10593 else
10594 allow_undefined_flag=' -expect_unresolved \*'
10595 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'
10596 fi
10597 archive_cmds_need_lc='no'
10598 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10599 hardcode_libdir_separator=:
10600 ;;
10601
10602 osf4* | osf5*) # as osf3* with the addition of -msym flag
10603 if test yes = "$GCC"; then
10604 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10605 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'
10606 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10607 else
10608 allow_undefined_flag=' -expect_unresolved \*'
10609 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'
10610 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~
10611 $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'
10612
10613 # Both c and cxx compiler support -rpath directly
10614 hardcode_libdir_flag_spec='-rpath $libdir'
10615 fi
10616 archive_cmds_need_lc='no'
10617 hardcode_libdir_separator=:
10618 ;;
10619
10620 solaris*)
10621 no_undefined_flag=' -z defs'
10622 if test yes = "$GCC"; then
10623 wlarc='$wl'
10624 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10625 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10626 $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'
10627 else
10628 case `$CC -V 2>&1` in
10629 *"Compilers 5.0"*)
10630 wlarc=''
10631 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10633 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10634 ;;
10635 *)
10636 wlarc='$wl'
10637 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10639 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10640 ;;
10641 esac
10642 fi
10643 hardcode_libdir_flag_spec='-R$libdir'
10644 hardcode_shlibpath_var=no
10645 case $host_os in
10646 solaris2.[0-5] | solaris2.[0-5].*) ;;
10647 *)
10648 # The compiler driver will combine and reorder linker options,
10649 # but understands '-z linker_flag'. GCC discards it without '$wl',
10650 # but is careful enough not to reorder.
10651 # Supported since Solaris 2.6 (maybe 2.5.1?)
10652 if test yes = "$GCC"; then
10653 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10654 else
10655 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10656 fi
10657 ;;
10658 esac
10659 link_all_deplibs=yes
10660 ;;
10661
10662 sunos4*)
10663 if test sequent = "$host_vendor"; then
10664 # Use $CC to link under sequent, because it throws in some extra .o
10665 # files that make .init and .fini sections work.
10666 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10667 else
10668 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10669 fi
10670 hardcode_libdir_flag_spec='-L$libdir'
10671 hardcode_direct=yes
10672 hardcode_minus_L=yes
10673 hardcode_shlibpath_var=no
10674 ;;
10675
10676 sysv4)
10677 case $host_vendor in
10678 sni)
10679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10680 hardcode_direct=yes # is this really true???
10681 ;;
10682 siemens)
10683 ## LD is ld it makes a PLAMLIB
10684 ## CC just makes a GrossModule.
10685 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10686 reload_cmds='$CC -r -o $output$reload_objs'
10687 hardcode_direct=no
10688 ;;
10689 motorola)
10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10692 ;;
10693 esac
10694 runpath_var='LD_RUN_PATH'
10695 hardcode_shlibpath_var=no
10696 ;;
10697
10698 sysv4.3*)
10699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700 hardcode_shlibpath_var=no
10701 export_dynamic_flag_spec='-Bexport'
10702 ;;
10703
10704 sysv4*MP*)
10705 if test -d /usr/nec; then
10706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10707 hardcode_shlibpath_var=no
10708 runpath_var=LD_RUN_PATH
10709 hardcode_runpath_var=yes
10710 ld_shlibs=yes
10711 fi
10712 ;;
10713
10714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10715 no_undefined_flag='$wl-z,text'
10716 archive_cmds_need_lc=no
10717 hardcode_shlibpath_var=no
10718 runpath_var='LD_RUN_PATH'
10719
10720 if test yes = "$GCC"; then
10721 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10722 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10723 else
10724 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10725 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10726 fi
10727 ;;
10728
10729 sysv5* | sco3.2v5* | sco5v6*)
10730 # Note: We CANNOT use -z defs as we might desire, because we do not
10731 # link with -lc, and that would cause any symbols used from libc to
10732 # always be unresolved, which means just about no library would
10733 # ever link correctly. If we're not using GNU ld we use -z text
10734 # though, which does catch some bad symbols but isn't as heavy-handed
10735 # as -z defs.
10736 no_undefined_flag='$wl-z,text'
10737 allow_undefined_flag='$wl-z,nodefs'
10738 archive_cmds_need_lc=no
10739 hardcode_shlibpath_var=no
10740 hardcode_libdir_flag_spec='$wl-R,$libdir'
10741 hardcode_libdir_separator=':'
10742 link_all_deplibs=yes
10743 export_dynamic_flag_spec='$wl-Bexport'
10744 runpath_var='LD_RUN_PATH'
10745
10746 if test yes = "$GCC"; then
10747 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10748 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749 else
10750 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752 fi
10753 ;;
10754
10755 uts4*)
10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_libdir_flag_spec='-L$libdir'
10758 hardcode_shlibpath_var=no
10759 ;;
10760
10761 *)
10762 ld_shlibs=no
10763 ;;
10764 esac
10765
10766 if test sni = "$host_vendor"; then
10767 case $host in
10768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10769 export_dynamic_flag_spec='$wl-Blargedynsym'
10770 ;;
10771 esac
10772 fi
10773 fi
10774
10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10776 printf "%s\n" "$ld_shlibs" >&6; }
10777 test no = "$ld_shlibs" && can_build_shared=no
10778
10779 with_gnu_ld=$with_gnu_ld
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795 #
10796 # Do we need to explicitly link libc?
10797 #
10798 case "x$archive_cmds_need_lc" in
10799 x|xyes)
10800 # Assume -lc should be added
10801 archive_cmds_need_lc=yes
10802
10803 if test yes,yes = "$GCC,$enable_shared"; then
10804 case $archive_cmds in
10805 *'~'*)
10806 # FIXME: we may have to deal with multi-command sequences.
10807 ;;
10808 '$CC '*)
10809 # Test whether the compiler implicitly links with -lc since on some
10810 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10811 # to ld, don't add -lc before -lgcc.
10812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10813 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10814 if test ${lt_cv_archive_cmds_need_lc+y}
10815 then :
10816 printf %s "(cached) " >&6
10817 else $as_nop
10818 $RM conftest*
10819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10820
10821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10822 (eval $ac_compile) 2>&5
10823 ac_status=$?
10824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10825 test $ac_status = 0; } 2>conftest.err; then
10826 soname=conftest
10827 lib=conftest
10828 libobjs=conftest.$ac_objext
10829 deplibs=
10830 wl=$lt_prog_compiler_wl
10831 pic_flag=$lt_prog_compiler_pic
10832 compiler_flags=-v
10833 linker_flags=-v
10834 verstring=
10835 output_objdir=.
10836 libname=conftest
10837 lt_save_allow_undefined_flag=$allow_undefined_flag
10838 allow_undefined_flag=
10839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10840 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10841 ac_status=$?
10842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10843 test $ac_status = 0; }
10844 then
10845 lt_cv_archive_cmds_need_lc=no
10846 else
10847 lt_cv_archive_cmds_need_lc=yes
10848 fi
10849 allow_undefined_flag=$lt_save_allow_undefined_flag
10850 else
10851 cat conftest.err 1>&5
10852 fi
10853 $RM conftest*
10854
10855 fi
10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10857 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10858 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10859 ;;
10860 esac
10861 fi
10862 ;;
10863 esac
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11017 printf %s "checking dynamic linker characteristics... " >&6; }
11018
11019 if test yes = "$GCC"; then
11020 case $host_os in
11021 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11022 *) lt_awk_arg='/^libraries:/' ;;
11023 esac
11024 case $host_os in
11025 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11026 *) lt_sed_strip_eq='s|=/|/|g' ;;
11027 esac
11028 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11029 case $lt_search_path_spec in
11030 *\;*)
11031 # if the path contains ";" then we assume it to be the separator
11032 # otherwise default to the standard path separator (i.e. ":") - it is
11033 # assumed that no part of a normal pathname contains ";" but that should
11034 # okay in the real world where ";" in dirpaths is itself problematic.
11035 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11036 ;;
11037 *)
11038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11039 ;;
11040 esac
11041 # Ok, now we have the path, separated by spaces, we can step through it
11042 # and add multilib dir if necessary...
11043 lt_tmp_lt_search_path_spec=
11044 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11045 # ...but if some path component already ends with the multilib dir we assume
11046 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11047 case "$lt_multi_os_dir; $lt_search_path_spec " in
11048 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11049 lt_multi_os_dir=
11050 ;;
11051 esac
11052 for lt_sys_path in $lt_search_path_spec; do
11053 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11055 elif test -n "$lt_multi_os_dir"; then
11056 test -d "$lt_sys_path" && \
11057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11058 fi
11059 done
11060 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11061 BEGIN {RS = " "; FS = "/|\n";} {
11062 lt_foo = "";
11063 lt_count = 0;
11064 for (lt_i = NF; lt_i > 0; lt_i--) {
11065 if ($lt_i != "" && $lt_i != ".") {
11066 if ($lt_i == "..") {
11067 lt_count++;
11068 } else {
11069 if (lt_count == 0) {
11070 lt_foo = "/" $lt_i lt_foo;
11071 } else {
11072 lt_count--;
11073 }
11074 }
11075 }
11076 }
11077 if (lt_foo != "") { lt_freq[lt_foo]++; }
11078 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11079 }'`
11080 # AWK program above erroneously prepends '/' to C:/dos/paths
11081 # for these hosts.
11082 case $host_os in
11083 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11084 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11085 esac
11086 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11087 else
11088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11089 fi
11090 library_names_spec=
11091 libname_spec='lib$name'
11092 soname_spec=
11093 shrext_cmds=.so
11094 postinstall_cmds=
11095 postuninstall_cmds=
11096 finish_cmds=
11097 finish_eval=
11098 shlibpath_var=
11099 shlibpath_overrides_runpath=unknown
11100 version_type=none
11101 dynamic_linker="$host_os ld.so"
11102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11103 need_lib_prefix=unknown
11104 hardcode_into_libs=no
11105
11106 # when you set need_version to no, make sure it does not cause -set_version
11107 # flags to be left without arguments
11108 need_version=unknown
11109
11110
11111
11112 case $host_os in
11113 aix3*)
11114 version_type=linux # correct to gnu/linux during the next big refactor
11115 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11116 shlibpath_var=LIBPATH
11117
11118 # AIX 3 has no versioning support, so we append a major version to the name.
11119 soname_spec='$libname$release$shared_ext$major'
11120 ;;
11121
11122 aix[4-9]*)
11123 version_type=linux # correct to gnu/linux during the next big refactor
11124 need_lib_prefix=no
11125 need_version=no
11126 hardcode_into_libs=yes
11127 if test ia64 = "$host_cpu"; then
11128 # AIX 5 supports IA64
11129 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11130 shlibpath_var=LD_LIBRARY_PATH
11131 else
11132 # With GCC up to 2.95.x, collect2 would create an import file
11133 # for dependence libraries. The import file would start with
11134 # the line '#! .'. This would cause the generated library to
11135 # depend on '.', always an invalid library. This was fixed in
11136 # development snapshots of GCC prior to 3.0.
11137 case $host_os in
11138 aix4 | aix4.[01] | aix4.[01].*)
11139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11140 echo ' yes '
11141 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11142 :
11143 else
11144 can_build_shared=no
11145 fi
11146 ;;
11147 esac
11148 # Using Import Files as archive members, it is possible to support
11149 # filename-based versioning of shared library archives on AIX. While
11150 # this would work for both with and without runtime linking, it will
11151 # prevent static linking of such archives. So we do filename-based
11152 # shared library versioning with .so extension only, which is used
11153 # when both runtime linking and shared linking is enabled.
11154 # Unfortunately, runtime linking may impact performance, so we do
11155 # not want this to be the default eventually. Also, we use the
11156 # versioned .so libs for executables only if there is the -brtl
11157 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11158 # To allow for filename-based versioning support, we need to create
11159 # libNAME.so.V as an archive file, containing:
11160 # *) an Import File, referring to the versioned filename of the
11161 # archive as well as the shared archive member, telling the
11162 # bitwidth (32 or 64) of that shared object, and providing the
11163 # list of exported symbols of that shared object, eventually
11164 # decorated with the 'weak' keyword
11165 # *) the shared object with the F_LOADONLY flag set, to really avoid
11166 # it being seen by the linker.
11167 # At run time we better use the real file rather than another symlink,
11168 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11169
11170 case $with_aix_soname,$aix_use_runtimelinking in
11171 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11172 # soname into executable. Probably we can add versioning support to
11173 # collect2, so additional links can be useful in future.
11174 aix,yes) # traditional libtool
11175 dynamic_linker='AIX unversionable lib.so'
11176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11177 # instead of lib<name>.a to let people know that these are not
11178 # typical AIX shared libraries.
11179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11180 ;;
11181 aix,no) # traditional AIX only
11182 dynamic_linker='AIX lib.a(lib.so.V)'
11183 # We preserve .a as extension for shared libraries through AIX4.2
11184 # and later when we are not doing run time linking.
11185 library_names_spec='$libname$release.a $libname.a'
11186 soname_spec='$libname$release$shared_ext$major'
11187 ;;
11188 svr4,*) # full svr4 only
11189 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11190 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11191 # We do not specify a path in Import Files, so LIBPATH fires.
11192 shlibpath_overrides_runpath=yes
11193 ;;
11194 *,yes) # both, prefer svr4
11195 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11196 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11197 # unpreferred sharedlib libNAME.a needs extra handling
11198 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"'
11199 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"'
11200 # We do not specify a path in Import Files, so LIBPATH fires.
11201 shlibpath_overrides_runpath=yes
11202 ;;
11203 *,no) # both, prefer aix
11204 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11205 library_names_spec='$libname$release.a $libname.a'
11206 soname_spec='$libname$release$shared_ext$major'
11207 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11208 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)'
11209 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"'
11210 ;;
11211 esac
11212 shlibpath_var=LIBPATH
11213 fi
11214 ;;
11215
11216 amigaos*)
11217 case $host_cpu in
11218 powerpc)
11219 # Since July 2007 AmigaOS4 officially supports .so libraries.
11220 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11222 ;;
11223 m68k)
11224 library_names_spec='$libname.ixlibrary $libname.a'
11225 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11226 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'
11227 ;;
11228 esac
11229 ;;
11230
11231 beos*)
11232 library_names_spec='$libname$shared_ext'
11233 dynamic_linker="$host_os ld.so"
11234 shlibpath_var=LIBRARY_PATH
11235 ;;
11236
11237 bsdi[45]*)
11238 version_type=linux # correct to gnu/linux during the next big refactor
11239 need_version=no
11240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11241 soname_spec='$libname$release$shared_ext$major'
11242 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11245 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11246 # the default ld.so.conf also contains /usr/contrib/lib and
11247 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11248 # libtool to hard-code these into programs
11249 ;;
11250
11251 cygwin* | mingw* | pw32* | cegcc*)
11252 version_type=windows
11253 shrext_cmds=.dll
11254 need_version=no
11255 need_lib_prefix=no
11256
11257 case $GCC,$cc_basename in
11258 yes,*)
11259 # gcc
11260 library_names_spec='$libname.dll.a'
11261 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11262 postinstall_cmds='base_file=`basename \$file`~
11263 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11264 dldir=$destdir/`dirname \$dlpath`~
11265 test -d \$dldir || mkdir -p \$dldir~
11266 $install_prog $dir/$dlname \$dldir/$dlname~
11267 chmod a+x \$dldir/$dlname~
11268 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11269 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11270 fi'
11271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11272 dlpath=$dir/\$dldll~
11273 $RM \$dlpath'
11274 shlibpath_overrides_runpath=yes
11275
11276 case $host_os in
11277 cygwin*)
11278 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11279 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11280
11281 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11282 ;;
11283 mingw* | cegcc*)
11284 # MinGW DLLs use traditional 'lib' prefix
11285 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11286 ;;
11287 pw32*)
11288 # pw32 DLLs use 'pw' prefix rather than 'lib'
11289 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11290 ;;
11291 esac
11292 dynamic_linker='Win32 ld.exe'
11293 ;;
11294
11295 *,cl* | *,icl*)
11296 # Native MSVC or ICC
11297 libname_spec='$name'
11298 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11299 library_names_spec='$libname.dll.lib'
11300
11301 case $build_os in
11302 mingw*)
11303 sys_lib_search_path_spec=
11304 lt_save_ifs=$IFS
11305 IFS=';'
11306 for lt_path in $LIB
11307 do
11308 IFS=$lt_save_ifs
11309 # Let DOS variable expansion print the short 8.3 style file name.
11310 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11311 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11312 done
11313 IFS=$lt_save_ifs
11314 # Convert to MSYS style.
11315 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11316 ;;
11317 cygwin*)
11318 # Convert to unix form, then to dos form, then back to unix form
11319 # but this time dos style (no spaces!) so that the unix form looks
11320 # like /cygdrive/c/PROGRA~1:/cygdr...
11321 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11322 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11323 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11324 ;;
11325 *)
11326 sys_lib_search_path_spec=$LIB
11327 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11328 # It is most probably a Windows format PATH.
11329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11330 else
11331 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11332 fi
11333 # FIXME: find the short name or the path components, as spaces are
11334 # common. (e.g. "Program Files" -> "PROGRA~1")
11335 ;;
11336 esac
11337
11338 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11339 postinstall_cmds='base_file=`basename \$file`~
11340 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11341 dldir=$destdir/`dirname \$dlpath`~
11342 test -d \$dldir || mkdir -p \$dldir~
11343 $install_prog $dir/$dlname \$dldir/$dlname'
11344 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11345 dlpath=$dir/\$dldll~
11346 $RM \$dlpath'
11347 shlibpath_overrides_runpath=yes
11348 dynamic_linker='Win32 link.exe'
11349 ;;
11350
11351 *)
11352 # Assume MSVC and ICC wrapper
11353 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11354 dynamic_linker='Win32 ld.exe'
11355 ;;
11356 esac
11357 # FIXME: first we should search . and the directory the executable is in
11358 shlibpath_var=PATH
11359 ;;
11360
11361 darwin* | rhapsody*)
11362 dynamic_linker="$host_os dyld"
11363 version_type=darwin
11364 need_lib_prefix=no
11365 need_version=no
11366 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11367 soname_spec='$libname$release$major$shared_ext'
11368 shlibpath_overrides_runpath=yes
11369 shlibpath_var=DYLD_LIBRARY_PATH
11370 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11371
11372 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11374 ;;
11375
11376 dgux*)
11377 version_type=linux # correct to gnu/linux during the next big refactor
11378 need_lib_prefix=no
11379 need_version=no
11380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381 soname_spec='$libname$release$shared_ext$major'
11382 shlibpath_var=LD_LIBRARY_PATH
11383 ;;
11384
11385 freebsd* | dragonfly* | midnightbsd*)
11386 # DragonFly does not have aout. When/if they implement a new
11387 # versioning mechanism, adjust this.
11388 if test -x /usr/bin/objformat; then
11389 objformat=`/usr/bin/objformat`
11390 else
11391 case $host_os in
11392 freebsd[23].*) objformat=aout ;;
11393 *) objformat=elf ;;
11394 esac
11395 fi
11396 version_type=freebsd-$objformat
11397 case $version_type in
11398 freebsd-elf*)
11399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11400 soname_spec='$libname$release$shared_ext$major'
11401 need_version=no
11402 need_lib_prefix=no
11403 ;;
11404 freebsd-*)
11405 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11406 need_version=yes
11407 ;;
11408 esac
11409 shlibpath_var=LD_LIBRARY_PATH
11410 case $host_os in
11411 freebsd2.*)
11412 shlibpath_overrides_runpath=yes
11413 ;;
11414 freebsd3.[01]* | freebsdelf3.[01]*)
11415 shlibpath_overrides_runpath=yes
11416 hardcode_into_libs=yes
11417 ;;
11418 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11419 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11420 shlibpath_overrides_runpath=no
11421 hardcode_into_libs=yes
11422 ;;
11423 *) # from 4.6 on, and DragonFly
11424 shlibpath_overrides_runpath=yes
11425 hardcode_into_libs=yes
11426 ;;
11427 esac
11428 ;;
11429
11430 haiku*)
11431 version_type=linux # correct to gnu/linux during the next big refactor
11432 need_lib_prefix=no
11433 need_version=no
11434 dynamic_linker="$host_os runtime_loader"
11435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11436 soname_spec='$libname$release$shared_ext$major'
11437 shlibpath_var=LIBRARY_PATH
11438 shlibpath_overrides_runpath=no
11439 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11440 hardcode_into_libs=yes
11441 ;;
11442
11443 hpux9* | hpux10* | hpux11*)
11444 # Give a soname corresponding to the major version so that dld.sl refuses to
11445 # link against other versions.
11446 version_type=sunos
11447 need_lib_prefix=no
11448 need_version=no
11449 case $host_cpu in
11450 ia64*)
11451 shrext_cmds='.so'
11452 hardcode_into_libs=yes
11453 dynamic_linker="$host_os dld.so"
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11457 soname_spec='$libname$release$shared_ext$major'
11458 if test 32 = "$HPUX_IA64_MODE"; then
11459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11460 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11461 else
11462 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11463 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11464 fi
11465 ;;
11466 hppa*64*)
11467 shrext_cmds='.sl'
11468 hardcode_into_libs=yes
11469 dynamic_linker="$host_os dld.sl"
11470 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11473 soname_spec='$libname$release$shared_ext$major'
11474 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11476 ;;
11477 *)
11478 shrext_cmds='.sl'
11479 dynamic_linker="$host_os dld.sl"
11480 shlibpath_var=SHLIB_PATH
11481 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483 soname_spec='$libname$release$shared_ext$major'
11484 ;;
11485 esac
11486 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11487 postinstall_cmds='chmod 555 $lib'
11488 # or fails outright, so override atomically:
11489 install_override_mode=555
11490 ;;
11491
11492 interix[3-9]*)
11493 version_type=linux # correct to gnu/linux during the next big refactor
11494 need_lib_prefix=no
11495 need_version=no
11496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11497 soname_spec='$libname$release$shared_ext$major'
11498 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=no
11501 hardcode_into_libs=yes
11502 ;;
11503
11504 irix5* | irix6* | nonstopux*)
11505 case $host_os in
11506 nonstopux*) version_type=nonstopux ;;
11507 *)
11508 if test yes = "$lt_cv_prog_gnu_ld"; then
11509 version_type=linux # correct to gnu/linux during the next big refactor
11510 else
11511 version_type=irix
11512 fi ;;
11513 esac
11514 need_lib_prefix=no
11515 need_version=no
11516 soname_spec='$libname$release$shared_ext$major'
11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11518 case $host_os in
11519 irix5* | nonstopux*)
11520 libsuff= shlibsuff=
11521 ;;
11522 *)
11523 case $LD in # libtool.m4 will add one of these switches to LD
11524 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11525 libsuff= shlibsuff= libmagic=32-bit;;
11526 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11527 libsuff=32 shlibsuff=N32 libmagic=N32;;
11528 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11529 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11530 *) libsuff= shlibsuff= libmagic=never-match;;
11531 esac
11532 ;;
11533 esac
11534 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11535 shlibpath_overrides_runpath=no
11536 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11537 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11538 hardcode_into_libs=yes
11539 ;;
11540
11541 # No shared lib support for Linux oldld, aout, or coff.
11542 linux*oldld* | linux*aout* | linux*coff*)
11543 dynamic_linker=no
11544 ;;
11545
11546 linux*android*)
11547 version_type=none # Android doesn't support versioned libraries.
11548 need_lib_prefix=no
11549 need_version=no
11550 library_names_spec='$libname$release$shared_ext'
11551 soname_spec='$libname$release$shared_ext'
11552 finish_cmds=
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes
11555
11556 # This implies no fast_install, which is unacceptable.
11557 # Some rework will be needed to allow for fast_install
11558 # before this can be enabled.
11559 hardcode_into_libs=yes
11560
11561 dynamic_linker='Android linker'
11562 # Don't embed -rpath directories since the linker doesn't support them.
11563 hardcode_libdir_flag_spec='-L$libdir'
11564 ;;
11565
11566 # This must be glibc/ELF.
11567 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11568 version_type=linux # correct to gnu/linux during the next big refactor
11569 need_lib_prefix=no
11570 need_version=no
11571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11572 soname_spec='$libname$release$shared_ext$major'
11573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11574 shlibpath_var=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath=no
11576
11577 # Some binutils ld are patched to set DT_RUNPATH
11578 if test ${lt_cv_shlibpath_overrides_runpath+y}
11579 then :
11580 printf %s "(cached) " >&6
11581 else $as_nop
11582 lt_cv_shlibpath_overrides_runpath=no
11583 save_LDFLAGS=$LDFLAGS
11584 save_libdir=$libdir
11585 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11586 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11589
11590 int
11591 main (void)
11592 {
11593
11594 ;
11595 return 0;
11596 }
11597 _ACEOF
11598 if ac_fn_c_try_link "$LINENO"
11599 then :
11600 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11601 then :
11602 lt_cv_shlibpath_overrides_runpath=yes
11603 fi
11604 fi
11605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11606 conftest$ac_exeext conftest.$ac_ext
11607 LDFLAGS=$save_LDFLAGS
11608 libdir=$save_libdir
11609
11610 fi
11611
11612 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11613
11614 # This implies no fast_install, which is unacceptable.
11615 # Some rework will be needed to allow for fast_install
11616 # before this can be enabled.
11617 hardcode_into_libs=yes
11618
11619 # Ideally, we could use ldconfig to report *all* directores which are
11620 # searched for libraries, however this is still not possible. Aside from not
11621 # being certain /sbin/ldconfig is available, command
11622 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11623 # even though it is searched at run-time. Try to do the best guess by
11624 # appending ld.so.conf contents (and includes) to the search path.
11625 if test -f /etc/ld.so.conf; then
11626 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' ' '`
11627 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11628 fi
11629
11630 # We used to test for /lib/ld.so.1 and disable shared libraries on
11631 # powerpc, because MkLinux only supported shared libraries with the
11632 # GNU dynamic linker. Since this was broken with cross compilers,
11633 # most powerpc-linux boxes support dynamic linking these days and
11634 # people can always --disable-shared, the test was removed, and we
11635 # assume the GNU/Linux dynamic linker is in use.
11636 dynamic_linker='GNU/Linux ld.so'
11637 ;;
11638
11639 netbsdelf*-gnu)
11640 version_type=linux
11641 need_lib_prefix=no
11642 need_version=no
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11644 soname_spec='${libname}${release}${shared_ext}$major'
11645 shlibpath_var=LD_LIBRARY_PATH
11646 shlibpath_overrides_runpath=no
11647 hardcode_into_libs=yes
11648 dynamic_linker='NetBSD ld.elf_so'
11649 ;;
11650
11651 netbsd*)
11652 version_type=sunos
11653 need_lib_prefix=no
11654 need_version=no
11655 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11656 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11658 dynamic_linker='NetBSD (a.out) ld.so'
11659 else
11660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11661 soname_spec='$libname$release$shared_ext$major'
11662 dynamic_linker='NetBSD ld.elf_so'
11663 fi
11664 shlibpath_var=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath=yes
11666 hardcode_into_libs=yes
11667 ;;
11668
11669 newsos6)
11670 version_type=linux # correct to gnu/linux during the next big refactor
11671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11672 shlibpath_var=LD_LIBRARY_PATH
11673 shlibpath_overrides_runpath=yes
11674 ;;
11675
11676 *nto* | *qnx*)
11677 version_type=qnx
11678 need_lib_prefix=no
11679 need_version=no
11680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11681 soname_spec='$libname$release$shared_ext$major'
11682 shlibpath_var=LD_LIBRARY_PATH
11683 shlibpath_overrides_runpath=no
11684 hardcode_into_libs=yes
11685 dynamic_linker='ldqnx.so'
11686 ;;
11687
11688 openbsd* | bitrig*)
11689 version_type=sunos
11690 sys_lib_dlsearch_path_spec=/usr/lib
11691 need_lib_prefix=no
11692 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11693 need_version=no
11694 else
11695 need_version=yes
11696 fi
11697 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11699 shlibpath_var=LD_LIBRARY_PATH
11700 shlibpath_overrides_runpath=yes
11701 ;;
11702
11703 os2*)
11704 libname_spec='$name'
11705 version_type=windows
11706 shrext_cmds=.dll
11707 need_version=no
11708 need_lib_prefix=no
11709 # OS/2 can only load a DLL with a base name of 8 characters or less.
11710 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11711 v=$($ECHO $release$versuffix | tr -d .-);
11712 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11713 $ECHO $n$v`$shared_ext'
11714 library_names_spec='${libname}_dll.$libext'
11715 dynamic_linker='OS/2 ld.exe'
11716 shlibpath_var=BEGINLIBPATH
11717 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11719 postinstall_cmds='base_file=`basename \$file`~
11720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11721 dldir=$destdir/`dirname \$dlpath`~
11722 test -d \$dldir || mkdir -p \$dldir~
11723 $install_prog $dir/$dlname \$dldir/$dlname~
11724 chmod a+x \$dldir/$dlname~
11725 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11726 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11727 fi'
11728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11729 dlpath=$dir/\$dldll~
11730 $RM \$dlpath'
11731 ;;
11732
11733 osf3* | osf4* | osf5*)
11734 version_type=osf
11735 need_lib_prefix=no
11736 need_version=no
11737 soname_spec='$libname$release$shared_ext$major'
11738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11742 ;;
11743
11744 rdos*)
11745 dynamic_linker=no
11746 ;;
11747
11748 solaris*)
11749 version_type=linux # correct to gnu/linux during the next big refactor
11750 need_lib_prefix=no
11751 need_version=no
11752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11753 soname_spec='$libname$release$shared_ext$major'
11754 shlibpath_var=LD_LIBRARY_PATH
11755 shlibpath_overrides_runpath=yes
11756 hardcode_into_libs=yes
11757 # ldd complains unless libraries are executable
11758 postinstall_cmds='chmod +x $lib'
11759 ;;
11760
11761 sunos4*)
11762 version_type=sunos
11763 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11764 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=yes
11767 if test yes = "$with_gnu_ld"; then
11768 need_lib_prefix=no
11769 fi
11770 need_version=yes
11771 ;;
11772
11773 sysv4 | sysv4.3*)
11774 version_type=linux # correct to gnu/linux during the next big refactor
11775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11776 soname_spec='$libname$release$shared_ext$major'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 case $host_vendor in
11779 sni)
11780 shlibpath_overrides_runpath=no
11781 need_lib_prefix=no
11782 runpath_var=LD_RUN_PATH
11783 ;;
11784 siemens)
11785 need_lib_prefix=no
11786 ;;
11787 motorola)
11788 need_lib_prefix=no
11789 need_version=no
11790 shlibpath_overrides_runpath=no
11791 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11792 ;;
11793 esac
11794 ;;
11795
11796 sysv4*MP*)
11797 if test -d /usr/nec; then
11798 version_type=linux # correct to gnu/linux during the next big refactor
11799 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11800 soname_spec='$libname$shared_ext.$major'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 fi
11803 ;;
11804
11805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11806 version_type=sco
11807 need_lib_prefix=no
11808 need_version=no
11809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11810 soname_spec='$libname$release$shared_ext$major'
11811 shlibpath_var=LD_LIBRARY_PATH
11812 shlibpath_overrides_runpath=yes
11813 hardcode_into_libs=yes
11814 if test yes = "$with_gnu_ld"; then
11815 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11816 else
11817 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11818 case $host_os in
11819 sco3.2v5*)
11820 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11821 ;;
11822 esac
11823 fi
11824 sys_lib_dlsearch_path_spec='/usr/lib'
11825 ;;
11826
11827 tpf*)
11828 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11829 version_type=linux # correct to gnu/linux during the next big refactor
11830 need_lib_prefix=no
11831 need_version=no
11832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 shlibpath_overrides_runpath=no
11835 hardcode_into_libs=yes
11836 ;;
11837
11838 uts4*)
11839 version_type=linux # correct to gnu/linux during the next big refactor
11840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11841 soname_spec='$libname$release$shared_ext$major'
11842 shlibpath_var=LD_LIBRARY_PATH
11843 ;;
11844
11845 *)
11846 dynamic_linker=no
11847 ;;
11848 esac
11849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11850 printf "%s\n" "$dynamic_linker" >&6; }
11851 test no = "$dynamic_linker" && can_build_shared=no
11852
11853 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11854 if test yes = "$GCC"; then
11855 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11856 fi
11857
11858 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11859 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11860 fi
11861
11862 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11863 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11864 fi
11865
11866 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11867 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11868
11869 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11870 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11871
11872 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11873 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11972 printf %s "checking how to hardcode library paths into programs... " >&6; }
11973 hardcode_action=
11974 if test -n "$hardcode_libdir_flag_spec" ||
11975 test -n "$runpath_var" ||
11976 test yes = "$hardcode_automatic"; then
11977
11978 # We can hardcode non-existent directories.
11979 if test no != "$hardcode_direct" &&
11980 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11981 # have to relink, otherwise we might link with an installed library
11982 # when we should be linking with a yet-to-be-installed one
11983 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11984 test no != "$hardcode_minus_L"; then
11985 # Linking always hardcodes the temporary library directory.
11986 hardcode_action=relink
11987 else
11988 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11989 hardcode_action=immediate
11990 fi
11991 else
11992 # We cannot hardcode anything, or else we can only hardcode existing
11993 # directories.
11994 hardcode_action=unsupported
11995 fi
11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11997 printf "%s\n" "$hardcode_action" >&6; }
11998
11999 if test relink = "$hardcode_action" ||
12000 test yes = "$inherit_rpath"; then
12001 # Fast installation is not supported
12002 enable_fast_install=no
12003 elif test yes = "$shlibpath_overrides_runpath" ||
12004 test no = "$enable_shared"; then
12005 # Fast installation is not necessary
12006 enable_fast_install=needless
12007 fi
12008
12009
12010
12011
12012
12013
12014 if test yes != "$enable_dlopen"; then
12015 enable_dlopen=unknown
12016 enable_dlopen_self=unknown
12017 enable_dlopen_self_static=unknown
12018 else
12019 lt_cv_dlopen=no
12020 lt_cv_dlopen_libs=
12021
12022 case $host_os in
12023 beos*)
12024 lt_cv_dlopen=load_add_on
12025 lt_cv_dlopen_libs=
12026 lt_cv_dlopen_self=yes
12027 ;;
12028
12029 mingw* | pw32* | cegcc*)
12030 lt_cv_dlopen=LoadLibrary
12031 lt_cv_dlopen_libs=
12032 ;;
12033
12034 cygwin*)
12035 lt_cv_dlopen=dlopen
12036 lt_cv_dlopen_libs=
12037 ;;
12038
12039 darwin*)
12040 # if libdl is installed we need to link against it
12041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12042 printf %s "checking for dlopen in -ldl... " >&6; }
12043 if test ${ac_cv_lib_dl_dlopen+y}
12044 then :
12045 printf %s "(cached) " >&6
12046 else $as_nop
12047 ac_check_lib_save_LIBS=$LIBS
12048 LIBS="-ldl $LIBS"
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12055 char dlopen ();
12056 int
12057 main (void)
12058 {
12059 return dlopen ();
12060 ;
12061 return 0;
12062 }
12063 _ACEOF
12064 if ac_fn_c_try_link "$LINENO"
12065 then :
12066 ac_cv_lib_dl_dlopen=yes
12067 else $as_nop
12068 ac_cv_lib_dl_dlopen=no
12069 fi
12070 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12071 conftest$ac_exeext conftest.$ac_ext
12072 LIBS=$ac_check_lib_save_LIBS
12073 fi
12074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12075 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12076 if test "x$ac_cv_lib_dl_dlopen" = xyes
12077 then :
12078 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12079 else $as_nop
12080
12081 lt_cv_dlopen=dyld
12082 lt_cv_dlopen_libs=
12083 lt_cv_dlopen_self=yes
12084
12085 fi
12086
12087 ;;
12088
12089 tpf*)
12090 # Don't try to run any link tests for TPF. We know it's impossible
12091 # because TPF is a cross-compiler, and we know how we open DSOs.
12092 lt_cv_dlopen=dlopen
12093 lt_cv_dlopen_libs=
12094 lt_cv_dlopen_self=no
12095 ;;
12096
12097 *)
12098 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12099 if test "x$ac_cv_func_shl_load" = xyes
12100 then :
12101 lt_cv_dlopen=shl_load
12102 else $as_nop
12103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12104 printf %s "checking for shl_load in -ldld... " >&6; }
12105 if test ${ac_cv_lib_dld_shl_load+y}
12106 then :
12107 printf %s "(cached) " >&6
12108 else $as_nop
12109 ac_check_lib_save_LIBS=$LIBS
12110 LIBS="-ldld $LIBS"
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12113
12114 /* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
12117 char shl_load ();
12118 int
12119 main (void)
12120 {
12121 return shl_load ();
12122 ;
12123 return 0;
12124 }
12125 _ACEOF
12126 if ac_fn_c_try_link "$LINENO"
12127 then :
12128 ac_cv_lib_dld_shl_load=yes
12129 else $as_nop
12130 ac_cv_lib_dld_shl_load=no
12131 fi
12132 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12133 conftest$ac_exeext conftest.$ac_ext
12134 LIBS=$ac_check_lib_save_LIBS
12135 fi
12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12137 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12138 if test "x$ac_cv_lib_dld_shl_load" = xyes
12139 then :
12140 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12141 else $as_nop
12142 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12143 if test "x$ac_cv_func_dlopen" = xyes
12144 then :
12145 lt_cv_dlopen=dlopen
12146 else $as_nop
12147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12148 printf %s "checking for dlopen in -ldl... " >&6; }
12149 if test ${ac_cv_lib_dl_dlopen+y}
12150 then :
12151 printf %s "(cached) " >&6
12152 else $as_nop
12153 ac_check_lib_save_LIBS=$LIBS
12154 LIBS="-ldl $LIBS"
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12157
12158 /* Override any GCC internal prototype to avoid an error.
12159 Use char because int might match the return type of a GCC
12160 builtin and then its argument prototype would still apply. */
12161 char dlopen ();
12162 int
12163 main (void)
12164 {
12165 return dlopen ();
12166 ;
12167 return 0;
12168 }
12169 _ACEOF
12170 if ac_fn_c_try_link "$LINENO"
12171 then :
12172 ac_cv_lib_dl_dlopen=yes
12173 else $as_nop
12174 ac_cv_lib_dl_dlopen=no
12175 fi
12176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12177 conftest$ac_exeext conftest.$ac_ext
12178 LIBS=$ac_check_lib_save_LIBS
12179 fi
12180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12181 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12182 if test "x$ac_cv_lib_dl_dlopen" = xyes
12183 then :
12184 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12185 else $as_nop
12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12187 printf %s "checking for dlopen in -lsvld... " >&6; }
12188 if test ${ac_cv_lib_svld_dlopen+y}
12189 then :
12190 printf %s "(cached) " >&6
12191 else $as_nop
12192 ac_check_lib_save_LIBS=$LIBS
12193 LIBS="-lsvld $LIBS"
12194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h. */
12196
12197 /* Override any GCC internal prototype to avoid an error.
12198 Use char because int might match the return type of a GCC
12199 builtin and then its argument prototype would still apply. */
12200 char dlopen ();
12201 int
12202 main (void)
12203 {
12204 return dlopen ();
12205 ;
12206 return 0;
12207 }
12208 _ACEOF
12209 if ac_fn_c_try_link "$LINENO"
12210 then :
12211 ac_cv_lib_svld_dlopen=yes
12212 else $as_nop
12213 ac_cv_lib_svld_dlopen=no
12214 fi
12215 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12216 conftest$ac_exeext conftest.$ac_ext
12217 LIBS=$ac_check_lib_save_LIBS
12218 fi
12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12220 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12221 if test "x$ac_cv_lib_svld_dlopen" = xyes
12222 then :
12223 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12224 else $as_nop
12225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12226 printf %s "checking for dld_link in -ldld... " >&6; }
12227 if test ${ac_cv_lib_dld_dld_link+y}
12228 then :
12229 printf %s "(cached) " >&6
12230 else $as_nop
12231 ac_check_lib_save_LIBS=$LIBS
12232 LIBS="-ldld $LIBS"
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h. */
12235
12236 /* Override any GCC internal prototype to avoid an error.
12237 Use char because int might match the return type of a GCC
12238 builtin and then its argument prototype would still apply. */
12239 char dld_link ();
12240 int
12241 main (void)
12242 {
12243 return dld_link ();
12244 ;
12245 return 0;
12246 }
12247 _ACEOF
12248 if ac_fn_c_try_link "$LINENO"
12249 then :
12250 ac_cv_lib_dld_dld_link=yes
12251 else $as_nop
12252 ac_cv_lib_dld_dld_link=no
12253 fi
12254 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12255 conftest$ac_exeext conftest.$ac_ext
12256 LIBS=$ac_check_lib_save_LIBS
12257 fi
12258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12259 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12260 if test "x$ac_cv_lib_dld_dld_link" = xyes
12261 then :
12262 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12263 fi
12264
12265
12266 fi
12267
12268
12269 fi
12270
12271
12272 fi
12273
12274
12275 fi
12276
12277
12278 fi
12279
12280 ;;
12281 esac
12282
12283 if test no = "$lt_cv_dlopen"; then
12284 enable_dlopen=no
12285 else
12286 enable_dlopen=yes
12287 fi
12288
12289 case $lt_cv_dlopen in
12290 dlopen)
12291 save_CPPFLAGS=$CPPFLAGS
12292 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12293
12294 save_LDFLAGS=$LDFLAGS
12295 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12296
12297 save_LIBS=$LIBS
12298 LIBS="$lt_cv_dlopen_libs $LIBS"
12299
12300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12301 printf %s "checking whether a program can dlopen itself... " >&6; }
12302 if test ${lt_cv_dlopen_self+y}
12303 then :
12304 printf %s "(cached) " >&6
12305 else $as_nop
12306 if test yes = "$cross_compiling"; then :
12307 lt_cv_dlopen_self=cross
12308 else
12309 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12310 lt_status=$lt_dlunknown
12311 cat > conftest.$ac_ext <<_LT_EOF
12312 #line $LINENO "configure"
12313 #include "confdefs.h"
12314
12315 #if HAVE_DLFCN_H
12316 #include <dlfcn.h>
12317 #endif
12318
12319 #include <stdio.h>
12320
12321 #ifdef RTLD_GLOBAL
12322 # define LT_DLGLOBAL RTLD_GLOBAL
12323 #else
12324 # ifdef DL_GLOBAL
12325 # define LT_DLGLOBAL DL_GLOBAL
12326 # else
12327 # define LT_DLGLOBAL 0
12328 # endif
12329 #endif
12330
12331 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12332 find out it does not work in some platform. */
12333 #ifndef LT_DLLAZY_OR_NOW
12334 # ifdef RTLD_LAZY
12335 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12336 # else
12337 # ifdef DL_LAZY
12338 # define LT_DLLAZY_OR_NOW DL_LAZY
12339 # else
12340 # ifdef RTLD_NOW
12341 # define LT_DLLAZY_OR_NOW RTLD_NOW
12342 # else
12343 # ifdef DL_NOW
12344 # define LT_DLLAZY_OR_NOW DL_NOW
12345 # else
12346 # define LT_DLLAZY_OR_NOW 0
12347 # endif
12348 # endif
12349 # endif
12350 # endif
12351 #endif
12352
12353 /* When -fvisibility=hidden is used, assume the code has been annotated
12354 correspondingly for the symbols needed. */
12355 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12356 int fnord () __attribute__((visibility("default")));
12357 #endif
12358
12359 int fnord () { return 42; }
12360 int main ()
12361 {
12362 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12363 int status = $lt_dlunknown;
12364
12365 if (self)
12366 {
12367 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12368 else
12369 {
12370 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12371 else puts (dlerror ());
12372 }
12373 /* dlclose (self); */
12374 }
12375 else
12376 puts (dlerror ());
12377
12378 return status;
12379 }
12380 _LT_EOF
12381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12382 (eval $ac_link) 2>&5
12383 ac_status=$?
12384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12385 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12386 (./conftest; exit; ) >&5 2>/dev/null
12387 lt_status=$?
12388 case x$lt_status in
12389 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12390 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12391 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12392 esac
12393 else :
12394 # compilation failed
12395 lt_cv_dlopen_self=no
12396 fi
12397 fi
12398 rm -fr conftest*
12399
12400
12401 fi
12402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12403 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12404
12405 if test yes = "$lt_cv_dlopen_self"; then
12406 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12408 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12409 if test ${lt_cv_dlopen_self_static+y}
12410 then :
12411 printf %s "(cached) " >&6
12412 else $as_nop
12413 if test yes = "$cross_compiling"; then :
12414 lt_cv_dlopen_self_static=cross
12415 else
12416 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12417 lt_status=$lt_dlunknown
12418 cat > conftest.$ac_ext <<_LT_EOF
12419 #line $LINENO "configure"
12420 #include "confdefs.h"
12421
12422 #if HAVE_DLFCN_H
12423 #include <dlfcn.h>
12424 #endif
12425
12426 #include <stdio.h>
12427
12428 #ifdef RTLD_GLOBAL
12429 # define LT_DLGLOBAL RTLD_GLOBAL
12430 #else
12431 # ifdef DL_GLOBAL
12432 # define LT_DLGLOBAL DL_GLOBAL
12433 # else
12434 # define LT_DLGLOBAL 0
12435 # endif
12436 #endif
12437
12438 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12439 find out it does not work in some platform. */
12440 #ifndef LT_DLLAZY_OR_NOW
12441 # ifdef RTLD_LAZY
12442 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12443 # else
12444 # ifdef DL_LAZY
12445 # define LT_DLLAZY_OR_NOW DL_LAZY
12446 # else
12447 # ifdef RTLD_NOW
12448 # define LT_DLLAZY_OR_NOW RTLD_NOW
12449 # else
12450 # ifdef DL_NOW
12451 # define LT_DLLAZY_OR_NOW DL_NOW
12452 # else
12453 # define LT_DLLAZY_OR_NOW 0
12454 # endif
12455 # endif
12456 # endif
12457 # endif
12458 #endif
12459
12460 /* When -fvisibility=hidden is used, assume the code has been annotated
12461 correspondingly for the symbols needed. */
12462 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12463 int fnord () __attribute__((visibility("default")));
12464 #endif
12465
12466 int fnord () { return 42; }
12467 int main ()
12468 {
12469 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12470 int status = $lt_dlunknown;
12471
12472 if (self)
12473 {
12474 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12475 else
12476 {
12477 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12478 else puts (dlerror ());
12479 }
12480 /* dlclose (self); */
12481 }
12482 else
12483 puts (dlerror ());
12484
12485 return status;
12486 }
12487 _LT_EOF
12488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12489 (eval $ac_link) 2>&5
12490 ac_status=$?
12491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12492 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12493 (./conftest; exit; ) >&5 2>/dev/null
12494 lt_status=$?
12495 case x$lt_status in
12496 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12497 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12498 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12499 esac
12500 else :
12501 # compilation failed
12502 lt_cv_dlopen_self_static=no
12503 fi
12504 fi
12505 rm -fr conftest*
12506
12507
12508 fi
12509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12510 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12511 fi
12512
12513 CPPFLAGS=$save_CPPFLAGS
12514 LDFLAGS=$save_LDFLAGS
12515 LIBS=$save_LIBS
12516 ;;
12517 esac
12518
12519 case $lt_cv_dlopen_self in
12520 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12521 *) enable_dlopen_self=unknown ;;
12522 esac
12523
12524 case $lt_cv_dlopen_self_static in
12525 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12526 *) enable_dlopen_self_static=unknown ;;
12527 esac
12528 fi
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546 striplib=
12547 old_striplib=
12548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12549 printf %s "checking whether stripping libraries is possible... " >&6; }
12550 if test -z "$STRIP"; then
12551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552 printf "%s\n" "no" >&6; }
12553 else
12554 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12555 old_striplib="$STRIP --strip-debug"
12556 striplib="$STRIP --strip-unneeded"
12557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12558 printf "%s\n" "yes" >&6; }
12559 else
12560 case $host_os in
12561 darwin*)
12562 # FIXME - insert some real tests, host_os isn't really good enough
12563 striplib="$STRIP -x"
12564 old_striplib="$STRIP -S"
12565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12566 printf "%s\n" "yes" >&6; }
12567 ;;
12568 freebsd*)
12569 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12570 old_striplib="$STRIP --strip-debug"
12571 striplib="$STRIP --strip-unneeded"
12572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12573 printf "%s\n" "yes" >&6; }
12574 else
12575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 printf "%s\n" "no" >&6; }
12577 fi
12578 ;;
12579 *)
12580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 printf "%s\n" "no" >&6; }
12582 ;;
12583 esac
12584 fi
12585 fi
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598 # Report what library types will actually be built
12599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12600 printf %s "checking if libtool supports shared libraries... " >&6; }
12601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12602 printf "%s\n" "$can_build_shared" >&6; }
12603
12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12605 printf %s "checking whether to build shared libraries... " >&6; }
12606 test no = "$can_build_shared" && enable_shared=no
12607
12608 # On AIX, shared libraries and static libraries use the same namespace, and
12609 # are all built from PIC.
12610 case $host_os in
12611 aix3*)
12612 test yes = "$enable_shared" && enable_static=no
12613 if test -n "$RANLIB"; then
12614 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12615 postinstall_cmds='$RANLIB $lib'
12616 fi
12617 ;;
12618
12619 aix[4-9]*)
12620 if test ia64 != "$host_cpu"; then
12621 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12622 yes,aix,yes) ;; # shared object as lib.so file only
12623 yes,svr4,*) ;; # shared object as lib.so archive member only
12624 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12625 esac
12626 fi
12627 ;;
12628 esac
12629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12630 printf "%s\n" "$enable_shared" >&6; }
12631
12632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12633 printf %s "checking whether to build static libraries... " >&6; }
12634 # Make sure either enable_shared or enable_static is yes.
12635 test yes = "$enable_shared" || enable_static=yes
12636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12637 printf "%s\n" "$enable_static" >&6; }
12638
12639
12640
12641
12642 fi
12643 ac_ext=c
12644 ac_cpp='$CPP $CPPFLAGS'
12645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12648
12649 CC=$lt_save_CC
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665 ac_config_commands="$ac_config_commands libtool"
12666
12667
12668
12669
12670 # Only expand once:
12671
12672
12673
12674
12675
12676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
12677 printf %s "checking target system type... " >&6; }
12678 if test ${ac_cv_target+y}
12679 then :
12680 printf %s "(cached) " >&6
12681 else $as_nop
12682 if test "x$target_alias" = x; then
12683 ac_cv_target=$ac_cv_host
12684 else
12685 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
12686 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
12687 fi
12688
12689 fi
12690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
12691 printf "%s\n" "$ac_cv_target" >&6; }
12692 case $ac_cv_target in
12693 *-*-*) ;;
12694 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
12695 esac
12696 target=$ac_cv_target
12697 ac_save_IFS=$IFS; IFS='-'
12698 set x $ac_cv_target
12699 shift
12700 target_cpu=$1
12701 target_vendor=$2
12702 shift; shift
12703 # Remember, the first character of IFS is used to create $*,
12704 # except with old shells:
12705 target_os=$*
12706 IFS=$ac_save_IFS
12707 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
12708
12709
12710 # The aliases save the names the user supplied, while $host etc.
12711 # will get canonicalized.
12712 test -n "$target_alias" &&
12713 test "$program_prefix$program_suffix$program_transform_name" = \
12714 NONENONEs,x,x, &&
12715 program_prefix=${target_alias}-
12716
12717 am__api_version='1.16'
12718
12719
12720 # Find a good install program. We prefer a C program (faster),
12721 # so one script is as good as another. But avoid the broken or
12722 # incompatible versions:
12723 # SysV /etc/install, /usr/sbin/install
12724 # SunOS /usr/etc/install
12725 # IRIX /sbin/install
12726 # AIX /bin/install
12727 # AmigaOS /C/install, which installs bootblocks on floppy discs
12728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12731 # OS/2's system install, which has a completely different semantic
12732 # ./install, which can be erroneously created by make from ./install.sh.
12733 # Reject install programs that cannot install multiple files.
12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12735 printf %s "checking for a BSD-compatible install... " >&6; }
12736 if test -z "$INSTALL"; then
12737 if test ${ac_cv_path_install+y}
12738 then :
12739 printf %s "(cached) " >&6
12740 else $as_nop
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12743 do
12744 IFS=$as_save_IFS
12745 case $as_dir in #(((
12746 '') as_dir=./ ;;
12747 */) ;;
12748 *) as_dir=$as_dir/ ;;
12749 esac
12750 # Account for fact that we put trailing slashes in our PATH walk.
12751 case $as_dir in #((
12752 ./ | /[cC]/* | \
12753 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12754 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12755 /usr/ucb/* ) ;;
12756 *)
12757 # OSF1 and SCO ODT 3.0 have their own names for install.
12758 # Don't use installbsd from OSF since it installs stuff as root
12759 # by default.
12760 for ac_prog in ginstall scoinst install; do
12761 for ac_exec_ext in '' $ac_executable_extensions; do
12762 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
12763 if test $ac_prog = install &&
12764 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12765 # AIX install. It has an incompatible calling convention.
12766 :
12767 elif test $ac_prog = install &&
12768 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12769 # program-specific install script used by HP pwplus--don't use.
12770 :
12771 else
12772 rm -rf conftest.one conftest.two conftest.dir
12773 echo one > conftest.one
12774 echo two > conftest.two
12775 mkdir conftest.dir
12776 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
12777 test -s conftest.one && test -s conftest.two &&
12778 test -s conftest.dir/conftest.one &&
12779 test -s conftest.dir/conftest.two
12780 then
12781 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
12782 break 3
12783 fi
12784 fi
12785 fi
12786 done
12787 done
12788 ;;
12789 esac
12790
12791 done
12792 IFS=$as_save_IFS
12793
12794 rm -rf conftest.one conftest.two conftest.dir
12795
12796 fi
12797 if test ${ac_cv_path_install+y}; then
12798 INSTALL=$ac_cv_path_install
12799 else
12800 # As a last resort, use the slow shell script. Don't cache a
12801 # value for INSTALL within a source directory, because that will
12802 # break other packages using the cache if that directory is
12803 # removed, or if the value is a relative name.
12804 INSTALL=$ac_install_sh
12805 fi
12806 fi
12807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12808 printf "%s\n" "$INSTALL" >&6; }
12809
12810 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12811 # It thinks the first close brace ends the variable substitution.
12812 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12813
12814 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12815
12816 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12817
12818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12819 printf %s "checking whether build environment is sane... " >&6; }
12820 # Reject unsafe characters in $srcdir or the absolute working directory
12821 # name. Accept space and tab only in the latter.
12822 am_lf='
12823 '
12824 case `pwd` in
12825 *[\\\"\#\$\&\'\`$am_lf]*)
12826 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12827 esac
12828 case $srcdir in
12829 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12830 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12831 esac
12832
12833 # Do 'set' in a subshell so we don't clobber the current shell's
12834 # arguments. Must try -L first in case configure is actually a
12835 # symlink; some systems play weird games with the mod time of symlinks
12836 # (eg FreeBSD returns the mod time of the symlink's containing
12837 # directory).
12838 if (
12839 am_has_slept=no
12840 for am_try in 1 2; do
12841 echo "timestamp, slept: $am_has_slept" > conftest.file
12842 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12843 if test "$*" = "X"; then
12844 # -L didn't work.
12845 set X `ls -t "$srcdir/configure" conftest.file`
12846 fi
12847 if test "$*" != "X $srcdir/configure conftest.file" \
12848 && test "$*" != "X conftest.file $srcdir/configure"; then
12849
12850 # If neither matched, then we have a broken ls. This can happen
12851 # if, for instance, CONFIG_SHELL is bash and it inherits a
12852 # broken ls alias from the environment. This has actually
12853 # happened. Such a system could not be considered "sane".
12854 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12855 alias in your environment" "$LINENO" 5
12856 fi
12857 if test "$2" = conftest.file || test $am_try -eq 2; then
12858 break
12859 fi
12860 # Just in case.
12861 sleep 1
12862 am_has_slept=yes
12863 done
12864 test "$2" = conftest.file
12865 )
12866 then
12867 # Ok.
12868 :
12869 else
12870 as_fn_error $? "newly created file is older than distributed files!
12871 Check your system clock" "$LINENO" 5
12872 fi
12873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12874 printf "%s\n" "yes" >&6; }
12875 # If we didn't sleep, we still need to ensure time stamps of config.status and
12876 # generated files are strictly newer.
12877 am_sleep_pid=
12878 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12879 ( sleep 1 ) &
12880 am_sleep_pid=$!
12881 fi
12882
12883 rm -f conftest.file
12884
12885 test "$program_prefix" != NONE &&
12886 program_transform_name="s&^&$program_prefix&;$program_transform_name"
12887 # Use a double $ so make ignores it.
12888 test "$program_suffix" != NONE &&
12889 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
12890 # Double any \ or $.
12891 # By default was `s,x,x', remove it if useless.
12892 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
12893 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
12894
12895
12896 if test x"${MISSING+set}" != xset; then
12897 MISSING="\${SHELL} '$am_aux_dir/missing'"
12898 fi
12899 # Use eval to expand $SHELL
12900 if eval "$MISSING --is-lightweight"; then
12901 am_missing_run="$MISSING "
12902 else
12903 am_missing_run=
12904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12905 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12906 fi
12907
12908 if test x"${install_sh+set}" != xset; then
12909 case $am_aux_dir in
12910 *\ * | *\ *)
12911 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12912 *)
12913 install_sh="\${SHELL} $am_aux_dir/install-sh"
12914 esac
12915 fi
12916
12917 # Installed binaries are usually stripped using 'strip' when the user
12918 # run "make install-strip". However 'strip' might not be the right
12919 # tool to use in cross-compilation environments, therefore Automake
12920 # will honor the 'STRIP' environment variable to overrule this program.
12921 if test "$cross_compiling" != no; then
12922 if test -n "$ac_tool_prefix"; then
12923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12924 set dummy ${ac_tool_prefix}strip; ac_word=$2
12925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12926 printf %s "checking for $ac_word... " >&6; }
12927 if test ${ac_cv_prog_STRIP+y}
12928 then :
12929 printf %s "(cached) " >&6
12930 else $as_nop
12931 if test -n "$STRIP"; then
12932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12933 else
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12936 do
12937 IFS=$as_save_IFS
12938 case $as_dir in #(((
12939 '') as_dir=./ ;;
12940 */) ;;
12941 *) as_dir=$as_dir/ ;;
12942 esac
12943 for ac_exec_ext in '' $ac_executable_extensions; do
12944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12947 break 2
12948 fi
12949 done
12950 done
12951 IFS=$as_save_IFS
12952
12953 fi
12954 fi
12955 STRIP=$ac_cv_prog_STRIP
12956 if test -n "$STRIP"; then
12957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12958 printf "%s\n" "$STRIP" >&6; }
12959 else
12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961 printf "%s\n" "no" >&6; }
12962 fi
12963
12964
12965 fi
12966 if test -z "$ac_cv_prog_STRIP"; then
12967 ac_ct_STRIP=$STRIP
12968 # Extract the first word of "strip", so it can be a program name with args.
12969 set dummy strip; ac_word=$2
12970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971 printf %s "checking for $ac_word... " >&6; }
12972 if test ${ac_cv_prog_ac_ct_STRIP+y}
12973 then :
12974 printf %s "(cached) " >&6
12975 else $as_nop
12976 if test -n "$ac_ct_STRIP"; then
12977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12978 else
12979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980 for as_dir in $PATH
12981 do
12982 IFS=$as_save_IFS
12983 case $as_dir in #(((
12984 '') as_dir=./ ;;
12985 */) ;;
12986 *) as_dir=$as_dir/ ;;
12987 esac
12988 for ac_exec_ext in '' $ac_executable_extensions; do
12989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12990 ac_cv_prog_ac_ct_STRIP="strip"
12991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12992 break 2
12993 fi
12994 done
12995 done
12996 IFS=$as_save_IFS
12997
12998 fi
12999 fi
13000 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13001 if test -n "$ac_ct_STRIP"; then
13002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13003 printf "%s\n" "$ac_ct_STRIP" >&6; }
13004 else
13005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 printf "%s\n" "no" >&6; }
13007 fi
13008
13009 if test "x$ac_ct_STRIP" = x; then
13010 STRIP=":"
13011 else
13012 case $cross_compiling:$ac_tool_warned in
13013 yes:)
13014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13015 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13016 ac_tool_warned=yes ;;
13017 esac
13018 STRIP=$ac_ct_STRIP
13019 fi
13020 else
13021 STRIP="$ac_cv_prog_STRIP"
13022 fi
13023
13024 fi
13025 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13026
13027
13028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
13029 printf %s "checking for a race-free mkdir -p... " >&6; }
13030 if test -z "$MKDIR_P"; then
13031 if test ${ac_cv_path_mkdir+y}
13032 then :
13033 printf %s "(cached) " >&6
13034 else $as_nop
13035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13036 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13037 do
13038 IFS=$as_save_IFS
13039 case $as_dir in #(((
13040 '') as_dir=./ ;;
13041 */) ;;
13042 *) as_dir=$as_dir/ ;;
13043 esac
13044 for ac_prog in mkdir gmkdir; do
13045 for ac_exec_ext in '' $ac_executable_extensions; do
13046 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
13047 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
13048 'mkdir ('*'coreutils) '* | \
13049 'BusyBox '* | \
13050 'mkdir (fileutils) '4.1*)
13051 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
13052 break 3;;
13053 esac
13054 done
13055 done
13056 done
13057 IFS=$as_save_IFS
13058
13059 fi
13060
13061 test -d ./--version && rmdir ./--version
13062 if test ${ac_cv_path_mkdir+y}; then
13063 MKDIR_P="$ac_cv_path_mkdir -p"
13064 else
13065 # As a last resort, use the slow shell script. Don't cache a
13066 # value for MKDIR_P within a source directory, because that will
13067 # break other packages using the cache if that directory is
13068 # removed, or if the value is a relative name.
13069 MKDIR_P="$ac_install_sh -d"
13070 fi
13071 fi
13072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13073 printf "%s\n" "$MKDIR_P" >&6; }
13074
13075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13076 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13077 set x ${MAKE-make}
13078 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13079 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
13080 then :
13081 printf %s "(cached) " >&6
13082 else $as_nop
13083 cat >conftest.make <<\_ACEOF
13084 SHELL = /bin/sh
13085 all:
13086 @echo '@@@%%%=$(MAKE)=@@@%%%'
13087 _ACEOF
13088 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13089 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13090 *@@@%%%=?*=@@@%%%*)
13091 eval ac_cv_prog_make_${ac_make}_set=yes;;
13092 *)
13093 eval ac_cv_prog_make_${ac_make}_set=no;;
13094 esac
13095 rm -f conftest.make
13096 fi
13097 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13099 printf "%s\n" "yes" >&6; }
13100 SET_MAKE=
13101 else
13102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13103 printf "%s\n" "no" >&6; }
13104 SET_MAKE="MAKE=${MAKE-make}"
13105 fi
13106
13107 rm -rf .tst 2>/dev/null
13108 mkdir .tst 2>/dev/null
13109 if test -d .tst; then
13110 am__leading_dot=.
13111 else
13112 am__leading_dot=_
13113 fi
13114 rmdir .tst 2>/dev/null
13115
13116 DEPDIR="${am__leading_dot}deps"
13117
13118 ac_config_commands="$ac_config_commands depfiles"
13119
13120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
13121 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
13122 cat > confinc.mk << 'END'
13123 am__doit:
13124 @echo this is the am__doit target >confinc.out
13125 .PHONY: am__doit
13126 END
13127 am__include="#"
13128 am__quote=
13129 # BSD make does it like this.
13130 echo '.include "confinc.mk" # ignored' > confmf.BSD
13131 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
13132 echo 'include confinc.mk # ignored' > confmf.GNU
13133 _am_result=no
13134 for s in GNU BSD; do
13135 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
13136 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
13137 ac_status=$?
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }
13140 case $?:`cat confinc.out 2>/dev/null` in #(
13141 '0:this is the am__doit target') :
13142 case $s in #(
13143 BSD) :
13144 am__include='.include' am__quote='"' ;; #(
13145 *) :
13146 am__include='include' am__quote='' ;;
13147 esac ;; #(
13148 *) :
13149 ;;
13150 esac
13151 if test "$am__include" != "#"; then
13152 _am_result="yes ($s style)"
13153 break
13154 fi
13155 done
13156 rm -f confinc.* confmf.*
13157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
13158 printf "%s\n" "${_am_result}" >&6; }
13159
13160 # Check whether --enable-dependency-tracking was given.
13161 if test ${enable_dependency_tracking+y}
13162 then :
13163 enableval=$enable_dependency_tracking;
13164 fi
13165
13166 if test "x$enable_dependency_tracking" != xno; then
13167 am_depcomp="$ac_aux_dir/depcomp"
13168 AMDEPBACKSLASH='\'
13169 am__nodep='_no'
13170 fi
13171 if test "x$enable_dependency_tracking" != xno; then
13172 AMDEP_TRUE=
13173 AMDEP_FALSE='#'
13174 else
13175 AMDEP_TRUE='#'
13176 AMDEP_FALSE=
13177 fi
13178
13179
13180 # Check whether --enable-silent-rules was given.
13181 if test ${enable_silent_rules+y}
13182 then :
13183 enableval=$enable_silent_rules;
13184 fi
13185
13186 case $enable_silent_rules in # (((
13187 yes) AM_DEFAULT_VERBOSITY=0;;
13188 no) AM_DEFAULT_VERBOSITY=1;;
13189 *) AM_DEFAULT_VERBOSITY=1;;
13190 esac
13191 am_make=${MAKE-make}
13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13193 printf %s "checking whether $am_make supports nested variables... " >&6; }
13194 if test ${am_cv_make_support_nested_variables+y}
13195 then :
13196 printf %s "(cached) " >&6
13197 else $as_nop
13198 if printf "%s\n" 'TRUE=$(BAR$(V))
13199 BAR0=false
13200 BAR1=true
13201 V=1
13202 am__doit:
13203 @$(TRUE)
13204 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13205 am_cv_make_support_nested_variables=yes
13206 else
13207 am_cv_make_support_nested_variables=no
13208 fi
13209 fi
13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13211 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
13212 if test $am_cv_make_support_nested_variables = yes; then
13213 AM_V='$(V)'
13214 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13215 else
13216 AM_V=$AM_DEFAULT_VERBOSITY
13217 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13218 fi
13219 AM_BACKSLASH='\'
13220
13221 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13222 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13223 # is not polluted with repeated "-I."
13224 am__isrc=' -I$(srcdir)'
13225 # test to see if srcdir already configured
13226 if test -f $srcdir/config.status; then
13227 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13228 fi
13229 fi
13230
13231 # test whether we have cygpath
13232 if test -z "$CYGPATH_W"; then
13233 if (cygpath --version) >/dev/null 2>/dev/null; then
13234 CYGPATH_W='cygpath -w'
13235 else
13236 CYGPATH_W=echo
13237 fi
13238 fi
13239
13240
13241 # Define the identity of the package.
13242 PACKAGE='nghttp3'
13243 VERSION='1.17.0'
13244
13245
13246 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
13247
13248
13249 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
13250
13251 # Some tools Automake needs.
13252
13253 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13254
13255
13256 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13257
13258
13259 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13260
13261
13262 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13263
13264
13265 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13266
13267 # For better backward compatibility. To be removed once Automake 1.9.x
13268 # dies out for good. For more background, see:
13269 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13270 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13271 mkdir_p='$(MKDIR_P)'
13272
13273 # We need awk for the "check" target (and possibly the TAP driver). The
13274 # system "awk" is bad on some platforms.
13275 # Always define AMTAR for backward compatibility. Yes, it's still used
13276 # in the wild :-( We should find a proper way to deprecate it ...
13277 AMTAR='$${TAR-tar}'
13278
13279
13280 # We'll loop over all known methods to create a tar archive until one works.
13281 _am_tools='gnutar pax cpio none'
13282
13283
13284
13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
13286 printf %s "checking how to create a pax tar archive... " >&6; }
13287
13288 # Go ahead even if we have the value already cached. We do so because we
13289 # need to set the values for the 'am__tar' and 'am__untar' variables.
13290 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
13291
13292 for _am_tool in $_am_tools; do
13293 case $_am_tool in
13294 gnutar)
13295 for _am_tar in tar gnutar gtar; do
13296 { echo "$as_me:$LINENO: $_am_tar --version" >&5
13297 ($_am_tar --version) >&5 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } && break
13301 done
13302 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
13303 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
13304 am__untar="$_am_tar -xf -"
13305 ;;
13306 plaintar)
13307 # Must skip GNU tar: if it does not support --format= it doesn't create
13308 # ustar tarball either.
13309 (tar --version) >/dev/null 2>&1 && continue
13310 am__tar='tar chf - "$$tardir"'
13311 am__tar_='tar chf - "$tardir"'
13312 am__untar='tar xf -'
13313 ;;
13314 pax)
13315 am__tar='pax -L -x pax -w "$$tardir"'
13316 am__tar_='pax -L -x pax -w "$tardir"'
13317 am__untar='pax -r'
13318 ;;
13319 cpio)
13320 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
13321 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
13322 am__untar='cpio -i -H pax -d'
13323 ;;
13324 none)
13325 am__tar=false
13326 am__tar_=false
13327 am__untar=false
13328 ;;
13329 esac
13330
13331 # If the value was cached, stop now. We just wanted to have am__tar
13332 # and am__untar set.
13333 test -n "${am_cv_prog_tar_pax}" && break
13334
13335 # tar/untar a dummy directory, and stop if the command works.
13336 rm -rf conftest.dir
13337 mkdir conftest.dir
13338 echo GrepMe > conftest.dir/file
13339 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
13340 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }
13344 rm -rf conftest.dir
13345 if test -s conftest.tar; then
13346 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
13347 ($am__untar <conftest.tar) >&5 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }
13351 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
13352 (cat conftest.dir/file) >&5 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }
13356 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
13357 fi
13358 done
13359 rm -rf conftest.dir
13360
13361 if test ${am_cv_prog_tar_pax+y}
13362 then :
13363 printf %s "(cached) " >&6
13364 else $as_nop
13365 am_cv_prog_tar_pax=$_am_tool
13366 fi
13367
13368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
13369 printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
13370
13371
13372
13373
13374
13375 depcc="$CC" am_compiler_list=
13376
13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13378 printf %s "checking dependency style of $depcc... " >&6; }
13379 if test ${am_cv_CC_dependencies_compiler_type+y}
13380 then :
13381 printf %s "(cached) " >&6
13382 else $as_nop
13383 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13384 # We make a subdir and do the tests there. Otherwise we can end up
13385 # making bogus files that we don't know about and never remove. For
13386 # instance it was reported that on HP-UX the gcc test will end up
13387 # making a dummy file named 'D' -- because '-MD' means "put the output
13388 # in D".
13389 rm -rf conftest.dir
13390 mkdir conftest.dir
13391 # Copy depcomp to subdir because otherwise we won't find it if we're
13392 # using a relative directory.
13393 cp "$am_depcomp" conftest.dir
13394 cd conftest.dir
13395 # We will build objects and dependencies in a subdirectory because
13396 # it helps to detect inapplicable dependency modes. For instance
13397 # both Tru64's cc and ICC support -MD to output dependencies as a
13398 # side effect of compilation, but ICC will put the dependencies in
13399 # the current directory while Tru64 will put them in the object
13400 # directory.
13401 mkdir sub
13402
13403 am_cv_CC_dependencies_compiler_type=none
13404 if test "$am_compiler_list" = ""; then
13405 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13406 fi
13407 am__universal=false
13408 case " $depcc " in #(
13409 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13410 esac
13411
13412 for depmode in $am_compiler_list; do
13413 # Setup a source with many dependencies, because some compilers
13414 # like to wrap large dependency lists on column 80 (with \), and
13415 # we should not choose a depcomp mode which is confused by this.
13416 #
13417 # We need to recreate these files for each test, as the compiler may
13418 # overwrite some of them when testing with obscure command lines.
13419 # This happens at least with the AIX C compiler.
13420 : > sub/conftest.c
13421 for i in 1 2 3 4 5 6; do
13422 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13423 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13424 # Solaris 10 /bin/sh.
13425 echo '/* dummy */' > sub/conftst$i.h
13426 done
13427 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13428
13429 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13430 # mode. It turns out that the SunPro C++ compiler does not properly
13431 # handle '-M -o', and we need to detect this. Also, some Intel
13432 # versions had trouble with output in subdirs.
13433 am__obj=sub/conftest.${OBJEXT-o}
13434 am__minus_obj="-o $am__obj"
13435 case $depmode in
13436 gcc)
13437 # This depmode causes a compiler race in universal mode.
13438 test "$am__universal" = false || continue
13439 ;;
13440 nosideeffect)
13441 # After this tag, mechanisms are not by side-effect, so they'll
13442 # only be used when explicitly requested.
13443 if test "x$enable_dependency_tracking" = xyes; then
13444 continue
13445 else
13446 break
13447 fi
13448 ;;
13449 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13450 # This compiler won't grok '-c -o', but also, the minuso test has
13451 # not run yet. These depmodes are late enough in the game, and
13452 # so weak that their functioning should not be impacted.
13453 am__obj=conftest.${OBJEXT-o}
13454 am__minus_obj=
13455 ;;
13456 none) break ;;
13457 esac
13458 if depmode=$depmode \
13459 source=sub/conftest.c object=$am__obj \
13460 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13461 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13462 >/dev/null 2>conftest.err &&
13463 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13464 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13465 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13466 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13467 # icc doesn't choke on unknown options, it will just issue warnings
13468 # or remarks (even with -Werror). So we grep stderr for any message
13469 # that says an option was ignored or not supported.
13470 # When given -MP, icc 7.0 and 7.1 complain thusly:
13471 # icc: Command line warning: ignoring option '-M'; no argument required
13472 # The diagnosis changed in icc 8.0:
13473 # icc: Command line remark: option '-MP' not supported
13474 if (grep 'ignoring option' conftest.err ||
13475 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13476 am_cv_CC_dependencies_compiler_type=$depmode
13477 break
13478 fi
13479 fi
13480 done
13481
13482 cd ..
13483 rm -rf conftest.dir
13484 else
13485 am_cv_CC_dependencies_compiler_type=none
13486 fi
13487
13488 fi
13489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13490 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
13491 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13492
13493 if
13494 test "x$enable_dependency_tracking" != xno \
13495 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13496 am__fastdepCC_TRUE=
13497 am__fastdepCC_FALSE='#'
13498 else
13499 am__fastdepCC_TRUE='#'
13500 am__fastdepCC_FALSE=
13501 fi
13502
13503
13504 # Variables for tags utilities; see am/tags.am
13505 if test -z "$CTAGS"; then
13506 CTAGS=ctags
13507 fi
13508
13509 if test -z "$ETAGS"; then
13510 ETAGS=etags
13511 fi
13512
13513 if test -z "$CSCOPE"; then
13514 CSCOPE=cscope
13515 fi
13516
13517
13518
13519 # POSIX will say in a future version that running "rm -f" with no argument
13520 # is OK; and we want to be able to make that assumption in our Makefile
13521 # recipes. So use an aggressive probe to check that the usage we want is
13522 # actually supported "in the wild" to an acceptable degree.
13523 # See automake bug#10828.
13524 # To make any issue more visible, cause the running configure to be aborted
13525 # by default if the 'rm' program in use doesn't match our expectations; the
13526 # user can still override this though.
13527 if rm -f && rm -fr && rm -rf; then : OK; else
13528 cat >&2 <<'END'
13529 Oops!
13530
13531 Your 'rm' program seems unable to run without file operands specified
13532 on the command line, even when the '-f' option is present. This is contrary
13533 to the behaviour of most rm programs out there, and not conforming with
13534 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13535
13536 Please tell [email protected] about your system, including the value
13537 of your $PATH and any error possibly output before this message. This
13538 can help us improve future automake versions.
13539
13540 END
13541 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13542 echo 'Configuration will proceed anyway, since you have set the' >&2
13543 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13544 echo >&2
13545 else
13546 cat >&2 <<'END'
13547 Aborting the configuration process, to ensure you take notice of the issue.
13548
13549 You can download and install GNU coreutils to get an 'rm' implementation
13550 that behaves properly: <https://www.gnu.org/software/coreutils/>.
13551
13552 If you want to complete the configuration process using your problematic
13553 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13554 to "yes", and re-run configure.
13555
13556 END
13557 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13558 fi
13559 fi
13560
13561
13562 # Check whether --enable-silent-rules was given.
13563 if test ${enable_silent_rules+y}
13564 then :
13565 enableval=$enable_silent_rules;
13566 fi
13567
13568 case $enable_silent_rules in # (((
13569 yes) AM_DEFAULT_VERBOSITY=0;;
13570 no) AM_DEFAULT_VERBOSITY=1;;
13571 *) AM_DEFAULT_VERBOSITY=0;;
13572 esac
13573 am_make=${MAKE-make}
13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13575 printf %s "checking whether $am_make supports nested variables... " >&6; }
13576 if test ${am_cv_make_support_nested_variables+y}
13577 then :
13578 printf %s "(cached) " >&6
13579 else $as_nop
13580 if printf "%s\n" 'TRUE=$(BAR$(V))
13581 BAR0=false
13582 BAR1=true
13583 V=1
13584 am__doit:
13585 @$(TRUE)
13586 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13587 am_cv_make_support_nested_variables=yes
13588 else
13589 am_cv_make_support_nested_variables=no
13590 fi
13591 fi
13592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13593 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
13594 if test $am_cv_make_support_nested_variables = yes; then
13595 AM_V='$(V)'
13596 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13597 else
13598 AM_V=$AM_DEFAULT_VERBOSITY
13599 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13600 fi
13601 AM_BACKSLASH='\'
13602
13603
13604 # See versioning rule:
13605 # https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
13606 LT_CURRENT=17
13607
13608 LT_REVISION=0
13609
13610 LT_AGE=8
13611
13612
13613 # from nghttp2
13614 major=`echo $PACKAGE_VERSION |cut -d. -f1 | sed -e "s/^0-9//g"`
13615 minor=`echo $PACKAGE_VERSION |cut -d. -f2 | sed -e "s/^0-9//g"`
13616 patch=`echo $PACKAGE_VERSION |cut -d. -f3 | cut -d- -f1 | sed -e "s/^0-9//g"`
13617
13618 PACKAGE_VERSION_NUM=`printf "0x%02x%02x%02x" "$major" "$minor" "$patch"`
13619
13620
13621
13622 # Checks for command-line options
13623 # Check whether --enable-werror was given.
13624 if test ${enable_werror+y}
13625 then :
13626 enableval=$enable_werror; werror=$enableval
13627 else $as_nop
13628 werror=no
13629 fi
13630
13631
13632 # Check whether --enable-debug was given.
13633 if test ${enable_debug+y}
13634 then :
13635 enableval=$enable_debug; debug=$enableval
13636 else $as_nop
13637 debug=no
13638 fi
13639
13640
13641 if test "x${debug}" = "xyes"; then
13642 DEBUGCFLAGS="-O0 -g3"
13643
13644
13645 printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
13646
13647 fi
13648
13649 # Check whether --enable-memdebug was given.
13650 if test ${enable_memdebug+y}
13651 then :
13652 enableval=$enable_memdebug; memdebug=$enableval
13653 else $as_nop
13654 memdebug=no
13655 fi
13656
13657
13658 # Check whether --enable-asan was given.
13659 if test ${enable_asan+y}
13660 then :
13661 enableval=$enable_asan; asan=$enableval
13662 else $as_nop
13663 asan=no
13664 fi
13665
13666
13667 # Check whether --enable-lib-only was given.
13668 if test ${enable_lib_only+y}
13669 then :
13670 enableval=$enable_lib_only; lib_only=$enableval
13671 else $as_nop
13672 lib_only=no
13673 fi
13674
13675
13676 # Checks for programs
13677 ac_ext=c
13678 ac_cpp='$CPP $CPPFLAGS'
13679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13682 if test -n "$ac_tool_prefix"; then
13683 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13684 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13686 printf %s "checking for $ac_word... " >&6; }
13687 if test ${ac_cv_prog_CC+y}
13688 then :
13689 printf %s "(cached) " >&6
13690 else $as_nop
13691 if test -n "$CC"; then
13692 ac_cv_prog_CC="$CC" # Let the user override the test.
13693 else
13694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13695 for as_dir in $PATH
13696 do
13697 IFS=$as_save_IFS
13698 case $as_dir in #(((
13699 '') as_dir=./ ;;
13700 */) ;;
13701 *) as_dir=$as_dir/ ;;
13702 esac
13703 for ac_exec_ext in '' $ac_executable_extensions; do
13704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13705 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13707 break 2
13708 fi
13709 done
13710 done
13711 IFS=$as_save_IFS
13712
13713 fi
13714 fi
13715 CC=$ac_cv_prog_CC
13716 if test -n "$CC"; then
13717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13718 printf "%s\n" "$CC" >&6; }
13719 else
13720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13721 printf "%s\n" "no" >&6; }
13722 fi
13723
13724
13725 fi
13726 if test -z "$ac_cv_prog_CC"; then
13727 ac_ct_CC=$CC
13728 # Extract the first word of "gcc", so it can be a program name with args.
13729 set dummy gcc; ac_word=$2
13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13731 printf %s "checking for $ac_word... " >&6; }
13732 if test ${ac_cv_prog_ac_ct_CC+y}
13733 then :
13734 printf %s "(cached) " >&6
13735 else $as_nop
13736 if test -n "$ac_ct_CC"; then
13737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13738 else
13739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13740 for as_dir in $PATH
13741 do
13742 IFS=$as_save_IFS
13743 case $as_dir in #(((
13744 '') as_dir=./ ;;
13745 */) ;;
13746 *) as_dir=$as_dir/ ;;
13747 esac
13748 for ac_exec_ext in '' $ac_executable_extensions; do
13749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13750 ac_cv_prog_ac_ct_CC="gcc"
13751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13752 break 2
13753 fi
13754 done
13755 done
13756 IFS=$as_save_IFS
13757
13758 fi
13759 fi
13760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13761 if test -n "$ac_ct_CC"; then
13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13763 printf "%s\n" "$ac_ct_CC" >&6; }
13764 else
13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766 printf "%s\n" "no" >&6; }
13767 fi
13768
13769 if test "x$ac_ct_CC" = x; then
13770 CC=""
13771 else
13772 case $cross_compiling:$ac_tool_warned in
13773 yes:)
13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13775 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13776 ac_tool_warned=yes ;;
13777 esac
13778 CC=$ac_ct_CC
13779 fi
13780 else
13781 CC="$ac_cv_prog_CC"
13782 fi
13783
13784 if test -z "$CC"; then
13785 if test -n "$ac_tool_prefix"; then
13786 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13787 set dummy ${ac_tool_prefix}cc; ac_word=$2
13788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13789 printf %s "checking for $ac_word... " >&6; }
13790 if test ${ac_cv_prog_CC+y}
13791 then :
13792 printf %s "(cached) " >&6
13793 else $as_nop
13794 if test -n "$CC"; then
13795 ac_cv_prog_CC="$CC" # Let the user override the test.
13796 else
13797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13799 do
13800 IFS=$as_save_IFS
13801 case $as_dir in #(((
13802 '') as_dir=./ ;;
13803 */) ;;
13804 *) as_dir=$as_dir/ ;;
13805 esac
13806 for ac_exec_ext in '' $ac_executable_extensions; do
13807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13808 ac_cv_prog_CC="${ac_tool_prefix}cc"
13809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13810 break 2
13811 fi
13812 done
13813 done
13814 IFS=$as_save_IFS
13815
13816 fi
13817 fi
13818 CC=$ac_cv_prog_CC
13819 if test -n "$CC"; then
13820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13821 printf "%s\n" "$CC" >&6; }
13822 else
13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13824 printf "%s\n" "no" >&6; }
13825 fi
13826
13827
13828 fi
13829 fi
13830 if test -z "$CC"; then
13831 # Extract the first word of "cc", so it can be a program name with args.
13832 set dummy cc; ac_word=$2
13833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13834 printf %s "checking for $ac_word... " >&6; }
13835 if test ${ac_cv_prog_CC+y}
13836 then :
13837 printf %s "(cached) " >&6
13838 else $as_nop
13839 if test -n "$CC"; then
13840 ac_cv_prog_CC="$CC" # Let the user override the test.
13841 else
13842 ac_prog_rejected=no
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13845 do
13846 IFS=$as_save_IFS
13847 case $as_dir in #(((
13848 '') as_dir=./ ;;
13849 */) ;;
13850 *) as_dir=$as_dir/ ;;
13851 esac
13852 for ac_exec_ext in '' $ac_executable_extensions; do
13853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13854 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13855 ac_prog_rejected=yes
13856 continue
13857 fi
13858 ac_cv_prog_CC="cc"
13859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13860 break 2
13861 fi
13862 done
13863 done
13864 IFS=$as_save_IFS
13865
13866 if test $ac_prog_rejected = yes; then
13867 # We found a bogon in the path, so make sure we never use it.
13868 set dummy $ac_cv_prog_CC
13869 shift
13870 if test $# != 0; then
13871 # We chose a different compiler from the bogus one.
13872 # However, it has the same basename, so the bogon will be chosen
13873 # first if we set CC to just the basename; use the full file name.
13874 shift
13875 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13876 fi
13877 fi
13878 fi
13879 fi
13880 CC=$ac_cv_prog_CC
13881 if test -n "$CC"; then
13882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13883 printf "%s\n" "$CC" >&6; }
13884 else
13885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13886 printf "%s\n" "no" >&6; }
13887 fi
13888
13889
13890 fi
13891 if test -z "$CC"; then
13892 if test -n "$ac_tool_prefix"; then
13893 for ac_prog in cl.exe
13894 do
13895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13898 printf %s "checking for $ac_word... " >&6; }
13899 if test ${ac_cv_prog_CC+y}
13900 then :
13901 printf %s "(cached) " >&6
13902 else $as_nop
13903 if test -n "$CC"; then
13904 ac_cv_prog_CC="$CC" # Let the user override the test.
13905 else
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13908 do
13909 IFS=$as_save_IFS
13910 case $as_dir in #(((
13911 '') as_dir=./ ;;
13912 */) ;;
13913 *) as_dir=$as_dir/ ;;
13914 esac
13915 for ac_exec_ext in '' $ac_executable_extensions; do
13916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13917 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13919 break 2
13920 fi
13921 done
13922 done
13923 IFS=$as_save_IFS
13924
13925 fi
13926 fi
13927 CC=$ac_cv_prog_CC
13928 if test -n "$CC"; then
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13930 printf "%s\n" "$CC" >&6; }
13931 else
13932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933 printf "%s\n" "no" >&6; }
13934 fi
13935
13936
13937 test -n "$CC" && break
13938 done
13939 fi
13940 if test -z "$CC"; then
13941 ac_ct_CC=$CC
13942 for ac_prog in cl.exe
13943 do
13944 # Extract the first word of "$ac_prog", so it can be a program name with args.
13945 set dummy $ac_prog; ac_word=$2
13946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13947 printf %s "checking for $ac_word... " >&6; }
13948 if test ${ac_cv_prog_ac_ct_CC+y}
13949 then :
13950 printf %s "(cached) " >&6
13951 else $as_nop
13952 if test -n "$ac_ct_CC"; then
13953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13954 else
13955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13956 for as_dir in $PATH
13957 do
13958 IFS=$as_save_IFS
13959 case $as_dir in #(((
13960 '') as_dir=./ ;;
13961 */) ;;
13962 *) as_dir=$as_dir/ ;;
13963 esac
13964 for ac_exec_ext in '' $ac_executable_extensions; do
13965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13966 ac_cv_prog_ac_ct_CC="$ac_prog"
13967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13968 break 2
13969 fi
13970 done
13971 done
13972 IFS=$as_save_IFS
13973
13974 fi
13975 fi
13976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13977 if test -n "$ac_ct_CC"; then
13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13979 printf "%s\n" "$ac_ct_CC" >&6; }
13980 else
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 printf "%s\n" "no" >&6; }
13983 fi
13984
13985
13986 test -n "$ac_ct_CC" && break
13987 done
13988
13989 if test "x$ac_ct_CC" = x; then
13990 CC=""
13991 else
13992 case $cross_compiling:$ac_tool_warned in
13993 yes:)
13994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13995 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13996 ac_tool_warned=yes ;;
13997 esac
13998 CC=$ac_ct_CC
13999 fi
14000 fi
14001
14002 fi
14003 if test -z "$CC"; then
14004 if test -n "$ac_tool_prefix"; then
14005 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14006 set dummy ${ac_tool_prefix}clang; ac_word=$2
14007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14008 printf %s "checking for $ac_word... " >&6; }
14009 if test ${ac_cv_prog_CC+y}
14010 then :
14011 printf %s "(cached) " >&6
14012 else $as_nop
14013 if test -n "$CC"; then
14014 ac_cv_prog_CC="$CC" # Let the user override the test.
14015 else
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14018 do
14019 IFS=$as_save_IFS
14020 case $as_dir in #(((
14021 '') as_dir=./ ;;
14022 */) ;;
14023 *) as_dir=$as_dir/ ;;
14024 esac
14025 for ac_exec_ext in '' $ac_executable_extensions; do
14026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14027 ac_cv_prog_CC="${ac_tool_prefix}clang"
14028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14029 break 2
14030 fi
14031 done
14032 done
14033 IFS=$as_save_IFS
14034
14035 fi
14036 fi
14037 CC=$ac_cv_prog_CC
14038 if test -n "$CC"; then
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14040 printf "%s\n" "$CC" >&6; }
14041 else
14042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 printf "%s\n" "no" >&6; }
14044 fi
14045
14046
14047 fi
14048 if test -z "$ac_cv_prog_CC"; then
14049 ac_ct_CC=$CC
14050 # Extract the first word of "clang", so it can be a program name with args.
14051 set dummy clang; ac_word=$2
14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14053 printf %s "checking for $ac_word... " >&6; }
14054 if test ${ac_cv_prog_ac_ct_CC+y}
14055 then :
14056 printf %s "(cached) " >&6
14057 else $as_nop
14058 if test -n "$ac_ct_CC"; then
14059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14060 else
14061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14062 for as_dir in $PATH
14063 do
14064 IFS=$as_save_IFS
14065 case $as_dir in #(((
14066 '') as_dir=./ ;;
14067 */) ;;
14068 *) as_dir=$as_dir/ ;;
14069 esac
14070 for ac_exec_ext in '' $ac_executable_extensions; do
14071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14072 ac_cv_prog_ac_ct_CC="clang"
14073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14074 break 2
14075 fi
14076 done
14077 done
14078 IFS=$as_save_IFS
14079
14080 fi
14081 fi
14082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14083 if test -n "$ac_ct_CC"; then
14084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14085 printf "%s\n" "$ac_ct_CC" >&6; }
14086 else
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088 printf "%s\n" "no" >&6; }
14089 fi
14090
14091 if test "x$ac_ct_CC" = x; then
14092 CC=""
14093 else
14094 case $cross_compiling:$ac_tool_warned in
14095 yes:)
14096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14097 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14098 ac_tool_warned=yes ;;
14099 esac
14100 CC=$ac_ct_CC
14101 fi
14102 else
14103 CC="$ac_cv_prog_CC"
14104 fi
14105
14106 fi
14107
14108
14109 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14110 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14111 as_fn_error $? "no acceptable C compiler found in \$PATH
14112 See \`config.log' for more details" "$LINENO" 5; }
14113
14114 # Provide some information about the compiler.
14115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14116 set X $ac_compile
14117 ac_compiler=$2
14118 for ac_option in --version -v -V -qversion -version; do
14119 { { ac_try="$ac_compiler $ac_option >&5"
14120 case "(($ac_try" in
14121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14122 *) ac_try_echo=$ac_try;;
14123 esac
14124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14125 printf "%s\n" "$ac_try_echo"; } >&5
14126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14127 ac_status=$?
14128 if test -s conftest.err; then
14129 sed '10a\
14130 ... rest of stderr output deleted ...
14131 10q' conftest.err >conftest.er1
14132 cat conftest.er1 >&5
14133 fi
14134 rm -f conftest.er1 conftest.err
14135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14136 test $ac_status = 0; }
14137 done
14138
14139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14140 printf %s "checking whether the compiler supports GNU C... " >&6; }
14141 if test ${ac_cv_c_compiler_gnu+y}
14142 then :
14143 printf %s "(cached) " >&6
14144 else $as_nop
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14147
14148 int
14149 main (void)
14150 {
14151 #ifndef __GNUC__
14152 choke me
14153 #endif
14154
14155 ;
14156 return 0;
14157 }
14158 _ACEOF
14159 if ac_fn_c_try_compile "$LINENO"
14160 then :
14161 ac_compiler_gnu=yes
14162 else $as_nop
14163 ac_compiler_gnu=no
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14166 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14167
14168 fi
14169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14170 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14172
14173 if test $ac_compiler_gnu = yes; then
14174 GCC=yes
14175 else
14176 GCC=
14177 fi
14178 ac_test_CFLAGS=${CFLAGS+y}
14179 ac_save_CFLAGS=$CFLAGS
14180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14181 printf %s "checking whether $CC accepts -g... " >&6; }
14182 if test ${ac_cv_prog_cc_g+y}
14183 then :
14184 printf %s "(cached) " >&6
14185 else $as_nop
14186 ac_save_c_werror_flag=$ac_c_werror_flag
14187 ac_c_werror_flag=yes
14188 ac_cv_prog_cc_g=no
14189 CFLAGS="-g"
14190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192
14193 int
14194 main (void)
14195 {
14196
14197 ;
14198 return 0;
14199 }
14200 _ACEOF
14201 if ac_fn_c_try_compile "$LINENO"
14202 then :
14203 ac_cv_prog_cc_g=yes
14204 else $as_nop
14205 CFLAGS=""
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208
14209 int
14210 main (void)
14211 {
14212
14213 ;
14214 return 0;
14215 }
14216 _ACEOF
14217 if ac_fn_c_try_compile "$LINENO"
14218 then :
14219
14220 else $as_nop
14221 ac_c_werror_flag=$ac_save_c_werror_flag
14222 CFLAGS="-g"
14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h. */
14225
14226 int
14227 main (void)
14228 {
14229
14230 ;
14231 return 0;
14232 }
14233 _ACEOF
14234 if ac_fn_c_try_compile "$LINENO"
14235 then :
14236 ac_cv_prog_cc_g=yes
14237 fi
14238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14239 fi
14240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14243 ac_c_werror_flag=$ac_save_c_werror_flag
14244 fi
14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14246 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14247 if test $ac_test_CFLAGS; then
14248 CFLAGS=$ac_save_CFLAGS
14249 elif test $ac_cv_prog_cc_g = yes; then
14250 if test "$GCC" = yes; then
14251 CFLAGS="-g -O2"
14252 else
14253 CFLAGS="-g"
14254 fi
14255 else
14256 if test "$GCC" = yes; then
14257 CFLAGS="-O2"
14258 else
14259 CFLAGS=
14260 fi
14261 fi
14262 ac_prog_cc_stdc=no
14263 if test x$ac_prog_cc_stdc = xno
14264 then :
14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14266 printf %s "checking for $CC option to enable C11 features... " >&6; }
14267 if test ${ac_cv_prog_cc_c11+y}
14268 then :
14269 printf %s "(cached) " >&6
14270 else $as_nop
14271 ac_cv_prog_cc_c11=no
14272 ac_save_CC=$CC
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14275 $ac_c_conftest_c11_program
14276 _ACEOF
14277 for ac_arg in '' -std=gnu11
14278 do
14279 CC="$ac_save_CC $ac_arg"
14280 if ac_fn_c_try_compile "$LINENO"
14281 then :
14282 ac_cv_prog_cc_c11=$ac_arg
14283 fi
14284 rm -f core conftest.err conftest.$ac_objext conftest.beam
14285 test "x$ac_cv_prog_cc_c11" != "xno" && break
14286 done
14287 rm -f conftest.$ac_ext
14288 CC=$ac_save_CC
14289 fi
14290
14291 if test "x$ac_cv_prog_cc_c11" = xno
14292 then :
14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14294 printf "%s\n" "unsupported" >&6; }
14295 else $as_nop
14296 if test "x$ac_cv_prog_cc_c11" = x
14297 then :
14298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14299 printf "%s\n" "none needed" >&6; }
14300 else $as_nop
14301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14302 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14303 CC="$CC $ac_cv_prog_cc_c11"
14304 fi
14305 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14306 ac_prog_cc_stdc=c11
14307 fi
14308 fi
14309 if test x$ac_prog_cc_stdc = xno
14310 then :
14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14312 printf %s "checking for $CC option to enable C99 features... " >&6; }
14313 if test ${ac_cv_prog_cc_c99+y}
14314 then :
14315 printf %s "(cached) " >&6
14316 else $as_nop
14317 ac_cv_prog_cc_c99=no
14318 ac_save_CC=$CC
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321 $ac_c_conftest_c99_program
14322 _ACEOF
14323 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14324 do
14325 CC="$ac_save_CC $ac_arg"
14326 if ac_fn_c_try_compile "$LINENO"
14327 then :
14328 ac_cv_prog_cc_c99=$ac_arg
14329 fi
14330 rm -f core conftest.err conftest.$ac_objext conftest.beam
14331 test "x$ac_cv_prog_cc_c99" != "xno" && break
14332 done
14333 rm -f conftest.$ac_ext
14334 CC=$ac_save_CC
14335 fi
14336
14337 if test "x$ac_cv_prog_cc_c99" = xno
14338 then :
14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14340 printf "%s\n" "unsupported" >&6; }
14341 else $as_nop
14342 if test "x$ac_cv_prog_cc_c99" = x
14343 then :
14344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14345 printf "%s\n" "none needed" >&6; }
14346 else $as_nop
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14348 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14349 CC="$CC $ac_cv_prog_cc_c99"
14350 fi
14351 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14352 ac_prog_cc_stdc=c99
14353 fi
14354 fi
14355 if test x$ac_prog_cc_stdc = xno
14356 then :
14357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14358 printf %s "checking for $CC option to enable C89 features... " >&6; }
14359 if test ${ac_cv_prog_cc_c89+y}
14360 then :
14361 printf %s "(cached) " >&6
14362 else $as_nop
14363 ac_cv_prog_cc_c89=no
14364 ac_save_CC=$CC
14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h. */
14367 $ac_c_conftest_c89_program
14368 _ACEOF
14369 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14370 do
14371 CC="$ac_save_CC $ac_arg"
14372 if ac_fn_c_try_compile "$LINENO"
14373 then :
14374 ac_cv_prog_cc_c89=$ac_arg
14375 fi
14376 rm -f core conftest.err conftest.$ac_objext conftest.beam
14377 test "x$ac_cv_prog_cc_c89" != "xno" && break
14378 done
14379 rm -f conftest.$ac_ext
14380 CC=$ac_save_CC
14381 fi
14382
14383 if test "x$ac_cv_prog_cc_c89" = xno
14384 then :
14385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14386 printf "%s\n" "unsupported" >&6; }
14387 else $as_nop
14388 if test "x$ac_cv_prog_cc_c89" = x
14389 then :
14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14391 printf "%s\n" "none needed" >&6; }
14392 else $as_nop
14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14394 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14395 CC="$CC $ac_cv_prog_cc_c89"
14396 fi
14397 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14398 ac_prog_cc_stdc=c89
14399 fi
14400 fi
14401
14402 ac_ext=c
14403 ac_cpp='$CPP $CPPFLAGS'
14404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14407
14408
14409 ac_ext=c
14410 ac_cpp='$CPP $CPPFLAGS'
14411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14415 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14416 if test ${am_cv_prog_cc_c_o+y}
14417 then :
14418 printf %s "(cached) " >&6
14419 else $as_nop
14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14422
14423 int
14424 main (void)
14425 {
14426
14427 ;
14428 return 0;
14429 }
14430 _ACEOF
14431 # Make sure it works both with $CC and with simple cc.
14432 # Following AC_PROG_CC_C_O, we do the test twice because some
14433 # compilers refuse to overwrite an existing .o file with -o,
14434 # though they will create one.
14435 am_cv_prog_cc_c_o=yes
14436 for am_i in 1 2; do
14437 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14438 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } \
14442 && test -f conftest2.$ac_objext; then
14443 : OK
14444 else
14445 am_cv_prog_cc_c_o=no
14446 break
14447 fi
14448 done
14449 rm -f core conftest*
14450 unset am_i
14451 fi
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14453 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14454 if test "$am_cv_prog_cc_c_o" != yes; then
14455 # Losing compiler, so override with the script.
14456 # FIXME: It is wrong to rewrite CC.
14457 # But if we don't then we get into trouble of one sort or another.
14458 # A longer-term fix would be to have automake use am__CC in this case,
14459 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14460 CC="$am_aux_dir/compile $CC"
14461 fi
14462 ac_ext=c
14463 ac_cpp='$CPP $CPPFLAGS'
14464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14467
14468
14469
14470
14471
14472
14473
14474
14475 ac_ext=cpp
14476 ac_cpp='$CXXCPP $CPPFLAGS'
14477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14480 if test -z "$CXX"; then
14481 if test -n "$CCC"; then
14482 CXX=$CCC
14483 else
14484 if test -n "$ac_tool_prefix"; then
14485 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14486 do
14487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14490 printf %s "checking for $ac_word... " >&6; }
14491 if test ${ac_cv_prog_CXX+y}
14492 then :
14493 printf %s "(cached) " >&6
14494 else $as_nop
14495 if test -n "$CXX"; then
14496 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14497 else
14498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14499 for as_dir in $PATH
14500 do
14501 IFS=$as_save_IFS
14502 case $as_dir in #(((
14503 '') as_dir=./ ;;
14504 */) ;;
14505 *) as_dir=$as_dir/ ;;
14506 esac
14507 for ac_exec_ext in '' $ac_executable_extensions; do
14508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14509 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14511 break 2
14512 fi
14513 done
14514 done
14515 IFS=$as_save_IFS
14516
14517 fi
14518 fi
14519 CXX=$ac_cv_prog_CXX
14520 if test -n "$CXX"; then
14521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14522 printf "%s\n" "$CXX" >&6; }
14523 else
14524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14525 printf "%s\n" "no" >&6; }
14526 fi
14527
14528
14529 test -n "$CXX" && break
14530 done
14531 fi
14532 if test -z "$CXX"; then
14533 ac_ct_CXX=$CXX
14534 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14535 do
14536 # Extract the first word of "$ac_prog", so it can be a program name with args.
14537 set dummy $ac_prog; ac_word=$2
14538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14539 printf %s "checking for $ac_word... " >&6; }
14540 if test ${ac_cv_prog_ac_ct_CXX+y}
14541 then :
14542 printf %s "(cached) " >&6
14543 else $as_nop
14544 if test -n "$ac_ct_CXX"; then
14545 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14546 else
14547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14548 for as_dir in $PATH
14549 do
14550 IFS=$as_save_IFS
14551 case $as_dir in #(((
14552 '') as_dir=./ ;;
14553 */) ;;
14554 *) as_dir=$as_dir/ ;;
14555 esac
14556 for ac_exec_ext in '' $ac_executable_extensions; do
14557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14558 ac_cv_prog_ac_ct_CXX="$ac_prog"
14559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14560 break 2
14561 fi
14562 done
14563 done
14564 IFS=$as_save_IFS
14565
14566 fi
14567 fi
14568 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14569 if test -n "$ac_ct_CXX"; then
14570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14571 printf "%s\n" "$ac_ct_CXX" >&6; }
14572 else
14573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14574 printf "%s\n" "no" >&6; }
14575 fi
14576
14577
14578 test -n "$ac_ct_CXX" && break
14579 done
14580
14581 if test "x$ac_ct_CXX" = x; then
14582 CXX="g++"
14583 else
14584 case $cross_compiling:$ac_tool_warned in
14585 yes:)
14586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14587 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14588 ac_tool_warned=yes ;;
14589 esac
14590 CXX=$ac_ct_CXX
14591 fi
14592 fi
14593
14594 fi
14595 fi
14596 # Provide some information about the compiler.
14597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14598 set X $ac_compile
14599 ac_compiler=$2
14600 for ac_option in --version -v -V -qversion; do
14601 { { ac_try="$ac_compiler $ac_option >&5"
14602 case "(($ac_try" in
14603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604 *) ac_try_echo=$ac_try;;
14605 esac
14606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14607 printf "%s\n" "$ac_try_echo"; } >&5
14608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14609 ac_status=$?
14610 if test -s conftest.err; then
14611 sed '10a\
14612 ... rest of stderr output deleted ...
14613 10q' conftest.err >conftest.er1
14614 cat conftest.er1 >&5
14615 fi
14616 rm -f conftest.er1 conftest.err
14617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14618 test $ac_status = 0; }
14619 done
14620
14621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14622 printf %s "checking whether the compiler supports GNU C++... " >&6; }
14623 if test ${ac_cv_cxx_compiler_gnu+y}
14624 then :
14625 printf %s "(cached) " >&6
14626 else $as_nop
14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628 /* end confdefs.h. */
14629
14630 int
14631 main (void)
14632 {
14633 #ifndef __GNUC__
14634 choke me
14635 #endif
14636
14637 ;
14638 return 0;
14639 }
14640 _ACEOF
14641 if ac_fn_cxx_try_compile "$LINENO"
14642 then :
14643 ac_compiler_gnu=yes
14644 else $as_nop
14645 ac_compiler_gnu=no
14646 fi
14647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14648 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14649
14650 fi
14651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14652 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14654
14655 if test $ac_compiler_gnu = yes; then
14656 GXX=yes
14657 else
14658 GXX=
14659 fi
14660 ac_test_CXXFLAGS=${CXXFLAGS+y}
14661 ac_save_CXXFLAGS=$CXXFLAGS
14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14663 printf %s "checking whether $CXX accepts -g... " >&6; }
14664 if test ${ac_cv_prog_cxx_g+y}
14665 then :
14666 printf %s "(cached) " >&6
14667 else $as_nop
14668 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14669 ac_cxx_werror_flag=yes
14670 ac_cv_prog_cxx_g=no
14671 CXXFLAGS="-g"
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14674
14675 int
14676 main (void)
14677 {
14678
14679 ;
14680 return 0;
14681 }
14682 _ACEOF
14683 if ac_fn_cxx_try_compile "$LINENO"
14684 then :
14685 ac_cv_prog_cxx_g=yes
14686 else $as_nop
14687 CXXFLAGS=""
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690
14691 int
14692 main (void)
14693 {
14694
14695 ;
14696 return 0;
14697 }
14698 _ACEOF
14699 if ac_fn_cxx_try_compile "$LINENO"
14700 then :
14701
14702 else $as_nop
14703 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14704 CXXFLAGS="-g"
14705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706 /* end confdefs.h. */
14707
14708 int
14709 main (void)
14710 {
14711
14712 ;
14713 return 0;
14714 }
14715 _ACEOF
14716 if ac_fn_cxx_try_compile "$LINENO"
14717 then :
14718 ac_cv_prog_cxx_g=yes
14719 fi
14720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14721 fi
14722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14723 fi
14724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14725 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14726 fi
14727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14728 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14729 if test $ac_test_CXXFLAGS; then
14730 CXXFLAGS=$ac_save_CXXFLAGS
14731 elif test $ac_cv_prog_cxx_g = yes; then
14732 if test "$GXX" = yes; then
14733 CXXFLAGS="-g -O2"
14734 else
14735 CXXFLAGS="-g"
14736 fi
14737 else
14738 if test "$GXX" = yes; then
14739 CXXFLAGS="-O2"
14740 else
14741 CXXFLAGS=
14742 fi
14743 fi
14744 ac_prog_cxx_stdcxx=no
14745 if test x$ac_prog_cxx_stdcxx = xno
14746 then :
14747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14748 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14749 if test ${ac_cv_prog_cxx_cxx11+y}
14750 then :
14751 printf %s "(cached) " >&6
14752 else $as_nop
14753 ac_cv_prog_cxx_cxx11=no
14754 ac_save_CXX=$CXX
14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14757 $ac_cxx_conftest_cxx11_program
14758 _ACEOF
14759 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
14760 do
14761 CXX="$ac_save_CXX $ac_arg"
14762 if ac_fn_cxx_try_compile "$LINENO"
14763 then :
14764 ac_cv_prog_cxx_cxx11=$ac_arg
14765 fi
14766 rm -f core conftest.err conftest.$ac_objext conftest.beam
14767 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
14768 done
14769 rm -f conftest.$ac_ext
14770 CXX=$ac_save_CXX
14771 fi
14772
14773 if test "x$ac_cv_prog_cxx_cxx11" = xno
14774 then :
14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14776 printf "%s\n" "unsupported" >&6; }
14777 else $as_nop
14778 if test "x$ac_cv_prog_cxx_cxx11" = x
14779 then :
14780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14781 printf "%s\n" "none needed" >&6; }
14782 else $as_nop
14783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
14784 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
14785 CXX="$CXX $ac_cv_prog_cxx_cxx11"
14786 fi
14787 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
14788 ac_prog_cxx_stdcxx=cxx11
14789 fi
14790 fi
14791 if test x$ac_prog_cxx_stdcxx = xno
14792 then :
14793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
14794 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
14795 if test ${ac_cv_prog_cxx_cxx98+y}
14796 then :
14797 printf %s "(cached) " >&6
14798 else $as_nop
14799 ac_cv_prog_cxx_cxx98=no
14800 ac_save_CXX=$CXX
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14803 $ac_cxx_conftest_cxx98_program
14804 _ACEOF
14805 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
14806 do
14807 CXX="$ac_save_CXX $ac_arg"
14808 if ac_fn_cxx_try_compile "$LINENO"
14809 then :
14810 ac_cv_prog_cxx_cxx98=$ac_arg
14811 fi
14812 rm -f core conftest.err conftest.$ac_objext conftest.beam
14813 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
14814 done
14815 rm -f conftest.$ac_ext
14816 CXX=$ac_save_CXX
14817 fi
14818
14819 if test "x$ac_cv_prog_cxx_cxx98" = xno
14820 then :
14821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14822 printf "%s\n" "unsupported" >&6; }
14823 else $as_nop
14824 if test "x$ac_cv_prog_cxx_cxx98" = x
14825 then :
14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14827 printf "%s\n" "none needed" >&6; }
14828 else $as_nop
14829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
14830 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
14831 CXX="$CXX $ac_cv_prog_cxx_cxx98"
14832 fi
14833 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
14834 ac_prog_cxx_stdcxx=cxx98
14835 fi
14836 fi
14837
14838 ac_ext=c
14839 ac_cpp='$CPP $CPPFLAGS'
14840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14843
14844
14845
14846 func_stripname_cnf ()
14847 {
14848 case $2 in
14849 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14850 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14851 esac
14852 } # func_stripname_cnf
14853
14854 if test -n "$CXX" && ( test no != "$CXX" &&
14855 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14856 (test g++ != "$CXX"))); then
14857 ac_ext=cpp
14858 ac_cpp='$CXXCPP $CPPFLAGS'
14859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14863 printf %s "checking how to run the C++ preprocessor... " >&6; }
14864 if test -z "$CXXCPP"; then
14865 if test ${ac_cv_prog_CXXCPP+y}
14866 then :
14867 printf %s "(cached) " >&6
14868 else $as_nop
14869 # Double quotes because $CXX needs to be expanded
14870 for CXXCPP in "$CXX -E" cpp /lib/cpp
14871 do
14872 ac_preproc_ok=false
14873 for ac_cxx_preproc_warn_flag in '' yes
14874 do
14875 # Use a header file that comes with gcc, so configuring glibc
14876 # with a fresh cross-compiler works.
14877 # On the NeXT, cc -E runs the code through the compiler's parser,
14878 # not just through cpp. "Syntax error" is here to catch this case.
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14881 #include <limits.h>
14882 Syntax error
14883 _ACEOF
14884 if ac_fn_cxx_try_cpp "$LINENO"
14885 then :
14886
14887 else $as_nop
14888 # Broken: fails on valid input.
14889 continue
14890 fi
14891 rm -f conftest.err conftest.i conftest.$ac_ext
14892
14893 # OK, works on sane cases. Now check whether nonexistent headers
14894 # can be detected and how.
14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h. */
14897 #include <ac_nonexistent.h>
14898 _ACEOF
14899 if ac_fn_cxx_try_cpp "$LINENO"
14900 then :
14901 # Broken: success on invalid input.
14902 continue
14903 else $as_nop
14904 # Passes both tests.
14905 ac_preproc_ok=:
14906 break
14907 fi
14908 rm -f conftest.err conftest.i conftest.$ac_ext
14909
14910 done
14911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14912 rm -f conftest.i conftest.err conftest.$ac_ext
14913 if $ac_preproc_ok
14914 then :
14915 break
14916 fi
14917
14918 done
14919 ac_cv_prog_CXXCPP=$CXXCPP
14920
14921 fi
14922 CXXCPP=$ac_cv_prog_CXXCPP
14923 else
14924 ac_cv_prog_CXXCPP=$CXXCPP
14925 fi
14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14927 printf "%s\n" "$CXXCPP" >&6; }
14928 ac_preproc_ok=false
14929 for ac_cxx_preproc_warn_flag in '' yes
14930 do
14931 # Use a header file that comes with gcc, so configuring glibc
14932 # with a fresh cross-compiler works.
14933 # On the NeXT, cc -E runs the code through the compiler's parser,
14934 # not just through cpp. "Syntax error" is here to catch this case.
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14937 #include <limits.h>
14938 Syntax error
14939 _ACEOF
14940 if ac_fn_cxx_try_cpp "$LINENO"
14941 then :
14942
14943 else $as_nop
14944 # Broken: fails on valid input.
14945 continue
14946 fi
14947 rm -f conftest.err conftest.i conftest.$ac_ext
14948
14949 # OK, works on sane cases. Now check whether nonexistent headers
14950 # can be detected and how.
14951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14952 /* end confdefs.h. */
14953 #include <ac_nonexistent.h>
14954 _ACEOF
14955 if ac_fn_cxx_try_cpp "$LINENO"
14956 then :
14957 # Broken: success on invalid input.
14958 continue
14959 else $as_nop
14960 # Passes both tests.
14961 ac_preproc_ok=:
14962 break
14963 fi
14964 rm -f conftest.err conftest.i conftest.$ac_ext
14965
14966 done
14967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14968 rm -f conftest.i conftest.err conftest.$ac_ext
14969 if $ac_preproc_ok
14970 then :
14971
14972 else $as_nop
14973 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14974 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14975 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14976 See \`config.log' for more details" "$LINENO" 5; }
14977 fi
14978
14979 ac_ext=c
14980 ac_cpp='$CPP $CPPFLAGS'
14981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14984
14985 else
14986 _lt_caught_CXX_error=yes
14987 fi
14988
14989 ac_ext=cpp
14990 ac_cpp='$CXXCPP $CPPFLAGS'
14991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14994
14995 archive_cmds_need_lc_CXX=no
14996 allow_undefined_flag_CXX=
14997 always_export_symbols_CXX=no
14998 archive_expsym_cmds_CXX=
14999 compiler_needs_object_CXX=no
15000 export_dynamic_flag_spec_CXX=
15001 hardcode_direct_CXX=no
15002 hardcode_direct_absolute_CXX=no
15003 hardcode_libdir_flag_spec_CXX=
15004 hardcode_libdir_separator_CXX=
15005 hardcode_minus_L_CXX=no
15006 hardcode_shlibpath_var_CXX=unsupported
15007 hardcode_automatic_CXX=no
15008 inherit_rpath_CXX=no
15009 module_cmds_CXX=
15010 module_expsym_cmds_CXX=
15011 link_all_deplibs_CXX=unknown
15012 old_archive_cmds_CXX=$old_archive_cmds
15013 reload_flag_CXX=$reload_flag
15014 reload_cmds_CXX=$reload_cmds
15015 no_undefined_flag_CXX=
15016 whole_archive_flag_spec_CXX=
15017 enable_shared_with_static_runtimes_CXX=no
15018
15019 # Source file extension for C++ test sources.
15020 ac_ext=cpp
15021
15022 # Object file extension for compiled C++ test sources.
15023 objext=o
15024 objext_CXX=$objext
15025
15026 # No sense in running all these tests if we already determined that
15027 # the CXX compiler isn't working. Some variables (like enable_shared)
15028 # are currently assumed to apply to all compilers on this platform,
15029 # and will be corrupted by setting them based on a non-working compiler.
15030 if test yes != "$_lt_caught_CXX_error"; then
15031 # Code to be used in simple compile tests
15032 lt_simple_compile_test_code="int some_variable = 0;"
15033
15034 # Code to be used in simple link tests
15035 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15036
15037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15038
15039
15040
15041
15042
15043
15044 # If no C compiler was specified, use CC.
15045 LTCC=${LTCC-"$CC"}
15046
15047 # If no C compiler flags were specified, use CFLAGS.
15048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15049
15050 # Allow CC to be a program name with arguments.
15051 compiler=$CC
15052
15053
15054 # save warnings/boilerplate of simple test code
15055 ac_outfile=conftest.$ac_objext
15056 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15057 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15058 _lt_compiler_boilerplate=`cat conftest.err`
15059 $RM conftest*
15060
15061 ac_outfile=conftest.$ac_objext
15062 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15063 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15064 _lt_linker_boilerplate=`cat conftest.err`
15065 $RM -r conftest*
15066
15067
15068 # Allow CC to be a program name with arguments.
15069 lt_save_CC=$CC
15070 lt_save_CFLAGS=$CFLAGS
15071 lt_save_LD=$LD
15072 lt_save_GCC=$GCC
15073 GCC=$GXX
15074 lt_save_with_gnu_ld=$with_gnu_ld
15075 lt_save_path_LD=$lt_cv_path_LD
15076 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15077 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15078 else
15079 $as_unset lt_cv_prog_gnu_ld
15080 fi
15081 if test -n "${lt_cv_path_LDCXX+set}"; then
15082 lt_cv_path_LD=$lt_cv_path_LDCXX
15083 else
15084 $as_unset lt_cv_path_LD
15085 fi
15086 test -z "${LDCXX+set}" || LD=$LDCXX
15087 CC=${CXX-"c++"}
15088 CFLAGS=$CXXFLAGS
15089 compiler=$CC
15090 compiler_CXX=$CC
15091 func_cc_basename $compiler
15092 cc_basename=$func_cc_basename_result
15093
15094
15095 if test -n "$compiler"; then
15096 # We don't want -fno-exception when compiling C++ code, so set the
15097 # no_builtin_flag separately
15098 if test yes = "$GXX"; then
15099 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15100 else
15101 lt_prog_compiler_no_builtin_flag_CXX=
15102 fi
15103
15104 if test yes = "$GXX"; then
15105 # Set up default GNU C++ configuration
15106
15107
15108
15109 # Check whether --with-gnu-ld was given.
15110 if test ${with_gnu_ld+y}
15111 then :
15112 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15113 else $as_nop
15114 with_gnu_ld=no
15115 fi
15116
15117 ac_prog=ld
15118 if test yes = "$GCC"; then
15119 # Check if gcc -print-prog-name=ld gives a path.
15120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15121 printf %s "checking for ld used by $CC... " >&6; }
15122 case $host in
15123 *-*-mingw*)
15124 # gcc leaves a trailing carriage return, which upsets mingw
15125 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15126 *)
15127 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15128 esac
15129 case $ac_prog in
15130 # Accept absolute paths.
15131 [\\/]* | ?:[\\/]*)
15132 re_direlt='/[^/][^/]*/\.\./'
15133 # Canonicalize the pathname of ld
15134 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15135 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15136 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15137 done
15138 test -z "$LD" && LD=$ac_prog
15139 ;;
15140 "")
15141 # If it fails, then pretend we aren't using GCC.
15142 ac_prog=ld
15143 ;;
15144 *)
15145 # If it is relative, then search for the first ld in PATH.
15146 with_gnu_ld=unknown
15147 ;;
15148 esac
15149 elif test yes = "$with_gnu_ld"; then
15150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15151 printf %s "checking for GNU ld... " >&6; }
15152 else
15153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15154 printf %s "checking for non-GNU ld... " >&6; }
15155 fi
15156 if test ${lt_cv_path_LD+y}
15157 then :
15158 printf %s "(cached) " >&6
15159 else $as_nop
15160 if test -z "$LD"; then
15161 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15162 for ac_dir in $PATH; do
15163 IFS=$lt_save_ifs
15164 test -z "$ac_dir" && ac_dir=.
15165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15166 lt_cv_path_LD=$ac_dir/$ac_prog
15167 # Check to see if the program is GNU ld. I'd rather use --version,
15168 # but apparently some variants of GNU ld only accept -v.
15169 # Break only if it was the GNU/non-GNU ld that we prefer.
15170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15171 *GNU* | *'with BFD'*)
15172 test no != "$with_gnu_ld" && break
15173 ;;
15174 *)
15175 test yes != "$with_gnu_ld" && break
15176 ;;
15177 esac
15178 fi
15179 done
15180 IFS=$lt_save_ifs
15181 else
15182 lt_cv_path_LD=$LD # Let the user override the test with a path.
15183 fi
15184 fi
15185
15186 LD=$lt_cv_path_LD
15187 if test -n "$LD"; then
15188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15189 printf "%s\n" "$LD" >&6; }
15190 else
15191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15192 printf "%s\n" "no" >&6; }
15193 fi
15194 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15196 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15197 if test ${lt_cv_prog_gnu_ld+y}
15198 then :
15199 printf %s "(cached) " >&6
15200 else $as_nop
15201 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15202 case `$LD -v 2>&1 </dev/null` in
15203 *GNU* | *'with BFD'*)
15204 lt_cv_prog_gnu_ld=yes
15205 ;;
15206 *)
15207 lt_cv_prog_gnu_ld=no
15208 ;;
15209 esac
15210 fi
15211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15212 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15213 with_gnu_ld=$lt_cv_prog_gnu_ld
15214
15215
15216
15217
15218
15219
15220
15221 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15222 # archiving commands below assume that GNU ld is being used.
15223 if test yes = "$with_gnu_ld"; then
15224 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15225 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'
15226
15227 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15228 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15229
15230 # If archive_cmds runs LD, not CC, wlarc should be empty
15231 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15232 # investigate it a little bit more. (MM)
15233 wlarc='$wl'
15234
15235 # ancient GNU ld didn't support --whole-archive et. al.
15236 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15237 $GREP 'no-whole-archive' > /dev/null; then
15238 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15239 else
15240 whole_archive_flag_spec_CXX=
15241 fi
15242 else
15243 with_gnu_ld=no
15244 wlarc=
15245
15246 # A generic and very simple default shared library creation
15247 # command for GNU C++ for the case where it uses the native
15248 # linker, instead of GNU ld. If possible, this setting should
15249 # overridden to take advantage of the native linker features on
15250 # the platform it is being used on.
15251 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15252 fi
15253
15254 # Commands to make compiler produce verbose output that lists
15255 # what "hidden" libraries, object files and flags are used when
15256 # linking a shared library.
15257 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15258
15259 else
15260 GXX=no
15261 with_gnu_ld=no
15262 wlarc=
15263 fi
15264
15265 # PORTME: fill in a description of your system's C++ link characteristics
15266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15267 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15268 ld_shlibs_CXX=yes
15269 case $host_os in
15270 aix3*)
15271 # FIXME: insert proper C++ library support
15272 ld_shlibs_CXX=no
15273 ;;
15274 aix[4-9]*)
15275 if test ia64 = "$host_cpu"; then
15276 # On IA64, the linker does run time linking by default, so we don't
15277 # have to do anything special.
15278 aix_use_runtimelinking=no
15279 exp_sym_flag='-Bexport'
15280 no_entry_flag=
15281 else
15282 aix_use_runtimelinking=no
15283
15284 # Test if we are trying to use run time linking or normal
15285 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15286 # have runtime linking enabled, and use it for executables.
15287 # For shared libraries, we enable/disable runtime linking
15288 # depending on the kind of the shared library created -
15289 # when "with_aix_soname,aix_use_runtimelinking" is:
15290 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15291 # "aix,yes" lib.so shared, rtl:yes, for executables
15292 # lib.a static archive
15293 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15294 # lib.a(lib.so.V) shared, rtl:no, for executables
15295 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15296 # lib.a(lib.so.V) shared, rtl:no
15297 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15298 # lib.a static archive
15299 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15300 for ld_flag in $LDFLAGS; do
15301 case $ld_flag in
15302 *-brtl*)
15303 aix_use_runtimelinking=yes
15304 break
15305 ;;
15306 esac
15307 done
15308 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15309 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15310 # so we don't have lib.a shared libs to link our executables.
15311 # We have to force runtime linking in this case.
15312 aix_use_runtimelinking=yes
15313 LDFLAGS="$LDFLAGS -Wl,-brtl"
15314 fi
15315 ;;
15316 esac
15317
15318 exp_sym_flag='-bexport'
15319 no_entry_flag='-bnoentry'
15320 fi
15321
15322 # When large executables or shared objects are built, AIX ld can
15323 # have problems creating the table of contents. If linking a library
15324 # or program results in "error TOC overflow" add -mminimal-toc to
15325 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15326 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15327
15328 archive_cmds_CXX=''
15329 hardcode_direct_CXX=yes
15330 hardcode_direct_absolute_CXX=yes
15331 hardcode_libdir_separator_CXX=':'
15332 link_all_deplibs_CXX=yes
15333 file_list_spec_CXX='$wl-f,'
15334 case $with_aix_soname,$aix_use_runtimelinking in
15335 aix,*) ;; # no import file
15336 svr4,* | *,yes) # use import file
15337 # The Import File defines what to hardcode.
15338 hardcode_direct_CXX=no
15339 hardcode_direct_absolute_CXX=no
15340 ;;
15341 esac
15342
15343 if test yes = "$GXX"; then
15344 case $host_os in aix4.[012]|aix4.[012].*)
15345 # We only want to do this on AIX 4.2 and lower, the check
15346 # below for broken collect2 doesn't work under 4.3+
15347 collect2name=`$CC -print-prog-name=collect2`
15348 if test -f "$collect2name" &&
15349 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15350 then
15351 # We have reworked collect2
15352 :
15353 else
15354 # We have old collect2
15355 hardcode_direct_CXX=unsupported
15356 # It fails to find uninstalled libraries when the uninstalled
15357 # path is not listed in the libpath. Setting hardcode_minus_L
15358 # to unsupported forces relinking
15359 hardcode_minus_L_CXX=yes
15360 hardcode_libdir_flag_spec_CXX='-L$libdir'
15361 hardcode_libdir_separator_CXX=
15362 fi
15363 esac
15364 shared_flag='-shared'
15365 if test yes = "$aix_use_runtimelinking"; then
15366 shared_flag=$shared_flag' $wl-G'
15367 fi
15368 # Need to ensure runtime linking is disabled for the traditional
15369 # shared library, or the linker may eventually find shared libraries
15370 # /with/ Import File - we do not want to mix them.
15371 shared_flag_aix='-shared'
15372 shared_flag_svr4='-shared $wl-G'
15373 else
15374 # not using gcc
15375 if test ia64 = "$host_cpu"; then
15376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15377 # chokes on -Wl,-G. The following line is correct:
15378 shared_flag='-G'
15379 else
15380 if test yes = "$aix_use_runtimelinking"; then
15381 shared_flag='$wl-G'
15382 else
15383 shared_flag='$wl-bM:SRE'
15384 fi
15385 shared_flag_aix='$wl-bM:SRE'
15386 shared_flag_svr4='$wl-G'
15387 fi
15388 fi
15389
15390 export_dynamic_flag_spec_CXX='$wl-bexpall'
15391 # It seems that -bexpall does not export symbols beginning with
15392 # underscore (_), so it is better to generate a list of symbols to
15393 # export.
15394 always_export_symbols_CXX=yes
15395 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15396 # Warning - without using the other runtime loading flags (-brtl),
15397 # -berok will link without error, but may produce a broken library.
15398 # The "-G" linker flag allows undefined symbols.
15399 no_undefined_flag_CXX='-bernotok'
15400 # Determine the default libpath from the value encoded in an empty
15401 # executable.
15402 if test set = "${lt_cv_aix_libpath+set}"; then
15403 aix_libpath=$lt_cv_aix_libpath
15404 else
15405 if test ${lt_cv_aix_libpath__CXX+y}
15406 then :
15407 printf %s "(cached) " >&6
15408 else $as_nop
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411
15412 int
15413 main (void)
15414 {
15415
15416 ;
15417 return 0;
15418 }
15419 _ACEOF
15420 if ac_fn_cxx_try_link "$LINENO"
15421 then :
15422
15423 lt_aix_libpath_sed='
15424 /Import File Strings/,/^$/ {
15425 /^0/ {
15426 s/^0 *\([^ ]*\) *$/\1/
15427 p
15428 }
15429 }'
15430 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15431 # Check for a 64-bit object if we didn't find anything.
15432 if test -z "$lt_cv_aix_libpath__CXX"; then
15433 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15434 fi
15435 fi
15436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15437 conftest$ac_exeext conftest.$ac_ext
15438 if test -z "$lt_cv_aix_libpath__CXX"; then
15439 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15440 fi
15441
15442 fi
15443
15444 aix_libpath=$lt_cv_aix_libpath__CXX
15445 fi
15446
15447 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15448
15449 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
15450 else
15451 if test ia64 = "$host_cpu"; then
15452 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15453 allow_undefined_flag_CXX="-z nodefs"
15454 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"
15455 else
15456 # Determine the default libpath from the value encoded in an
15457 # empty executable.
15458 if test set = "${lt_cv_aix_libpath+set}"; then
15459 aix_libpath=$lt_cv_aix_libpath
15460 else
15461 if test ${lt_cv_aix_libpath__CXX+y}
15462 then :
15463 printf %s "(cached) " >&6
15464 else $as_nop
15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15467
15468 int
15469 main (void)
15470 {
15471
15472 ;
15473 return 0;
15474 }
15475 _ACEOF
15476 if ac_fn_cxx_try_link "$LINENO"
15477 then :
15478
15479 lt_aix_libpath_sed='
15480 /Import File Strings/,/^$/ {
15481 /^0/ {
15482 s/^0 *\([^ ]*\) *$/\1/
15483 p
15484 }
15485 }'
15486 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15487 # Check for a 64-bit object if we didn't find anything.
15488 if test -z "$lt_cv_aix_libpath__CXX"; then
15489 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15490 fi
15491 fi
15492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15493 conftest$ac_exeext conftest.$ac_ext
15494 if test -z "$lt_cv_aix_libpath__CXX"; then
15495 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15496 fi
15497
15498 fi
15499
15500 aix_libpath=$lt_cv_aix_libpath__CXX
15501 fi
15502
15503 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15504 # Warning - without using the other run time loading flags,
15505 # -berok will link without error, but may produce a broken library.
15506 no_undefined_flag_CXX=' $wl-bernotok'
15507 allow_undefined_flag_CXX=' $wl-berok'
15508 if test yes = "$with_gnu_ld"; then
15509 # We only use this code for GNU lds that support --whole-archive.
15510 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15511 else
15512 # Exported symbols can be pulled into shared objects from archives
15513 whole_archive_flag_spec_CXX='$convenience'
15514 fi
15515 archive_cmds_need_lc_CXX=yes
15516 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15517 # -brtl affects multiple linker settings, -berok does not and is overridden later
15518 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15519 if test svr4 != "$with_aix_soname"; then
15520 # This is similar to how AIX traditionally builds its shared
15521 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15522 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'
15523 fi
15524 if test aix != "$with_aix_soname"; then
15525 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'
15526 else
15527 # used by -dlpreopen to get the symbols
15528 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15529 fi
15530 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15531 fi
15532 fi
15533 ;;
15534
15535 beos*)
15536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15537 allow_undefined_flag_CXX=unsupported
15538 # Joseph Beckenbach <[email protected]> says some releases of gcc
15539 # support --undefined. This deserves some investigation. FIXME
15540 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15541 else
15542 ld_shlibs_CXX=no
15543 fi
15544 ;;
15545
15546 chorus*)
15547 case $cc_basename in
15548 *)
15549 # FIXME: insert proper C++ library support
15550 ld_shlibs_CXX=no
15551 ;;
15552 esac
15553 ;;
15554
15555 cygwin* | mingw* | pw32* | cegcc*)
15556 case $GXX,$cc_basename in
15557 ,cl* | no,cl* | ,icl* | no,icl*)
15558 # Native MSVC or ICC
15559 # hardcode_libdir_flag_spec is actually meaningless, as there is
15560 # no search path for DLLs.
15561 hardcode_libdir_flag_spec_CXX=' '
15562 allow_undefined_flag_CXX=unsupported
15563 always_export_symbols_CXX=yes
15564 file_list_spec_CXX='@'
15565 # Tell ltmain to make .lib files, not .a files.
15566 libext=lib
15567 # Tell ltmain to make .dll files, not .so files.
15568 shrext_cmds=.dll
15569 # FIXME: Setting linknames here is a bad hack.
15570 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15571 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15572 cp "$export_symbols" "$output_objdir/$soname.def";
15573 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15574 else
15575 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15576 fi~
15577 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15578 linknames='
15579 # The linker will not automatically build a static lib if we build a DLL.
15580 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15581 enable_shared_with_static_runtimes_CXX=yes
15582 # Don't use ranlib
15583 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15584 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15585 lt_tool_outputfile="@TOOL_OUTPUT@"~
15586 case $lt_outputfile in
15587 *.exe|*.EXE) ;;
15588 *)
15589 lt_outputfile=$lt_outputfile.exe
15590 lt_tool_outputfile=$lt_tool_outputfile.exe
15591 ;;
15592 esac~
15593 func_to_tool_file "$lt_outputfile"~
15594 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15595 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15596 $RM "$lt_outputfile.manifest";
15597 fi'
15598 ;;
15599 *)
15600 # g++
15601 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15602 # as there is no search path for DLLs.
15603 hardcode_libdir_flag_spec_CXX='-L$libdir'
15604 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15605 allow_undefined_flag_CXX=unsupported
15606 always_export_symbols_CXX=no
15607 enable_shared_with_static_runtimes_CXX=yes
15608
15609 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15610 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'
15611 # If the export-symbols file already is a .def file, use it as
15612 # is; otherwise, prepend EXPORTS...
15613 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15614 cp $export_symbols $output_objdir/$soname.def;
15615 else
15616 echo EXPORTS > $output_objdir/$soname.def;
15617 cat $export_symbols >> $output_objdir/$soname.def;
15618 fi~
15619 $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'
15620 else
15621 ld_shlibs_CXX=no
15622 fi
15623 ;;
15624 esac
15625 ;;
15626 darwin* | rhapsody*)
15627
15628
15629 archive_cmds_need_lc_CXX=no
15630 hardcode_direct_CXX=no
15631 hardcode_automatic_CXX=yes
15632 hardcode_shlibpath_var_CXX=unsupported
15633 if test yes = "$lt_cv_ld_force_load"; then
15634 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\"`'
15635
15636 else
15637 whole_archive_flag_spec_CXX=''
15638 fi
15639 link_all_deplibs_CXX=yes
15640 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15641 case $cc_basename in
15642 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15643 *) _lt_dar_can_shared=$GCC ;;
15644 esac
15645 if test yes = "$_lt_dar_can_shared"; then
15646 output_verbose_link_cmd=func_echo_all
15647 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"
15648 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15649 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"
15650 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"
15651 if test yes != "$lt_cv_apple_cc_single_mod"; then
15652 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"
15653 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"
15654 fi
15655
15656 else
15657 ld_shlibs_CXX=no
15658 fi
15659
15660 ;;
15661
15662 os2*)
15663 hardcode_libdir_flag_spec_CXX='-L$libdir'
15664 hardcode_minus_L_CXX=yes
15665 allow_undefined_flag_CXX=unsupported
15666 shrext_cmds=.dll
15667 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15668 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15669 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15670 $ECHO EXPORTS >> $output_objdir/$libname.def~
15671 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15672 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15673 emximp -o $lib $output_objdir/$libname.def'
15674 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15675 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15676 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15677 $ECHO EXPORTS >> $output_objdir/$libname.def~
15678 prefix_cmds="$SED"~
15679 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15680 prefix_cmds="$prefix_cmds -e 1d";
15681 fi~
15682 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15683 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15684 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15685 emximp -o $lib $output_objdir/$libname.def'
15686 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15687 enable_shared_with_static_runtimes_CXX=yes
15688 file_list_spec_CXX='@'
15689 ;;
15690
15691 dgux*)
15692 case $cc_basename in
15693 ec++*)
15694 # FIXME: insert proper C++ library support
15695 ld_shlibs_CXX=no
15696 ;;
15697 ghcx*)
15698 # Green Hills C++ Compiler
15699 # FIXME: insert proper C++ library support
15700 ld_shlibs_CXX=no
15701 ;;
15702 *)
15703 # FIXME: insert proper C++ library support
15704 ld_shlibs_CXX=no
15705 ;;
15706 esac
15707 ;;
15708
15709 freebsd2.*)
15710 # C++ shared libraries reported to be fairly broken before
15711 # switch to ELF
15712 ld_shlibs_CXX=no
15713 ;;
15714
15715 freebsd-elf*)
15716 archive_cmds_need_lc_CXX=no
15717 ;;
15718
15719 freebsd* | dragonfly* | midnightbsd*)
15720 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15721 # conventions
15722 ld_shlibs_CXX=yes
15723 ;;
15724
15725 haiku*)
15726 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15727 link_all_deplibs_CXX=yes
15728 ;;
15729
15730 hpux9*)
15731 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15732 hardcode_libdir_separator_CXX=:
15733 export_dynamic_flag_spec_CXX='$wl-E'
15734 hardcode_direct_CXX=yes
15735 hardcode_minus_L_CXX=yes # Not in the search PATH,
15736 # but as the default
15737 # location of the library.
15738
15739 case $cc_basename in
15740 CC*)
15741 # FIXME: insert proper C++ library support
15742 ld_shlibs_CXX=no
15743 ;;
15744 aCC*)
15745 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'
15746 # Commands to make compiler produce verbose output that lists
15747 # what "hidden" libraries, object files and flags are used when
15748 # linking a shared library.
15749 #
15750 # There doesn't appear to be a way to prevent this compiler from
15751 # explicitly linking system object files so we need to strip them
15752 # from the output so that they don't get included in the library
15753 # dependencies.
15754 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"'
15755 ;;
15756 *)
15757 if test yes = "$GXX"; then
15758 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'
15759 else
15760 # FIXME: insert proper C++ library support
15761 ld_shlibs_CXX=no
15762 fi
15763 ;;
15764 esac
15765 ;;
15766
15767 hpux10*|hpux11*)
15768 if test no = "$with_gnu_ld"; then
15769 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15770 hardcode_libdir_separator_CXX=:
15771
15772 case $host_cpu in
15773 hppa*64*|ia64*)
15774 ;;
15775 *)
15776 export_dynamic_flag_spec_CXX='$wl-E'
15777 ;;
15778 esac
15779 fi
15780 case $host_cpu in
15781 hppa*64*|ia64*)
15782 hardcode_direct_CXX=no
15783 hardcode_shlibpath_var_CXX=no
15784 ;;
15785 *)
15786 hardcode_direct_CXX=yes
15787 hardcode_direct_absolute_CXX=yes
15788 hardcode_minus_L_CXX=yes # Not in the search PATH,
15789 # but as the default
15790 # location of the library.
15791 ;;
15792 esac
15793
15794 case $cc_basename in
15795 CC*)
15796 # FIXME: insert proper C++ library support
15797 ld_shlibs_CXX=no
15798 ;;
15799 aCC*)
15800 case $host_cpu in
15801 hppa*64*)
15802 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15803 ;;
15804 ia64*)
15805 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15806 ;;
15807 *)
15808 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15809 ;;
15810 esac
15811 # Commands to make compiler produce verbose output that lists
15812 # what "hidden" libraries, object files and flags are used when
15813 # linking a shared library.
15814 #
15815 # There doesn't appear to be a way to prevent this compiler from
15816 # explicitly linking system object files so we need to strip them
15817 # from the output so that they don't get included in the library
15818 # dependencies.
15819 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"'
15820 ;;
15821 *)
15822 if test yes = "$GXX"; then
15823 if test no = "$with_gnu_ld"; then
15824 case $host_cpu in
15825 hppa*64*)
15826 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15827 ;;
15828 ia64*)
15829 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15830 ;;
15831 *)
15832 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'
15833 ;;
15834 esac
15835 fi
15836 else
15837 # FIXME: insert proper C++ library support
15838 ld_shlibs_CXX=no
15839 fi
15840 ;;
15841 esac
15842 ;;
15843
15844 interix[3-9]*)
15845 hardcode_direct_CXX=no
15846 hardcode_shlibpath_var_CXX=no
15847 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15848 export_dynamic_flag_spec_CXX='$wl-E'
15849 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15850 # Instead, shared libraries are loaded at an image base (0x10000000 by
15851 # default) and relocated if they conflict, which is a slow very memory
15852 # consuming and fragmenting process. To avoid this, we pick a random,
15853 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15854 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15855 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'
15856 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'
15857 ;;
15858 irix5* | irix6*)
15859 case $cc_basename in
15860 CC*)
15861 # SGI C++
15862 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'
15863
15864 # Archives containing C++ object files must be created using
15865 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15866 # necessary to make sure instantiated templates are included
15867 # in the archive.
15868 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15869 ;;
15870 *)
15871 if test yes = "$GXX"; then
15872 if test no = "$with_gnu_ld"; then
15873 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'
15874 else
15875 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'
15876 fi
15877 fi
15878 link_all_deplibs_CXX=yes
15879 ;;
15880 esac
15881 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15882 hardcode_libdir_separator_CXX=:
15883 inherit_rpath_CXX=yes
15884 ;;
15885
15886 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15887 case $cc_basename in
15888 KCC*)
15889 # Kuck and Associates, Inc. (KAI) C++ Compiler
15890
15891 # KCC will only create a shared library if the output file
15892 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15893 # to its proper name (with version) after linking.
15894 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'
15895 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'
15896 # Commands to make compiler produce verbose output that lists
15897 # what "hidden" libraries, object files and flags are used when
15898 # linking a shared library.
15899 #
15900 # There doesn't appear to be a way to prevent this compiler from
15901 # explicitly linking system object files so we need to strip them
15902 # from the output so that they don't get included in the library
15903 # dependencies.
15904 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"'
15905
15906 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15907 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15908
15909 # Archives containing C++ object files must be created using
15910 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15911 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15912 ;;
15913 icpc* | ecpc* )
15914 # Intel C++
15915 with_gnu_ld=yes
15916 # version 8.0 and above of icpc choke on multiply defined symbols
15917 # if we add $predep_objects and $postdep_objects, however 7.1 and
15918 # earlier do not add the objects themselves.
15919 case `$CC -V 2>&1` in
15920 *"Version 7."*)
15921 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15922 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'
15923 ;;
15924 *) # Version 8.0 or newer
15925 tmp_idyn=
15926 case $host_cpu in
15927 ia64*) tmp_idyn=' -i_dynamic';;
15928 esac
15929 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15930 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'
15931 ;;
15932 esac
15933 archive_cmds_need_lc_CXX=no
15934 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15935 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15936 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15937 ;;
15938 pgCC* | pgcpp*)
15939 # Portland Group C++ compiler
15940 case `$CC -V` in
15941 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15942 prelink_cmds_CXX='tpldir=Template.dir~
15943 rm -rf $tpldir~
15944 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15945 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15946 old_archive_cmds_CXX='tpldir=Template.dir~
15947 rm -rf $tpldir~
15948 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15949 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15950 $RANLIB $oldlib'
15951 archive_cmds_CXX='tpldir=Template.dir~
15952 rm -rf $tpldir~
15953 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15954 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15955 archive_expsym_cmds_CXX='tpldir=Template.dir~
15956 rm -rf $tpldir~
15957 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15958 $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'
15959 ;;
15960 *) # Version 6 and above use weak symbols
15961 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15962 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'
15963 ;;
15964 esac
15965
15966 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15967 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15968 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'
15969 ;;
15970 cxx*)
15971 # Compaq C++
15972 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15973 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'
15974
15975 runpath_var=LD_RUN_PATH
15976 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15977 hardcode_libdir_separator_CXX=:
15978
15979 # Commands to make compiler produce verbose output that lists
15980 # what "hidden" libraries, object files and flags are used when
15981 # linking a shared library.
15982 #
15983 # There doesn't appear to be a way to prevent this compiler from
15984 # explicitly linking system object files so we need to strip them
15985 # from the output so that they don't get included in the library
15986 # dependencies.
15987 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'
15988 ;;
15989 xl* | mpixl* | bgxl*)
15990 # IBM XL 8.0 on PPC, with GNU ld
15991 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15992 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15993 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15994 if test yes = "$supports_anon_versioning"; then
15995 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15996 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15997 echo "local: *; };" >> $output_objdir/$libname.ver~
15998 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15999 fi
16000 ;;
16001 *)
16002 case `$CC -V 2>&1 | $SED 5q` in
16003 *Sun\ C*)
16004 # Sun C++ 5.9
16005 no_undefined_flag_CXX=' -zdefs'
16006 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16007 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'
16008 hardcode_libdir_flag_spec_CXX='-R$libdir'
16009 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'
16010 compiler_needs_object_CXX=yes
16011
16012 # Not sure whether something based on
16013 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16014 # would be better.
16015 output_verbose_link_cmd='func_echo_all'
16016
16017 # Archives containing C++ object files must be created using
16018 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16019 # necessary to make sure instantiated templates are included
16020 # in the archive.
16021 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16022 ;;
16023 esac
16024 ;;
16025 esac
16026 ;;
16027
16028 lynxos*)
16029 # FIXME: insert proper C++ library support
16030 ld_shlibs_CXX=no
16031 ;;
16032
16033 m88k*)
16034 # FIXME: insert proper C++ library support
16035 ld_shlibs_CXX=no
16036 ;;
16037
16038 mvs*)
16039 case $cc_basename in
16040 cxx*)
16041 # FIXME: insert proper C++ library support
16042 ld_shlibs_CXX=no
16043 ;;
16044 *)
16045 # FIXME: insert proper C++ library support
16046 ld_shlibs_CXX=no
16047 ;;
16048 esac
16049 ;;
16050
16051 netbsd*)
16052 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16053 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16054 wlarc=
16055 hardcode_libdir_flag_spec_CXX='-R$libdir'
16056 hardcode_direct_CXX=yes
16057 hardcode_shlibpath_var_CXX=no
16058 fi
16059 # Workaround some broken pre-1.5 toolchains
16060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16061 ;;
16062
16063 *nto* | *qnx*)
16064 ld_shlibs_CXX=yes
16065 ;;
16066
16067 openbsd* | bitrig*)
16068 if test -f /usr/libexec/ld.so; then
16069 hardcode_direct_CXX=yes
16070 hardcode_shlibpath_var_CXX=no
16071 hardcode_direct_absolute_CXX=yes
16072 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16073 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16074 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16075 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16076 export_dynamic_flag_spec_CXX='$wl-E'
16077 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16078 fi
16079 output_verbose_link_cmd=func_echo_all
16080 else
16081 ld_shlibs_CXX=no
16082 fi
16083 ;;
16084
16085 osf3* | osf4* | osf5*)
16086 case $cc_basename in
16087 KCC*)
16088 # Kuck and Associates, Inc. (KAI) C++ Compiler
16089
16090 # KCC will only create a shared library if the output file
16091 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16092 # to its proper name (with version) after linking.
16093 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'
16094
16095 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16096 hardcode_libdir_separator_CXX=:
16097
16098 # Archives containing C++ object files must be created using
16099 # the KAI C++ compiler.
16100 case $host in
16101 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16102 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16103 esac
16104 ;;
16105 RCC*)
16106 # Rational C++ 2.4.1
16107 # FIXME: insert proper C++ library support
16108 ld_shlibs_CXX=no
16109 ;;
16110 cxx*)
16111 case $host in
16112 osf3*)
16113 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16114 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'
16115 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16116 ;;
16117 *)
16118 allow_undefined_flag_CXX=' -expect_unresolved \*'
16119 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'
16120 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16121 echo "-hidden">> $lib.exp~
16122 $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~
16123 $RM $lib.exp'
16124 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16125 ;;
16126 esac
16127
16128 hardcode_libdir_separator_CXX=:
16129
16130 # Commands to make compiler produce verbose output that lists
16131 # what "hidden" libraries, object files and flags are used when
16132 # linking a shared library.
16133 #
16134 # There doesn't appear to be a way to prevent this compiler from
16135 # explicitly linking system object files so we need to strip them
16136 # from the output so that they don't get included in the library
16137 # dependencies.
16138 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"'
16139 ;;
16140 *)
16141 if test yes,no = "$GXX,$with_gnu_ld"; then
16142 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16143 case $host in
16144 osf3*)
16145 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'
16146 ;;
16147 *)
16148 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'
16149 ;;
16150 esac
16151
16152 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16153 hardcode_libdir_separator_CXX=:
16154
16155 # Commands to make compiler produce verbose output that lists
16156 # what "hidden" libraries, object files and flags are used when
16157 # linking a shared library.
16158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16159
16160 else
16161 # FIXME: insert proper C++ library support
16162 ld_shlibs_CXX=no
16163 fi
16164 ;;
16165 esac
16166 ;;
16167
16168 psos*)
16169 # FIXME: insert proper C++ library support
16170 ld_shlibs_CXX=no
16171 ;;
16172
16173 sunos4*)
16174 case $cc_basename in
16175 CC*)
16176 # Sun C++ 4.x
16177 # FIXME: insert proper C++ library support
16178 ld_shlibs_CXX=no
16179 ;;
16180 lcc*)
16181 # Lucid
16182 # FIXME: insert proper C++ library support
16183 ld_shlibs_CXX=no
16184 ;;
16185 *)
16186 # FIXME: insert proper C++ library support
16187 ld_shlibs_CXX=no
16188 ;;
16189 esac
16190 ;;
16191
16192 solaris*)
16193 case $cc_basename in
16194 CC* | sunCC*)
16195 # Sun C++ 4.2, 5.x and Centerline C++
16196 archive_cmds_need_lc_CXX=yes
16197 no_undefined_flag_CXX=' -zdefs'
16198 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16199 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16200 $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'
16201
16202 hardcode_libdir_flag_spec_CXX='-R$libdir'
16203 hardcode_shlibpath_var_CXX=no
16204 case $host_os in
16205 solaris2.[0-5] | solaris2.[0-5].*) ;;
16206 *)
16207 # The compiler driver will combine and reorder linker options,
16208 # but understands '-z linker_flag'.
16209 # Supported since Solaris 2.6 (maybe 2.5.1?)
16210 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16211 ;;
16212 esac
16213 link_all_deplibs_CXX=yes
16214
16215 output_verbose_link_cmd='func_echo_all'
16216
16217 # Archives containing C++ object files must be created using
16218 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16219 # necessary to make sure instantiated templates are included
16220 # in the archive.
16221 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16222 ;;
16223 gcx*)
16224 # Green Hills C++ Compiler
16225 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16226
16227 # The C++ compiler must be used to create the archive.
16228 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16229 ;;
16230 *)
16231 # GNU C++ compiler with Solaris linker
16232 if test yes,no = "$GXX,$with_gnu_ld"; then
16233 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16234 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16235 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16236 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16237 $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'
16238
16239 # Commands to make compiler produce verbose output that lists
16240 # what "hidden" libraries, object files and flags are used when
16241 # linking a shared library.
16242 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16243 else
16244 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16245 # platform.
16246 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16247 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16248 $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'
16249
16250 # Commands to make compiler produce verbose output that lists
16251 # what "hidden" libraries, object files and flags are used when
16252 # linking a shared library.
16253 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16254 fi
16255
16256 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16257 case $host_os in
16258 solaris2.[0-5] | solaris2.[0-5].*) ;;
16259 *)
16260 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16261 ;;
16262 esac
16263 fi
16264 ;;
16265 esac
16266 ;;
16267
16268 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16269 no_undefined_flag_CXX='$wl-z,text'
16270 archive_cmds_need_lc_CXX=no
16271 hardcode_shlibpath_var_CXX=no
16272 runpath_var='LD_RUN_PATH'
16273
16274 case $cc_basename in
16275 CC*)
16276 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16277 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16278 ;;
16279 *)
16280 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16281 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16282 ;;
16283 esac
16284 ;;
16285
16286 sysv5* | sco3.2v5* | sco5v6*)
16287 # Note: We CANNOT use -z defs as we might desire, because we do not
16288 # link with -lc, and that would cause any symbols used from libc to
16289 # always be unresolved, which means just about no library would
16290 # ever link correctly. If we're not using GNU ld we use -z text
16291 # though, which does catch some bad symbols but isn't as heavy-handed
16292 # as -z defs.
16293 no_undefined_flag_CXX='$wl-z,text'
16294 allow_undefined_flag_CXX='$wl-z,nodefs'
16295 archive_cmds_need_lc_CXX=no
16296 hardcode_shlibpath_var_CXX=no
16297 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16298 hardcode_libdir_separator_CXX=':'
16299 link_all_deplibs_CXX=yes
16300 export_dynamic_flag_spec_CXX='$wl-Bexport'
16301 runpath_var='LD_RUN_PATH'
16302
16303 case $cc_basename in
16304 CC*)
16305 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16306 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16307 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16308 '"$old_archive_cmds_CXX"
16309 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16310 '"$reload_cmds_CXX"
16311 ;;
16312 *)
16313 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16314 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16315 ;;
16316 esac
16317 ;;
16318
16319 tandem*)
16320 case $cc_basename in
16321 NCC*)
16322 # NonStop-UX NCC 3.20
16323 # FIXME: insert proper C++ library support
16324 ld_shlibs_CXX=no
16325 ;;
16326 *)
16327 # FIXME: insert proper C++ library support
16328 ld_shlibs_CXX=no
16329 ;;
16330 esac
16331 ;;
16332
16333 vxworks*)
16334 # FIXME: insert proper C++ library support
16335 ld_shlibs_CXX=no
16336 ;;
16337
16338 *)
16339 # FIXME: insert proper C++ library support
16340 ld_shlibs_CXX=no
16341 ;;
16342 esac
16343
16344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16345 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16346 test no = "$ld_shlibs_CXX" && can_build_shared=no
16347
16348 GCC_CXX=$GXX
16349 LD_CXX=$LD
16350
16351 ## CAVEAT EMPTOR:
16352 ## There is no encapsulation within the following macros, do not change
16353 ## the running order or otherwise move them around unless you know exactly
16354 ## what you are doing...
16355 # Dependencies to place before and after the object being linked:
16356 predep_objects_CXX=
16357 postdep_objects_CXX=
16358 predeps_CXX=
16359 postdeps_CXX=
16360 compiler_lib_search_path_CXX=
16361
16362 cat > conftest.$ac_ext <<_LT_EOF
16363 class Foo
16364 {
16365 public:
16366 Foo (void) { a = 0; }
16367 private:
16368 int a;
16369 };
16370 _LT_EOF
16371
16372
16373 _lt_libdeps_save_CFLAGS=$CFLAGS
16374 case "$CC $CFLAGS " in #(
16375 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16376 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16377 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16378 esac
16379
16380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16381 (eval $ac_compile) 2>&5
16382 ac_status=$?
16383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16384 test $ac_status = 0; }; then
16385 # Parse the compiler output and extract the necessary
16386 # objects, libraries and library flags.
16387
16388 # Sentinel used to keep track of whether or not we are before
16389 # the conftest object file.
16390 pre_test_object_deps_done=no
16391
16392 for p in `eval "$output_verbose_link_cmd"`; do
16393 case $prev$p in
16394
16395 -L* | -R* | -l*)
16396 # Some compilers place space between "-{L,R}" and the path.
16397 # Remove the space.
16398 if test x-L = "$p" ||
16399 test x-R = "$p"; then
16400 prev=$p
16401 continue
16402 fi
16403
16404 # Expand the sysroot to ease extracting the directories later.
16405 if test -z "$prev"; then
16406 case $p in
16407 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16408 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16409 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16410 esac
16411 fi
16412 case $p in
16413 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16414 esac
16415 if test no = "$pre_test_object_deps_done"; then
16416 case $prev in
16417 -L | -R)
16418 # Internal compiler library paths should come after those
16419 # provided the user. The postdeps already come after the
16420 # user supplied libs so there is no need to process them.
16421 if test -z "$compiler_lib_search_path_CXX"; then
16422 compiler_lib_search_path_CXX=$prev$p
16423 else
16424 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16425 fi
16426 ;;
16427 # The "-l" case would never come before the object being
16428 # linked, so don't bother handling this case.
16429 esac
16430 else
16431 if test -z "$postdeps_CXX"; then
16432 postdeps_CXX=$prev$p
16433 else
16434 postdeps_CXX="${postdeps_CXX} $prev$p"
16435 fi
16436 fi
16437 prev=
16438 ;;
16439
16440 *.lto.$objext) ;; # Ignore GCC LTO objects
16441 *.$objext)
16442 # This assumes that the test object file only shows up
16443 # once in the compiler output.
16444 if test "$p" = "conftest.$objext"; then
16445 pre_test_object_deps_done=yes
16446 continue
16447 fi
16448
16449 if test no = "$pre_test_object_deps_done"; then
16450 if test -z "$predep_objects_CXX"; then
16451 predep_objects_CXX=$p
16452 else
16453 predep_objects_CXX="$predep_objects_CXX $p"
16454 fi
16455 else
16456 if test -z "$postdep_objects_CXX"; then
16457 postdep_objects_CXX=$p
16458 else
16459 postdep_objects_CXX="$postdep_objects_CXX $p"
16460 fi
16461 fi
16462 ;;
16463
16464 *) ;; # Ignore the rest.
16465
16466 esac
16467 done
16468
16469 # Clean up.
16470 rm -f a.out a.exe
16471 else
16472 echo "libtool.m4: error: problem compiling CXX test program"
16473 fi
16474
16475 $RM -f confest.$objext
16476 CFLAGS=$_lt_libdeps_save_CFLAGS
16477
16478 # PORTME: override above test on systems where it is broken
16479 case $host_os in
16480 interix[3-9]*)
16481 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16482 # hack all around it, let's just trust "g++" to DTRT.
16483 predep_objects_CXX=
16484 postdep_objects_CXX=
16485 postdeps_CXX=
16486 ;;
16487 esac
16488
16489
16490 case " $postdeps_CXX " in
16491 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16492 esac
16493 compiler_lib_search_dirs_CXX=
16494 if test -n "${compiler_lib_search_path_CXX}"; then
16495 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16496 fi
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528 lt_prog_compiler_wl_CXX=
16529 lt_prog_compiler_pic_CXX=
16530 lt_prog_compiler_static_CXX=
16531
16532
16533 # C++ specific cases for pic, static, wl, etc.
16534 if test yes = "$GXX"; then
16535 lt_prog_compiler_wl_CXX='-Wl,'
16536 lt_prog_compiler_static_CXX='-static'
16537
16538 case $host_os in
16539 aix*)
16540 # All AIX code is PIC.
16541 if test ia64 = "$host_cpu"; then
16542 # AIX 5 now supports IA64 processor
16543 lt_prog_compiler_static_CXX='-Bstatic'
16544 fi
16545 lt_prog_compiler_pic_CXX='-fPIC'
16546 ;;
16547
16548 amigaos*)
16549 case $host_cpu in
16550 powerpc)
16551 # see comment about AmigaOS4 .so support
16552 lt_prog_compiler_pic_CXX='-fPIC'
16553 ;;
16554 m68k)
16555 # FIXME: we need at least 68020 code to build shared libraries, but
16556 # adding the '-m68020' flag to GCC prevents building anything better,
16557 # like '-m68040'.
16558 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16559 ;;
16560 esac
16561 ;;
16562
16563 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16564 # PIC is the default for these OSes.
16565 ;;
16566 mingw* | cygwin* | os2* | pw32* | cegcc*)
16567 # This hack is so that the source file can tell whether it is being
16568 # built for inclusion in a dll (and should export symbols for example).
16569 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16570 # (--disable-auto-import) libraries
16571 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16572 case $host_os in
16573 os2*)
16574 lt_prog_compiler_static_CXX='$wl-static'
16575 ;;
16576 esac
16577 ;;
16578 darwin* | rhapsody*)
16579 # PIC is the default on this platform
16580 # Common symbols not allowed in MH_DYLIB files
16581 lt_prog_compiler_pic_CXX='-fno-common'
16582 ;;
16583 *djgpp*)
16584 # DJGPP does not support shared libraries at all
16585 lt_prog_compiler_pic_CXX=
16586 ;;
16587 haiku*)
16588 # PIC is the default for Haiku.
16589 # The "-static" flag exists, but is broken.
16590 lt_prog_compiler_static_CXX=
16591 ;;
16592 interix[3-9]*)
16593 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16594 # Instead, we relocate shared libraries at runtime.
16595 ;;
16596 sysv4*MP*)
16597 if test -d /usr/nec; then
16598 lt_prog_compiler_pic_CXX=-Kconform_pic
16599 fi
16600 ;;
16601 hpux*)
16602 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16603 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16604 # sets the default TLS model and affects inlining.
16605 case $host_cpu in
16606 hppa*64*)
16607 ;;
16608 *)
16609 lt_prog_compiler_pic_CXX='-fPIC'
16610 ;;
16611 esac
16612 ;;
16613 *qnx* | *nto*)
16614 # QNX uses GNU C++, but need to define -shared option too, otherwise
16615 # it will coredump.
16616 lt_prog_compiler_pic_CXX='-fPIC -shared'
16617 ;;
16618 *)
16619 lt_prog_compiler_pic_CXX='-fPIC'
16620 ;;
16621 esac
16622 else
16623 case $host_os in
16624 aix[4-9]*)
16625 # All AIX code is PIC.
16626 if test ia64 = "$host_cpu"; then
16627 # AIX 5 now supports IA64 processor
16628 lt_prog_compiler_static_CXX='-Bstatic'
16629 else
16630 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16631 fi
16632 ;;
16633 chorus*)
16634 case $cc_basename in
16635 cxch68*)
16636 # Green Hills C++ Compiler
16637 # _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"
16638 ;;
16639 esac
16640 ;;
16641 mingw* | cygwin* | os2* | pw32* | cegcc*)
16642 # This hack is so that the source file can tell whether it is being
16643 # built for inclusion in a dll (and should export symbols for example).
16644 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16645 ;;
16646 dgux*)
16647 case $cc_basename in
16648 ec++*)
16649 lt_prog_compiler_pic_CXX='-KPIC'
16650 ;;
16651 ghcx*)
16652 # Green Hills C++ Compiler
16653 lt_prog_compiler_pic_CXX='-pic'
16654 ;;
16655 *)
16656 ;;
16657 esac
16658 ;;
16659 freebsd* | dragonfly* | midnightbsd*)
16660 # FreeBSD uses GNU C++
16661 ;;
16662 hpux9* | hpux10* | hpux11*)
16663 case $cc_basename in
16664 CC*)
16665 lt_prog_compiler_wl_CXX='-Wl,'
16666 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16667 if test ia64 != "$host_cpu"; then
16668 lt_prog_compiler_pic_CXX='+Z'
16669 fi
16670 ;;
16671 aCC*)
16672 lt_prog_compiler_wl_CXX='-Wl,'
16673 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16674 case $host_cpu in
16675 hppa*64*|ia64*)
16676 # +Z the default
16677 ;;
16678 *)
16679 lt_prog_compiler_pic_CXX='+Z'
16680 ;;
16681 esac
16682 ;;
16683 *)
16684 ;;
16685 esac
16686 ;;
16687 interix*)
16688 # This is c89, which is MS Visual C++ (no shared libs)
16689 # Anyone wants to do a port?
16690 ;;
16691 irix5* | irix6* | nonstopux*)
16692 case $cc_basename in
16693 CC*)
16694 lt_prog_compiler_wl_CXX='-Wl,'
16695 lt_prog_compiler_static_CXX='-non_shared'
16696 # CC pic flag -KPIC is the default.
16697 ;;
16698 *)
16699 ;;
16700 esac
16701 ;;
16702 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16703 case $cc_basename in
16704 KCC*)
16705 # KAI C++ Compiler
16706 lt_prog_compiler_wl_CXX='--backend -Wl,'
16707 lt_prog_compiler_pic_CXX='-fPIC'
16708 ;;
16709 ecpc* )
16710 # old Intel C++ for x86_64, which still supported -KPIC.
16711 lt_prog_compiler_wl_CXX='-Wl,'
16712 lt_prog_compiler_pic_CXX='-KPIC'
16713 lt_prog_compiler_static_CXX='-static'
16714 ;;
16715 icpc* )
16716 # Intel C++, used to be incompatible with GCC.
16717 # ICC 10 doesn't accept -KPIC any more.
16718 lt_prog_compiler_wl_CXX='-Wl,'
16719 lt_prog_compiler_pic_CXX='-fPIC'
16720 lt_prog_compiler_static_CXX='-static'
16721 ;;
16722 pgCC* | pgcpp*)
16723 # Portland Group C++ compiler
16724 lt_prog_compiler_wl_CXX='-Wl,'
16725 lt_prog_compiler_pic_CXX='-fpic'
16726 lt_prog_compiler_static_CXX='-Bstatic'
16727 ;;
16728 cxx*)
16729 # Compaq C++
16730 # Make sure the PIC flag is empty. It appears that all Alpha
16731 # Linux and Compaq Tru64 Unix objects are PIC.
16732 lt_prog_compiler_pic_CXX=
16733 lt_prog_compiler_static_CXX='-non_shared'
16734 ;;
16735 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16736 # IBM XL 8.0, 9.0 on PPC and BlueGene
16737 lt_prog_compiler_wl_CXX='-Wl,'
16738 lt_prog_compiler_pic_CXX='-qpic'
16739 lt_prog_compiler_static_CXX='-qstaticlink'
16740 ;;
16741 *)
16742 case `$CC -V 2>&1 | $SED 5q` in
16743 *Sun\ C*)
16744 # Sun C++ 5.9
16745 lt_prog_compiler_pic_CXX='-KPIC'
16746 lt_prog_compiler_static_CXX='-Bstatic'
16747 lt_prog_compiler_wl_CXX='-Qoption ld '
16748 ;;
16749 esac
16750 ;;
16751 esac
16752 ;;
16753 lynxos*)
16754 ;;
16755 m88k*)
16756 ;;
16757 mvs*)
16758 case $cc_basename in
16759 cxx*)
16760 lt_prog_compiler_pic_CXX='-W c,exportall'
16761 ;;
16762 *)
16763 ;;
16764 esac
16765 ;;
16766 netbsd* | netbsdelf*-gnu)
16767 ;;
16768 *qnx* | *nto*)
16769 # QNX uses GNU C++, but need to define -shared option too, otherwise
16770 # it will coredump.
16771 lt_prog_compiler_pic_CXX='-fPIC -shared'
16772 ;;
16773 osf3* | osf4* | osf5*)
16774 case $cc_basename in
16775 KCC*)
16776 lt_prog_compiler_wl_CXX='--backend -Wl,'
16777 ;;
16778 RCC*)
16779 # Rational C++ 2.4.1
16780 lt_prog_compiler_pic_CXX='-pic'
16781 ;;
16782 cxx*)
16783 # Digital/Compaq C++
16784 lt_prog_compiler_wl_CXX='-Wl,'
16785 # Make sure the PIC flag is empty. It appears that all Alpha
16786 # Linux and Compaq Tru64 Unix objects are PIC.
16787 lt_prog_compiler_pic_CXX=
16788 lt_prog_compiler_static_CXX='-non_shared'
16789 ;;
16790 *)
16791 ;;
16792 esac
16793 ;;
16794 psos*)
16795 ;;
16796 solaris*)
16797 case $cc_basename in
16798 CC* | sunCC*)
16799 # Sun C++ 4.2, 5.x and Centerline C++
16800 lt_prog_compiler_pic_CXX='-KPIC'
16801 lt_prog_compiler_static_CXX='-Bstatic'
16802 lt_prog_compiler_wl_CXX='-Qoption ld '
16803 ;;
16804 gcx*)
16805 # Green Hills C++ Compiler
16806 lt_prog_compiler_pic_CXX='-PIC'
16807 ;;
16808 *)
16809 ;;
16810 esac
16811 ;;
16812 sunos4*)
16813 case $cc_basename in
16814 CC*)
16815 # Sun C++ 4.x
16816 lt_prog_compiler_pic_CXX='-pic'
16817 lt_prog_compiler_static_CXX='-Bstatic'
16818 ;;
16819 lcc*)
16820 # Lucid
16821 lt_prog_compiler_pic_CXX='-pic'
16822 ;;
16823 *)
16824 ;;
16825 esac
16826 ;;
16827 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16828 case $cc_basename in
16829 CC*)
16830 lt_prog_compiler_wl_CXX='-Wl,'
16831 lt_prog_compiler_pic_CXX='-KPIC'
16832 lt_prog_compiler_static_CXX='-Bstatic'
16833 ;;
16834 esac
16835 ;;
16836 tandem*)
16837 case $cc_basename in
16838 NCC*)
16839 # NonStop-UX NCC 3.20
16840 lt_prog_compiler_pic_CXX='-KPIC'
16841 ;;
16842 *)
16843 ;;
16844 esac
16845 ;;
16846 vxworks*)
16847 ;;
16848 *)
16849 lt_prog_compiler_can_build_shared_CXX=no
16850 ;;
16851 esac
16852 fi
16853
16854 case $host_os in
16855 # For platforms that do not support PIC, -DPIC is meaningless:
16856 *djgpp*)
16857 lt_prog_compiler_pic_CXX=
16858 ;;
16859 *)
16860 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16861 ;;
16862 esac
16863
16864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16865 printf %s "checking for $compiler option to produce PIC... " >&6; }
16866 if test ${lt_cv_prog_compiler_pic_CXX+y}
16867 then :
16868 printf %s "(cached) " >&6
16869 else $as_nop
16870 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16871 fi
16872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16873 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16874 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16875
16876 #
16877 # Check to make sure the PIC flag actually works.
16878 #
16879 if test -n "$lt_prog_compiler_pic_CXX"; then
16880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16881 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16882 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16883 then :
16884 printf %s "(cached) " >&6
16885 else $as_nop
16886 lt_cv_prog_compiler_pic_works_CXX=no
16887 ac_outfile=conftest.$ac_objext
16888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16889 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16890 # Insert the option either (1) after the last *FLAGS variable, or
16891 # (2) before a word containing "conftest.", or (3) at the end.
16892 # Note that $ac_compile itself does not contain backslashes and begins
16893 # with a dollar sign (not a hyphen), so the echo should work correctly.
16894 # The option is referenced via a variable to avoid confusing sed.
16895 lt_compile=`echo "$ac_compile" | $SED \
16896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16898 -e 's:$: $lt_compiler_flag:'`
16899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16900 (eval "$lt_compile" 2>conftest.err)
16901 ac_status=$?
16902 cat conftest.err >&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 if (exit $ac_status) && test -s "$ac_outfile"; then
16905 # The compiler can only warn and ignore the option if not recognized
16906 # So say no if there are warnings other than the usual output.
16907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16910 lt_cv_prog_compiler_pic_works_CXX=yes
16911 fi
16912 fi
16913 $RM conftest*
16914
16915 fi
16916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16917 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16918
16919 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16920 case $lt_prog_compiler_pic_CXX in
16921 "" | " "*) ;;
16922 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16923 esac
16924 else
16925 lt_prog_compiler_pic_CXX=
16926 lt_prog_compiler_can_build_shared_CXX=no
16927 fi
16928
16929 fi
16930
16931
16932
16933
16934
16935 #
16936 # Check to make sure the static flag actually works.
16937 #
16938 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16940 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16941 if test ${lt_cv_prog_compiler_static_works_CXX+y}
16942 then :
16943 printf %s "(cached) " >&6
16944 else $as_nop
16945 lt_cv_prog_compiler_static_works_CXX=no
16946 save_LDFLAGS=$LDFLAGS
16947 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16948 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16949 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16950 # The linker can only warn and ignore the option if not recognized
16951 # So say no if there are warnings
16952 if test -s conftest.err; then
16953 # Append any errors to the config.log.
16954 cat conftest.err 1>&5
16955 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16957 if diff conftest.exp conftest.er2 >/dev/null; then
16958 lt_cv_prog_compiler_static_works_CXX=yes
16959 fi
16960 else
16961 lt_cv_prog_compiler_static_works_CXX=yes
16962 fi
16963 fi
16964 $RM -r conftest*
16965 LDFLAGS=$save_LDFLAGS
16966
16967 fi
16968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16969 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16970
16971 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16972 :
16973 else
16974 lt_prog_compiler_static_CXX=
16975 fi
16976
16977
16978
16979
16980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16981 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16982 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16983 then :
16984 printf %s "(cached) " >&6
16985 else $as_nop
16986 lt_cv_prog_compiler_c_o_CXX=no
16987 $RM -r conftest 2>/dev/null
16988 mkdir conftest
16989 cd conftest
16990 mkdir out
16991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16992
16993 lt_compiler_flag="-o out/conftest2.$ac_objext"
16994 # Insert the option either (1) after the last *FLAGS variable, or
16995 # (2) before a word containing "conftest.", or (3) at the end.
16996 # Note that $ac_compile itself does not contain backslashes and begins
16997 # with a dollar sign (not a hyphen), so the echo should work correctly.
16998 lt_compile=`echo "$ac_compile" | $SED \
16999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17001 -e 's:$: $lt_compiler_flag:'`
17002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17003 (eval "$lt_compile" 2>out/conftest.err)
17004 ac_status=$?
17005 cat out/conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17008 then
17009 # The compiler can only warn and ignore the option if not recognized
17010 # So say no if there are warnings
17011 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17014 lt_cv_prog_compiler_c_o_CXX=yes
17015 fi
17016 fi
17017 chmod u+w . 2>&5
17018 $RM conftest*
17019 # SGI C++ compiler will create directory out/ii_files/ for
17020 # template instantiation
17021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17022 $RM out/* && rmdir out
17023 cd ..
17024 $RM -r conftest
17025 $RM conftest*
17026
17027 fi
17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17029 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17030
17031
17032
17033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17034 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17035 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17036 then :
17037 printf %s "(cached) " >&6
17038 else $as_nop
17039 lt_cv_prog_compiler_c_o_CXX=no
17040 $RM -r conftest 2>/dev/null
17041 mkdir conftest
17042 cd conftest
17043 mkdir out
17044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17045
17046 lt_compiler_flag="-o out/conftest2.$ac_objext"
17047 # Insert the option either (1) after the last *FLAGS variable, or
17048 # (2) before a word containing "conftest.", or (3) at the end.
17049 # Note that $ac_compile itself does not contain backslashes and begins
17050 # with a dollar sign (not a hyphen), so the echo should work correctly.
17051 lt_compile=`echo "$ac_compile" | $SED \
17052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17054 -e 's:$: $lt_compiler_flag:'`
17055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17056 (eval "$lt_compile" 2>out/conftest.err)
17057 ac_status=$?
17058 cat out/conftest.err >&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17061 then
17062 # The compiler can only warn and ignore the option if not recognized
17063 # So say no if there are warnings
17064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17065 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17066 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17067 lt_cv_prog_compiler_c_o_CXX=yes
17068 fi
17069 fi
17070 chmod u+w . 2>&5
17071 $RM conftest*
17072 # SGI C++ compiler will create directory out/ii_files/ for
17073 # template instantiation
17074 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17075 $RM out/* && rmdir out
17076 cd ..
17077 $RM -r conftest
17078 $RM conftest*
17079
17080 fi
17081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17082 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17083
17084
17085
17086
17087 hard_links=nottested
17088 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17089 # do not overwrite the value of need_locks provided by the user
17090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17091 printf %s "checking if we can lock with hard links... " >&6; }
17092 hard_links=yes
17093 $RM conftest*
17094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17095 touch conftest.a
17096 ln conftest.a conftest.b 2>&5 || hard_links=no
17097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17099 printf "%s\n" "$hard_links" >&6; }
17100 if test no = "$hard_links"; then
17101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17102 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17103 need_locks=warn
17104 fi
17105 else
17106 need_locks=no
17107 fi
17108
17109
17110
17111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17112 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17113
17114 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17115 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17116 case $host_os in
17117 aix[4-9]*)
17118 # If we're using GNU nm, then we don't want the "-C" option.
17119 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17120 # Without the "-l" option, or with the "-B" option, AIX nm treats
17121 # weak defined symbols like other global defined symbols, whereas
17122 # GNU nm marks them as "W".
17123 # While the 'weak' keyword is ignored in the Export File, we need
17124 # it in the Import File for the 'aix-soname' feature, so we have
17125 # to replace the "-B" option with "-P" for AIX nm.
17126 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17127 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'
17128 else
17129 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'
17130 fi
17131 ;;
17132 pw32*)
17133 export_symbols_cmds_CXX=$ltdll_cmds
17134 ;;
17135 cygwin* | mingw* | cegcc*)
17136 case $cc_basename in
17137 cl* | icl*)
17138 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17139 ;;
17140 *)
17141 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'
17142 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17143 ;;
17144 esac
17145 ;;
17146 linux* | k*bsd*-gnu | gnu*)
17147 link_all_deplibs_CXX=no
17148 ;;
17149 *)
17150 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17151 ;;
17152 esac
17153
17154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17155 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17156 test no = "$ld_shlibs_CXX" && can_build_shared=no
17157
17158 with_gnu_ld_CXX=$with_gnu_ld
17159
17160
17161
17162
17163
17164
17165 #
17166 # Do we need to explicitly link libc?
17167 #
17168 case "x$archive_cmds_need_lc_CXX" in
17169 x|xyes)
17170 # Assume -lc should be added
17171 archive_cmds_need_lc_CXX=yes
17172
17173 if test yes,yes = "$GCC,$enable_shared"; then
17174 case $archive_cmds_CXX in
17175 *'~'*)
17176 # FIXME: we may have to deal with multi-command sequences.
17177 ;;
17178 '$CC '*)
17179 # Test whether the compiler implicitly links with -lc since on some
17180 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17181 # to ld, don't add -lc before -lgcc.
17182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17183 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17184 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17185 then :
17186 printf %s "(cached) " >&6
17187 else $as_nop
17188 $RM conftest*
17189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17190
17191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17192 (eval $ac_compile) 2>&5
17193 ac_status=$?
17194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17195 test $ac_status = 0; } 2>conftest.err; then
17196 soname=conftest
17197 lib=conftest
17198 libobjs=conftest.$ac_objext
17199 deplibs=
17200 wl=$lt_prog_compiler_wl_CXX
17201 pic_flag=$lt_prog_compiler_pic_CXX
17202 compiler_flags=-v
17203 linker_flags=-v
17204 verstring=
17205 output_objdir=.
17206 libname=conftest
17207 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17208 allow_undefined_flag_CXX=
17209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17210 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17211 ac_status=$?
17212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17213 test $ac_status = 0; }
17214 then
17215 lt_cv_archive_cmds_need_lc_CXX=no
17216 else
17217 lt_cv_archive_cmds_need_lc_CXX=yes
17218 fi
17219 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17220 else
17221 cat conftest.err 1>&5
17222 fi
17223 $RM conftest*
17224
17225 fi
17226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17227 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17228 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17229 ;;
17230 esac
17231 fi
17232 ;;
17233 esac
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17297 printf %s "checking dynamic linker characteristics... " >&6; }
17298
17299 library_names_spec=
17300 libname_spec='lib$name'
17301 soname_spec=
17302 shrext_cmds=.so
17303 postinstall_cmds=
17304 postuninstall_cmds=
17305 finish_cmds=
17306 finish_eval=
17307 shlibpath_var=
17308 shlibpath_overrides_runpath=unknown
17309 version_type=none
17310 dynamic_linker="$host_os ld.so"
17311 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17312 need_lib_prefix=unknown
17313 hardcode_into_libs=no
17314
17315 # when you set need_version to no, make sure it does not cause -set_version
17316 # flags to be left without arguments
17317 need_version=unknown
17318
17319
17320
17321 case $host_os in
17322 aix3*)
17323 version_type=linux # correct to gnu/linux during the next big refactor
17324 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17325 shlibpath_var=LIBPATH
17326
17327 # AIX 3 has no versioning support, so we append a major version to the name.
17328 soname_spec='$libname$release$shared_ext$major'
17329 ;;
17330
17331 aix[4-9]*)
17332 version_type=linux # correct to gnu/linux during the next big refactor
17333 need_lib_prefix=no
17334 need_version=no
17335 hardcode_into_libs=yes
17336 if test ia64 = "$host_cpu"; then
17337 # AIX 5 supports IA64
17338 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17339 shlibpath_var=LD_LIBRARY_PATH
17340 else
17341 # With GCC up to 2.95.x, collect2 would create an import file
17342 # for dependence libraries. The import file would start with
17343 # the line '#! .'. This would cause the generated library to
17344 # depend on '.', always an invalid library. This was fixed in
17345 # development snapshots of GCC prior to 3.0.
17346 case $host_os in
17347 aix4 | aix4.[01] | aix4.[01].*)
17348 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17349 echo ' yes '
17350 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17351 :
17352 else
17353 can_build_shared=no
17354 fi
17355 ;;
17356 esac
17357 # Using Import Files as archive members, it is possible to support
17358 # filename-based versioning of shared library archives on AIX. While
17359 # this would work for both with and without runtime linking, it will
17360 # prevent static linking of such archives. So we do filename-based
17361 # shared library versioning with .so extension only, which is used
17362 # when both runtime linking and shared linking is enabled.
17363 # Unfortunately, runtime linking may impact performance, so we do
17364 # not want this to be the default eventually. Also, we use the
17365 # versioned .so libs for executables only if there is the -brtl
17366 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17367 # To allow for filename-based versioning support, we need to create
17368 # libNAME.so.V as an archive file, containing:
17369 # *) an Import File, referring to the versioned filename of the
17370 # archive as well as the shared archive member, telling the
17371 # bitwidth (32 or 64) of that shared object, and providing the
17372 # list of exported symbols of that shared object, eventually
17373 # decorated with the 'weak' keyword
17374 # *) the shared object with the F_LOADONLY flag set, to really avoid
17375 # it being seen by the linker.
17376 # At run time we better use the real file rather than another symlink,
17377 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17378
17379 case $with_aix_soname,$aix_use_runtimelinking in
17380 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17381 # soname into executable. Probably we can add versioning support to
17382 # collect2, so additional links can be useful in future.
17383 aix,yes) # traditional libtool
17384 dynamic_linker='AIX unversionable lib.so'
17385 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17386 # instead of lib<name>.a to let people know that these are not
17387 # typical AIX shared libraries.
17388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17389 ;;
17390 aix,no) # traditional AIX only
17391 dynamic_linker='AIX lib.a(lib.so.V)'
17392 # We preserve .a as extension for shared libraries through AIX4.2
17393 # and later when we are not doing run time linking.
17394 library_names_spec='$libname$release.a $libname.a'
17395 soname_spec='$libname$release$shared_ext$major'
17396 ;;
17397 svr4,*) # full svr4 only
17398 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17399 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17400 # We do not specify a path in Import Files, so LIBPATH fires.
17401 shlibpath_overrides_runpath=yes
17402 ;;
17403 *,yes) # both, prefer svr4
17404 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17405 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17406 # unpreferred sharedlib libNAME.a needs extra handling
17407 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"'
17408 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"'
17409 # We do not specify a path in Import Files, so LIBPATH fires.
17410 shlibpath_overrides_runpath=yes
17411 ;;
17412 *,no) # both, prefer aix
17413 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17414 library_names_spec='$libname$release.a $libname.a'
17415 soname_spec='$libname$release$shared_ext$major'
17416 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17417 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)'
17418 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"'
17419 ;;
17420 esac
17421 shlibpath_var=LIBPATH
17422 fi
17423 ;;
17424
17425 amigaos*)
17426 case $host_cpu in
17427 powerpc)
17428 # Since July 2007 AmigaOS4 officially supports .so libraries.
17429 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17431 ;;
17432 m68k)
17433 library_names_spec='$libname.ixlibrary $libname.a'
17434 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17435 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'
17436 ;;
17437 esac
17438 ;;
17439
17440 beos*)
17441 library_names_spec='$libname$shared_ext'
17442 dynamic_linker="$host_os ld.so"
17443 shlibpath_var=LIBRARY_PATH
17444 ;;
17445
17446 bsdi[45]*)
17447 version_type=linux # correct to gnu/linux during the next big refactor
17448 need_version=no
17449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17450 soname_spec='$libname$release$shared_ext$major'
17451 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17452 shlibpath_var=LD_LIBRARY_PATH
17453 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17454 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17455 # the default ld.so.conf also contains /usr/contrib/lib and
17456 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17457 # libtool to hard-code these into programs
17458 ;;
17459
17460 cygwin* | mingw* | pw32* | cegcc*)
17461 version_type=windows
17462 shrext_cmds=.dll
17463 need_version=no
17464 need_lib_prefix=no
17465
17466 case $GCC,$cc_basename in
17467 yes,*)
17468 # gcc
17469 library_names_spec='$libname.dll.a'
17470 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17471 postinstall_cmds='base_file=`basename \$file`~
17472 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17473 dldir=$destdir/`dirname \$dlpath`~
17474 test -d \$dldir || mkdir -p \$dldir~
17475 $install_prog $dir/$dlname \$dldir/$dlname~
17476 chmod a+x \$dldir/$dlname~
17477 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17478 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17479 fi'
17480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17481 dlpath=$dir/\$dldll~
17482 $RM \$dlpath'
17483 shlibpath_overrides_runpath=yes
17484
17485 case $host_os in
17486 cygwin*)
17487 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17488 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17489
17490 ;;
17491 mingw* | cegcc*)
17492 # MinGW DLLs use traditional 'lib' prefix
17493 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17494 ;;
17495 pw32*)
17496 # pw32 DLLs use 'pw' prefix rather than 'lib'
17497 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17498 ;;
17499 esac
17500 dynamic_linker='Win32 ld.exe'
17501 ;;
17502
17503 *,cl* | *,icl*)
17504 # Native MSVC or ICC
17505 libname_spec='$name'
17506 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17507 library_names_spec='$libname.dll.lib'
17508
17509 case $build_os in
17510 mingw*)
17511 sys_lib_search_path_spec=
17512 lt_save_ifs=$IFS
17513 IFS=';'
17514 for lt_path in $LIB
17515 do
17516 IFS=$lt_save_ifs
17517 # Let DOS variable expansion print the short 8.3 style file name.
17518 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17519 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17520 done
17521 IFS=$lt_save_ifs
17522 # Convert to MSYS style.
17523 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17524 ;;
17525 cygwin*)
17526 # Convert to unix form, then to dos form, then back to unix form
17527 # but this time dos style (no spaces!) so that the unix form looks
17528 # like /cygdrive/c/PROGRA~1:/cygdr...
17529 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17530 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17531 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17532 ;;
17533 *)
17534 sys_lib_search_path_spec=$LIB
17535 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17536 # It is most probably a Windows format PATH.
17537 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17538 else
17539 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17540 fi
17541 # FIXME: find the short name or the path components, as spaces are
17542 # common. (e.g. "Program Files" -> "PROGRA~1")
17543 ;;
17544 esac
17545
17546 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17547 postinstall_cmds='base_file=`basename \$file`~
17548 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17549 dldir=$destdir/`dirname \$dlpath`~
17550 test -d \$dldir || mkdir -p \$dldir~
17551 $install_prog $dir/$dlname \$dldir/$dlname'
17552 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17553 dlpath=$dir/\$dldll~
17554 $RM \$dlpath'
17555 shlibpath_overrides_runpath=yes
17556 dynamic_linker='Win32 link.exe'
17557 ;;
17558
17559 *)
17560 # Assume MSVC and ICC wrapper
17561 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17562 dynamic_linker='Win32 ld.exe'
17563 ;;
17564 esac
17565 # FIXME: first we should search . and the directory the executable is in
17566 shlibpath_var=PATH
17567 ;;
17568
17569 darwin* | rhapsody*)
17570 dynamic_linker="$host_os dyld"
17571 version_type=darwin
17572 need_lib_prefix=no
17573 need_version=no
17574 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17575 soname_spec='$libname$release$major$shared_ext'
17576 shlibpath_overrides_runpath=yes
17577 shlibpath_var=DYLD_LIBRARY_PATH
17578 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17579
17580 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17581 ;;
17582
17583 dgux*)
17584 version_type=linux # correct to gnu/linux during the next big refactor
17585 need_lib_prefix=no
17586 need_version=no
17587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17588 soname_spec='$libname$release$shared_ext$major'
17589 shlibpath_var=LD_LIBRARY_PATH
17590 ;;
17591
17592 freebsd* | dragonfly* | midnightbsd*)
17593 # DragonFly does not have aout. When/if they implement a new
17594 # versioning mechanism, adjust this.
17595 if test -x /usr/bin/objformat; then
17596 objformat=`/usr/bin/objformat`
17597 else
17598 case $host_os in
17599 freebsd[23].*) objformat=aout ;;
17600 *) objformat=elf ;;
17601 esac
17602 fi
17603 version_type=freebsd-$objformat
17604 case $version_type in
17605 freebsd-elf*)
17606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17607 soname_spec='$libname$release$shared_ext$major'
17608 need_version=no
17609 need_lib_prefix=no
17610 ;;
17611 freebsd-*)
17612 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17613 need_version=yes
17614 ;;
17615 esac
17616 shlibpath_var=LD_LIBRARY_PATH
17617 case $host_os in
17618 freebsd2.*)
17619 shlibpath_overrides_runpath=yes
17620 ;;
17621 freebsd3.[01]* | freebsdelf3.[01]*)
17622 shlibpath_overrides_runpath=yes
17623 hardcode_into_libs=yes
17624 ;;
17625 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17626 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17627 shlibpath_overrides_runpath=no
17628 hardcode_into_libs=yes
17629 ;;
17630 *) # from 4.6 on, and DragonFly
17631 shlibpath_overrides_runpath=yes
17632 hardcode_into_libs=yes
17633 ;;
17634 esac
17635 ;;
17636
17637 haiku*)
17638 version_type=linux # correct to gnu/linux during the next big refactor
17639 need_lib_prefix=no
17640 need_version=no
17641 dynamic_linker="$host_os runtime_loader"
17642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17643 soname_spec='$libname$release$shared_ext$major'
17644 shlibpath_var=LIBRARY_PATH
17645 shlibpath_overrides_runpath=no
17646 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17647 hardcode_into_libs=yes
17648 ;;
17649
17650 hpux9* | hpux10* | hpux11*)
17651 # Give a soname corresponding to the major version so that dld.sl refuses to
17652 # link against other versions.
17653 version_type=sunos
17654 need_lib_prefix=no
17655 need_version=no
17656 case $host_cpu in
17657 ia64*)
17658 shrext_cmds='.so'
17659 hardcode_into_libs=yes
17660 dynamic_linker="$host_os dld.so"
17661 shlibpath_var=LD_LIBRARY_PATH
17662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17664 soname_spec='$libname$release$shared_ext$major'
17665 if test 32 = "$HPUX_IA64_MODE"; then
17666 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17667 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17668 else
17669 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17670 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17671 fi
17672 ;;
17673 hppa*64*)
17674 shrext_cmds='.sl'
17675 hardcode_into_libs=yes
17676 dynamic_linker="$host_os dld.sl"
17677 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17680 soname_spec='$libname$release$shared_ext$major'
17681 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17683 ;;
17684 *)
17685 shrext_cmds='.sl'
17686 dynamic_linker="$host_os dld.sl"
17687 shlibpath_var=SHLIB_PATH
17688 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17690 soname_spec='$libname$release$shared_ext$major'
17691 ;;
17692 esac
17693 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17694 postinstall_cmds='chmod 555 $lib'
17695 # or fails outright, so override atomically:
17696 install_override_mode=555
17697 ;;
17698
17699 interix[3-9]*)
17700 version_type=linux # correct to gnu/linux during the next big refactor
17701 need_lib_prefix=no
17702 need_version=no
17703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17704 soname_spec='$libname$release$shared_ext$major'
17705 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17706 shlibpath_var=LD_LIBRARY_PATH
17707 shlibpath_overrides_runpath=no
17708 hardcode_into_libs=yes
17709 ;;
17710
17711 irix5* | irix6* | nonstopux*)
17712 case $host_os in
17713 nonstopux*) version_type=nonstopux ;;
17714 *)
17715 if test yes = "$lt_cv_prog_gnu_ld"; then
17716 version_type=linux # correct to gnu/linux during the next big refactor
17717 else
17718 version_type=irix
17719 fi ;;
17720 esac
17721 need_lib_prefix=no
17722 need_version=no
17723 soname_spec='$libname$release$shared_ext$major'
17724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17725 case $host_os in
17726 irix5* | nonstopux*)
17727 libsuff= shlibsuff=
17728 ;;
17729 *)
17730 case $LD in # libtool.m4 will add one of these switches to LD
17731 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17732 libsuff= shlibsuff= libmagic=32-bit;;
17733 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17734 libsuff=32 shlibsuff=N32 libmagic=N32;;
17735 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17736 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17737 *) libsuff= shlibsuff= libmagic=never-match;;
17738 esac
17739 ;;
17740 esac
17741 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17742 shlibpath_overrides_runpath=no
17743 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17744 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17745 hardcode_into_libs=yes
17746 ;;
17747
17748 # No shared lib support for Linux oldld, aout, or coff.
17749 linux*oldld* | linux*aout* | linux*coff*)
17750 dynamic_linker=no
17751 ;;
17752
17753 linux*android*)
17754 version_type=none # Android doesn't support versioned libraries.
17755 need_lib_prefix=no
17756 need_version=no
17757 library_names_spec='$libname$release$shared_ext'
17758 soname_spec='$libname$release$shared_ext'
17759 finish_cmds=
17760 shlibpath_var=LD_LIBRARY_PATH
17761 shlibpath_overrides_runpath=yes
17762
17763 # This implies no fast_install, which is unacceptable.
17764 # Some rework will be needed to allow for fast_install
17765 # before this can be enabled.
17766 hardcode_into_libs=yes
17767
17768 dynamic_linker='Android linker'
17769 # Don't embed -rpath directories since the linker doesn't support them.
17770 hardcode_libdir_flag_spec_CXX='-L$libdir'
17771 ;;
17772
17773 # This must be glibc/ELF.
17774 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17775 version_type=linux # correct to gnu/linux during the next big refactor
17776 need_lib_prefix=no
17777 need_version=no
17778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17779 soname_spec='$libname$release$shared_ext$major'
17780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17781 shlibpath_var=LD_LIBRARY_PATH
17782 shlibpath_overrides_runpath=no
17783
17784 # Some binutils ld are patched to set DT_RUNPATH
17785 if test ${lt_cv_shlibpath_overrides_runpath+y}
17786 then :
17787 printf %s "(cached) " >&6
17788 else $as_nop
17789 lt_cv_shlibpath_overrides_runpath=no
17790 save_LDFLAGS=$LDFLAGS
17791 save_libdir=$libdir
17792 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17793 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17796
17797 int
17798 main (void)
17799 {
17800
17801 ;
17802 return 0;
17803 }
17804 _ACEOF
17805 if ac_fn_cxx_try_link "$LINENO"
17806 then :
17807 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17808 then :
17809 lt_cv_shlibpath_overrides_runpath=yes
17810 fi
17811 fi
17812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17813 conftest$ac_exeext conftest.$ac_ext
17814 LDFLAGS=$save_LDFLAGS
17815 libdir=$save_libdir
17816
17817 fi
17818
17819 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17820
17821 # This implies no fast_install, which is unacceptable.
17822 # Some rework will be needed to allow for fast_install
17823 # before this can be enabled.
17824 hardcode_into_libs=yes
17825
17826 # Ideally, we could use ldconfig to report *all* directores which are
17827 # searched for libraries, however this is still not possible. Aside from not
17828 # being certain /sbin/ldconfig is available, command
17829 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17830 # even though it is searched at run-time. Try to do the best guess by
17831 # appending ld.so.conf contents (and includes) to the search path.
17832 if test -f /etc/ld.so.conf; then
17833 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' ' '`
17834 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17835 fi
17836
17837 # We used to test for /lib/ld.so.1 and disable shared libraries on
17838 # powerpc, because MkLinux only supported shared libraries with the
17839 # GNU dynamic linker. Since this was broken with cross compilers,
17840 # most powerpc-linux boxes support dynamic linking these days and
17841 # people can always --disable-shared, the test was removed, and we
17842 # assume the GNU/Linux dynamic linker is in use.
17843 dynamic_linker='GNU/Linux ld.so'
17844 ;;
17845
17846 netbsdelf*-gnu)
17847 version_type=linux
17848 need_lib_prefix=no
17849 need_version=no
17850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17851 soname_spec='${libname}${release}${shared_ext}$major'
17852 shlibpath_var=LD_LIBRARY_PATH
17853 shlibpath_overrides_runpath=no
17854 hardcode_into_libs=yes
17855 dynamic_linker='NetBSD ld.elf_so'
17856 ;;
17857
17858 netbsd*)
17859 version_type=sunos
17860 need_lib_prefix=no
17861 need_version=no
17862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17863 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17865 dynamic_linker='NetBSD (a.out) ld.so'
17866 else
17867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17868 soname_spec='$libname$release$shared_ext$major'
17869 dynamic_linker='NetBSD ld.elf_so'
17870 fi
17871 shlibpath_var=LD_LIBRARY_PATH
17872 shlibpath_overrides_runpath=yes
17873 hardcode_into_libs=yes
17874 ;;
17875
17876 newsos6)
17877 version_type=linux # correct to gnu/linux during the next big refactor
17878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17879 shlibpath_var=LD_LIBRARY_PATH
17880 shlibpath_overrides_runpath=yes
17881 ;;
17882
17883 *nto* | *qnx*)
17884 version_type=qnx
17885 need_lib_prefix=no
17886 need_version=no
17887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17888 soname_spec='$libname$release$shared_ext$major'
17889 shlibpath_var=LD_LIBRARY_PATH
17890 shlibpath_overrides_runpath=no
17891 hardcode_into_libs=yes
17892 dynamic_linker='ldqnx.so'
17893 ;;
17894
17895 openbsd* | bitrig*)
17896 version_type=sunos
17897 sys_lib_dlsearch_path_spec=/usr/lib
17898 need_lib_prefix=no
17899 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17900 need_version=no
17901 else
17902 need_version=yes
17903 fi
17904 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17906 shlibpath_var=LD_LIBRARY_PATH
17907 shlibpath_overrides_runpath=yes
17908 ;;
17909
17910 os2*)
17911 libname_spec='$name'
17912 version_type=windows
17913 shrext_cmds=.dll
17914 need_version=no
17915 need_lib_prefix=no
17916 # OS/2 can only load a DLL with a base name of 8 characters or less.
17917 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17918 v=$($ECHO $release$versuffix | tr -d .-);
17919 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17920 $ECHO $n$v`$shared_ext'
17921 library_names_spec='${libname}_dll.$libext'
17922 dynamic_linker='OS/2 ld.exe'
17923 shlibpath_var=BEGINLIBPATH
17924 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17926 postinstall_cmds='base_file=`basename \$file`~
17927 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17928 dldir=$destdir/`dirname \$dlpath`~
17929 test -d \$dldir || mkdir -p \$dldir~
17930 $install_prog $dir/$dlname \$dldir/$dlname~
17931 chmod a+x \$dldir/$dlname~
17932 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17933 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17934 fi'
17935 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17936 dlpath=$dir/\$dldll~
17937 $RM \$dlpath'
17938 ;;
17939
17940 osf3* | osf4* | osf5*)
17941 version_type=osf
17942 need_lib_prefix=no
17943 need_version=no
17944 soname_spec='$libname$release$shared_ext$major'
17945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17946 shlibpath_var=LD_LIBRARY_PATH
17947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17949 ;;
17950
17951 rdos*)
17952 dynamic_linker=no
17953 ;;
17954
17955 solaris*)
17956 version_type=linux # correct to gnu/linux during the next big refactor
17957 need_lib_prefix=no
17958 need_version=no
17959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17960 soname_spec='$libname$release$shared_ext$major'
17961 shlibpath_var=LD_LIBRARY_PATH
17962 shlibpath_overrides_runpath=yes
17963 hardcode_into_libs=yes
17964 # ldd complains unless libraries are executable
17965 postinstall_cmds='chmod +x $lib'
17966 ;;
17967
17968 sunos4*)
17969 version_type=sunos
17970 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17971 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17972 shlibpath_var=LD_LIBRARY_PATH
17973 shlibpath_overrides_runpath=yes
17974 if test yes = "$with_gnu_ld"; then
17975 need_lib_prefix=no
17976 fi
17977 need_version=yes
17978 ;;
17979
17980 sysv4 | sysv4.3*)
17981 version_type=linux # correct to gnu/linux during the next big refactor
17982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17983 soname_spec='$libname$release$shared_ext$major'
17984 shlibpath_var=LD_LIBRARY_PATH
17985 case $host_vendor in
17986 sni)
17987 shlibpath_overrides_runpath=no
17988 need_lib_prefix=no
17989 runpath_var=LD_RUN_PATH
17990 ;;
17991 siemens)
17992 need_lib_prefix=no
17993 ;;
17994 motorola)
17995 need_lib_prefix=no
17996 need_version=no
17997 shlibpath_overrides_runpath=no
17998 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17999 ;;
18000 esac
18001 ;;
18002
18003 sysv4*MP*)
18004 if test -d /usr/nec; then
18005 version_type=linux # correct to gnu/linux during the next big refactor
18006 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18007 soname_spec='$libname$shared_ext.$major'
18008 shlibpath_var=LD_LIBRARY_PATH
18009 fi
18010 ;;
18011
18012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18013 version_type=sco
18014 need_lib_prefix=no
18015 need_version=no
18016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18017 soname_spec='$libname$release$shared_ext$major'
18018 shlibpath_var=LD_LIBRARY_PATH
18019 shlibpath_overrides_runpath=yes
18020 hardcode_into_libs=yes
18021 if test yes = "$with_gnu_ld"; then
18022 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18023 else
18024 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18025 case $host_os in
18026 sco3.2v5*)
18027 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18028 ;;
18029 esac
18030 fi
18031 sys_lib_dlsearch_path_spec='/usr/lib'
18032 ;;
18033
18034 tpf*)
18035 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18036 version_type=linux # correct to gnu/linux during the next big refactor
18037 need_lib_prefix=no
18038 need_version=no
18039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18040 shlibpath_var=LD_LIBRARY_PATH
18041 shlibpath_overrides_runpath=no
18042 hardcode_into_libs=yes
18043 ;;
18044
18045 uts4*)
18046 version_type=linux # correct to gnu/linux during the next big refactor
18047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18048 soname_spec='$libname$release$shared_ext$major'
18049 shlibpath_var=LD_LIBRARY_PATH
18050 ;;
18051
18052 *)
18053 dynamic_linker=no
18054 ;;
18055 esac
18056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18057 printf "%s\n" "$dynamic_linker" >&6; }
18058 test no = "$dynamic_linker" && can_build_shared=no
18059
18060 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18061 if test yes = "$GCC"; then
18062 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18063 fi
18064
18065 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18066 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18067 fi
18068
18069 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18070 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18071 fi
18072
18073 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18074 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18075
18076 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18077 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18078
18079 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18080 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18122 printf %s "checking how to hardcode library paths into programs... " >&6; }
18123 hardcode_action_CXX=
18124 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18125 test -n "$runpath_var_CXX" ||
18126 test yes = "$hardcode_automatic_CXX"; then
18127
18128 # We can hardcode non-existent directories.
18129 if test no != "$hardcode_direct_CXX" &&
18130 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18131 # have to relink, otherwise we might link with an installed library
18132 # when we should be linking with a yet-to-be-installed one
18133 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18134 test no != "$hardcode_minus_L_CXX"; then
18135 # Linking always hardcodes the temporary library directory.
18136 hardcode_action_CXX=relink
18137 else
18138 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18139 hardcode_action_CXX=immediate
18140 fi
18141 else
18142 # We cannot hardcode anything, or else we can only hardcode existing
18143 # directories.
18144 hardcode_action_CXX=unsupported
18145 fi
18146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18147 printf "%s\n" "$hardcode_action_CXX" >&6; }
18148
18149 if test relink = "$hardcode_action_CXX" ||
18150 test yes = "$inherit_rpath_CXX"; then
18151 # Fast installation is not supported
18152 enable_fast_install=no
18153 elif test yes = "$shlibpath_overrides_runpath" ||
18154 test no = "$enable_shared"; then
18155 # Fast installation is not necessary
18156 enable_fast_install=needless
18157 fi
18158
18159
18160
18161
18162
18163
18164
18165 fi # test -n "$compiler"
18166
18167 CC=$lt_save_CC
18168 CFLAGS=$lt_save_CFLAGS
18169 LDCXX=$LD
18170 LD=$lt_save_LD
18171 GCC=$lt_save_GCC
18172 with_gnu_ld=$lt_save_with_gnu_ld
18173 lt_cv_path_LDCXX=$lt_cv_path_LD
18174 lt_cv_path_LD=$lt_save_path_LD
18175 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18176 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18177 fi # test yes != "$_lt_caught_CXX_error"
18178
18179 ac_ext=c
18180 ac_cpp='$CPP $CPPFLAGS'
18181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18184
18185
18186 depcc="$CXX" am_compiler_list=
18187
18188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18189 printf %s "checking dependency style of $depcc... " >&6; }
18190 if test ${am_cv_CXX_dependencies_compiler_type+y}
18191 then :
18192 printf %s "(cached) " >&6
18193 else $as_nop
18194 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18195 # We make a subdir and do the tests there. Otherwise we can end up
18196 # making bogus files that we don't know about and never remove. For
18197 # instance it was reported that on HP-UX the gcc test will end up
18198 # making a dummy file named 'D' -- because '-MD' means "put the output
18199 # in D".
18200 rm -rf conftest.dir
18201 mkdir conftest.dir
18202 # Copy depcomp to subdir because otherwise we won't find it if we're
18203 # using a relative directory.
18204 cp "$am_depcomp" conftest.dir
18205 cd conftest.dir
18206 # We will build objects and dependencies in a subdirectory because
18207 # it helps to detect inapplicable dependency modes. For instance
18208 # both Tru64's cc and ICC support -MD to output dependencies as a
18209 # side effect of compilation, but ICC will put the dependencies in
18210 # the current directory while Tru64 will put them in the object
18211 # directory.
18212 mkdir sub
18213
18214 am_cv_CXX_dependencies_compiler_type=none
18215 if test "$am_compiler_list" = ""; then
18216 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18217 fi
18218 am__universal=false
18219 case " $depcc " in #(
18220 *\ -arch\ *\ -arch\ *) am__universal=true ;;
18221 esac
18222
18223 for depmode in $am_compiler_list; do
18224 # Setup a source with many dependencies, because some compilers
18225 # like to wrap large dependency lists on column 80 (with \), and
18226 # we should not choose a depcomp mode which is confused by this.
18227 #
18228 # We need to recreate these files for each test, as the compiler may
18229 # overwrite some of them when testing with obscure command lines.
18230 # This happens at least with the AIX C compiler.
18231 : > sub/conftest.c
18232 for i in 1 2 3 4 5 6; do
18233 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18234 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18235 # Solaris 10 /bin/sh.
18236 echo '/* dummy */' > sub/conftst$i.h
18237 done
18238 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18239
18240 # We check with '-c' and '-o' for the sake of the "dashmstdout"
18241 # mode. It turns out that the SunPro C++ compiler does not properly
18242 # handle '-M -o', and we need to detect this. Also, some Intel
18243 # versions had trouble with output in subdirs.
18244 am__obj=sub/conftest.${OBJEXT-o}
18245 am__minus_obj="-o $am__obj"
18246 case $depmode in
18247 gcc)
18248 # This depmode causes a compiler race in universal mode.
18249 test "$am__universal" = false || continue
18250 ;;
18251 nosideeffect)
18252 # After this tag, mechanisms are not by side-effect, so they'll
18253 # only be used when explicitly requested.
18254 if test "x$enable_dependency_tracking" = xyes; then
18255 continue
18256 else
18257 break
18258 fi
18259 ;;
18260 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18261 # This compiler won't grok '-c -o', but also, the minuso test has
18262 # not run yet. These depmodes are late enough in the game, and
18263 # so weak that their functioning should not be impacted.
18264 am__obj=conftest.${OBJEXT-o}
18265 am__minus_obj=
18266 ;;
18267 none) break ;;
18268 esac
18269 if depmode=$depmode \
18270 source=sub/conftest.c object=$am__obj \
18271 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18272 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18273 >/dev/null 2>conftest.err &&
18274 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18275 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18276 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18277 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18278 # icc doesn't choke on unknown options, it will just issue warnings
18279 # or remarks (even with -Werror). So we grep stderr for any message
18280 # that says an option was ignored or not supported.
18281 # When given -MP, icc 7.0 and 7.1 complain thusly:
18282 # icc: Command line warning: ignoring option '-M'; no argument required
18283 # The diagnosis changed in icc 8.0:
18284 # icc: Command line remark: option '-MP' not supported
18285 if (grep 'ignoring option' conftest.err ||
18286 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18287 am_cv_CXX_dependencies_compiler_type=$depmode
18288 break
18289 fi
18290 fi
18291 done
18292
18293 cd ..
18294 rm -rf conftest.dir
18295 else
18296 am_cv_CXX_dependencies_compiler_type=none
18297 fi
18298
18299 fi
18300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
18301 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
18302 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
18303
18304 if
18305 test "x$enable_dependency_tracking" != xno \
18306 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
18307 am__fastdepCXX_TRUE=
18308 am__fastdepCXX_FALSE='#'
18309 else
18310 am__fastdepCXX_TRUE='#'
18311 am__fastdepCXX_FALSE=
18312 fi
18313
18314
18315 ac_ext=c
18316 ac_cpp='$CPP $CPPFLAGS'
18317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
18321 printf %s "checking how to run the C preprocessor... " >&6; }
18322 # On Suns, sometimes $CPP names a directory.
18323 if test -n "$CPP" && test -d "$CPP"; then
18324 CPP=
18325 fi
18326 if test -z "$CPP"; then
18327 if test ${ac_cv_prog_CPP+y}
18328 then :
18329 printf %s "(cached) " >&6
18330 else $as_nop
18331 # Double quotes because $CC needs to be expanded
18332 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
18333 do
18334 ac_preproc_ok=false
18335 for ac_c_preproc_warn_flag in '' yes
18336 do
18337 # Use a header file that comes with gcc, so configuring glibc
18338 # with a fresh cross-compiler works.
18339 # On the NeXT, cc -E runs the code through the compiler's parser,
18340 # not just through cpp. "Syntax error" is here to catch this case.
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18343 #include <limits.h>
18344 Syntax error
18345 _ACEOF
18346 if ac_fn_c_try_cpp "$LINENO"
18347 then :
18348
18349 else $as_nop
18350 # Broken: fails on valid input.
18351 continue
18352 fi
18353 rm -f conftest.err conftest.i conftest.$ac_ext
18354
18355 # OK, works on sane cases. Now check whether nonexistent headers
18356 # can be detected and how.
18357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18359 #include <ac_nonexistent.h>
18360 _ACEOF
18361 if ac_fn_c_try_cpp "$LINENO"
18362 then :
18363 # Broken: success on invalid input.
18364 continue
18365 else $as_nop
18366 # Passes both tests.
18367 ac_preproc_ok=:
18368 break
18369 fi
18370 rm -f conftest.err conftest.i conftest.$ac_ext
18371
18372 done
18373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18374 rm -f conftest.i conftest.err conftest.$ac_ext
18375 if $ac_preproc_ok
18376 then :
18377 break
18378 fi
18379
18380 done
18381 ac_cv_prog_CPP=$CPP
18382
18383 fi
18384 CPP=$ac_cv_prog_CPP
18385 else
18386 ac_cv_prog_CPP=$CPP
18387 fi
18388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
18389 printf "%s\n" "$CPP" >&6; }
18390 ac_preproc_ok=false
18391 for ac_c_preproc_warn_flag in '' yes
18392 do
18393 # Use a header file that comes with gcc, so configuring glibc
18394 # with a fresh cross-compiler works.
18395 # On the NeXT, cc -E runs the code through the compiler's parser,
18396 # not just through cpp. "Syntax error" is here to catch this case.
18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18399 #include <limits.h>
18400 Syntax error
18401 _ACEOF
18402 if ac_fn_c_try_cpp "$LINENO"
18403 then :
18404
18405 else $as_nop
18406 # Broken: fails on valid input.
18407 continue
18408 fi
18409 rm -f conftest.err conftest.i conftest.$ac_ext
18410
18411 # OK, works on sane cases. Now check whether nonexistent headers
18412 # can be detected and how.
18413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h. */
18415 #include <ac_nonexistent.h>
18416 _ACEOF
18417 if ac_fn_c_try_cpp "$LINENO"
18418 then :
18419 # Broken: success on invalid input.
18420 continue
18421 else $as_nop
18422 # Passes both tests.
18423 ac_preproc_ok=:
18424 break
18425 fi
18426 rm -f conftest.err conftest.i conftest.$ac_ext
18427
18428 done
18429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18430 rm -f conftest.i conftest.err conftest.$ac_ext
18431 if $ac_preproc_ok
18432 then :
18433
18434 else $as_nop
18435 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18436 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18437 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
18438 See \`config.log' for more details" "$LINENO" 5; }
18439 fi
18440
18441 ac_ext=c
18442 ac_cpp='$CPP $CPPFLAGS'
18443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18446
18447
18448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18449 printf %s "checking whether ln -s works... " >&6; }
18450 LN_S=$as_ln_s
18451 if test "$LN_S" = "ln -s"; then
18452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18453 printf "%s\n" "yes" >&6; }
18454 else
18455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18456 printf "%s\n" "no, using $LN_S" >&6; }
18457 fi
18458
18459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18460 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18461 set x ${MAKE-make}
18462 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18463 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
18464 then :
18465 printf %s "(cached) " >&6
18466 else $as_nop
18467 cat >conftest.make <<\_ACEOF
18468 SHELL = /bin/sh
18469 all:
18470 @echo '@@@%%%=$(MAKE)=@@@%%%'
18471 _ACEOF
18472 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18473 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18474 *@@@%%%=?*=@@@%%%*)
18475 eval ac_cv_prog_make_${ac_make}_set=yes;;
18476 *)
18477 eval ac_cv_prog_make_${ac_make}_set=no;;
18478 esac
18479 rm -f conftest.make
18480 fi
18481 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18483 printf "%s\n" "yes" >&6; }
18484 SET_MAKE=
18485 else
18486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18487 printf "%s\n" "no" >&6; }
18488 SET_MAKE="MAKE=${MAKE-make}"
18489 fi
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18501 if test -n "$ac_tool_prefix"; then
18502 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18503 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18505 printf %s "checking for $ac_word... " >&6; }
18506 if test ${ac_cv_path_PKG_CONFIG+y}
18507 then :
18508 printf %s "(cached) " >&6
18509 else $as_nop
18510 case $PKG_CONFIG in
18511 [\\/]* | ?:[\\/]*)
18512 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18513 ;;
18514 *)
18515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18516 for as_dir in $PATH
18517 do
18518 IFS=$as_save_IFS
18519 case $as_dir in #(((
18520 '') as_dir=./ ;;
18521 */) ;;
18522 *) as_dir=$as_dir/ ;;
18523 esac
18524 for ac_exec_ext in '' $ac_executable_extensions; do
18525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18526 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18528 break 2
18529 fi
18530 done
18531 done
18532 IFS=$as_save_IFS
18533
18534 ;;
18535 esac
18536 fi
18537 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18538 if test -n "$PKG_CONFIG"; then
18539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18540 printf "%s\n" "$PKG_CONFIG" >&6; }
18541 else
18542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18543 printf "%s\n" "no" >&6; }
18544 fi
18545
18546
18547 fi
18548 if test -z "$ac_cv_path_PKG_CONFIG"; then
18549 ac_pt_PKG_CONFIG=$PKG_CONFIG
18550 # Extract the first word of "pkg-config", so it can be a program name with args.
18551 set dummy pkg-config; ac_word=$2
18552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18553 printf %s "checking for $ac_word... " >&6; }
18554 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
18555 then :
18556 printf %s "(cached) " >&6
18557 else $as_nop
18558 case $ac_pt_PKG_CONFIG in
18559 [\\/]* | ?:[\\/]*)
18560 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18561 ;;
18562 *)
18563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18564 for as_dir in $PATH
18565 do
18566 IFS=$as_save_IFS
18567 case $as_dir in #(((
18568 '') as_dir=./ ;;
18569 */) ;;
18570 *) as_dir=$as_dir/ ;;
18571 esac
18572 for ac_exec_ext in '' $ac_executable_extensions; do
18573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18574 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18576 break 2
18577 fi
18578 done
18579 done
18580 IFS=$as_save_IFS
18581
18582 ;;
18583 esac
18584 fi
18585 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18586 if test -n "$ac_pt_PKG_CONFIG"; then
18587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18588 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
18589 else
18590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18591 printf "%s\n" "no" >&6; }
18592 fi
18593
18594 if test "x$ac_pt_PKG_CONFIG" = x; then
18595 PKG_CONFIG=""
18596 else
18597 case $cross_compiling:$ac_tool_warned in
18598 yes:)
18599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18600 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18601 ac_tool_warned=yes ;;
18602 esac
18603 PKG_CONFIG=$ac_pt_PKG_CONFIG
18604 fi
18605 else
18606 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18607 fi
18608
18609 fi
18610 if test -n "$PKG_CONFIG"; then
18611 _pkg_min_version=0.20
18612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18613 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18614 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18616 printf "%s\n" "yes" >&6; }
18617 else
18618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18619 printf "%s\n" "no" >&6; }
18620 PKG_CONFIG=""
18621 fi
18622 fi
18623
18624 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=false
18625 ac_ext=cpp
18626 ac_cpp='$CXXCPP $CPPFLAGS'
18627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18630 ac_success=no
18631
18632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
18633 printf %s "checking whether $CXX supports C++17 features by default... " >&6; }
18634 if test ${ax_cv_cxx_compile_cxx17+y}
18635 then :
18636 printf %s "(cached) " >&6
18637 else $as_nop
18638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h. */
18640
18641
18642 // If the compiler admits that it is not ready for C++11, why torture it?
18643 // Hopefully, this will speed up the test.
18644
18645 #ifndef __cplusplus
18646
18647 #error "This is not a C++ compiler"
18648
18649 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
18650 // only set it correctly if /Zc:__cplusplus is specified as well as a
18651 // /std:c++NN switch:
18652 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
18653 #elif __cplusplus < 201103L && !defined _MSC_VER
18654
18655 #error "This is not a C++11 compiler"
18656
18657 #else
18658
18659 namespace cxx11
18660 {
18661
18662 namespace test_static_assert
18663 {
18664
18665 template <typename T>
18666 struct check
18667 {
18668 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18669 };
18670
18671 }
18672
18673 namespace test_final_override
18674 {
18675
18676 struct Base
18677 {
18678 virtual ~Base() {}
18679 virtual void f() {}
18680 };
18681
18682 struct Derived : public Base
18683 {
18684 virtual ~Derived() override {}
18685 virtual void f() override {}
18686 };
18687
18688 }
18689
18690 namespace test_double_right_angle_brackets
18691 {
18692
18693 template < typename T >
18694 struct check {};
18695
18696 typedef check<void> single_type;
18697 typedef check<check<void>> double_type;
18698 typedef check<check<check<void>>> triple_type;
18699 typedef check<check<check<check<void>>>> quadruple_type;
18700
18701 }
18702
18703 namespace test_decltype
18704 {
18705
18706 int
18707 f()
18708 {
18709 int a = 1;
18710 decltype(a) b = 2;
18711 return a + b;
18712 }
18713
18714 }
18715
18716 namespace test_type_deduction
18717 {
18718
18719 template < typename T1, typename T2 >
18720 struct is_same
18721 {
18722 static const bool value = false;
18723 };
18724
18725 template < typename T >
18726 struct is_same<T, T>
18727 {
18728 static const bool value = true;
18729 };
18730
18731 template < typename T1, typename T2 >
18732 auto
18733 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18734 {
18735 return a1 + a2;
18736 }
18737
18738 int
18739 test(const int c, volatile int v)
18740 {
18741 static_assert(is_same<int, decltype(0)>::value == true, "");
18742 static_assert(is_same<int, decltype(c)>::value == false, "");
18743 static_assert(is_same<int, decltype(v)>::value == false, "");
18744 auto ac = c;
18745 auto av = v;
18746 auto sumi = ac + av + 'x';
18747 auto sumf = ac + av + 1.0;
18748 static_assert(is_same<int, decltype(ac)>::value == true, "");
18749 static_assert(is_same<int, decltype(av)>::value == true, "");
18750 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18751 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18752 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18753 return (sumf > 0.0) ? sumi : add(c, v);
18754 }
18755
18756 }
18757
18758 namespace test_noexcept
18759 {
18760
18761 int f() { return 0; }
18762 int g() noexcept { return 0; }
18763
18764 static_assert(noexcept(f()) == false, "");
18765 static_assert(noexcept(g()) == true, "");
18766
18767 }
18768
18769 namespace test_constexpr
18770 {
18771
18772 template < typename CharT >
18773 unsigned long constexpr
18774 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18775 {
18776 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18777 }
18778
18779 template < typename CharT >
18780 unsigned long constexpr
18781 strlen_c(const CharT *const s) noexcept
18782 {
18783 return strlen_c_r(s, 0UL);
18784 }
18785
18786 static_assert(strlen_c("") == 0UL, "");
18787 static_assert(strlen_c("1") == 1UL, "");
18788 static_assert(strlen_c("example") == 7UL, "");
18789 static_assert(strlen_c("another\0example") == 7UL, "");
18790
18791 }
18792
18793 namespace test_rvalue_references
18794 {
18795
18796 template < int N >
18797 struct answer
18798 {
18799 static constexpr int value = N;
18800 };
18801
18802 answer<1> f(int&) { return answer<1>(); }
18803 answer<2> f(const int&) { return answer<2>(); }
18804 answer<3> f(int&&) { return answer<3>(); }
18805
18806 void
18807 test()
18808 {
18809 int i = 0;
18810 const int c = 0;
18811 static_assert(decltype(f(i))::value == 1, "");
18812 static_assert(decltype(f(c))::value == 2, "");
18813 static_assert(decltype(f(0))::value == 3, "");
18814 }
18815
18816 }
18817
18818 namespace test_uniform_initialization
18819 {
18820
18821 struct test
18822 {
18823 static const int zero {};
18824 static const int one {1};
18825 };
18826
18827 static_assert(test::zero == 0, "");
18828 static_assert(test::one == 1, "");
18829
18830 }
18831
18832 namespace test_lambdas
18833 {
18834
18835 void
18836 test1()
18837 {
18838 auto lambda1 = [](){};
18839 auto lambda2 = lambda1;
18840 lambda1();
18841 lambda2();
18842 }
18843
18844 int
18845 test2()
18846 {
18847 auto a = [](int i, int j){ return i + j; }(1, 2);
18848 auto b = []() -> int { return '0'; }();
18849 auto c = [=](){ return a + b; }();
18850 auto d = [&](){ return c; }();
18851 auto e = [a, &b](int x) mutable {
18852 const auto identity = [](int y){ return y; };
18853 for (auto i = 0; i < a; ++i)
18854 a += b--;
18855 return x + identity(a + b);
18856 }(0);
18857 return a + b + c + d + e;
18858 }
18859
18860 int
18861 test3()
18862 {
18863 const auto nullary = [](){ return 0; };
18864 const auto unary = [](int x){ return x; };
18865 using nullary_t = decltype(nullary);
18866 using unary_t = decltype(unary);
18867 const auto higher1st = [](nullary_t f){ return f(); };
18868 const auto higher2nd = [unary](nullary_t f1){
18869 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18870 };
18871 return higher1st(nullary) + higher2nd(nullary)(unary);
18872 }
18873
18874 }
18875
18876 namespace test_variadic_templates
18877 {
18878
18879 template <int...>
18880 struct sum;
18881
18882 template <int N0, int... N1toN>
18883 struct sum<N0, N1toN...>
18884 {
18885 static constexpr auto value = N0 + sum<N1toN...>::value;
18886 };
18887
18888 template <>
18889 struct sum<>
18890 {
18891 static constexpr auto value = 0;
18892 };
18893
18894 static_assert(sum<>::value == 0, "");
18895 static_assert(sum<1>::value == 1, "");
18896 static_assert(sum<23>::value == 23, "");
18897 static_assert(sum<1, 2>::value == 3, "");
18898 static_assert(sum<5, 5, 11>::value == 21, "");
18899 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18900
18901 }
18902
18903 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18904 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18905 // because of this.
18906 namespace test_template_alias_sfinae
18907 {
18908
18909 struct foo {};
18910
18911 template<typename T>
18912 using member = typename T::member_type;
18913
18914 template<typename T>
18915 void func(...) {}
18916
18917 template<typename T>
18918 void func(member<T>*) {}
18919
18920 void test();
18921
18922 void test() { func<foo>(0); }
18923
18924 }
18925
18926 } // namespace cxx11
18927
18928 #endif // __cplusplus >= 201103L
18929
18930
18931
18932
18933 // If the compiler admits that it is not ready for C++14, why torture it?
18934 // Hopefully, this will speed up the test.
18935
18936 #ifndef __cplusplus
18937
18938 #error "This is not a C++ compiler"
18939
18940 #elif __cplusplus < 201402L && !defined _MSC_VER
18941
18942 #error "This is not a C++14 compiler"
18943
18944 #else
18945
18946 namespace cxx14
18947 {
18948
18949 namespace test_polymorphic_lambdas
18950 {
18951
18952 int
18953 test()
18954 {
18955 const auto lambda = [](auto&&... args){
18956 const auto istiny = [](auto x){
18957 return (sizeof(x) == 1UL) ? 1 : 0;
18958 };
18959 const int aretiny[] = { istiny(args)... };
18960 return aretiny[0];
18961 };
18962 return lambda(1, 1L, 1.0f, '1');
18963 }
18964
18965 }
18966
18967 namespace test_binary_literals
18968 {
18969
18970 constexpr auto ivii = 0b0000000000101010;
18971 static_assert(ivii == 42, "wrong value");
18972
18973 }
18974
18975 namespace test_generalized_constexpr
18976 {
18977
18978 template < typename CharT >
18979 constexpr unsigned long
18980 strlen_c(const CharT *const s) noexcept
18981 {
18982 auto length = 0UL;
18983 for (auto p = s; *p; ++p)
18984 ++length;
18985 return length;
18986 }
18987
18988 static_assert(strlen_c("") == 0UL, "");
18989 static_assert(strlen_c("x") == 1UL, "");
18990 static_assert(strlen_c("test") == 4UL, "");
18991 static_assert(strlen_c("another\0test") == 7UL, "");
18992
18993 }
18994
18995 namespace test_lambda_init_capture
18996 {
18997
18998 int
18999 test()
19000 {
19001 auto x = 0;
19002 const auto lambda1 = [a = x](int b){ return a + b; };
19003 const auto lambda2 = [a = lambda1(x)](){ return a; };
19004 return lambda2();
19005 }
19006
19007 }
19008
19009 namespace test_digit_separators
19010 {
19011
19012 constexpr auto ten_million = 100'000'000;
19013 static_assert(ten_million == 100000000, "");
19014
19015 }
19016
19017 namespace test_return_type_deduction
19018 {
19019
19020 auto f(int& x) { return x; }
19021 decltype(auto) g(int& x) { return x; }
19022
19023 template < typename T1, typename T2 >
19024 struct is_same
19025 {
19026 static constexpr auto value = false;
19027 };
19028
19029 template < typename T >
19030 struct is_same<T, T>
19031 {
19032 static constexpr auto value = true;
19033 };
19034
19035 int
19036 test()
19037 {
19038 auto x = 0;
19039 static_assert(is_same<int, decltype(f(x))>::value, "");
19040 static_assert(is_same<int&, decltype(g(x))>::value, "");
19041 return x;
19042 }
19043
19044 }
19045
19046 } // namespace cxx14
19047
19048 #endif // __cplusplus >= 201402L
19049
19050
19051
19052
19053 // If the compiler admits that it is not ready for C++17, why torture it?
19054 // Hopefully, this will speed up the test.
19055
19056 #ifndef __cplusplus
19057
19058 #error "This is not a C++ compiler"
19059
19060 #elif __cplusplus < 201703L && !defined _MSC_VER
19061
19062 #error "This is not a C++17 compiler"
19063
19064 #else
19065
19066 #include <initializer_list>
19067 #include <utility>
19068 #include <type_traits>
19069
19070 namespace cxx17
19071 {
19072
19073 namespace test_constexpr_lambdas
19074 {
19075
19076 constexpr int foo = [](){return 42;}();
19077
19078 }
19079
19080 namespace test::nested_namespace::definitions
19081 {
19082
19083 }
19084
19085 namespace test_fold_expression
19086 {
19087
19088 template<typename... Args>
19089 int multiply(Args... args)
19090 {
19091 return (args * ... * 1);
19092 }
19093
19094 template<typename... Args>
19095 bool all(Args... args)
19096 {
19097 return (args && ...);
19098 }
19099
19100 }
19101
19102 namespace test_extended_static_assert
19103 {
19104
19105 static_assert (true);
19106
19107 }
19108
19109 namespace test_auto_brace_init_list
19110 {
19111
19112 auto foo = {5};
19113 auto bar {5};
19114
19115 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
19116 static_assert(std::is_same<int, decltype(bar)>::value);
19117 }
19118
19119 namespace test_typename_in_template_template_parameter
19120 {
19121
19122 template<template<typename> typename X> struct D;
19123
19124 }
19125
19126 namespace test_fallthrough_nodiscard_maybe_unused_attributes
19127 {
19128
19129 int f1()
19130 {
19131 return 42;
19132 }
19133
19134 [[nodiscard]] int f2()
19135 {
19136 [[maybe_unused]] auto unused = f1();
19137
19138 switch (f1())
19139 {
19140 case 17:
19141 f1();
19142 [[fallthrough]];
19143 case 42:
19144 f1();
19145 }
19146 return f1();
19147 }
19148
19149 }
19150
19151 namespace test_extended_aggregate_initialization
19152 {
19153
19154 struct base1
19155 {
19156 int b1, b2 = 42;
19157 };
19158
19159 struct base2
19160 {
19161 base2() {
19162 b3 = 42;
19163 }
19164 int b3;
19165 };
19166
19167 struct derived : base1, base2
19168 {
19169 int d;
19170 };
19171
19172 derived d1 {{1, 2}, {}, 4}; // full initialization
19173 derived d2 {{}, {}, 4}; // value-initialized bases
19174
19175 }
19176
19177 namespace test_general_range_based_for_loop
19178 {
19179
19180 struct iter
19181 {
19182 int i;
19183
19184 int& operator* ()
19185 {
19186 return i;
19187 }
19188
19189 const int& operator* () const
19190 {
19191 return i;
19192 }
19193
19194 iter& operator++()
19195 {
19196 ++i;
19197 return *this;
19198 }
19199 };
19200
19201 struct sentinel
19202 {
19203 int i;
19204 };
19205
19206 bool operator== (const iter& i, const sentinel& s)
19207 {
19208 return i.i == s.i;
19209 }
19210
19211 bool operator!= (const iter& i, const sentinel& s)
19212 {
19213 return !(i == s);
19214 }
19215
19216 struct range
19217 {
19218 iter begin() const
19219 {
19220 return {0};
19221 }
19222
19223 sentinel end() const
19224 {
19225 return {5};
19226 }
19227 };
19228
19229 void f()
19230 {
19231 range r {};
19232
19233 for (auto i : r)
19234 {
19235 [[maybe_unused]] auto v = i;
19236 }
19237 }
19238
19239 }
19240
19241 namespace test_lambda_capture_asterisk_this_by_value
19242 {
19243
19244 struct t
19245 {
19246 int i;
19247 int foo()
19248 {
19249 return [*this]()
19250 {
19251 return i;
19252 }();
19253 }
19254 };
19255
19256 }
19257
19258 namespace test_enum_class_construction
19259 {
19260
19261 enum class byte : unsigned char
19262 {};
19263
19264 byte foo {42};
19265
19266 }
19267
19268 namespace test_constexpr_if
19269 {
19270
19271 template <bool cond>
19272 int f ()
19273 {
19274 if constexpr(cond)
19275 {
19276 return 13;
19277 }
19278 else
19279 {
19280 return 42;
19281 }
19282 }
19283
19284 }
19285
19286 namespace test_selection_statement_with_initializer
19287 {
19288
19289 int f()
19290 {
19291 return 13;
19292 }
19293
19294 int f2()
19295 {
19296 if (auto i = f(); i > 0)
19297 {
19298 return 3;
19299 }
19300
19301 switch (auto i = f(); i + 4)
19302 {
19303 case 17:
19304 return 2;
19305
19306 default:
19307 return 1;
19308 }
19309 }
19310
19311 }
19312
19313 namespace test_template_argument_deduction_for_class_templates
19314 {
19315
19316 template <typename T1, typename T2>
19317 struct pair
19318 {
19319 pair (T1 p1, T2 p2)
19320 : m1 {p1},
19321 m2 {p2}
19322 {}
19323
19324 T1 m1;
19325 T2 m2;
19326 };
19327
19328 void f()
19329 {
19330 [[maybe_unused]] auto p = pair{13, 42u};
19331 }
19332
19333 }
19334
19335 namespace test_non_type_auto_template_parameters
19336 {
19337
19338 template <auto n>
19339 struct B
19340 {};
19341
19342 B<5> b1;
19343 B<'a'> b2;
19344
19345 }
19346
19347 namespace test_structured_bindings
19348 {
19349
19350 int arr[2] = { 1, 2 };
19351 std::pair<int, int> pr = { 1, 2 };
19352
19353 auto f1() -> int(&)[2]
19354 {
19355 return arr;
19356 }
19357
19358 auto f2() -> std::pair<int, int>&
19359 {
19360 return pr;
19361 }
19362
19363 struct S
19364 {
19365 int x1 : 2;
19366 volatile double y1;
19367 };
19368
19369 S f3()
19370 {
19371 return {};
19372 }
19373
19374 auto [ x1, y1 ] = f1();
19375 auto& [ xr1, yr1 ] = f1();
19376 auto [ x2, y2 ] = f2();
19377 auto& [ xr2, yr2 ] = f2();
19378 const auto [ x3, y3 ] = f3();
19379
19380 }
19381
19382 namespace test_exception_spec_type_system
19383 {
19384
19385 struct Good {};
19386 struct Bad {};
19387
19388 void g1() noexcept;
19389 void g2();
19390
19391 template<typename T>
19392 Bad
19393 f(T*, T*);
19394
19395 template<typename T1, typename T2>
19396 Good
19397 f(T1*, T2*);
19398
19399 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
19400
19401 }
19402
19403 namespace test_inline_variables
19404 {
19405
19406 template<class T> void f(T)
19407 {}
19408
19409 template<class T> inline T g(T)
19410 {
19411 return T{};
19412 }
19413
19414 template<> inline void f<>(int)
19415 {}
19416
19417 template<> int g<>(int)
19418 {
19419 return 5;
19420 }
19421
19422 }
19423
19424 } // namespace cxx17
19425
19426 #endif // __cplusplus < 201703L && !defined _MSC_VER
19427
19428
19429
19430 _ACEOF
19431 if ac_fn_cxx_try_compile "$LINENO"
19432 then :
19433 ax_cv_cxx_compile_cxx17=yes
19434 else $as_nop
19435 ax_cv_cxx_compile_cxx17=no
19436 fi
19437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19438 fi
19439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
19440 printf "%s\n" "$ax_cv_cxx_compile_cxx17" >&6; }
19441 if test x$ax_cv_cxx_compile_cxx17 = xyes; then
19442 ac_success=yes
19443 fi
19444
19445 if test x$ac_success = xno; then
19446 for alternative in ${ax_cxx_compile_alternatives}; do
19447 switch="-std=gnu++${alternative}"
19448 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
19449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
19450 printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
19451 if eval test \${$cachevar+y}
19452 then :
19453 printf %s "(cached) " >&6
19454 else $as_nop
19455 ac_save_CXX="$CXX"
19456 CXX="$CXX $switch"
19457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19458 /* end confdefs.h. */
19459
19460
19461 // If the compiler admits that it is not ready for C++11, why torture it?
19462 // Hopefully, this will speed up the test.
19463
19464 #ifndef __cplusplus
19465
19466 #error "This is not a C++ compiler"
19467
19468 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
19469 // only set it correctly if /Zc:__cplusplus is specified as well as a
19470 // /std:c++NN switch:
19471 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
19472 #elif __cplusplus < 201103L && !defined _MSC_VER
19473
19474 #error "This is not a C++11 compiler"
19475
19476 #else
19477
19478 namespace cxx11
19479 {
19480
19481 namespace test_static_assert
19482 {
19483
19484 template <typename T>
19485 struct check
19486 {
19487 static_assert(sizeof(int) <= sizeof(T), "not big enough");
19488 };
19489
19490 }
19491
19492 namespace test_final_override
19493 {
19494
19495 struct Base
19496 {
19497 virtual ~Base() {}
19498 virtual void f() {}
19499 };
19500
19501 struct Derived : public Base
19502 {
19503 virtual ~Derived() override {}
19504 virtual void f() override {}
19505 };
19506
19507 }
19508
19509 namespace test_double_right_angle_brackets
19510 {
19511
19512 template < typename T >
19513 struct check {};
19514
19515 typedef check<void> single_type;
19516 typedef check<check<void>> double_type;
19517 typedef check<check<check<void>>> triple_type;
19518 typedef check<check<check<check<void>>>> quadruple_type;
19519
19520 }
19521
19522 namespace test_decltype
19523 {
19524
19525 int
19526 f()
19527 {
19528 int a = 1;
19529 decltype(a) b = 2;
19530 return a + b;
19531 }
19532
19533 }
19534
19535 namespace test_type_deduction
19536 {
19537
19538 template < typename T1, typename T2 >
19539 struct is_same
19540 {
19541 static const bool value = false;
19542 };
19543
19544 template < typename T >
19545 struct is_same<T, T>
19546 {
19547 static const bool value = true;
19548 };
19549
19550 template < typename T1, typename T2 >
19551 auto
19552 add(T1 a1, T2 a2) -> decltype(a1 + a2)
19553 {
19554 return a1 + a2;
19555 }
19556
19557 int
19558 test(const int c, volatile int v)
19559 {
19560 static_assert(is_same<int, decltype(0)>::value == true, "");
19561 static_assert(is_same<int, decltype(c)>::value == false, "");
19562 static_assert(is_same<int, decltype(v)>::value == false, "");
19563 auto ac = c;
19564 auto av = v;
19565 auto sumi = ac + av + 'x';
19566 auto sumf = ac + av + 1.0;
19567 static_assert(is_same<int, decltype(ac)>::value == true, "");
19568 static_assert(is_same<int, decltype(av)>::value == true, "");
19569 static_assert(is_same<int, decltype(sumi)>::value == true, "");
19570 static_assert(is_same<int, decltype(sumf)>::value == false, "");
19571 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
19572 return (sumf > 0.0) ? sumi : add(c, v);
19573 }
19574
19575 }
19576
19577 namespace test_noexcept
19578 {
19579
19580 int f() { return 0; }
19581 int g() noexcept { return 0; }
19582
19583 static_assert(noexcept(f()) == false, "");
19584 static_assert(noexcept(g()) == true, "");
19585
19586 }
19587
19588 namespace test_constexpr
19589 {
19590
19591 template < typename CharT >
19592 unsigned long constexpr
19593 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
19594 {
19595 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
19596 }
19597
19598 template < typename CharT >
19599 unsigned long constexpr
19600 strlen_c(const CharT *const s) noexcept
19601 {
19602 return strlen_c_r(s, 0UL);
19603 }
19604
19605 static_assert(strlen_c("") == 0UL, "");
19606 static_assert(strlen_c("1") == 1UL, "");
19607 static_assert(strlen_c("example") == 7UL, "");
19608 static_assert(strlen_c("another\0example") == 7UL, "");
19609
19610 }
19611
19612 namespace test_rvalue_references
19613 {
19614
19615 template < int N >
19616 struct answer
19617 {
19618 static constexpr int value = N;
19619 };
19620
19621 answer<1> f(int&) { return answer<1>(); }
19622 answer<2> f(const int&) { return answer<2>(); }
19623 answer<3> f(int&&) { return answer<3>(); }
19624
19625 void
19626 test()
19627 {
19628 int i = 0;
19629 const int c = 0;
19630 static_assert(decltype(f(i))::value == 1, "");
19631 static_assert(decltype(f(c))::value == 2, "");
19632 static_assert(decltype(f(0))::value == 3, "");
19633 }
19634
19635 }
19636
19637 namespace test_uniform_initialization
19638 {
19639
19640 struct test
19641 {
19642 static const int zero {};
19643 static const int one {1};
19644 };
19645
19646 static_assert(test::zero == 0, "");
19647 static_assert(test::one == 1, "");
19648
19649 }
19650
19651 namespace test_lambdas
19652 {
19653
19654 void
19655 test1()
19656 {
19657 auto lambda1 = [](){};
19658 auto lambda2 = lambda1;
19659 lambda1();
19660 lambda2();
19661 }
19662
19663 int
19664 test2()
19665 {
19666 auto a = [](int i, int j){ return i + j; }(1, 2);
19667 auto b = []() -> int { return '0'; }();
19668 auto c = [=](){ return a + b; }();
19669 auto d = [&](){ return c; }();
19670 auto e = [a, &b](int x) mutable {
19671 const auto identity = [](int y){ return y; };
19672 for (auto i = 0; i < a; ++i)
19673 a += b--;
19674 return x + identity(a + b);
19675 }(0);
19676 return a + b + c + d + e;
19677 }
19678
19679 int
19680 test3()
19681 {
19682 const auto nullary = [](){ return 0; };
19683 const auto unary = [](int x){ return x; };
19684 using nullary_t = decltype(nullary);
19685 using unary_t = decltype(unary);
19686 const auto higher1st = [](nullary_t f){ return f(); };
19687 const auto higher2nd = [unary](nullary_t f1){
19688 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
19689 };
19690 return higher1st(nullary) + higher2nd(nullary)(unary);
19691 }
19692
19693 }
19694
19695 namespace test_variadic_templates
19696 {
19697
19698 template <int...>
19699 struct sum;
19700
19701 template <int N0, int... N1toN>
19702 struct sum<N0, N1toN...>
19703 {
19704 static constexpr auto value = N0 + sum<N1toN...>::value;
19705 };
19706
19707 template <>
19708 struct sum<>
19709 {
19710 static constexpr auto value = 0;
19711 };
19712
19713 static_assert(sum<>::value == 0, "");
19714 static_assert(sum<1>::value == 1, "");
19715 static_assert(sum<23>::value == 23, "");
19716 static_assert(sum<1, 2>::value == 3, "");
19717 static_assert(sum<5, 5, 11>::value == 21, "");
19718 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
19719
19720 }
19721
19722 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
19723 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
19724 // because of this.
19725 namespace test_template_alias_sfinae
19726 {
19727
19728 struct foo {};
19729
19730 template<typename T>
19731 using member = typename T::member_type;
19732
19733 template<typename T>
19734 void func(...) {}
19735
19736 template<typename T>
19737 void func(member<T>*) {}
19738
19739 void test();
19740
19741 void test() { func<foo>(0); }
19742
19743 }
19744
19745 } // namespace cxx11
19746
19747 #endif // __cplusplus >= 201103L
19748
19749
19750
19751
19752 // If the compiler admits that it is not ready for C++14, why torture it?
19753 // Hopefully, this will speed up the test.
19754
19755 #ifndef __cplusplus
19756
19757 #error "This is not a C++ compiler"
19758
19759 #elif __cplusplus < 201402L && !defined _MSC_VER
19760
19761 #error "This is not a C++14 compiler"
19762
19763 #else
19764
19765 namespace cxx14
19766 {
19767
19768 namespace test_polymorphic_lambdas
19769 {
19770
19771 int
19772 test()
19773 {
19774 const auto lambda = [](auto&&... args){
19775 const auto istiny = [](auto x){
19776 return (sizeof(x) == 1UL) ? 1 : 0;
19777 };
19778 const int aretiny[] = { istiny(args)... };
19779 return aretiny[0];
19780 };
19781 return lambda(1, 1L, 1.0f, '1');
19782 }
19783
19784 }
19785
19786 namespace test_binary_literals
19787 {
19788
19789 constexpr auto ivii = 0b0000000000101010;
19790 static_assert(ivii == 42, "wrong value");
19791
19792 }
19793
19794 namespace test_generalized_constexpr
19795 {
19796
19797 template < typename CharT >
19798 constexpr unsigned long
19799 strlen_c(const CharT *const s) noexcept
19800 {
19801 auto length = 0UL;
19802 for (auto p = s; *p; ++p)
19803 ++length;
19804 return length;
19805 }
19806
19807 static_assert(strlen_c("") == 0UL, "");
19808 static_assert(strlen_c("x") == 1UL, "");
19809 static_assert(strlen_c("test") == 4UL, "");
19810 static_assert(strlen_c("another\0test") == 7UL, "");
19811
19812 }
19813
19814 namespace test_lambda_init_capture
19815 {
19816
19817 int
19818 test()
19819 {
19820 auto x = 0;
19821 const auto lambda1 = [a = x](int b){ return a + b; };
19822 const auto lambda2 = [a = lambda1(x)](){ return a; };
19823 return lambda2();
19824 }
19825
19826 }
19827
19828 namespace test_digit_separators
19829 {
19830
19831 constexpr auto ten_million = 100'000'000;
19832 static_assert(ten_million == 100000000, "");
19833
19834 }
19835
19836 namespace test_return_type_deduction
19837 {
19838
19839 auto f(int& x) { return x; }
19840 decltype(auto) g(int& x) { return x; }
19841
19842 template < typename T1, typename T2 >
19843 struct is_same
19844 {
19845 static constexpr auto value = false;
19846 };
19847
19848 template < typename T >
19849 struct is_same<T, T>
19850 {
19851 static constexpr auto value = true;
19852 };
19853
19854 int
19855 test()
19856 {
19857 auto x = 0;
19858 static_assert(is_same<int, decltype(f(x))>::value, "");
19859 static_assert(is_same<int&, decltype(g(x))>::value, "");
19860 return x;
19861 }
19862
19863 }
19864
19865 } // namespace cxx14
19866
19867 #endif // __cplusplus >= 201402L
19868
19869
19870
19871
19872 // If the compiler admits that it is not ready for C++17, why torture it?
19873 // Hopefully, this will speed up the test.
19874
19875 #ifndef __cplusplus
19876
19877 #error "This is not a C++ compiler"
19878
19879 #elif __cplusplus < 201703L && !defined _MSC_VER
19880
19881 #error "This is not a C++17 compiler"
19882
19883 #else
19884
19885 #include <initializer_list>
19886 #include <utility>
19887 #include <type_traits>
19888
19889 namespace cxx17
19890 {
19891
19892 namespace test_constexpr_lambdas
19893 {
19894
19895 constexpr int foo = [](){return 42;}();
19896
19897 }
19898
19899 namespace test::nested_namespace::definitions
19900 {
19901
19902 }
19903
19904 namespace test_fold_expression
19905 {
19906
19907 template<typename... Args>
19908 int multiply(Args... args)
19909 {
19910 return (args * ... * 1);
19911 }
19912
19913 template<typename... Args>
19914 bool all(Args... args)
19915 {
19916 return (args && ...);
19917 }
19918
19919 }
19920
19921 namespace test_extended_static_assert
19922 {
19923
19924 static_assert (true);
19925
19926 }
19927
19928 namespace test_auto_brace_init_list
19929 {
19930
19931 auto foo = {5};
19932 auto bar {5};
19933
19934 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
19935 static_assert(std::is_same<int, decltype(bar)>::value);
19936 }
19937
19938 namespace test_typename_in_template_template_parameter
19939 {
19940
19941 template<template<typename> typename X> struct D;
19942
19943 }
19944
19945 namespace test_fallthrough_nodiscard_maybe_unused_attributes
19946 {
19947
19948 int f1()
19949 {
19950 return 42;
19951 }
19952
19953 [[nodiscard]] int f2()
19954 {
19955 [[maybe_unused]] auto unused = f1();
19956
19957 switch (f1())
19958 {
19959 case 17:
19960 f1();
19961 [[fallthrough]];
19962 case 42:
19963 f1();
19964 }
19965 return f1();
19966 }
19967
19968 }
19969
19970 namespace test_extended_aggregate_initialization
19971 {
19972
19973 struct base1
19974 {
19975 int b1, b2 = 42;
19976 };
19977
19978 struct base2
19979 {
19980 base2() {
19981 b3 = 42;
19982 }
19983 int b3;
19984 };
19985
19986 struct derived : base1, base2
19987 {
19988 int d;
19989 };
19990
19991 derived d1 {{1, 2}, {}, 4}; // full initialization
19992 derived d2 {{}, {}, 4}; // value-initialized bases
19993
19994 }
19995
19996 namespace test_general_range_based_for_loop
19997 {
19998
19999 struct iter
20000 {
20001 int i;
20002
20003 int& operator* ()
20004 {
20005 return i;
20006 }
20007
20008 const int& operator* () const
20009 {
20010 return i;
20011 }
20012
20013 iter& operator++()
20014 {
20015 ++i;
20016 return *this;
20017 }
20018 };
20019
20020 struct sentinel
20021 {
20022 int i;
20023 };
20024
20025 bool operator== (const iter& i, const sentinel& s)
20026 {
20027 return i.i == s.i;
20028 }
20029
20030 bool operator!= (const iter& i, const sentinel& s)
20031 {
20032 return !(i == s);
20033 }
20034
20035 struct range
20036 {
20037 iter begin() const
20038 {
20039 return {0};
20040 }
20041
20042 sentinel end() const
20043 {
20044 return {5};
20045 }
20046 };
20047
20048 void f()
20049 {
20050 range r {};
20051
20052 for (auto i : r)
20053 {
20054 [[maybe_unused]] auto v = i;
20055 }
20056 }
20057
20058 }
20059
20060 namespace test_lambda_capture_asterisk_this_by_value
20061 {
20062
20063 struct t
20064 {
20065 int i;
20066 int foo()
20067 {
20068 return [*this]()
20069 {
20070 return i;
20071 }();
20072 }
20073 };
20074
20075 }
20076
20077 namespace test_enum_class_construction
20078 {
20079
20080 enum class byte : unsigned char
20081 {};
20082
20083 byte foo {42};
20084
20085 }
20086
20087 namespace test_constexpr_if
20088 {
20089
20090 template <bool cond>
20091 int f ()
20092 {
20093 if constexpr(cond)
20094 {
20095 return 13;
20096 }
20097 else
20098 {
20099 return 42;
20100 }
20101 }
20102
20103 }
20104
20105 namespace test_selection_statement_with_initializer
20106 {
20107
20108 int f()
20109 {
20110 return 13;
20111 }
20112
20113 int f2()
20114 {
20115 if (auto i = f(); i > 0)
20116 {
20117 return 3;
20118 }
20119
20120 switch (auto i = f(); i + 4)
20121 {
20122 case 17:
20123 return 2;
20124
20125 default:
20126 return 1;
20127 }
20128 }
20129
20130 }
20131
20132 namespace test_template_argument_deduction_for_class_templates
20133 {
20134
20135 template <typename T1, typename T2>
20136 struct pair
20137 {
20138 pair (T1 p1, T2 p2)
20139 : m1 {p1},
20140 m2 {p2}
20141 {}
20142
20143 T1 m1;
20144 T2 m2;
20145 };
20146
20147 void f()
20148 {
20149 [[maybe_unused]] auto p = pair{13, 42u};
20150 }
20151
20152 }
20153
20154 namespace test_non_type_auto_template_parameters
20155 {
20156
20157 template <auto n>
20158 struct B
20159 {};
20160
20161 B<5> b1;
20162 B<'a'> b2;
20163
20164 }
20165
20166 namespace test_structured_bindings
20167 {
20168
20169 int arr[2] = { 1, 2 };
20170 std::pair<int, int> pr = { 1, 2 };
20171
20172 auto f1() -> int(&)[2]
20173 {
20174 return arr;
20175 }
20176
20177 auto f2() -> std::pair<int, int>&
20178 {
20179 return pr;
20180 }
20181
20182 struct S
20183 {
20184 int x1 : 2;
20185 volatile double y1;
20186 };
20187
20188 S f3()
20189 {
20190 return {};
20191 }
20192
20193 auto [ x1, y1 ] = f1();
20194 auto& [ xr1, yr1 ] = f1();
20195 auto [ x2, y2 ] = f2();
20196 auto& [ xr2, yr2 ] = f2();
20197 const auto [ x3, y3 ] = f3();
20198
20199 }
20200
20201 namespace test_exception_spec_type_system
20202 {
20203
20204 struct Good {};
20205 struct Bad {};
20206
20207 void g1() noexcept;
20208 void g2();
20209
20210 template<typename T>
20211 Bad
20212 f(T*, T*);
20213
20214 template<typename T1, typename T2>
20215 Good
20216 f(T1*, T2*);
20217
20218 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
20219
20220 }
20221
20222 namespace test_inline_variables
20223 {
20224
20225 template<class T> void f(T)
20226 {}
20227
20228 template<class T> inline T g(T)
20229 {
20230 return T{};
20231 }
20232
20233 template<> inline void f<>(int)
20234 {}
20235
20236 template<> int g<>(int)
20237 {
20238 return 5;
20239 }
20240
20241 }
20242
20243 } // namespace cxx17
20244
20245 #endif // __cplusplus < 201703L && !defined _MSC_VER
20246
20247
20248
20249 _ACEOF
20250 if ac_fn_cxx_try_compile "$LINENO"
20251 then :
20252 eval $cachevar=yes
20253 else $as_nop
20254 eval $cachevar=no
20255 fi
20256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20257 CXX="$ac_save_CXX"
20258 fi
20259 eval ac_res=\$$cachevar
20260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20261 printf "%s\n" "$ac_res" >&6; }
20262 if eval test x\$$cachevar = xyes; then
20263 CXX="$CXX $switch"
20264 if test -n "$CXXCPP" ; then
20265 CXXCPP="$CXXCPP $switch"
20266 fi
20267 ac_success=yes
20268 break
20269 fi
20270 done
20271 fi
20272
20273 if test x$ac_success = xno; then
20274 for alternative in ${ax_cxx_compile_alternatives}; do
20275 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
20276 if test x"$switch" = xMSVC; then
20277 switch=-std:c++${alternative}
20278 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | $as_tr_sh`
20279 else
20280 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
20281 fi
20282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
20283 printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
20284 if eval test \${$cachevar+y}
20285 then :
20286 printf %s "(cached) " >&6
20287 else $as_nop
20288 ac_save_CXX="$CXX"
20289 CXX="$CXX $switch"
20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h. */
20292
20293
20294 // If the compiler admits that it is not ready for C++11, why torture it?
20295 // Hopefully, this will speed up the test.
20296
20297 #ifndef __cplusplus
20298
20299 #error "This is not a C++ compiler"
20300
20301 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
20302 // only set it correctly if /Zc:__cplusplus is specified as well as a
20303 // /std:c++NN switch:
20304 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
20305 #elif __cplusplus < 201103L && !defined _MSC_VER
20306
20307 #error "This is not a C++11 compiler"
20308
20309 #else
20310
20311 namespace cxx11
20312 {
20313
20314 namespace test_static_assert
20315 {
20316
20317 template <typename T>
20318 struct check
20319 {
20320 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20321 };
20322
20323 }
20324
20325 namespace test_final_override
20326 {
20327
20328 struct Base
20329 {
20330 virtual ~Base() {}
20331 virtual void f() {}
20332 };
20333
20334 struct Derived : public Base
20335 {
20336 virtual ~Derived() override {}
20337 virtual void f() override {}
20338 };
20339
20340 }
20341
20342 namespace test_double_right_angle_brackets
20343 {
20344
20345 template < typename T >
20346 struct check {};
20347
20348 typedef check<void> single_type;
20349 typedef check<check<void>> double_type;
20350 typedef check<check<check<void>>> triple_type;
20351 typedef check<check<check<check<void>>>> quadruple_type;
20352
20353 }
20354
20355 namespace test_decltype
20356 {
20357
20358 int
20359 f()
20360 {
20361 int a = 1;
20362 decltype(a) b = 2;
20363 return a + b;
20364 }
20365
20366 }
20367
20368 namespace test_type_deduction
20369 {
20370
20371 template < typename T1, typename T2 >
20372 struct is_same
20373 {
20374 static const bool value = false;
20375 };
20376
20377 template < typename T >
20378 struct is_same<T, T>
20379 {
20380 static const bool value = true;
20381 };
20382
20383 template < typename T1, typename T2 >
20384 auto
20385 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20386 {
20387 return a1 + a2;
20388 }
20389
20390 int
20391 test(const int c, volatile int v)
20392 {
20393 static_assert(is_same<int, decltype(0)>::value == true, "");
20394 static_assert(is_same<int, decltype(c)>::value == false, "");
20395 static_assert(is_same<int, decltype(v)>::value == false, "");
20396 auto ac = c;
20397 auto av = v;
20398 auto sumi = ac + av + 'x';
20399 auto sumf = ac + av + 1.0;
20400 static_assert(is_same<int, decltype(ac)>::value == true, "");
20401 static_assert(is_same<int, decltype(av)>::value == true, "");
20402 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20403 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20404 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20405 return (sumf > 0.0) ? sumi : add(c, v);
20406 }
20407
20408 }
20409
20410 namespace test_noexcept
20411 {
20412
20413 int f() { return 0; }
20414 int g() noexcept { return 0; }
20415
20416 static_assert(noexcept(f()) == false, "");
20417 static_assert(noexcept(g()) == true, "");
20418
20419 }
20420
20421 namespace test_constexpr
20422 {
20423
20424 template < typename CharT >
20425 unsigned long constexpr
20426 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20427 {
20428 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20429 }
20430
20431 template < typename CharT >
20432 unsigned long constexpr
20433 strlen_c(const CharT *const s) noexcept
20434 {
20435 return strlen_c_r(s, 0UL);
20436 }
20437
20438 static_assert(strlen_c("") == 0UL, "");
20439 static_assert(strlen_c("1") == 1UL, "");
20440 static_assert(strlen_c("example") == 7UL, "");
20441 static_assert(strlen_c("another\0example") == 7UL, "");
20442
20443 }
20444
20445 namespace test_rvalue_references
20446 {
20447
20448 template < int N >
20449 struct answer
20450 {
20451 static constexpr int value = N;
20452 };
20453
20454 answer<1> f(int&) { return answer<1>(); }
20455 answer<2> f(const int&) { return answer<2>(); }
20456 answer<3> f(int&&) { return answer<3>(); }
20457
20458 void
20459 test()
20460 {
20461 int i = 0;
20462 const int c = 0;
20463 static_assert(decltype(f(i))::value == 1, "");
20464 static_assert(decltype(f(c))::value == 2, "");
20465 static_assert(decltype(f(0))::value == 3, "");
20466 }
20467
20468 }
20469
20470 namespace test_uniform_initialization
20471 {
20472
20473 struct test
20474 {
20475 static const int zero {};
20476 static const int one {1};
20477 };
20478
20479 static_assert(test::zero == 0, "");
20480 static_assert(test::one == 1, "");
20481
20482 }
20483
20484 namespace test_lambdas
20485 {
20486
20487 void
20488 test1()
20489 {
20490 auto lambda1 = [](){};
20491 auto lambda2 = lambda1;
20492 lambda1();
20493 lambda2();
20494 }
20495
20496 int
20497 test2()
20498 {
20499 auto a = [](int i, int j){ return i + j; }(1, 2);
20500 auto b = []() -> int { return '0'; }();
20501 auto c = [=](){ return a + b; }();
20502 auto d = [&](){ return c; }();
20503 auto e = [a, &b](int x) mutable {
20504 const auto identity = [](int y){ return y; };
20505 for (auto i = 0; i < a; ++i)
20506 a += b--;
20507 return x + identity(a + b);
20508 }(0);
20509 return a + b + c + d + e;
20510 }
20511
20512 int
20513 test3()
20514 {
20515 const auto nullary = [](){ return 0; };
20516 const auto unary = [](int x){ return x; };
20517 using nullary_t = decltype(nullary);
20518 using unary_t = decltype(unary);
20519 const auto higher1st = [](nullary_t f){ return f(); };
20520 const auto higher2nd = [unary](nullary_t f1){
20521 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20522 };
20523 return higher1st(nullary) + higher2nd(nullary)(unary);
20524 }
20525
20526 }
20527
20528 namespace test_variadic_templates
20529 {
20530
20531 template <int...>
20532 struct sum;
20533
20534 template <int N0, int... N1toN>
20535 struct sum<N0, N1toN...>
20536 {
20537 static constexpr auto value = N0 + sum<N1toN...>::value;
20538 };
20539
20540 template <>
20541 struct sum<>
20542 {
20543 static constexpr auto value = 0;
20544 };
20545
20546 static_assert(sum<>::value == 0, "");
20547 static_assert(sum<1>::value == 1, "");
20548 static_assert(sum<23>::value == 23, "");
20549 static_assert(sum<1, 2>::value == 3, "");
20550 static_assert(sum<5, 5, 11>::value == 21, "");
20551 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20552
20553 }
20554
20555 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20556 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20557 // because of this.
20558 namespace test_template_alias_sfinae
20559 {
20560
20561 struct foo {};
20562
20563 template<typename T>
20564 using member = typename T::member_type;
20565
20566 template<typename T>
20567 void func(...) {}
20568
20569 template<typename T>
20570 void func(member<T>*) {}
20571
20572 void test();
20573
20574 void test() { func<foo>(0); }
20575
20576 }
20577
20578 } // namespace cxx11
20579
20580 #endif // __cplusplus >= 201103L
20581
20582
20583
20584
20585 // If the compiler admits that it is not ready for C++14, why torture it?
20586 // Hopefully, this will speed up the test.
20587
20588 #ifndef __cplusplus
20589
20590 #error "This is not a C++ compiler"
20591
20592 #elif __cplusplus < 201402L && !defined _MSC_VER
20593
20594 #error "This is not a C++14 compiler"
20595
20596 #else
20597
20598 namespace cxx14
20599 {
20600
20601 namespace test_polymorphic_lambdas
20602 {
20603
20604 int
20605 test()
20606 {
20607 const auto lambda = [](auto&&... args){
20608 const auto istiny = [](auto x){
20609 return (sizeof(x) == 1UL) ? 1 : 0;
20610 };
20611 const int aretiny[] = { istiny(args)... };
20612 return aretiny[0];
20613 };
20614 return lambda(1, 1L, 1.0f, '1');
20615 }
20616
20617 }
20618
20619 namespace test_binary_literals
20620 {
20621
20622 constexpr auto ivii = 0b0000000000101010;
20623 static_assert(ivii == 42, "wrong value");
20624
20625 }
20626
20627 namespace test_generalized_constexpr
20628 {
20629
20630 template < typename CharT >
20631 constexpr unsigned long
20632 strlen_c(const CharT *const s) noexcept
20633 {
20634 auto length = 0UL;
20635 for (auto p = s; *p; ++p)
20636 ++length;
20637 return length;
20638 }
20639
20640 static_assert(strlen_c("") == 0UL, "");
20641 static_assert(strlen_c("x") == 1UL, "");
20642 static_assert(strlen_c("test") == 4UL, "");
20643 static_assert(strlen_c("another\0test") == 7UL, "");
20644
20645 }
20646
20647 namespace test_lambda_init_capture
20648 {
20649
20650 int
20651 test()
20652 {
20653 auto x = 0;
20654 const auto lambda1 = [a = x](int b){ return a + b; };
20655 const auto lambda2 = [a = lambda1(x)](){ return a; };
20656 return lambda2();
20657 }
20658
20659 }
20660
20661 namespace test_digit_separators
20662 {
20663
20664 constexpr auto ten_million = 100'000'000;
20665 static_assert(ten_million == 100000000, "");
20666
20667 }
20668
20669 namespace test_return_type_deduction
20670 {
20671
20672 auto f(int& x) { return x; }
20673 decltype(auto) g(int& x) { return x; }
20674
20675 template < typename T1, typename T2 >
20676 struct is_same
20677 {
20678 static constexpr auto value = false;
20679 };
20680
20681 template < typename T >
20682 struct is_same<T, T>
20683 {
20684 static constexpr auto value = true;
20685 };
20686
20687 int
20688 test()
20689 {
20690 auto x = 0;
20691 static_assert(is_same<int, decltype(f(x))>::value, "");
20692 static_assert(is_same<int&, decltype(g(x))>::value, "");
20693 return x;
20694 }
20695
20696 }
20697
20698 } // namespace cxx14
20699
20700 #endif // __cplusplus >= 201402L
20701
20702
20703
20704
20705 // If the compiler admits that it is not ready for C++17, why torture it?
20706 // Hopefully, this will speed up the test.
20707
20708 #ifndef __cplusplus
20709
20710 #error "This is not a C++ compiler"
20711
20712 #elif __cplusplus < 201703L && !defined _MSC_VER
20713
20714 #error "This is not a C++17 compiler"
20715
20716 #else
20717
20718 #include <initializer_list>
20719 #include <utility>
20720 #include <type_traits>
20721
20722 namespace cxx17
20723 {
20724
20725 namespace test_constexpr_lambdas
20726 {
20727
20728 constexpr int foo = [](){return 42;}();
20729
20730 }
20731
20732 namespace test::nested_namespace::definitions
20733 {
20734
20735 }
20736
20737 namespace test_fold_expression
20738 {
20739
20740 template<typename... Args>
20741 int multiply(Args... args)
20742 {
20743 return (args * ... * 1);
20744 }
20745
20746 template<typename... Args>
20747 bool all(Args... args)
20748 {
20749 return (args && ...);
20750 }
20751
20752 }
20753
20754 namespace test_extended_static_assert
20755 {
20756
20757 static_assert (true);
20758
20759 }
20760
20761 namespace test_auto_brace_init_list
20762 {
20763
20764 auto foo = {5};
20765 auto bar {5};
20766
20767 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
20768 static_assert(std::is_same<int, decltype(bar)>::value);
20769 }
20770
20771 namespace test_typename_in_template_template_parameter
20772 {
20773
20774 template<template<typename> typename X> struct D;
20775
20776 }
20777
20778 namespace test_fallthrough_nodiscard_maybe_unused_attributes
20779 {
20780
20781 int f1()
20782 {
20783 return 42;
20784 }
20785
20786 [[nodiscard]] int f2()
20787 {
20788 [[maybe_unused]] auto unused = f1();
20789
20790 switch (f1())
20791 {
20792 case 17:
20793 f1();
20794 [[fallthrough]];
20795 case 42:
20796 f1();
20797 }
20798 return f1();
20799 }
20800
20801 }
20802
20803 namespace test_extended_aggregate_initialization
20804 {
20805
20806 struct base1
20807 {
20808 int b1, b2 = 42;
20809 };
20810
20811 struct base2
20812 {
20813 base2() {
20814 b3 = 42;
20815 }
20816 int b3;
20817 };
20818
20819 struct derived : base1, base2
20820 {
20821 int d;
20822 };
20823
20824 derived d1 {{1, 2}, {}, 4}; // full initialization
20825 derived d2 {{}, {}, 4}; // value-initialized bases
20826
20827 }
20828
20829 namespace test_general_range_based_for_loop
20830 {
20831
20832 struct iter
20833 {
20834 int i;
20835
20836 int& operator* ()
20837 {
20838 return i;
20839 }
20840
20841 const int& operator* () const
20842 {
20843 return i;
20844 }
20845
20846 iter& operator++()
20847 {
20848 ++i;
20849 return *this;
20850 }
20851 };
20852
20853 struct sentinel
20854 {
20855 int i;
20856 };
20857
20858 bool operator== (const iter& i, const sentinel& s)
20859 {
20860 return i.i == s.i;
20861 }
20862
20863 bool operator!= (const iter& i, const sentinel& s)
20864 {
20865 return !(i == s);
20866 }
20867
20868 struct range
20869 {
20870 iter begin() const
20871 {
20872 return {0};
20873 }
20874
20875 sentinel end() const
20876 {
20877 return {5};
20878 }
20879 };
20880
20881 void f()
20882 {
20883 range r {};
20884
20885 for (auto i : r)
20886 {
20887 [[maybe_unused]] auto v = i;
20888 }
20889 }
20890
20891 }
20892
20893 namespace test_lambda_capture_asterisk_this_by_value
20894 {
20895
20896 struct t
20897 {
20898 int i;
20899 int foo()
20900 {
20901 return [*this]()
20902 {
20903 return i;
20904 }();
20905 }
20906 };
20907
20908 }
20909
20910 namespace test_enum_class_construction
20911 {
20912
20913 enum class byte : unsigned char
20914 {};
20915
20916 byte foo {42};
20917
20918 }
20919
20920 namespace test_constexpr_if
20921 {
20922
20923 template <bool cond>
20924 int f ()
20925 {
20926 if constexpr(cond)
20927 {
20928 return 13;
20929 }
20930 else
20931 {
20932 return 42;
20933 }
20934 }
20935
20936 }
20937
20938 namespace test_selection_statement_with_initializer
20939 {
20940
20941 int f()
20942 {
20943 return 13;
20944 }
20945
20946 int f2()
20947 {
20948 if (auto i = f(); i > 0)
20949 {
20950 return 3;
20951 }
20952
20953 switch (auto i = f(); i + 4)
20954 {
20955 case 17:
20956 return 2;
20957
20958 default:
20959 return 1;
20960 }
20961 }
20962
20963 }
20964
20965 namespace test_template_argument_deduction_for_class_templates
20966 {
20967
20968 template <typename T1, typename T2>
20969 struct pair
20970 {
20971 pair (T1 p1, T2 p2)
20972 : m1 {p1},
20973 m2 {p2}
20974 {}
20975
20976 T1 m1;
20977 T2 m2;
20978 };
20979
20980 void f()
20981 {
20982 [[maybe_unused]] auto p = pair{13, 42u};
20983 }
20984
20985 }
20986
20987 namespace test_non_type_auto_template_parameters
20988 {
20989
20990 template <auto n>
20991 struct B
20992 {};
20993
20994 B<5> b1;
20995 B<'a'> b2;
20996
20997 }
20998
20999 namespace test_structured_bindings
21000 {
21001
21002 int arr[2] = { 1, 2 };
21003 std::pair<int, int> pr = { 1, 2 };
21004
21005 auto f1() -> int(&)[2]
21006 {
21007 return arr;
21008 }
21009
21010 auto f2() -> std::pair<int, int>&
21011 {
21012 return pr;
21013 }
21014
21015 struct S
21016 {
21017 int x1 : 2;
21018 volatile double y1;
21019 };
21020
21021 S f3()
21022 {
21023 return {};
21024 }
21025
21026 auto [ x1, y1 ] = f1();
21027 auto& [ xr1, yr1 ] = f1();
21028 auto [ x2, y2 ] = f2();
21029 auto& [ xr2, yr2 ] = f2();
21030 const auto [ x3, y3 ] = f3();
21031
21032 }
21033
21034 namespace test_exception_spec_type_system
21035 {
21036
21037 struct Good {};
21038 struct Bad {};
21039
21040 void g1() noexcept;
21041 void g2();
21042
21043 template<typename T>
21044 Bad
21045 f(T*, T*);
21046
21047 template<typename T1, typename T2>
21048 Good
21049 f(T1*, T2*);
21050
21051 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
21052
21053 }
21054
21055 namespace test_inline_variables
21056 {
21057
21058 template<class T> void f(T)
21059 {}
21060
21061 template<class T> inline T g(T)
21062 {
21063 return T{};
21064 }
21065
21066 template<> inline void f<>(int)
21067 {}
21068
21069 template<> int g<>(int)
21070 {
21071 return 5;
21072 }
21073
21074 }
21075
21076 } // namespace cxx17
21077
21078 #endif // __cplusplus < 201703L && !defined _MSC_VER
21079
21080
21081
21082 _ACEOF
21083 if ac_fn_cxx_try_compile "$LINENO"
21084 then :
21085 eval $cachevar=yes
21086 else $as_nop
21087 eval $cachevar=no
21088 fi
21089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21090 CXX="$ac_save_CXX"
21091 fi
21092 eval ac_res=\$$cachevar
21093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21094 printf "%s\n" "$ac_res" >&6; }
21095 if eval test x\$$cachevar = xyes; then
21096 CXX="$CXX $switch"
21097 if test -n "$CXXCPP" ; then
21098 CXXCPP="$CXXCPP $switch"
21099 fi
21100 ac_success=yes
21101 break
21102 fi
21103 done
21104 if test x$ac_success = xyes; then
21105 break
21106 fi
21107 done
21108 fi
21109 ac_ext=c
21110 ac_cpp='$CPP $CPPFLAGS'
21111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21114
21115 if test x$ax_cxx_compile_cxx17_required = xtrue; then
21116 if test x$ac_success = xno; then
21117 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
21118 fi
21119 fi
21120 if test x$ac_success = xno; then
21121 HAVE_CXX17=0
21122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
21123 printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;}
21124 else
21125 HAVE_CXX17=1
21126
21127 printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h
21128
21129 fi
21130
21131
21132
21133 # Checks for libraries.
21134
21135 enable_examples=yes
21136 if test "x${lib_only}" = "xyes"; then
21137 enable_examples=no
21138 fi
21139
21140 if test "x${enable_examples}" = "xyes" ; then
21141 ENABLE_EXAMPLES_TRUE=
21142 ENABLE_EXAMPLES_FALSE='#'
21143 else
21144 ENABLE_EXAMPLES_TRUE='#'
21145 ENABLE_EXAMPLES_FALSE=
21146 fi
21147
21148
21149 # Checks for header files.
21150 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
21151 if test "x$ac_cv_header_arpa_inet_h" = xyes
21152 then :
21153 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
21154
21155 fi
21156 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
21157 if test "x$ac_cv_header_stddef_h" = xyes
21158 then :
21159 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
21160
21161 fi
21162 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21163 if test "x$ac_cv_header_stdint_h" = xyes
21164 then :
21165 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
21166
21167 fi
21168 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
21169 if test "x$ac_cv_header_stdlib_h" = xyes
21170 then :
21171 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
21172
21173 fi
21174 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
21175 if test "x$ac_cv_header_string_h" = xyes
21176 then :
21177 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
21178
21179 fi
21180 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21181 if test "x$ac_cv_header_unistd_h" = xyes
21182 then :
21183 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
21184
21185 fi
21186 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
21187 if test "x$ac_cv_header_sys_endian_h" = xyes
21188 then :
21189 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
21190
21191 fi
21192 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
21193 if test "x$ac_cv_header_endian_h" = xyes
21194 then :
21195 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
21196
21197 fi
21198 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
21199 if test "x$ac_cv_header_byteswap_h" = xyes
21200 then :
21201 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
21202
21203 fi
21204
21205
21206 # Checks for typedefs, structures, and compiler characteristics.
21207 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21208 if test "x$ac_cv_type_size_t" = xyes
21209 then :
21210
21211 else $as_nop
21212
21213 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
21214
21215 fi
21216
21217 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21218 if test "x$ac_cv_type_ssize_t" = xyes
21219 then :
21220
21221 else $as_nop
21222
21223 printf "%s\n" "#define ssize_t int" >>confdefs.h
21224
21225 fi
21226
21227 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
21228 case $ac_cv_c_uint8_t in #(
21229 no|yes) ;; #(
21230 *)
21231
21232 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
21233
21234
21235 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
21236 ;;
21237 esac
21238
21239 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
21240 case $ac_cv_c_uint16_t in #(
21241 no|yes) ;; #(
21242 *)
21243
21244
21245 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
21246 ;;
21247 esac
21248
21249 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
21250 case $ac_cv_c_uint32_t in #(
21251 no|yes) ;; #(
21252 *)
21253
21254 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
21255
21256
21257 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
21258 ;;
21259 esac
21260
21261 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
21262 case $ac_cv_c_uint64_t in #(
21263 no|yes) ;; #(
21264 *)
21265
21266 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
21267
21268
21269 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
21270 ;;
21271 esac
21272
21273 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
21274 case $ac_cv_c_int8_t in #(
21275 no|yes) ;; #(
21276 *)
21277
21278 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
21279 ;;
21280 esac
21281
21282 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
21283 case $ac_cv_c_int16_t in #(
21284 no|yes) ;; #(
21285 *)
21286
21287 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
21288 ;;
21289 esac
21290
21291 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
21292 case $ac_cv_c_int32_t in #(
21293 no|yes) ;; #(
21294 *)
21295
21296 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
21297 ;;
21298 esac
21299
21300 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
21301 case $ac_cv_c_int64_t in #(
21302 no|yes) ;; #(
21303 *)
21304
21305 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
21306 ;;
21307 esac
21308
21309 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21310 if test "x$ac_cv_type_off_t" = xyes
21311 then :
21312
21313 else $as_nop
21314
21315 printf "%s\n" "#define off_t long int" >>confdefs.h
21316
21317 fi
21318
21319
21320 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
21321 "
21322 if test "x$ac_cv_type_pid_t" = xyes
21323 then :
21324
21325 else $as_nop
21326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21327 /* end confdefs.h. */
21328
21329 #if defined _WIN64 && !defined __CYGWIN__
21330 LLP64
21331 #endif
21332
21333 int
21334 main (void)
21335 {
21336
21337 ;
21338 return 0;
21339 }
21340
21341 _ACEOF
21342 if ac_fn_c_try_compile "$LINENO"
21343 then :
21344 ac_pid_type='int'
21345 else $as_nop
21346 ac_pid_type='__int64'
21347 fi
21348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21349
21350 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
21351
21352
21353 fi
21354
21355
21356
21357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21358 printf %s "checking for uid_t in sys/types.h... " >&6; }
21359 if test ${ac_cv_type_uid_t+y}
21360 then :
21361 printf %s "(cached) " >&6
21362 else $as_nop
21363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21364 /* end confdefs.h. */
21365 #include <sys/types.h>
21366
21367 _ACEOF
21368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21369 $EGREP "uid_t" >/dev/null 2>&1
21370 then :
21371 ac_cv_type_uid_t=yes
21372 else $as_nop
21373 ac_cv_type_uid_t=no
21374 fi
21375 rm -rf conftest*
21376
21377 fi
21378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21379 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
21380 if test $ac_cv_type_uid_t = no; then
21381
21382 printf "%s\n" "#define uid_t int" >>confdefs.h
21383
21384
21385 printf "%s\n" "#define gid_t int" >>confdefs.h
21386
21387 fi
21388
21389 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
21390 if test "x$ac_cv_type_ptrdiff_t" = xyes
21391 then :
21392
21393 printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
21394
21395
21396 fi
21397
21398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21399 printf %s "checking whether byte ordering is bigendian... " >&6; }
21400 if test ${ac_cv_c_bigendian+y}
21401 then :
21402 printf %s "(cached) " >&6
21403 else $as_nop
21404 ac_cv_c_bigendian=unknown
21405 # See if we're dealing with a universal compiler.
21406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21407 /* end confdefs.h. */
21408 #ifndef __APPLE_CC__
21409 not a universal capable compiler
21410 #endif
21411 typedef int dummy;
21412
21413 _ACEOF
21414 if ac_fn_c_try_compile "$LINENO"
21415 then :
21416
21417 # Check for potential -arch flags. It is not universal unless
21418 # there are at least two -arch flags with different values.
21419 ac_arch=
21420 ac_prev=
21421 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21422 if test -n "$ac_prev"; then
21423 case $ac_word in
21424 i?86 | x86_64 | ppc | ppc64)
21425 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21426 ac_arch=$ac_word
21427 else
21428 ac_cv_c_bigendian=universal
21429 break
21430 fi
21431 ;;
21432 esac
21433 ac_prev=
21434 elif test "x$ac_word" = "x-arch"; then
21435 ac_prev=arch
21436 fi
21437 done
21438 fi
21439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21440 if test $ac_cv_c_bigendian = unknown; then
21441 # See if sys/param.h defines the BYTE_ORDER macro.
21442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21443 /* end confdefs.h. */
21444 #include <sys/types.h>
21445 #include <sys/param.h>
21446
21447 int
21448 main (void)
21449 {
21450 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21451 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21452 && LITTLE_ENDIAN)
21453 bogus endian macros
21454 #endif
21455
21456 ;
21457 return 0;
21458 }
21459 _ACEOF
21460 if ac_fn_c_try_compile "$LINENO"
21461 then :
21462 # It does; now see whether it defined to BIG_ENDIAN or not.
21463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21464 /* end confdefs.h. */
21465 #include <sys/types.h>
21466 #include <sys/param.h>
21467
21468 int
21469 main (void)
21470 {
21471 #if BYTE_ORDER != BIG_ENDIAN
21472 not big endian
21473 #endif
21474
21475 ;
21476 return 0;
21477 }
21478 _ACEOF
21479 if ac_fn_c_try_compile "$LINENO"
21480 then :
21481 ac_cv_c_bigendian=yes
21482 else $as_nop
21483 ac_cv_c_bigendian=no
21484 fi
21485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21486 fi
21487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21488 fi
21489 if test $ac_cv_c_bigendian = unknown; then
21490 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21492 /* end confdefs.h. */
21493 #include <limits.h>
21494
21495 int
21496 main (void)
21497 {
21498 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21499 bogus endian macros
21500 #endif
21501
21502 ;
21503 return 0;
21504 }
21505 _ACEOF
21506 if ac_fn_c_try_compile "$LINENO"
21507 then :
21508 # It does; now see whether it defined to _BIG_ENDIAN or not.
21509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21510 /* end confdefs.h. */
21511 #include <limits.h>
21512
21513 int
21514 main (void)
21515 {
21516 #ifndef _BIG_ENDIAN
21517 not big endian
21518 #endif
21519
21520 ;
21521 return 0;
21522 }
21523 _ACEOF
21524 if ac_fn_c_try_compile "$LINENO"
21525 then :
21526 ac_cv_c_bigendian=yes
21527 else $as_nop
21528 ac_cv_c_bigendian=no
21529 fi
21530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21531 fi
21532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21533 fi
21534 if test $ac_cv_c_bigendian = unknown; then
21535 # Compile a test program.
21536 if test "$cross_compiling" = yes
21537 then :
21538 # Try to guess by grepping values from an object file.
21539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21540 /* end confdefs.h. */
21541 unsigned short int ascii_mm[] =
21542 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21543 unsigned short int ascii_ii[] =
21544 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21545 int use_ascii (int i) {
21546 return ascii_mm[i] + ascii_ii[i];
21547 }
21548 unsigned short int ebcdic_ii[] =
21549 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21550 unsigned short int ebcdic_mm[] =
21551 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21552 int use_ebcdic (int i) {
21553 return ebcdic_mm[i] + ebcdic_ii[i];
21554 }
21555 extern int foo;
21556
21557 int
21558 main (void)
21559 {
21560 return use_ascii (foo) == use_ebcdic (foo);
21561 ;
21562 return 0;
21563 }
21564 _ACEOF
21565 if ac_fn_c_try_compile "$LINENO"
21566 then :
21567 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21568 ac_cv_c_bigendian=yes
21569 fi
21570 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21571 if test "$ac_cv_c_bigendian" = unknown; then
21572 ac_cv_c_bigendian=no
21573 else
21574 # finding both strings is unlikely to happen, but who knows?
21575 ac_cv_c_bigendian=unknown
21576 fi
21577 fi
21578 fi
21579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21580 else $as_nop
21581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21582 /* end confdefs.h. */
21583 $ac_includes_default
21584 int
21585 main (void)
21586 {
21587
21588 /* Are we little or big endian? From Harbison&Steele. */
21589 union
21590 {
21591 long int l;
21592 char c[sizeof (long int)];
21593 } u;
21594 u.l = 1;
21595 return u.c[sizeof (long int) - 1] == 1;
21596
21597 ;
21598 return 0;
21599 }
21600 _ACEOF
21601 if ac_fn_c_try_run "$LINENO"
21602 then :
21603 ac_cv_c_bigendian=no
21604 else $as_nop
21605 ac_cv_c_bigendian=yes
21606 fi
21607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21608 conftest.$ac_objext conftest.beam conftest.$ac_ext
21609 fi
21610
21611 fi
21612 fi
21613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21614 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
21615 case $ac_cv_c_bigendian in #(
21616 yes)
21617 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
21618 ;; #(
21619 no)
21620 ;; #(
21621 universal)
21622
21623 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21624
21625 ;; #(
21626 *)
21627 as_fn_error $? "unknown endianness
21628 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21629 esac
21630
21631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21632 printf %s "checking for inline... " >&6; }
21633 if test ${ac_cv_c_inline+y}
21634 then :
21635 printf %s "(cached) " >&6
21636 else $as_nop
21637 ac_cv_c_inline=no
21638 for ac_kw in inline __inline__ __inline; do
21639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21640 /* end confdefs.h. */
21641 #ifndef __cplusplus
21642 typedef int foo_t;
21643 static $ac_kw foo_t static_foo (void) {return 0; }
21644 $ac_kw foo_t foo (void) {return 0; }
21645 #endif
21646
21647 _ACEOF
21648 if ac_fn_c_try_compile "$LINENO"
21649 then :
21650 ac_cv_c_inline=$ac_kw
21651 fi
21652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21653 test "$ac_cv_c_inline" != no && break
21654 done
21655
21656 fi
21657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21658 printf "%s\n" "$ac_cv_c_inline" >&6; }
21659
21660 case $ac_cv_c_inline in
21661 inline | yes) ;;
21662 *)
21663 case $ac_cv_c_inline in
21664 no) ac_val=;;
21665 *) ac_val=$ac_cv_c_inline;;
21666 esac
21667 cat >>confdefs.h <<_ACEOF
21668 #ifndef __cplusplus
21669 #define inline $ac_val
21670 #endif
21671 _ACEOF
21672 ;;
21673 esac
21674
21675 # Check whether --enable-largefile was given.
21676 if test ${enable_largefile+y}
21677 then :
21678 enableval=$enable_largefile;
21679 fi
21680
21681 if test "$enable_largefile" != no; then
21682
21683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
21684 printf %s "checking for special C compiler options needed for large files... " >&6; }
21685 if test ${ac_cv_sys_largefile_CC+y}
21686 then :
21687 printf %s "(cached) " >&6
21688 else $as_nop
21689 ac_cv_sys_largefile_CC=no
21690 if test "$GCC" != yes; then
21691 ac_save_CC=$CC
21692 while :; do
21693 # IRIX 6.2 and later do not support large files by default,
21694 # so use the C compiler's -n32 option if that helps.
21695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21696 /* end confdefs.h. */
21697 #include <sys/types.h>
21698 /* Check that off_t can represent 2**63 - 1 correctly.
21699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21700 since some C++ compilers masquerading as C compilers
21701 incorrectly reject 9223372036854775807. */
21702 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
21703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21704 && LARGE_OFF_T % 2147483647 == 1)
21705 ? 1 : -1];
21706 int
21707 main (void)
21708 {
21709
21710 ;
21711 return 0;
21712 }
21713 _ACEOF
21714 if ac_fn_c_try_compile "$LINENO"
21715 then :
21716 break
21717 fi
21718 rm -f core conftest.err conftest.$ac_objext conftest.beam
21719 CC="$CC -n32"
21720 if ac_fn_c_try_compile "$LINENO"
21721 then :
21722 ac_cv_sys_largefile_CC=' -n32'; break
21723 fi
21724 rm -f core conftest.err conftest.$ac_objext conftest.beam
21725 break
21726 done
21727 CC=$ac_save_CC
21728 rm -f conftest.$ac_ext
21729 fi
21730 fi
21731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
21732 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
21733 if test "$ac_cv_sys_largefile_CC" != no; then
21734 CC=$CC$ac_cv_sys_largefile_CC
21735 fi
21736
21737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21738 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
21739 if test ${ac_cv_sys_file_offset_bits+y}
21740 then :
21741 printf %s "(cached) " >&6
21742 else $as_nop
21743 while :; do
21744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21745 /* end confdefs.h. */
21746 #include <sys/types.h>
21747 /* Check that off_t can represent 2**63 - 1 correctly.
21748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21749 since some C++ compilers masquerading as C compilers
21750 incorrectly reject 9223372036854775807. */
21751 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
21752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21753 && LARGE_OFF_T % 2147483647 == 1)
21754 ? 1 : -1];
21755 int
21756 main (void)
21757 {
21758
21759 ;
21760 return 0;
21761 }
21762 _ACEOF
21763 if ac_fn_c_try_compile "$LINENO"
21764 then :
21765 ac_cv_sys_file_offset_bits=no; break
21766 fi
21767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h. */
21770 #define _FILE_OFFSET_BITS 64
21771 #include <sys/types.h>
21772 /* Check that off_t can represent 2**63 - 1 correctly.
21773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21774 since some C++ compilers masquerading as C compilers
21775 incorrectly reject 9223372036854775807. */
21776 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
21777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21778 && LARGE_OFF_T % 2147483647 == 1)
21779 ? 1 : -1];
21780 int
21781 main (void)
21782 {
21783
21784 ;
21785 return 0;
21786 }
21787 _ACEOF
21788 if ac_fn_c_try_compile "$LINENO"
21789 then :
21790 ac_cv_sys_file_offset_bits=64; break
21791 fi
21792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21793 ac_cv_sys_file_offset_bits=unknown
21794 break
21795 done
21796 fi
21797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
21798 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
21799 case $ac_cv_sys_file_offset_bits in #(
21800 no | unknown) ;;
21801 *)
21802 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
21803 ;;
21804 esac
21805 rm -rf conftest*
21806 if test $ac_cv_sys_file_offset_bits = unknown; then
21807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
21808 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
21809 if test ${ac_cv_sys_large_files+y}
21810 then :
21811 printf %s "(cached) " >&6
21812 else $as_nop
21813 while :; do
21814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21815 /* end confdefs.h. */
21816 #include <sys/types.h>
21817 /* Check that off_t can represent 2**63 - 1 correctly.
21818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21819 since some C++ compilers masquerading as C compilers
21820 incorrectly reject 9223372036854775807. */
21821 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
21822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21823 && LARGE_OFF_T % 2147483647 == 1)
21824 ? 1 : -1];
21825 int
21826 main (void)
21827 {
21828
21829 ;
21830 return 0;
21831 }
21832 _ACEOF
21833 if ac_fn_c_try_compile "$LINENO"
21834 then :
21835 ac_cv_sys_large_files=no; break
21836 fi
21837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21839 /* end confdefs.h. */
21840 #define _LARGE_FILES 1
21841 #include <sys/types.h>
21842 /* Check that off_t can represent 2**63 - 1 correctly.
21843 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21844 since some C++ compilers masquerading as C compilers
21845 incorrectly reject 9223372036854775807. */
21846 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
21847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21848 && LARGE_OFF_T % 2147483647 == 1)
21849 ? 1 : -1];
21850 int
21851 main (void)
21852 {
21853
21854 ;
21855 return 0;
21856 }
21857 _ACEOF
21858 if ac_fn_c_try_compile "$LINENO"
21859 then :
21860 ac_cv_sys_large_files=1; break
21861 fi
21862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21863 ac_cv_sys_large_files=unknown
21864 break
21865 done
21866 fi
21867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
21868 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
21869 case $ac_cv_sys_large_files in #(
21870 no | unknown) ;;
21871 *)
21872 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
21873 ;;
21874 esac
21875 rm -rf conftest*
21876 fi
21877 fi
21878
21879
21880 # Checks for library functions.
21881 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
21882 if test "x$ac_cv_func_memmove" = xyes
21883 then :
21884 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
21885
21886 fi
21887 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
21888 if test "x$ac_cv_func_memset" = xyes
21889 then :
21890 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
21891
21892 fi
21893
21894
21895 # Checks for symbols.
21896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
21897 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
21898 if test ${ac_cv_c_undeclared_builtin_options+y}
21899 then :
21900 printf %s "(cached) " >&6
21901 else $as_nop
21902 ac_save_CFLAGS=$CFLAGS
21903 ac_cv_c_undeclared_builtin_options='cannot detect'
21904 for ac_arg in '' -fno-builtin; do
21905 CFLAGS="$ac_save_CFLAGS $ac_arg"
21906 # This test program should *not* compile successfully.
21907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h. */
21909
21910 int
21911 main (void)
21912 {
21913 (void) strchr;
21914 ;
21915 return 0;
21916 }
21917 _ACEOF
21918 if ac_fn_c_try_compile "$LINENO"
21919 then :
21920
21921 else $as_nop
21922 # This test program should compile successfully.
21923 # No library function is consistently available on
21924 # freestanding implementations, so test against a dummy
21925 # declaration. Include always-available headers on the
21926 # off chance that they somehow elicit warnings.
21927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21928 /* end confdefs.h. */
21929 #include <float.h>
21930 #include <limits.h>
21931 #include <stdarg.h>
21932 #include <stddef.h>
21933 extern void ac_decl (int, char *);
21934
21935 int
21936 main (void)
21937 {
21938 (void) ac_decl (0, (char *) 0);
21939 (void) ac_decl;
21940
21941 ;
21942 return 0;
21943 }
21944 _ACEOF
21945 if ac_fn_c_try_compile "$LINENO"
21946 then :
21947 if test x"$ac_arg" = x
21948 then :
21949 ac_cv_c_undeclared_builtin_options='none needed'
21950 else $as_nop
21951 ac_cv_c_undeclared_builtin_options=$ac_arg
21952 fi
21953 break
21954 fi
21955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21956 fi
21957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21958 done
21959 CFLAGS=$ac_save_CFLAGS
21960
21961 fi
21962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
21963 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
21964 case $ac_cv_c_undeclared_builtin_options in #(
21965 'cannot detect') :
21966 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21967 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21968 as_fn_error $? "cannot make $CC report undeclared builtins
21969 See \`config.log' for more details" "$LINENO" 5; } ;; #(
21970 'none needed') :
21971 ac_c_undeclared_builtin_options='' ;; #(
21972 *) :
21973 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
21974 esac
21975
21976 ac_fn_check_decl "$LINENO" "be64toh" "ac_cv_have_decl_be64toh" "
21977 #ifdef HAVE_ENDIAN_H
21978 # include <endian.h>
21979 #endif
21980 #ifdef HAVE_SYS_ENDIAN_H
21981 # include <sys/endian.h>
21982 #endif
21983
21984 " "$ac_c_undeclared_builtin_options" "CFLAGS"
21985 if test "x$ac_cv_have_decl_be64toh" = xyes
21986 then :
21987 ac_have_decl=1
21988 else $as_nop
21989 ac_have_decl=0
21990 fi
21991 printf "%s\n" "#define HAVE_DECL_BE64TOH $ac_have_decl" >>confdefs.h
21992
21993
21994 ac_fn_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "
21995 #include <byteswap.h>
21996
21997 " "$ac_c_undeclared_builtin_options" "CFLAGS"
21998 if test "x$ac_cv_have_decl_bswap_64" = xyes
21999 then :
22000 ac_have_decl=1
22001 else $as_nop
22002 ac_have_decl=0
22003 fi
22004 printf "%s\n" "#define HAVE_DECL_BSWAP_64 $ac_have_decl" >>confdefs.h
22005
22006
22007 # More compiler flags from nghttp2.
22008 save_CFLAGS=$CFLAGS
22009 save_CXXFLAGS=$CXXFLAGS
22010
22011 CFLAGS=
22012 CXXFLAGS=
22013
22014 if test "x$werror" != "xno"; then
22015 # For C compiler
22016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
22017 printf %s "checking whether C compiler accepts -Wall... " >&6; }
22018 if test ${ax_cv_check_cflags___Wall+y}
22019 then :
22020 printf %s "(cached) " >&6
22021 else $as_nop
22022
22023 ax_check_save_flags=$CFLAGS
22024 CFLAGS="$CFLAGS -Wall"
22025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22026 /* end confdefs.h. */
22027
22028 int
22029 main (void)
22030 {
22031
22032 ;
22033 return 0;
22034 }
22035 _ACEOF
22036 if ac_fn_c_try_compile "$LINENO"
22037 then :
22038 ax_cv_check_cflags___Wall=yes
22039 else $as_nop
22040 ax_cv_check_cflags___Wall=no
22041 fi
22042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22043 CFLAGS=$ax_check_save_flags
22044 fi
22045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
22046 printf "%s\n" "$ax_cv_check_cflags___Wall" >&6; }
22047 if test "x$ax_cv_check_cflags___Wall" = xyes
22048 then :
22049 CFLAGS="$CFLAGS -Wall"
22050 else $as_nop
22051 :
22052 fi
22053
22054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
22055 printf %s "checking whether C compiler accepts -Wextra... " >&6; }
22056 if test ${ax_cv_check_cflags___Wextra+y}
22057 then :
22058 printf %s "(cached) " >&6
22059 else $as_nop
22060
22061 ax_check_save_flags=$CFLAGS
22062 CFLAGS="$CFLAGS -Wextra"
22063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22064 /* end confdefs.h. */
22065
22066 int
22067 main (void)
22068 {
22069
22070 ;
22071 return 0;
22072 }
22073 _ACEOF
22074 if ac_fn_c_try_compile "$LINENO"
22075 then :
22076 ax_cv_check_cflags___Wextra=yes
22077 else $as_nop
22078 ax_cv_check_cflags___Wextra=no
22079 fi
22080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22081 CFLAGS=$ax_check_save_flags
22082 fi
22083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra" >&5
22084 printf "%s\n" "$ax_cv_check_cflags___Wextra" >&6; }
22085 if test "x$ax_cv_check_cflags___Wextra" = xyes
22086 then :
22087 CFLAGS="$CFLAGS -Wextra"
22088 else $as_nop
22089 :
22090 fi
22091
22092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
22093 printf %s "checking whether C compiler accepts -Werror... " >&6; }
22094 if test ${ax_cv_check_cflags___Werror+y}
22095 then :
22096 printf %s "(cached) " >&6
22097 else $as_nop
22098
22099 ax_check_save_flags=$CFLAGS
22100 CFLAGS="$CFLAGS -Werror"
22101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22102 /* end confdefs.h. */
22103
22104 int
22105 main (void)
22106 {
22107
22108 ;
22109 return 0;
22110 }
22111 _ACEOF
22112 if ac_fn_c_try_compile "$LINENO"
22113 then :
22114 ax_cv_check_cflags___Werror=yes
22115 else $as_nop
22116 ax_cv_check_cflags___Werror=no
22117 fi
22118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22119 CFLAGS=$ax_check_save_flags
22120 fi
22121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
22122 printf "%s\n" "$ax_cv_check_cflags___Werror" >&6; }
22123 if test "x$ax_cv_check_cflags___Werror" = xyes
22124 then :
22125 CFLAGS="$CFLAGS -Werror"
22126 else $as_nop
22127 :
22128 fi
22129
22130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5
22131 printf %s "checking whether C compiler accepts -Wmissing-prototypes... " >&6; }
22132 if test ${ax_cv_check_cflags___Wmissing_prototypes+y}
22133 then :
22134 printf %s "(cached) " >&6
22135 else $as_nop
22136
22137 ax_check_save_flags=$CFLAGS
22138 CFLAGS="$CFLAGS -Wmissing-prototypes"
22139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h. */
22141
22142 int
22143 main (void)
22144 {
22145
22146 ;
22147 return 0;
22148 }
22149 _ACEOF
22150 if ac_fn_c_try_compile "$LINENO"
22151 then :
22152 ax_cv_check_cflags___Wmissing_prototypes=yes
22153 else $as_nop
22154 ax_cv_check_cflags___Wmissing_prototypes=no
22155 fi
22156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22157 CFLAGS=$ax_check_save_flags
22158 fi
22159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5
22160 printf "%s\n" "$ax_cv_check_cflags___Wmissing_prototypes" >&6; }
22161 if test "x$ax_cv_check_cflags___Wmissing_prototypes" = xyes
22162 then :
22163 CFLAGS="$CFLAGS -Wmissing-prototypes"
22164 else $as_nop
22165 :
22166 fi
22167
22168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-prototypes" >&5
22169 printf %s "checking whether C compiler accepts -Wstrict-prototypes... " >&6; }
22170 if test ${ax_cv_check_cflags___Wstrict_prototypes+y}
22171 then :
22172 printf %s "(cached) " >&6
22173 else $as_nop
22174
22175 ax_check_save_flags=$CFLAGS
22176 CFLAGS="$CFLAGS -Wstrict-prototypes"
22177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22178 /* end confdefs.h. */
22179
22180 int
22181 main (void)
22182 {
22183
22184 ;
22185 return 0;
22186 }
22187 _ACEOF
22188 if ac_fn_c_try_compile "$LINENO"
22189 then :
22190 ax_cv_check_cflags___Wstrict_prototypes=yes
22191 else $as_nop
22192 ax_cv_check_cflags___Wstrict_prototypes=no
22193 fi
22194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22195 CFLAGS=$ax_check_save_flags
22196 fi
22197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wstrict_prototypes" >&5
22198 printf "%s\n" "$ax_cv_check_cflags___Wstrict_prototypes" >&6; }
22199 if test "x$ax_cv_check_cflags___Wstrict_prototypes" = xyes
22200 then :
22201 CFLAGS="$CFLAGS -Wstrict-prototypes"
22202 else $as_nop
22203 :
22204 fi
22205
22206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
22207 printf %s "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
22208 if test ${ax_cv_check_cflags___Wmissing_declarations+y}
22209 then :
22210 printf %s "(cached) " >&6
22211 else $as_nop
22212
22213 ax_check_save_flags=$CFLAGS
22214 CFLAGS="$CFLAGS -Wmissing-declarations"
22215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22216 /* end confdefs.h. */
22217
22218 int
22219 main (void)
22220 {
22221
22222 ;
22223 return 0;
22224 }
22225 _ACEOF
22226 if ac_fn_c_try_compile "$LINENO"
22227 then :
22228 ax_cv_check_cflags___Wmissing_declarations=yes
22229 else $as_nop
22230 ax_cv_check_cflags___Wmissing_declarations=no
22231 fi
22232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22233 CFLAGS=$ax_check_save_flags
22234 fi
22235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5
22236 printf "%s\n" "$ax_cv_check_cflags___Wmissing_declarations" >&6; }
22237 if test "x$ax_cv_check_cflags___Wmissing_declarations" = xyes
22238 then :
22239 CFLAGS="$CFLAGS -Wmissing-declarations"
22240 else $as_nop
22241 :
22242 fi
22243
22244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-arith" >&5
22245 printf %s "checking whether C compiler accepts -Wpointer-arith... " >&6; }
22246 if test ${ax_cv_check_cflags___Wpointer_arith+y}
22247 then :
22248 printf %s "(cached) " >&6
22249 else $as_nop
22250
22251 ax_check_save_flags=$CFLAGS
22252 CFLAGS="$CFLAGS -Wpointer-arith"
22253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254 /* end confdefs.h. */
22255
22256 int
22257 main (void)
22258 {
22259
22260 ;
22261 return 0;
22262 }
22263 _ACEOF
22264 if ac_fn_c_try_compile "$LINENO"
22265 then :
22266 ax_cv_check_cflags___Wpointer_arith=yes
22267 else $as_nop
22268 ax_cv_check_cflags___Wpointer_arith=no
22269 fi
22270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22271 CFLAGS=$ax_check_save_flags
22272 fi
22273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpointer_arith" >&5
22274 printf "%s\n" "$ax_cv_check_cflags___Wpointer_arith" >&6; }
22275 if test "x$ax_cv_check_cflags___Wpointer_arith" = xyes
22276 then :
22277 CFLAGS="$CFLAGS -Wpointer-arith"
22278 else $as_nop
22279 :
22280 fi
22281
22282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdeclaration-after-statement" >&5
22283 printf %s "checking whether C compiler accepts -Wdeclaration-after-statement... " >&6; }
22284 if test ${ax_cv_check_cflags___Wdeclaration_after_statement+y}
22285 then :
22286 printf %s "(cached) " >&6
22287 else $as_nop
22288
22289 ax_check_save_flags=$CFLAGS
22290 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
22291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22292 /* end confdefs.h. */
22293
22294 int
22295 main (void)
22296 {
22297
22298 ;
22299 return 0;
22300 }
22301 _ACEOF
22302 if ac_fn_c_try_compile "$LINENO"
22303 then :
22304 ax_cv_check_cflags___Wdeclaration_after_statement=yes
22305 else $as_nop
22306 ax_cv_check_cflags___Wdeclaration_after_statement=no
22307 fi
22308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22309 CFLAGS=$ax_check_save_flags
22310 fi
22311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdeclaration_after_statement" >&5
22312 printf "%s\n" "$ax_cv_check_cflags___Wdeclaration_after_statement" >&6; }
22313 if test "x$ax_cv_check_cflags___Wdeclaration_after_statement" = xyes
22314 then :
22315 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
22316 else $as_nop
22317 :
22318 fi
22319
22320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-security" >&5
22321 printf %s "checking whether C compiler accepts -Wformat-security... " >&6; }
22322 if test ${ax_cv_check_cflags___Wformat_security+y}
22323 then :
22324 printf %s "(cached) " >&6
22325 else $as_nop
22326
22327 ax_check_save_flags=$CFLAGS
22328 CFLAGS="$CFLAGS -Wformat-security"
22329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22330 /* end confdefs.h. */
22331
22332 int
22333 main (void)
22334 {
22335
22336 ;
22337 return 0;
22338 }
22339 _ACEOF
22340 if ac_fn_c_try_compile "$LINENO"
22341 then :
22342 ax_cv_check_cflags___Wformat_security=yes
22343 else $as_nop
22344 ax_cv_check_cflags___Wformat_security=no
22345 fi
22346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22347 CFLAGS=$ax_check_save_flags
22348 fi
22349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_security" >&5
22350 printf "%s\n" "$ax_cv_check_cflags___Wformat_security" >&6; }
22351 if test "x$ax_cv_check_cflags___Wformat_security" = xyes
22352 then :
22353 CFLAGS="$CFLAGS -Wformat-security"
22354 else $as_nop
22355 :
22356 fi
22357
22358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
22359 printf %s "checking whether C compiler accepts -Wwrite-strings... " >&6; }
22360 if test ${ax_cv_check_cflags___Wwrite_strings+y}
22361 then :
22362 printf %s "(cached) " >&6
22363 else $as_nop
22364
22365 ax_check_save_flags=$CFLAGS
22366 CFLAGS="$CFLAGS -Wwrite-strings"
22367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22368 /* end confdefs.h. */
22369
22370 int
22371 main (void)
22372 {
22373
22374 ;
22375 return 0;
22376 }
22377 _ACEOF
22378 if ac_fn_c_try_compile "$LINENO"
22379 then :
22380 ax_cv_check_cflags___Wwrite_strings=yes
22381 else $as_nop
22382 ax_cv_check_cflags___Wwrite_strings=no
22383 fi
22384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22385 CFLAGS=$ax_check_save_flags
22386 fi
22387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
22388 printf "%s\n" "$ax_cv_check_cflags___Wwrite_strings" >&6; }
22389 if test "x$ax_cv_check_cflags___Wwrite_strings" = xyes
22390 then :
22391 CFLAGS="$CFLAGS -Wwrite-strings"
22392 else $as_nop
22393 :
22394 fi
22395
22396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5
22397 printf %s "checking whether C compiler accepts -Wshadow... " >&6; }
22398 if test ${ax_cv_check_cflags___Wshadow+y}
22399 then :
22400 printf %s "(cached) " >&6
22401 else $as_nop
22402
22403 ax_check_save_flags=$CFLAGS
22404 CFLAGS="$CFLAGS -Wshadow"
22405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22406 /* end confdefs.h. */
22407
22408 int
22409 main (void)
22410 {
22411
22412 ;
22413 return 0;
22414 }
22415 _ACEOF
22416 if ac_fn_c_try_compile "$LINENO"
22417 then :
22418 ax_cv_check_cflags___Wshadow=yes
22419 else $as_nop
22420 ax_cv_check_cflags___Wshadow=no
22421 fi
22422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22423 CFLAGS=$ax_check_save_flags
22424 fi
22425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshadow" >&5
22426 printf "%s\n" "$ax_cv_check_cflags___Wshadow" >&6; }
22427 if test "x$ax_cv_check_cflags___Wshadow" = xyes
22428 then :
22429 CFLAGS="$CFLAGS -Wshadow"
22430 else $as_nop
22431 :
22432 fi
22433
22434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winline" >&5
22435 printf %s "checking whether C compiler accepts -Winline... " >&6; }
22436 if test ${ax_cv_check_cflags___Winline+y}
22437 then :
22438 printf %s "(cached) " >&6
22439 else $as_nop
22440
22441 ax_check_save_flags=$CFLAGS
22442 CFLAGS="$CFLAGS -Winline"
22443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444 /* end confdefs.h. */
22445
22446 int
22447 main (void)
22448 {
22449
22450 ;
22451 return 0;
22452 }
22453 _ACEOF
22454 if ac_fn_c_try_compile "$LINENO"
22455 then :
22456 ax_cv_check_cflags___Winline=yes
22457 else $as_nop
22458 ax_cv_check_cflags___Winline=no
22459 fi
22460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22461 CFLAGS=$ax_check_save_flags
22462 fi
22463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winline" >&5
22464 printf "%s\n" "$ax_cv_check_cflags___Winline" >&6; }
22465 if test "x$ax_cv_check_cflags___Winline" = xyes
22466 then :
22467 CFLAGS="$CFLAGS -Winline"
22468 else $as_nop
22469 :
22470 fi
22471
22472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wnested-externs" >&5
22473 printf %s "checking whether C compiler accepts -Wnested-externs... " >&6; }
22474 if test ${ax_cv_check_cflags___Wnested_externs+y}
22475 then :
22476 printf %s "(cached) " >&6
22477 else $as_nop
22478
22479 ax_check_save_flags=$CFLAGS
22480 CFLAGS="$CFLAGS -Wnested-externs"
22481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482 /* end confdefs.h. */
22483
22484 int
22485 main (void)
22486 {
22487
22488 ;
22489 return 0;
22490 }
22491 _ACEOF
22492 if ac_fn_c_try_compile "$LINENO"
22493 then :
22494 ax_cv_check_cflags___Wnested_externs=yes
22495 else $as_nop
22496 ax_cv_check_cflags___Wnested_externs=no
22497 fi
22498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22499 CFLAGS=$ax_check_save_flags
22500 fi
22501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wnested_externs" >&5
22502 printf "%s\n" "$ax_cv_check_cflags___Wnested_externs" >&6; }
22503 if test "x$ax_cv_check_cflags___Wnested_externs" = xyes
22504 then :
22505 CFLAGS="$CFLAGS -Wnested-externs"
22506 else $as_nop
22507 :
22508 fi
22509
22510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wfloat-equal" >&5
22511 printf %s "checking whether C compiler accepts -Wfloat-equal... " >&6; }
22512 if test ${ax_cv_check_cflags___Wfloat_equal+y}
22513 then :
22514 printf %s "(cached) " >&6
22515 else $as_nop
22516
22517 ax_check_save_flags=$CFLAGS
22518 CFLAGS="$CFLAGS -Wfloat-equal"
22519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22520 /* end confdefs.h. */
22521
22522 int
22523 main (void)
22524 {
22525
22526 ;
22527 return 0;
22528 }
22529 _ACEOF
22530 if ac_fn_c_try_compile "$LINENO"
22531 then :
22532 ax_cv_check_cflags___Wfloat_equal=yes
22533 else $as_nop
22534 ax_cv_check_cflags___Wfloat_equal=no
22535 fi
22536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22537 CFLAGS=$ax_check_save_flags
22538 fi
22539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wfloat_equal" >&5
22540 printf "%s\n" "$ax_cv_check_cflags___Wfloat_equal" >&6; }
22541 if test "x$ax_cv_check_cflags___Wfloat_equal" = xyes
22542 then :
22543 CFLAGS="$CFLAGS -Wfloat-equal"
22544 else $as_nop
22545 :
22546 fi
22547
22548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wundef" >&5
22549 printf %s "checking whether C compiler accepts -Wundef... " >&6; }
22550 if test ${ax_cv_check_cflags___Wundef+y}
22551 then :
22552 printf %s "(cached) " >&6
22553 else $as_nop
22554
22555 ax_check_save_flags=$CFLAGS
22556 CFLAGS="$CFLAGS -Wundef"
22557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22558 /* end confdefs.h. */
22559
22560 int
22561 main (void)
22562 {
22563
22564 ;
22565 return 0;
22566 }
22567 _ACEOF
22568 if ac_fn_c_try_compile "$LINENO"
22569 then :
22570 ax_cv_check_cflags___Wundef=yes
22571 else $as_nop
22572 ax_cv_check_cflags___Wundef=no
22573 fi
22574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22575 CFLAGS=$ax_check_save_flags
22576 fi
22577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wundef" >&5
22578 printf "%s\n" "$ax_cv_check_cflags___Wundef" >&6; }
22579 if test "x$ax_cv_check_cflags___Wundef" = xyes
22580 then :
22581 CFLAGS="$CFLAGS -Wundef"
22582 else $as_nop
22583 :
22584 fi
22585
22586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wendif-labels" >&5
22587 printf %s "checking whether C compiler accepts -Wendif-labels... " >&6; }
22588 if test ${ax_cv_check_cflags___Wendif_labels+y}
22589 then :
22590 printf %s "(cached) " >&6
22591 else $as_nop
22592
22593 ax_check_save_flags=$CFLAGS
22594 CFLAGS="$CFLAGS -Wendif-labels"
22595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22596 /* end confdefs.h. */
22597
22598 int
22599 main (void)
22600 {
22601
22602 ;
22603 return 0;
22604 }
22605 _ACEOF
22606 if ac_fn_c_try_compile "$LINENO"
22607 then :
22608 ax_cv_check_cflags___Wendif_labels=yes
22609 else $as_nop
22610 ax_cv_check_cflags___Wendif_labels=no
22611 fi
22612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22613 CFLAGS=$ax_check_save_flags
22614 fi
22615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wendif_labels" >&5
22616 printf "%s\n" "$ax_cv_check_cflags___Wendif_labels" >&6; }
22617 if test "x$ax_cv_check_cflags___Wendif_labels" = xyes
22618 then :
22619 CFLAGS="$CFLAGS -Wendif-labels"
22620 else $as_nop
22621 :
22622 fi
22623
22624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wempty-body" >&5
22625 printf %s "checking whether C compiler accepts -Wempty-body... " >&6; }
22626 if test ${ax_cv_check_cflags___Wempty_body+y}
22627 then :
22628 printf %s "(cached) " >&6
22629 else $as_nop
22630
22631 ax_check_save_flags=$CFLAGS
22632 CFLAGS="$CFLAGS -Wempty-body"
22633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22634 /* end confdefs.h. */
22635
22636 int
22637 main (void)
22638 {
22639
22640 ;
22641 return 0;
22642 }
22643 _ACEOF
22644 if ac_fn_c_try_compile "$LINENO"
22645 then :
22646 ax_cv_check_cflags___Wempty_body=yes
22647 else $as_nop
22648 ax_cv_check_cflags___Wempty_body=no
22649 fi
22650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22651 CFLAGS=$ax_check_save_flags
22652 fi
22653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wempty_body" >&5
22654 printf "%s\n" "$ax_cv_check_cflags___Wempty_body" >&6; }
22655 if test "x$ax_cv_check_cflags___Wempty_body" = xyes
22656 then :
22657 CFLAGS="$CFLAGS -Wempty-body"
22658 else $as_nop
22659 :
22660 fi
22661
22662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-align" >&5
22663 printf %s "checking whether C compiler accepts -Wcast-align... " >&6; }
22664 if test ${ax_cv_check_cflags___Wcast_align+y}
22665 then :
22666 printf %s "(cached) " >&6
22667 else $as_nop
22668
22669 ax_check_save_flags=$CFLAGS
22670 CFLAGS="$CFLAGS -Wcast-align"
22671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672 /* end confdefs.h. */
22673
22674 int
22675 main (void)
22676 {
22677
22678 ;
22679 return 0;
22680 }
22681 _ACEOF
22682 if ac_fn_c_try_compile "$LINENO"
22683 then :
22684 ax_cv_check_cflags___Wcast_align=yes
22685 else $as_nop
22686 ax_cv_check_cflags___Wcast_align=no
22687 fi
22688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22689 CFLAGS=$ax_check_save_flags
22690 fi
22691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_align" >&5
22692 printf "%s\n" "$ax_cv_check_cflags___Wcast_align" >&6; }
22693 if test "x$ax_cv_check_cflags___Wcast_align" = xyes
22694 then :
22695 CFLAGS="$CFLAGS -Wcast-align"
22696 else $as_nop
22697 :
22698 fi
22699
22700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wclobbered" >&5
22701 printf %s "checking whether C compiler accepts -Wclobbered... " >&6; }
22702 if test ${ax_cv_check_cflags___Wclobbered+y}
22703 then :
22704 printf %s "(cached) " >&6
22705 else $as_nop
22706
22707 ax_check_save_flags=$CFLAGS
22708 CFLAGS="$CFLAGS -Wclobbered"
22709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22710 /* end confdefs.h. */
22711
22712 int
22713 main (void)
22714 {
22715
22716 ;
22717 return 0;
22718 }
22719 _ACEOF
22720 if ac_fn_c_try_compile "$LINENO"
22721 then :
22722 ax_cv_check_cflags___Wclobbered=yes
22723 else $as_nop
22724 ax_cv_check_cflags___Wclobbered=no
22725 fi
22726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22727 CFLAGS=$ax_check_save_flags
22728 fi
22729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wclobbered" >&5
22730 printf "%s\n" "$ax_cv_check_cflags___Wclobbered" >&6; }
22731 if test "x$ax_cv_check_cflags___Wclobbered" = xyes
22732 then :
22733 CFLAGS="$CFLAGS -Wclobbered"
22734 else $as_nop
22735 :
22736 fi
22737
22738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wvla" >&5
22739 printf %s "checking whether C compiler accepts -Wvla... " >&6; }
22740 if test ${ax_cv_check_cflags___Wvla+y}
22741 then :
22742 printf %s "(cached) " >&6
22743 else $as_nop
22744
22745 ax_check_save_flags=$CFLAGS
22746 CFLAGS="$CFLAGS -Wvla"
22747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22748 /* end confdefs.h. */
22749
22750 int
22751 main (void)
22752 {
22753
22754 ;
22755 return 0;
22756 }
22757 _ACEOF
22758 if ac_fn_c_try_compile "$LINENO"
22759 then :
22760 ax_cv_check_cflags___Wvla=yes
22761 else $as_nop
22762 ax_cv_check_cflags___Wvla=no
22763 fi
22764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22765 CFLAGS=$ax_check_save_flags
22766 fi
22767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wvla" >&5
22768 printf "%s\n" "$ax_cv_check_cflags___Wvla" >&6; }
22769 if test "x$ax_cv_check_cflags___Wvla" = xyes
22770 then :
22771 CFLAGS="$CFLAGS -Wvla"
22772 else $as_nop
22773 :
22774 fi
22775
22776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpragmas" >&5
22777 printf %s "checking whether C compiler accepts -Wpragmas... " >&6; }
22778 if test ${ax_cv_check_cflags___Wpragmas+y}
22779 then :
22780 printf %s "(cached) " >&6
22781 else $as_nop
22782
22783 ax_check_save_flags=$CFLAGS
22784 CFLAGS="$CFLAGS -Wpragmas"
22785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22786 /* end confdefs.h. */
22787
22788 int
22789 main (void)
22790 {
22791
22792 ;
22793 return 0;
22794 }
22795 _ACEOF
22796 if ac_fn_c_try_compile "$LINENO"
22797 then :
22798 ax_cv_check_cflags___Wpragmas=yes
22799 else $as_nop
22800 ax_cv_check_cflags___Wpragmas=no
22801 fi
22802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22803 CFLAGS=$ax_check_save_flags
22804 fi
22805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpragmas" >&5
22806 printf "%s\n" "$ax_cv_check_cflags___Wpragmas" >&6; }
22807 if test "x$ax_cv_check_cflags___Wpragmas" = xyes
22808 then :
22809 CFLAGS="$CFLAGS -Wpragmas"
22810 else $as_nop
22811 :
22812 fi
22813
22814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunreachable-code" >&5
22815 printf %s "checking whether C compiler accepts -Wunreachable-code... " >&6; }
22816 if test ${ax_cv_check_cflags___Wunreachable_code+y}
22817 then :
22818 printf %s "(cached) " >&6
22819 else $as_nop
22820
22821 ax_check_save_flags=$CFLAGS
22822 CFLAGS="$CFLAGS -Wunreachable-code"
22823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824 /* end confdefs.h. */
22825
22826 int
22827 main (void)
22828 {
22829
22830 ;
22831 return 0;
22832 }
22833 _ACEOF
22834 if ac_fn_c_try_compile "$LINENO"
22835 then :
22836 ax_cv_check_cflags___Wunreachable_code=yes
22837 else $as_nop
22838 ax_cv_check_cflags___Wunreachable_code=no
22839 fi
22840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22841 CFLAGS=$ax_check_save_flags
22842 fi
22843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunreachable_code" >&5
22844 printf "%s\n" "$ax_cv_check_cflags___Wunreachable_code" >&6; }
22845 if test "x$ax_cv_check_cflags___Wunreachable_code" = xyes
22846 then :
22847 CFLAGS="$CFLAGS -Wunreachable-code"
22848 else $as_nop
22849 :
22850 fi
22851
22852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress" >&5
22853 printf %s "checking whether C compiler accepts -Waddress... " >&6; }
22854 if test ${ax_cv_check_cflags___Waddress+y}
22855 then :
22856 printf %s "(cached) " >&6
22857 else $as_nop
22858
22859 ax_check_save_flags=$CFLAGS
22860 CFLAGS="$CFLAGS -Waddress"
22861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22862 /* end confdefs.h. */
22863
22864 int
22865 main (void)
22866 {
22867
22868 ;
22869 return 0;
22870 }
22871 _ACEOF
22872 if ac_fn_c_try_compile "$LINENO"
22873 then :
22874 ax_cv_check_cflags___Waddress=yes
22875 else $as_nop
22876 ax_cv_check_cflags___Waddress=no
22877 fi
22878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22879 CFLAGS=$ax_check_save_flags
22880 fi
22881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Waddress" >&5
22882 printf "%s\n" "$ax_cv_check_cflags___Waddress" >&6; }
22883 if test "x$ax_cv_check_cflags___Waddress" = xyes
22884 then :
22885 CFLAGS="$CFLAGS -Waddress"
22886 else $as_nop
22887 :
22888 fi
22889
22890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wattributes" >&5
22891 printf %s "checking whether C compiler accepts -Wattributes... " >&6; }
22892 if test ${ax_cv_check_cflags___Wattributes+y}
22893 then :
22894 printf %s "(cached) " >&6
22895 else $as_nop
22896
22897 ax_check_save_flags=$CFLAGS
22898 CFLAGS="$CFLAGS -Wattributes"
22899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22900 /* end confdefs.h. */
22901
22902 int
22903 main (void)
22904 {
22905
22906 ;
22907 return 0;
22908 }
22909 _ACEOF
22910 if ac_fn_c_try_compile "$LINENO"
22911 then :
22912 ax_cv_check_cflags___Wattributes=yes
22913 else $as_nop
22914 ax_cv_check_cflags___Wattributes=no
22915 fi
22916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22917 CFLAGS=$ax_check_save_flags
22918 fi
22919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wattributes" >&5
22920 printf "%s\n" "$ax_cv_check_cflags___Wattributes" >&6; }
22921 if test "x$ax_cv_check_cflags___Wattributes" = xyes
22922 then :
22923 CFLAGS="$CFLAGS -Wattributes"
22924 else $as_nop
22925 :
22926 fi
22927
22928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
22929 printf %s "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
22930 if test ${ax_cv_check_cflags___Wdiv_by_zero+y}
22931 then :
22932 printf %s "(cached) " >&6
22933 else $as_nop
22934
22935 ax_check_save_flags=$CFLAGS
22936 CFLAGS="$CFLAGS -Wdiv-by-zero"
22937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22938 /* end confdefs.h. */
22939
22940 int
22941 main (void)
22942 {
22943
22944 ;
22945 return 0;
22946 }
22947 _ACEOF
22948 if ac_fn_c_try_compile "$LINENO"
22949 then :
22950 ax_cv_check_cflags___Wdiv_by_zero=yes
22951 else $as_nop
22952 ax_cv_check_cflags___Wdiv_by_zero=no
22953 fi
22954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22955 CFLAGS=$ax_check_save_flags
22956 fi
22957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
22958 printf "%s\n" "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
22959 if test "x$ax_cv_check_cflags___Wdiv_by_zero" = xyes
22960 then :
22961 CFLAGS="$CFLAGS -Wdiv-by-zero"
22962 else $as_nop
22963 :
22964 fi
22965
22966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshorten-64-to-32" >&5
22967 printf %s "checking whether C compiler accepts -Wshorten-64-to-32... " >&6; }
22968 if test ${ax_cv_check_cflags___Wshorten_64_to_32+y}
22969 then :
22970 printf %s "(cached) " >&6
22971 else $as_nop
22972
22973 ax_check_save_flags=$CFLAGS
22974 CFLAGS="$CFLAGS -Wshorten-64-to-32"
22975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22976 /* end confdefs.h. */
22977
22978 int
22979 main (void)
22980 {
22981
22982 ;
22983 return 0;
22984 }
22985 _ACEOF
22986 if ac_fn_c_try_compile "$LINENO"
22987 then :
22988 ax_cv_check_cflags___Wshorten_64_to_32=yes
22989 else $as_nop
22990 ax_cv_check_cflags___Wshorten_64_to_32=no
22991 fi
22992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22993 CFLAGS=$ax_check_save_flags
22994 fi
22995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshorten_64_to_32" >&5
22996 printf "%s\n" "$ax_cv_check_cflags___Wshorten_64_to_32" >&6; }
22997 if test "x$ax_cv_check_cflags___Wshorten_64_to_32" = xyes
22998 then :
22999 CFLAGS="$CFLAGS -Wshorten-64-to-32"
23000 else $as_nop
23001 :
23002 fi
23003
23004
23005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wconversion" >&5
23006 printf %s "checking whether C compiler accepts -Wconversion... " >&6; }
23007 if test ${ax_cv_check_cflags___Wconversion+y}
23008 then :
23009 printf %s "(cached) " >&6
23010 else $as_nop
23011
23012 ax_check_save_flags=$CFLAGS
23013 CFLAGS="$CFLAGS -Wconversion"
23014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23015 /* end confdefs.h. */
23016
23017 int
23018 main (void)
23019 {
23020
23021 ;
23022 return 0;
23023 }
23024 _ACEOF
23025 if ac_fn_c_try_compile "$LINENO"
23026 then :
23027 ax_cv_check_cflags___Wconversion=yes
23028 else $as_nop
23029 ax_cv_check_cflags___Wconversion=no
23030 fi
23031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23032 CFLAGS=$ax_check_save_flags
23033 fi
23034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wconversion" >&5
23035 printf "%s\n" "$ax_cv_check_cflags___Wconversion" >&6; }
23036 if test "x$ax_cv_check_cflags___Wconversion" = xyes
23037 then :
23038 CFLAGS="$CFLAGS -Wconversion"
23039 else $as_nop
23040 :
23041 fi
23042
23043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextended-offsetof" >&5
23044 printf %s "checking whether C compiler accepts -Wextended-offsetof... " >&6; }
23045 if test ${ax_cv_check_cflags___Wextended_offsetof+y}
23046 then :
23047 printf %s "(cached) " >&6
23048 else $as_nop
23049
23050 ax_check_save_flags=$CFLAGS
23051 CFLAGS="$CFLAGS -Wextended-offsetof"
23052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23053 /* end confdefs.h. */
23054
23055 int
23056 main (void)
23057 {
23058
23059 ;
23060 return 0;
23061 }
23062 _ACEOF
23063 if ac_fn_c_try_compile "$LINENO"
23064 then :
23065 ax_cv_check_cflags___Wextended_offsetof=yes
23066 else $as_nop
23067 ax_cv_check_cflags___Wextended_offsetof=no
23068 fi
23069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23070 CFLAGS=$ax_check_save_flags
23071 fi
23072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextended_offsetof" >&5
23073 printf "%s\n" "$ax_cv_check_cflags___Wextended_offsetof" >&6; }
23074 if test "x$ax_cv_check_cflags___Wextended_offsetof" = xyes
23075 then :
23076 CFLAGS="$CFLAGS -Wextended-offsetof"
23077 else $as_nop
23078 :
23079 fi
23080
23081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-nonliteral" >&5
23082 printf %s "checking whether C compiler accepts -Wformat-nonliteral... " >&6; }
23083 if test ${ax_cv_check_cflags___Wformat_nonliteral+y}
23084 then :
23085 printf %s "(cached) " >&6
23086 else $as_nop
23087
23088 ax_check_save_flags=$CFLAGS
23089 CFLAGS="$CFLAGS -Wformat-nonliteral"
23090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23091 /* end confdefs.h. */
23092
23093 int
23094 main (void)
23095 {
23096
23097 ;
23098 return 0;
23099 }
23100 _ACEOF
23101 if ac_fn_c_try_compile "$LINENO"
23102 then :
23103 ax_cv_check_cflags___Wformat_nonliteral=yes
23104 else $as_nop
23105 ax_cv_check_cflags___Wformat_nonliteral=no
23106 fi
23107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23108 CFLAGS=$ax_check_save_flags
23109 fi
23110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_nonliteral" >&5
23111 printf "%s\n" "$ax_cv_check_cflags___Wformat_nonliteral" >&6; }
23112 if test "x$ax_cv_check_cflags___Wformat_nonliteral" = xyes
23113 then :
23114 CFLAGS="$CFLAGS -Wformat-nonliteral"
23115 else $as_nop
23116 :
23117 fi
23118
23119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wlanguage-extension-token" >&5
23120 printf %s "checking whether C compiler accepts -Wlanguage-extension-token... " >&6; }
23121 if test ${ax_cv_check_cflags___Wlanguage_extension_token+y}
23122 then :
23123 printf %s "(cached) " >&6
23124 else $as_nop
23125
23126 ax_check_save_flags=$CFLAGS
23127 CFLAGS="$CFLAGS -Wlanguage-extension-token"
23128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23129 /* end confdefs.h. */
23130
23131 int
23132 main (void)
23133 {
23134
23135 ;
23136 return 0;
23137 }
23138 _ACEOF
23139 if ac_fn_c_try_compile "$LINENO"
23140 then :
23141 ax_cv_check_cflags___Wlanguage_extension_token=yes
23142 else $as_nop
23143 ax_cv_check_cflags___Wlanguage_extension_token=no
23144 fi
23145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23146 CFLAGS=$ax_check_save_flags
23147 fi
23148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wlanguage_extension_token" >&5
23149 printf "%s\n" "$ax_cv_check_cflags___Wlanguage_extension_token" >&6; }
23150 if test "x$ax_cv_check_cflags___Wlanguage_extension_token" = xyes
23151 then :
23152 CFLAGS="$CFLAGS -Wlanguage-extension-token"
23153 else $as_nop
23154 :
23155 fi
23156
23157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-field-initializers" >&5
23158 printf %s "checking whether C compiler accepts -Wmissing-field-initializers... " >&6; }
23159 if test ${ax_cv_check_cflags___Wmissing_field_initializers+y}
23160 then :
23161 printf %s "(cached) " >&6
23162 else $as_nop
23163
23164 ax_check_save_flags=$CFLAGS
23165 CFLAGS="$CFLAGS -Wmissing-field-initializers"
23166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23167 /* end confdefs.h. */
23168
23169 int
23170 main (void)
23171 {
23172
23173 ;
23174 return 0;
23175 }
23176 _ACEOF
23177 if ac_fn_c_try_compile "$LINENO"
23178 then :
23179 ax_cv_check_cflags___Wmissing_field_initializers=yes
23180 else $as_nop
23181 ax_cv_check_cflags___Wmissing_field_initializers=no
23182 fi
23183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23184 CFLAGS=$ax_check_save_flags
23185 fi
23186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_field_initializers" >&5
23187 printf "%s\n" "$ax_cv_check_cflags___Wmissing_field_initializers" >&6; }
23188 if test "x$ax_cv_check_cflags___Wmissing_field_initializers" = xyes
23189 then :
23190 CFLAGS="$CFLAGS -Wmissing-field-initializers"
23191 else $as_nop
23192 :
23193 fi
23194
23195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-noreturn" >&5
23196 printf %s "checking whether C compiler accepts -Wmissing-noreturn... " >&6; }
23197 if test ${ax_cv_check_cflags___Wmissing_noreturn+y}
23198 then :
23199 printf %s "(cached) " >&6
23200 else $as_nop
23201
23202 ax_check_save_flags=$CFLAGS
23203 CFLAGS="$CFLAGS -Wmissing-noreturn"
23204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23205 /* end confdefs.h. */
23206
23207 int
23208 main (void)
23209 {
23210
23211 ;
23212 return 0;
23213 }
23214 _ACEOF
23215 if ac_fn_c_try_compile "$LINENO"
23216 then :
23217 ax_cv_check_cflags___Wmissing_noreturn=yes
23218 else $as_nop
23219 ax_cv_check_cflags___Wmissing_noreturn=no
23220 fi
23221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23222 CFLAGS=$ax_check_save_flags
23223 fi
23224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_noreturn" >&5
23225 printf "%s\n" "$ax_cv_check_cflags___Wmissing_noreturn" >&6; }
23226 if test "x$ax_cv_check_cflags___Wmissing_noreturn" = xyes
23227 then :
23228 CFLAGS="$CFLAGS -Wmissing-noreturn"
23229 else $as_nop
23230 :
23231 fi
23232
23233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-variable-declarations" >&5
23234 printf %s "checking whether C compiler accepts -Wmissing-variable-declarations... " >&6; }
23235 if test ${ax_cv_check_cflags___Wmissing_variable_declarations+y}
23236 then :
23237 printf %s "(cached) " >&6
23238 else $as_nop
23239
23240 ax_check_save_flags=$CFLAGS
23241 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
23242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23243 /* end confdefs.h. */
23244
23245 int
23246 main (void)
23247 {
23248
23249 ;
23250 return 0;
23251 }
23252 _ACEOF
23253 if ac_fn_c_try_compile "$LINENO"
23254 then :
23255 ax_cv_check_cflags___Wmissing_variable_declarations=yes
23256 else $as_nop
23257 ax_cv_check_cflags___Wmissing_variable_declarations=no
23258 fi
23259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23260 CFLAGS=$ax_check_save_flags
23261 fi
23262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_variable_declarations" >&5
23263 printf "%s\n" "$ax_cv_check_cflags___Wmissing_variable_declarations" >&6; }
23264 if test "x$ax_cv_check_cflags___Wmissing_variable_declarations" = xyes
23265 then :
23266 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
23267 else $as_nop
23268 :
23269 fi
23270
23271 # Not used because we cannot change public structs
23272 # AX_CHECK_COMPILE_FLAG([-Wpadded], [CFLAGS="$CFLAGS -Wpadded"])
23273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsign-conversion" >&5
23274 printf %s "checking whether C compiler accepts -Wsign-conversion... " >&6; }
23275 if test ${ax_cv_check_cflags___Wsign_conversion+y}
23276 then :
23277 printf %s "(cached) " >&6
23278 else $as_nop
23279
23280 ax_check_save_flags=$CFLAGS
23281 CFLAGS="$CFLAGS -Wsign-conversion"
23282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23283 /* end confdefs.h. */
23284
23285 int
23286 main (void)
23287 {
23288
23289 ;
23290 return 0;
23291 }
23292 _ACEOF
23293 if ac_fn_c_try_compile "$LINENO"
23294 then :
23295 ax_cv_check_cflags___Wsign_conversion=yes
23296 else $as_nop
23297 ax_cv_check_cflags___Wsign_conversion=no
23298 fi
23299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23300 CFLAGS=$ax_check_save_flags
23301 fi
23302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsign_conversion" >&5
23303 printf "%s\n" "$ax_cv_check_cflags___Wsign_conversion" >&6; }
23304 if test "x$ax_cv_check_cflags___Wsign_conversion" = xyes
23305 then :
23306 CFLAGS="$CFLAGS -Wsign-conversion"
23307 else $as_nop
23308 :
23309 fi
23310
23311 # Not used because this basically disallows default case
23312 # AX_CHECK_COMPILE_FLAG([-Wswitch-enum], [CFLAGS="$CFLAGS -Wswitch-enum"])
23313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunreachable-code-break" >&5
23314 printf %s "checking whether C compiler accepts -Wunreachable-code-break... " >&6; }
23315 if test ${ax_cv_check_cflags___Wunreachable_code_break+y}
23316 then :
23317 printf %s "(cached) " >&6
23318 else $as_nop
23319
23320 ax_check_save_flags=$CFLAGS
23321 CFLAGS="$CFLAGS -Wunreachable-code-break"
23322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23323 /* end confdefs.h. */
23324
23325 int
23326 main (void)
23327 {
23328
23329 ;
23330 return 0;
23331 }
23332 _ACEOF
23333 if ac_fn_c_try_compile "$LINENO"
23334 then :
23335 ax_cv_check_cflags___Wunreachable_code_break=yes
23336 else $as_nop
23337 ax_cv_check_cflags___Wunreachable_code_break=no
23338 fi
23339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23340 CFLAGS=$ax_check_save_flags
23341 fi
23342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunreachable_code_break" >&5
23343 printf "%s\n" "$ax_cv_check_cflags___Wunreachable_code_break" >&6; }
23344 if test "x$ax_cv_check_cflags___Wunreachable_code_break" = xyes
23345 then :
23346 CFLAGS="$CFLAGS -Wunreachable-code-break"
23347 else $as_nop
23348 :
23349 fi
23350
23351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-macros" >&5
23352 printf %s "checking whether C compiler accepts -Wunused-macros... " >&6; }
23353 if test ${ax_cv_check_cflags___Wunused_macros+y}
23354 then :
23355 printf %s "(cached) " >&6
23356 else $as_nop
23357
23358 ax_check_save_flags=$CFLAGS
23359 CFLAGS="$CFLAGS -Wunused-macros"
23360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23361 /* end confdefs.h. */
23362
23363 int
23364 main (void)
23365 {
23366
23367 ;
23368 return 0;
23369 }
23370 _ACEOF
23371 if ac_fn_c_try_compile "$LINENO"
23372 then :
23373 ax_cv_check_cflags___Wunused_macros=yes
23374 else $as_nop
23375 ax_cv_check_cflags___Wunused_macros=no
23376 fi
23377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23378 CFLAGS=$ax_check_save_flags
23379 fi
23380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunused_macros" >&5
23381 printf "%s\n" "$ax_cv_check_cflags___Wunused_macros" >&6; }
23382 if test "x$ax_cv_check_cflags___Wunused_macros" = xyes
23383 then :
23384 CFLAGS="$CFLAGS -Wunused-macros"
23385 else $as_nop
23386 :
23387 fi
23388
23389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-parameter" >&5
23390 printf %s "checking whether C compiler accepts -Wunused-parameter... " >&6; }
23391 if test ${ax_cv_check_cflags___Wunused_parameter+y}
23392 then :
23393 printf %s "(cached) " >&6
23394 else $as_nop
23395
23396 ax_check_save_flags=$CFLAGS
23397 CFLAGS="$CFLAGS -Wunused-parameter"
23398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23399 /* end confdefs.h. */
23400
23401 int
23402 main (void)
23403 {
23404
23405 ;
23406 return 0;
23407 }
23408 _ACEOF
23409 if ac_fn_c_try_compile "$LINENO"
23410 then :
23411 ax_cv_check_cflags___Wunused_parameter=yes
23412 else $as_nop
23413 ax_cv_check_cflags___Wunused_parameter=no
23414 fi
23415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23416 CFLAGS=$ax_check_save_flags
23417 fi
23418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunused_parameter" >&5
23419 printf "%s\n" "$ax_cv_check_cflags___Wunused_parameter" >&6; }
23420 if test "x$ax_cv_check_cflags___Wunused_parameter" = xyes
23421 then :
23422 CFLAGS="$CFLAGS -Wunused-parameter"
23423 else $as_nop
23424 :
23425 fi
23426
23427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wredundant-decls" >&5
23428 printf %s "checking whether C compiler accepts -Wredundant-decls... " >&6; }
23429 if test ${ax_cv_check_cflags___Wredundant_decls+y}
23430 then :
23431 printf %s "(cached) " >&6
23432 else $as_nop
23433
23434 ax_check_save_flags=$CFLAGS
23435 CFLAGS="$CFLAGS -Wredundant-decls"
23436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23437 /* end confdefs.h. */
23438
23439 int
23440 main (void)
23441 {
23442
23443 ;
23444 return 0;
23445 }
23446 _ACEOF
23447 if ac_fn_c_try_compile "$LINENO"
23448 then :
23449 ax_cv_check_cflags___Wredundant_decls=yes
23450 else $as_nop
23451 ax_cv_check_cflags___Wredundant_decls=no
23452 fi
23453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23454 CFLAGS=$ax_check_save_flags
23455 fi
23456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wredundant_decls" >&5
23457 printf "%s\n" "$ax_cv_check_cflags___Wredundant_decls" >&6; }
23458 if test "x$ax_cv_check_cflags___Wredundant_decls" = xyes
23459 then :
23460 CFLAGS="$CFLAGS -Wredundant-decls"
23461 else $as_nop
23462 :
23463 fi
23464
23465 # Only work with Clang for the moment
23466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wheader-guard" >&5
23467 printf %s "checking whether C compiler accepts -Wheader-guard... " >&6; }
23468 if test ${ax_cv_check_cflags___Wheader_guard+y}
23469 then :
23470 printf %s "(cached) " >&6
23471 else $as_nop
23472
23473 ax_check_save_flags=$CFLAGS
23474 CFLAGS="$CFLAGS -Wheader-guard"
23475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23476 /* end confdefs.h. */
23477
23478 int
23479 main (void)
23480 {
23481
23482 ;
23483 return 0;
23484 }
23485 _ACEOF
23486 if ac_fn_c_try_compile "$LINENO"
23487 then :
23488 ax_cv_check_cflags___Wheader_guard=yes
23489 else $as_nop
23490 ax_cv_check_cflags___Wheader_guard=no
23491 fi
23492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23493 CFLAGS=$ax_check_save_flags
23494 fi
23495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wheader_guard" >&5
23496 printf "%s\n" "$ax_cv_check_cflags___Wheader_guard" >&6; }
23497 if test "x$ax_cv_check_cflags___Wheader_guard" = xyes
23498 then :
23499 CFLAGS="$CFLAGS -Wheader-guard"
23500 else $as_nop
23501 :
23502 fi
23503
23504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsometimes-uninitialized" >&5
23505 printf %s "checking whether C compiler accepts -Wsometimes-uninitialized... " >&6; }
23506 if test ${ax_cv_check_cflags___Wsometimes_uninitialized+y}
23507 then :
23508 printf %s "(cached) " >&6
23509 else $as_nop
23510
23511 ax_check_save_flags=$CFLAGS
23512 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
23513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23514 /* end confdefs.h. */
23515
23516 int
23517 main (void)
23518 {
23519
23520 ;
23521 return 0;
23522 }
23523 _ACEOF
23524 if ac_fn_c_try_compile "$LINENO"
23525 then :
23526 ax_cv_check_cflags___Wsometimes_uninitialized=yes
23527 else $as_nop
23528 ax_cv_check_cflags___Wsometimes_uninitialized=no
23529 fi
23530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23531 CFLAGS=$ax_check_save_flags
23532 fi
23533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
23534 printf "%s\n" "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
23535 if test "x$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes
23536 then :
23537 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
23538 else $as_nop
23539 :
23540 fi
23541
23542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra-semi" >&5
23543 printf %s "checking whether C compiler accepts -Wextra-semi... " >&6; }
23544 if test ${ax_cv_check_cflags___Wextra_semi+y}
23545 then :
23546 printf %s "(cached) " >&6
23547 else $as_nop
23548
23549 ax_check_save_flags=$CFLAGS
23550 CFLAGS="$CFLAGS -Wextra-semi"
23551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23552 /* end confdefs.h. */
23553
23554 int
23555 main (void)
23556 {
23557
23558 ;
23559 return 0;
23560 }
23561 _ACEOF
23562 if ac_fn_c_try_compile "$LINENO"
23563 then :
23564 ax_cv_check_cflags___Wextra_semi=yes
23565 else $as_nop
23566 ax_cv_check_cflags___Wextra_semi=no
23567 fi
23568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23569 CFLAGS=$ax_check_save_flags
23570 fi
23571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra_semi" >&5
23572 printf "%s\n" "$ax_cv_check_cflags___Wextra_semi" >&6; }
23573 if test "x$ax_cv_check_cflags___Wextra_semi" = xyes
23574 then :
23575 CFLAGS="$CFLAGS -Wextra-semi"
23576 else $as_nop
23577 :
23578 fi
23579
23580
23581 # Only work with gcc7 for the moment
23582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-branches" >&5
23583 printf %s "checking whether C compiler accepts -Wduplicated-branches... " >&6; }
23584 if test ${ax_cv_check_cflags___Wduplicated_branches+y}
23585 then :
23586 printf %s "(cached) " >&6
23587 else $as_nop
23588
23589 ax_check_save_flags=$CFLAGS
23590 CFLAGS="$CFLAGS -Wduplicated-branches"
23591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23592 /* end confdefs.h. */
23593
23594 int
23595 main (void)
23596 {
23597
23598 ;
23599 return 0;
23600 }
23601 _ACEOF
23602 if ac_fn_c_try_compile "$LINENO"
23603 then :
23604 ax_cv_check_cflags___Wduplicated_branches=yes
23605 else $as_nop
23606 ax_cv_check_cflags___Wduplicated_branches=no
23607 fi
23608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23609 CFLAGS=$ax_check_save_flags
23610 fi
23611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wduplicated_branches" >&5
23612 printf "%s\n" "$ax_cv_check_cflags___Wduplicated_branches" >&6; }
23613 if test "x$ax_cv_check_cflags___Wduplicated_branches" = xyes
23614 then :
23615 CFLAGS="$CFLAGS -Wduplicated-branches"
23616 else $as_nop
23617 :
23618 fi
23619
23620
23621 # This is required because we pass format string as "const char*.
23622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-format-nonliteral" >&5
23623 printf %s "checking whether C compiler accepts -Wno-format-nonliteral... " >&6; }
23624 if test ${ax_cv_check_cflags___Wno_format_nonliteral+y}
23625 then :
23626 printf %s "(cached) " >&6
23627 else $as_nop
23628
23629 ax_check_save_flags=$CFLAGS
23630 CFLAGS="$CFLAGS -Wno-format-nonliteral"
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632 /* end confdefs.h. */
23633
23634 int
23635 main (void)
23636 {
23637
23638 ;
23639 return 0;
23640 }
23641 _ACEOF
23642 if ac_fn_c_try_compile "$LINENO"
23643 then :
23644 ax_cv_check_cflags___Wno_format_nonliteral=yes
23645 else $as_nop
23646 ax_cv_check_cflags___Wno_format_nonliteral=no
23647 fi
23648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23649 CFLAGS=$ax_check_save_flags
23650 fi
23651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_format_nonliteral" >&5
23652 printf "%s\n" "$ax_cv_check_cflags___Wno_format_nonliteral" >&6; }
23653 if test "x$ax_cv_check_cflags___Wno_format_nonliteral" = xyes
23654 then :
23655 CFLAGS="$CFLAGS -Wno-format-nonliteral"
23656 else $as_nop
23657 :
23658 fi
23659
23660
23661 # For C++ compiler
23662 ac_ext=cpp
23663 ac_cpp='$CXXCPP $CPPFLAGS'
23664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23667
23668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wall" >&5
23669 printf %s "checking whether C++ compiler accepts -Wall... " >&6; }
23670 if test ${ax_cv_check_cxxflags___Wall+y}
23671 then :
23672 printf %s "(cached) " >&6
23673 else $as_nop
23674
23675 ax_check_save_flags=$CXXFLAGS
23676 CXXFLAGS="$CXXFLAGS -Wall"
23677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23678 /* end confdefs.h. */
23679
23680 int
23681 main (void)
23682 {
23683
23684 ;
23685 return 0;
23686 }
23687 _ACEOF
23688 if ac_fn_cxx_try_compile "$LINENO"
23689 then :
23690 ax_cv_check_cxxflags___Wall=yes
23691 else $as_nop
23692 ax_cv_check_cxxflags___Wall=no
23693 fi
23694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23695 CXXFLAGS=$ax_check_save_flags
23696 fi
23697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wall" >&5
23698 printf "%s\n" "$ax_cv_check_cxxflags___Wall" >&6; }
23699 if test "x$ax_cv_check_cxxflags___Wall" = xyes
23700 then :
23701 CXXFLAGS="$CXXFLAGS -Wall"
23702 else $as_nop
23703 :
23704 fi
23705
23706 # TODO separate option for -Werror and warnings?
23707 #AX_CHECK_COMPILE_FLAG([-Werror], [CXXFLAGS="$CXXFLAGS -Werror"])
23708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wformat-security" >&5
23709 printf %s "checking whether C++ compiler accepts -Wformat-security... " >&6; }
23710 if test ${ax_cv_check_cxxflags___Wformat_security+y}
23711 then :
23712 printf %s "(cached) " >&6
23713 else $as_nop
23714
23715 ax_check_save_flags=$CXXFLAGS
23716 CXXFLAGS="$CXXFLAGS -Wformat-security"
23717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23718 /* end confdefs.h. */
23719
23720 int
23721 main (void)
23722 {
23723
23724 ;
23725 return 0;
23726 }
23727 _ACEOF
23728 if ac_fn_cxx_try_compile "$LINENO"
23729 then :
23730 ax_cv_check_cxxflags___Wformat_security=yes
23731 else $as_nop
23732 ax_cv_check_cxxflags___Wformat_security=no
23733 fi
23734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23735 CXXFLAGS=$ax_check_save_flags
23736 fi
23737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wformat_security" >&5
23738 printf "%s\n" "$ax_cv_check_cxxflags___Wformat_security" >&6; }
23739 if test "x$ax_cv_check_cxxflags___Wformat_security" = xyes
23740 then :
23741 CXXFLAGS="$CXXFLAGS -Wformat-security"
23742 else $as_nop
23743 :
23744 fi
23745
23746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wsometimes-uninitialized" >&5
23747 printf %s "checking whether C++ compiler accepts -Wsometimes-uninitialized... " >&6; }
23748 if test ${ax_cv_check_cxxflags___Wsometimes_uninitialized+y}
23749 then :
23750 printf %s "(cached) " >&6
23751 else $as_nop
23752
23753 ax_check_save_flags=$CXXFLAGS
23754 CXXFLAGS="$CXXFLAGS -Wsometimes-uninitialized"
23755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23756 /* end confdefs.h. */
23757
23758 int
23759 main (void)
23760 {
23761
23762 ;
23763 return 0;
23764 }
23765 _ACEOF
23766 if ac_fn_cxx_try_compile "$LINENO"
23767 then :
23768 ax_cv_check_cxxflags___Wsometimes_uninitialized=yes
23769 else $as_nop
23770 ax_cv_check_cxxflags___Wsometimes_uninitialized=no
23771 fi
23772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23773 CXXFLAGS=$ax_check_save_flags
23774 fi
23775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wsometimes_uninitialized" >&5
23776 printf "%s\n" "$ax_cv_check_cxxflags___Wsometimes_uninitialized" >&6; }
23777 if test "x$ax_cv_check_cxxflags___Wsometimes_uninitialized" = xyes
23778 then :
23779 CXXFLAGS="$CXXFLAGS -Wsometimes-uninitialized"
23780 else $as_nop
23781 :
23782 fi
23783
23784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wextra-semi" >&5
23785 printf %s "checking whether C++ compiler accepts -Wextra-semi... " >&6; }
23786 if test ${ax_cv_check_cxxflags___Wextra_semi+y}
23787 then :
23788 printf %s "(cached) " >&6
23789 else $as_nop
23790
23791 ax_check_save_flags=$CXXFLAGS
23792 CXXFLAGS="$CXXFLAGS -Wextra-semi"
23793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23794 /* end confdefs.h. */
23795
23796 int
23797 main (void)
23798 {
23799
23800 ;
23801 return 0;
23802 }
23803 _ACEOF
23804 if ac_fn_cxx_try_compile "$LINENO"
23805 then :
23806 ax_cv_check_cxxflags___Wextra_semi=yes
23807 else $as_nop
23808 ax_cv_check_cxxflags___Wextra_semi=no
23809 fi
23810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23811 CXXFLAGS=$ax_check_save_flags
23812 fi
23813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wextra_semi" >&5
23814 printf "%s\n" "$ax_cv_check_cxxflags___Wextra_semi" >&6; }
23815 if test "x$ax_cv_check_cxxflags___Wextra_semi" = xyes
23816 then :
23817 CXXFLAGS="$CXXFLAGS -Wextra-semi"
23818 else $as_nop
23819 :
23820 fi
23821
23822 # Disable noexcept-type warning of g++-7. This is not harmful as
23823 # long as all source files are compiled with the same compiler.
23824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wno-noexcept-type" >&5
23825 printf %s "checking whether C++ compiler accepts -Wno-noexcept-type... " >&6; }
23826 if test ${ax_cv_check_cxxflags___Wno_noexcept_type+y}
23827 then :
23828 printf %s "(cached) " >&6
23829 else $as_nop
23830
23831 ax_check_save_flags=$CXXFLAGS
23832 CXXFLAGS="$CXXFLAGS -Wno-noexcept-type"
23833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23834 /* end confdefs.h. */
23835
23836 int
23837 main (void)
23838 {
23839
23840 ;
23841 return 0;
23842 }
23843 _ACEOF
23844 if ac_fn_cxx_try_compile "$LINENO"
23845 then :
23846 ax_cv_check_cxxflags___Wno_noexcept_type=yes
23847 else $as_nop
23848 ax_cv_check_cxxflags___Wno_noexcept_type=no
23849 fi
23850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23851 CXXFLAGS=$ax_check_save_flags
23852 fi
23853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wno_noexcept_type" >&5
23854 printf "%s\n" "$ax_cv_check_cxxflags___Wno_noexcept_type" >&6; }
23855 if test "x$ax_cv_check_cxxflags___Wno_noexcept_type" = xyes
23856 then :
23857 CXXFLAGS="$CXXFLAGS -Wno-noexcept-type"
23858 else $as_nop
23859 :
23860 fi
23861
23862 ac_ext=c
23863 ac_cpp='$CPP $CPPFLAGS'
23864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23867
23868 fi
23869
23870 WARNCFLAGS=$CFLAGS
23871 WARNCXXFLAGS=$CXXFLAGS
23872
23873 CFLAGS=$save_CFLAGS
23874 CXXFLAGS=$save_CXXFLAGS
23875
23876
23877
23878
23879 if test "x$asan" != "xno"; then
23880 # Assume both C and C++ compiler either support ASAN or not.
23881 LDFLAGS_saved="$LDFLAGS"
23882 LDFLAGS="$LDFLAGS -fsanitize=address"
23883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=address" >&5
23884 printf %s "checking whether C compiler accepts -fsanitize=address... " >&6; }
23885 if test ${ax_cv_check_cflags___fsanitize_address+y}
23886 then :
23887 printf %s "(cached) " >&6
23888 else $as_nop
23889
23890 ax_check_save_flags=$CFLAGS
23891 CFLAGS="$CFLAGS -fsanitize=address"
23892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23893 /* end confdefs.h. */
23894
23895 int
23896 main (void)
23897 {
23898
23899 ;
23900 return 0;
23901 }
23902 _ACEOF
23903 if ac_fn_c_try_compile "$LINENO"
23904 then :
23905 ax_cv_check_cflags___fsanitize_address=yes
23906 else $as_nop
23907 ax_cv_check_cflags___fsanitize_address=no
23908 fi
23909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23910 CFLAGS=$ax_check_save_flags
23911 fi
23912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_address" >&5
23913 printf "%s\n" "$ax_cv_check_cflags___fsanitize_address" >&6; }
23914 if test "x$ax_cv_check_cflags___fsanitize_address" = xyes
23915 then :
23916 CFLAGS="$CFLAGS -fsanitize=address"; CXXFLAGS="$CXXFLAGS -fsanitize=address"
23917 else $as_nop
23918 LDFLAGS="$LDFLAGS_saved"
23919 fi
23920
23921 fi
23922
23923 if test "x${memdebug}" = "xyes"; then
23924
23925 printf "%s\n" "#define MEMDEBUG 1" >>confdefs.h
23926
23927 fi
23928
23929 # extra flags for API function visibility
23930 EXTRACFLAG=
23931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
23932 printf %s "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
23933 if test ${ax_cv_check_cflags___fvisibility_hidden+y}
23934 then :
23935 printf %s "(cached) " >&6
23936 else $as_nop
23937
23938 ax_check_save_flags=$CFLAGS
23939 CFLAGS="$CFLAGS -fvisibility=hidden"
23940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23941 /* end confdefs.h. */
23942
23943 int
23944 main (void)
23945 {
23946
23947 ;
23948 return 0;
23949 }
23950 _ACEOF
23951 if ac_fn_c_try_compile "$LINENO"
23952 then :
23953 ax_cv_check_cflags___fvisibility_hidden=yes
23954 else $as_nop
23955 ax_cv_check_cflags___fvisibility_hidden=no
23956 fi
23957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23958 CFLAGS=$ax_check_save_flags
23959 fi
23960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
23961 printf "%s\n" "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
23962 if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes
23963 then :
23964 EXTRACFLAG="-fvisibility=hidden"
23965 else $as_nop
23966 :
23967 fi
23968
23969
23970
23971
23972 ac_config_files="$ac_config_files Makefile lib/Makefile lib/libnghttp3.pc lib/includes/Makefile lib/includes/nghttp3/version.h tests/Makefile doc/Makefile doc/source/conf.py examples/Makefile"
23973
23974 cat >confcache <<\_ACEOF
23975 # This file is a shell script that caches the results of configure
23976 # tests run on this system so they can be shared between configure
23977 # scripts and configure runs, see configure's option --config-cache.
23978 # It is not useful on other systems. If it contains results you don't
23979 # want to keep, you may remove or edit it.
23980 #
23981 # config.status only pays attention to the cache file if you give it
23982 # the --recheck option to rerun configure.
23983 #
23984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23986 # following values.
23987
23988 _ACEOF
23989
23990 # The following way of writing the cache mishandles newlines in values,
23991 # but we know of no workaround that is simple, portable, and efficient.
23992 # So, we kill variables containing newlines.
23993 # Ultrix sh set writes to stderr and can't be redirected directly,
23994 # and sets the high bit in the cache file unless we assign to the vars.
23995 (
23996 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23997 eval ac_val=\$$ac_var
23998 case $ac_val in #(
23999 *${as_nl}*)
24000 case $ac_var in #(
24001 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24002 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24003 esac
24004 case $ac_var in #(
24005 _ | IFS | as_nl) ;; #(
24006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24007 *) { eval $ac_var=; unset $ac_var;} ;;
24008 esac ;;
24009 esac
24010 done
24011
24012 (set) 2>&1 |
24013 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24014 *${as_nl}ac_space=\ *)
24015 # `set' does not quote correctly, so add quotes: double-quote
24016 # substitution turns \\\\ into \\, and sed turns \\ into \.
24017 sed -n \
24018 "s/'/'\\\\''/g;
24019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24020 ;; #(
24021 *)
24022 # `set' quotes correctly as required by POSIX, so do not add quotes.
24023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24024 ;;
24025 esac |
24026 sort
24027 ) |
24028 sed '
24029 /^ac_cv_env_/b end
24030 t clear
24031 :clear
24032 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
24033 t end
24034 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24035 :end' >>confcache
24036 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24037 if test -w "$cache_file"; then
24038 if test "x$cache_file" != "x/dev/null"; then
24039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24040 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
24041 if test ! -f "$cache_file" || test -h "$cache_file"; then
24042 cat confcache >"$cache_file"
24043 else
24044 case $cache_file in #(
24045 */* | ?:*)
24046 mv -f confcache "$cache_file"$$ &&
24047 mv -f "$cache_file"$$ "$cache_file" ;; #(
24048 *)
24049 mv -f confcache "$cache_file" ;;
24050 esac
24051 fi
24052 fi
24053 else
24054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24055 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
24056 fi
24057 fi
24058 rm -f confcache
24059
24060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24061 # Let make expand exec_prefix.
24062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24063
24064 DEFS=-DHAVE_CONFIG_H
24065
24066 ac_libobjs=
24067 ac_ltlibobjs=
24068 U=
24069 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24070 # 1. Remove the extension, and $U if already installed.
24071 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24072 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
24073 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24074 # will be set to the directory where LIBOBJS objects are built.
24075 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24076 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24077 done
24078 LIBOBJS=$ac_libobjs
24079
24080 LTLIBOBJS=$ac_ltlibobjs
24081
24082
24083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24084 printf %s "checking that generated files are newer than configure... " >&6; }
24085 if test -n "$am_sleep_pid"; then
24086 # Hide warnings about reused PIDs.
24087 wait $am_sleep_pid 2>/dev/null
24088 fi
24089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
24090 printf "%s\n" "done" >&6; }
24091 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24092 as_fn_error $? "conditional \"AMDEP\" was never defined.
24093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24094 fi
24095 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24096 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24098 fi
24099 if test -n "$EXEEXT"; then
24100 am__EXEEXT_TRUE=
24101 am__EXEEXT_FALSE='#'
24102 else
24103 am__EXEEXT_TRUE='#'
24104 am__EXEEXT_FALSE=
24105 fi
24106
24107 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24108 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24110 fi
24111 if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
24112 as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
24113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24114 fi
24115
24116
24117 : "${CONFIG_STATUS=./config.status}"
24118 ac_write_fail=0
24119 ac_clean_files_save=$ac_clean_files
24120 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24122 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
24123 as_write_fail=0
24124 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24125 #! $SHELL
24126 # Generated by $as_me.
24127 # Run this file to recreate the current configuration.
24128 # Compiler output produced by configure, useful for debugging
24129 # configure, is in config.log if it exists.
24130
24131 debug=false
24132 ac_cs_recheck=false
24133 ac_cs_silent=false
24134
24135 SHELL=\${CONFIG_SHELL-$SHELL}
24136 export SHELL
24137 _ASEOF
24138 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24139 ## -------------------- ##
24140 ## M4sh Initialization. ##
24141 ## -------------------- ##
24142
24143 # Be more Bourne compatible
24144 DUALCASE=1; export DUALCASE # for MKS sh
24145 as_nop=:
24146 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
24147 then :
24148 emulate sh
24149 NULLCMD=:
24150 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24151 # is contrary to our usage. Disable this feature.
24152 alias -g '${1+"$@"}'='"$@"'
24153 setopt NO_GLOB_SUBST
24154 else $as_nop
24155 case `(set -o) 2>/dev/null` in #(
24156 *posix*) :
24157 set -o posix ;; #(
24158 *) :
24159 ;;
24160 esac
24161 fi
24162
24163
24164
24165 # Reset variables that may have inherited troublesome values from
24166 # the environment.
24167
24168 # IFS needs to be set, to space, tab, and newline, in precisely that order.
24169 # (If _AS_PATH_WALK were called with IFS unset, it would have the
24170 # side effect of setting IFS to empty, thus disabling word splitting.)
24171 # Quoting is to prevent editors from complaining about space-tab.
24172 as_nl='
24173 '
24174 export as_nl
24175 IFS=" "" $as_nl"
24176
24177 PS1='$ '
24178 PS2='> '
24179 PS4='+ '
24180
24181 # Ensure predictable behavior from utilities with locale-dependent output.
24182 LC_ALL=C
24183 export LC_ALL
24184 LANGUAGE=C
24185 export LANGUAGE
24186
24187 # We cannot yet rely on "unset" to work, but we need these variables
24188 # to be unset--not just set to an empty or harmless value--now, to
24189 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
24190 # also avoids known problems related to "unset" and subshell syntax
24191 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
24192 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
24193 do eval test \${$as_var+y} \
24194 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24195 done
24196
24197 # Ensure that fds 0, 1, and 2 are open.
24198 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
24199 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
24200 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
24201
24202 # The user is always right.
24203 if ${PATH_SEPARATOR+false} :; then
24204 PATH_SEPARATOR=:
24205 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24206 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24207 PATH_SEPARATOR=';'
24208 }
24209 fi
24210
24211
24212 # Find who we are. Look in the path if we contain no directory separator.
24213 as_myself=
24214 case $0 in #((
24215 *[\\/]* ) as_myself=$0 ;;
24216 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24217 for as_dir in $PATH
24218 do
24219 IFS=$as_save_IFS
24220 case $as_dir in #(((
24221 '') as_dir=./ ;;
24222 */) ;;
24223 *) as_dir=$as_dir/ ;;
24224 esac
24225 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
24226 done
24227 IFS=$as_save_IFS
24228
24229 ;;
24230 esac
24231 # We did not find ourselves, most probably we were run as `sh COMMAND'
24232 # in which case we are not to be found in the path.
24233 if test "x$as_myself" = x; then
24234 as_myself=$0
24235 fi
24236 if test ! -f "$as_myself"; then
24237 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24238 exit 1
24239 fi
24240
24241
24242
24243 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24244 # ----------------------------------------
24245 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24246 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24247 # script with STATUS, using 1 if that was 0.
24248 as_fn_error ()
24249 {
24250 as_status=$1; test $as_status -eq 0 && as_status=1
24251 if test "$4"; then
24252 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24254 fi
24255 printf "%s\n" "$as_me: error: $2" >&2
24256 as_fn_exit $as_status
24257 } # as_fn_error
24258
24259
24260
24261 # as_fn_set_status STATUS
24262 # -----------------------
24263 # Set $? to STATUS, without forking.
24264 as_fn_set_status ()
24265 {
24266 return $1
24267 } # as_fn_set_status
24268
24269 # as_fn_exit STATUS
24270 # -----------------
24271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24272 as_fn_exit ()
24273 {
24274 set +e
24275 as_fn_set_status $1
24276 exit $1
24277 } # as_fn_exit
24278
24279 # as_fn_unset VAR
24280 # ---------------
24281 # Portably unset VAR.
24282 as_fn_unset ()
24283 {
24284 { eval $1=; unset $1;}
24285 }
24286 as_unset=as_fn_unset
24287
24288 # as_fn_append VAR VALUE
24289 # ----------------------
24290 # Append the text in VALUE to the end of the definition contained in VAR. Take
24291 # advantage of any shell optimizations that allow amortized linear growth over
24292 # repeated appends, instead of the typical quadratic growth present in naive
24293 # implementations.
24294 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
24295 then :
24296 eval 'as_fn_append ()
24297 {
24298 eval $1+=\$2
24299 }'
24300 else $as_nop
24301 as_fn_append ()
24302 {
24303 eval $1=\$$1\$2
24304 }
24305 fi # as_fn_append
24306
24307 # as_fn_arith ARG...
24308 # ------------------
24309 # Perform arithmetic evaluation on the ARGs, and store the result in the
24310 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24311 # must be portable across $(()) and expr.
24312 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
24313 then :
24314 eval 'as_fn_arith ()
24315 {
24316 as_val=$(( $* ))
24317 }'
24318 else $as_nop
24319 as_fn_arith ()
24320 {
24321 as_val=`expr "$@" || test $? -eq 1`
24322 }
24323 fi # as_fn_arith
24324
24325
24326 if expr a : '\(a\)' >/dev/null 2>&1 &&
24327 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24328 as_expr=expr
24329 else
24330 as_expr=false
24331 fi
24332
24333 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24334 as_basename=basename
24335 else
24336 as_basename=false
24337 fi
24338
24339 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24340 as_dirname=dirname
24341 else
24342 as_dirname=false
24343 fi
24344
24345 as_me=`$as_basename -- "$0" ||
24346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24347 X"$0" : 'X\(//\)$' \| \
24348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24349 printf "%s\n" X/"$0" |
24350 sed '/^.*\/\([^/][^/]*\)\/*$/{
24351 s//\1/
24352 q
24353 }
24354 /^X\/\(\/\/\)$/{
24355 s//\1/
24356 q
24357 }
24358 /^X\/\(\/\).*/{
24359 s//\1/
24360 q
24361 }
24362 s/.*/./; q'`
24363
24364 # Avoid depending upon Character Ranges.
24365 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24366 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24367 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24368 as_cr_digits='0123456789'
24369 as_cr_alnum=$as_cr_Letters$as_cr_digits
24370
24371
24372 # Determine whether it's possible to make 'echo' print without a newline.
24373 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
24374 # for compatibility with existing Makefiles.
24375 ECHO_C= ECHO_N= ECHO_T=
24376 case `echo -n x` in #(((((
24377 -n*)
24378 case `echo 'xy\c'` in
24379 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24380 xy) ECHO_C='\c';;
24381 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24382 ECHO_T=' ';;
24383 esac;;
24384 *)
24385 ECHO_N='-n';;
24386 esac
24387
24388 # For backward compatibility with old third-party macros, we provide
24389 # the shell variables $as_echo and $as_echo_n. New code should use
24390 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
24391 as_echo='printf %s\n'
24392 as_echo_n='printf %s'
24393
24394 rm -f conf$$ conf$$.exe conf$$.file
24395 if test -d conf$$.dir; then
24396 rm -f conf$$.dir/conf$$.file
24397 else
24398 rm -f conf$$.dir
24399 mkdir conf$$.dir 2>/dev/null
24400 fi
24401 if (echo >conf$$.file) 2>/dev/null; then
24402 if ln -s conf$$.file conf$$ 2>/dev/null; then
24403 as_ln_s='ln -s'
24404 # ... but there are two gotchas:
24405 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24406 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24407 # In both cases, we have to default to `cp -pR'.
24408 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24409 as_ln_s='cp -pR'
24410 elif ln conf$$.file conf$$ 2>/dev/null; then
24411 as_ln_s=ln
24412 else
24413 as_ln_s='cp -pR'
24414 fi
24415 else
24416 as_ln_s='cp -pR'
24417 fi
24418 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24419 rmdir conf$$.dir 2>/dev/null
24420
24421
24422 # as_fn_mkdir_p
24423 # -------------
24424 # Create "$as_dir" as a directory, including parents if necessary.
24425 as_fn_mkdir_p ()
24426 {
24427
24428 case $as_dir in #(
24429 -*) as_dir=./$as_dir;;
24430 esac
24431 test -d "$as_dir" || eval $as_mkdir_p || {
24432 as_dirs=
24433 while :; do
24434 case $as_dir in #(
24435 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24436 *) as_qdir=$as_dir;;
24437 esac
24438 as_dirs="'$as_qdir' $as_dirs"
24439 as_dir=`$as_dirname -- "$as_dir" ||
24440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24441 X"$as_dir" : 'X\(//\)[^/]' \| \
24442 X"$as_dir" : 'X\(//\)$' \| \
24443 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24444 printf "%s\n" X"$as_dir" |
24445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24446 s//\1/
24447 q
24448 }
24449 /^X\(\/\/\)[^/].*/{
24450 s//\1/
24451 q
24452 }
24453 /^X\(\/\/\)$/{
24454 s//\1/
24455 q
24456 }
24457 /^X\(\/\).*/{
24458 s//\1/
24459 q
24460 }
24461 s/.*/./; q'`
24462 test -d "$as_dir" && break
24463 done
24464 test -z "$as_dirs" || eval "mkdir $as_dirs"
24465 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24466
24467
24468 } # as_fn_mkdir_p
24469 if mkdir -p . 2>/dev/null; then
24470 as_mkdir_p='mkdir -p "$as_dir"'
24471 else
24472 test -d ./-p && rmdir ./-p
24473 as_mkdir_p=false
24474 fi
24475
24476
24477 # as_fn_executable_p FILE
24478 # -----------------------
24479 # Test if FILE is an executable regular file.
24480 as_fn_executable_p ()
24481 {
24482 test -f "$1" && test -x "$1"
24483 } # as_fn_executable_p
24484 as_test_x='test -x'
24485 as_executable_p=as_fn_executable_p
24486
24487 # Sed expression to map a string onto a valid CPP name.
24488 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24489
24490 # Sed expression to map a string onto a valid variable name.
24491 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24492
24493
24494 exec 6>&1
24495 ## ----------------------------------- ##
24496 ## Main body of $CONFIG_STATUS script. ##
24497 ## ----------------------------------- ##
24498 _ASEOF
24499 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24500
24501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24502 # Save the log message, to keep $0 and so on meaningful, and to
24503 # report actual input values of CONFIG_FILES etc. instead of their
24504 # values after options handling.
24505 ac_log="
24506 This file was extended by nghttp3 $as_me 1.17.0, which was
24507 generated by GNU Autoconf 2.71. Invocation command line was
24508
24509 CONFIG_FILES = $CONFIG_FILES
24510 CONFIG_HEADERS = $CONFIG_HEADERS
24511 CONFIG_LINKS = $CONFIG_LINKS
24512 CONFIG_COMMANDS = $CONFIG_COMMANDS
24513 $ $0 $@
24514
24515 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24516 "
24517
24518 _ACEOF
24519
24520 case $ac_config_files in *"
24521 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24522 esac
24523
24524 case $ac_config_headers in *"
24525 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24526 esac
24527
24528
24529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24530 # Files that config.status was made for.
24531 config_files="$ac_config_files"
24532 config_headers="$ac_config_headers"
24533 config_commands="$ac_config_commands"
24534
24535 _ACEOF
24536
24537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24538 ac_cs_usage="\
24539 \`$as_me' instantiates files and other configuration actions
24540 from templates according to the current configuration. Unless the files
24541 and actions are specified as TAGs, all are instantiated by default.
24542
24543 Usage: $0 [OPTION]... [TAG]...
24544
24545 -h, --help print this help, then exit
24546 -V, --version print version number and configuration settings, then exit
24547 --config print configuration, then exit
24548 -q, --quiet, --silent
24549 do not print progress messages
24550 -d, --debug don't remove temporary files
24551 --recheck update $as_me by reconfiguring in the same conditions
24552 --file=FILE[:TEMPLATE]
24553 instantiate the configuration file FILE
24554 --header=FILE[:TEMPLATE]
24555 instantiate the configuration header FILE
24556
24557 Configuration files:
24558 $config_files
24559
24560 Configuration headers:
24561 $config_headers
24562
24563 Configuration commands:
24564 $config_commands
24565
24566 Report bugs to <[email protected]>."
24567
24568 _ACEOF
24569 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
24570 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
24571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24572 ac_cs_config='$ac_cs_config_escaped'
24573 ac_cs_version="\\
24574 nghttp3 config.status 1.17.0
24575 configured by $0, generated by GNU Autoconf 2.71,
24576 with options \\"\$ac_cs_config\\"
24577
24578 Copyright (C) 2021 Free Software Foundation, Inc.
24579 This config.status script is free software; the Free Software Foundation
24580 gives unlimited permission to copy, distribute and modify it."
24581
24582 ac_pwd='$ac_pwd'
24583 srcdir='$srcdir'
24584 INSTALL='$INSTALL'
24585 MKDIR_P='$MKDIR_P'
24586 AWK='$AWK'
24587 test -n "\$AWK" || AWK=awk
24588 _ACEOF
24589
24590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24591 # The default lists apply if the user does not specify any file.
24592 ac_need_defaults=:
24593 while test $# != 0
24594 do
24595 case $1 in
24596 --*=?*)
24597 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24598 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24599 ac_shift=:
24600 ;;
24601 --*=)
24602 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24603 ac_optarg=
24604 ac_shift=:
24605 ;;
24606 *)
24607 ac_option=$1
24608 ac_optarg=$2
24609 ac_shift=shift
24610 ;;
24611 esac
24612
24613 case $ac_option in
24614 # Handling of the options.
24615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24616 ac_cs_recheck=: ;;
24617 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24618 printf "%s\n" "$ac_cs_version"; exit ;;
24619 --config | --confi | --conf | --con | --co | --c )
24620 printf "%s\n" "$ac_cs_config"; exit ;;
24621 --debug | --debu | --deb | --de | --d | -d )
24622 debug=: ;;
24623 --file | --fil | --fi | --f )
24624 $ac_shift
24625 case $ac_optarg in
24626 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24627 '') as_fn_error $? "missing file argument" ;;
24628 esac
24629 as_fn_append CONFIG_FILES " '$ac_optarg'"
24630 ac_need_defaults=false;;
24631 --header | --heade | --head | --hea )
24632 $ac_shift
24633 case $ac_optarg in
24634 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24635 esac
24636 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24637 ac_need_defaults=false;;
24638 --he | --h)
24639 # Conflict between --help and --header
24640 as_fn_error $? "ambiguous option: \`$1'
24641 Try \`$0 --help' for more information.";;
24642 --help | --hel | -h )
24643 printf "%s\n" "$ac_cs_usage"; exit ;;
24644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24645 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24646 ac_cs_silent=: ;;
24647
24648 # This is an error.
24649 -*) as_fn_error $? "unrecognized option: \`$1'
24650 Try \`$0 --help' for more information." ;;
24651
24652 *) as_fn_append ac_config_targets " $1"
24653 ac_need_defaults=false ;;
24654
24655 esac
24656 shift
24657 done
24658
24659 ac_configure_extra_args=
24660
24661 if $ac_cs_silent; then
24662 exec 6>/dev/null
24663 ac_configure_extra_args="$ac_configure_extra_args --silent"
24664 fi
24665
24666 _ACEOF
24667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24668 if \$ac_cs_recheck; then
24669 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24670 shift
24671 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
24672 CONFIG_SHELL='$SHELL'
24673 export CONFIG_SHELL
24674 exec "\$@"
24675 fi
24676
24677 _ACEOF
24678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24679 exec 5>>config.log
24680 {
24681 echo
24682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24683 ## Running $as_me. ##
24684 _ASBOX
24685 printf "%s\n" "$ac_log"
24686 } >&5
24687
24688 _ACEOF
24689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24690 #
24691 # INIT-COMMANDS
24692 #
24693
24694
24695 # The HP-UX ksh and POSIX shell print the target directory to stdout
24696 # if CDPATH is set.
24697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24698
24699 sed_quote_subst='$sed_quote_subst'
24700 double_quote_subst='$double_quote_subst'
24701 delay_variable_subst='$delay_variable_subst'
24702 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24703 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24704 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24705 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24706 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24707 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24708 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24709 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24710 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24711 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24712 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24713 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24714 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24715 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24716 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24717 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24718 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24719 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24720 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24721 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24722 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24723 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24724 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24725 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24726 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24727 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24728 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24729 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24730 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24731 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24732 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24733 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24734 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24735 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24736 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
24737 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24738 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24739 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24740 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24741 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24742 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24743 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24744 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24745 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
24746 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24747 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24748 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24749 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24750 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24751 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24752 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24753 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24754 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24755 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24756 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24757 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24758 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24759 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24760 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24761 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24762 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"`'
24763 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24764 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24765 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24766 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24767 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24768 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24769 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24770 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24771 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24772 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24773 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24774 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24775 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24776 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24777 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24778 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24779 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24780 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24781 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24782 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24783 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24784 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24785 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24786 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24787 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24788 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24789 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24790 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24791 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24792 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24793 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24794 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24795 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24796 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24797 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24798 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24799 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24800 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24801 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24802 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24803 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24804 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24805 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24806 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24807 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24808 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24809 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24810 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24811 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24812 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24813 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24814 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24815 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24816 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24817 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24818 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24819 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24820 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24821 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24822 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24823 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24824 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24825 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24826 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24827 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24828 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24829 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24830 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24831 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24832 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24833 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24834 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24835 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24836 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24837 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24838 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24839 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24840 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24841 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24842 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24843 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24844 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24845 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24846 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24847 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24848 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24849 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24850 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24851 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24852 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24853 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24854 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24855 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24856 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24857 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24858 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24859 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24860 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24861 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24862 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24863 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24864 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24865 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24866 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24867 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24868 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24869 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24870 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24871 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24872 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24873 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24874 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24875 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24876 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24877 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24878 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24879 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24880 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24881 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24882 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24883 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24884 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24885 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24886 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24887 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24888 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24889 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24890 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24891 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24892 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24893
24894 LTCC='$LTCC'
24895 LTCFLAGS='$LTCFLAGS'
24896 compiler='$compiler_DEFAULT'
24897
24898 # A function that is used when there is no print builtin or printf.
24899 func_fallback_echo ()
24900 {
24901 eval 'cat <<_LTECHO_EOF
24902 \$1
24903 _LTECHO_EOF'
24904 }
24905
24906 # Quote evaled strings.
24907 for var in SHELL \
24908 ECHO \
24909 PATH_SEPARATOR \
24910 SED \
24911 GREP \
24912 EGREP \
24913 FGREP \
24914 LD \
24915 NM \
24916 LN_S \
24917 lt_SP2NL \
24918 lt_NL2SP \
24919 reload_flag \
24920 FILECMD \
24921 OBJDUMP \
24922 deplibs_check_method \
24923 file_magic_cmd \
24924 file_magic_glob \
24925 want_nocaseglob \
24926 DLLTOOL \
24927 sharedlib_from_linklib_cmd \
24928 AR \
24929 archiver_list_spec \
24930 STRIP \
24931 RANLIB \
24932 CC \
24933 CFLAGS \
24934 compiler \
24935 lt_cv_sys_global_symbol_pipe \
24936 lt_cv_sys_global_symbol_to_cdecl \
24937 lt_cv_sys_global_symbol_to_import \
24938 lt_cv_sys_global_symbol_to_c_name_address \
24939 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24940 lt_cv_nm_interface \
24941 nm_file_list_spec \
24942 lt_cv_truncate_bin \
24943 lt_prog_compiler_no_builtin_flag \
24944 lt_prog_compiler_pic \
24945 lt_prog_compiler_wl \
24946 lt_prog_compiler_static \
24947 lt_cv_prog_compiler_c_o \
24948 need_locks \
24949 MANIFEST_TOOL \
24950 DSYMUTIL \
24951 NMEDIT \
24952 LIPO \
24953 OTOOL \
24954 OTOOL64 \
24955 shrext_cmds \
24956 export_dynamic_flag_spec \
24957 whole_archive_flag_spec \
24958 compiler_needs_object \
24959 with_gnu_ld \
24960 allow_undefined_flag \
24961 no_undefined_flag \
24962 hardcode_libdir_flag_spec \
24963 hardcode_libdir_separator \
24964 exclude_expsyms \
24965 include_expsyms \
24966 file_list_spec \
24967 variables_saved_for_relink \
24968 libname_spec \
24969 library_names_spec \
24970 soname_spec \
24971 install_override_mode \
24972 finish_eval \
24973 old_striplib \
24974 striplib \
24975 compiler_lib_search_dirs \
24976 predep_objects \
24977 postdep_objects \
24978 predeps \
24979 postdeps \
24980 compiler_lib_search_path \
24981 LD_CXX \
24982 reload_flag_CXX \
24983 compiler_CXX \
24984 lt_prog_compiler_no_builtin_flag_CXX \
24985 lt_prog_compiler_pic_CXX \
24986 lt_prog_compiler_wl_CXX \
24987 lt_prog_compiler_static_CXX \
24988 lt_cv_prog_compiler_c_o_CXX \
24989 export_dynamic_flag_spec_CXX \
24990 whole_archive_flag_spec_CXX \
24991 compiler_needs_object_CXX \
24992 with_gnu_ld_CXX \
24993 allow_undefined_flag_CXX \
24994 no_undefined_flag_CXX \
24995 hardcode_libdir_flag_spec_CXX \
24996 hardcode_libdir_separator_CXX \
24997 exclude_expsyms_CXX \
24998 include_expsyms_CXX \
24999 file_list_spec_CXX \
25000 compiler_lib_search_dirs_CXX \
25001 predep_objects_CXX \
25002 postdep_objects_CXX \
25003 predeps_CXX \
25004 postdeps_CXX \
25005 compiler_lib_search_path_CXX; do
25006 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25007 *[\\\\\\\`\\"\\\$]*)
25008 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25009 ;;
25010 *)
25011 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25012 ;;
25013 esac
25014 done
25015
25016 # Double-quote double-evaled strings.
25017 for var in reload_cmds \
25018 old_postinstall_cmds \
25019 old_postuninstall_cmds \
25020 old_archive_cmds \
25021 extract_expsyms_cmds \
25022 old_archive_from_new_cmds \
25023 old_archive_from_expsyms_cmds \
25024 archive_cmds \
25025 archive_expsym_cmds \
25026 module_cmds \
25027 module_expsym_cmds \
25028 export_symbols_cmds \
25029 prelink_cmds \
25030 postlink_cmds \
25031 postinstall_cmds \
25032 postuninstall_cmds \
25033 finish_cmds \
25034 sys_lib_search_path_spec \
25035 configure_time_dlsearch_path \
25036 configure_time_lt_sys_library_path \
25037 reload_cmds_CXX \
25038 old_archive_cmds_CXX \
25039 old_archive_from_new_cmds_CXX \
25040 old_archive_from_expsyms_cmds_CXX \
25041 archive_cmds_CXX \
25042 archive_expsym_cmds_CXX \
25043 module_cmds_CXX \
25044 module_expsym_cmds_CXX \
25045 export_symbols_cmds_CXX \
25046 prelink_cmds_CXX \
25047 postlink_cmds_CXX; do
25048 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25049 *[\\\\\\\`\\"\\\$]*)
25050 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25051 ;;
25052 *)
25053 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25054 ;;
25055 esac
25056 done
25057
25058 ac_aux_dir='$ac_aux_dir'
25059
25060 # See if we are running on zsh, and set the options that allow our
25061 # commands through without removal of \ escapes INIT.
25062 if test -n "\${ZSH_VERSION+set}"; then
25063 setopt NO_GLOB_SUBST
25064 fi
25065
25066
25067 PACKAGE='$PACKAGE'
25068 VERSION='$VERSION'
25069 RM='$RM'
25070 ofile='$ofile'
25071
25072
25073
25074
25075
25076 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
25077
25078 _ACEOF
25079
25080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25081
25082 # Handling of arguments.
25083 for ac_config_target in $ac_config_targets
25084 do
25085 case $ac_config_target in
25086 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25087 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25088 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25089 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25090 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25091 "lib/libnghttp3.pc") CONFIG_FILES="$CONFIG_FILES lib/libnghttp3.pc" ;;
25092 "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
25093 "lib/includes/nghttp3/version.h") CONFIG_FILES="$CONFIG_FILES lib/includes/nghttp3/version.h" ;;
25094 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25095 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25096 "doc/source/conf.py") CONFIG_FILES="$CONFIG_FILES doc/source/conf.py" ;;
25097 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25098
25099 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25100 esac
25101 done
25102
25103
25104 # If the user did not use the arguments to specify the items to instantiate,
25105 # then the envvar interface is used. Set only those that are not.
25106 # We use the long form for the default assignment because of an extremely
25107 # bizarre bug on SunOS 4.1.3.
25108 if $ac_need_defaults; then
25109 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
25110 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
25111 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
25112 fi
25113
25114 # Have a temporary directory for convenience. Make it in the build tree
25115 # simply because there is no reason against having it here, and in addition,
25116 # creating and moving files from /tmp can sometimes cause problems.
25117 # Hook for its removal unless debugging.
25118 # Note that there is a small window in which the directory will not be cleaned:
25119 # after its creation but before its name has been assigned to `$tmp'.
25120 $debug ||
25121 {
25122 tmp= ac_tmp=
25123 trap 'exit_status=$?
25124 : "${ac_tmp:=$tmp}"
25125 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25126 ' 0
25127 trap 'as_fn_exit 1' 1 2 13 15
25128 }
25129 # Create a (secure) tmp directory for tmp files.
25130
25131 {
25132 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25133 test -d "$tmp"
25134 } ||
25135 {
25136 tmp=./conf$$-$RANDOM
25137 (umask 077 && mkdir "$tmp")
25138 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25139 ac_tmp=$tmp
25140
25141 # Set up the scripts for CONFIG_FILES section.
25142 # No need to generate them if there are no CONFIG_FILES.
25143 # This happens for instance with `./config.status config.h'.
25144 if test -n "$CONFIG_FILES"; then
25145
25146
25147 ac_cr=`echo X | tr X '\015'`
25148 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25149 # But we know of no other shell where ac_cr would be empty at this
25150 # point, so we can use a bashism as a fallback.
25151 if test "x$ac_cr" = x; then
25152 eval ac_cr=\$\'\\r\'
25153 fi
25154 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25155 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25156 ac_cs_awk_cr='\\r'
25157 else
25158 ac_cs_awk_cr=$ac_cr
25159 fi
25160
25161 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25162 _ACEOF
25163
25164
25165 {
25166 echo "cat >conf$$subs.awk <<_ACEOF" &&
25167 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25168 echo "_ACEOF"
25169 } >conf$$subs.sh ||
25170 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25171 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25172 ac_delim='%!_!# '
25173 for ac_last_try in false false false false false :; do
25174 . ./conf$$subs.sh ||
25175 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25176
25177 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25178 if test $ac_delim_n = $ac_delim_num; then
25179 break
25180 elif $ac_last_try; then
25181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25182 else
25183 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25184 fi
25185 done
25186 rm -f conf$$subs.sh
25187
25188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25189 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25190 _ACEOF
25191 sed -n '
25192 h
25193 s/^/S["/; s/!.*/"]=/
25194 p
25195 g
25196 s/^[^!]*!//
25197 :repl
25198 t repl
25199 s/'"$ac_delim"'$//
25200 t delim
25201 :nl
25202 h
25203 s/\(.\{148\}\)..*/\1/
25204 t more1
25205 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25206 p
25207 n
25208 b repl
25209 :more1
25210 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25211 p
25212 g
25213 s/.\{148\}//
25214 t nl
25215 :delim
25216 h
25217 s/\(.\{148\}\)..*/\1/
25218 t more2
25219 s/["\\]/\\&/g; s/^/"/; s/$/"/
25220 p
25221 b
25222 :more2
25223 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25224 p
25225 g
25226 s/.\{148\}//
25227 t delim
25228 ' <conf$$subs.awk | sed '
25229 /^[^""]/{
25230 N
25231 s/\n//
25232 }
25233 ' >>$CONFIG_STATUS || ac_write_fail=1
25234 rm -f conf$$subs.awk
25235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25236 _ACAWK
25237 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25238 for (key in S) S_is_set[key] = 1
25239 FS = ""
25240
25241 }
25242 {
25243 line = $ 0
25244 nfields = split(line, field, "@")
25245 substed = 0
25246 len = length(field[1])
25247 for (i = 2; i < nfields; i++) {
25248 key = field[i]
25249 keylen = length(key)
25250 if (S_is_set[key]) {
25251 value = S[key]
25252 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25253 len += length(value) + length(field[++i])
25254 substed = 1
25255 } else
25256 len += 1 + keylen
25257 }
25258
25259 print line
25260 }
25261
25262 _ACAWK
25263 _ACEOF
25264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25265 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25266 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25267 else
25268 cat
25269 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25270 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25271 _ACEOF
25272
25273 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25274 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25275 # trailing colons and then remove the whole line if VPATH becomes empty
25276 # (actually we leave an empty line to preserve line numbers).
25277 if test "x$srcdir" = x.; then
25278 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25279 h
25280 s///
25281 s/^/:/
25282 s/[ ]*$/:/
25283 s/:\$(srcdir):/:/g
25284 s/:\${srcdir}:/:/g
25285 s/:@srcdir@:/:/g
25286 s/^:*//
25287 s/:*$//
25288 x
25289 s/\(=[ ]*\).*/\1/
25290 G
25291 s/\n//
25292 s/^[^=]*=[ ]*$//
25293 }'
25294 fi
25295
25296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25297 fi # test -n "$CONFIG_FILES"
25298
25299 # Set up the scripts for CONFIG_HEADERS section.
25300 # No need to generate them if there are no CONFIG_HEADERS.
25301 # This happens for instance with `./config.status Makefile'.
25302 if test -n "$CONFIG_HEADERS"; then
25303 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25304 BEGIN {
25305 _ACEOF
25306
25307 # Transform confdefs.h into an awk script `defines.awk', embedded as
25308 # here-document in config.status, that substitutes the proper values into
25309 # config.h.in to produce config.h.
25310
25311 # Create a delimiter string that does not exist in confdefs.h, to ease
25312 # handling of long lines.
25313 ac_delim='%!_!# '
25314 for ac_last_try in false false :; do
25315 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25316 if test -z "$ac_tt"; then
25317 break
25318 elif $ac_last_try; then
25319 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25320 else
25321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25322 fi
25323 done
25324
25325 # For the awk script, D is an array of macro values keyed by name,
25326 # likewise P contains macro parameters if any. Preserve backslash
25327 # newline sequences.
25328
25329 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25330 sed -n '
25331 s/.\{148\}/&'"$ac_delim"'/g
25332 t rset
25333 :rset
25334 s/^[ ]*#[ ]*define[ ][ ]*/ /
25335 t def
25336 d
25337 :def
25338 s/\\$//
25339 t bsnl
25340 s/["\\]/\\&/g
25341 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25342 D["\1"]=" \3"/p
25343 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25344 d
25345 :bsnl
25346 s/["\\]/\\&/g
25347 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25348 D["\1"]=" \3\\\\\\n"\\/p
25349 t cont
25350 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25351 t cont
25352 d
25353 :cont
25354 n
25355 s/.\{148\}/&'"$ac_delim"'/g
25356 t clear
25357 :clear
25358 s/\\$//
25359 t bsnlc
25360 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25361 d
25362 :bsnlc
25363 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25364 b cont
25365 ' <confdefs.h | sed '
25366 s/'"$ac_delim"'/"\\\
25367 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25368
25369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25370 for (key in D) D_is_set[key] = 1
25371 FS = ""
25372 }
25373 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25374 line = \$ 0
25375 split(line, arg, " ")
25376 if (arg[1] == "#") {
25377 defundef = arg[2]
25378 mac1 = arg[3]
25379 } else {
25380 defundef = substr(arg[1], 2)
25381 mac1 = arg[2]
25382 }
25383 split(mac1, mac2, "(") #)
25384 macro = mac2[1]
25385 prefix = substr(line, 1, index(line, defundef) - 1)
25386 if (D_is_set[macro]) {
25387 # Preserve the white space surrounding the "#".
25388 print prefix "define", macro P[macro] D[macro]
25389 next
25390 } else {
25391 # Replace #undef with comments. This is necessary, for example,
25392 # in the case of _POSIX_SOURCE, which is predefined and required
25393 # on some systems where configure will not decide to define it.
25394 if (defundef == "undef") {
25395 print "/*", prefix defundef, macro, "*/"
25396 next
25397 }
25398 }
25399 }
25400 { print }
25401 _ACAWK
25402 _ACEOF
25403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25404 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25405 fi # test -n "$CONFIG_HEADERS"
25406
25407
25408 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25409 shift
25410 for ac_tag
25411 do
25412 case $ac_tag in
25413 :[FHLC]) ac_mode=$ac_tag; continue;;
25414 esac
25415 case $ac_mode$ac_tag in
25416 :[FHL]*:*);;
25417 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25418 :[FH]-) ac_tag=-:-;;
25419 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25420 esac
25421 ac_save_IFS=$IFS
25422 IFS=:
25423 set x $ac_tag
25424 IFS=$ac_save_IFS
25425 shift
25426 ac_file=$1
25427 shift
25428
25429 case $ac_mode in
25430 :L) ac_source=$1;;
25431 :[FH])
25432 ac_file_inputs=
25433 for ac_f
25434 do
25435 case $ac_f in
25436 -) ac_f="$ac_tmp/stdin";;
25437 *) # Look for the file first in the build tree, then in the source tree
25438 # (if the path is not absolute). The absolute path cannot be DOS-style,
25439 # because $ac_f cannot contain `:'.
25440 test -f "$ac_f" ||
25441 case $ac_f in
25442 [\\/$]*) false;;
25443 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25444 esac ||
25445 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25446 esac
25447 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25448 as_fn_append ac_file_inputs " '$ac_f'"
25449 done
25450
25451 # Let's still pretend it is `configure' which instantiates (i.e., don't
25452 # use $as_me), people would be surprised to read:
25453 # /* config.h. Generated by config.status. */
25454 configure_input='Generated from '`
25455 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25456 `' by configure.'
25457 if test x"$ac_file" != x-; then
25458 configure_input="$ac_file. $configure_input"
25459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25460 printf "%s\n" "$as_me: creating $ac_file" >&6;}
25461 fi
25462 # Neutralize special characters interpreted by sed in replacement strings.
25463 case $configure_input in #(
25464 *\&* | *\|* | *\\* )
25465 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
25466 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25467 *) ac_sed_conf_input=$configure_input;;
25468 esac
25469
25470 case $ac_tag in
25471 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25473 esac
25474 ;;
25475 esac
25476
25477 ac_dir=`$as_dirname -- "$ac_file" ||
25478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25479 X"$ac_file" : 'X\(//\)[^/]' \| \
25480 X"$ac_file" : 'X\(//\)$' \| \
25481 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25482 printf "%s\n" X"$ac_file" |
25483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25484 s//\1/
25485 q
25486 }
25487 /^X\(\/\/\)[^/].*/{
25488 s//\1/
25489 q
25490 }
25491 /^X\(\/\/\)$/{
25492 s//\1/
25493 q
25494 }
25495 /^X\(\/\).*/{
25496 s//\1/
25497 q
25498 }
25499 s/.*/./; q'`
25500 as_dir="$ac_dir"; as_fn_mkdir_p
25501 ac_builddir=.
25502
25503 case "$ac_dir" in
25504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25505 *)
25506 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
25507 # A ".." for each directory in $ac_dir_suffix.
25508 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25509 case $ac_top_builddir_sub in
25510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25512 esac ;;
25513 esac
25514 ac_abs_top_builddir=$ac_pwd
25515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25516 # for backward compatibility:
25517 ac_top_builddir=$ac_top_build_prefix
25518
25519 case $srcdir in
25520 .) # We are building in place.
25521 ac_srcdir=.
25522 ac_top_srcdir=$ac_top_builddir_sub
25523 ac_abs_top_srcdir=$ac_pwd ;;
25524 [\\/]* | ?:[\\/]* ) # Absolute name.
25525 ac_srcdir=$srcdir$ac_dir_suffix;
25526 ac_top_srcdir=$srcdir
25527 ac_abs_top_srcdir=$srcdir ;;
25528 *) # Relative name.
25529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25530 ac_top_srcdir=$ac_top_build_prefix$srcdir
25531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25532 esac
25533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25534
25535
25536 case $ac_mode in
25537 :F)
25538 #
25539 # CONFIG_FILE
25540 #
25541
25542 case $INSTALL in
25543 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25544 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25545 esac
25546 ac_MKDIR_P=$MKDIR_P
25547 case $MKDIR_P in
25548 [\\/$]* | ?:[\\/]* ) ;;
25549 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25550 esac
25551 _ACEOF
25552
25553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25554 # If the template does not know about datarootdir, expand it.
25555 # FIXME: This hack should be removed a few years after 2.60.
25556 ac_datarootdir_hack=; ac_datarootdir_seen=
25557 ac_sed_dataroot='
25558 /datarootdir/ {
25559 p
25560 q
25561 }
25562 /@datadir@/p
25563 /@docdir@/p
25564 /@infodir@/p
25565 /@localedir@/p
25566 /@mandir@/p'
25567 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25568 *datarootdir*) ac_datarootdir_seen=yes;;
25569 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25571 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25572 _ACEOF
25573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25574 ac_datarootdir_hack='
25575 s&@datadir@&$datadir&g
25576 s&@docdir@&$docdir&g
25577 s&@infodir@&$infodir&g
25578 s&@localedir@&$localedir&g
25579 s&@mandir@&$mandir&g
25580 s&\\\${datarootdir}&$datarootdir&g' ;;
25581 esac
25582 _ACEOF
25583
25584 # Neutralize VPATH when `$srcdir' = `.'.
25585 # Shell code in configure.ac might set extrasub.
25586 # FIXME: do we really want to maintain this feature?
25587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25588 ac_sed_extra="$ac_vpsub
25589 $extrasub
25590 _ACEOF
25591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25592 :t
25593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25594 s|@configure_input@|$ac_sed_conf_input|;t t
25595 s&@top_builddir@&$ac_top_builddir_sub&;t t
25596 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25597 s&@srcdir@&$ac_srcdir&;t t
25598 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25599 s&@top_srcdir@&$ac_top_srcdir&;t t
25600 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25601 s&@builddir@&$ac_builddir&;t t
25602 s&@abs_builddir@&$ac_abs_builddir&;t t
25603 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25604 s&@INSTALL@&$ac_INSTALL&;t t
25605 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25606 $ac_datarootdir_hack
25607 "
25608 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25609 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25610
25611 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25612 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25613 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25614 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25616 which seems to be undefined. Please make sure it is defined" >&5
25617 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25618 which seems to be undefined. Please make sure it is defined" >&2;}
25619
25620 rm -f "$ac_tmp/stdin"
25621 case $ac_file in
25622 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25623 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25624 esac \
25625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25626 ;;
25627 :H)
25628 #
25629 # CONFIG_HEADER
25630 #
25631 if test x"$ac_file" != x-; then
25632 {
25633 printf "%s\n" "/* $configure_input */" >&1 \
25634 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25635 } >"$ac_tmp/config.h" \
25636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25637 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25639 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
25640 else
25641 rm -f "$ac_file"
25642 mv "$ac_tmp/config.h" "$ac_file" \
25643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25644 fi
25645 else
25646 printf "%s\n" "/* $configure_input */" >&1 \
25647 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25648 || as_fn_error $? "could not create -" "$LINENO" 5
25649 fi
25650 # Compute "$ac_file"'s index in $config_headers.
25651 _am_arg="$ac_file"
25652 _am_stamp_count=1
25653 for _am_header in $config_headers :; do
25654 case $_am_header in
25655 $_am_arg | $_am_arg:* )
25656 break ;;
25657 * )
25658 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25659 esac
25660 done
25661 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25662 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25663 X"$_am_arg" : 'X\(//\)[^/]' \| \
25664 X"$_am_arg" : 'X\(//\)$' \| \
25665 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25666 printf "%s\n" X"$_am_arg" |
25667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25668 s//\1/
25669 q
25670 }
25671 /^X\(\/\/\)[^/].*/{
25672 s//\1/
25673 q
25674 }
25675 /^X\(\/\/\)$/{
25676 s//\1/
25677 q
25678 }
25679 /^X\(\/\).*/{
25680 s//\1/
25681 q
25682 }
25683 s/.*/./; q'`/stamp-h$_am_stamp_count
25684 ;;
25685
25686 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25687 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
25688 ;;
25689 esac
25690
25691
25692 case $ac_file$ac_mode in
25693 "libtool":C)
25694
25695 # See if we are running on zsh, and set the options that allow our
25696 # commands through without removal of \ escapes.
25697 if test -n "${ZSH_VERSION+set}"; then
25698 setopt NO_GLOB_SUBST
25699 fi
25700
25701 cfgfile=${ofile}T
25702 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25703 $RM "$cfgfile"
25704
25705 cat <<_LT_EOF >> "$cfgfile"
25706 #! $SHELL
25707 # Generated automatically by $as_me ($PACKAGE) $VERSION
25708 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25709
25710 # Provide generalized library-building support services.
25711 # Written by Gordon Matzigkeit, 1996
25712
25713 # Copyright (C) 2014 Free Software Foundation, Inc.
25714 # This is free software; see the source for copying conditions. There is NO
25715 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25716
25717 # GNU Libtool is free software; you can redistribute it and/or modify
25718 # it under the terms of the GNU General Public License as published by
25719 # the Free Software Foundation; either version 2 of of the License, or
25720 # (at your option) any later version.
25721 #
25722 # As a special exception to the GNU General Public License, if you
25723 # distribute this file as part of a program or library that is built
25724 # using GNU Libtool, you may include this file under the same
25725 # distribution terms that you use for the rest of that program.
25726 #
25727 # GNU Libtool is distributed in the hope that it will be useful, but
25728 # WITHOUT ANY WARRANTY; without even the implied warranty of
25729 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25730 # GNU General Public License for more details.
25731 #
25732 # You should have received a copy of the GNU General Public License
25733 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25734
25735
25736 # The names of the tagged configurations supported by this script.
25737 available_tags='CXX '
25738
25739 # Configured defaults for sys_lib_dlsearch_path munging.
25740 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25741
25742 # ### BEGIN LIBTOOL CONFIG
25743
25744 # Which release of libtool.m4 was used?
25745 macro_version=$macro_version
25746 macro_revision=$macro_revision
25747
25748 # Whether or not to build shared libraries.
25749 build_libtool_libs=$enable_shared
25750
25751 # Whether or not to build static libraries.
25752 build_old_libs=$enable_static
25753
25754 # What type of objects to build.
25755 pic_mode=$pic_mode
25756
25757 # Whether or not to optimize for fast installation.
25758 fast_install=$enable_fast_install
25759
25760 # Shared archive member basename,for filename based shared library versioning on AIX.
25761 shared_archive_member_spec=$shared_archive_member_spec
25762
25763 # Shell to use when invoking shell scripts.
25764 SHELL=$lt_SHELL
25765
25766 # An echo program that protects backslashes.
25767 ECHO=$lt_ECHO
25768
25769 # The PATH separator for the build system.
25770 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25771
25772 # The host system.
25773 host_alias=$host_alias
25774 host=$host
25775 host_os=$host_os
25776
25777 # The build system.
25778 build_alias=$build_alias
25779 build=$build
25780 build_os=$build_os
25781
25782 # A sed program that does not truncate output.
25783 SED=$lt_SED
25784
25785 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25786 Xsed="\$SED -e 1s/^X//"
25787
25788 # A grep program that handles long lines.
25789 GREP=$lt_GREP
25790
25791 # An ERE matcher.
25792 EGREP=$lt_EGREP
25793
25794 # A literal string matcher.
25795 FGREP=$lt_FGREP
25796
25797 # A BSD- or MS-compatible name lister.
25798 NM=$lt_NM
25799
25800 # Whether we need soft or hard links.
25801 LN_S=$lt_LN_S
25802
25803 # What is the maximum length of a command?
25804 max_cmd_len=$max_cmd_len
25805
25806 # Object file suffix (normally "o").
25807 objext=$ac_objext
25808
25809 # Executable file suffix (normally "").
25810 exeext=$exeext
25811
25812 # whether the shell understands "unset".
25813 lt_unset=$lt_unset
25814
25815 # turn spaces into newlines.
25816 SP2NL=$lt_lt_SP2NL
25817
25818 # turn newlines into spaces.
25819 NL2SP=$lt_lt_NL2SP
25820
25821 # convert \$build file names to \$host format.
25822 to_host_file_cmd=$lt_cv_to_host_file_cmd
25823
25824 # convert \$build files to toolchain format.
25825 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25826
25827 # A file(cmd) program that detects file types.
25828 FILECMD=$lt_FILECMD
25829
25830 # An object symbol dumper.
25831 OBJDUMP=$lt_OBJDUMP
25832
25833 # Method to check whether dependent libraries are shared objects.
25834 deplibs_check_method=$lt_deplibs_check_method
25835
25836 # Command to use when deplibs_check_method = "file_magic".
25837 file_magic_cmd=$lt_file_magic_cmd
25838
25839 # How to find potential files when deplibs_check_method = "file_magic".
25840 file_magic_glob=$lt_file_magic_glob
25841
25842 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25843 want_nocaseglob=$lt_want_nocaseglob
25844
25845 # DLL creation program.
25846 DLLTOOL=$lt_DLLTOOL
25847
25848 # Command to associate shared and link libraries.
25849 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25850
25851 # The archiver.
25852 AR=$lt_AR
25853
25854 # Flags to create an archive (by configure).
25855 lt_ar_flags=$lt_ar_flags
25856
25857 # Flags to create an archive.
25858 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
25859
25860 # How to feed a file listing to the archiver.
25861 archiver_list_spec=$lt_archiver_list_spec
25862
25863 # A symbol stripping program.
25864 STRIP=$lt_STRIP
25865
25866 # Commands used to install an old-style archive.
25867 RANLIB=$lt_RANLIB
25868 old_postinstall_cmds=$lt_old_postinstall_cmds
25869 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25870
25871 # Whether to use a lock for old archive extraction.
25872 lock_old_archive_extraction=$lock_old_archive_extraction
25873
25874 # A C compiler.
25875 LTCC=$lt_CC
25876
25877 # LTCC compiler flags.
25878 LTCFLAGS=$lt_CFLAGS
25879
25880 # Take the output of nm and produce a listing of raw symbols and C names.
25881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25882
25883 # Transform the output of nm in a proper C declaration.
25884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25885
25886 # Transform the output of nm into a list of symbols to manually relocate.
25887 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25888
25889 # Transform the output of nm in a C name address pair.
25890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25891
25892 # Transform the output of nm in a C name address pair when lib prefix is needed.
25893 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25894
25895 # The name lister interface.
25896 nm_interface=$lt_lt_cv_nm_interface
25897
25898 # Specify filename containing input files for \$NM.
25899 nm_file_list_spec=$lt_nm_file_list_spec
25900
25901 # The root where to search for dependent libraries,and where our libraries should be installed.
25902 lt_sysroot=$lt_sysroot
25903
25904 # Command to truncate a binary pipe.
25905 lt_truncate_bin=$lt_lt_cv_truncate_bin
25906
25907 # The name of the directory that contains temporary libtool files.
25908 objdir=$objdir
25909
25910 # Used to examine libraries when file_magic_cmd begins with "file".
25911 MAGIC_CMD=$MAGIC_CMD
25912
25913 # Must we lock files when doing compilation?
25914 need_locks=$lt_need_locks
25915
25916 # Manifest tool.
25917 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25918
25919 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25920 DSYMUTIL=$lt_DSYMUTIL
25921
25922 # Tool to change global to local symbols on Mac OS X.
25923 NMEDIT=$lt_NMEDIT
25924
25925 # Tool to manipulate fat objects and archives on Mac OS X.
25926 LIPO=$lt_LIPO
25927
25928 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25929 OTOOL=$lt_OTOOL
25930
25931 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25932 OTOOL64=$lt_OTOOL64
25933
25934 # Old archive suffix (normally "a").
25935 libext=$libext
25936
25937 # Shared library suffix (normally ".so").
25938 shrext_cmds=$lt_shrext_cmds
25939
25940 # The commands to extract the exported symbol list from a shared archive.
25941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25942
25943 # Variables whose values should be saved in libtool wrapper scripts and
25944 # restored at link time.
25945 variables_saved_for_relink=$lt_variables_saved_for_relink
25946
25947 # Do we need the "lib" prefix for modules?
25948 need_lib_prefix=$need_lib_prefix
25949
25950 # Do we need a version for libraries?
25951 need_version=$need_version
25952
25953 # Library versioning type.
25954 version_type=$version_type
25955
25956 # Shared library runtime path variable.
25957 runpath_var=$runpath_var
25958
25959 # Shared library path variable.
25960 shlibpath_var=$shlibpath_var
25961
25962 # Is shlibpath searched before the hard-coded library search path?
25963 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25964
25965 # Format of library name prefix.
25966 libname_spec=$lt_libname_spec
25967
25968 # List of archive names. First name is the real one, the rest are links.
25969 # The last name is the one that the linker finds with -lNAME
25970 library_names_spec=$lt_library_names_spec
25971
25972 # The coded name of the library, if different from the real name.
25973 soname_spec=$lt_soname_spec
25974
25975 # Permission mode override for installation of shared libraries.
25976 install_override_mode=$lt_install_override_mode
25977
25978 # Command to use after installation of a shared archive.
25979 postinstall_cmds=$lt_postinstall_cmds
25980
25981 # Command to use after uninstallation of a shared archive.
25982 postuninstall_cmds=$lt_postuninstall_cmds
25983
25984 # Commands used to finish a libtool library installation in a directory.
25985 finish_cmds=$lt_finish_cmds
25986
25987 # As "finish_cmds", except a single script fragment to be evaled but
25988 # not shown.
25989 finish_eval=$lt_finish_eval
25990
25991 # Whether we should hardcode library paths into libraries.
25992 hardcode_into_libs=$hardcode_into_libs
25993
25994 # Compile-time system search path for libraries.
25995 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25996
25997 # Detected run-time system search path for libraries.
25998 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25999
26000 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26001 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26002
26003 # Whether dlopen is supported.
26004 dlopen_support=$enable_dlopen
26005
26006 # Whether dlopen of programs is supported.
26007 dlopen_self=$enable_dlopen_self
26008
26009 # Whether dlopen of statically linked programs is supported.
26010 dlopen_self_static=$enable_dlopen_self_static
26011
26012 # Commands to strip libraries.
26013 old_striplib=$lt_old_striplib
26014 striplib=$lt_striplib
26015
26016
26017 # The linker used to build libraries.
26018 LD=$lt_LD
26019
26020 # How to create reloadable object files.
26021 reload_flag=$lt_reload_flag
26022 reload_cmds=$lt_reload_cmds
26023
26024 # Commands used to build an old-style archive.
26025 old_archive_cmds=$lt_old_archive_cmds
26026
26027 # A language specific compiler.
26028 CC=$lt_compiler
26029
26030 # Is the compiler the GNU compiler?
26031 with_gcc=$GCC
26032
26033 # Compiler flag to turn off builtin functions.
26034 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26035
26036 # Additional compiler flags for building library objects.
26037 pic_flag=$lt_lt_prog_compiler_pic
26038
26039 # How to pass a linker flag through the compiler.
26040 wl=$lt_lt_prog_compiler_wl
26041
26042 # Compiler flag to prevent dynamic linking.
26043 link_static_flag=$lt_lt_prog_compiler_static
26044
26045 # Does compiler simultaneously support -c and -o options?
26046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26047
26048 # Whether or not to add -lc for building shared libraries.
26049 build_libtool_need_lc=$archive_cmds_need_lc
26050
26051 # Whether or not to disallow shared libs when runtime libs are static.
26052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26053
26054 # Compiler flag to allow reflexive dlopens.
26055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26056
26057 # Compiler flag to generate shared objects directly from archives.
26058 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26059
26060 # Whether the compiler copes with passing no objects directly.
26061 compiler_needs_object=$lt_compiler_needs_object
26062
26063 # Create an old-style archive from a shared archive.
26064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26065
26066 # Create a temporary old-style archive to link instead of a shared archive.
26067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26068
26069 # Commands used to build a shared archive.
26070 archive_cmds=$lt_archive_cmds
26071 archive_expsym_cmds=$lt_archive_expsym_cmds
26072
26073 # Commands used to build a loadable module if different from building
26074 # a shared archive.
26075 module_cmds=$lt_module_cmds
26076 module_expsym_cmds=$lt_module_expsym_cmds
26077
26078 # Whether we are building with GNU ld or not.
26079 with_gnu_ld=$lt_with_gnu_ld
26080
26081 # Flag that allows shared libraries with undefined symbols to be built.
26082 allow_undefined_flag=$lt_allow_undefined_flag
26083
26084 # Flag that enforces no undefined symbols.
26085 no_undefined_flag=$lt_no_undefined_flag
26086
26087 # Flag to hardcode \$libdir into a binary during linking.
26088 # This must work even if \$libdir does not exist
26089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26090
26091 # Whether we need a single "-rpath" flag with a separated argument.
26092 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26093
26094 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26095 # DIR into the resulting binary.
26096 hardcode_direct=$hardcode_direct
26097
26098 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26099 # DIR into the resulting binary and the resulting library dependency is
26100 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26101 # library is relocated.
26102 hardcode_direct_absolute=$hardcode_direct_absolute
26103
26104 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26105 # into the resulting binary.
26106 hardcode_minus_L=$hardcode_minus_L
26107
26108 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26109 # into the resulting binary.
26110 hardcode_shlibpath_var=$hardcode_shlibpath_var
26111
26112 # Set to "yes" if building a shared library automatically hardcodes DIR
26113 # into the library and all subsequent libraries and executables linked
26114 # against it.
26115 hardcode_automatic=$hardcode_automatic
26116
26117 # Set to yes if linker adds runtime paths of dependent libraries
26118 # to runtime path list.
26119 inherit_rpath=$inherit_rpath
26120
26121 # Whether libtool must link a program against all its dependency libraries.
26122 link_all_deplibs=$link_all_deplibs
26123
26124 # Set to "yes" if exported symbols are required.
26125 always_export_symbols=$always_export_symbols
26126
26127 # The commands to list exported symbols.
26128 export_symbols_cmds=$lt_export_symbols_cmds
26129
26130 # Symbols that should not be listed in the preloaded symbols.
26131 exclude_expsyms=$lt_exclude_expsyms
26132
26133 # Symbols that must always be exported.
26134 include_expsyms=$lt_include_expsyms
26135
26136 # Commands necessary for linking programs (against libraries) with templates.
26137 prelink_cmds=$lt_prelink_cmds
26138
26139 # Commands necessary for finishing linking programs.
26140 postlink_cmds=$lt_postlink_cmds
26141
26142 # Specify filename containing input files.
26143 file_list_spec=$lt_file_list_spec
26144
26145 # How to hardcode a shared library path into an executable.
26146 hardcode_action=$hardcode_action
26147
26148 # The directories searched by this compiler when creating a shared library.
26149 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26150
26151 # Dependencies to place before and after the objects being linked to
26152 # create a shared library.
26153 predep_objects=$lt_predep_objects
26154 postdep_objects=$lt_postdep_objects
26155 predeps=$lt_predeps
26156 postdeps=$lt_postdeps
26157
26158 # The library search path used internally by the compiler when linking
26159 # a shared library.
26160 compiler_lib_search_path=$lt_compiler_lib_search_path
26161
26162 # ### END LIBTOOL CONFIG
26163
26164 _LT_EOF
26165
26166 cat <<'_LT_EOF' >> "$cfgfile"
26167
26168 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26169
26170 # func_munge_path_list VARIABLE PATH
26171 # -----------------------------------
26172 # VARIABLE is name of variable containing _space_ separated list of
26173 # directories to be munged by the contents of PATH, which is string
26174 # having a format:
26175 # "DIR[:DIR]:"
26176 # string "DIR[ DIR]" will be prepended to VARIABLE
26177 # ":DIR[:DIR]"
26178 # string "DIR[ DIR]" will be appended to VARIABLE
26179 # "DIRP[:DIRP]::[DIRA:]DIRA"
26180 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26181 # "DIRA[ DIRA]" will be appended to VARIABLE
26182 # "DIR[:DIR]"
26183 # VARIABLE will be replaced by "DIR[ DIR]"
26184 func_munge_path_list ()
26185 {
26186 case x$2 in
26187 x)
26188 ;;
26189 *:)
26190 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26191 ;;
26192 x:*)
26193 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26194 ;;
26195 *::*)
26196 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26197 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26198 ;;
26199 *)
26200 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26201 ;;
26202 esac
26203 }
26204
26205
26206 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
26207 func_cc_basename ()
26208 {
26209 for cc_temp in $*""; do
26210 case $cc_temp in
26211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26213 \-*) ;;
26214 *) break;;
26215 esac
26216 done
26217 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26218 }
26219
26220
26221 # ### END FUNCTIONS SHARED WITH CONFIGURE
26222
26223 _LT_EOF
26224
26225 case $host_os in
26226 aix3*)
26227 cat <<\_LT_EOF >> "$cfgfile"
26228 # AIX sometimes has problems with the GCC collect2 program. For some
26229 # reason, if we set the COLLECT_NAMES environment variable, the problems
26230 # vanish in a puff of smoke.
26231 if test set != "${COLLECT_NAMES+set}"; then
26232 COLLECT_NAMES=
26233 export COLLECT_NAMES
26234 fi
26235 _LT_EOF
26236 ;;
26237 esac
26238
26239
26240
26241 ltmain=$ac_aux_dir/ltmain.sh
26242
26243
26244 # We use sed instead of cat because bash on DJGPP gets confused if
26245 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26246 # text mode, it properly converts lines to CR/LF. This bash problem
26247 # is reportedly fixed, but why not run on old versions too?
26248 $SED '$q' "$ltmain" >> "$cfgfile" \
26249 || (rm -f "$cfgfile"; exit 1)
26250
26251 mv -f "$cfgfile" "$ofile" ||
26252 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26253 chmod +x "$ofile"
26254
26255
26256 cat <<_LT_EOF >> "$ofile"
26257
26258 # ### BEGIN LIBTOOL TAG CONFIG: CXX
26259
26260 # The linker used to build libraries.
26261 LD=$lt_LD_CXX
26262
26263 # How to create reloadable object files.
26264 reload_flag=$lt_reload_flag_CXX
26265 reload_cmds=$lt_reload_cmds_CXX
26266
26267 # Commands used to build an old-style archive.
26268 old_archive_cmds=$lt_old_archive_cmds_CXX
26269
26270 # A language specific compiler.
26271 CC=$lt_compiler_CXX
26272
26273 # Is the compiler the GNU compiler?
26274 with_gcc=$GCC_CXX
26275
26276 # Compiler flag to turn off builtin functions.
26277 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26278
26279 # Additional compiler flags for building library objects.
26280 pic_flag=$lt_lt_prog_compiler_pic_CXX
26281
26282 # How to pass a linker flag through the compiler.
26283 wl=$lt_lt_prog_compiler_wl_CXX
26284
26285 # Compiler flag to prevent dynamic linking.
26286 link_static_flag=$lt_lt_prog_compiler_static_CXX
26287
26288 # Does compiler simultaneously support -c and -o options?
26289 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26290
26291 # Whether or not to add -lc for building shared libraries.
26292 build_libtool_need_lc=$archive_cmds_need_lc_CXX
26293
26294 # Whether or not to disallow shared libs when runtime libs are static.
26295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26296
26297 # Compiler flag to allow reflexive dlopens.
26298 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26299
26300 # Compiler flag to generate shared objects directly from archives.
26301 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26302
26303 # Whether the compiler copes with passing no objects directly.
26304 compiler_needs_object=$lt_compiler_needs_object_CXX
26305
26306 # Create an old-style archive from a shared archive.
26307 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26308
26309 # Create a temporary old-style archive to link instead of a shared archive.
26310 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26311
26312 # Commands used to build a shared archive.
26313 archive_cmds=$lt_archive_cmds_CXX
26314 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26315
26316 # Commands used to build a loadable module if different from building
26317 # a shared archive.
26318 module_cmds=$lt_module_cmds_CXX
26319 module_expsym_cmds=$lt_module_expsym_cmds_CXX
26320
26321 # Whether we are building with GNU ld or not.
26322 with_gnu_ld=$lt_with_gnu_ld_CXX
26323
26324 # Flag that allows shared libraries with undefined symbols to be built.
26325 allow_undefined_flag=$lt_allow_undefined_flag_CXX
26326
26327 # Flag that enforces no undefined symbols.
26328 no_undefined_flag=$lt_no_undefined_flag_CXX
26329
26330 # Flag to hardcode \$libdir into a binary during linking.
26331 # This must work even if \$libdir does not exist
26332 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26333
26334 # Whether we need a single "-rpath" flag with a separated argument.
26335 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26336
26337 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26338 # DIR into the resulting binary.
26339 hardcode_direct=$hardcode_direct_CXX
26340
26341 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26342 # DIR into the resulting binary and the resulting library dependency is
26343 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26344 # library is relocated.
26345 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26346
26347 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26348 # into the resulting binary.
26349 hardcode_minus_L=$hardcode_minus_L_CXX
26350
26351 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26352 # into the resulting binary.
26353 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26354
26355 # Set to "yes" if building a shared library automatically hardcodes DIR
26356 # into the library and all subsequent libraries and executables linked
26357 # against it.
26358 hardcode_automatic=$hardcode_automatic_CXX
26359
26360 # Set to yes if linker adds runtime paths of dependent libraries
26361 # to runtime path list.
26362 inherit_rpath=$inherit_rpath_CXX
26363
26364 # Whether libtool must link a program against all its dependency libraries.
26365 link_all_deplibs=$link_all_deplibs_CXX
26366
26367 # Set to "yes" if exported symbols are required.
26368 always_export_symbols=$always_export_symbols_CXX
26369
26370 # The commands to list exported symbols.
26371 export_symbols_cmds=$lt_export_symbols_cmds_CXX
26372
26373 # Symbols that should not be listed in the preloaded symbols.
26374 exclude_expsyms=$lt_exclude_expsyms_CXX
26375
26376 # Symbols that must always be exported.
26377 include_expsyms=$lt_include_expsyms_CXX
26378
26379 # Commands necessary for linking programs (against libraries) with templates.
26380 prelink_cmds=$lt_prelink_cmds_CXX
26381
26382 # Commands necessary for finishing linking programs.
26383 postlink_cmds=$lt_postlink_cmds_CXX
26384
26385 # Specify filename containing input files.
26386 file_list_spec=$lt_file_list_spec_CXX
26387
26388 # How to hardcode a shared library path into an executable.
26389 hardcode_action=$hardcode_action_CXX
26390
26391 # The directories searched by this compiler when creating a shared library.
26392 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26393
26394 # Dependencies to place before and after the objects being linked to
26395 # create a shared library.
26396 predep_objects=$lt_predep_objects_CXX
26397 postdep_objects=$lt_postdep_objects_CXX
26398 predeps=$lt_predeps_CXX
26399 postdeps=$lt_postdeps_CXX
26400
26401 # The library search path used internally by the compiler when linking
26402 # a shared library.
26403 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26404
26405 # ### END LIBTOOL TAG CONFIG: CXX
26406 _LT_EOF
26407
26408 ;;
26409 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26410 # Older Autoconf quotes --file arguments for eval, but not when files
26411 # are listed without --file. Let's play safe and only enable the eval
26412 # if we detect the quoting.
26413 # TODO: see whether this extra hack can be removed once we start
26414 # requiring Autoconf 2.70 or later.
26415 case $CONFIG_FILES in #(
26416 *\'*) :
26417 eval set x "$CONFIG_FILES" ;; #(
26418 *) :
26419 set x $CONFIG_FILES ;; #(
26420 *) :
26421 ;;
26422 esac
26423 shift
26424 # Used to flag and report bootstrapping failures.
26425 am_rc=0
26426 for am_mf
26427 do
26428 # Strip MF so we end up with the name of the file.
26429 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
26430 # Check whether this is an Automake generated Makefile which includes
26431 # dependency-tracking related rules and includes.
26432 # Grep'ing the whole file directly is not great: AIX grep has a line
26433 # limit of 2048, but all sed's we know have understand at least 4000.
26434 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
26435 || continue
26436 am_dirpart=`$as_dirname -- "$am_mf" ||
26437 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26438 X"$am_mf" : 'X\(//\)[^/]' \| \
26439 X"$am_mf" : 'X\(//\)$' \| \
26440 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26441 printf "%s\n" X"$am_mf" |
26442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26443 s//\1/
26444 q
26445 }
26446 /^X\(\/\/\)[^/].*/{
26447 s//\1/
26448 q
26449 }
26450 /^X\(\/\/\)$/{
26451 s//\1/
26452 q
26453 }
26454 /^X\(\/\).*/{
26455 s//\1/
26456 q
26457 }
26458 s/.*/./; q'`
26459 am_filepart=`$as_basename -- "$am_mf" ||
26460 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
26461 X"$am_mf" : 'X\(//\)$' \| \
26462 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26463 printf "%s\n" X/"$am_mf" |
26464 sed '/^.*\/\([^/][^/]*\)\/*$/{
26465 s//\1/
26466 q
26467 }
26468 /^X\/\(\/\/\)$/{
26469 s//\1/
26470 q
26471 }
26472 /^X\/\(\/\).*/{
26473 s//\1/
26474 q
26475 }
26476 s/.*/./; q'`
26477 { echo "$as_me:$LINENO: cd "$am_dirpart" \
26478 && sed -e '/# am--include-marker/d' "$am_filepart" \
26479 | $MAKE -f - am--depfiles" >&5
26480 (cd "$am_dirpart" \
26481 && sed -e '/# am--include-marker/d' "$am_filepart" \
26482 | $MAKE -f - am--depfiles) >&5 2>&5
26483 ac_status=$?
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); } || am_rc=$?
26486 done
26487 if test $am_rc -ne 0; then
26488 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26489 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26490 as_fn_error $? "Something went wrong bootstrapping makefile fragments
26491 for automatic dependency tracking. If GNU make was not used, consider
26492 re-running the configure script with MAKE=\"gmake\" (or whatever is
26493 necessary). You can also try re-running configure with the
26494 '--disable-dependency-tracking' option to at least be able to build
26495 the package (albeit without support for automatic dependency tracking).
26496 See \`config.log' for more details" "$LINENO" 5; }
26497 fi
26498 { am_dirpart=; unset am_dirpart;}
26499 { am_filepart=; unset am_filepart;}
26500 { am_mf=; unset am_mf;}
26501 { am_rc=; unset am_rc;}
26502 rm -f conftest-deps.mk
26503 }
26504 ;;
26505
26506 esac
26507 done # for ac_tag
26508
26509
26510 as_fn_exit 0
26511 _ACEOF
26512 ac_clean_files=$ac_clean_files_save
26513
26514 test $ac_write_fail = 0 ||
26515 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26516
26517
26518 # configure is writing to config.log, and then calls config.status.
26519 # config.status does its own redirection, appending to config.log.
26520 # Unfortunately, on DOS this fails, as config.log is still kept open
26521 # by configure, so config.status won't be able to write to it; its
26522 # output is simply discarded. So we exec the FD to /dev/null,
26523 # effectively closing config.log, so it can be properly (re)opened and
26524 # appended to by config.status. When coming back to configure, we
26525 # need to make the FD available again.
26526 if test "$no_create" != yes; then
26527 ac_cs_success=:
26528 ac_config_status_args=
26529 test "$silent" = yes &&
26530 ac_config_status_args="$ac_config_status_args --quiet"
26531 exec 5>/dev/null
26532 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26533 exec 5>>config.log
26534 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26535 # would make configure fail if this is the last instruction.
26536 $ac_cs_success || as_fn_exit 1
26537 fi
26538 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26540 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26541 fi
26542
26543
26544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: summary of build options:
26545
26546 Package version: ${VERSION}
26547 Library version: $LT_CURRENT:$LT_REVISION:$LT_AGE
26548 Install prefix: ${prefix}
26549 System types:
26550 Build: ${build}
26551 Host: ${host}
26552 Target: ${target}
26553 Compiler:
26554 C preprocessor: ${CPP}
26555 CPPFLAGS: ${CPPFLAGS}
26556 C compiler: ${CC}
26557 CFLAGS: ${CFLAGS}
26558 C++ compiler: ${CXX}
26559 CXXFLAGS: ${CXXFLAGS}
26560 LDFLAGS: ${LDFLAGS}
26561 WARNCFLAGS: ${WARNCFLAGS}
26562 WARNCXXFLAGS: ${WARNCXXFLAGS}
26563 EXTRACFLAG: ${EXTRACFLAG}
26564 LIBS: ${LIBS}
26565 Library:
26566 Shared: ${enable_shared}
26567 Static: ${enable_static}
26568 Debug:
26569 Debug: ${debug} (CFLAGS='${DEBUGCFLAGS}')
26570 Library only: ${lib_only}
26571 Examples: ${enable_examples}
26572 " >&5
26573 printf "%s\n" "$as_me: summary of build options:
26574
26575 Package version: ${VERSION}
26576 Library version: $LT_CURRENT:$LT_REVISION:$LT_AGE
26577 Install prefix: ${prefix}
26578 System types:
26579 Build: ${build}
26580 Host: ${host}
26581 Target: ${target}
26582 Compiler:
26583 C preprocessor: ${CPP}
26584 CPPFLAGS: ${CPPFLAGS}
26585 C compiler: ${CC}
26586 CFLAGS: ${CFLAGS}
26587 C++ compiler: ${CXX}
26588 CXXFLAGS: ${CXXFLAGS}
26589 LDFLAGS: ${LDFLAGS}
26590 WARNCFLAGS: ${WARNCFLAGS}
26591 WARNCXXFLAGS: ${WARNCXXFLAGS}
26592 EXTRACFLAG: ${EXTRACFLAG}
26593 LIBS: ${LIBS}
26594 Library:
26595 Shared: ${enable_shared}
26596 Static: ${enable_static}
26597 Debug:
26598 Debug: ${debug} (CFLAGS='${DEBUGCFLAGS}')
26599 Library only: ${lib_only}
26600 Examples: ${enable_examples}
26601 " >&6;}
26602