Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for stunnel 5.78.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || 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 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='stunnel'
613 PACKAGE_TARNAME='stunnel'
614 PACKAGE_VERSION='5.78'
615 PACKAGE_STRING='stunnel 5.78'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_unique_file="src/stunnel.c"
652 enable_year2038=no
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 SSLDIR
658 DEFAULT_GROUP
659 RANDOM_FILE
660 LIBTOOL_DEPS
661 LT_SYS_LIBRARY_PATH
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 MANIFEST_TOOL
668 RANLIB
669 ac_ct_AR
670 AR
671 DLLTOOL
672 OBJDUMP
673 FILECMD
674 LN_S
675 NM
676 ac_ct_DUMPBIN
677 DUMPBIN
678 LD
679 FGREP
680 EGREP
681 GREP
682 LIBTOOL
683 PTHREAD_CFLAGS
684 PTHREAD_LIBS
685 PTHREAD_CXX
686 PTHREAD_CC
687 ax_pthread_config
688 CPP
689 SED
690 bashcompdir
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
699 am__xargs_n
700 am__rm_f_notfound
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 AM_DEFAULT_V
704 AM_V
705 CSCOPE
706 ETAGS
707 CTAGS
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__include
716 DEPDIR
717 am__untar
718 am__tar
719 AMTAR
720 am__leading_dot
721 SET_MAKE
722 AWK
723 mkdir_p
724 MKDIR_P
725 INSTALL_STRIP_PROGRAM
726 STRIP
727 install_sh
728 MAKEINFO
729 AUTOHEADER
730 AUTOMAKE
731 AUTOCONF
732 ACLOCAL
733 VERSION
734 PACKAGE
735 CYGPATH_W
736 am__isrc
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 OBJEXT
741 EXEEXT
742 ac_ct_CC
743 CPPFLAGS
744 LDFLAGS
745 CFLAGS
746 CC
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 runstatedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL
786 am__quote'
787 ac_subst_files=''
788 ac_user_opts='
789 enable_option_checking
790 enable_dependency_tracking
791 enable_silent_rules
792 with_bashcompdir
793 with_threads
794 enable_static
795 enable_shared
796 enable_pic
797 with_pic
798 enable_fast_install
799 enable_aix_soname
800 with_aix_soname
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 with_egd_socket
805 with_random
806 enable_largefile
807 enable_ipv6
808 enable_fips
809 enable_systemd
810 enable_libwrap
811 with_ssl
812 enable_year2038
813 '
814 ac_precious_vars='build_alias
815 host_alias
816 target_alias
817 CC
818 CFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
822 CPP
823 LT_SYS_LIBRARY_PATH'
824
825
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 ac_unrecognized_opts=
830 ac_unrecognized_sep=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
833 cache_file=/dev/null
834 exec_prefix=NONE
835 no_create=
836 no_recursion=
837 prefix=NONE
838 program_prefix=NONE
839 program_suffix=NONE
840 program_transform_name=s,x,x,
841 silent=
842 site=
843 srcdir=
844 verbose=
845 x_includes=NONE
846 x_libraries=NONE
847
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 runstatedir='${localstatedir}/run'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
874
875 ac_prev=
876 ac_dashdash=
877 for ac_option
878 do
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
882 ac_prev=
883 continue
884 fi
885
886 case $ac_option in
887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *=) ac_optarg= ;;
889 *) ac_optarg=yes ;;
890 esac
891
892 case $ac_dashdash$ac_option in
893 --)
894 ac_dashdash=yes ;;
895
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 ac_prev=bindir ;;
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 bindir=$ac_optarg ;;
900
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
905
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
912
913 --config-cache | -C)
914 cache_file=config.cache ;;
915
916 -datadir | --datadir | --datadi | --datad)
917 ac_prev=datadir ;;
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
920
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
927
928 -disable-* | --disable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: '$ac_useropt'"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937 "enable_$ac_useropt"
938 "*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=no ;;
943
944 -docdir | --docdir | --docdi | --doc | --do)
945 ac_prev=docdir ;;
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 docdir=$ac_optarg ;;
948
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 ac_prev=dvidir ;;
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 dvidir=$ac_optarg ;;
953
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: '$ac_useropt'"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=\$ac_optarg ;;
969
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
978
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
981 with_gas=yes ;;
982
983 -help | --help | --hel | --he | -h)
984 ac_init_help=long ;;
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
989
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
994
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 ac_prev=htmldir ;;
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 | --ht=*)
999 htmldir=$ac_optarg ;;
1000
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1007
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 ac_prev=infodir ;;
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1012
1013 -libdir | --libdir | --libdi | --libd)
1014 ac_prev=libdir ;;
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1017
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1024
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1029
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1036
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 ac_prev=mandir ;;
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1041
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1044 with_fp=no ;;
1045
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1048 no_create=yes ;;
1049
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 no_recursion=yes ;;
1053
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1062
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 ac_prev=prefix ;;
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1067
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1074
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1081
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1098
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 ac_prev=pdfdir ;;
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1103
1104 -psdir | --psdir | --psdi | --psd | --ps)
1105 ac_prev=psdir ;;
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 psdir=$ac_optarg ;;
1108
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 silent=yes ;;
1112
1113 -runstatedir | --runstatedir | --runstatedi | --runstated \
1114 | --runstate | --runstat | --runsta | --runst | --runs \
1115 | --run | --ru | --r)
1116 ac_prev=runstatedir ;;
1117 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1118 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1119 | --run=* | --ru=* | --r=*)
1120 runstatedir=$ac_optarg ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: '$ac_useropt'"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: '$ac_useropt'"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: '$ac_option'
1218 Try '$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir runstatedir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: '$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 printf "%s\n" X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 'configure' configures stunnel 5.78 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print 'checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for '--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or '..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, 'make install' will install all the files in
1399 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than '$ac_default_prefix' using '--prefix',
1401 for instance '--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/stunnel]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1427
1428 cat <<\_ACEOF
1429
1430 Program names:
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of stunnel 5.78:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-dependency-tracking
1452 do not reject slow dependency extractors
1453 --disable-dependency-tracking
1454 speeds up one-time build
1455 --enable-silent-rules less verbose build output (undo: "make V=1")
1456 --disable-silent-rules verbose build output (undo: "make V=0")
1457 --enable-static[=PKGS] build static libraries [default=no]
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --enable-aix-soname=aix|svr4|both
1464 shared library versioning (aka "SONAME") variant to
1465 provide on AIX, [default=aix].
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467 --disable-largefile omit support for large files
1468 --disable-ipv6 disable IPv6 support
1469 --disable-fips disable OpenSSL FIPS support
1470 --disable-systemd disable systemd socket activation support
1471 --disable-libwrap disable TCP wrappers support
1472 --enable-year2038 support timestamps after 2038
1473
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-bashcompdir=DIR directory for bash completions
1478 --with-threads=model select threading model (ucontext/pthread/fork)
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1481 compiler's sysroot if not specified).
1482 --with-egd-socket=FILE Entropy Gathering Daemon socket path
1483 --with-random=FILE read randomness from file (default=/dev/urandom)
1484 --with-ssl=DIR location of installed TLS libraries/include files
1485
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CPP C preprocessor
1495 LT_SYS_LIBRARY_PATH
1496 User-defined run-time library search path.
1497
1498 Use these variables to override the choices made by 'configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1500
1501 Report bugs to the package provider.
1502 _ACEOF
1503 ac_status=$?
1504 fi
1505
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" ||
1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511 continue
1512 ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531 .) # We are building in place.
1532 ac_srcdir=.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1539 *) # Relative name.
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for configure.gnu first; this name is used for a wrapper for
1548 # Metaconfig's "Configure" on case-insensitive file systems.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1555 else
1556 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 fi || ac_status=$?
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1559 done
1560 fi
1561
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1564 cat <<\_ACEOF
1565 stunnel configure 5.78
1566 generated by GNU Autoconf 2.72
1567
1568 Copyright (C) 2023 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571 _ACEOF
1572 exit
1573 fi
1574
1575 ## ------------------------ ##
1576 ## Autoconf initialization. ##
1577 ## ------------------------ ##
1578
1579 # ac_fn_c_try_compile LINENO
1580 # --------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_compile ()
1583 {
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext conftest.beam
1586 if { { ac_try="$ac_compile"
1587 case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 printf "%s\n" "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1599 fi
1600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext
1605 then :
1606 ac_retval=0
1607 else case e in #(
1608 e) printf "%s\n" "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=1 ;;
1612 esac
1613 fi
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_compile
1618
1619 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1620 # -------------------------------------------------------
1621 # Tests whether HEADER exists and can be compiled using the include files in
1622 # INCLUDES, setting the cache variable VAR accordingly.
1623 ac_fn_c_check_header_compile ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627 printf %s "checking for $2... " >&6; }
1628 if eval test \${$3+y}
1629 then :
1630 printf %s "(cached) " >&6
1631 else case e in #(
1632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 $4
1635 #include <$2>
1636 _ACEOF
1637 if ac_fn_c_try_compile "$LINENO"
1638 then :
1639 eval "$3=yes"
1640 else case e in #(
1641 e) eval "$3=no" ;;
1642 esac
1643 fi
1644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1645 esac
1646 fi
1647 eval ac_res=\$$3
1648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 printf "%s\n" "$ac_res" >&6; }
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651
1652 } # ac_fn_c_check_header_compile
1653
1654 # ac_fn_c_try_link LINENO
1655 # -----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_link ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1661 if { { ac_try="$ac_link"
1662 case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 printf "%s\n" "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1674 fi
1675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest$ac_exeext && {
1680 test "$cross_compiling" = yes ||
1681 test -x conftest$ac_exeext
1682 }
1683 then :
1684 ac_retval=0
1685 else case e in #(
1686 e) printf "%s\n" "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1 ;;
1690 esac
1691 fi
1692 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1693 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1694 # interfere with the next link command; also delete a directory that is
1695 # left behind by Apple's compiler. We do this before executing the actions.
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_link
1701
1702 # ac_fn_c_try_cpp LINENO
1703 # ----------------------
1704 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_cpp ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_cpp conftest.$ac_ext"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 printf "%s\n" "$ac_try_echo"; } >&5
1715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1716 ac_status=$?
1717 if test -s conftest.err; then
1718 grep -v '^ *+' conftest.err >conftest.er1
1719 cat conftest.er1 >&5
1720 mv -f conftest.er1 conftest.err
1721 fi
1722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } > conftest.i && {
1724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1725 test ! -s conftest.err
1726 }
1727 then :
1728 ac_retval=0
1729 else case e in #(
1730 e) printf "%s\n" "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1 ;;
1734 esac
1735 fi
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_cpp
1740
1741 # ac_fn_c_check_func LINENO FUNC VAR
1742 # ----------------------------------
1743 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1744 ac_fn_c_check_func ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 printf %s "checking for $2... " >&6; }
1749 if eval test \${$3+y}
1750 then :
1751 printf %s "(cached) " >&6
1752 else case e in #(
1753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1757 #define $2 innocuous_$2
1758
1759 /* System header to define __stub macros and hopefully few prototypes,
1760 which can conflict with char $2 (void); below. */
1761
1762 #include <limits.h>
1763 #undef $2
1764
1765 /* Override any GCC internal prototype to avoid an error.
1766 Use char because int might match the return type of a GCC
1767 builtin and then its argument prototype would still apply. */
1768 #ifdef __cplusplus
1769 extern "C"
1770 #endif
1771 char $2 (void);
1772 /* The GNU C library defines this for functions which it implements
1773 to always fail with ENOSYS. Some functions are actually named
1774 something starting with __ and the normal name is an alias. */
1775 #if defined __stub_$2 || defined __stub___$2
1776 choke me
1777 #endif
1778
1779 int
1780 main (void)
1781 {
1782 return $2 ();
1783 ;
1784 return 0;
1785 }
1786 _ACEOF
1787 if ac_fn_c_try_link "$LINENO"
1788 then :
1789 eval "$3=yes"
1790 else case e in #(
1791 e) eval "$3=no" ;;
1792 esac
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1795 conftest$ac_exeext conftest.$ac_ext ;;
1796 esac
1797 fi
1798 eval ac_res=\$$3
1799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 printf "%s\n" "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803 } # ac_fn_c_check_func
1804
1805 # ac_fn_c_find_intX_t LINENO BITS VAR
1806 # -----------------------------------
1807 # Finds a signed integer type with width BITS, setting cache variable VAR
1808 # accordingly.
1809 ac_fn_c_find_intX_t ()
1810 {
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1813 printf %s "checking for int$2_t... " >&6; }
1814 if eval test \${$3+y}
1815 then :
1816 printf %s "(cached) " >&6
1817 else case e in #(
1818 e) eval "$3=no"
1819 # Order is important - never check a type that is potentially smaller
1820 # than half of the expected target width.
1821 for ac_type in int$2_t 'int' 'long int' \
1822 'long long int' 'short int' 'signed char'; do
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 $ac_includes_default
1826 enum { N = $2 / 2 - 1 };
1827 int
1828 main (void)
1829 {
1830 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1831 test_array [0] = 0;
1832 return test_array [0];
1833
1834 ;
1835 return 0;
1836 }
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"
1839 then :
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 $ac_includes_default
1843 enum { N = $2 / 2 - 1 };
1844 int
1845 main (void)
1846 {
1847 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1848 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1849 test_array [0] = 0;
1850 return test_array [0];
1851
1852 ;
1853 return 0;
1854 }
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"
1857 then :
1858
1859 else case e in #(
1860 e) case $ac_type in #(
1861 int$2_t) :
1862 eval "$3=yes" ;; #(
1863 *) :
1864 eval "$3=\$ac_type" ;;
1865 esac ;;
1866 esac
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1871 if eval test \"x\$"$3"\" = x"no"
1872 then :
1873
1874 else case e in #(
1875 e) break ;;
1876 esac
1877 fi
1878 done ;;
1879 esac
1880 fi
1881 eval ac_res=\$$3
1882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 printf "%s\n" "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886 } # ac_fn_c_find_intX_t
1887
1888 # ac_fn_c_find_uintX_t LINENO BITS VAR
1889 # ------------------------------------
1890 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1891 # accordingly.
1892 ac_fn_c_find_uintX_t ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1896 printf %s "checking for uint$2_t... " >&6; }
1897 if eval test \${$3+y}
1898 then :
1899 printf %s "(cached) " >&6
1900 else case e in #(
1901 e) eval "$3=no"
1902 # Order is important - never check a type that is potentially smaller
1903 # than half of the expected target width.
1904 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1905 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 $ac_includes_default
1909 int
1910 main (void)
1911 {
1912 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1913 test_array [0] = 0;
1914 return test_array [0];
1915
1916 ;
1917 return 0;
1918 }
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"
1921 then :
1922 case $ac_type in #(
1923 uint$2_t) :
1924 eval "$3=yes" ;; #(
1925 *) :
1926 eval "$3=\$ac_type" ;;
1927 esac
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1930 if eval test \"x\$"$3"\" = x"no"
1931 then :
1932
1933 else case e in #(
1934 e) break ;;
1935 esac
1936 fi
1937 done ;;
1938 esac
1939 fi
1940 eval ac_res=\$$3
1941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 printf "%s\n" "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944
1945 } # ac_fn_c_find_uintX_t
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 case e in #(
1960 e) 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 case e in #(
1991 e) eval "$3=yes" ;;
1992 esac
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1997 esac
1998 fi
1999 eval ac_res=\$$3
2000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 printf "%s\n" "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004 } # ac_fn_c_check_type
2005
2006 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2007 # ----------------------------------------------------
2008 # Tries to find if the field MEMBER exists in type AGGR, after including
2009 # INCLUDES, setting cache variable VAR accordingly.
2010 ac_fn_c_check_member ()
2011 {
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2014 printf %s "checking for $2.$3... " >&6; }
2015 if eval test \${$4+y}
2016 then :
2017 printf %s "(cached) " >&6
2018 else case e in #(
2019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 $5
2022 int
2023 main (void)
2024 {
2025 static $2 ac_aggr;
2026 if (ac_aggr.$3)
2027 return 0;
2028 ;
2029 return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"
2033 then :
2034 eval "$4=yes"
2035 else case e in #(
2036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2038 $5
2039 int
2040 main (void)
2041 {
2042 static $2 ac_aggr;
2043 if (sizeof ac_aggr.$3)
2044 return 0;
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"
2050 then :
2051 eval "$4=yes"
2052 else case e in #(
2053 e) eval "$4=no" ;;
2054 esac
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2057 esac
2058 fi
2059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2060 esac
2061 fi
2062 eval ac_res=\$$4
2063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 printf "%s\n" "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066
2067 } # ac_fn_c_check_member
2068 ac_configure_args_raw=
2069 for ac_arg
2070 do
2071 case $ac_arg in
2072 *\'*)
2073 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2074 esac
2075 as_fn_append ac_configure_args_raw " '$ac_arg'"
2076 done
2077
2078 case $ac_configure_args_raw in
2079 *$as_nl*)
2080 ac_safe_unquote= ;;
2081 *)
2082 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2083 ac_unsafe_a="$ac_unsafe_z#~"
2084 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2085 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2086 esac
2087
2088 cat >config.log <<_ACEOF
2089 This file contains any messages produced by compilers while
2090 running configure, to aid debugging if configure makes a mistake.
2091
2092 It was created by stunnel $as_me 5.78, which was
2093 generated by GNU Autoconf 2.72. Invocation command line was
2094
2095 $ $0$ac_configure_args_raw
2096
2097 _ACEOF
2098 exec 5>>config.log
2099 {
2100 cat <<_ASUNAME
2101 ## --------- ##
2102 ## Platform. ##
2103 ## --------- ##
2104
2105 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2106 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2107 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2108 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2109 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2110
2111 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2112 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2113
2114 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2115 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2116 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2117 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2118 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2119 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2120 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2121
2122 _ASUNAME
2123
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127 IFS=$as_save_IFS
2128 case $as_dir in #(((
2129 '') as_dir=./ ;;
2130 */) ;;
2131 *) as_dir=$as_dir/ ;;
2132 esac
2133 printf "%s\n" "PATH: $as_dir"
2134 done
2135 IFS=$as_save_IFS
2136
2137 } >&5
2138
2139 cat >&5 <<_ACEOF
2140
2141
2142 ## ----------- ##
2143 ## Core tests. ##
2144 ## ----------- ##
2145
2146 _ACEOF
2147
2148
2149 # Keep a trace of the command line.
2150 # Strip out --no-create and --no-recursion so they do not pile up.
2151 # Strip out --silent because we don't want to record it for future runs.
2152 # Also quote any args containing shell meta-characters.
2153 # Make two passes to allow for proper duplicate-argument suppression.
2154 ac_configure_args=
2155 ac_configure_args0=
2156 ac_configure_args1=
2157 ac_must_keep_next=false
2158 for ac_pass in 1 2
2159 do
2160 for ac_arg
2161 do
2162 case $ac_arg in
2163 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2165 | -silent | --silent | --silen | --sile | --sil)
2166 continue ;;
2167 *\'*)
2168 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 esac
2170 case $ac_pass in
2171 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2172 2)
2173 as_fn_append ac_configure_args1 " '$ac_arg'"
2174 if test $ac_must_keep_next = true; then
2175 ac_must_keep_next=false # Got value, back to normal.
2176 else
2177 case $ac_arg in
2178 *=* | --config-cache | -C | -disable-* | --disable-* \
2179 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2180 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2181 | -with-* | --with-* | -without-* | --without-* | --x)
2182 case "$ac_configure_args0 " in
2183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2184 esac
2185 ;;
2186 -* ) ac_must_keep_next=true ;;
2187 esac
2188 fi
2189 as_fn_append ac_configure_args " '$ac_arg'"
2190 ;;
2191 esac
2192 done
2193 done
2194 { ac_configure_args0=; unset ac_configure_args0;}
2195 { ac_configure_args1=; unset ac_configure_args1;}
2196
2197 # When interrupted or exit'd, cleanup temporary files, and complete
2198 # config.log. We remove comments because anyway the quotes in there
2199 # would cause problems or look ugly.
2200 # WARNING: Use '\'' to represent an apostrophe within the trap.
2201 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2202 trap 'exit_status=$?
2203 # Sanitize IFS.
2204 IFS=" "" $as_nl"
2205 # Save into config.log some information that might help in debugging.
2206 {
2207 echo
2208
2209 printf "%s\n" "## ---------------- ##
2210 ## Cache variables. ##
2211 ## ---------------- ##"
2212 echo
2213 # The following way of writing the cache mishandles newlines in values,
2214 (
2215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2216 eval ac_val=\$$ac_var
2217 case $ac_val in #(
2218 *${as_nl}*)
2219 case $ac_var in #(
2220 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2221 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2222 esac
2223 case $ac_var in #(
2224 _ | IFS | as_nl) ;; #(
2225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2226 *) { eval $ac_var=; unset $ac_var;} ;;
2227 esac ;;
2228 esac
2229 done
2230 (set) 2>&1 |
2231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2232 *${as_nl}ac_space=\ *)
2233 sed -n \
2234 "s/'\''/'\''\\\\'\'''\''/g;
2235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2236 ;; #(
2237 *)
2238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2239 ;;
2240 esac |
2241 sort
2242 )
2243 echo
2244
2245 printf "%s\n" "## ----------------- ##
2246 ## Output variables. ##
2247 ## ----------------- ##"
2248 echo
2249 for ac_var in $ac_subst_vars
2250 do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in
2253 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 esac
2255 printf "%s\n" "$ac_var='\''$ac_val'\''"
2256 done | sort
2257 echo
2258
2259 if test -n "$ac_subst_files"; then
2260 printf "%s\n" "## ------------------- ##
2261 ## File substitutions. ##
2262 ## ------------------- ##"
2263 echo
2264 for ac_var in $ac_subst_files
2265 do
2266 eval ac_val=\$$ac_var
2267 case $ac_val in
2268 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269 esac
2270 printf "%s\n" "$ac_var='\''$ac_val'\''"
2271 done | sort
2272 echo
2273 fi
2274
2275 if test -s confdefs.h; then
2276 printf "%s\n" "## ----------- ##
2277 ## confdefs.h. ##
2278 ## ----------- ##"
2279 echo
2280 cat confdefs.h
2281 echo
2282 fi
2283 test "$ac_signal" != 0 &&
2284 printf "%s\n" "$as_me: caught signal $ac_signal"
2285 printf "%s\n" "$as_me: exit $exit_status"
2286 } >&5
2287 rm -f core *.core core.conftest.* &&
2288 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2289 exit $exit_status
2290 ' 0
2291 for ac_signal in 1 2 13 15; do
2292 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2293 done
2294 ac_signal=0
2295
2296 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2297 rm -f -r conftest* confdefs.h
2298
2299 printf "%s\n" "/* confdefs.h */" > confdefs.h
2300
2301 # Predefined preprocessor variables.
2302
2303 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2304
2305 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2306
2307 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2308
2309 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2310
2311 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2312
2313 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2314
2315
2316 # Let the site file select an alternate cache file if it wants to.
2317 # Prefer an explicitly selected file to automatically selected ones.
2318 if test -n "$CONFIG_SITE"; then
2319 ac_site_files="$CONFIG_SITE"
2320 elif test "x$prefix" != xNONE; then
2321 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2322 else
2323 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2324 fi
2325
2326 for ac_site_file in $ac_site_files
2327 do
2328 case $ac_site_file in #(
2329 */*) :
2330 ;; #(
2331 *) :
2332 ac_site_file=./$ac_site_file ;;
2333 esac
2334 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2336 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2337 sed 's/^/| /' "$ac_site_file" >&5
2338 . "$ac_site_file" \
2339 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2340 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2341 as_fn_error $? "failed to load site script $ac_site_file
2342 See 'config.log' for more details" "$LINENO" 5; }
2343 fi
2344 done
2345
2346 if test -r "$cache_file"; then
2347 # Some versions of bash will fail to source /dev/null (special files
2348 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2349 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2351 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2352 case $cache_file in
2353 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2354 *) . "./$cache_file";;
2355 esac
2356 fi
2357 else
2358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2359 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2360 >$cache_file
2361 fi
2362
2363 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2364 # Test code for whether the C compiler supports C89 (global declarations)
2365 ac_c_conftest_c89_globals='
2366 /* Does the compiler advertise C89 conformance?
2367 Do not test the value of __STDC__, because some compilers set it to 0
2368 while being otherwise adequately conformant. */
2369 #if !defined __STDC__
2370 # error "Compiler does not advertise C89 conformance"
2371 #endif
2372
2373 #include <stddef.h>
2374 #include <stdarg.h>
2375 struct stat;
2376 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2377 struct buf { int x; };
2378 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2379 static char *e (char **p, int i)
2380 {
2381 return p[i];
2382 }
2383 static char *f (char * (*g) (char **, int), char **p, ...)
2384 {
2385 char *s;
2386 va_list v;
2387 va_start (v,p);
2388 s = g (p, va_arg (v,int));
2389 va_end (v);
2390 return s;
2391 }
2392
2393 /* C89 style stringification. */
2394 #define noexpand_stringify(a) #a
2395 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2396
2397 /* C89 style token pasting. Exercises some of the corner cases that
2398 e.g. old MSVC gets wrong, but not very hard. */
2399 #define noexpand_concat(a,b) a##b
2400 #define expand_concat(a,b) noexpand_concat(a,b)
2401 extern int vA;
2402 extern int vbee;
2403 #define aye A
2404 #define bee B
2405 int *pvA = &expand_concat(v,aye);
2406 int *pvbee = &noexpand_concat(v,bee);
2407
2408 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2409 function prototypes and stuff, but not \xHH hex character constants.
2410 These do not provoke an error unfortunately, instead are silently treated
2411 as an "x". The following induces an error, until -std is added to get
2412 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2413 array size at least. It is necessary to write \x00 == 0 to get something
2414 that is true only with -std. */
2415 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2416
2417 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2418 inside strings and character constants. */
2419 #define FOO(x) '\''x'\''
2420 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2421
2422 int test (int i, double x);
2423 struct s1 {int (*f) (int a);};
2424 struct s2 {int (*f) (double a);};
2425 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2426 int, int);'
2427
2428 # Test code for whether the C compiler supports C89 (body of main).
2429 ac_c_conftest_c89_main='
2430 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2431 '
2432
2433 # Test code for whether the C compiler supports C99 (global declarations)
2434 ac_c_conftest_c99_globals='
2435 /* Does the compiler advertise C99 conformance? */
2436 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2437 # error "Compiler does not advertise C99 conformance"
2438 #endif
2439
2440 // See if C++-style comments work.
2441
2442 #include <stdbool.h>
2443 extern int puts (const char *);
2444 extern int printf (const char *, ...);
2445 extern int dprintf (int, const char *, ...);
2446 extern void *malloc (size_t);
2447 extern void free (void *);
2448
2449 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2450 // dprintf is used instead of fprintf to avoid needing to declare
2451 // FILE and stderr.
2452 #define debug(...) dprintf (2, __VA_ARGS__)
2453 #define showlist(...) puts (#__VA_ARGS__)
2454 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2455 static void
2456 test_varargs_macros (void)
2457 {
2458 int x = 1234;
2459 int y = 5678;
2460 debug ("Flag");
2461 debug ("X = %d\n", x);
2462 showlist (The first, second, and third items.);
2463 report (x>y, "x is %d but y is %d", x, y);
2464 }
2465
2466 // Check long long types.
2467 #define BIG64 18446744073709551615ull
2468 #define BIG32 4294967295ul
2469 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2470 #if !BIG_OK
2471 #error "your preprocessor is broken"
2472 #endif
2473 #if BIG_OK
2474 #else
2475 #error "your preprocessor is broken"
2476 #endif
2477 static long long int bignum = -9223372036854775807LL;
2478 static unsigned long long int ubignum = BIG64;
2479
2480 struct incomplete_array
2481 {
2482 int datasize;
2483 double data[];
2484 };
2485
2486 struct named_init {
2487 int number;
2488 const wchar_t *name;
2489 double average;
2490 };
2491
2492 typedef const char *ccp;
2493
2494 static inline int
2495 test_restrict (ccp restrict text)
2496 {
2497 // Iterate through items via the restricted pointer.
2498 // Also check for declarations in for loops.
2499 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2500 continue;
2501 return 0;
2502 }
2503
2504 // Check varargs and va_copy.
2505 static bool
2506 test_varargs (const char *format, ...)
2507 {
2508 va_list args;
2509 va_start (args, format);
2510 va_list args_copy;
2511 va_copy (args_copy, args);
2512
2513 const char *str = "";
2514 int number = 0;
2515 float fnumber = 0;
2516
2517 while (*format)
2518 {
2519 switch (*format++)
2520 {
2521 case '\''s'\'': // string
2522 str = va_arg (args_copy, const char *);
2523 break;
2524 case '\''d'\'': // int
2525 number = va_arg (args_copy, int);
2526 break;
2527 case '\''f'\'': // float
2528 fnumber = va_arg (args_copy, double);
2529 break;
2530 default:
2531 break;
2532 }
2533 }
2534 va_end (args_copy);
2535 va_end (args);
2536
2537 return *str && number && fnumber;
2538 }
2539 '
2540
2541 # Test code for whether the C compiler supports C99 (body of main).
2542 ac_c_conftest_c99_main='
2543 // Check bool.
2544 _Bool success = false;
2545 success |= (argc != 0);
2546
2547 // Check restrict.
2548 if (test_restrict ("String literal") == 0)
2549 success = true;
2550 char *restrict newvar = "Another string";
2551
2552 // Check varargs.
2553 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2554 test_varargs_macros ();
2555
2556 // Check flexible array members.
2557 struct incomplete_array *ia =
2558 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2559 ia->datasize = 10;
2560 for (int i = 0; i < ia->datasize; ++i)
2561 ia->data[i] = i * 1.234;
2562 // Work around memory leak warnings.
2563 free (ia);
2564
2565 // Check named initializers.
2566 struct named_init ni = {
2567 .number = 34,
2568 .name = L"Test wide string",
2569 .average = 543.34343,
2570 };
2571
2572 ni.number = 58;
2573
2574 int dynamic_array[ni.number];
2575 dynamic_array[0] = argv[0][0];
2576 dynamic_array[ni.number - 1] = 543;
2577
2578 // work around unused variable warnings
2579 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2580 || dynamic_array[ni.number - 1] != 543);
2581 '
2582
2583 # Test code for whether the C compiler supports C11 (global declarations)
2584 ac_c_conftest_c11_globals='
2585 /* Does the compiler advertise C11 conformance? */
2586 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2587 # error "Compiler does not advertise C11 conformance"
2588 #endif
2589
2590 // Check _Alignas.
2591 char _Alignas (double) aligned_as_double;
2592 char _Alignas (0) no_special_alignment;
2593 extern char aligned_as_int;
2594 char _Alignas (0) _Alignas (int) aligned_as_int;
2595
2596 // Check _Alignof.
2597 enum
2598 {
2599 int_alignment = _Alignof (int),
2600 int_array_alignment = _Alignof (int[100]),
2601 char_alignment = _Alignof (char)
2602 };
2603 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2604
2605 // Check _Noreturn.
2606 int _Noreturn does_not_return (void) { for (;;) continue; }
2607
2608 // Check _Static_assert.
2609 struct test_static_assert
2610 {
2611 int x;
2612 _Static_assert (sizeof (int) <= sizeof (long int),
2613 "_Static_assert does not work in struct");
2614 long int y;
2615 };
2616
2617 // Check UTF-8 literals.
2618 #define u8 syntax error!
2619 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2620
2621 // Check duplicate typedefs.
2622 typedef long *long_ptr;
2623 typedef long int *long_ptr;
2624 typedef long_ptr long_ptr;
2625
2626 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2627 struct anonymous
2628 {
2629 union {
2630 struct { int i; int j; };
2631 struct { int k; long int l; } w;
2632 };
2633 int m;
2634 } v1;
2635 '
2636
2637 # Test code for whether the C compiler supports C11 (body of main).
2638 ac_c_conftest_c11_main='
2639 _Static_assert ((offsetof (struct anonymous, i)
2640 == offsetof (struct anonymous, w.k)),
2641 "Anonymous union alignment botch");
2642 v1.i = 2;
2643 v1.w.k = 5;
2644 ok |= v1.i != 5;
2645 '
2646
2647 # Test code for whether the C compiler supports C11 (complete).
2648 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2649 ${ac_c_conftest_c99_globals}
2650 ${ac_c_conftest_c11_globals}
2651
2652 int
2653 main (int argc, char **argv)
2654 {
2655 int ok = 0;
2656 ${ac_c_conftest_c89_main}
2657 ${ac_c_conftest_c99_main}
2658 ${ac_c_conftest_c11_main}
2659 return ok;
2660 }
2661 "
2662
2663 # Test code for whether the C compiler supports C99 (complete).
2664 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2665 ${ac_c_conftest_c99_globals}
2666
2667 int
2668 main (int argc, char **argv)
2669 {
2670 int ok = 0;
2671 ${ac_c_conftest_c89_main}
2672 ${ac_c_conftest_c99_main}
2673 return ok;
2674 }
2675 "
2676
2677 # Test code for whether the C compiler supports C89 (complete).
2678 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2679
2680 int
2681 main (int argc, char **argv)
2682 {
2683 int ok = 0;
2684 ${ac_c_conftest_c89_main}
2685 return ok;
2686 }
2687 "
2688
2689 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2690 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2691 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2692 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2693 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2694 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2695 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2696 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2697 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2698 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2699
2700 # Auxiliary files required by this configure script.
2701 ac_aux_files="ltmain.sh config.guess config.sub missing install-sh compile"
2702
2703 # Locations in which to look for auxiliary files.
2704 ac_aux_dir_candidates="${srcdir}/auto"
2705
2706 # Search for a directory containing all of the required auxiliary files,
2707 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2708 # If we don't find one directory that contains all the files we need,
2709 # we report the set of missing files from the *first* directory in
2710 # $ac_aux_dir_candidates and give up.
2711 ac_missing_aux_files=""
2712 ac_first_candidate=:
2713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 as_found=false
2716 for as_dir in $ac_aux_dir_candidates
2717 do
2718 IFS=$as_save_IFS
2719 case $as_dir in #(((
2720 '') as_dir=./ ;;
2721 */) ;;
2722 *) as_dir=$as_dir/ ;;
2723 esac
2724 as_found=:
2725
2726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2727 ac_aux_dir_found=yes
2728 ac_install_sh=
2729 for ac_aux in $ac_aux_files
2730 do
2731 # As a special case, if "install-sh" is required, that requirement
2732 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2733 # and $ac_install_sh is set appropriately for whichever one is found.
2734 if test x"$ac_aux" = x"install-sh"
2735 then
2736 if test -f "${as_dir}install-sh"; then
2737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2738 ac_install_sh="${as_dir}install-sh -c"
2739 elif test -f "${as_dir}install.sh"; then
2740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2741 ac_install_sh="${as_dir}install.sh -c"
2742 elif test -f "${as_dir}shtool"; then
2743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2744 ac_install_sh="${as_dir}shtool install -c"
2745 else
2746 ac_aux_dir_found=no
2747 if $ac_first_candidate; then
2748 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2749 else
2750 break
2751 fi
2752 fi
2753 else
2754 if test -f "${as_dir}${ac_aux}"; then
2755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2756 else
2757 ac_aux_dir_found=no
2758 if $ac_first_candidate; then
2759 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2760 else
2761 break
2762 fi
2763 fi
2764 fi
2765 done
2766 if test "$ac_aux_dir_found" = yes; then
2767 ac_aux_dir="$as_dir"
2768 break
2769 fi
2770 ac_first_candidate=false
2771
2772 as_found=false
2773 done
2774 IFS=$as_save_IFS
2775 if $as_found
2776 then :
2777
2778 else case e in #(
2779 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2780 esac
2781 fi
2782
2783
2784 # These three variables are undocumented and unsupported,
2785 # and are intended to be withdrawn in a future Autoconf release.
2786 # They can cause serious problems if a builder's source tree is in a directory
2787 # whose full name contains unusual characters.
2788 if test -f "${ac_aux_dir}config.guess"; then
2789 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2790 fi
2791 if test -f "${ac_aux_dir}config.sub"; then
2792 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2793 fi
2794 if test -f "$ac_aux_dir/configure"; then
2795 ac_configure="$SHELL ${ac_aux_dir}configure"
2796 fi
2797
2798 # Check that the precious variables saved in the cache have kept the same
2799 # value.
2800 ac_cache_corrupted=false
2801 for ac_var in $ac_precious_vars; do
2802 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2803 eval ac_new_set=\$ac_env_${ac_var}_set
2804 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2805 eval ac_new_val=\$ac_env_${ac_var}_value
2806 case $ac_old_set,$ac_new_set in
2807 set,)
2808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2809 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2810 ac_cache_corrupted=: ;;
2811 ,set)
2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2813 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2814 ac_cache_corrupted=: ;;
2815 ,);;
2816 *)
2817 if test "x$ac_old_val" != "x$ac_new_val"; then
2818 # differences in whitespace do not lead to failure.
2819 ac_old_val_w=`echo x $ac_old_val`
2820 ac_new_val_w=`echo x $ac_new_val`
2821 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2823 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2824 ac_cache_corrupted=:
2825 else
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2827 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2828 eval $ac_var=\$ac_old_val
2829 fi
2830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2831 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2833 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2834 fi;;
2835 esac
2836 # Pass precious variables to config.status.
2837 if test "$ac_new_set" = set; then
2838 case $ac_new_val in
2839 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2840 *) ac_arg=$ac_var=$ac_new_val ;;
2841 esac
2842 case " $ac_configure_args " in
2843 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2844 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2845 esac
2846 fi
2847 done
2848 if $ac_cache_corrupted; then
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2850 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2852 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2853 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2854 and start over" "$LINENO" 5
2855 fi
2856 ## -------------------- ##
2857 ## Main body of script. ##
2858 ## -------------------- ##
2859
2860 ac_ext=c
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865
2866
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** initialization" >&5
2868 printf "%s\n" "$as_me: **************************************** initialization" >&6;}
2869
2870
2871 ac_config_headers="$ac_config_headers src/config.h"
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884 # Expand $ac_aux_dir to an absolute path.
2885 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2886
2887 ac_ext=c
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892 if test -n "$ac_tool_prefix"; then
2893 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 printf %s "checking for $ac_word... " >&6; }
2897 if test ${ac_cv_prog_CC+y}
2898 then :
2899 printf %s "(cached) " >&6
2900 else case e in #(
2901 e) if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 case $as_dir in #(((
2909 '') as_dir=./ ;;
2910 */) ;;
2911 *) as_dir=$as_dir/ ;;
2912 esac
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2917 break 2
2918 fi
2919 done
2920 done
2921 IFS=$as_save_IFS
2922
2923 fi ;;
2924 esac
2925 fi
2926 CC=$ac_cv_prog_CC
2927 if test -n "$CC"; then
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929 printf "%s\n" "$CC" >&6; }
2930 else
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 printf "%s\n" "no" >&6; }
2933 fi
2934
2935
2936 fi
2937 if test -z "$ac_cv_prog_CC"; then
2938 ac_ct_CC=$CC
2939 # Extract the first word of "gcc", so it can be a program name with args.
2940 set dummy gcc; ac_word=$2
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 printf %s "checking for $ac_word... " >&6; }
2943 if test ${ac_cv_prog_ac_ct_CC+y}
2944 then :
2945 printf %s "(cached) " >&6
2946 else case e in #(
2947 e) if test -n "$ac_ct_CC"; then
2948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953 IFS=$as_save_IFS
2954 case $as_dir in #(((
2955 '') as_dir=./ ;;
2956 */) ;;
2957 *) as_dir=$as_dir/ ;;
2958 esac
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_ac_ct_CC="gcc"
2962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2963 break 2
2964 fi
2965 done
2966 done
2967 IFS=$as_save_IFS
2968
2969 fi ;;
2970 esac
2971 fi
2972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2973 if test -n "$ac_ct_CC"; then
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2975 printf "%s\n" "$ac_ct_CC" >&6; }
2976 else
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 printf "%s\n" "no" >&6; }
2979 fi
2980
2981 if test "x$ac_ct_CC" = x; then
2982 CC=""
2983 else
2984 case $cross_compiling:$ac_tool_warned in
2985 yes:)
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988 ac_tool_warned=yes ;;
2989 esac
2990 CC=$ac_ct_CC
2991 fi
2992 else
2993 CC="$ac_cv_prog_CC"
2994 fi
2995
2996 if test -z "$CC"; then
2997 if test -n "$ac_tool_prefix"; then
2998 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2999 set dummy ${ac_tool_prefix}cc; ac_word=$2
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 printf %s "checking for $ac_word... " >&6; }
3002 if test ${ac_cv_prog_CC+y}
3003 then :
3004 printf %s "(cached) " >&6
3005 else case e in #(
3006 e) if test -n "$CC"; then
3007 ac_cv_prog_CC="$CC" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012 IFS=$as_save_IFS
3013 case $as_dir in #(((
3014 '') as_dir=./ ;;
3015 */) ;;
3016 *) as_dir=$as_dir/ ;;
3017 esac
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3020 ac_cv_prog_CC="${ac_tool_prefix}cc"
3021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3022 break 2
3023 fi
3024 done
3025 done
3026 IFS=$as_save_IFS
3027
3028 fi ;;
3029 esac
3030 fi
3031 CC=$ac_cv_prog_CC
3032 if test -n "$CC"; then
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 printf "%s\n" "$CC" >&6; }
3035 else
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 printf "%s\n" "no" >&6; }
3038 fi
3039
3040
3041 fi
3042 fi
3043 if test -z "$CC"; then
3044 # Extract the first word of "cc", so it can be a program name with args.
3045 set dummy cc; ac_word=$2
3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 printf %s "checking for $ac_word... " >&6; }
3048 if test ${ac_cv_prog_CC+y}
3049 then :
3050 printf %s "(cached) " >&6
3051 else case e in #(
3052 e) if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 else
3055 ac_prog_rejected=no
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059 IFS=$as_save_IFS
3060 case $as_dir in #(((
3061 '') as_dir=./ ;;
3062 */) ;;
3063 *) as_dir=$as_dir/ ;;
3064 esac
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3067 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068 ac_prog_rejected=yes
3069 continue
3070 fi
3071 ac_cv_prog_CC="cc"
3072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 if test $ac_prog_rejected = yes; then
3080 # We found a bogon in the path, so make sure we never use it.
3081 set dummy $ac_cv_prog_CC
3082 shift
3083 if test $# != 0; then
3084 # We chose a different compiler from the bogus one.
3085 # However, it has the same basename, so the bogon will be chosen
3086 # first if we set CC to just the basename; use the full file name.
3087 shift
3088 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3089 fi
3090 fi
3091 fi ;;
3092 esac
3093 fi
3094 CC=$ac_cv_prog_CC
3095 if test -n "$CC"; then
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097 printf "%s\n" "$CC" >&6; }
3098 else
3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 printf "%s\n" "no" >&6; }
3101 fi
3102
3103
3104 fi
3105 if test -z "$CC"; then
3106 if test -n "$ac_tool_prefix"; then
3107 for ac_prog in cl.exe
3108 do
3109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 printf %s "checking for $ac_word... " >&6; }
3113 if test ${ac_cv_prog_CC+y}
3114 then :
3115 printf %s "(cached) " >&6
3116 else case e in #(
3117 e) if test -n "$CC"; then
3118 ac_cv_prog_CC="$CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123 IFS=$as_save_IFS
3124 case $as_dir in #(((
3125 '') as_dir=./ ;;
3126 */) ;;
3127 *) as_dir=$as_dir/ ;;
3128 esac
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3133 break 2
3134 fi
3135 done
3136 done
3137 IFS=$as_save_IFS
3138
3139 fi ;;
3140 esac
3141 fi
3142 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 printf "%s\n" "$CC" >&6; }
3146 else
3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 printf "%s\n" "no" >&6; }
3149 fi
3150
3151
3152 test -n "$CC" && break
3153 done
3154 fi
3155 if test -z "$CC"; then
3156 ac_ct_CC=$CC
3157 for ac_prog in cl.exe
3158 do
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 printf %s "checking for $ac_word... " >&6; }
3163 if test ${ac_cv_prog_ac_ct_CC+y}
3164 then :
3165 printf %s "(cached) " >&6
3166 else case e in #(
3167 e) if test -n "$ac_ct_CC"; then
3168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173 IFS=$as_save_IFS
3174 case $as_dir in #(((
3175 '') as_dir=./ ;;
3176 */) ;;
3177 *) as_dir=$as_dir/ ;;
3178 esac
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_ac_ct_CC="$ac_prog"
3182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi ;;
3190 esac
3191 fi
3192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3193 if test -n "$ac_ct_CC"; then
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3195 printf "%s\n" "$ac_ct_CC" >&6; }
3196 else
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 printf "%s\n" "no" >&6; }
3199 fi
3200
3201
3202 test -n "$ac_ct_CC" && break
3203 done
3204
3205 if test "x$ac_ct_CC" = x; then
3206 CC=""
3207 else
3208 case $cross_compiling:$ac_tool_warned in
3209 yes:)
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212 ac_tool_warned=yes ;;
3213 esac
3214 CC=$ac_ct_CC
3215 fi
3216 fi
3217
3218 fi
3219 if test -z "$CC"; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3222 set dummy ${ac_tool_prefix}clang; ac_word=$2
3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 printf %s "checking for $ac_word... " >&6; }
3225 if test ${ac_cv_prog_CC+y}
3226 then :
3227 printf %s "(cached) " >&6
3228 else case e in #(
3229 e) if test -n "$CC"; then
3230 ac_cv_prog_CC="$CC" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235 IFS=$as_save_IFS
3236 case $as_dir in #(((
3237 '') as_dir=./ ;;
3238 */) ;;
3239 *) as_dir=$as_dir/ ;;
3240 esac
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_CC="${ac_tool_prefix}clang"
3244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3245 break 2
3246 fi
3247 done
3248 done
3249 IFS=$as_save_IFS
3250
3251 fi ;;
3252 esac
3253 fi
3254 CC=$ac_cv_prog_CC
3255 if test -n "$CC"; then
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 printf "%s\n" "$CC" >&6; }
3258 else
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 printf "%s\n" "no" >&6; }
3261 fi
3262
3263
3264 fi
3265 if test -z "$ac_cv_prog_CC"; then
3266 ac_ct_CC=$CC
3267 # Extract the first word of "clang", so it can be a program name with args.
3268 set dummy clang; ac_word=$2
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 printf %s "checking for $ac_word... " >&6; }
3271 if test ${ac_cv_prog_ac_ct_CC+y}
3272 then :
3273 printf %s "(cached) " >&6
3274 else case e in #(
3275 e) if test -n "$ac_ct_CC"; then
3276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281 IFS=$as_save_IFS
3282 case $as_dir in #(((
3283 '') as_dir=./ ;;
3284 */) ;;
3285 *) as_dir=$as_dir/ ;;
3286 esac
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_ac_ct_CC="clang"
3290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3291 break 2
3292 fi
3293 done
3294 done
3295 IFS=$as_save_IFS
3296
3297 fi ;;
3298 esac
3299 fi
3300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303 printf "%s\n" "$ac_ct_CC" >&6; }
3304 else
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 printf "%s\n" "no" >&6; }
3307 fi
3308
3309 if test "x$ac_ct_CC" = x; then
3310 CC=""
3311 else
3312 case $cross_compiling:$ac_tool_warned in
3313 yes:)
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3317 esac
3318 CC=$ac_ct_CC
3319 fi
3320 else
3321 CC="$ac_cv_prog_CC"
3322 fi
3323
3324 fi
3325
3326
3327 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3328 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3329 as_fn_error $? "no acceptable C compiler found in \$PATH
3330 See 'config.log' for more details" "$LINENO" 5; }
3331
3332 # Provide some information about the compiler.
3333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3334 set X $ac_compile
3335 ac_compiler=$2
3336 for ac_option in --version -v -V -qversion -version; do
3337 { { ac_try="$ac_compiler $ac_option >&5"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 printf "%s\n" "$ac_try_echo"; } >&5
3344 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3345 ac_status=$?
3346 if test -s conftest.err; then
3347 sed '10a\
3348 ... rest of stderr output deleted ...
3349 10q' conftest.err >conftest.er1
3350 cat conftest.er1 >&5
3351 fi
3352 rm -f conftest.er1 conftest.err
3353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }
3355 done
3356
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359
3360 int
3361 main (void)
3362 {
3363
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 ac_clean_files_save=$ac_clean_files
3369 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3370 # Try to create an executable without -o first, disregard a.out.
3371 # It will help us diagnose broken compilers, and finding out an intuition
3372 # of exeext.
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3374 printf %s "checking whether the C compiler works... " >&6; }
3375 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3376
3377 # The possible output files:
3378 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3379
3380 ac_rmfiles=
3381 for ac_file in $ac_files
3382 do
3383 case $ac_file in
3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3385 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3386 esac
3387 done
3388 rm -f $ac_rmfiles
3389
3390 if { { ac_try="$ac_link_default"
3391 case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394 esac
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 printf "%s\n" "$ac_try_echo"; } >&5
3397 (eval "$ac_link_default") 2>&5
3398 ac_status=$?
3399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401 then :
3402 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3403 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3404 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3405 # so that the user can short-circuit this test for compilers unknown to
3406 # Autoconf.
3407 for ac_file in $ac_files ''
3408 do
3409 test -f "$ac_file" || continue
3410 case $ac_file in
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3412 ;;
3413 [ab].out )
3414 # We found the default executable, but exeext='' is most
3415 # certainly right.
3416 break;;
3417 *.* )
3418 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3419 then :; else
3420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3421 fi
3422 # We set ac_cv_exeext here because the later test for it is not
3423 # safe: cross compilers may not add the suffix if given an '-o'
3424 # argument, so we may need to know it at that point already.
3425 # Even if this section looks crufty: it has the advantage of
3426 # actually working.
3427 break;;
3428 * )
3429 break;;
3430 esac
3431 done
3432 test "$ac_cv_exeext" = no && ac_cv_exeext=
3433
3434 else case e in #(
3435 e) ac_file='' ;;
3436 esac
3437 fi
3438 if test -z "$ac_file"
3439 then :
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 printf "%s\n" "no" >&6; }
3442 printf "%s\n" "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3444
3445 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3446 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3447 as_fn_error 77 "C compiler cannot create executables
3448 See 'config.log' for more details" "$LINENO" 5; }
3449 else case e in #(
3450 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3451 printf "%s\n" "yes" >&6; } ;;
3452 esac
3453 fi
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3455 printf %s "checking for C compiler default output file name... " >&6; }
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3457 printf "%s\n" "$ac_file" >&6; }
3458 ac_exeext=$ac_cv_exeext
3459
3460 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3461 ac_clean_files=$ac_clean_files_save
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3463 printf %s "checking for suffix of executables... " >&6; }
3464 if { { ac_try="$ac_link"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 printf "%s\n" "$ac_try_echo"; } >&5
3471 (eval "$ac_link") 2>&5
3472 ac_status=$?
3473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }
3475 then :
3476 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3477 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3478 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3479 # 'rm'.
3480 for ac_file in conftest.exe conftest conftest.*; do
3481 test -f "$ac_file" || continue
3482 case $ac_file in
3483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3484 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3485 break;;
3486 * ) break;;
3487 esac
3488 done
3489 else case e in #(
3490 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3491 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3492 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3493 See 'config.log' for more details" "$LINENO" 5; } ;;
3494 esac
3495 fi
3496 rm -f conftest conftest$ac_cv_exeext
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3498 printf "%s\n" "$ac_cv_exeext" >&6; }
3499
3500 rm -f conftest.$ac_ext
3501 EXEEXT=$ac_cv_exeext
3502 ac_exeext=$EXEEXT
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505 #include <stdio.h>
3506 int
3507 main (void)
3508 {
3509 FILE *f = fopen ("conftest.out", "w");
3510 if (!f)
3511 return 1;
3512 return ferror (f) || fclose (f) != 0;
3513
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 ac_clean_files="$ac_clean_files conftest.out"
3519 # Check that the compiler produces executables we can run. If not, either
3520 # the compiler is broken, or we cross compile.
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3522 printf %s "checking whether we are cross compiling... " >&6; }
3523 if test "$cross_compiling" != yes; then
3524 { { ac_try="$ac_link"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 printf "%s\n" "$ac_try_echo"; } >&5
3531 (eval "$ac_link") 2>&5
3532 ac_status=$?
3533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }
3535 if { ac_try='./conftest$ac_cv_exeext'
3536 { { case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 printf "%s\n" "$ac_try_echo"; } >&5
3542 (eval "$ac_try") 2>&5
3543 ac_status=$?
3544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }; }; then
3546 cross_compiling=no
3547 else
3548 if test "$cross_compiling" = maybe; then
3549 cross_compiling=yes
3550 else
3551 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3552 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3553 as_fn_error 77 "cannot run C compiled programs.
3554 If you meant to cross compile, use '--host'.
3555 See 'config.log' for more details" "$LINENO" 5; }
3556 fi
3557 fi
3558 fi
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3560 printf "%s\n" "$cross_compiling" >&6; }
3561
3562 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3563 conftest.o conftest.obj conftest.out
3564 ac_clean_files=$ac_clean_files_save
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3566 printf %s "checking for suffix of object files... " >&6; }
3567 if test ${ac_cv_objext+y}
3568 then :
3569 printf %s "(cached) " >&6
3570 else case e in #(
3571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573
3574 int
3575 main (void)
3576 {
3577
3578 ;
3579 return 0;
3580 }
3581 _ACEOF
3582 rm -f conftest.o conftest.obj
3583 if { { ac_try="$ac_compile"
3584 case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587 esac
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 printf "%s\n" "$ac_try_echo"; } >&5
3590 (eval "$ac_compile") 2>&5
3591 ac_status=$?
3592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }
3594 then :
3595 for ac_file in conftest.o conftest.obj conftest.*; do
3596 test -f "$ac_file" || continue;
3597 case $ac_file in
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3600 break;;
3601 esac
3602 done
3603 else case e in #(
3604 e) printf "%s\n" "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3608 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3609 as_fn_error $? "cannot compute suffix of object files: cannot compile
3610 See 'config.log' for more details" "$LINENO" 5; } ;;
3611 esac
3612 fi
3613 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3614 esac
3615 fi
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3617 printf "%s\n" "$ac_cv_objext" >&6; }
3618 OBJEXT=$ac_cv_objext
3619 ac_objext=$OBJEXT
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3621 printf %s "checking whether the compiler supports GNU C... " >&6; }
3622 if test ${ac_cv_c_compiler_gnu+y}
3623 then :
3624 printf %s "(cached) " >&6
3625 else case e in #(
3626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628
3629 int
3630 main (void)
3631 {
3632 #ifndef __GNUC__
3633 choke me
3634 #endif
3635
3636 ;
3637 return 0;
3638 }
3639 _ACEOF
3640 if ac_fn_c_try_compile "$LINENO"
3641 then :
3642 ac_compiler_gnu=yes
3643 else case e in #(
3644 e) ac_compiler_gnu=no ;;
3645 esac
3646 fi
3647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3648 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3649 ;;
3650 esac
3651 fi
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3653 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655
3656 if test $ac_compiler_gnu = yes; then
3657 GCC=yes
3658 else
3659 GCC=
3660 fi
3661 ac_test_CFLAGS=${CFLAGS+y}
3662 ac_save_CFLAGS=$CFLAGS
3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3664 printf %s "checking whether $CC accepts -g... " >&6; }
3665 if test ${ac_cv_prog_cc_g+y}
3666 then :
3667 printf %s "(cached) " >&6
3668 else case e in #(
3669 e) ac_save_c_werror_flag=$ac_c_werror_flag
3670 ac_c_werror_flag=yes
3671 ac_cv_prog_cc_g=no
3672 CFLAGS="-g"
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3675
3676 int
3677 main (void)
3678 {
3679
3680 ;
3681 return 0;
3682 }
3683 _ACEOF
3684 if ac_fn_c_try_compile "$LINENO"
3685 then :
3686 ac_cv_prog_cc_g=yes
3687 else case e in #(
3688 e) CFLAGS=""
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3691
3692 int
3693 main (void)
3694 {
3695
3696 ;
3697 return 0;
3698 }
3699 _ACEOF
3700 if ac_fn_c_try_compile "$LINENO"
3701 then :
3702
3703 else case e in #(
3704 e) ac_c_werror_flag=$ac_save_c_werror_flag
3705 CFLAGS="-g"
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3708
3709 int
3710 main (void)
3711 {
3712
3713 ;
3714 return 0;
3715 }
3716 _ACEOF
3717 if ac_fn_c_try_compile "$LINENO"
3718 then :
3719 ac_cv_prog_cc_g=yes
3720 fi
3721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3722 esac
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3725 esac
3726 fi
3727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3728 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3729 esac
3730 fi
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3732 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3733 if test $ac_test_CFLAGS; then
3734 CFLAGS=$ac_save_CFLAGS
3735 elif test $ac_cv_prog_cc_g = yes; then
3736 if test "$GCC" = yes; then
3737 CFLAGS="-g -O2"
3738 else
3739 CFLAGS="-g"
3740 fi
3741 else
3742 if test "$GCC" = yes; then
3743 CFLAGS="-O2"
3744 else
3745 CFLAGS=
3746 fi
3747 fi
3748 ac_prog_cc_stdc=no
3749 if test x$ac_prog_cc_stdc = xno
3750 then :
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3752 printf %s "checking for $CC option to enable C11 features... " >&6; }
3753 if test ${ac_cv_prog_cc_c11+y}
3754 then :
3755 printf %s "(cached) " >&6
3756 else case e in #(
3757 e) ac_cv_prog_cc_c11=no
3758 ac_save_CC=$CC
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761 $ac_c_conftest_c11_program
3762 _ACEOF
3763 for ac_arg in '' -std=gnu11
3764 do
3765 CC="$ac_save_CC $ac_arg"
3766 if ac_fn_c_try_compile "$LINENO"
3767 then :
3768 ac_cv_prog_cc_c11=$ac_arg
3769 fi
3770 rm -f core conftest.err conftest.$ac_objext conftest.beam
3771 test "x$ac_cv_prog_cc_c11" != "xno" && break
3772 done
3773 rm -f conftest.$ac_ext
3774 CC=$ac_save_CC ;;
3775 esac
3776 fi
3777
3778 if test "x$ac_cv_prog_cc_c11" = xno
3779 then :
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3781 printf "%s\n" "unsupported" >&6; }
3782 else case e in #(
3783 e) if test "x$ac_cv_prog_cc_c11" = x
3784 then :
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3786 printf "%s\n" "none needed" >&6; }
3787 else case e in #(
3788 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3789 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3790 CC="$CC $ac_cv_prog_cc_c11" ;;
3791 esac
3792 fi
3793 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3794 ac_prog_cc_stdc=c11 ;;
3795 esac
3796 fi
3797 fi
3798 if test x$ac_prog_cc_stdc = xno
3799 then :
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3801 printf %s "checking for $CC option to enable C99 features... " >&6; }
3802 if test ${ac_cv_prog_cc_c99+y}
3803 then :
3804 printf %s "(cached) " >&6
3805 else case e in #(
3806 e) ac_cv_prog_cc_c99=no
3807 ac_save_CC=$CC
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3810 $ac_c_conftest_c99_program
3811 _ACEOF
3812 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3813 do
3814 CC="$ac_save_CC $ac_arg"
3815 if ac_fn_c_try_compile "$LINENO"
3816 then :
3817 ac_cv_prog_cc_c99=$ac_arg
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext conftest.beam
3820 test "x$ac_cv_prog_cc_c99" != "xno" && break
3821 done
3822 rm -f conftest.$ac_ext
3823 CC=$ac_save_CC ;;
3824 esac
3825 fi
3826
3827 if test "x$ac_cv_prog_cc_c99" = xno
3828 then :
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3830 printf "%s\n" "unsupported" >&6; }
3831 else case e in #(
3832 e) if test "x$ac_cv_prog_cc_c99" = x
3833 then :
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3835 printf "%s\n" "none needed" >&6; }
3836 else case e in #(
3837 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3838 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3839 CC="$CC $ac_cv_prog_cc_c99" ;;
3840 esac
3841 fi
3842 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3843 ac_prog_cc_stdc=c99 ;;
3844 esac
3845 fi
3846 fi
3847 if test x$ac_prog_cc_stdc = xno
3848 then :
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3850 printf %s "checking for $CC option to enable C89 features... " >&6; }
3851 if test ${ac_cv_prog_cc_c89+y}
3852 then :
3853 printf %s "(cached) " >&6
3854 else case e in #(
3855 e) ac_cv_prog_cc_c89=no
3856 ac_save_CC=$CC
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 $ac_c_conftest_c89_program
3860 _ACEOF
3861 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3862 do
3863 CC="$ac_save_CC $ac_arg"
3864 if ac_fn_c_try_compile "$LINENO"
3865 then :
3866 ac_cv_prog_cc_c89=$ac_arg
3867 fi
3868 rm -f core conftest.err conftest.$ac_objext conftest.beam
3869 test "x$ac_cv_prog_cc_c89" != "xno" && break
3870 done
3871 rm -f conftest.$ac_ext
3872 CC=$ac_save_CC ;;
3873 esac
3874 fi
3875
3876 if test "x$ac_cv_prog_cc_c89" = xno
3877 then :
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3879 printf "%s\n" "unsupported" >&6; }
3880 else case e in #(
3881 e) if test "x$ac_cv_prog_cc_c89" = x
3882 then :
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3884 printf "%s\n" "none needed" >&6; }
3885 else case e in #(
3886 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3887 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3888 CC="$CC $ac_cv_prog_cc_c89" ;;
3889 esac
3890 fi
3891 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3892 ac_prog_cc_stdc=c89 ;;
3893 esac
3894 fi
3895 fi
3896
3897 ac_ext=c
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902
3903
3904 ac_ext=c
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3910 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3911 if test ${am_cv_prog_cc_c_o+y}
3912 then :
3913 printf %s "(cached) " >&6
3914 else case e in #(
3915 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3917
3918 int
3919 main (void)
3920 {
3921
3922 ;
3923 return 0;
3924 }
3925 _ACEOF
3926 # Make sure it works both with $CC and with simple cc.
3927 # Following AC_PROG_CC_C_O, we do the test twice because some
3928 # compilers refuse to overwrite an existing .o file with -o,
3929 # though they will create one.
3930 am_cv_prog_cc_c_o=yes
3931 for am_i in 1 2; do
3932 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3933 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } \
3937 && test -f conftest2.$ac_objext; then
3938 : OK
3939 else
3940 am_cv_prog_cc_c_o=no
3941 break
3942 fi
3943 done
3944 rm -f core conftest*
3945 unset am_i ;;
3946 esac
3947 fi
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3949 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3950 if test "$am_cv_prog_cc_c_o" != yes; then
3951 # Losing compiler, so override with the script.
3952 # FIXME: It is wrong to rewrite CC.
3953 # But if we don't then we get into trouble of one sort or another.
3954 # A longer-term fix would be to have automake use am__CC in this case,
3955 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3956 CC="$am_aux_dir/compile $CC"
3957 fi
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964
3965
3966 ac_header= ac_cache=
3967 for ac_item in $ac_header_c_list
3968 do
3969 if test $ac_cache; then
3970 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3971 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3972 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3973 fi
3974 ac_header= ac_cache=
3975 elif test $ac_header; then
3976 ac_cache=$ac_item
3977 else
3978 ac_header=$ac_item
3979 fi
3980 done
3981
3982
3983
3984
3985
3986
3987
3988
3989 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3990 then :
3991
3992 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3993
3994 fi
3995
3996
3997
3998
3999
4000
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4002 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4003 if test ${ac_cv_safe_to_define___extensions__+y}
4004 then :
4005 printf %s "(cached) " >&6
4006 else case e in #(
4007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009
4010 # define __EXTENSIONS__ 1
4011 $ac_includes_default
4012 int
4013 main (void)
4014 {
4015
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"
4021 then :
4022 ac_cv_safe_to_define___extensions__=yes
4023 else case e in #(
4024 e) ac_cv_safe_to_define___extensions__=no ;;
4025 esac
4026 fi
4027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4028 esac
4029 fi
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4031 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4032
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4034 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4035 if test ${ac_cv_should_define__xopen_source+y}
4036 then :
4037 printf %s "(cached) " >&6
4038 else case e in #(
4039 e) ac_cv_should_define__xopen_source=no
4040 if test $ac_cv_header_wchar_h = yes
4041 then :
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044
4045 #include <wchar.h>
4046 mbstate_t x;
4047 int
4048 main (void)
4049 {
4050
4051 ;
4052 return 0;
4053 }
4054 _ACEOF
4055 if ac_fn_c_try_compile "$LINENO"
4056 then :
4057
4058 else case e in #(
4059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061
4062 #define _XOPEN_SOURCE 500
4063 #include <wchar.h>
4064 mbstate_t x;
4065 int
4066 main (void)
4067 {
4068
4069 ;
4070 return 0;
4071 }
4072 _ACEOF
4073 if ac_fn_c_try_compile "$LINENO"
4074 then :
4075 ac_cv_should_define__xopen_source=yes
4076 fi
4077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4078 esac
4079 fi
4080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4081 fi ;;
4082 esac
4083 fi
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4085 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4086
4087 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4088
4089 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4090
4091 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4092
4093 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4094
4095 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4096
4097 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4098
4099 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4100
4101 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4102
4103 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4104
4105 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4106
4107 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4108
4109 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4110
4111 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4112
4113 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4114
4115 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4116
4117 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4118
4119 if test $ac_cv_header_minix_config_h = yes
4120 then :
4121 MINIX=yes
4122 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4123
4124 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4125
4126 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4127
4128 else case e in #(
4129 e) MINIX= ;;
4130 esac
4131 fi
4132 if test $ac_cv_safe_to_define___extensions__ = yes
4133 then :
4134 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4135
4136 fi
4137 if test $ac_cv_should_define__xopen_source = yes
4138 then :
4139 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4140
4141 fi
4142
4143
4144 am__api_version='1.17'
4145
4146
4147 # Find a good install program. We prefer a C program (faster),
4148 # so one script is as good as another. But avoid the broken or
4149 # incompatible versions:
4150 # SysV /etc/install, /usr/sbin/install
4151 # SunOS /usr/etc/install
4152 # IRIX /sbin/install
4153 # AIX /bin/install
4154 # AmigaOS /C/install, which installs bootblocks on floppy discs
4155 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4156 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4157 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4158 # OS/2's system install, which has a completely different semantic
4159 # ./install, which can be erroneously created by make from ./install.sh.
4160 # Reject install programs that cannot install multiple files.
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4162 printf %s "checking for a BSD-compatible install... " >&6; }
4163 if test -z "$INSTALL"; then
4164 if test ${ac_cv_path_install+y}
4165 then :
4166 printf %s "(cached) " >&6
4167 else case e in #(
4168 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4170 do
4171 IFS=$as_save_IFS
4172 case $as_dir in #(((
4173 '') as_dir=./ ;;
4174 */) ;;
4175 *) as_dir=$as_dir/ ;;
4176 esac
4177 # Account for fact that we put trailing slashes in our PATH walk.
4178 case $as_dir in #((
4179 ./ | /[cC]/* | \
4180 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4181 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4182 /usr/ucb/* ) ;;
4183 *)
4184 # OSF1 and SCO ODT 3.0 have their own names for install.
4185 # Don't use installbsd from OSF since it installs stuff as root
4186 # by default.
4187 for ac_prog in ginstall scoinst install; do
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4190 if test $ac_prog = install &&
4191 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4192 # AIX install. It has an incompatible calling convention.
4193 :
4194 elif test $ac_prog = install &&
4195 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4196 # program-specific install script used by HP pwplus--don't use.
4197 :
4198 else
4199 rm -rf conftest.one conftest.two conftest.dir
4200 echo one > conftest.one
4201 echo two > conftest.two
4202 mkdir conftest.dir
4203 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4204 test -s conftest.one && test -s conftest.two &&
4205 test -s conftest.dir/conftest.one &&
4206 test -s conftest.dir/conftest.two
4207 then
4208 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4209 break 3
4210 fi
4211 fi
4212 fi
4213 done
4214 done
4215 ;;
4216 esac
4217
4218 done
4219 IFS=$as_save_IFS
4220
4221 rm -rf conftest.one conftest.two conftest.dir
4222 ;;
4223 esac
4224 fi
4225 if test ${ac_cv_path_install+y}; then
4226 INSTALL=$ac_cv_path_install
4227 else
4228 # As a last resort, use the slow shell script. Don't cache a
4229 # value for INSTALL within a source directory, because that will
4230 # break other packages using the cache if that directory is
4231 # removed, or if the value is a relative name.
4232 INSTALL=$ac_install_sh
4233 fi
4234 fi
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4236 printf "%s\n" "$INSTALL" >&6; }
4237
4238 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4239 # It thinks the first close brace ends the variable substitution.
4240 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4241
4242 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4243
4244 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4245
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4247 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4248 if test ${am_cv_sleep_fractional_seconds+y}
4249 then :
4250 printf %s "(cached) " >&6
4251 else case e in #(
4252 e) if sleep 0.001 2>/dev/null
4253 then :
4254 am_cv_sleep_fractional_seconds=yes
4255 else case e in #(
4256 e) am_cv_sleep_fractional_seconds=no ;;
4257 esac
4258 fi
4259 ;;
4260 esac
4261 fi
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4263 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4264
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4266 printf %s "checking filesystem timestamp resolution... " >&6; }
4267 if test ${am_cv_filesystem_timestamp_resolution+y}
4268 then :
4269 printf %s "(cached) " >&6
4270 else case e in #(
4271 e) # Default to the worst case.
4272 am_cv_filesystem_timestamp_resolution=2
4273
4274 # Only try to go finer than 1 sec if sleep can do it.
4275 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4276 # - 1 sec is not much of a win compared to 2 sec, and
4277 # - it takes 2 seconds to perform the test whether 1 sec works.
4278 #
4279 # Instead, just use the default 2s on platforms that have 1s resolution,
4280 # accept the extra 1s delay when using $sleep in the Automake tests, in
4281 # exchange for not incurring the 2s delay for running the test for all
4282 # packages.
4283 #
4284 am_try_resolutions=
4285 if test "$am_cv_sleep_fractional_seconds" = yes; then
4286 # Even a millisecond often causes a bunch of false positives,
4287 # so just try a hundredth of a second. The time saved between .001 and
4288 # .01 is not terribly consequential.
4289 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4290 fi
4291
4292 # In order to catch current-generation FAT out, we must *modify* files
4293 # that already exist; the *creation* timestamp is finer. Use names
4294 # that make ls -t sort them differently when they have equal
4295 # timestamps than when they have distinct timestamps, keeping
4296 # in mind that ls -t prints the *newest* file first.
4297 rm -f conftest.ts?
4298 : > conftest.ts1
4299 : > conftest.ts2
4300 : > conftest.ts3
4301
4302 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4303 # clobber the current shell's arguments. (Outer-level square brackets
4304 # are removed by m4; they're present so that m4 does not expand
4305 # <dollar><star>; be careful, easy to get confused.)
4306 if (
4307 set X `ls -t conftest.ts[12]` &&
4308 {
4309 test "$*" != "X conftest.ts1 conftest.ts2" ||
4310 test "$*" != "X conftest.ts2 conftest.ts1";
4311 }
4312 ); then :; else
4313 # If neither matched, then we have a broken ls. This can happen
4314 # if, for instance, CONFIG_SHELL is bash and it inherits a
4315 # broken ls alias from the environment. This has actually
4316 # happened. Such a system could not be considered "sane".
4317 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4318 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4319 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4320 as_fn_error $? "ls -t produces unexpected output.
4321 Make sure there is not a broken ls alias in your environment.
4322 See 'config.log' for more details" "$LINENO" 5; }
4323 fi
4324
4325 for am_try_res in $am_try_resolutions; do
4326 # Any one fine-grained sleep might happen to cross the boundary
4327 # between two values of a coarser actual resolution, but if we do
4328 # two fine-grained sleeps in a row, at least one of them will fall
4329 # entirely within a coarse interval.
4330 echo alpha > conftest.ts1
4331 sleep $am_try_res
4332 echo beta > conftest.ts2
4333 sleep $am_try_res
4334 echo gamma > conftest.ts3
4335
4336 # We assume that 'ls -t' will make use of high-resolution
4337 # timestamps if the operating system supports them at all.
4338 if (set X `ls -t conftest.ts?` &&
4339 test "$2" = conftest.ts3 &&
4340 test "$3" = conftest.ts2 &&
4341 test "$4" = conftest.ts1); then
4342 #
4343 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4344 # because we don't need to test make.
4345 make_ok=true
4346 if test $am_try_res != 1; then
4347 # But if we've succeeded so far with a subsecond resolution, we
4348 # have one more thing to check: make. It can happen that
4349 # everything else supports the subsecond mtimes, but make doesn't;
4350 # notably on macOS, which ships make 3.81 from 2006 (the last one
4351 # released under GPLv2). https://bugs.gnu.org/68808
4352 #
4353 # We test $MAKE if it is defined in the environment, else "make".
4354 # It might get overridden later, but our hope is that in practice
4355 # it does not matter: it is the system "make" which is (by far)
4356 # the most likely to be broken, whereas if the user overrides it,
4357 # probably they did so with a better, or at least not worse, make.
4358 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4359 #
4360 # Create a Makefile (real tab character here):
4361 rm -f conftest.mk
4362 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4363 echo ' touch conftest.ts2' >>conftest.mk
4364 #
4365 # Now, running
4366 # touch conftest.ts1; touch conftest.ts2; make
4367 # should touch ts1 because ts2 is newer. This could happen by luck,
4368 # but most often, it will fail if make's support is insufficient. So
4369 # test for several consecutive successes.
4370 #
4371 # (We reuse conftest.ts[12] because we still want to modify existing
4372 # files, not create new ones, per above.)
4373 n=0
4374 make=${MAKE-make}
4375 until test $n -eq 3; do
4376 echo one > conftest.ts1
4377 sleep $am_try_res
4378 echo two > conftest.ts2 # ts2 should now be newer than ts1
4379 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4380 make_ok=false
4381 break # out of $n loop
4382 fi
4383 n=`expr $n + 1`
4384 done
4385 fi
4386 #
4387 if $make_ok; then
4388 # Everything we know to check worked out, so call this resolution good.
4389 am_cv_filesystem_timestamp_resolution=$am_try_res
4390 break # out of $am_try_res loop
4391 fi
4392 # Otherwise, we'll go on to check the next resolution.
4393 fi
4394 done
4395 rm -f conftest.ts?
4396 # (end _am_filesystem_timestamp_resolution)
4397 ;;
4398 esac
4399 fi
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4401 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4402
4403 # This check should not be cached, as it may vary across builds of
4404 # different projects.
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4406 printf %s "checking whether build environment is sane... " >&6; }
4407 # Reject unsafe characters in $srcdir or the absolute working directory
4408 # name. Accept space and tab only in the latter.
4409 am_lf='
4410 '
4411 case `pwd` in
4412 *[\\\"\#\$\&\'\`$am_lf]*)
4413 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4414 esac
4415 case $srcdir in
4416 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4417 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4418 esac
4419
4420 # Do 'set' in a subshell so we don't clobber the current shell's
4421 # arguments. Must try -L first in case configure is actually a
4422 # symlink; some systems play weird games with the mod time of symlinks
4423 # (eg FreeBSD returns the mod time of the symlink's containing
4424 # directory).
4425 am_build_env_is_sane=no
4426 am_has_slept=no
4427 rm -f conftest.file
4428 for am_try in 1 2; do
4429 echo "timestamp, slept: $am_has_slept" > conftest.file
4430 if (
4431 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4432 if test "$*" = "X"; then
4433 # -L didn't work.
4434 set X `ls -t "$srcdir/configure" conftest.file`
4435 fi
4436 test "$2" = conftest.file
4437 ); then
4438 am_build_env_is_sane=yes
4439 break
4440 fi
4441 # Just in case.
4442 sleep "$am_cv_filesystem_timestamp_resolution"
4443 am_has_slept=yes
4444 done
4445
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4447 printf "%s\n" "$am_build_env_is_sane" >&6; }
4448 if test "$am_build_env_is_sane" = no; then
4449 as_fn_error $? "newly created file is older than distributed files!
4450 Check your system clock" "$LINENO" 5
4451 fi
4452
4453 # If we didn't sleep, we still need to ensure time stamps of config.status and
4454 # generated files are strictly newer.
4455 am_sleep_pid=
4456 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4457 then :
4458
4459 else case e in #(
4460 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4461 am_sleep_pid=$!
4462 ;;
4463 esac
4464 fi
4465
4466 rm -f conftest.file
4467
4468 test "$program_prefix" != NONE &&
4469 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4470 # Use a double $ so make ignores it.
4471 test "$program_suffix" != NONE &&
4472 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4473 # Double any \ or $.
4474 # By default was 's,x,x', remove it if useless.
4475 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4476 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4477
4478
4479 if test x"${MISSING+set}" != xset; then
4480 MISSING="\${SHELL} '$am_aux_dir/missing'"
4481 fi
4482 # Use eval to expand $SHELL
4483 if eval "$MISSING --is-lightweight"; then
4484 am_missing_run="$MISSING "
4485 else
4486 am_missing_run=
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4488 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4489 fi
4490
4491 if test x"${install_sh+set}" != xset; then
4492 case $am_aux_dir in
4493 *\ * | *\ *)
4494 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4495 *)
4496 install_sh="\${SHELL} $am_aux_dir/install-sh"
4497 esac
4498 fi
4499
4500 # Installed binaries are usually stripped using 'strip' when the user
4501 # run "make install-strip". However 'strip' might not be the right
4502 # tool to use in cross-compilation environments, therefore Automake
4503 # will honor the 'STRIP' environment variable to overrule this program.
4504 if test "$cross_compiling" != no; then
4505 if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4507 set dummy ${ac_tool_prefix}strip; ac_word=$2
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 printf %s "checking for $ac_word... " >&6; }
4510 if test ${ac_cv_prog_STRIP+y}
4511 then :
4512 printf %s "(cached) " >&6
4513 else case e in #(
4514 e) if test -n "$STRIP"; then
4515 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520 IFS=$as_save_IFS
4521 case $as_dir in #(((
4522 '') as_dir=./ ;;
4523 */) ;;
4524 *) as_dir=$as_dir/ ;;
4525 esac
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536 fi ;;
4537 esac
4538 fi
4539 STRIP=$ac_cv_prog_STRIP
4540 if test -n "$STRIP"; then
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4542 printf "%s\n" "$STRIP" >&6; }
4543 else
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 printf "%s\n" "no" >&6; }
4546 fi
4547
4548
4549 fi
4550 if test -z "$ac_cv_prog_STRIP"; then
4551 ac_ct_STRIP=$STRIP
4552 # Extract the first word of "strip", so it can be a program name with args.
4553 set dummy strip; ac_word=$2
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555 printf %s "checking for $ac_word... " >&6; }
4556 if test ${ac_cv_prog_ac_ct_STRIP+y}
4557 then :
4558 printf %s "(cached) " >&6
4559 else case e in #(
4560 e) if test -n "$ac_ct_STRIP"; then
4561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566 IFS=$as_save_IFS
4567 case $as_dir in #(((
4568 '') as_dir=./ ;;
4569 */) ;;
4570 *) as_dir=$as_dir/ ;;
4571 esac
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_ac_ct_STRIP="strip"
4575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4576 break 2
4577 fi
4578 done
4579 done
4580 IFS=$as_save_IFS
4581
4582 fi ;;
4583 esac
4584 fi
4585 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4586 if test -n "$ac_ct_STRIP"; then
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4588 printf "%s\n" "$ac_ct_STRIP" >&6; }
4589 else
4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 printf "%s\n" "no" >&6; }
4592 fi
4593
4594 if test "x$ac_ct_STRIP" = x; then
4595 STRIP=":"
4596 else
4597 case $cross_compiling:$ac_tool_warned in
4598 yes:)
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601 ac_tool_warned=yes ;;
4602 esac
4603 STRIP=$ac_ct_STRIP
4604 fi
4605 else
4606 STRIP="$ac_cv_prog_STRIP"
4607 fi
4608
4609 fi
4610 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4611
4612
4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4614 printf %s "checking for a race-free mkdir -p... " >&6; }
4615 if test -z "$MKDIR_P"; then
4616 if test ${ac_cv_path_mkdir+y}
4617 then :
4618 printf %s "(cached) " >&6
4619 else case e in #(
4620 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4622 do
4623 IFS=$as_save_IFS
4624 case $as_dir in #(((
4625 '') as_dir=./ ;;
4626 */) ;;
4627 *) as_dir=$as_dir/ ;;
4628 esac
4629 for ac_prog in mkdir gmkdir; do
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4632 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4633 'mkdir ('*'coreutils) '* | \
4634 *'BusyBox '* | \
4635 'mkdir (fileutils) '4.1*)
4636 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4637 break 3;;
4638 esac
4639 done
4640 done
4641 done
4642 IFS=$as_save_IFS
4643 ;;
4644 esac
4645 fi
4646
4647 test -d ./--version && rmdir ./--version
4648 if test ${ac_cv_path_mkdir+y}; then
4649 MKDIR_P="$ac_cv_path_mkdir -p"
4650 else
4651 # As a last resort, use plain mkdir -p,
4652 # in the hope it doesn't have the bugs of ancient mkdir.
4653 MKDIR_P='mkdir -p'
4654 fi
4655 fi
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4657 printf "%s\n" "$MKDIR_P" >&6; }
4658
4659 for ac_prog in gawk mawk nawk awk
4660 do
4661 # Extract the first word of "$ac_prog", so it can be a program name with args.
4662 set dummy $ac_prog; ac_word=$2
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 printf %s "checking for $ac_word... " >&6; }
4665 if test ${ac_cv_prog_AWK+y}
4666 then :
4667 printf %s "(cached) " >&6
4668 else case e in #(
4669 e) if test -n "$AWK"; then
4670 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675 IFS=$as_save_IFS
4676 case $as_dir in #(((
4677 '') as_dir=./ ;;
4678 */) ;;
4679 *) as_dir=$as_dir/ ;;
4680 esac
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4683 ac_cv_prog_AWK="$ac_prog"
4684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4685 break 2
4686 fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691 fi ;;
4692 esac
4693 fi
4694 AWK=$ac_cv_prog_AWK
4695 if test -n "$AWK"; then
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4697 printf "%s\n" "$AWK" >&6; }
4698 else
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 printf "%s\n" "no" >&6; }
4701 fi
4702
4703
4704 test -n "$AWK" && break
4705 done
4706
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4708 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4709 set x ${MAKE-make}
4710 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4711 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4712 then :
4713 printf %s "(cached) " >&6
4714 else case e in #(
4715 e) cat >conftest.make <<\_ACEOF
4716 SHELL = /bin/sh
4717 all:
4718 @echo '@@@%%%=$(MAKE)=@@@%%%'
4719 _ACEOF
4720 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4721 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4722 *@@@%%%=?*=@@@%%%*)
4723 eval ac_cv_prog_make_${ac_make}_set=yes;;
4724 *)
4725 eval ac_cv_prog_make_${ac_make}_set=no;;
4726 esac
4727 rm -f conftest.make ;;
4728 esac
4729 fi
4730 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4732 printf "%s\n" "yes" >&6; }
4733 SET_MAKE=
4734 else
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 printf "%s\n" "no" >&6; }
4737 SET_MAKE="MAKE=${MAKE-make}"
4738 fi
4739
4740 rm -rf .tst 2>/dev/null
4741 mkdir .tst 2>/dev/null
4742 if test -d .tst; then
4743 am__leading_dot=.
4744 else
4745 am__leading_dot=_
4746 fi
4747 rmdir .tst 2>/dev/null
4748
4749 DEPDIR="${am__leading_dot}deps"
4750
4751 ac_config_commands="$ac_config_commands depfiles"
4752
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4754 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4755 cat > confinc.mk << 'END'
4756 am__doit:
4757 @echo this is the am__doit target >confinc.out
4758 .PHONY: am__doit
4759 END
4760 am__include="#"
4761 am__quote=
4762 # BSD make does it like this.
4763 echo '.include "confinc.mk" # ignored' > confmf.BSD
4764 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4765 echo 'include confinc.mk # ignored' > confmf.GNU
4766 _am_result=no
4767 for s in GNU BSD; do
4768 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4769 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }
4773 case $?:`cat confinc.out 2>/dev/null` in #(
4774 '0:this is the am__doit target') :
4775 case $s in #(
4776 BSD) :
4777 am__include='.include' am__quote='"' ;; #(
4778 *) :
4779 am__include='include' am__quote='' ;;
4780 esac ;; #(
4781 *) :
4782 ;;
4783 esac
4784 if test "$am__include" != "#"; then
4785 _am_result="yes ($s style)"
4786 break
4787 fi
4788 done
4789 rm -f confinc.* confmf.*
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4791 printf "%s\n" "${_am_result}" >&6; }
4792
4793 # Check whether --enable-dependency-tracking was given.
4794 if test ${enable_dependency_tracking+y}
4795 then :
4796 enableval=$enable_dependency_tracking;
4797 fi
4798
4799 if test "x$enable_dependency_tracking" != xno; then
4800 am_depcomp="$ac_aux_dir/depcomp"
4801 AMDEPBACKSLASH='\'
4802 am__nodep='_no'
4803 fi
4804 if test "x$enable_dependency_tracking" != xno; then
4805 AMDEP_TRUE=
4806 AMDEP_FALSE='#'
4807 else
4808 AMDEP_TRUE='#'
4809 AMDEP_FALSE=
4810 fi
4811
4812
4813 AM_DEFAULT_VERBOSITY=1
4814 # Check whether --enable-silent-rules was given.
4815 if test ${enable_silent_rules+y}
4816 then :
4817 enableval=$enable_silent_rules;
4818 fi
4819
4820 am_make=${MAKE-make}
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4822 printf %s "checking whether $am_make supports nested variables... " >&6; }
4823 if test ${am_cv_make_support_nested_variables+y}
4824 then :
4825 printf %s "(cached) " >&6
4826 else case e in #(
4827 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4828 BAR0=false
4829 BAR1=true
4830 V=1
4831 am__doit:
4832 @$(TRUE)
4833 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4834 am_cv_make_support_nested_variables=yes
4835 else
4836 am_cv_make_support_nested_variables=no
4837 fi ;;
4838 esac
4839 fi
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4841 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4842 AM_BACKSLASH='\'
4843
4844 am__rm_f_notfound=
4845 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4846 then :
4847
4848 else case e in #(
4849 e) am__rm_f_notfound='""' ;;
4850 esac
4851 fi
4852
4853
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4855 printf %s "checking xargs -n works... " >&6; }
4856 if test ${am_cv_xargs_n_works+y}
4857 then :
4858 printf %s "(cached) " >&6
4859 else case e in #(
4860 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4861 3"
4862 then :
4863 am_cv_xargs_n_works=yes
4864 else case e in #(
4865 e) am_cv_xargs_n_works=no ;;
4866 esac
4867 fi ;;
4868 esac
4869 fi
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4871 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4872 if test "$am_cv_xargs_n_works" = yes
4873 then :
4874 am__xargs_n='xargs -n'
4875 else case e in #(
4876 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4877 ;;
4878 esac
4879 fi
4880
4881 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4882 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4883 # is not polluted with repeated "-I."
4884 am__isrc=' -I$(srcdir)'
4885 # test to see if srcdir already configured
4886 if test -f $srcdir/config.status; then
4887 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4888 fi
4889 fi
4890
4891 # test whether we have cygpath
4892 if test -z "$CYGPATH_W"; then
4893 if (cygpath --version) >/dev/null 2>/dev/null; then
4894 CYGPATH_W='cygpath -w'
4895 else
4896 CYGPATH_W=echo
4897 fi
4898 fi
4899
4900
4901 # Define the identity of the package.
4902 PACKAGE='stunnel'
4903 VERSION='5.78'
4904
4905
4906 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4907
4908
4909 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4910
4911 # Some tools Automake needs.
4912
4913 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4914
4915
4916 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4917
4918
4919 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4920
4921
4922 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4923
4924
4925 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4926
4927 # For better backward compatibility. To be removed once Automake 1.9.x
4928 # dies out for good. For more background, see:
4929 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4930 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4931 mkdir_p='$(MKDIR_P)'
4932
4933 # We need awk for the "check" target (and possibly the TAP driver). The
4934 # system "awk" is bad on some platforms.
4935 # Always define AMTAR for backward compatibility. Yes, it's still used
4936 # in the wild :-( We should find a proper way to deprecate it ...
4937 AMTAR='$${TAR-tar}'
4938
4939
4940 # We'll loop over all known methods to create a tar archive until one works.
4941 _am_tools='gnutar pax cpio none'
4942
4943 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4944
4945
4946
4947
4948
4949 depcc="$CC" am_compiler_list=
4950
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4952 printf %s "checking dependency style of $depcc... " >&6; }
4953 if test ${am_cv_CC_dependencies_compiler_type+y}
4954 then :
4955 printf %s "(cached) " >&6
4956 else case e in #(
4957 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4958 # We make a subdir and do the tests there. Otherwise we can end up
4959 # making bogus files that we don't know about and never remove. For
4960 # instance it was reported that on HP-UX the gcc test will end up
4961 # making a dummy file named 'D' -- because '-MD' means "put the output
4962 # in D".
4963 rm -rf conftest.dir
4964 mkdir conftest.dir
4965 # Copy depcomp to subdir because otherwise we won't find it if we're
4966 # using a relative directory.
4967 cp "$am_depcomp" conftest.dir
4968 cd conftest.dir
4969 # We will build objects and dependencies in a subdirectory because
4970 # it helps to detect inapplicable dependency modes. For instance
4971 # both Tru64's cc and ICC support -MD to output dependencies as a
4972 # side effect of compilation, but ICC will put the dependencies in
4973 # the current directory while Tru64 will put them in the object
4974 # directory.
4975 mkdir sub
4976
4977 am_cv_CC_dependencies_compiler_type=none
4978 if test "$am_compiler_list" = ""; then
4979 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4980 fi
4981 am__universal=false
4982 case " $depcc " in #(
4983 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4984 esac
4985
4986 for depmode in $am_compiler_list; do
4987 # Setup a source with many dependencies, because some compilers
4988 # like to wrap large dependency lists on column 80 (with \), and
4989 # we should not choose a depcomp mode which is confused by this.
4990 #
4991 # We need to recreate these files for each test, as the compiler may
4992 # overwrite some of them when testing with obscure command lines.
4993 # This happens at least with the AIX C compiler.
4994 : > sub/conftest.c
4995 for i in 1 2 3 4 5 6; do
4996 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4997 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4998 # Solaris 10 /bin/sh.
4999 echo '/* dummy */' > sub/conftst$i.h
5000 done
5001 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5002
5003 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5004 # mode. It turns out that the SunPro C++ compiler does not properly
5005 # handle '-M -o', and we need to detect this. Also, some Intel
5006 # versions had trouble with output in subdirs.
5007 am__obj=sub/conftest.${OBJEXT-o}
5008 am__minus_obj="-o $am__obj"
5009 case $depmode in
5010 gcc)
5011 # This depmode causes a compiler race in universal mode.
5012 test "$am__universal" = false || continue
5013 ;;
5014 nosideeffect)
5015 # After this tag, mechanisms are not by side-effect, so they'll
5016 # only be used when explicitly requested.
5017 if test "x$enable_dependency_tracking" = xyes; then
5018 continue
5019 else
5020 break
5021 fi
5022 ;;
5023 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5024 # This compiler won't grok '-c -o', but also, the minuso test has
5025 # not run yet. These depmodes are late enough in the game, and
5026 # so weak that their functioning should not be impacted.
5027 am__obj=conftest.${OBJEXT-o}
5028 am__minus_obj=
5029 ;;
5030 none) break ;;
5031 esac
5032 if depmode=$depmode \
5033 source=sub/conftest.c object=$am__obj \
5034 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5035 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5036 >/dev/null 2>conftest.err &&
5037 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5038 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5039 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5040 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5041 # icc doesn't choke on unknown options, it will just issue warnings
5042 # or remarks (even with -Werror). So we grep stderr for any message
5043 # that says an option was ignored or not supported.
5044 # When given -MP, icc 7.0 and 7.1 complain thus:
5045 # icc: Command line warning: ignoring option '-M'; no argument required
5046 # The diagnosis changed in icc 8.0:
5047 # icc: Command line remark: option '-MP' not supported
5048 if (grep 'ignoring option' conftest.err ||
5049 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5050 am_cv_CC_dependencies_compiler_type=$depmode
5051 break
5052 fi
5053 fi
5054 done
5055
5056 cd ..
5057 rm -rf conftest.dir
5058 else
5059 am_cv_CC_dependencies_compiler_type=none
5060 fi
5061 ;;
5062 esac
5063 fi
5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5065 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5066 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5067
5068 if
5069 test "x$enable_dependency_tracking" != xno \
5070 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5071 am__fastdepCC_TRUE=
5072 am__fastdepCC_FALSE='#'
5073 else
5074 am__fastdepCC_TRUE='#'
5075 am__fastdepCC_FALSE=
5076 fi
5077
5078
5079 # Variables for tags utilities; see am/tags.am
5080 if test -z "$CTAGS"; then
5081 CTAGS=ctags
5082 fi
5083
5084 if test -z "$ETAGS"; then
5085 ETAGS=etags
5086 fi
5087
5088 if test -z "$CSCOPE"; then
5089 CSCOPE=cscope
5090 fi
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101 # Make sure we can run config.sub.
5102 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5103 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5104
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5106 printf %s "checking build system type... " >&6; }
5107 if test ${ac_cv_build+y}
5108 then :
5109 printf %s "(cached) " >&6
5110 else case e in #(
5111 e) ac_build_alias=$build_alias
5112 test "x$ac_build_alias" = x &&
5113 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5114 test "x$ac_build_alias" = x &&
5115 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5116 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5117 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5118 ;;
5119 esac
5120 fi
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5122 printf "%s\n" "$ac_cv_build" >&6; }
5123 case $ac_cv_build in
5124 *-*-*) ;;
5125 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5126 esac
5127 build=$ac_cv_build
5128 ac_save_IFS=$IFS; IFS='-'
5129 set x $ac_cv_build
5130 shift
5131 build_cpu=$1
5132 build_vendor=$2
5133 shift; shift
5134 # Remember, the first character of IFS is used to create $*,
5135 # except with old shells:
5136 build_os=$*
5137 IFS=$ac_save_IFS
5138 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5139
5140
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5142 printf %s "checking host system type... " >&6; }
5143 if test ${ac_cv_host+y}
5144 then :
5145 printf %s "(cached) " >&6
5146 else case e in #(
5147 e) if test "x$host_alias" = x; then
5148 ac_cv_host=$ac_cv_build
5149 else
5150 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5151 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5152 fi
5153 ;;
5154 esac
5155 fi
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5157 printf "%s\n" "$ac_cv_host" >&6; }
5158 case $ac_cv_host in
5159 *-*-*) ;;
5160 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5161 esac
5162 host=$ac_cv_host
5163 ac_save_IFS=$IFS; IFS='-'
5164 set x $ac_cv_host
5165 shift
5166 host_cpu=$1
5167 host_vendor=$2
5168 shift; shift
5169 # Remember, the first character of IFS is used to create $*,
5170 # except with old shells:
5171 host_os=$*
5172 IFS=$ac_save_IFS
5173 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5174
5175
5176
5177
5178 printf "%s\n" "#define HOST \"${host}\"" >>confdefs.h
5179
5180
5181 cat >>confdefs.h <<_ACEOF
5182 #define `echo CPU_${host_cpu} | tr abcdefghijklmnopqrstuvwxyz.- ABCDEFGHIJKLMNOPQRSTUVWXYZ__ | tr -dc ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_` 1
5183 _ACEOF
5184
5185 cat >>confdefs.h <<_ACEOF
5186 #define `echo VENDOR_${host_vendor} | tr abcdefghijklmnopqrstuvwxyz.- ABCDEFGHIJKLMNOPQRSTUVWXYZ__ | tr -dc ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_` 1
5187 _ACEOF
5188
5189 cat >>confdefs.h <<_ACEOF
5190 #define `echo OS_${host_os} | tr abcdefghijklmnopqrstuvwxyz.- ABCDEFGHIJKLMNOPQRSTUVWXYZ__ | tr -dc ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_` 1
5191 _ACEOF
5192
5193
5194 ac_ext=c
5195 ac_cpp='$CPP $CPPFLAGS'
5196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199 if test -n "$ac_tool_prefix"; then
5200 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5201 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 printf %s "checking for $ac_word... " >&6; }
5204 if test ${ac_cv_prog_CC+y}
5205 then :
5206 printf %s "(cached) " >&6
5207 else case e in #(
5208 e) if test -n "$CC"; then
5209 ac_cv_prog_CC="$CC" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214 IFS=$as_save_IFS
5215 case $as_dir in #(((
5216 '') as_dir=./ ;;
5217 */) ;;
5218 *) as_dir=$as_dir/ ;;
5219 esac
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226 done
5227 done
5228 IFS=$as_save_IFS
5229
5230 fi ;;
5231 esac
5232 fi
5233 CC=$ac_cv_prog_CC
5234 if test -n "$CC"; then
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5236 printf "%s\n" "$CC" >&6; }
5237 else
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 printf "%s\n" "no" >&6; }
5240 fi
5241
5242
5243 fi
5244 if test -z "$ac_cv_prog_CC"; then
5245 ac_ct_CC=$CC
5246 # Extract the first word of "gcc", so it can be a program name with args.
5247 set dummy gcc; ac_word=$2
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 printf %s "checking for $ac_word... " >&6; }
5250 if test ${ac_cv_prog_ac_ct_CC+y}
5251 then :
5252 printf %s "(cached) " >&6
5253 else case e in #(
5254 e) if test -n "$ac_ct_CC"; then
5255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260 IFS=$as_save_IFS
5261 case $as_dir in #(((
5262 '') as_dir=./ ;;
5263 */) ;;
5264 *) as_dir=$as_dir/ ;;
5265 esac
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_ac_ct_CC="gcc"
5269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272 done
5273 done
5274 IFS=$as_save_IFS
5275
5276 fi ;;
5277 esac
5278 fi
5279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5280 if test -n "$ac_ct_CC"; then
5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5282 printf "%s\n" "$ac_ct_CC" >&6; }
5283 else
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 printf "%s\n" "no" >&6; }
5286 fi
5287
5288 if test "x$ac_ct_CC" = x; then
5289 CC=""
5290 else
5291 case $cross_compiling:$ac_tool_warned in
5292 yes:)
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5294 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5295 ac_tool_warned=yes ;;
5296 esac
5297 CC=$ac_ct_CC
5298 fi
5299 else
5300 CC="$ac_cv_prog_CC"
5301 fi
5302
5303 if test -z "$CC"; then
5304 if test -n "$ac_tool_prefix"; then
5305 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5306 set dummy ${ac_tool_prefix}cc; ac_word=$2
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 printf %s "checking for $ac_word... " >&6; }
5309 if test ${ac_cv_prog_CC+y}
5310 then :
5311 printf %s "(cached) " >&6
5312 else case e in #(
5313 e) if test -n "$CC"; then
5314 ac_cv_prog_CC="$CC" # Let the user override the test.
5315 else
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5318 do
5319 IFS=$as_save_IFS
5320 case $as_dir in #(((
5321 '') as_dir=./ ;;
5322 */) ;;
5323 *) as_dir=$as_dir/ ;;
5324 esac
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_CC="${ac_tool_prefix}cc"
5328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331 done
5332 done
5333 IFS=$as_save_IFS
5334
5335 fi ;;
5336 esac
5337 fi
5338 CC=$ac_cv_prog_CC
5339 if test -n "$CC"; then
5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5341 printf "%s\n" "$CC" >&6; }
5342 else
5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 printf "%s\n" "no" >&6; }
5345 fi
5346
5347
5348 fi
5349 fi
5350 if test -z "$CC"; then
5351 # Extract the first word of "cc", so it can be a program name with args.
5352 set dummy cc; ac_word=$2
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 printf %s "checking for $ac_word... " >&6; }
5355 if test ${ac_cv_prog_CC+y}
5356 then :
5357 printf %s "(cached) " >&6
5358 else case e in #(
5359 e) if test -n "$CC"; then
5360 ac_cv_prog_CC="$CC" # Let the user override the test.
5361 else
5362 ac_prog_rejected=no
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366 IFS=$as_save_IFS
5367 case $as_dir in #(((
5368 '') as_dir=./ ;;
5369 */) ;;
5370 *) as_dir=$as_dir/ ;;
5371 esac
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5374 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5375 ac_prog_rejected=yes
5376 continue
5377 fi
5378 ac_cv_prog_CC="cc"
5379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382 done
5383 done
5384 IFS=$as_save_IFS
5385
5386 if test $ac_prog_rejected = yes; then
5387 # We found a bogon in the path, so make sure we never use it.
5388 set dummy $ac_cv_prog_CC
5389 shift
5390 if test $# != 0; then
5391 # We chose a different compiler from the bogus one.
5392 # However, it has the same basename, so the bogon will be chosen
5393 # first if we set CC to just the basename; use the full file name.
5394 shift
5395 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5396 fi
5397 fi
5398 fi ;;
5399 esac
5400 fi
5401 CC=$ac_cv_prog_CC
5402 if test -n "$CC"; then
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5404 printf "%s\n" "$CC" >&6; }
5405 else
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 printf "%s\n" "no" >&6; }
5408 fi
5409
5410
5411 fi
5412 if test -z "$CC"; then
5413 if test -n "$ac_tool_prefix"; then
5414 for ac_prog in cl.exe
5415 do
5416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 printf %s "checking for $ac_word... " >&6; }
5420 if test ${ac_cv_prog_CC+y}
5421 then :
5422 printf %s "(cached) " >&6
5423 else case e in #(
5424 e) if test -n "$CC"; then
5425 ac_cv_prog_CC="$CC" # Let the user override the test.
5426 else
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430 IFS=$as_save_IFS
5431 case $as_dir in #(((
5432 '') as_dir=./ ;;
5433 */) ;;
5434 *) as_dir=$as_dir/ ;;
5435 esac
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442 done
5443 done
5444 IFS=$as_save_IFS
5445
5446 fi ;;
5447 esac
5448 fi
5449 CC=$ac_cv_prog_CC
5450 if test -n "$CC"; then
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5452 printf "%s\n" "$CC" >&6; }
5453 else
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 printf "%s\n" "no" >&6; }
5456 fi
5457
5458
5459 test -n "$CC" && break
5460 done
5461 fi
5462 if test -z "$CC"; then
5463 ac_ct_CC=$CC
5464 for ac_prog in cl.exe
5465 do
5466 # Extract the first word of "$ac_prog", so it can be a program name with args.
5467 set dummy $ac_prog; ac_word=$2
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 printf %s "checking for $ac_word... " >&6; }
5470 if test ${ac_cv_prog_ac_ct_CC+y}
5471 then :
5472 printf %s "(cached) " >&6
5473 else case e in #(
5474 e) if test -n "$ac_ct_CC"; then
5475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5476 else
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5479 do
5480 IFS=$as_save_IFS
5481 case $as_dir in #(((
5482 '') as_dir=./ ;;
5483 */) ;;
5484 *) as_dir=$as_dir/ ;;
5485 esac
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_ac_ct_CC="$ac_prog"
5489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5490 break 2
5491 fi
5492 done
5493 done
5494 IFS=$as_save_IFS
5495
5496 fi ;;
5497 esac
5498 fi
5499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5500 if test -n "$ac_ct_CC"; then
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5502 printf "%s\n" "$ac_ct_CC" >&6; }
5503 else
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 printf "%s\n" "no" >&6; }
5506 fi
5507
5508
5509 test -n "$ac_ct_CC" && break
5510 done
5511
5512 if test "x$ac_ct_CC" = x; then
5513 CC=""
5514 else
5515 case $cross_compiling:$ac_tool_warned in
5516 yes:)
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5518 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5519 ac_tool_warned=yes ;;
5520 esac
5521 CC=$ac_ct_CC
5522 fi
5523 fi
5524
5525 fi
5526 if test -z "$CC"; then
5527 if test -n "$ac_tool_prefix"; then
5528 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5529 set dummy ${ac_tool_prefix}clang; ac_word=$2
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 printf %s "checking for $ac_word... " >&6; }
5532 if test ${ac_cv_prog_CC+y}
5533 then :
5534 printf %s "(cached) " >&6
5535 else case e in #(
5536 e) if test -n "$CC"; then
5537 ac_cv_prog_CC="$CC" # Let the user override the test.
5538 else
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5541 do
5542 IFS=$as_save_IFS
5543 case $as_dir in #(((
5544 '') as_dir=./ ;;
5545 */) ;;
5546 *) as_dir=$as_dir/ ;;
5547 esac
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_CC="${ac_tool_prefix}clang"
5551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554 done
5555 done
5556 IFS=$as_save_IFS
5557
5558 fi ;;
5559 esac
5560 fi
5561 CC=$ac_cv_prog_CC
5562 if test -n "$CC"; then
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5564 printf "%s\n" "$CC" >&6; }
5565 else
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 printf "%s\n" "no" >&6; }
5568 fi
5569
5570
5571 fi
5572 if test -z "$ac_cv_prog_CC"; then
5573 ac_ct_CC=$CC
5574 # Extract the first word of "clang", so it can be a program name with args.
5575 set dummy clang; ac_word=$2
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 printf %s "checking for $ac_word... " >&6; }
5578 if test ${ac_cv_prog_ac_ct_CC+y}
5579 then :
5580 printf %s "(cached) " >&6
5581 else case e in #(
5582 e) if test -n "$ac_ct_CC"; then
5583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588 IFS=$as_save_IFS
5589 case $as_dir in #(((
5590 '') as_dir=./ ;;
5591 */) ;;
5592 *) as_dir=$as_dir/ ;;
5593 esac
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5596 ac_cv_prog_ac_ct_CC="clang"
5597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5598 break 2
5599 fi
5600 done
5601 done
5602 IFS=$as_save_IFS
5603
5604 fi ;;
5605 esac
5606 fi
5607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5608 if test -n "$ac_ct_CC"; then
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5610 printf "%s\n" "$ac_ct_CC" >&6; }
5611 else
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 printf "%s\n" "no" >&6; }
5614 fi
5615
5616 if test "x$ac_ct_CC" = x; then
5617 CC=""
5618 else
5619 case $cross_compiling:$ac_tool_warned in
5620 yes:)
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5622 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5623 ac_tool_warned=yes ;;
5624 esac
5625 CC=$ac_ct_CC
5626 fi
5627 else
5628 CC="$ac_cv_prog_CC"
5629 fi
5630
5631 fi
5632
5633
5634 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5635 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5636 as_fn_error $? "no acceptable C compiler found in \$PATH
5637 See 'config.log' for more details" "$LINENO" 5; }
5638
5639 # Provide some information about the compiler.
5640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5641 set X $ac_compile
5642 ac_compiler=$2
5643 for ac_option in --version -v -V -qversion -version; do
5644 { { ac_try="$ac_compiler $ac_option >&5"
5645 case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650 printf "%s\n" "$ac_try_echo"; } >&5
5651 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5652 ac_status=$?
5653 if test -s conftest.err; then
5654 sed '10a\
5655 ... rest of stderr output deleted ...
5656 10q' conftest.err >conftest.er1
5657 cat conftest.er1 >&5
5658 fi
5659 rm -f conftest.er1 conftest.err
5660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661 test $ac_status = 0; }
5662 done
5663
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5665 printf %s "checking whether the compiler supports GNU C... " >&6; }
5666 if test ${ac_cv_c_compiler_gnu+y}
5667 then :
5668 printf %s "(cached) " >&6
5669 else case e in #(
5670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672
5673 int
5674 main (void)
5675 {
5676 #ifndef __GNUC__
5677 choke me
5678 #endif
5679
5680 ;
5681 return 0;
5682 }
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"
5685 then :
5686 ac_compiler_gnu=yes
5687 else case e in #(
5688 e) ac_compiler_gnu=no ;;
5689 esac
5690 fi
5691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5692 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5693 ;;
5694 esac
5695 fi
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5697 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699
5700 if test $ac_compiler_gnu = yes; then
5701 GCC=yes
5702 else
5703 GCC=
5704 fi
5705 ac_test_CFLAGS=${CFLAGS+y}
5706 ac_save_CFLAGS=$CFLAGS
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5708 printf %s "checking whether $CC accepts -g... " >&6; }
5709 if test ${ac_cv_prog_cc_g+y}
5710 then :
5711 printf %s "(cached) " >&6
5712 else case e in #(
5713 e) ac_save_c_werror_flag=$ac_c_werror_flag
5714 ac_c_werror_flag=yes
5715 ac_cv_prog_cc_g=no
5716 CFLAGS="-g"
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5719
5720 int
5721 main (void)
5722 {
5723
5724 ;
5725 return 0;
5726 }
5727 _ACEOF
5728 if ac_fn_c_try_compile "$LINENO"
5729 then :
5730 ac_cv_prog_cc_g=yes
5731 else case e in #(
5732 e) CFLAGS=""
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735
5736 int
5737 main (void)
5738 {
5739
5740 ;
5741 return 0;
5742 }
5743 _ACEOF
5744 if ac_fn_c_try_compile "$LINENO"
5745 then :
5746
5747 else case e in #(
5748 e) ac_c_werror_flag=$ac_save_c_werror_flag
5749 CFLAGS="-g"
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752
5753 int
5754 main (void)
5755 {
5756
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 if ac_fn_c_try_compile "$LINENO"
5762 then :
5763 ac_cv_prog_cc_g=yes
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5766 esac
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5769 esac
5770 fi
5771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5772 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5773 esac
5774 fi
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5776 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5777 if test $ac_test_CFLAGS; then
5778 CFLAGS=$ac_save_CFLAGS
5779 elif test $ac_cv_prog_cc_g = yes; then
5780 if test "$GCC" = yes; then
5781 CFLAGS="-g -O2"
5782 else
5783 CFLAGS="-g"
5784 fi
5785 else
5786 if test "$GCC" = yes; then
5787 CFLAGS="-O2"
5788 else
5789 CFLAGS=
5790 fi
5791 fi
5792 ac_prog_cc_stdc=no
5793 if test x$ac_prog_cc_stdc = xno
5794 then :
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5796 printf %s "checking for $CC option to enable C11 features... " >&6; }
5797 if test ${ac_cv_prog_cc_c11+y}
5798 then :
5799 printf %s "(cached) " >&6
5800 else case e in #(
5801 e) ac_cv_prog_cc_c11=no
5802 ac_save_CC=$CC
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 $ac_c_conftest_c11_program
5806 _ACEOF
5807 for ac_arg in '' -std=gnu11
5808 do
5809 CC="$ac_save_CC $ac_arg"
5810 if ac_fn_c_try_compile "$LINENO"
5811 then :
5812 ac_cv_prog_cc_c11=$ac_arg
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext conftest.beam
5815 test "x$ac_cv_prog_cc_c11" != "xno" && break
5816 done
5817 rm -f conftest.$ac_ext
5818 CC=$ac_save_CC ;;
5819 esac
5820 fi
5821
5822 if test "x$ac_cv_prog_cc_c11" = xno
5823 then :
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5825 printf "%s\n" "unsupported" >&6; }
5826 else case e in #(
5827 e) if test "x$ac_cv_prog_cc_c11" = x
5828 then :
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5830 printf "%s\n" "none needed" >&6; }
5831 else case e in #(
5832 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5833 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5834 CC="$CC $ac_cv_prog_cc_c11" ;;
5835 esac
5836 fi
5837 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5838 ac_prog_cc_stdc=c11 ;;
5839 esac
5840 fi
5841 fi
5842 if test x$ac_prog_cc_stdc = xno
5843 then :
5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5845 printf %s "checking for $CC option to enable C99 features... " >&6; }
5846 if test ${ac_cv_prog_cc_c99+y}
5847 then :
5848 printf %s "(cached) " >&6
5849 else case e in #(
5850 e) ac_cv_prog_cc_c99=no
5851 ac_save_CC=$CC
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5854 $ac_c_conftest_c99_program
5855 _ACEOF
5856 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5857 do
5858 CC="$ac_save_CC $ac_arg"
5859 if ac_fn_c_try_compile "$LINENO"
5860 then :
5861 ac_cv_prog_cc_c99=$ac_arg
5862 fi
5863 rm -f core conftest.err conftest.$ac_objext conftest.beam
5864 test "x$ac_cv_prog_cc_c99" != "xno" && break
5865 done
5866 rm -f conftest.$ac_ext
5867 CC=$ac_save_CC ;;
5868 esac
5869 fi
5870
5871 if test "x$ac_cv_prog_cc_c99" = xno
5872 then :
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5874 printf "%s\n" "unsupported" >&6; }
5875 else case e in #(
5876 e) if test "x$ac_cv_prog_cc_c99" = x
5877 then :
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5879 printf "%s\n" "none needed" >&6; }
5880 else case e in #(
5881 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5882 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5883 CC="$CC $ac_cv_prog_cc_c99" ;;
5884 esac
5885 fi
5886 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5887 ac_prog_cc_stdc=c99 ;;
5888 esac
5889 fi
5890 fi
5891 if test x$ac_prog_cc_stdc = xno
5892 then :
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5894 printf %s "checking for $CC option to enable C89 features... " >&6; }
5895 if test ${ac_cv_prog_cc_c89+y}
5896 then :
5897 printf %s "(cached) " >&6
5898 else case e in #(
5899 e) ac_cv_prog_cc_c89=no
5900 ac_save_CC=$CC
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5903 $ac_c_conftest_c89_program
5904 _ACEOF
5905 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5906 do
5907 CC="$ac_save_CC $ac_arg"
5908 if ac_fn_c_try_compile "$LINENO"
5909 then :
5910 ac_cv_prog_cc_c89=$ac_arg
5911 fi
5912 rm -f core conftest.err conftest.$ac_objext conftest.beam
5913 test "x$ac_cv_prog_cc_c89" != "xno" && break
5914 done
5915 rm -f conftest.$ac_ext
5916 CC=$ac_save_CC ;;
5917 esac
5918 fi
5919
5920 if test "x$ac_cv_prog_cc_c89" = xno
5921 then :
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5923 printf "%s\n" "unsupported" >&6; }
5924 else case e in #(
5925 e) if test "x$ac_cv_prog_cc_c89" = x
5926 then :
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5928 printf "%s\n" "none needed" >&6; }
5929 else case e in #(
5930 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5931 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5932 CC="$CC $ac_cv_prog_cc_c89" ;;
5933 esac
5934 fi
5935 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5936 ac_prog_cc_stdc=c89 ;;
5937 esac
5938 fi
5939 fi
5940
5941 ac_ext=c
5942 ac_cpp='$CPP $CPPFLAGS'
5943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5946
5947
5948 ac_ext=c
5949 ac_cpp='$CPP $CPPFLAGS'
5950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5954 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5955 if test ${am_cv_prog_cc_c_o+y}
5956 then :
5957 printf %s "(cached) " >&6
5958 else case e in #(
5959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961
5962 int
5963 main (void)
5964 {
5965
5966 ;
5967 return 0;
5968 }
5969 _ACEOF
5970 # Make sure it works both with $CC and with simple cc.
5971 # Following AC_PROG_CC_C_O, we do the test twice because some
5972 # compilers refuse to overwrite an existing .o file with -o,
5973 # though they will create one.
5974 am_cv_prog_cc_c_o=yes
5975 for am_i in 1 2; do
5976 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5977 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } \
5981 && test -f conftest2.$ac_objext; then
5982 : OK
5983 else
5984 am_cv_prog_cc_c_o=no
5985 break
5986 fi
5987 done
5988 rm -f core conftest*
5989 unset am_i ;;
5990 esac
5991 fi
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5993 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5994 if test "$am_cv_prog_cc_c_o" != yes; then
5995 # Losing compiler, so override with the script.
5996 # FIXME: It is wrong to rewrite CC.
5997 # But if we don't then we get into trouble of one sort or another.
5998 # A longer-term fix would be to have automake use am__CC in this case,
5999 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6000 CC="$am_aux_dir/compile $CC"
6001 fi
6002 ac_ext=c
6003 ac_cpp='$CPP $CPPFLAGS'
6004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007
6008
6009
6010
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6012 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6013 set x ${MAKE-make}
6014 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6015 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6016 then :
6017 printf %s "(cached) " >&6
6018 else case e in #(
6019 e) cat >conftest.make <<\_ACEOF
6020 SHELL = /bin/sh
6021 all:
6022 @echo '@@@%%%=$(MAKE)=@@@%%%'
6023 _ACEOF
6024 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6025 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6026 *@@@%%%=?*=@@@%%%*)
6027 eval ac_cv_prog_make_${ac_make}_set=yes;;
6028 *)
6029 eval ac_cv_prog_make_${ac_make}_set=no;;
6030 esac
6031 rm -f conftest.make ;;
6032 esac
6033 fi
6034 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6036 printf "%s\n" "yes" >&6; }
6037 SET_MAKE=
6038 else
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040 printf "%s\n" "no" >&6; }
6041 SET_MAKE="MAKE=${MAKE-make}"
6042 fi
6043
6044 # silent build by default
6045
6046 AM_DEFAULT_VERBOSITY=0
6047
6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** bash completion" >&5
6049 printf "%s\n" "$as_me: **************************************** bash completion" >&6;}
6050 # define a dummy PKG_CHECK_VAR if pkg-config is not installed
6051
6052
6053
6054 # Check whether --with-bashcompdir was given.
6055 if test ${with_bashcompdir+y}
6056 then :
6057 withval=$with_bashcompdir;
6058 else case e in #(
6059 e) false ;;
6060 esac
6061 fi
6062
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bashcompdir" >&5
6064 printf %s "checking for bashcompdir... " >&6; }
6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_bashcompdir}" >&5
6066 printf "%s\n" "${with_bashcompdir}" >&6; }
6067 bashcompdir=${with_bashcompdir}
6068
6069
6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** thread model" >&5
6071 printf "%s\n" "$as_me: **************************************** thread model" >&6;}
6072 # thread detection should be done first, as it may change the CC variable
6073
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6075 printf %s "checking for a sed that does not truncate output... " >&6; }
6076 if test ${ac_cv_path_SED+y}
6077 then :
6078 printf %s "(cached) " >&6
6079 else case e in #(
6080 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6081 for ac_i in 1 2 3 4 5 6 7; do
6082 ac_script="$ac_script$as_nl$ac_script"
6083 done
6084 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6085 { ac_script=; unset ac_script;}
6086 if test -z "$SED"; then
6087 ac_path_SED_found=false
6088 # Loop through the user's path and test for each of PROGNAME-LIST
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092 IFS=$as_save_IFS
6093 case $as_dir in #(((
6094 '') as_dir=./ ;;
6095 */) ;;
6096 *) as_dir=$as_dir/ ;;
6097 esac
6098 for ac_prog in sed gsed
6099 do
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6102 as_fn_executable_p "$ac_path_SED" || continue
6103 # Check for GNU ac_path_SED and select it if it is found.
6104 # Check for GNU $ac_path_SED
6105 case `"$ac_path_SED" --version 2>&1` in #(
6106 *GNU*)
6107 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6108 #(
6109 *)
6110 ac_count=0
6111 printf %s 0123456789 >"conftest.in"
6112 while :
6113 do
6114 cat "conftest.in" "conftest.in" >"conftest.tmp"
6115 mv "conftest.tmp" "conftest.in"
6116 cp "conftest.in" "conftest.nl"
6117 printf "%s\n" '' >> "conftest.nl"
6118 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6120 as_fn_arith $ac_count + 1 && ac_count=$as_val
6121 if test $ac_count -gt ${ac_path_SED_max-0}; then
6122 # Best one so far, save it but keep looking for a better one
6123 ac_cv_path_SED="$ac_path_SED"
6124 ac_path_SED_max=$ac_count
6125 fi
6126 # 10*(2^10) chars as input seems more than enough
6127 test $ac_count -gt 10 && break
6128 done
6129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6130 esac
6131
6132 $ac_path_SED_found && break 3
6133 done
6134 done
6135 done
6136 IFS=$as_save_IFS
6137 if test -z "$ac_cv_path_SED"; then
6138 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6139 fi
6140 else
6141 ac_cv_path_SED=$SED
6142 fi
6143 ;;
6144 esac
6145 fi
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6147 printf "%s\n" "$ac_cv_path_SED" >&6; }
6148 SED="$ac_cv_path_SED"
6149 rm -f conftest.sed
6150
6151 ac_ext=c
6152 ac_cpp='$CPP $CPPFLAGS'
6153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6157 printf %s "checking how to run the C preprocessor... " >&6; }
6158 # On Suns, sometimes $CPP names a directory.
6159 if test -n "$CPP" && test -d "$CPP"; then
6160 CPP=
6161 fi
6162 if test -z "$CPP"; then
6163 if test ${ac_cv_prog_CPP+y}
6164 then :
6165 printf %s "(cached) " >&6
6166 else case e in #(
6167 e) # Double quotes because $CC needs to be expanded
6168 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6169 do
6170 ac_preproc_ok=false
6171 for ac_c_preproc_warn_flag in '' yes
6172 do
6173 # Use a header file that comes with gcc, so configuring glibc
6174 # with a fresh cross-compiler works.
6175 # On the NeXT, cc -E runs the code through the compiler's parser,
6176 # not just through cpp. "Syntax error" is here to catch this case.
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 #include <limits.h>
6180 Syntax error
6181 _ACEOF
6182 if ac_fn_c_try_cpp "$LINENO"
6183 then :
6184
6185 else case e in #(
6186 e) # Broken: fails on valid input.
6187 continue ;;
6188 esac
6189 fi
6190 rm -f conftest.err conftest.i conftest.$ac_ext
6191
6192 # OK, works on sane cases. Now check whether nonexistent headers
6193 # can be detected and how.
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196 #include <ac_nonexistent.h>
6197 _ACEOF
6198 if ac_fn_c_try_cpp "$LINENO"
6199 then :
6200 # Broken: success on invalid input.
6201 continue
6202 else case e in #(
6203 e) # Passes both tests.
6204 ac_preproc_ok=:
6205 break ;;
6206 esac
6207 fi
6208 rm -f conftest.err conftest.i conftest.$ac_ext
6209
6210 done
6211 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6212 rm -f conftest.i conftest.err conftest.$ac_ext
6213 if $ac_preproc_ok
6214 then :
6215 break
6216 fi
6217
6218 done
6219 ac_cv_prog_CPP=$CPP
6220 ;;
6221 esac
6222 fi
6223 CPP=$ac_cv_prog_CPP
6224 else
6225 ac_cv_prog_CPP=$CPP
6226 fi
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6228 printf "%s\n" "$CPP" >&6; }
6229 ac_preproc_ok=false
6230 for ac_c_preproc_warn_flag in '' yes
6231 do
6232 # Use a header file that comes with gcc, so configuring glibc
6233 # with a fresh cross-compiler works.
6234 # On the NeXT, cc -E runs the code through the compiler's parser,
6235 # not just through cpp. "Syntax error" is here to catch this case.
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238 #include <limits.h>
6239 Syntax error
6240 _ACEOF
6241 if ac_fn_c_try_cpp "$LINENO"
6242 then :
6243
6244 else case e in #(
6245 e) # Broken: fails on valid input.
6246 continue ;;
6247 esac
6248 fi
6249 rm -f conftest.err conftest.i conftest.$ac_ext
6250
6251 # OK, works on sane cases. Now check whether nonexistent headers
6252 # can be detected and how.
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6255 #include <ac_nonexistent.h>
6256 _ACEOF
6257 if ac_fn_c_try_cpp "$LINENO"
6258 then :
6259 # Broken: success on invalid input.
6260 continue
6261 else case e in #(
6262 e) # Passes both tests.
6263 ac_preproc_ok=:
6264 break ;;
6265 esac
6266 fi
6267 rm -f conftest.err conftest.i conftest.$ac_ext
6268
6269 done
6270 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6271 rm -f conftest.i conftest.err conftest.$ac_ext
6272 if $ac_preproc_ok
6273 then :
6274
6275 else case e in #(
6276 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6277 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6278 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6279 See 'config.log' for more details" "$LINENO" 5; } ;;
6280 esac
6281 fi
6282
6283 ac_ext=c
6284 ac_cpp='$CPP $CPPFLAGS'
6285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6288
6289
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
6291 printf %s "checking for egrep -e... " >&6; }
6292 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
6293 then :
6294 printf %s "(cached) " >&6
6295 else case e in #(
6296 e) if test -z "$EGREP_TRADITIONAL"; then
6297 ac_path_EGREP_TRADITIONAL_found=false
6298 # Loop through the user's path and test for each of PROGNAME-LIST
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6301 do
6302 IFS=$as_save_IFS
6303 case $as_dir in #(((
6304 '') as_dir=./ ;;
6305 */) ;;
6306 *) as_dir=$as_dir/ ;;
6307 esac
6308 for ac_prog in grep ggrep
6309 do
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
6312 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
6313 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
6314 # Check for GNU $ac_path_EGREP_TRADITIONAL
6315 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
6316 *GNU*)
6317 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
6318 #(
6319 *)
6320 ac_count=0
6321 printf %s 0123456789 >"conftest.in"
6322 while :
6323 do
6324 cat "conftest.in" "conftest.in" >"conftest.tmp"
6325 mv "conftest.tmp" "conftest.in"
6326 cp "conftest.in" "conftest.nl"
6327 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
6328 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6330 as_fn_arith $ac_count + 1 && ac_count=$as_val
6331 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
6332 # Best one so far, save it but keep looking for a better one
6333 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
6334 ac_path_EGREP_TRADITIONAL_max=$ac_count
6335 fi
6336 # 10*(2^10) chars as input seems more than enough
6337 test $ac_count -gt 10 && break
6338 done
6339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6340 esac
6341
6342 $ac_path_EGREP_TRADITIONAL_found && break 3
6343 done
6344 done
6345 done
6346 IFS=$as_save_IFS
6347 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
6348 :
6349 fi
6350 else
6351 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
6352 fi
6353
6354 if test "$ac_cv_path_EGREP_TRADITIONAL"
6355 then :
6356 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
6357 else case e in #(
6358 e) if test -z "$EGREP_TRADITIONAL"; then
6359 ac_path_EGREP_TRADITIONAL_found=false
6360 # Loop through the user's path and test for each of PROGNAME-LIST
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6363 do
6364 IFS=$as_save_IFS
6365 case $as_dir in #(((
6366 '') as_dir=./ ;;
6367 */) ;;
6368 *) as_dir=$as_dir/ ;;
6369 esac
6370 for ac_prog in egrep
6371 do
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
6374 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
6375 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
6376 # Check for GNU $ac_path_EGREP_TRADITIONAL
6377 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
6378 *GNU*)
6379 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
6380 #(
6381 *)
6382 ac_count=0
6383 printf %s 0123456789 >"conftest.in"
6384 while :
6385 do
6386 cat "conftest.in" "conftest.in" >"conftest.tmp"
6387 mv "conftest.tmp" "conftest.in"
6388 cp "conftest.in" "conftest.nl"
6389 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
6390 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6392 as_fn_arith $ac_count + 1 && ac_count=$as_val
6393 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
6394 # Best one so far, save it but keep looking for a better one
6395 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
6396 ac_path_EGREP_TRADITIONAL_max=$ac_count
6397 fi
6398 # 10*(2^10) chars as input seems more than enough
6399 test $ac_count -gt 10 && break
6400 done
6401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6402 esac
6403
6404 $ac_path_EGREP_TRADITIONAL_found && break 3
6405 done
6406 done
6407 done
6408 IFS=$as_save_IFS
6409 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
6410 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6411 fi
6412 else
6413 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
6414 fi
6415 ;;
6416 esac
6417 fi ;;
6418 esac
6419 fi
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
6421 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
6422 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
6423
6424
6425 # Check whether --with-threads was given.
6426 if test ${with_threads+y}
6427 then :
6428 withval=$with_threads;
6429 case "${withval}" in
6430 ucontext)
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: UCONTEXT mode selected" >&5
6432 printf "%s\n" "$as_me: UCONTEXT mode selected" >&6;}
6433
6434 printf "%s\n" "#define USE_UCONTEXT 1" >>confdefs.h
6435
6436 ;;
6437 pthread)
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PTHREAD mode selected" >&5
6439 printf "%s\n" "$as_me: PTHREAD mode selected" >&6;}
6440
6441
6442
6443
6444 ac_ext=c
6445 ac_cpp='$CPP $CPPFLAGS'
6446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6449
6450 ax_pthread_ok=no
6451
6452 # We used to check for pthread.h first, but this fails if pthread.h
6453 # requires special compiler flags (e.g. on Tru64 or Sequent).
6454 # It gets checked for in the link test anyway.
6455
6456 # First of all, check if the user has set any of the PTHREAD_LIBS,
6457 # etcetera environment variables, and if threads linking works using
6458 # them:
6459 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6460 ax_pthread_save_CC="$CC"
6461 ax_pthread_save_CFLAGS="$CFLAGS"
6462 ax_pthread_save_LIBS="$LIBS"
6463 if test "x$PTHREAD_CC" != "x"
6464 then :
6465 CC="$PTHREAD_CC"
6466 fi
6467 if test "x$PTHREAD_CXX" != "x"
6468 then :
6469 CXX="$PTHREAD_CXX"
6470 fi
6471 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6472 LIBS="$PTHREAD_LIBS $LIBS"
6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6474 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477
6478 /* Override any GCC internal prototype to avoid an error.
6479 Use char because int might match the return type of a GCC
6480 builtin and then its argument prototype would still apply.
6481 The 'extern "C"' is for builds by C++ compilers;
6482 although this is not generally supported in C code supporting it here
6483 has little cost and some practical benefit (sr 110532). */
6484 #ifdef __cplusplus
6485 extern "C"
6486 #endif
6487 char pthread_join (void);
6488 int
6489 main (void)
6490 {
6491 return pthread_join ();
6492 ;
6493 return 0;
6494 }
6495 _ACEOF
6496 if ac_fn_c_try_link "$LINENO"
6497 then :
6498 ax_pthread_ok=yes
6499 fi
6500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6501 conftest$ac_exeext conftest.$ac_ext
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6503 printf "%s\n" "$ax_pthread_ok" >&6; }
6504 if test "x$ax_pthread_ok" = "xno"; then
6505 PTHREAD_LIBS=""
6506 PTHREAD_CFLAGS=""
6507 fi
6508 CC="$ax_pthread_save_CC"
6509 CFLAGS="$ax_pthread_save_CFLAGS"
6510 LIBS="$ax_pthread_save_LIBS"
6511 fi
6512
6513 # We must check for the threads library under a number of different
6514 # names; the ordering is very important because some systems
6515 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6516 # libraries is broken (non-POSIX).
6517
6518 # Create a list of thread flags to try. Items with a "," contain both
6519 # C compiler flags (before ",") and linker flags (after ","). Other items
6520 # starting with a "-" are C compiler flags, and remaining items are
6521 # library names, except for "none" which indicates that we try without
6522 # any flags at all, and "pthread-config" which is a program returning
6523 # the flags for the Pth emulation library.
6524
6525 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6526
6527 # The ordering *is* (sometimes) important. Some notes on the
6528 # individual items follow:
6529
6530 # pthreads: AIX (must check this before -lpthread)
6531 # none: in case threads are in libc; should be tried before -Kthread and
6532 # other compiler flags to prevent continual compiler warnings
6533 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6534 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
6535 # (Note: HP C rejects this with "bad form for `-t' option")
6536 # -pthreads: Solaris/gcc (Note: HP C also rejects)
6537 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6538 # doesn't hurt to check since this sometimes defines pthreads and
6539 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
6540 # is present but should not be used directly; and before -mthreads,
6541 # because the compiler interprets this as "-mt" + "-hreads")
6542 # -mthreads: Mingw32/gcc, Lynx/gcc
6543 # pthread: Linux, etcetera
6544 # --thread-safe: KAI C++
6545 # pthread-config: use pthread-config program (for GNU Pth library)
6546
6547 case $host_os in
6548
6549 freebsd*)
6550
6551 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6552 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6553
6554 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
6555 ;;
6556
6557 hpux*)
6558
6559 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
6560 # multi-threading and also sets -lpthread."
6561
6562 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
6563 ;;
6564
6565 openedition*)
6566
6567 # IBM z/OS requires a feature-test macro to be defined in order to
6568 # enable POSIX threads at all, so give the user a hint if this is
6569 # not set. (We don't define these ourselves, as they can affect
6570 # other portions of the system API in unpredictable ways.)
6571
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574
6575 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
6576 AX_PTHREAD_ZOS_MISSING
6577 # endif
6578
6579 _ACEOF
6580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6581 $EGREP_TRADITIONAL "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
6582 then :
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
6584 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
6585 fi
6586 rm -rf conftest*
6587
6588 ;;
6589
6590 solaris*)
6591
6592 # On Solaris (at least, for some versions), libc contains stubbed
6593 # (non-functional) versions of the pthreads routines, so link-based
6594 # tests will erroneously succeed. (N.B.: The stubs are missing
6595 # pthread_cleanup_push, or rather a function called by this macro,
6596 # so we could check for that, but who knows whether they'll stub
6597 # that too in a future libc.) So we'll check first for the
6598 # standard Solaris way of linking pthreads (-mt -lpthread).
6599
6600 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
6601 ;;
6602 esac
6603
6604 # Are we compiling with Clang?
6605
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
6607 printf %s "checking whether $CC is Clang... " >&6; }
6608 if test ${ax_cv_PTHREAD_CLANG+y}
6609 then :
6610 printf %s "(cached) " >&6
6611 else case e in #(
6612 e) ax_cv_PTHREAD_CLANG=no
6613 # Note that Autoconf sets GCC=yes for Clang as well as GCC
6614 if test "x$GCC" = "xyes"; then
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
6618 # if defined(__clang__) && defined(__llvm__)
6619 AX_PTHREAD_CC_IS_CLANG
6620 # endif
6621
6622 _ACEOF
6623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6624 $EGREP_TRADITIONAL "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
6625 then :
6626 ax_cv_PTHREAD_CLANG=yes
6627 fi
6628 rm -rf conftest*
6629
6630 fi
6631 ;;
6632 esac
6633 fi
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
6635 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
6636 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
6637
6638
6639 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
6640
6641 # Note that for GCC and Clang -pthread generally implies -lpthread,
6642 # except when -nostdlib is passed.
6643 # This is problematic using libtool to build C++ shared libraries with pthread:
6644 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
6645 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
6646 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
6647 # To solve this, first try -pthread together with -lpthread for GCC
6648
6649 if test "x$GCC" = "xyes"
6650 then :
6651 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
6652 fi
6653
6654 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
6655
6656 if test "x$ax_pthread_clang" = "xyes"
6657 then :
6658 ax_pthread_flags="-pthread,-lpthread -pthread"
6659 fi
6660
6661
6662 # The presence of a feature test macro requesting re-entrant function
6663 # definitions is, on some systems, a strong hint that pthreads support is
6664 # correctly enabled
6665
6666 case $host_os in
6667 darwin* | hpux* | linux* | osf* | solaris*)
6668 ax_pthread_check_macro="_REENTRANT"
6669 ;;
6670
6671 aix*)
6672 ax_pthread_check_macro="_THREAD_SAFE"
6673 ;;
6674
6675 *)
6676 ax_pthread_check_macro="--"
6677 ;;
6678 esac
6679 if test "x$ax_pthread_check_macro" = "x--"
6680 then :
6681 ax_pthread_check_cond=0
6682 else case e in #(
6683 e) ax_pthread_check_cond="!defined($ax_pthread_check_macro)" ;;
6684 esac
6685 fi
6686
6687
6688 if test "x$ax_pthread_ok" = "xno"; then
6689 for ax_pthread_try_flag in $ax_pthread_flags; do
6690
6691 case $ax_pthread_try_flag in
6692 none)
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6694 printf %s "checking whether pthreads work without any flags... " >&6; }
6695 ;;
6696
6697 *,*)
6698 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
6699 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
6701 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
6702 ;;
6703
6704 -*)
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
6706 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
6707 PTHREAD_CFLAGS="$ax_pthread_try_flag"
6708 ;;
6709
6710 pthread-config)
6711 # Extract the first word of "pthread-config", so it can be a program name with args.
6712 set dummy pthread-config; ac_word=$2
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 printf %s "checking for $ac_word... " >&6; }
6715 if test ${ac_cv_prog_ax_pthread_config+y}
6716 then :
6717 printf %s "(cached) " >&6
6718 else case e in #(
6719 e) if test -n "$ax_pthread_config"; then
6720 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725 IFS=$as_save_IFS
6726 case $as_dir in #(((
6727 '') as_dir=./ ;;
6728 */) ;;
6729 *) as_dir=$as_dir/ ;;
6730 esac
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ax_pthread_config="yes"
6734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6742 fi ;;
6743 esac
6744 fi
6745 ax_pthread_config=$ac_cv_prog_ax_pthread_config
6746 if test -n "$ax_pthread_config"; then
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6748 printf "%s\n" "$ax_pthread_config" >&6; }
6749 else
6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 printf "%s\n" "no" >&6; }
6752 fi
6753
6754
6755 if test "x$ax_pthread_config" = "xno"
6756 then :
6757 continue
6758 fi
6759 PTHREAD_CFLAGS="`pthread-config --cflags`"
6760 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6761 ;;
6762
6763 *)
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
6765 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
6766 PTHREAD_LIBS="-l$ax_pthread_try_flag"
6767 ;;
6768 esac
6769
6770 ax_pthread_save_CFLAGS="$CFLAGS"
6771 ax_pthread_save_LIBS="$LIBS"
6772 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6773 LIBS="$PTHREAD_LIBS $LIBS"
6774
6775 # Check for various functions. We must include pthread.h,
6776 # since some functions may be macros. (On the Sequent, we
6777 # need a special flag -Kthread to make this header compile.)
6778 # We check for pthread_join because it is in -lpthread on IRIX
6779 # while pthread_create is in libc. We check for pthread_attr_init
6780 # due to DEC craziness with -lpthreads. We check for
6781 # pthread_cleanup_push because it is one of the few pthread
6782 # functions on Solaris that doesn't have a non-functional libc stub.
6783 # We try pthread_create on general principles.
6784
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787 #include <pthread.h>
6788 # if $ax_pthread_check_cond
6789 # error "$ax_pthread_check_macro must be defined"
6790 # endif
6791 static void *some_global = NULL;
6792 static void routine(void *a)
6793 {
6794 /* To avoid any unused-parameter or
6795 unused-but-set-parameter warning. */
6796 some_global = a;
6797 }
6798 static void *start_routine(void *a) { return a; }
6799 int
6800 main (void)
6801 {
6802 pthread_t th; pthread_attr_t attr;
6803 pthread_create(&th, 0, start_routine, 0);
6804 pthread_join(th, 0);
6805 pthread_attr_init(&attr);
6806 pthread_cleanup_push(routine, 0);
6807 pthread_cleanup_pop(0) /* ; */
6808 ;
6809 return 0;
6810 }
6811 _ACEOF
6812 if ac_fn_c_try_link "$LINENO"
6813 then :
6814 ax_pthread_ok=yes
6815 fi
6816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6817 conftest$ac_exeext conftest.$ac_ext
6818
6819 CFLAGS="$ax_pthread_save_CFLAGS"
6820 LIBS="$ax_pthread_save_LIBS"
6821
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6823 printf "%s\n" "$ax_pthread_ok" >&6; }
6824 if test "x$ax_pthread_ok" = "xyes"
6825 then :
6826 break
6827 fi
6828
6829 PTHREAD_LIBS=""
6830 PTHREAD_CFLAGS=""
6831 done
6832 fi
6833
6834
6835 # Clang needs special handling, because older versions handle the -pthread
6836 # option in a rather... idiosyncratic way
6837
6838 if test "x$ax_pthread_clang" = "xyes"; then
6839
6840 # Clang takes -pthread; it has never supported any other flag
6841
6842 # (Note 1: This will need to be revisited if a system that Clang
6843 # supports has POSIX threads in a separate library. This tends not
6844 # to be the way of modern systems, but it's conceivable.)
6845
6846 # (Note 2: On some systems, notably Darwin, -pthread is not needed
6847 # to get POSIX threads support; the API is always present and
6848 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
6849 # -pthread does define _REENTRANT, and while the Darwin headers
6850 # ignore this macro, third-party headers might not.)
6851
6852 # However, older versions of Clang make a point of warning the user
6853 # that, in an invocation where only linking and no compilation is
6854 # taking place, the -pthread option has no effect ("argument unused
6855 # during compilation"). They expect -pthread to be passed in only
6856 # when source code is being compiled.
6857 #
6858 # Problem is, this is at odds with the way Automake and most other
6859 # C build frameworks function, which is that the same flags used in
6860 # compilation (CFLAGS) are also used in linking. Many systems
6861 # supported by AX_PTHREAD require exactly this for POSIX threads
6862 # support, and in fact it is often not straightforward to specify a
6863 # flag that is used only in the compilation phase and not in
6864 # linking. Such a scenario is extremely rare in practice.
6865 #
6866 # Even though use of the -pthread flag in linking would only print
6867 # a warning, this can be a nuisance for well-run software projects
6868 # that build with -Werror. So if the active version of Clang has
6869 # this misfeature, we search for an option to squash it.
6870
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
6872 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
6873 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
6874 then :
6875 printf %s "(cached) " >&6
6876 else case e in #(
6877 e) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
6878 # Create an alternate version of $ac_link that compiles and
6879 # links in two steps (.c -> .o, .o -> exe) instead of one
6880 # (.c -> exe), because the warning occurs only in the second
6881 # step
6882 ax_pthread_save_ac_link="$ac_link"
6883 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
6884 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
6885 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
6886 ax_pthread_save_CFLAGS="$CFLAGS"
6887 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
6888 if test "x$ax_pthread_try" = "xunknown"
6889 then :
6890 break
6891 fi
6892 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
6893 ac_link="$ax_pthread_save_ac_link"
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 int main(void){return 0;}
6897 _ACEOF
6898 if ac_fn_c_try_link "$LINENO"
6899 then :
6900 ac_link="$ax_pthread_2step_ac_link"
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h. */
6903 int main(void){return 0;}
6904 _ACEOF
6905 if ac_fn_c_try_link "$LINENO"
6906 then :
6907 break
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6910 conftest$ac_exeext conftest.$ac_ext
6911
6912 fi
6913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6914 conftest$ac_exeext conftest.$ac_ext
6915 done
6916 ac_link="$ax_pthread_save_ac_link"
6917 CFLAGS="$ax_pthread_save_CFLAGS"
6918 if test "x$ax_pthread_try" = "x"
6919 then :
6920 ax_pthread_try=no
6921 fi
6922 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
6923 ;;
6924 esac
6925 fi
6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
6927 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
6928
6929 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
6930 no | unknown) ;;
6931 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
6932 esac
6933
6934 fi # $ax_pthread_clang = yes
6935
6936
6937
6938 # Various other checks:
6939 if test "x$ax_pthread_ok" = "xyes"; then
6940 ax_pthread_save_CFLAGS="$CFLAGS"
6941 ax_pthread_save_LIBS="$LIBS"
6942 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6943 LIBS="$PTHREAD_LIBS $LIBS"
6944
6945 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6947 printf %s "checking for joinable pthread attribute... " >&6; }
6948 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
6949 then :
6950 printf %s "(cached) " >&6
6951 else case e in #(
6952 e) ax_cv_PTHREAD_JOINABLE_ATTR=unknown
6953 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956 #include <pthread.h>
6957 int
6958 main (void)
6959 {
6960 int attr = $ax_pthread_attr; return attr /* ; */
6961 ;
6962 return 0;
6963 }
6964 _ACEOF
6965 if ac_fn_c_try_link "$LINENO"
6966 then :
6967 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
6968 fi
6969 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6970 conftest$ac_exeext conftest.$ac_ext
6971 done
6972 ;;
6973 esac
6974 fi
6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
6976 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
6977 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
6978 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
6979 test "x$ax_pthread_joinable_attr_defined" != "xyes"
6980 then :
6981
6982 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
6983
6984 ax_pthread_joinable_attr_defined=yes
6985
6986 fi
6987
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
6989 printf %s "checking whether more special flags are required for pthreads... " >&6; }
6990 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
6991 then :
6992 printf %s "(cached) " >&6
6993 else case e in #(
6994 e) ax_cv_PTHREAD_SPECIAL_FLAGS=no
6995 case $host_os in
6996 solaris*)
6997 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
6998 ;;
6999 esac
7000 ;;
7001 esac
7002 fi
7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7004 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7005 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7006 test "x$ax_pthread_special_flags_added" != "xyes"
7007 then :
7008 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7009 ax_pthread_special_flags_added=yes
7010 fi
7011
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7013 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7014 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7015 then :
7016 printf %s "(cached) " >&6
7017 else case e in #(
7018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 #include <pthread.h>
7021 int
7022 main (void)
7023 {
7024 int i = PTHREAD_PRIO_INHERIT;
7025 return i;
7026 ;
7027 return 0;
7028 }
7029 _ACEOF
7030 if ac_fn_c_try_link "$LINENO"
7031 then :
7032 ax_cv_PTHREAD_PRIO_INHERIT=yes
7033 else case e in #(
7034 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;;
7035 esac
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7038 conftest$ac_exeext conftest.$ac_ext
7039 ;;
7040 esac
7041 fi
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7043 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7044 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7045 test "x$ax_pthread_prio_inherit_defined" != "xyes"
7046 then :
7047
7048 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7049
7050 ax_pthread_prio_inherit_defined=yes
7051
7052 fi
7053
7054 CFLAGS="$ax_pthread_save_CFLAGS"
7055 LIBS="$ax_pthread_save_LIBS"
7056
7057 # More AIX lossage: compile with *_r variant
7058 if test "x$GCC" != "xyes"; then
7059 case $host_os in
7060 aix*)
7061 case "x/$CC" in #(
7062 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7063 #handle absolute path differently from PATH based program lookup
7064 case "x$CC" in #(
7065 x/*) :
7066
7067 if as_fn_executable_p ${CC}_r
7068 then :
7069 PTHREAD_CC="${CC}_r"
7070 fi
7071 if test "x${CXX}" != "x"
7072 then :
7073 if as_fn_executable_p ${CXX}_r
7074 then :
7075 PTHREAD_CXX="${CXX}_r"
7076 fi
7077 fi
7078 ;; #(
7079 *) :
7080
7081 for ac_prog in ${CC}_r
7082 do
7083 # Extract the first word of "$ac_prog", so it can be a program name with args.
7084 set dummy $ac_prog; ac_word=$2
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 printf %s "checking for $ac_word... " >&6; }
7087 if test ${ac_cv_prog_PTHREAD_CC+y}
7088 then :
7089 printf %s "(cached) " >&6
7090 else case e in #(
7091 e) if test -n "$PTHREAD_CC"; then
7092 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097 IFS=$as_save_IFS
7098 case $as_dir in #(((
7099 '') as_dir=./ ;;
7100 */) ;;
7101 *) as_dir=$as_dir/ ;;
7102 esac
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_PTHREAD_CC="$ac_prog"
7106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7112
7113 fi ;;
7114 esac
7115 fi
7116 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7117 if test -n "$PTHREAD_CC"; then
7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7119 printf "%s\n" "$PTHREAD_CC" >&6; }
7120 else
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 printf "%s\n" "no" >&6; }
7123 fi
7124
7125
7126 test -n "$PTHREAD_CC" && break
7127 done
7128 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7129
7130 if test "x${CXX}" != "x"
7131 then :
7132 for ac_prog in ${CXX}_r
7133 do
7134 # Extract the first word of "$ac_prog", so it can be a program name with args.
7135 set dummy $ac_prog; ac_word=$2
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 printf %s "checking for $ac_word... " >&6; }
7138 if test ${ac_cv_prog_PTHREAD_CXX+y}
7139 then :
7140 printf %s "(cached) " >&6
7141 else case e in #(
7142 e) if test -n "$PTHREAD_CXX"; then
7143 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148 IFS=$as_save_IFS
7149 case $as_dir in #(((
7150 '') as_dir=./ ;;
7151 */) ;;
7152 *) as_dir=$as_dir/ ;;
7153 esac
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_PTHREAD_CXX="$ac_prog"
7157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164 fi ;;
7165 esac
7166 fi
7167 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7168 if test -n "$PTHREAD_CXX"; then
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7170 printf "%s\n" "$PTHREAD_CXX" >&6; }
7171 else
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 printf "%s\n" "no" >&6; }
7174 fi
7175
7176
7177 test -n "$PTHREAD_CXX" && break
7178 done
7179 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7180
7181 fi
7182
7183 ;;
7184 esac
7185 ;; #(
7186 *) :
7187 ;;
7188 esac
7189 ;;
7190 esac
7191 fi
7192 fi
7193
7194 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7195 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7196
7197
7198
7199
7200
7201
7202 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7203 if test "x$ax_pthread_ok" = "xyes"; then
7204
7205 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7206
7207 :
7208 else
7209 ax_pthread_ok=no
7210
7211 fi
7212 ac_ext=c
7213 ac_cpp='$CPP $CPPFLAGS'
7214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7217
7218
7219 LIBS="${PTHREAD_LIBS} ${LIBS}"
7220 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
7221 CC="${PTHREAD_CC}"
7222
7223 printf "%s\n" "#define USE_PTHREAD 1" >>confdefs.h
7224
7225 ;;
7226 fork)
7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: FORK mode selected" >&5
7228 printf "%s\n" "$as_me: FORK mode selected" >&6;}
7229
7230 printf "%s\n" "#define USE_FORK 1" >>confdefs.h
7231
7232 ;;
7233 *)
7234 as_fn_error $? "Unknown thread model \"${withval}\"" "$LINENO" 5
7235 ;;
7236 esac
7237
7238 else case e in #(
7239 e)
7240 # do not attempt to autodetect UCONTEXT threading
7241
7242
7243
7244
7245 ac_ext=c
7246 ac_cpp='$CPP $CPPFLAGS'
7247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7250
7251 ax_pthread_ok=no
7252
7253 # We used to check for pthread.h first, but this fails if pthread.h
7254 # requires special compiler flags (e.g. on Tru64 or Sequent).
7255 # It gets checked for in the link test anyway.
7256
7257 # First of all, check if the user has set any of the PTHREAD_LIBS,
7258 # etcetera environment variables, and if threads linking works using
7259 # them:
7260 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7261 ax_pthread_save_CC="$CC"
7262 ax_pthread_save_CFLAGS="$CFLAGS"
7263 ax_pthread_save_LIBS="$LIBS"
7264 if test "x$PTHREAD_CC" != "x"
7265 then :
7266 CC="$PTHREAD_CC"
7267 fi
7268 if test "x$PTHREAD_CXX" != "x"
7269 then :
7270 CXX="$PTHREAD_CXX"
7271 fi
7272 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7273 LIBS="$PTHREAD_LIBS $LIBS"
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7275 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h. */
7278
7279 /* Override any GCC internal prototype to avoid an error.
7280 Use char because int might match the return type of a GCC
7281 builtin and then its argument prototype would still apply.
7282 The 'extern "C"' is for builds by C++ compilers;
7283 although this is not generally supported in C code supporting it here
7284 has little cost and some practical benefit (sr 110532). */
7285 #ifdef __cplusplus
7286 extern "C"
7287 #endif
7288 char pthread_join (void);
7289 int
7290 main (void)
7291 {
7292 return pthread_join ();
7293 ;
7294 return 0;
7295 }
7296 _ACEOF
7297 if ac_fn_c_try_link "$LINENO"
7298 then :
7299 ax_pthread_ok=yes
7300 fi
7301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7302 conftest$ac_exeext conftest.$ac_ext
7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7304 printf "%s\n" "$ax_pthread_ok" >&6; }
7305 if test "x$ax_pthread_ok" = "xno"; then
7306 PTHREAD_LIBS=""
7307 PTHREAD_CFLAGS=""
7308 fi
7309 CC="$ax_pthread_save_CC"
7310 CFLAGS="$ax_pthread_save_CFLAGS"
7311 LIBS="$ax_pthread_save_LIBS"
7312 fi
7313
7314 # We must check for the threads library under a number of different
7315 # names; the ordering is very important because some systems
7316 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7317 # libraries is broken (non-POSIX).
7318
7319 # Create a list of thread flags to try. Items with a "," contain both
7320 # C compiler flags (before ",") and linker flags (after ","). Other items
7321 # starting with a "-" are C compiler flags, and remaining items are
7322 # library names, except for "none" which indicates that we try without
7323 # any flags at all, and "pthread-config" which is a program returning
7324 # the flags for the Pth emulation library.
7325
7326 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7327
7328 # The ordering *is* (sometimes) important. Some notes on the
7329 # individual items follow:
7330
7331 # pthreads: AIX (must check this before -lpthread)
7332 # none: in case threads are in libc; should be tried before -Kthread and
7333 # other compiler flags to prevent continual compiler warnings
7334 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7335 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7336 # (Note: HP C rejects this with "bad form for `-t' option")
7337 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7338 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7339 # doesn't hurt to check since this sometimes defines pthreads and
7340 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7341 # is present but should not be used directly; and before -mthreads,
7342 # because the compiler interprets this as "-mt" + "-hreads")
7343 # -mthreads: Mingw32/gcc, Lynx/gcc
7344 # pthread: Linux, etcetera
7345 # --thread-safe: KAI C++
7346 # pthread-config: use pthread-config program (for GNU Pth library)
7347
7348 case $host_os in
7349
7350 freebsd*)
7351
7352 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7353 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7354
7355 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7356 ;;
7357
7358 hpux*)
7359
7360 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7361 # multi-threading and also sets -lpthread."
7362
7363 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7364 ;;
7365
7366 openedition*)
7367
7368 # IBM z/OS requires a feature-test macro to be defined in order to
7369 # enable POSIX threads at all, so give the user a hint if this is
7370 # not set. (We don't define these ourselves, as they can affect
7371 # other portions of the system API in unpredictable ways.)
7372
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7375
7376 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7377 AX_PTHREAD_ZOS_MISSING
7378 # endif
7379
7380 _ACEOF
7381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7382 $EGREP_TRADITIONAL "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7383 then :
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7385 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7386 fi
7387 rm -rf conftest*
7388
7389 ;;
7390
7391 solaris*)
7392
7393 # On Solaris (at least, for some versions), libc contains stubbed
7394 # (non-functional) versions of the pthreads routines, so link-based
7395 # tests will erroneously succeed. (N.B.: The stubs are missing
7396 # pthread_cleanup_push, or rather a function called by this macro,
7397 # so we could check for that, but who knows whether they'll stub
7398 # that too in a future libc.) So we'll check first for the
7399 # standard Solaris way of linking pthreads (-mt -lpthread).
7400
7401 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7402 ;;
7403 esac
7404
7405 # Are we compiling with Clang?
7406
7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7408 printf %s "checking whether $CC is Clang... " >&6; }
7409 if test ${ax_cv_PTHREAD_CLANG+y}
7410 then :
7411 printf %s "(cached) " >&6
7412 else case e in #(
7413 e) ax_cv_PTHREAD_CLANG=no
7414 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7415 if test "x$GCC" = "xyes"; then
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7419 # if defined(__clang__) && defined(__llvm__)
7420 AX_PTHREAD_CC_IS_CLANG
7421 # endif
7422
7423 _ACEOF
7424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7425 $EGREP_TRADITIONAL "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7426 then :
7427 ax_cv_PTHREAD_CLANG=yes
7428 fi
7429 rm -rf conftest*
7430
7431 fi
7432 ;;
7433 esac
7434 fi
7435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7436 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7437 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7438
7439
7440 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7441
7442 # Note that for GCC and Clang -pthread generally implies -lpthread,
7443 # except when -nostdlib is passed.
7444 # This is problematic using libtool to build C++ shared libraries with pthread:
7445 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7446 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7447 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7448 # To solve this, first try -pthread together with -lpthread for GCC
7449
7450 if test "x$GCC" = "xyes"
7451 then :
7452 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7453 fi
7454
7455 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7456
7457 if test "x$ax_pthread_clang" = "xyes"
7458 then :
7459 ax_pthread_flags="-pthread,-lpthread -pthread"
7460 fi
7461
7462
7463 # The presence of a feature test macro requesting re-entrant function
7464 # definitions is, on some systems, a strong hint that pthreads support is
7465 # correctly enabled
7466
7467 case $host_os in
7468 darwin* | hpux* | linux* | osf* | solaris*)
7469 ax_pthread_check_macro="_REENTRANT"
7470 ;;
7471
7472 aix*)
7473 ax_pthread_check_macro="_THREAD_SAFE"
7474 ;;
7475
7476 *)
7477 ax_pthread_check_macro="--"
7478 ;;
7479 esac
7480 if test "x$ax_pthread_check_macro" = "x--"
7481 then :
7482 ax_pthread_check_cond=0
7483 else case e in #(
7484 e) ax_pthread_check_cond="!defined($ax_pthread_check_macro)" ;;
7485 esac
7486 fi
7487
7488
7489 if test "x$ax_pthread_ok" = "xno"; then
7490 for ax_pthread_try_flag in $ax_pthread_flags; do
7491
7492 case $ax_pthread_try_flag in
7493 none)
7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7495 printf %s "checking whether pthreads work without any flags... " >&6; }
7496 ;;
7497
7498 *,*)
7499 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7500 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7502 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7503 ;;
7504
7505 -*)
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7507 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7508 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7509 ;;
7510
7511 pthread-config)
7512 # Extract the first word of "pthread-config", so it can be a program name with args.
7513 set dummy pthread-config; ac_word=$2
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 printf %s "checking for $ac_word... " >&6; }
7516 if test ${ac_cv_prog_ax_pthread_config+y}
7517 then :
7518 printf %s "(cached) " >&6
7519 else case e in #(
7520 e) if test -n "$ax_pthread_config"; then
7521 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7522 else
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526 IFS=$as_save_IFS
7527 case $as_dir in #(((
7528 '') as_dir=./ ;;
7529 */) ;;
7530 *) as_dir=$as_dir/ ;;
7531 esac
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7534 ac_cv_prog_ax_pthread_config="yes"
7535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7536 break 2
7537 fi
7538 done
7539 done
7540 IFS=$as_save_IFS
7541
7542 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7543 fi ;;
7544 esac
7545 fi
7546 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7547 if test -n "$ax_pthread_config"; then
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7549 printf "%s\n" "$ax_pthread_config" >&6; }
7550 else
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552 printf "%s\n" "no" >&6; }
7553 fi
7554
7555
7556 if test "x$ax_pthread_config" = "xno"
7557 then :
7558 continue
7559 fi
7560 PTHREAD_CFLAGS="`pthread-config --cflags`"
7561 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7562 ;;
7563
7564 *)
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7566 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7567 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7568 ;;
7569 esac
7570
7571 ax_pthread_save_CFLAGS="$CFLAGS"
7572 ax_pthread_save_LIBS="$LIBS"
7573 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7574 LIBS="$PTHREAD_LIBS $LIBS"
7575
7576 # Check for various functions. We must include pthread.h,
7577 # since some functions may be macros. (On the Sequent, we
7578 # need a special flag -Kthread to make this header compile.)
7579 # We check for pthread_join because it is in -lpthread on IRIX
7580 # while pthread_create is in libc. We check for pthread_attr_init
7581 # due to DEC craziness with -lpthreads. We check for
7582 # pthread_cleanup_push because it is one of the few pthread
7583 # functions on Solaris that doesn't have a non-functional libc stub.
7584 # We try pthread_create on general principles.
7585
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7588 #include <pthread.h>
7589 # if $ax_pthread_check_cond
7590 # error "$ax_pthread_check_macro must be defined"
7591 # endif
7592 static void *some_global = NULL;
7593 static void routine(void *a)
7594 {
7595 /* To avoid any unused-parameter or
7596 unused-but-set-parameter warning. */
7597 some_global = a;
7598 }
7599 static void *start_routine(void *a) { return a; }
7600 int
7601 main (void)
7602 {
7603 pthread_t th; pthread_attr_t attr;
7604 pthread_create(&th, 0, start_routine, 0);
7605 pthread_join(th, 0);
7606 pthread_attr_init(&attr);
7607 pthread_cleanup_push(routine, 0);
7608 pthread_cleanup_pop(0) /* ; */
7609 ;
7610 return 0;
7611 }
7612 _ACEOF
7613 if ac_fn_c_try_link "$LINENO"
7614 then :
7615 ax_pthread_ok=yes
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7618 conftest$ac_exeext conftest.$ac_ext
7619
7620 CFLAGS="$ax_pthread_save_CFLAGS"
7621 LIBS="$ax_pthread_save_LIBS"
7622
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7624 printf "%s\n" "$ax_pthread_ok" >&6; }
7625 if test "x$ax_pthread_ok" = "xyes"
7626 then :
7627 break
7628 fi
7629
7630 PTHREAD_LIBS=""
7631 PTHREAD_CFLAGS=""
7632 done
7633 fi
7634
7635
7636 # Clang needs special handling, because older versions handle the -pthread
7637 # option in a rather... idiosyncratic way
7638
7639 if test "x$ax_pthread_clang" = "xyes"; then
7640
7641 # Clang takes -pthread; it has never supported any other flag
7642
7643 # (Note 1: This will need to be revisited if a system that Clang
7644 # supports has POSIX threads in a separate library. This tends not
7645 # to be the way of modern systems, but it's conceivable.)
7646
7647 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7648 # to get POSIX threads support; the API is always present and
7649 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7650 # -pthread does define _REENTRANT, and while the Darwin headers
7651 # ignore this macro, third-party headers might not.)
7652
7653 # However, older versions of Clang make a point of warning the user
7654 # that, in an invocation where only linking and no compilation is
7655 # taking place, the -pthread option has no effect ("argument unused
7656 # during compilation"). They expect -pthread to be passed in only
7657 # when source code is being compiled.
7658 #
7659 # Problem is, this is at odds with the way Automake and most other
7660 # C build frameworks function, which is that the same flags used in
7661 # compilation (CFLAGS) are also used in linking. Many systems
7662 # supported by AX_PTHREAD require exactly this for POSIX threads
7663 # support, and in fact it is often not straightforward to specify a
7664 # flag that is used only in the compilation phase and not in
7665 # linking. Such a scenario is extremely rare in practice.
7666 #
7667 # Even though use of the -pthread flag in linking would only print
7668 # a warning, this can be a nuisance for well-run software projects
7669 # that build with -Werror. So if the active version of Clang has
7670 # this misfeature, we search for an option to squash it.
7671
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7673 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7674 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7675 then :
7676 printf %s "(cached) " >&6
7677 else case e in #(
7678 e) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7679 # Create an alternate version of $ac_link that compiles and
7680 # links in two steps (.c -> .o, .o -> exe) instead of one
7681 # (.c -> exe), because the warning occurs only in the second
7682 # step
7683 ax_pthread_save_ac_link="$ac_link"
7684 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7685 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7686 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7687 ax_pthread_save_CFLAGS="$CFLAGS"
7688 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7689 if test "x$ax_pthread_try" = "xunknown"
7690 then :
7691 break
7692 fi
7693 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7694 ac_link="$ax_pthread_save_ac_link"
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 int main(void){return 0;}
7698 _ACEOF
7699 if ac_fn_c_try_link "$LINENO"
7700 then :
7701 ac_link="$ax_pthread_2step_ac_link"
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7704 int main(void){return 0;}
7705 _ACEOF
7706 if ac_fn_c_try_link "$LINENO"
7707 then :
7708 break
7709 fi
7710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7711 conftest$ac_exeext conftest.$ac_ext
7712
7713 fi
7714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7715 conftest$ac_exeext conftest.$ac_ext
7716 done
7717 ac_link="$ax_pthread_save_ac_link"
7718 CFLAGS="$ax_pthread_save_CFLAGS"
7719 if test "x$ax_pthread_try" = "x"
7720 then :
7721 ax_pthread_try=no
7722 fi
7723 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7724 ;;
7725 esac
7726 fi
7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7728 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7729
7730 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7731 no | unknown) ;;
7732 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7733 esac
7734
7735 fi # $ax_pthread_clang = yes
7736
7737
7738
7739 # Various other checks:
7740 if test "x$ax_pthread_ok" = "xyes"; then
7741 ax_pthread_save_CFLAGS="$CFLAGS"
7742 ax_pthread_save_LIBS="$LIBS"
7743 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7744 LIBS="$PTHREAD_LIBS $LIBS"
7745
7746 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7748 printf %s "checking for joinable pthread attribute... " >&6; }
7749 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7750 then :
7751 printf %s "(cached) " >&6
7752 else case e in #(
7753 e) ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7754 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7757 #include <pthread.h>
7758 int
7759 main (void)
7760 {
7761 int attr = $ax_pthread_attr; return attr /* ; */
7762 ;
7763 return 0;
7764 }
7765 _ACEOF
7766 if ac_fn_c_try_link "$LINENO"
7767 then :
7768 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7769 fi
7770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7771 conftest$ac_exeext conftest.$ac_ext
7772 done
7773 ;;
7774 esac
7775 fi
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7777 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7778 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7779 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7780 test "x$ax_pthread_joinable_attr_defined" != "xyes"
7781 then :
7782
7783 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7784
7785 ax_pthread_joinable_attr_defined=yes
7786
7787 fi
7788
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7790 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7791 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7792 then :
7793 printf %s "(cached) " >&6
7794 else case e in #(
7795 e) ax_cv_PTHREAD_SPECIAL_FLAGS=no
7796 case $host_os in
7797 solaris*)
7798 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7799 ;;
7800 esac
7801 ;;
7802 esac
7803 fi
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7805 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7806 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7807 test "x$ax_pthread_special_flags_added" != "xyes"
7808 then :
7809 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7810 ax_pthread_special_flags_added=yes
7811 fi
7812
7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7814 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7815 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7816 then :
7817 printf %s "(cached) " >&6
7818 else case e in #(
7819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 #include <pthread.h>
7822 int
7823 main (void)
7824 {
7825 int i = PTHREAD_PRIO_INHERIT;
7826 return i;
7827 ;
7828 return 0;
7829 }
7830 _ACEOF
7831 if ac_fn_c_try_link "$LINENO"
7832 then :
7833 ax_cv_PTHREAD_PRIO_INHERIT=yes
7834 else case e in #(
7835 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;;
7836 esac
7837 fi
7838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7839 conftest$ac_exeext conftest.$ac_ext
7840 ;;
7841 esac
7842 fi
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7844 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7845 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7846 test "x$ax_pthread_prio_inherit_defined" != "xyes"
7847 then :
7848
7849 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7850
7851 ax_pthread_prio_inherit_defined=yes
7852
7853 fi
7854
7855 CFLAGS="$ax_pthread_save_CFLAGS"
7856 LIBS="$ax_pthread_save_LIBS"
7857
7858 # More AIX lossage: compile with *_r variant
7859 if test "x$GCC" != "xyes"; then
7860 case $host_os in
7861 aix*)
7862 case "x/$CC" in #(
7863 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7864 #handle absolute path differently from PATH based program lookup
7865 case "x$CC" in #(
7866 x/*) :
7867
7868 if as_fn_executable_p ${CC}_r
7869 then :
7870 PTHREAD_CC="${CC}_r"
7871 fi
7872 if test "x${CXX}" != "x"
7873 then :
7874 if as_fn_executable_p ${CXX}_r
7875 then :
7876 PTHREAD_CXX="${CXX}_r"
7877 fi
7878 fi
7879 ;; #(
7880 *) :
7881
7882 for ac_prog in ${CC}_r
7883 do
7884 # Extract the first word of "$ac_prog", so it can be a program name with args.
7885 set dummy $ac_prog; ac_word=$2
7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 printf %s "checking for $ac_word... " >&6; }
7888 if test ${ac_cv_prog_PTHREAD_CC+y}
7889 then :
7890 printf %s "(cached) " >&6
7891 else case e in #(
7892 e) if test -n "$PTHREAD_CC"; then
7893 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7894 else
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7897 do
7898 IFS=$as_save_IFS
7899 case $as_dir in #(((
7900 '') as_dir=./ ;;
7901 */) ;;
7902 *) as_dir=$as_dir/ ;;
7903 esac
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_PTHREAD_CC="$ac_prog"
7907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910 done
7911 done
7912 IFS=$as_save_IFS
7913
7914 fi ;;
7915 esac
7916 fi
7917 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7918 if test -n "$PTHREAD_CC"; then
7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7920 printf "%s\n" "$PTHREAD_CC" >&6; }
7921 else
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 printf "%s\n" "no" >&6; }
7924 fi
7925
7926
7927 test -n "$PTHREAD_CC" && break
7928 done
7929 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7930
7931 if test "x${CXX}" != "x"
7932 then :
7933 for ac_prog in ${CXX}_r
7934 do
7935 # Extract the first word of "$ac_prog", so it can be a program name with args.
7936 set dummy $ac_prog; ac_word=$2
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 printf %s "checking for $ac_word... " >&6; }
7939 if test ${ac_cv_prog_PTHREAD_CXX+y}
7940 then :
7941 printf %s "(cached) " >&6
7942 else case e in #(
7943 e) if test -n "$PTHREAD_CXX"; then
7944 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7948 do
7949 IFS=$as_save_IFS
7950 case $as_dir in #(((
7951 '') as_dir=./ ;;
7952 */) ;;
7953 *) as_dir=$as_dir/ ;;
7954 esac
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_PTHREAD_CXX="$ac_prog"
7958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961 done
7962 done
7963 IFS=$as_save_IFS
7964
7965 fi ;;
7966 esac
7967 fi
7968 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7969 if test -n "$PTHREAD_CXX"; then
7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7971 printf "%s\n" "$PTHREAD_CXX" >&6; }
7972 else
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 printf "%s\n" "no" >&6; }
7975 fi
7976
7977
7978 test -n "$PTHREAD_CXX" && break
7979 done
7980 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7981
7982 fi
7983
7984 ;;
7985 esac
7986 ;; #(
7987 *) :
7988 ;;
7989 esac
7990 ;;
7991 esac
7992 fi
7993 fi
7994
7995 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7996 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7997
7998
7999
8000
8001
8002
8003 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8004 if test "x$ax_pthread_ok" = "xyes"; then
8005
8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PTHREAD thread model detected" >&5
8007 printf "%s\n" "$as_me: PTHREAD thread model detected" >&6;}
8008 LIBS="${PTHREAD_LIBS} ${LIBS}"
8009 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
8010 CC="${PTHREAD_CC}"
8011
8012 printf "%s\n" "#define USE_PTHREAD 1" >>confdefs.h
8013
8014
8015 :
8016 else
8017 ax_pthread_ok=no
8018
8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: FORK thread model detected" >&5
8020 printf "%s\n" "$as_me: FORK thread model detected" >&6;}
8021
8022 printf "%s\n" "#define USE_FORK 1" >>confdefs.h
8023
8024
8025 fi
8026 ac_ext=c
8027 ac_cpp='$CPP $CPPFLAGS'
8028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031
8032
8033 ;;
8034 esac
8035 fi
8036
8037
8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** compiler/linker flags" >&5
8039 printf "%s\n" "$as_me: **************************************** compiler/linker flags" >&6;}
8040 if test "${GCC}" = yes; then
8041
8042
8043
8044
8045 for flag in -Wall; do
8046 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8048 printf %s "checking whether C compiler accepts $flag... " >&6; }
8049 if eval test \${$as_CACHEVAR+y}
8050 then :
8051 printf %s "(cached) " >&6
8052 else case e in #(
8053 e)
8054 ax_check_save_flags=$CFLAGS
8055 CFLAGS="$CFLAGS $flag"
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058
8059 int
8060 main (void)
8061 {
8062
8063 ;
8064 return 0;
8065 }
8066 _ACEOF
8067 if ac_fn_c_try_compile "$LINENO"
8068 then :
8069 eval "$as_CACHEVAR=yes"
8070 else case e in #(
8071 e) eval "$as_CACHEVAR=no" ;;
8072 esac
8073 fi
8074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8075 CFLAGS=$ax_check_save_flags ;;
8076 esac
8077 fi
8078 eval ac_res=\$$as_CACHEVAR
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8080 printf "%s\n" "$ac_res" >&6; }
8081 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8082 then :
8083
8084 if test ${CFLAGS+y}
8085 then :
8086
8087 case " $CFLAGS " in #(
8088 *" $flag "*) :
8089 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
8090 (: CFLAGS already contains $flag) 2>&5
8091 ac_status=$?
8092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8093 test $ac_status = 0; } ;; #(
8094 *) :
8095
8096 as_fn_append CFLAGS " $flag"
8097 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8098 (: CFLAGS="$CFLAGS") 2>&5
8099 ac_status=$?
8100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8101 test $ac_status = 0; }
8102 ;;
8103 esac
8104
8105 else case e in #(
8106 e)
8107 CFLAGS=$flag
8108 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8109 (: CFLAGS="$CFLAGS") 2>&5
8110 ac_status=$?
8111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8112 test $ac_status = 0; }
8113 ;;
8114 esac
8115 fi
8116
8117 else case e in #(
8118 e) : ;;
8119 esac
8120 fi
8121
8122 done
8123
8124
8125
8126
8127
8128 for flag in -Wextra; do
8129 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8131 printf %s "checking whether C compiler accepts $flag... " >&6; }
8132 if eval test \${$as_CACHEVAR+y}
8133 then :
8134 printf %s "(cached) " >&6
8135 else case e in #(
8136 e)
8137 ax_check_save_flags=$CFLAGS
8138 CFLAGS="$CFLAGS $flag"
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8141
8142 int
8143 main (void)
8144 {
8145
8146 ;
8147 return 0;
8148 }
8149 _ACEOF
8150 if ac_fn_c_try_compile "$LINENO"
8151 then :
8152 eval "$as_CACHEVAR=yes"
8153 else case e in #(
8154 e) eval "$as_CACHEVAR=no" ;;
8155 esac
8156 fi
8157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8158 CFLAGS=$ax_check_save_flags ;;
8159 esac
8160 fi
8161 eval ac_res=\$$as_CACHEVAR
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8163 printf "%s\n" "$ac_res" >&6; }
8164 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8165 then :
8166
8167 if test ${CFLAGS+y}
8168 then :
8169
8170 case " $CFLAGS " in #(
8171 *" $flag "*) :
8172 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
8173 (: CFLAGS already contains $flag) 2>&5
8174 ac_status=$?
8175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8176 test $ac_status = 0; } ;; #(
8177 *) :
8178
8179 as_fn_append CFLAGS " $flag"
8180 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8181 (: CFLAGS="$CFLAGS") 2>&5
8182 ac_status=$?
8183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8184 test $ac_status = 0; }
8185 ;;
8186 esac
8187
8188 else case e in #(
8189 e)
8190 CFLAGS=$flag
8191 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8192 (: CFLAGS="$CFLAGS") 2>&5
8193 ac_status=$?
8194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8195 test $ac_status = 0; }
8196 ;;
8197 esac
8198 fi
8199
8200 else case e in #(
8201 e) : ;;
8202 esac
8203 fi
8204
8205 done
8206
8207
8208
8209
8210
8211 for flag in -Wpedantic; do
8212 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8214 printf %s "checking whether C compiler accepts $flag... " >&6; }
8215 if eval test \${$as_CACHEVAR+y}
8216 then :
8217 printf %s "(cached) " >&6
8218 else case e in #(
8219 e)
8220 ax_check_save_flags=$CFLAGS
8221 CFLAGS="$CFLAGS $flag"
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224
8225 int
8226 main (void)
8227 {
8228
8229 ;
8230 return 0;
8231 }
8232 _ACEOF
8233 if ac_fn_c_try_compile "$LINENO"
8234 then :
8235 eval "$as_CACHEVAR=yes"
8236 else case e in #(
8237 e) eval "$as_CACHEVAR=no" ;;
8238 esac
8239 fi
8240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8241 CFLAGS=$ax_check_save_flags ;;
8242 esac
8243 fi
8244 eval ac_res=\$$as_CACHEVAR
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8246 printf "%s\n" "$ac_res" >&6; }
8247 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8248 then :
8249
8250 if test ${CFLAGS+y}
8251 then :
8252
8253 case " $CFLAGS " in #(
8254 *" $flag "*) :
8255 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
8256 (: CFLAGS already contains $flag) 2>&5
8257 ac_status=$?
8258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8259 test $ac_status = 0; } ;; #(
8260 *) :
8261
8262 as_fn_append CFLAGS " $flag"
8263 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8264 (: CFLAGS="$CFLAGS") 2>&5
8265 ac_status=$?
8266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8267 test $ac_status = 0; }
8268 ;;
8269 esac
8270
8271 else case e in #(
8272 e)
8273 CFLAGS=$flag
8274 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8275 (: CFLAGS="$CFLAGS") 2>&5
8276 ac_status=$?
8277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8278 test $ac_status = 0; }
8279 ;;
8280 esac
8281 fi
8282
8283 else case e in #(
8284 e) : ;;
8285 esac
8286 fi
8287
8288 done
8289
8290
8291
8292
8293
8294 for flag in -Wformat=2; do
8295 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8297 printf %s "checking whether C compiler accepts $flag... " >&6; }
8298 if eval test \${$as_CACHEVAR+y}
8299 then :
8300 printf %s "(cached) " >&6
8301 else case e in #(
8302 e)
8303 ax_check_save_flags=$CFLAGS
8304 CFLAGS="$CFLAGS $flag"
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307
8308 int
8309 main (void)
8310 {
8311
8312 ;
8313 return 0;
8314 }
8315 _ACEOF
8316 if ac_fn_c_try_compile "$LINENO"
8317 then :
8318 eval "$as_CACHEVAR=yes"
8319 else case e in #(
8320 e) eval "$as_CACHEVAR=no" ;;
8321 esac
8322 fi
8323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8324 CFLAGS=$ax_check_save_flags ;;
8325 esac
8326 fi
8327 eval ac_res=\$$as_CACHEVAR
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8329 printf "%s\n" "$ac_res" >&6; }
8330 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8331 then :
8332
8333 if test ${CFLAGS+y}
8334 then :
8335
8336 case " $CFLAGS " in #(
8337 *" $flag "*) :
8338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
8339 (: CFLAGS already contains $flag) 2>&5
8340 ac_status=$?
8341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8342 test $ac_status = 0; } ;; #(
8343 *) :
8344
8345 as_fn_append CFLAGS " $flag"
8346 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8347 (: CFLAGS="$CFLAGS") 2>&5
8348 ac_status=$?
8349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8350 test $ac_status = 0; }
8351 ;;
8352 esac
8353
8354 else case e in #(
8355 e)
8356 CFLAGS=$flag
8357 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8358 (: CFLAGS="$CFLAGS") 2>&5
8359 ac_status=$?
8360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8361 test $ac_status = 0; }
8362 ;;
8363 esac
8364 fi
8365
8366 else case e in #(
8367 e) : ;;
8368 esac
8369 fi
8370
8371 done
8372
8373
8374
8375
8376
8377 for flag in -Wconversion; do
8378 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8380 printf %s "checking whether C compiler accepts $flag... " >&6; }
8381 if eval test \${$as_CACHEVAR+y}
8382 then :
8383 printf %s "(cached) " >&6
8384 else case e in #(
8385 e)
8386 ax_check_save_flags=$CFLAGS
8387 CFLAGS="$CFLAGS $flag"
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390
8391 int
8392 main (void)
8393 {
8394
8395 ;
8396 return 0;
8397 }
8398 _ACEOF
8399 if ac_fn_c_try_compile "$LINENO"
8400 then :
8401 eval "$as_CACHEVAR=yes"
8402 else case e in #(
8403 e) eval "$as_CACHEVAR=no" ;;
8404 esac
8405 fi
8406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8407 CFLAGS=$ax_check_save_flags ;;
8408 esac
8409 fi
8410 eval ac_res=\$$as_CACHEVAR
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8412 printf "%s\n" "$ac_res" >&6; }
8413 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8414 then :
8415
8416 if test ${CFLAGS+y}
8417 then :
8418
8419 case " $CFLAGS " in #(
8420 *" $flag "*) :
8421 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
8422 (: CFLAGS already contains $flag) 2>&5
8423 ac_status=$?
8424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8425 test $ac_status = 0; } ;; #(
8426 *) :
8427
8428 as_fn_append CFLAGS " $flag"
8429 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8430 (: CFLAGS="$CFLAGS") 2>&5
8431 ac_status=$?
8432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8433 test $ac_status = 0; }
8434 ;;
8435 esac
8436
8437 else case e in #(
8438 e)
8439 CFLAGS=$flag
8440 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8441 (: CFLAGS="$CFLAGS") 2>&5
8442 ac_status=$?
8443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8444 test $ac_status = 0; }
8445 ;;
8446 esac
8447 fi
8448
8449 else case e in #(
8450 e) : ;;
8451 esac
8452 fi
8453
8454 done
8455
8456
8457
8458
8459
8460 for flag in -Wno-deprecated-declarations; do
8461 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8463 printf %s "checking whether C compiler accepts $flag... " >&6; }
8464 if eval test \${$as_CACHEVAR+y}
8465 then :
8466 printf %s "(cached) " >&6
8467 else case e in #(
8468 e)
8469 ax_check_save_flags=$CFLAGS
8470 CFLAGS="$CFLAGS $flag"
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8473
8474 int
8475 main (void)
8476 {
8477
8478 ;
8479 return 0;
8480 }
8481 _ACEOF
8482 if ac_fn_c_try_compile "$LINENO"
8483 then :
8484 eval "$as_CACHEVAR=yes"
8485 else case e in #(
8486 e) eval "$as_CACHEVAR=no" ;;
8487 esac
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8490 CFLAGS=$ax_check_save_flags ;;
8491 esac
8492 fi
8493 eval ac_res=\$$as_CACHEVAR
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8495 printf "%s\n" "$ac_res" >&6; }
8496 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8497 then :
8498
8499 if test ${CFLAGS+y}
8500 then :
8501
8502 case " $CFLAGS " in #(
8503 *" $flag "*) :
8504 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
8505 (: CFLAGS already contains $flag) 2>&5
8506 ac_status=$?
8507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8508 test $ac_status = 0; } ;; #(
8509 *) :
8510
8511 as_fn_append CFLAGS " $flag"
8512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8513 (: CFLAGS="$CFLAGS") 2>&5
8514 ac_status=$?
8515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8516 test $ac_status = 0; }
8517 ;;
8518 esac
8519
8520 else case e in #(
8521 e)
8522 CFLAGS=$flag
8523 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8524 (: CFLAGS="$CFLAGS") 2>&5
8525 ac_status=$?
8526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8527 test $ac_status = 0; }
8528 ;;
8529 esac
8530 fi
8531
8532 else case e in #(
8533 e) : ;;
8534 esac
8535 fi
8536
8537 done
8538
8539
8540
8541
8542
8543 for flag in -Wno-unused-command-line-argument; do
8544 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8546 printf %s "checking whether C compiler accepts $flag... " >&6; }
8547 if eval test \${$as_CACHEVAR+y}
8548 then :
8549 printf %s "(cached) " >&6
8550 else case e in #(
8551 e)
8552 ax_check_save_flags=$CFLAGS
8553 CFLAGS="$CFLAGS $flag"
8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h. */
8556
8557 int
8558 main (void)
8559 {
8560
8561 ;
8562 return 0;
8563 }
8564 _ACEOF
8565 if ac_fn_c_try_compile "$LINENO"
8566 then :
8567 eval "$as_CACHEVAR=yes"
8568 else case e in #(
8569 e) eval "$as_CACHEVAR=no" ;;
8570 esac
8571 fi
8572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8573 CFLAGS=$ax_check_save_flags ;;
8574 esac
8575 fi
8576 eval ac_res=\$$as_CACHEVAR
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8578 printf "%s\n" "$ac_res" >&6; }
8579 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8580 then :
8581
8582 if test ${CFLAGS+y}
8583 then :
8584
8585 case " $CFLAGS " in #(
8586 *" $flag "*) :
8587 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
8588 (: CFLAGS already contains $flag) 2>&5
8589 ac_status=$?
8590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8591 test $ac_status = 0; } ;; #(
8592 *) :
8593
8594 as_fn_append CFLAGS " $flag"
8595 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8596 (: CFLAGS="$CFLAGS") 2>&5
8597 ac_status=$?
8598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8599 test $ac_status = 0; }
8600 ;;
8601 esac
8602
8603 else case e in #(
8604 e)
8605 CFLAGS=$flag
8606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8607 (: CFLAGS="$CFLAGS") 2>&5
8608 ac_status=$?
8609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8610 test $ac_status = 0; }
8611 ;;
8612 esac
8613 fi
8614
8615 else case e in #(
8616 e) : ;;
8617 esac
8618 fi
8619
8620 done
8621
8622
8623
8624
8625
8626 for flag in -fPIE; do
8627 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8629 printf %s "checking whether C compiler accepts $flag... " >&6; }
8630 if eval test \${$as_CACHEVAR+y}
8631 then :
8632 printf %s "(cached) " >&6
8633 else case e in #(
8634 e)
8635 ax_check_save_flags=$CFLAGS
8636 CFLAGS="$CFLAGS $flag"
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639
8640 int
8641 main (void)
8642 {
8643
8644 ;
8645 return 0;
8646 }
8647 _ACEOF
8648 if ac_fn_c_try_compile "$LINENO"
8649 then :
8650 eval "$as_CACHEVAR=yes"
8651 else case e in #(
8652 e) eval "$as_CACHEVAR=no" ;;
8653 esac
8654 fi
8655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8656 CFLAGS=$ax_check_save_flags ;;
8657 esac
8658 fi
8659 eval ac_res=\$$as_CACHEVAR
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8661 printf "%s\n" "$ac_res" >&6; }
8662 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8663 then :
8664
8665 if test ${CFLAGS+y}
8666 then :
8667
8668 case " $CFLAGS " in #(
8669 *" $flag "*) :
8670 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
8671 (: CFLAGS already contains $flag) 2>&5
8672 ac_status=$?
8673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8674 test $ac_status = 0; } ;; #(
8675 *) :
8676
8677 as_fn_append CFLAGS " $flag"
8678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8679 (: CFLAGS="$CFLAGS") 2>&5
8680 ac_status=$?
8681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8682 test $ac_status = 0; }
8683 ;;
8684 esac
8685
8686 else case e in #(
8687 e)
8688 CFLAGS=$flag
8689 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8690 (: CFLAGS="$CFLAGS") 2>&5
8691 ac_status=$?
8692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8693 test $ac_status = 0; }
8694 ;;
8695 esac
8696 fi
8697
8698 else case e in #(
8699 e) : ;;
8700 esac
8701 fi
8702
8703 done
8704
8705 case "${host}" in
8706 avr-*.* | powerpc-*-aix* | rl78-*.* | visium-*.*)
8707 ;;
8708 *)
8709
8710
8711
8712
8713 for flag in -fstack-protector-strong; do
8714 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8716 printf %s "checking whether C compiler accepts $flag... " >&6; }
8717 if eval test \${$as_CACHEVAR+y}
8718 then :
8719 printf %s "(cached) " >&6
8720 else case e in #(
8721 e)
8722 ax_check_save_flags=$CFLAGS
8723 CFLAGS="$CFLAGS $flag"
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726
8727 int
8728 main (void)
8729 {
8730
8731 ;
8732 return 0;
8733 }
8734 _ACEOF
8735 if ac_fn_c_try_compile "$LINENO"
8736 then :
8737 eval "$as_CACHEVAR=yes"
8738 else case e in #(
8739 e) eval "$as_CACHEVAR=no" ;;
8740 esac
8741 fi
8742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8743 CFLAGS=$ax_check_save_flags ;;
8744 esac
8745 fi
8746 eval ac_res=\$$as_CACHEVAR
8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8748 printf "%s\n" "$ac_res" >&6; }
8749 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8750 then :
8751
8752 if test ${CFLAGS+y}
8753 then :
8754
8755 case " $CFLAGS " in #(
8756 *" $flag "*) :
8757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
8758 (: CFLAGS already contains $flag) 2>&5
8759 ac_status=$?
8760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8761 test $ac_status = 0; } ;; #(
8762 *) :
8763
8764 as_fn_append CFLAGS " $flag"
8765 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8766 (: CFLAGS="$CFLAGS") 2>&5
8767 ac_status=$?
8768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8769 test $ac_status = 0; }
8770 ;;
8771 esac
8772
8773 else case e in #(
8774 e)
8775 CFLAGS=$flag
8776 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8777 (: CFLAGS="$CFLAGS") 2>&5
8778 ac_status=$?
8779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8780 test $ac_status = 0; }
8781 ;;
8782 esac
8783 fi
8784
8785 else case e in #(
8786 e) : ;;
8787 esac
8788 fi
8789
8790 done
8791
8792
8793
8794
8795
8796 for flag in -fcf-protection=full; do
8797 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8799 printf %s "checking whether C compiler accepts $flag... " >&6; }
8800 if eval test \${$as_CACHEVAR+y}
8801 then :
8802 printf %s "(cached) " >&6
8803 else case e in #(
8804 e)
8805 ax_check_save_flags=$CFLAGS
8806 CFLAGS="$CFLAGS $flag"
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8809
8810 int
8811 main (void)
8812 {
8813
8814 ;
8815 return 0;
8816 }
8817 _ACEOF
8818 if ac_fn_c_try_compile "$LINENO"
8819 then :
8820 eval "$as_CACHEVAR=yes"
8821 else case e in #(
8822 e) eval "$as_CACHEVAR=no" ;;
8823 esac
8824 fi
8825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8826 CFLAGS=$ax_check_save_flags ;;
8827 esac
8828 fi
8829 eval ac_res=\$$as_CACHEVAR
8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8831 printf "%s\n" "$ac_res" >&6; }
8832 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8833 then :
8834
8835 if test ${CFLAGS+y}
8836 then :
8837
8838 case " $CFLAGS " in #(
8839 *" $flag "*) :
8840 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
8841 (: CFLAGS already contains $flag) 2>&5
8842 ac_status=$?
8843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8844 test $ac_status = 0; } ;; #(
8845 *) :
8846
8847 as_fn_append CFLAGS " $flag"
8848 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8849 (: CFLAGS="$CFLAGS") 2>&5
8850 ac_status=$?
8851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8852 test $ac_status = 0; }
8853 ;;
8854 esac
8855
8856 else case e in #(
8857 e)
8858 CFLAGS=$flag
8859 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8860 (: CFLAGS="$CFLAGS") 2>&5
8861 ac_status=$?
8862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8863 test $ac_status = 0; }
8864 ;;
8865 esac
8866 fi
8867
8868 else case e in #(
8869 e) : ;;
8870 esac
8871 fi
8872
8873 done
8874
8875
8876
8877
8878
8879 for flag in -fstack-clash-protection; do
8880 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8882 printf %s "checking whether C compiler accepts $flag... " >&6; }
8883 if eval test \${$as_CACHEVAR+y}
8884 then :
8885 printf %s "(cached) " >&6
8886 else case e in #(
8887 e)
8888 ax_check_save_flags=$CFLAGS
8889 CFLAGS="$CFLAGS $flag"
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8892
8893 int
8894 main (void)
8895 {
8896
8897 ;
8898 return 0;
8899 }
8900 _ACEOF
8901 if ac_fn_c_try_compile "$LINENO"
8902 then :
8903 eval "$as_CACHEVAR=yes"
8904 else case e in #(
8905 e) eval "$as_CACHEVAR=no" ;;
8906 esac
8907 fi
8908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8909 CFLAGS=$ax_check_save_flags ;;
8910 esac
8911 fi
8912 eval ac_res=\$$as_CACHEVAR
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8914 printf "%s\n" "$ac_res" >&6; }
8915 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
8916 then :
8917
8918 if test ${CFLAGS+y}
8919 then :
8920
8921 case " $CFLAGS " in #(
8922 *" $flag "*) :
8923 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
8924 (: CFLAGS already contains $flag) 2>&5
8925 ac_status=$?
8926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8927 test $ac_status = 0; } ;; #(
8928 *) :
8929
8930 as_fn_append CFLAGS " $flag"
8931 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8932 (: CFLAGS="$CFLAGS") 2>&5
8933 ac_status=$?
8934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8935 test $ac_status = 0; }
8936 ;;
8937 esac
8938
8939 else case e in #(
8940 e)
8941 CFLAGS=$flag
8942 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8943 (: CFLAGS="$CFLAGS") 2>&5
8944 ac_status=$?
8945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8946 test $ac_status = 0; }
8947 ;;
8948 esac
8949 fi
8950
8951 else case e in #(
8952 e) : ;;
8953 esac
8954 fi
8955
8956 done
8957
8958 ;;
8959 esac
8960
8961
8962
8963
8964 for flag in -fPIE -pie; do
8965 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | sed "$as_sed_sh"`
8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
8967 printf %s "checking whether the linker accepts $flag... " >&6; }
8968 if eval test \${$as_CACHEVAR+y}
8969 then :
8970 printf %s "(cached) " >&6
8971 else case e in #(
8972 e)
8973 ax_check_save_flags=$LDFLAGS
8974 LDFLAGS="$LDFLAGS $flag"
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977
8978 int
8979 main (void)
8980 {
8981
8982 ;
8983 return 0;
8984 }
8985 _ACEOF
8986 if ac_fn_c_try_link "$LINENO"
8987 then :
8988 eval "$as_CACHEVAR=yes"
8989 else case e in #(
8990 e) eval "$as_CACHEVAR=no" ;;
8991 esac
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8994 conftest$ac_exeext conftest.$ac_ext
8995 LDFLAGS=$ax_check_save_flags ;;
8996 esac
8997 fi
8998 eval ac_res=\$$as_CACHEVAR
8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9000 printf "%s\n" "$ac_res" >&6; }
9001 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9002 then :
9003
9004 if test ${LDFLAGS+y}
9005 then :
9006
9007 case " $LDFLAGS " in #(
9008 *" $flag "*) :
9009 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5
9010 (: LDFLAGS already contains $flag) 2>&5
9011 ac_status=$?
9012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9013 test $ac_status = 0; } ;; #(
9014 *) :
9015
9016 as_fn_append LDFLAGS " $flag"
9017 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
9018 (: LDFLAGS="$LDFLAGS") 2>&5
9019 ac_status=$?
9020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9021 test $ac_status = 0; }
9022 ;;
9023 esac
9024
9025 else case e in #(
9026 e)
9027 LDFLAGS=$flag
9028 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
9029 (: LDFLAGS="$LDFLAGS") 2>&5
9030 ac_status=$?
9031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9032 test $ac_status = 0; }
9033 ;;
9034 esac
9035 fi
9036
9037 else case e in #(
9038 e) : ;;
9039 esac
9040 fi
9041
9042 done
9043
9044
9045
9046
9047
9048 for flag in -Wl,-z,relro; do
9049 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | sed "$as_sed_sh"`
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
9051 printf %s "checking whether the linker accepts $flag... " >&6; }
9052 if eval test \${$as_CACHEVAR+y}
9053 then :
9054 printf %s "(cached) " >&6
9055 else case e in #(
9056 e)
9057 ax_check_save_flags=$LDFLAGS
9058 LDFLAGS="$LDFLAGS $flag"
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h. */
9061
9062 int
9063 main (void)
9064 {
9065
9066 ;
9067 return 0;
9068 }
9069 _ACEOF
9070 if ac_fn_c_try_link "$LINENO"
9071 then :
9072 eval "$as_CACHEVAR=yes"
9073 else case e in #(
9074 e) eval "$as_CACHEVAR=no" ;;
9075 esac
9076 fi
9077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9078 conftest$ac_exeext conftest.$ac_ext
9079 LDFLAGS=$ax_check_save_flags ;;
9080 esac
9081 fi
9082 eval ac_res=\$$as_CACHEVAR
9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9084 printf "%s\n" "$ac_res" >&6; }
9085 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9086 then :
9087
9088 if test ${LDFLAGS+y}
9089 then :
9090
9091 case " $LDFLAGS " in #(
9092 *" $flag "*) :
9093 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5
9094 (: LDFLAGS already contains $flag) 2>&5
9095 ac_status=$?
9096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9097 test $ac_status = 0; } ;; #(
9098 *) :
9099
9100 as_fn_append LDFLAGS " $flag"
9101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
9102 (: LDFLAGS="$LDFLAGS") 2>&5
9103 ac_status=$?
9104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9105 test $ac_status = 0; }
9106 ;;
9107 esac
9108
9109 else case e in #(
9110 e)
9111 LDFLAGS=$flag
9112 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
9113 (: LDFLAGS="$LDFLAGS") 2>&5
9114 ac_status=$?
9115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9116 test $ac_status = 0; }
9117 ;;
9118 esac
9119 fi
9120
9121 else case e in #(
9122 e) : ;;
9123 esac
9124 fi
9125
9126 done
9127
9128
9129
9130
9131
9132 for flag in -Wl,-z,now; do
9133 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | sed "$as_sed_sh"`
9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
9135 printf %s "checking whether the linker accepts $flag... " >&6; }
9136 if eval test \${$as_CACHEVAR+y}
9137 then :
9138 printf %s "(cached) " >&6
9139 else case e in #(
9140 e)
9141 ax_check_save_flags=$LDFLAGS
9142 LDFLAGS="$LDFLAGS $flag"
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145
9146 int
9147 main (void)
9148 {
9149
9150 ;
9151 return 0;
9152 }
9153 _ACEOF
9154 if ac_fn_c_try_link "$LINENO"
9155 then :
9156 eval "$as_CACHEVAR=yes"
9157 else case e in #(
9158 e) eval "$as_CACHEVAR=no" ;;
9159 esac
9160 fi
9161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9162 conftest$ac_exeext conftest.$ac_ext
9163 LDFLAGS=$ax_check_save_flags ;;
9164 esac
9165 fi
9166 eval ac_res=\$$as_CACHEVAR
9167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9168 printf "%s\n" "$ac_res" >&6; }
9169 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9170 then :
9171
9172 if test ${LDFLAGS+y}
9173 then :
9174
9175 case " $LDFLAGS " in #(
9176 *" $flag "*) :
9177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5
9178 (: LDFLAGS already contains $flag) 2>&5
9179 ac_status=$?
9180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9181 test $ac_status = 0; } ;; #(
9182 *) :
9183
9184 as_fn_append LDFLAGS " $flag"
9185 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
9186 (: LDFLAGS="$LDFLAGS") 2>&5
9187 ac_status=$?
9188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9189 test $ac_status = 0; }
9190 ;;
9191 esac
9192
9193 else case e in #(
9194 e)
9195 LDFLAGS=$flag
9196 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
9197 (: LDFLAGS="$LDFLAGS") 2>&5
9198 ac_status=$?
9199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9200 test $ac_status = 0; }
9201 ;;
9202 esac
9203 fi
9204
9205 else case e in #(
9206 e) : ;;
9207 esac
9208 fi
9209
9210 done
9211
9212
9213
9214
9215
9216 for flag in -Wl,-z,noexecstack; do
9217 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | sed "$as_sed_sh"`
9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
9219 printf %s "checking whether the linker accepts $flag... " >&6; }
9220 if eval test \${$as_CACHEVAR+y}
9221 then :
9222 printf %s "(cached) " >&6
9223 else case e in #(
9224 e)
9225 ax_check_save_flags=$LDFLAGS
9226 LDFLAGS="$LDFLAGS $flag"
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229
9230 int
9231 main (void)
9232 {
9233
9234 ;
9235 return 0;
9236 }
9237 _ACEOF
9238 if ac_fn_c_try_link "$LINENO"
9239 then :
9240 eval "$as_CACHEVAR=yes"
9241 else case e in #(
9242 e) eval "$as_CACHEVAR=no" ;;
9243 esac
9244 fi
9245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9246 conftest$ac_exeext conftest.$ac_ext
9247 LDFLAGS=$ax_check_save_flags ;;
9248 esac
9249 fi
9250 eval ac_res=\$$as_CACHEVAR
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9252 printf "%s\n" "$ac_res" >&6; }
9253 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9254 then :
9255
9256 if test ${LDFLAGS+y}
9257 then :
9258
9259 case " $LDFLAGS " in #(
9260 *" $flag "*) :
9261 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5
9262 (: LDFLAGS already contains $flag) 2>&5
9263 ac_status=$?
9264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9265 test $ac_status = 0; } ;; #(
9266 *) :
9267
9268 as_fn_append LDFLAGS " $flag"
9269 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
9270 (: LDFLAGS="$LDFLAGS") 2>&5
9271 ac_status=$?
9272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9273 test $ac_status = 0; }
9274 ;;
9275 esac
9276
9277 else case e in #(
9278 e)
9279 LDFLAGS=$flag
9280 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
9281 (: LDFLAGS="$LDFLAGS") 2>&5
9282 ac_status=$?
9283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9284 test $ac_status = 0; }
9285 ;;
9286 esac
9287 fi
9288
9289 else case e in #(
9290 e) : ;;
9291 esac
9292 fi
9293
9294 done
9295
9296 fi
9297
9298
9299
9300
9301 for flag in -D_FORTIFY_SOURCE=2; do
9302 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9304 printf %s "checking whether C compiler accepts $flag... " >&6; }
9305 if eval test \${$as_CACHEVAR+y}
9306 then :
9307 printf %s "(cached) " >&6
9308 else case e in #(
9309 e)
9310 ax_check_save_flags=$CFLAGS
9311 CFLAGS="$CFLAGS $flag"
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9314
9315 int
9316 main (void)
9317 {
9318
9319 ;
9320 return 0;
9321 }
9322 _ACEOF
9323 if ac_fn_c_try_compile "$LINENO"
9324 then :
9325 eval "$as_CACHEVAR=yes"
9326 else case e in #(
9327 e) eval "$as_CACHEVAR=no" ;;
9328 esac
9329 fi
9330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9331 CFLAGS=$ax_check_save_flags ;;
9332 esac
9333 fi
9334 eval ac_res=\$$as_CACHEVAR
9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9336 printf "%s\n" "$ac_res" >&6; }
9337 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
9338 then :
9339
9340 if test ${CFLAGS+y}
9341 then :
9342
9343 case " $CFLAGS " in #(
9344 *" $flag "*) :
9345 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
9346 (: CFLAGS already contains $flag) 2>&5
9347 ac_status=$?
9348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9349 test $ac_status = 0; } ;; #(
9350 *) :
9351
9352 as_fn_append CFLAGS " $flag"
9353 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9354 (: CFLAGS="$CFLAGS") 2>&5
9355 ac_status=$?
9356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9357 test $ac_status = 0; }
9358 ;;
9359 esac
9360
9361 else case e in #(
9362 e)
9363 CFLAGS=$flag
9364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9365 (: CFLAGS="$CFLAGS") 2>&5
9366 ac_status=$?
9367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9368 test $ac_status = 0; }
9369 ;;
9370 esac
9371 fi
9372
9373 else case e in #(
9374 e) : ;;
9375 esac
9376 fi
9377
9378 done
9379
9380
9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** libtool" >&5
9382 printf "%s\n" "$as_me: **************************************** libtool" >&6;}
9383 case `pwd` in
9384 *\ * | *\ *)
9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9386 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9387 esac
9388
9389
9390
9391 macro_version='2.4.7'
9392 macro_revision='2.4.7'
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407 ltmain=$ac_aux_dir/ltmain.sh
9408
9409 # Backslashify metacharacters that are still active within
9410 # double-quoted strings.
9411 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9412
9413 # Same as above, but do not quote variable references.
9414 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9415
9416 # Sed substitution to delay expansion of an escaped shell variable in a
9417 # double_quote_subst'ed string.
9418 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9419
9420 # Sed substitution to delay expansion of an escaped single quote.
9421 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9422
9423 # Sed substitution to avoid accidental globbing in evaled expressions
9424 no_glob_subst='s/\*/\\\*/g'
9425
9426 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9427 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9428 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9429
9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9431 printf %s "checking how to print strings... " >&6; }
9432 # Test print first, because it will be a builtin if present.
9433 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9434 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9435 ECHO='print -r --'
9436 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9437 ECHO='printf %s\n'
9438 else
9439 # Use this function as a fallback that always works.
9440 func_fallback_echo ()
9441 {
9442 eval 'cat <<_LTECHO_EOF
9443 $1
9444 _LTECHO_EOF'
9445 }
9446 ECHO='func_fallback_echo'
9447 fi
9448
9449 # func_echo_all arg...
9450 # Invoke $ECHO with all args, space-separated.
9451 func_echo_all ()
9452 {
9453 $ECHO ""
9454 }
9455
9456 case $ECHO in
9457 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9458 printf "%s\n" "printf" >&6; } ;;
9459 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9460 printf "%s\n" "print -r" >&6; } ;;
9461 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9462 printf "%s\n" "cat" >&6; } ;;
9463 esac
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9479 printf %s "checking for a sed that does not truncate output... " >&6; }
9480 if test ${ac_cv_path_SED+y}
9481 then :
9482 printf %s "(cached) " >&6
9483 else case e in #(
9484 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9485 for ac_i in 1 2 3 4 5 6 7; do
9486 ac_script="$ac_script$as_nl$ac_script"
9487 done
9488 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9489 { ac_script=; unset ac_script;}
9490 if test -z "$SED"; then
9491 ac_path_SED_found=false
9492 # Loop through the user's path and test for each of PROGNAME-LIST
9493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9494 for as_dir in $PATH
9495 do
9496 IFS=$as_save_IFS
9497 case $as_dir in #(((
9498 '') as_dir=./ ;;
9499 */) ;;
9500 *) as_dir=$as_dir/ ;;
9501 esac
9502 for ac_prog in sed gsed
9503 do
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
9506 as_fn_executable_p "$ac_path_SED" || continue
9507 # Check for GNU ac_path_SED and select it if it is found.
9508 # Check for GNU $ac_path_SED
9509 case `"$ac_path_SED" --version 2>&1` in #(
9510 *GNU*)
9511 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9512 #(
9513 *)
9514 ac_count=0
9515 printf %s 0123456789 >"conftest.in"
9516 while :
9517 do
9518 cat "conftest.in" "conftest.in" >"conftest.tmp"
9519 mv "conftest.tmp" "conftest.in"
9520 cp "conftest.in" "conftest.nl"
9521 printf "%s\n" '' >> "conftest.nl"
9522 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9524 as_fn_arith $ac_count + 1 && ac_count=$as_val
9525 if test $ac_count -gt ${ac_path_SED_max-0}; then
9526 # Best one so far, save it but keep looking for a better one
9527 ac_cv_path_SED="$ac_path_SED"
9528 ac_path_SED_max=$ac_count
9529 fi
9530 # 10*(2^10) chars as input seems more than enough
9531 test $ac_count -gt 10 && break
9532 done
9533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9534 esac
9535
9536 $ac_path_SED_found && break 3
9537 done
9538 done
9539 done
9540 IFS=$as_save_IFS
9541 if test -z "$ac_cv_path_SED"; then
9542 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9543 fi
9544 else
9545 ac_cv_path_SED=$SED
9546 fi
9547 ;;
9548 esac
9549 fi
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9551 printf "%s\n" "$ac_cv_path_SED" >&6; }
9552 SED="$ac_cv_path_SED"
9553 rm -f conftest.sed
9554
9555 test -z "$SED" && SED=sed
9556 Xsed="$SED -e 1s/^X//"
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9569 printf %s "checking for grep that handles long lines and -e... " >&6; }
9570 if test ${ac_cv_path_GREP+y}
9571 then :
9572 printf %s "(cached) " >&6
9573 else case e in #(
9574 e) if test -z "$GREP"; then
9575 ac_path_GREP_found=false
9576 # Loop through the user's path and test for each of PROGNAME-LIST
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9579 do
9580 IFS=$as_save_IFS
9581 case $as_dir in #(((
9582 '') as_dir=./ ;;
9583 */) ;;
9584 *) as_dir=$as_dir/ ;;
9585 esac
9586 for ac_prog in grep ggrep
9587 do
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
9590 as_fn_executable_p "$ac_path_GREP" || continue
9591 # Check for GNU ac_path_GREP and select it if it is found.
9592 # Check for GNU $ac_path_GREP
9593 case `"$ac_path_GREP" --version 2>&1` in #(
9594 *GNU*)
9595 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9596 #(
9597 *)
9598 ac_count=0
9599 printf %s 0123456789 >"conftest.in"
9600 while :
9601 do
9602 cat "conftest.in" "conftest.in" >"conftest.tmp"
9603 mv "conftest.tmp" "conftest.in"
9604 cp "conftest.in" "conftest.nl"
9605 printf "%s\n" 'GREP' >> "conftest.nl"
9606 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9608 as_fn_arith $ac_count + 1 && ac_count=$as_val
9609 if test $ac_count -gt ${ac_path_GREP_max-0}; then
9610 # Best one so far, save it but keep looking for a better one
9611 ac_cv_path_GREP="$ac_path_GREP"
9612 ac_path_GREP_max=$ac_count
9613 fi
9614 # 10*(2^10) chars as input seems more than enough
9615 test $ac_count -gt 10 && break
9616 done
9617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9618 esac
9619
9620 $ac_path_GREP_found && break 3
9621 done
9622 done
9623 done
9624 IFS=$as_save_IFS
9625 if test -z "$ac_cv_path_GREP"; then
9626 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9627 fi
9628 else
9629 ac_cv_path_GREP=$GREP
9630 fi
9631 ;;
9632 esac
9633 fi
9634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9635 printf "%s\n" "$ac_cv_path_GREP" >&6; }
9636 GREP="$ac_cv_path_GREP"
9637
9638
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9640 printf %s "checking for egrep... " >&6; }
9641 if test ${ac_cv_path_EGREP+y}
9642 then :
9643 printf %s "(cached) " >&6
9644 else case e in #(
9645 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9646 then ac_cv_path_EGREP="$GREP -E"
9647 else
9648 if test -z "$EGREP"; then
9649 ac_path_EGREP_found=false
9650 # Loop through the user's path and test for each of PROGNAME-LIST
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9653 do
9654 IFS=$as_save_IFS
9655 case $as_dir in #(((
9656 '') as_dir=./ ;;
9657 */) ;;
9658 *) as_dir=$as_dir/ ;;
9659 esac
9660 for ac_prog in egrep
9661 do
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
9664 as_fn_executable_p "$ac_path_EGREP" || continue
9665 # Check for GNU ac_path_EGREP and select it if it is found.
9666 # Check for GNU $ac_path_EGREP
9667 case `"$ac_path_EGREP" --version 2>&1` in #(
9668 *GNU*)
9669 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9670 #(
9671 *)
9672 ac_count=0
9673 printf %s 0123456789 >"conftest.in"
9674 while :
9675 do
9676 cat "conftest.in" "conftest.in" >"conftest.tmp"
9677 mv "conftest.tmp" "conftest.in"
9678 cp "conftest.in" "conftest.nl"
9679 printf "%s\n" 'EGREP' >> "conftest.nl"
9680 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9682 as_fn_arith $ac_count + 1 && ac_count=$as_val
9683 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9684 # Best one so far, save it but keep looking for a better one
9685 ac_cv_path_EGREP="$ac_path_EGREP"
9686 ac_path_EGREP_max=$ac_count
9687 fi
9688 # 10*(2^10) chars as input seems more than enough
9689 test $ac_count -gt 10 && break
9690 done
9691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9692 esac
9693
9694 $ac_path_EGREP_found && break 3
9695 done
9696 done
9697 done
9698 IFS=$as_save_IFS
9699 if test -z "$ac_cv_path_EGREP"; then
9700 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9701 fi
9702 else
9703 ac_cv_path_EGREP=$EGREP
9704 fi
9705
9706 fi ;;
9707 esac
9708 fi
9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9710 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
9711 EGREP="$ac_cv_path_EGREP"
9712
9713 EGREP_TRADITIONAL=$EGREP
9714 ac_cv_path_EGREP_TRADITIONAL=$EGREP
9715
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9717 printf %s "checking for fgrep... " >&6; }
9718 if test ${ac_cv_path_FGREP+y}
9719 then :
9720 printf %s "(cached) " >&6
9721 else case e in #(
9722 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9723 then ac_cv_path_FGREP="$GREP -F"
9724 else
9725 if test -z "$FGREP"; then
9726 ac_path_FGREP_found=false
9727 # Loop through the user's path and test for each of PROGNAME-LIST
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9730 do
9731 IFS=$as_save_IFS
9732 case $as_dir in #(((
9733 '') as_dir=./ ;;
9734 */) ;;
9735 *) as_dir=$as_dir/ ;;
9736 esac
9737 for ac_prog in fgrep
9738 do
9739 for ac_exec_ext in '' $ac_executable_extensions; do
9740 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
9741 as_fn_executable_p "$ac_path_FGREP" || continue
9742 # Check for GNU ac_path_FGREP and select it if it is found.
9743 # Check for GNU $ac_path_FGREP
9744 case `"$ac_path_FGREP" --version 2>&1` in #(
9745 *GNU*)
9746 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9747 #(
9748 *)
9749 ac_count=0
9750 printf %s 0123456789 >"conftest.in"
9751 while :
9752 do
9753 cat "conftest.in" "conftest.in" >"conftest.tmp"
9754 mv "conftest.tmp" "conftest.in"
9755 cp "conftest.in" "conftest.nl"
9756 printf "%s\n" 'FGREP' >> "conftest.nl"
9757 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9759 as_fn_arith $ac_count + 1 && ac_count=$as_val
9760 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9761 # Best one so far, save it but keep looking for a better one
9762 ac_cv_path_FGREP="$ac_path_FGREP"
9763 ac_path_FGREP_max=$ac_count
9764 fi
9765 # 10*(2^10) chars as input seems more than enough
9766 test $ac_count -gt 10 && break
9767 done
9768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9769 esac
9770
9771 $ac_path_FGREP_found && break 3
9772 done
9773 done
9774 done
9775 IFS=$as_save_IFS
9776 if test -z "$ac_cv_path_FGREP"; then
9777 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9778 fi
9779 else
9780 ac_cv_path_FGREP=$FGREP
9781 fi
9782
9783 fi ;;
9784 esac
9785 fi
9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9787 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
9788 FGREP="$ac_cv_path_FGREP"
9789
9790
9791 test -z "$GREP" && GREP=grep
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811 # Check whether --with-gnu-ld was given.
9812 if test ${with_gnu_ld+y}
9813 then :
9814 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9815 else case e in #(
9816 e) with_gnu_ld=no ;;
9817 esac
9818 fi
9819
9820 ac_prog=ld
9821 if test yes = "$GCC"; then
9822 # Check if gcc -print-prog-name=ld gives a path.
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9824 printf %s "checking for ld used by $CC... " >&6; }
9825 case $host in
9826 *-*-mingw* | *-*-windows*)
9827 # gcc leaves a trailing carriage return, which upsets mingw
9828 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9829 *)
9830 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9831 esac
9832 case $ac_prog in
9833 # Accept absolute paths.
9834 [\\/]* | ?:[\\/]*)
9835 re_direlt='/[^/][^/]*/\.\./'
9836 # Canonicalize the pathname of ld
9837 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9838 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9839 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9840 done
9841 test -z "$LD" && LD=$ac_prog
9842 ;;
9843 "")
9844 # If it fails, then pretend we aren't using GCC.
9845 ac_prog=ld
9846 ;;
9847 *)
9848 # If it is relative, then search for the first ld in PATH.
9849 with_gnu_ld=unknown
9850 ;;
9851 esac
9852 elif test yes = "$with_gnu_ld"; then
9853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9854 printf %s "checking for GNU ld... " >&6; }
9855 else
9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9857 printf %s "checking for non-GNU ld... " >&6; }
9858 fi
9859 if test ${lt_cv_path_LD+y}
9860 then :
9861 printf %s "(cached) " >&6
9862 else case e in #(
9863 e) if test -z "$LD"; then
9864 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9865 for ac_dir in $PATH; do
9866 IFS=$lt_save_ifs
9867 test -z "$ac_dir" && ac_dir=.
9868 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9869 lt_cv_path_LD=$ac_dir/$ac_prog
9870 # Check to see if the program is GNU ld. I'd rather use --version,
9871 # but apparently some variants of GNU ld only accept -v.
9872 # Break only if it was the GNU/non-GNU ld that we prefer.
9873 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9874 *GNU* | *'with BFD'*)
9875 test no != "$with_gnu_ld" && break
9876 ;;
9877 *)
9878 test yes != "$with_gnu_ld" && break
9879 ;;
9880 esac
9881 fi
9882 done
9883 IFS=$lt_save_ifs
9884 else
9885 lt_cv_path_LD=$LD # Let the user override the test with a path.
9886 fi ;;
9887 esac
9888 fi
9889
9890 LD=$lt_cv_path_LD
9891 if test -n "$LD"; then
9892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9893 printf "%s\n" "$LD" >&6; }
9894 else
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 printf "%s\n" "no" >&6; }
9897 fi
9898 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9900 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9901 if test ${lt_cv_prog_gnu_ld+y}
9902 then :
9903 printf %s "(cached) " >&6
9904 else case e in #(
9905 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
9906 case `$LD -v 2>&1 </dev/null` in
9907 *GNU* | *'with BFD'*)
9908 lt_cv_prog_gnu_ld=yes
9909 ;;
9910 *)
9911 lt_cv_prog_gnu_ld=no
9912 ;;
9913 esac ;;
9914 esac
9915 fi
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9917 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9918 with_gnu_ld=$lt_cv_prog_gnu_ld
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9929 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9930 if test ${lt_cv_path_NM+y}
9931 then :
9932 printf %s "(cached) " >&6
9933 else case e in #(
9934 e) if test -n "$NM"; then
9935 # Let the user override the test.
9936 lt_cv_path_NM=$NM
9937 else
9938 lt_nm_to_check=${ac_tool_prefix}nm
9939 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9940 lt_nm_to_check="$lt_nm_to_check nm"
9941 fi
9942 for lt_tmp_nm in $lt_nm_to_check; do
9943 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9944 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9945 IFS=$lt_save_ifs
9946 test -z "$ac_dir" && ac_dir=.
9947 tmp_nm=$ac_dir/$lt_tmp_nm
9948 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9949 # Check to see if the nm accepts a BSD-compat flag.
9950 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9951 # nm: unknown option "B" ignored
9952 # Tru64's nm complains that /dev/null is an invalid object file
9953 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9954 case $build_os in
9955 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
9956 *) lt_bad_file=/dev/null ;;
9957 esac
9958 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
9959 *$lt_bad_file* | *'Invalid file or object type'*)
9960 lt_cv_path_NM="$tmp_nm -B"
9961 break 2
9962 ;;
9963 *)
9964 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
9965 */dev/null*)
9966 lt_cv_path_NM="$tmp_nm -p"
9967 break 2
9968 ;;
9969 *)
9970 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9971 continue # so that we can try to find one that supports BSD flags
9972 ;;
9973 esac
9974 ;;
9975 esac
9976 fi
9977 done
9978 IFS=$lt_save_ifs
9979 done
9980 : ${lt_cv_path_NM=no}
9981 fi ;;
9982 esac
9983 fi
9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9985 printf "%s\n" "$lt_cv_path_NM" >&6; }
9986 if test no != "$lt_cv_path_NM"; then
9987 NM=$lt_cv_path_NM
9988 else
9989 # Didn't find any BSD compatible name lister, look for dumpbin.
9990 if test -n "$DUMPBIN"; then :
9991 # Let the user override the test.
9992 else
9993 if test -n "$ac_tool_prefix"; then
9994 for ac_prog in dumpbin "link -dump"
9995 do
9996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999 printf %s "checking for $ac_word... " >&6; }
10000 if test ${ac_cv_prog_DUMPBIN+y}
10001 then :
10002 printf %s "(cached) " >&6
10003 else case e in #(
10004 e) if test -n "$DUMPBIN"; then
10005 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10006 else
10007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008 for as_dir in $PATH
10009 do
10010 IFS=$as_save_IFS
10011 case $as_dir in #(((
10012 '') as_dir=./ ;;
10013 */) ;;
10014 *) as_dir=$as_dir/ ;;
10015 esac
10016 for ac_exec_ext in '' $ac_executable_extensions; do
10017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10018 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10020 break 2
10021 fi
10022 done
10023 done
10024 IFS=$as_save_IFS
10025
10026 fi ;;
10027 esac
10028 fi
10029 DUMPBIN=$ac_cv_prog_DUMPBIN
10030 if test -n "$DUMPBIN"; then
10031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10032 printf "%s\n" "$DUMPBIN" >&6; }
10033 else
10034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 printf "%s\n" "no" >&6; }
10036 fi
10037
10038
10039 test -n "$DUMPBIN" && break
10040 done
10041 fi
10042 if test -z "$DUMPBIN"; then
10043 ac_ct_DUMPBIN=$DUMPBIN
10044 for ac_prog in dumpbin "link -dump"
10045 do
10046 # Extract the first word of "$ac_prog", so it can be a program name with args.
10047 set dummy $ac_prog; ac_word=$2
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049 printf %s "checking for $ac_word... " >&6; }
10050 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
10051 then :
10052 printf %s "(cached) " >&6
10053 else case e in #(
10054 e) if test -n "$ac_ct_DUMPBIN"; then
10055 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10056 else
10057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058 for as_dir in $PATH
10059 do
10060 IFS=$as_save_IFS
10061 case $as_dir in #(((
10062 '') as_dir=./ ;;
10063 */) ;;
10064 *) as_dir=$as_dir/ ;;
10065 esac
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10068 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10070 break 2
10071 fi
10072 done
10073 done
10074 IFS=$as_save_IFS
10075
10076 fi ;;
10077 esac
10078 fi
10079 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10080 if test -n "$ac_ct_DUMPBIN"; then
10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10082 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
10083 else
10084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10085 printf "%s\n" "no" >&6; }
10086 fi
10087
10088
10089 test -n "$ac_ct_DUMPBIN" && break
10090 done
10091
10092 if test "x$ac_ct_DUMPBIN" = x; then
10093 DUMPBIN=":"
10094 else
10095 case $cross_compiling:$ac_tool_warned in
10096 yes:)
10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10098 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10099 ac_tool_warned=yes ;;
10100 esac
10101 DUMPBIN=$ac_ct_DUMPBIN
10102 fi
10103 fi
10104
10105 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
10106 *COFF*)
10107 DUMPBIN="$DUMPBIN -symbols -headers"
10108 ;;
10109 *)
10110 DUMPBIN=:
10111 ;;
10112 esac
10113 fi
10114
10115 if test : != "$DUMPBIN"; then
10116 NM=$DUMPBIN
10117 fi
10118 fi
10119 test -z "$NM" && NM=nm
10120
10121
10122
10123
10124
10125
10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10127 printf %s "checking the name lister ($NM) interface... " >&6; }
10128 if test ${lt_cv_nm_interface+y}
10129 then :
10130 printf %s "(cached) " >&6
10131 else case e in #(
10132 e) lt_cv_nm_interface="BSD nm"
10133 echo "int some_variable = 0;" > conftest.$ac_ext
10134 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
10135 (eval "$ac_compile" 2>conftest.err)
10136 cat conftest.err >&5
10137 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10138 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10139 cat conftest.err >&5
10140 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
10141 cat conftest.out >&5
10142 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10143 lt_cv_nm_interface="MS dumpbin"
10144 fi
10145 rm -f conftest* ;;
10146 esac
10147 fi
10148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10149 printf "%s\n" "$lt_cv_nm_interface" >&6; }
10150
10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10152 printf %s "checking whether ln -s works... " >&6; }
10153 LN_S=$as_ln_s
10154 if test "$LN_S" = "ln -s"; then
10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10156 printf "%s\n" "yes" >&6; }
10157 else
10158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10159 printf "%s\n" "no, using $LN_S" >&6; }
10160 fi
10161
10162 # find the maximum length of command line arguments
10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10164 printf %s "checking the maximum length of command line arguments... " >&6; }
10165 if test ${lt_cv_sys_max_cmd_len+y}
10166 then :
10167 printf %s "(cached) " >&6
10168 else case e in #(
10169 e) i=0
10170 teststring=ABCD
10171
10172 case $build_os in
10173 msdosdjgpp*)
10174 # On DJGPP, this test can blow up pretty badly due to problems in libc
10175 # (any single argument exceeding 2000 bytes causes a buffer overrun
10176 # during glob expansion). Even if it were fixed, the result of this
10177 # check would be larger than it should be.
10178 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10179 ;;
10180
10181 gnu* | ironclad*)
10182 # Under GNU Hurd and Ironclad, this test is not required because there
10183 # is no limit to the length of command line arguments.
10184 # Libtool will interpret -1 as no limit whatsoever
10185 lt_cv_sys_max_cmd_len=-1;
10186 ;;
10187
10188 cygwin* | mingw* | windows* | cegcc*)
10189 # On Win9x/ME, this test blows up -- it succeeds, but takes
10190 # about 5 minutes as the teststring grows exponentially.
10191 # Worse, since 9x/ME are not pre-emptively multitasking,
10192 # you end up with a "frozen" computer, even though with patience
10193 # the test eventually succeeds (with a max line length of 256k).
10194 # Instead, let's just punt: use the minimum linelength reported by
10195 # all of the supported platforms: 8192 (on NT/2K/XP).
10196 lt_cv_sys_max_cmd_len=8192;
10197 ;;
10198
10199 mint*)
10200 # On MiNT this can take a long time and run out of memory.
10201 lt_cv_sys_max_cmd_len=8192;
10202 ;;
10203
10204 amigaos*)
10205 # On AmigaOS with pdksh, this test takes hours, literally.
10206 # So we just punt and use a minimum line length of 8192.
10207 lt_cv_sys_max_cmd_len=8192;
10208 ;;
10209
10210 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
10211 # This has been around since 386BSD, at least. Likely further.
10212 if test -x /sbin/sysctl; then
10213 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10214 elif test -x /usr/sbin/sysctl; then
10215 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10216 else
10217 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10218 fi
10219 # And add a safety zone
10220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10222 ;;
10223
10224 interix*)
10225 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10226 lt_cv_sys_max_cmd_len=196608
10227 ;;
10228
10229 os2*)
10230 # The test takes a long time on OS/2.
10231 lt_cv_sys_max_cmd_len=8192
10232 ;;
10233
10234 osf*)
10235 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10236 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10237 # nice to cause kernel panics so lets avoid the loop below.
10238 # First set a reasonable default.
10239 lt_cv_sys_max_cmd_len=16384
10240 #
10241 if test -x /sbin/sysconfig; then
10242 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10243 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10244 esac
10245 fi
10246 ;;
10247 sco3.2v5*)
10248 lt_cv_sys_max_cmd_len=102400
10249 ;;
10250 sysv5* | sco5v6* | sysv4.2uw2*)
10251 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10252 if test -n "$kargmax"; then
10253 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
10254 else
10255 lt_cv_sys_max_cmd_len=32768
10256 fi
10257 ;;
10258 *)
10259 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10260 if test -n "$lt_cv_sys_max_cmd_len" && \
10261 test undefined != "$lt_cv_sys_max_cmd_len"; then
10262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10264 else
10265 # Make teststring a little bigger before we do anything with it.
10266 # a 1K string should be a reasonable start.
10267 for i in 1 2 3 4 5 6 7 8; do
10268 teststring=$teststring$teststring
10269 done
10270 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10271 # If test is not a shell built-in, we'll probably end up computing a
10272 # maximum length that is only half of the actual maximum length, but
10273 # we can't tell.
10274 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
10275 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10276 test 17 != "$i" # 1/2 MB should be enough
10277 do
10278 i=`expr $i + 1`
10279 teststring=$teststring$teststring
10280 done
10281 # Only check the string length outside the loop.
10282 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10283 teststring=
10284 # Add a significant safety factor because C++ compilers can tack on
10285 # massive amounts of additional arguments before passing them to the
10286 # linker. It appears as though 1/2 is a usable value.
10287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10288 fi
10289 ;;
10290 esac
10291 ;;
10292 esac
10293 fi
10294
10295 if test -n "$lt_cv_sys_max_cmd_len"; then
10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10297 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
10298 else
10299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
10300 printf "%s\n" "none" >&6; }
10301 fi
10302 max_cmd_len=$lt_cv_sys_max_cmd_len
10303
10304
10305
10306
10307
10308
10309 : ${CP="cp -f"}
10310 : ${MV="mv -f"}
10311 : ${RM="rm -f"}
10312
10313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10314 lt_unset=unset
10315 else
10316 lt_unset=false
10317 fi
10318
10319
10320
10321
10322
10323 # test EBCDIC or ASCII
10324 case `echo X|tr X '\101'` in
10325 A) # ASCII based system
10326 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10327 lt_SP2NL='tr \040 \012'
10328 lt_NL2SP='tr \015\012 \040\040'
10329 ;;
10330 *) # EBCDIC based system
10331 lt_SP2NL='tr \100 \n'
10332 lt_NL2SP='tr \r\n \100\100'
10333 ;;
10334 esac
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10345 printf %s "checking how to convert $build file names to $host format... " >&6; }
10346 if test ${lt_cv_to_host_file_cmd+y}
10347 then :
10348 printf %s "(cached) " >&6
10349 else case e in #(
10350 e) case $host in
10351 *-*-mingw* )
10352 case $build in
10353 *-*-mingw* | *-*-windows* ) # actually msys
10354 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10355 ;;
10356 *-*-cygwin* )
10357 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10358 ;;
10359 * ) # otherwise, assume *nix
10360 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10361 ;;
10362 esac
10363 ;;
10364 *-*-cygwin* )
10365 case $build in
10366 *-*-mingw* | *-*-windows* ) # actually msys
10367 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10368 ;;
10369 *-*-cygwin* )
10370 lt_cv_to_host_file_cmd=func_convert_file_noop
10371 ;;
10372 * ) # otherwise, assume *nix
10373 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10374 ;;
10375 esac
10376 ;;
10377 * ) # unhandled hosts (and "normal" native builds)
10378 lt_cv_to_host_file_cmd=func_convert_file_noop
10379 ;;
10380 esac
10381 ;;
10382 esac
10383 fi
10384
10385 to_host_file_cmd=$lt_cv_to_host_file_cmd
10386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10387 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
10388
10389
10390
10391
10392
10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10394 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
10395 if test ${lt_cv_to_tool_file_cmd+y}
10396 then :
10397 printf %s "(cached) " >&6
10398 else case e in #(
10399 e) #assume ordinary cross tools, or native build.
10400 lt_cv_to_tool_file_cmd=func_convert_file_noop
10401 case $host in
10402 *-*-mingw* | *-*-windows* )
10403 case $build in
10404 *-*-mingw* | *-*-windows* ) # actually msys
10405 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10406 ;;
10407 esac
10408 ;;
10409 esac
10410 ;;
10411 esac
10412 fi
10413
10414 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10416 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
10417
10418
10419
10420
10421
10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10423 printf %s "checking for $LD option to reload object files... " >&6; }
10424 if test ${lt_cv_ld_reload_flag+y}
10425 then :
10426 printf %s "(cached) " >&6
10427 else case e in #(
10428 e) lt_cv_ld_reload_flag='-r' ;;
10429 esac
10430 fi
10431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10432 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
10433 reload_flag=$lt_cv_ld_reload_flag
10434 case $reload_flag in
10435 "" | " "*) ;;
10436 *) reload_flag=" $reload_flag" ;;
10437 esac
10438 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10439 case $host_os in
10440 cygwin* | mingw* | windows* | pw32* | cegcc*)
10441 if test yes != "$GCC"; then
10442 reload_cmds=false
10443 fi
10444 ;;
10445 darwin*)
10446 if test yes = "$GCC"; then
10447 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
10448 else
10449 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10450 fi
10451 ;;
10452 esac
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462 # Extract the first word of "file", so it can be a program name with args.
10463 set dummy file; ac_word=$2
10464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 printf %s "checking for $ac_word... " >&6; }
10466 if test ${ac_cv_prog_FILECMD+y}
10467 then :
10468 printf %s "(cached) " >&6
10469 else case e in #(
10470 e) if test -n "$FILECMD"; then
10471 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
10472 else
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10475 do
10476 IFS=$as_save_IFS
10477 case $as_dir in #(((
10478 '') as_dir=./ ;;
10479 */) ;;
10480 *) as_dir=$as_dir/ ;;
10481 esac
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10484 ac_cv_prog_FILECMD="file"
10485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10486 break 2
10487 fi
10488 done
10489 done
10490 IFS=$as_save_IFS
10491
10492 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
10493 fi ;;
10494 esac
10495 fi
10496 FILECMD=$ac_cv_prog_FILECMD
10497 if test -n "$FILECMD"; then
10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
10499 printf "%s\n" "$FILECMD" >&6; }
10500 else
10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502 printf "%s\n" "no" >&6; }
10503 fi
10504
10505
10506
10507
10508
10509
10510
10511
10512 if test -n "$ac_tool_prefix"; then
10513 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10514 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516 printf %s "checking for $ac_word... " >&6; }
10517 if test ${ac_cv_prog_OBJDUMP+y}
10518 then :
10519 printf %s "(cached) " >&6
10520 else case e in #(
10521 e) if test -n "$OBJDUMP"; then
10522 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10523 else
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10526 do
10527 IFS=$as_save_IFS
10528 case $as_dir in #(((
10529 '') as_dir=./ ;;
10530 */) ;;
10531 *) as_dir=$as_dir/ ;;
10532 esac
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10535 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10537 break 2
10538 fi
10539 done
10540 done
10541 IFS=$as_save_IFS
10542
10543 fi ;;
10544 esac
10545 fi
10546 OBJDUMP=$ac_cv_prog_OBJDUMP
10547 if test -n "$OBJDUMP"; then
10548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10549 printf "%s\n" "$OBJDUMP" >&6; }
10550 else
10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552 printf "%s\n" "no" >&6; }
10553 fi
10554
10555
10556 fi
10557 if test -z "$ac_cv_prog_OBJDUMP"; then
10558 ac_ct_OBJDUMP=$OBJDUMP
10559 # Extract the first word of "objdump", so it can be a program name with args.
10560 set dummy objdump; ac_word=$2
10561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 printf %s "checking for $ac_word... " >&6; }
10563 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10564 then :
10565 printf %s "(cached) " >&6
10566 else case e in #(
10567 e) if test -n "$ac_ct_OBJDUMP"; then
10568 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10569 else
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10572 do
10573 IFS=$as_save_IFS
10574 case $as_dir in #(((
10575 '') as_dir=./ ;;
10576 */) ;;
10577 *) as_dir=$as_dir/ ;;
10578 esac
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10581 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10583 break 2
10584 fi
10585 done
10586 done
10587 IFS=$as_save_IFS
10588
10589 fi ;;
10590 esac
10591 fi
10592 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10593 if test -n "$ac_ct_OBJDUMP"; then
10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10595 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10596 else
10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 printf "%s\n" "no" >&6; }
10599 fi
10600
10601 if test "x$ac_ct_OBJDUMP" = x; then
10602 OBJDUMP="false"
10603 else
10604 case $cross_compiling:$ac_tool_warned in
10605 yes:)
10606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10607 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10608 ac_tool_warned=yes ;;
10609 esac
10610 OBJDUMP=$ac_ct_OBJDUMP
10611 fi
10612 else
10613 OBJDUMP="$ac_cv_prog_OBJDUMP"
10614 fi
10615
10616 test -z "$OBJDUMP" && OBJDUMP=objdump
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10627 printf %s "checking how to recognize dependent libraries... " >&6; }
10628 if test ${lt_cv_deplibs_check_method+y}
10629 then :
10630 printf %s "(cached) " >&6
10631 else case e in #(
10632 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
10633 lt_cv_file_magic_test_file=
10634 lt_cv_deplibs_check_method='unknown'
10635 # Need to set the preceding variable on all platforms that support
10636 # interlibrary dependencies.
10637 # 'none' -- dependencies not supported.
10638 # 'unknown' -- same as none, but documents that we really don't know.
10639 # 'pass_all' -- all dependencies passed with no checks.
10640 # 'file_magic [[regex]]' -- check by looking for files in library path
10641 # that responds to the $file_magic_cmd with a given extended regex.
10642 # If you have 'file' or equivalent on your system and you're not sure
10643 # whether 'pass_all' will *always* work, you probably want this one.
10644
10645 case $host_os in
10646 aix[4-9]*)
10647 lt_cv_deplibs_check_method=pass_all
10648 ;;
10649
10650 beos*)
10651 lt_cv_deplibs_check_method=pass_all
10652 ;;
10653
10654 bsdi[45]*)
10655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10656 lt_cv_file_magic_cmd='$FILECMD -L'
10657 lt_cv_file_magic_test_file=/shlib/libc.so
10658 ;;
10659
10660 cygwin*)
10661 # func_win32_libid is a shell function defined in ltmain.sh
10662 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10663 lt_cv_file_magic_cmd='func_win32_libid'
10664 ;;
10665
10666 mingw* | windows* | pw32*)
10667 # Base MSYS/MinGW do not provide the 'file' command needed by
10668 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10669 # unless we find 'file', for example because we are cross-compiling.
10670 if ( file / ) >/dev/null 2>&1; then
10671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10672 lt_cv_file_magic_cmd='func_win32_libid'
10673 else
10674 # Keep this pattern in sync with the one in func_win32_libid.
10675 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
10676 lt_cv_file_magic_cmd='$OBJDUMP -f'
10677 fi
10678 ;;
10679
10680 cegcc*)
10681 # use the weaker test based on 'objdump'. See mingw*.
10682 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10683 lt_cv_file_magic_cmd='$OBJDUMP -f'
10684 ;;
10685
10686 darwin* | rhapsody*)
10687 lt_cv_deplibs_check_method=pass_all
10688 ;;
10689
10690 freebsd* | dragonfly* | midnightbsd*)
10691 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10692 case $host_cpu in
10693 i*86 )
10694 # Not sure whether the presence of OpenBSD here was a mistake.
10695 # Let's accept both of them until this is cleared up.
10696 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10697 lt_cv_file_magic_cmd=$FILECMD
10698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10699 ;;
10700 esac
10701 else
10702 lt_cv_deplibs_check_method=pass_all
10703 fi
10704 ;;
10705
10706 haiku*)
10707 lt_cv_deplibs_check_method=pass_all
10708 ;;
10709
10710 hpux10.20* | hpux11*)
10711 lt_cv_file_magic_cmd=$FILECMD
10712 case $host_cpu in
10713 ia64*)
10714 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10715 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10716 ;;
10717 hppa*64*)
10718 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]'
10719 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10720 ;;
10721 *)
10722 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10723 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10724 ;;
10725 esac
10726 ;;
10727
10728 interix[3-9]*)
10729 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10731 ;;
10732
10733 irix5* | irix6* | nonstopux*)
10734 case $LD in
10735 *-32|*"-32 ") libmagic=32-bit;;
10736 *-n32|*"-n32 ") libmagic=N32;;
10737 *-64|*"-64 ") libmagic=64-bit;;
10738 *) libmagic=never-match;;
10739 esac
10740 lt_cv_deplibs_check_method=pass_all
10741 ;;
10742
10743 # This must be glibc/ELF.
10744 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10745 lt_cv_deplibs_check_method=pass_all
10746 ;;
10747
10748 *-mlibc)
10749 lt_cv_deplibs_check_method=pass_all
10750 ;;
10751
10752 netbsd* | netbsdelf*-gnu)
10753 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10755 else
10756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10757 fi
10758 ;;
10759
10760 newos6*)
10761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10762 lt_cv_file_magic_cmd=$FILECMD
10763 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10764 ;;
10765
10766 *nto* | *qnx*)
10767 lt_cv_deplibs_check_method=pass_all
10768 ;;
10769
10770 openbsd*)
10771 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10773 else
10774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10775 fi
10776 ;;
10777
10778 osf3* | osf4* | osf5*)
10779 lt_cv_deplibs_check_method=pass_all
10780 ;;
10781
10782 rdos*)
10783 lt_cv_deplibs_check_method=pass_all
10784 ;;
10785
10786 serenity*)
10787 lt_cv_deplibs_check_method=pass_all
10788 ;;
10789
10790 solaris*)
10791 lt_cv_deplibs_check_method=pass_all
10792 ;;
10793
10794 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10795 lt_cv_deplibs_check_method=pass_all
10796 ;;
10797
10798 sysv4 | sysv4.3*)
10799 case $host_vendor in
10800 motorola)
10801 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]'
10802 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10803 ;;
10804 ncr)
10805 lt_cv_deplibs_check_method=pass_all
10806 ;;
10807 sequent)
10808 lt_cv_file_magic_cmd='/bin/file'
10809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10810 ;;
10811 sni)
10812 lt_cv_file_magic_cmd='/bin/file'
10813 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10814 lt_cv_file_magic_test_file=/lib/libc.so
10815 ;;
10816 siemens)
10817 lt_cv_deplibs_check_method=pass_all
10818 ;;
10819 pc)
10820 lt_cv_deplibs_check_method=pass_all
10821 ;;
10822 esac
10823 ;;
10824
10825 tpf*)
10826 lt_cv_deplibs_check_method=pass_all
10827 ;;
10828 os2*)
10829 lt_cv_deplibs_check_method=pass_all
10830 ;;
10831 esac
10832 ;;
10833 esac
10834 fi
10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10836 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
10837
10838 file_magic_glob=
10839 want_nocaseglob=no
10840 if test "$build" = "$host"; then
10841 case $host_os in
10842 mingw* | windows* | pw32*)
10843 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10844 want_nocaseglob=yes
10845 else
10846 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10847 fi
10848 ;;
10849 esac
10850 fi
10851
10852 file_magic_cmd=$lt_cv_file_magic_cmd
10853 deplibs_check_method=$lt_cv_deplibs_check_method
10854 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877 if test -n "$ac_tool_prefix"; then
10878 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10879 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10881 printf %s "checking for $ac_word... " >&6; }
10882 if test ${ac_cv_prog_DLLTOOL+y}
10883 then :
10884 printf %s "(cached) " >&6
10885 else case e in #(
10886 e) if test -n "$DLLTOOL"; then
10887 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10888 else
10889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890 for as_dir in $PATH
10891 do
10892 IFS=$as_save_IFS
10893 case $as_dir in #(((
10894 '') as_dir=./ ;;
10895 */) ;;
10896 *) as_dir=$as_dir/ ;;
10897 esac
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10900 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10902 break 2
10903 fi
10904 done
10905 done
10906 IFS=$as_save_IFS
10907
10908 fi ;;
10909 esac
10910 fi
10911 DLLTOOL=$ac_cv_prog_DLLTOOL
10912 if test -n "$DLLTOOL"; then
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10914 printf "%s\n" "$DLLTOOL" >&6; }
10915 else
10916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 printf "%s\n" "no" >&6; }
10918 fi
10919
10920
10921 fi
10922 if test -z "$ac_cv_prog_DLLTOOL"; then
10923 ac_ct_DLLTOOL=$DLLTOOL
10924 # Extract the first word of "dlltool", so it can be a program name with args.
10925 set dummy dlltool; ac_word=$2
10926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10927 printf %s "checking for $ac_word... " >&6; }
10928 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10929 then :
10930 printf %s "(cached) " >&6
10931 else case e in #(
10932 e) if test -n "$ac_ct_DLLTOOL"; then
10933 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10934 else
10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936 for as_dir in $PATH
10937 do
10938 IFS=$as_save_IFS
10939 case $as_dir in #(((
10940 '') as_dir=./ ;;
10941 */) ;;
10942 *) as_dir=$as_dir/ ;;
10943 esac
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10946 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10948 break 2
10949 fi
10950 done
10951 done
10952 IFS=$as_save_IFS
10953
10954 fi ;;
10955 esac
10956 fi
10957 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10958 if test -n "$ac_ct_DLLTOOL"; then
10959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10960 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10961 else
10962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 printf "%s\n" "no" >&6; }
10964 fi
10965
10966 if test "x$ac_ct_DLLTOOL" = x; then
10967 DLLTOOL="false"
10968 else
10969 case $cross_compiling:$ac_tool_warned in
10970 yes:)
10971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10972 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10973 ac_tool_warned=yes ;;
10974 esac
10975 DLLTOOL=$ac_ct_DLLTOOL
10976 fi
10977 else
10978 DLLTOOL="$ac_cv_prog_DLLTOOL"
10979 fi
10980
10981 test -z "$DLLTOOL" && DLLTOOL=dlltool
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10993 printf %s "checking how to associate runtime and link libraries... " >&6; }
10994 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
10995 then :
10996 printf %s "(cached) " >&6
10997 else case e in #(
10998 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
10999
11000 case $host_os in
11001 cygwin* | mingw* | windows* | pw32* | cegcc*)
11002 # two different shell functions defined in ltmain.sh;
11003 # decide which one to use based on capabilities of $DLLTOOL
11004 case `$DLLTOOL --help 2>&1` in
11005 *--identify-strict*)
11006 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11007 ;;
11008 *)
11009 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11010 ;;
11011 esac
11012 ;;
11013 *)
11014 # fallback: assume linklib IS sharedlib
11015 lt_cv_sharedlib_from_linklib_cmd=$ECHO
11016 ;;
11017 esac
11018 ;;
11019 esac
11020 fi
11021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11022 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11023 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11024 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11025
11026
11027
11028
11029
11030
11031
11032 if test -n "$ac_tool_prefix"; then
11033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11034 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036 printf %s "checking for $ac_word... " >&6; }
11037 if test ${ac_cv_prog_RANLIB+y}
11038 then :
11039 printf %s "(cached) " >&6
11040 else case e in #(
11041 e) if test -n "$RANLIB"; then
11042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11043 else
11044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11045 for as_dir in $PATH
11046 do
11047 IFS=$as_save_IFS
11048 case $as_dir in #(((
11049 '') as_dir=./ ;;
11050 */) ;;
11051 *) as_dir=$as_dir/ ;;
11052 esac
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11057 break 2
11058 fi
11059 done
11060 done
11061 IFS=$as_save_IFS
11062
11063 fi ;;
11064 esac
11065 fi
11066 RANLIB=$ac_cv_prog_RANLIB
11067 if test -n "$RANLIB"; then
11068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11069 printf "%s\n" "$RANLIB" >&6; }
11070 else
11071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 printf "%s\n" "no" >&6; }
11073 fi
11074
11075
11076 fi
11077 if test -z "$ac_cv_prog_RANLIB"; then
11078 ac_ct_RANLIB=$RANLIB
11079 # Extract the first word of "ranlib", so it can be a program name with args.
11080 set dummy ranlib; ac_word=$2
11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 printf %s "checking for $ac_word... " >&6; }
11083 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11084 then :
11085 printf %s "(cached) " >&6
11086 else case e in #(
11087 e) if test -n "$ac_ct_RANLIB"; then
11088 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11089 else
11090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091 for as_dir in $PATH
11092 do
11093 IFS=$as_save_IFS
11094 case $as_dir in #(((
11095 '') as_dir=./ ;;
11096 */) ;;
11097 *) as_dir=$as_dir/ ;;
11098 esac
11099 for ac_exec_ext in '' $ac_executable_extensions; do
11100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11101 ac_cv_prog_ac_ct_RANLIB="ranlib"
11102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11103 break 2
11104 fi
11105 done
11106 done
11107 IFS=$as_save_IFS
11108
11109 fi ;;
11110 esac
11111 fi
11112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11113 if test -n "$ac_ct_RANLIB"; then
11114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11115 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11116 else
11117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 printf "%s\n" "no" >&6; }
11119 fi
11120
11121 if test "x$ac_ct_RANLIB" = x; then
11122 RANLIB=":"
11123 else
11124 case $cross_compiling:$ac_tool_warned in
11125 yes:)
11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11127 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11128 ac_tool_warned=yes ;;
11129 esac
11130 RANLIB=$ac_ct_RANLIB
11131 fi
11132 else
11133 RANLIB="$ac_cv_prog_RANLIB"
11134 fi
11135
11136 if test -n "$ac_tool_prefix"; then
11137 for ac_prog in ar
11138 do
11139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11142 printf %s "checking for $ac_word... " >&6; }
11143 if test ${ac_cv_prog_AR+y}
11144 then :
11145 printf %s "(cached) " >&6
11146 else case e in #(
11147 e) if test -n "$AR"; then
11148 ac_cv_prog_AR="$AR" # Let the user override the test.
11149 else
11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151 for as_dir in $PATH
11152 do
11153 IFS=$as_save_IFS
11154 case $as_dir in #(((
11155 '') as_dir=./ ;;
11156 */) ;;
11157 *) as_dir=$as_dir/ ;;
11158 esac
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11161 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11163 break 2
11164 fi
11165 done
11166 done
11167 IFS=$as_save_IFS
11168
11169 fi ;;
11170 esac
11171 fi
11172 AR=$ac_cv_prog_AR
11173 if test -n "$AR"; then
11174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11175 printf "%s\n" "$AR" >&6; }
11176 else
11177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 printf "%s\n" "no" >&6; }
11179 fi
11180
11181
11182 test -n "$AR" && break
11183 done
11184 fi
11185 if test -z "$AR"; then
11186 ac_ct_AR=$AR
11187 for ac_prog in ar
11188 do
11189 # Extract the first word of "$ac_prog", so it can be a program name with args.
11190 set dummy $ac_prog; ac_word=$2
11191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192 printf %s "checking for $ac_word... " >&6; }
11193 if test ${ac_cv_prog_ac_ct_AR+y}
11194 then :
11195 printf %s "(cached) " >&6
11196 else case e in #(
11197 e) if test -n "$ac_ct_AR"; then
11198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11199 else
11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11202 do
11203 IFS=$as_save_IFS
11204 case $as_dir in #(((
11205 '') as_dir=./ ;;
11206 */) ;;
11207 *) as_dir=$as_dir/ ;;
11208 esac
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11211 ac_cv_prog_ac_ct_AR="$ac_prog"
11212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11213 break 2
11214 fi
11215 done
11216 done
11217 IFS=$as_save_IFS
11218
11219 fi ;;
11220 esac
11221 fi
11222 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11223 if test -n "$ac_ct_AR"; then
11224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11225 printf "%s\n" "$ac_ct_AR" >&6; }
11226 else
11227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 printf "%s\n" "no" >&6; }
11229 fi
11230
11231
11232 test -n "$ac_ct_AR" && break
11233 done
11234
11235 if test "x$ac_ct_AR" = x; then
11236 AR="false"
11237 else
11238 case $cross_compiling:$ac_tool_warned in
11239 yes:)
11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11242 ac_tool_warned=yes ;;
11243 esac
11244 AR=$ac_ct_AR
11245 fi
11246 fi
11247
11248 : ${AR=ar}
11249
11250
11251
11252
11253
11254
11255 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
11256 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
11257 # higher priority because that's what people were doing historically (setting
11258 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
11259 # variable obsoleted/removed.
11260
11261 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
11262 lt_ar_flags=$AR_FLAGS
11263
11264
11265
11266
11267
11268
11269 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
11270 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
11271
11272
11273
11274
11275
11276
11277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11278 printf %s "checking for archiver @FILE support... " >&6; }
11279 if test ${lt_cv_ar_at_file+y}
11280 then :
11281 printf %s "(cached) " >&6
11282 else case e in #(
11283 e) lt_cv_ar_at_file=no
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11286
11287 int
11288 main (void)
11289 {
11290
11291 ;
11292 return 0;
11293 }
11294 _ACEOF
11295 if ac_fn_c_try_compile "$LINENO"
11296 then :
11297 echo conftest.$ac_objext > conftest.lst
11298 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11300 (eval $lt_ar_try) 2>&5
11301 ac_status=$?
11302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11303 test $ac_status = 0; }
11304 if test 0 -eq "$ac_status"; then
11305 # Ensure the archiver fails upon bogus file names.
11306 rm -f conftest.$ac_objext libconftest.a
11307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11308 (eval $lt_ar_try) 2>&5
11309 ac_status=$?
11310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11311 test $ac_status = 0; }
11312 if test 0 -ne "$ac_status"; then
11313 lt_cv_ar_at_file=@
11314 fi
11315 fi
11316 rm -f conftest.* libconftest.a
11317
11318 fi
11319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11320 ;;
11321 esac
11322 fi
11323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11324 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
11325
11326 if test no = "$lt_cv_ar_at_file"; then
11327 archiver_list_spec=
11328 else
11329 archiver_list_spec=$lt_cv_ar_at_file
11330 fi
11331
11332
11333
11334
11335
11336
11337
11338 if test -n "$ac_tool_prefix"; then
11339 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11340 set dummy ${ac_tool_prefix}strip; ac_word=$2
11341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342 printf %s "checking for $ac_word... " >&6; }
11343 if test ${ac_cv_prog_STRIP+y}
11344 then :
11345 printf %s "(cached) " >&6
11346 else case e in #(
11347 e) if test -n "$STRIP"; then
11348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11349 else
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11352 do
11353 IFS=$as_save_IFS
11354 case $as_dir in #(((
11355 '') as_dir=./ ;;
11356 */) ;;
11357 *) as_dir=$as_dir/ ;;
11358 esac
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11363 break 2
11364 fi
11365 done
11366 done
11367 IFS=$as_save_IFS
11368
11369 fi ;;
11370 esac
11371 fi
11372 STRIP=$ac_cv_prog_STRIP
11373 if test -n "$STRIP"; then
11374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11375 printf "%s\n" "$STRIP" >&6; }
11376 else
11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 printf "%s\n" "no" >&6; }
11379 fi
11380
11381
11382 fi
11383 if test -z "$ac_cv_prog_STRIP"; then
11384 ac_ct_STRIP=$STRIP
11385 # Extract the first word of "strip", so it can be a program name with args.
11386 set dummy strip; ac_word=$2
11387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388 printf %s "checking for $ac_word... " >&6; }
11389 if test ${ac_cv_prog_ac_ct_STRIP+y}
11390 then :
11391 printf %s "(cached) " >&6
11392 else case e in #(
11393 e) if test -n "$ac_ct_STRIP"; then
11394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11395 else
11396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397 for as_dir in $PATH
11398 do
11399 IFS=$as_save_IFS
11400 case $as_dir in #(((
11401 '') as_dir=./ ;;
11402 */) ;;
11403 *) as_dir=$as_dir/ ;;
11404 esac
11405 for ac_exec_ext in '' $ac_executable_extensions; do
11406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11407 ac_cv_prog_ac_ct_STRIP="strip"
11408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11409 break 2
11410 fi
11411 done
11412 done
11413 IFS=$as_save_IFS
11414
11415 fi ;;
11416 esac
11417 fi
11418 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11419 if test -n "$ac_ct_STRIP"; then
11420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11421 printf "%s\n" "$ac_ct_STRIP" >&6; }
11422 else
11423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424 printf "%s\n" "no" >&6; }
11425 fi
11426
11427 if test "x$ac_ct_STRIP" = x; then
11428 STRIP=":"
11429 else
11430 case $cross_compiling:$ac_tool_warned in
11431 yes:)
11432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11433 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11434 ac_tool_warned=yes ;;
11435 esac
11436 STRIP=$ac_ct_STRIP
11437 fi
11438 else
11439 STRIP="$ac_cv_prog_STRIP"
11440 fi
11441
11442 test -z "$STRIP" && STRIP=:
11443
11444
11445
11446
11447
11448
11449
11450 test -z "$RANLIB" && RANLIB=:
11451
11452
11453
11454
11455
11456
11457 # Determine commands to create old-style static archives.
11458 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11459 old_postinstall_cmds='chmod 644 $oldlib'
11460 old_postuninstall_cmds=
11461
11462 if test -n "$RANLIB"; then
11463 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11464 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11465 fi
11466
11467 case $host_os in
11468 darwin*)
11469 lock_old_archive_extraction=yes ;;
11470 *)
11471 lock_old_archive_extraction=no ;;
11472 esac
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512 # If no C compiler was specified, use CC.
11513 LTCC=${LTCC-"$CC"}
11514
11515 # If no C compiler flags were specified, use CFLAGS.
11516 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11517
11518 # Allow CC to be a program name with arguments.
11519 compiler=$CC
11520
11521
11522 # Check for command to grab the raw symbol name followed by C symbol from nm.
11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11524 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
11525 if test ${lt_cv_sys_global_symbol_pipe+y}
11526 then :
11527 printf %s "(cached) " >&6
11528 else case e in #(
11529 e)
11530 # These are sane defaults that work on at least a few old systems.
11531 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11532
11533 # Character class describing NM global symbol codes.
11534 symcode='[BCDEGRST]'
11535
11536 # Regexp to match symbols that can be accessed directly from C.
11537 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11538
11539 # Define system-specific variables.
11540 case $host_os in
11541 aix*)
11542 symcode='[BCDT]'
11543 ;;
11544 cygwin* | mingw* | windows* | pw32* | cegcc*)
11545 symcode='[ABCDGISTW]'
11546 ;;
11547 hpux*)
11548 if test ia64 = "$host_cpu"; then
11549 symcode='[ABCDEGRST]'
11550 fi
11551 ;;
11552 irix* | nonstopux*)
11553 symcode='[BCDEGRST]'
11554 ;;
11555 osf*)
11556 symcode='[BCDEGQRST]'
11557 ;;
11558 solaris*)
11559 symcode='[BCDRT]'
11560 ;;
11561 sco3.2v5*)
11562 symcode='[DT]'
11563 ;;
11564 sysv4.2uw2*)
11565 symcode='[DT]'
11566 ;;
11567 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11568 symcode='[ABDT]'
11569 ;;
11570 sysv4)
11571 symcode='[DFNSTU]'
11572 ;;
11573 esac
11574
11575 # If we're using GNU nm, then use its standard symbol codes.
11576 case `$NM -V 2>&1` in
11577 *GNU* | *'with BFD'*)
11578 symcode='[ABCDGIRSTW]' ;;
11579 esac
11580
11581 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11582 # Gets list of data symbols to import.
11583 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
11584 # Adjust the below global symbol transforms to fixup imported variables.
11585 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
11586 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
11587 lt_c_name_lib_hook="\
11588 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
11589 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
11590 else
11591 # Disable hooks by default.
11592 lt_cv_sys_global_symbol_to_import=
11593 lt_cdecl_hook=
11594 lt_c_name_hook=
11595 lt_c_name_lib_hook=
11596 fi
11597
11598 # Transform an extracted symbol line into a proper C declaration.
11599 # Some systems (esp. on ia64) link data and code symbols differently,
11600 # so use this general approach.
11601 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
11602 $lt_cdecl_hook\
11603 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
11604 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
11605
11606 # Transform an extracted symbol line into symbol name and symbol address
11607 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
11608 $lt_c_name_hook\
11609 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11610 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
11611
11612 # Transform an extracted symbol line into symbol name with lib prefix and
11613 # symbol address.
11614 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
11615 $lt_c_name_lib_hook\
11616 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11617 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
11618 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
11619
11620 # Handle CRLF in mingw tool chain
11621 opt_cr=
11622 case $build_os in
11623 mingw* | windows*)
11624 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11625 ;;
11626 esac
11627
11628 # Try without a prefix underscore, then with it.
11629 for ac_symprfx in "" "_"; do
11630
11631 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11632 symxfrm="\\1 $ac_symprfx\\2 \\2"
11633
11634 # Write the raw and C identifiers.
11635 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11636 # Fake it for dumpbin and say T for any non-static function,
11637 # D for any global variable and I for any imported variable.
11638 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
11639 # which start with @ or ?.
11640 lt_cv_sys_global_symbol_pipe="$AWK '"\
11641 " {last_section=section; section=\$ 3};"\
11642 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11643 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11644 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
11645 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
11646 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
11647 " \$ 0!~/External *\|/{next};"\
11648 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11649 " {if(hide[section]) next};"\
11650 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
11651 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
11652 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
11653 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
11654 " ' prfx=^$ac_symprfx"
11655 else
11656 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11657 fi
11658 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
11659
11660 # Check to see that the pipe works correctly.
11661 pipe_works=no
11662
11663 rm -f conftest*
11664 cat > conftest.$ac_ext <<_LT_EOF
11665 #ifdef __cplusplus
11666 extern "C" {
11667 #endif
11668 char nm_test_var;
11669 void nm_test_func(void);
11670 void nm_test_func(void){}
11671 #ifdef __cplusplus
11672 }
11673 #endif
11674 int main(void){nm_test_var='a';nm_test_func();return(0);}
11675 _LT_EOF
11676
11677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11678 (eval $ac_compile) 2>&5
11679 ac_status=$?
11680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11681 test $ac_status = 0; }; then
11682 # Now try to grab the symbols.
11683 nlist=conftest.nm
11684 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
11685 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
11686 # Try sorting and uniquifying the output.
11687 if sort "$nlist" | uniq > "$nlist"T; then
11688 mv -f "$nlist"T "$nlist"
11689 else
11690 rm -f "$nlist"T
11691 fi
11692
11693 # Make sure that we snagged all the symbols we need.
11694 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11695 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11696 cat <<_LT_EOF > conftest.$ac_ext
11697 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11698 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
11699 /* DATA imports from DLLs on WIN32 can't be const, because runtime
11700 relocations are performed -- see ld's documentation on pseudo-relocs. */
11701 # define LT_DLSYM_CONST
11702 #elif defined __osf__
11703 /* This system does not cope well with relocations in const data. */
11704 # define LT_DLSYM_CONST
11705 #else
11706 # define LT_DLSYM_CONST const
11707 #endif
11708
11709 #ifdef __cplusplus
11710 extern "C" {
11711 #endif
11712
11713 _LT_EOF
11714 # Now generate the symbol file.
11715 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11716
11717 cat <<_LT_EOF >> conftest.$ac_ext
11718
11719 /* The mapping between symbol names and symbols. */
11720 LT_DLSYM_CONST struct {
11721 const char *name;
11722 void *address;
11723 }
11724 lt__PROGRAM__LTX_preloaded_symbols[] =
11725 {
11726 { "@PROGRAM@", (void *) 0 },
11727 _LT_EOF
11728 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11729 cat <<\_LT_EOF >> conftest.$ac_ext
11730 {0, (void *) 0}
11731 };
11732
11733 /* This works around a problem in FreeBSD linker */
11734 #ifdef FREEBSD_WORKAROUND
11735 static const void *lt_preloaded_setup() {
11736 return lt__PROGRAM__LTX_preloaded_symbols;
11737 }
11738 #endif
11739
11740 #ifdef __cplusplus
11741 }
11742 #endif
11743 _LT_EOF
11744 # Now try linking the two files.
11745 mv conftest.$ac_objext conftstm.$ac_objext
11746 lt_globsym_save_LIBS=$LIBS
11747 lt_globsym_save_CFLAGS=$CFLAGS
11748 LIBS=conftstm.$ac_objext
11749 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11751 (eval $ac_link) 2>&5
11752 ac_status=$?
11753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11754 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11755 pipe_works=yes
11756 fi
11757 LIBS=$lt_globsym_save_LIBS
11758 CFLAGS=$lt_globsym_save_CFLAGS
11759 else
11760 echo "cannot find nm_test_func in $nlist" >&5
11761 fi
11762 else
11763 echo "cannot find nm_test_var in $nlist" >&5
11764 fi
11765 else
11766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11767 fi
11768 else
11769 echo "$progname: failed program was:" >&5
11770 cat conftest.$ac_ext >&5
11771 fi
11772 rm -rf conftest* conftst*
11773
11774 # Do not use the global_symbol_pipe unless it works.
11775 if test yes = "$pipe_works"; then
11776 break
11777 else
11778 lt_cv_sys_global_symbol_pipe=
11779 fi
11780 done
11781 ;;
11782 esac
11783 fi
11784
11785 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11786 lt_cv_sys_global_symbol_to_cdecl=
11787 fi
11788 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11790 printf "%s\n" "failed" >&6; }
11791 else
11792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11793 printf "%s\n" "ok" >&6; }
11794 fi
11795
11796 # Response file support.
11797 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11798 nm_file_list_spec='@'
11799 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11800 nm_file_list_spec='@'
11801 fi
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11840 printf %s "checking for sysroot... " >&6; }
11841
11842 # Check whether --with-sysroot was given.
11843 if test ${with_sysroot+y}
11844 then :
11845 withval=$with_sysroot;
11846 else case e in #(
11847 e) with_sysroot=no ;;
11848 esac
11849 fi
11850
11851
11852 lt_sysroot=
11853 case $with_sysroot in #(
11854 yes)
11855 if test yes = "$GCC"; then
11856 # Trim trailing / since we'll always append absolute paths and we want
11857 # to avoid //, if only for less confusing output for the user.
11858 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
11859 fi
11860 ;; #(
11861 /*)
11862 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
11863 ;; #(
11864 no|'')
11865 ;; #(
11866 *)
11867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11868 printf "%s\n" "$with_sysroot" >&6; }
11869 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11870 ;;
11871 esac
11872
11873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11874 printf "%s\n" "${lt_sysroot:-no}" >&6; }
11875
11876
11877
11878
11879
11880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11881 printf %s "checking for a working dd... " >&6; }
11882 if test ${ac_cv_path_lt_DD+y}
11883 then :
11884 printf %s "(cached) " >&6
11885 else case e in #(
11886 e) printf 0123456789abcdef0123456789abcdef >conftest.i
11887 cat conftest.i conftest.i >conftest2.i
11888 : ${lt_DD:=$DD}
11889 if test -z "$lt_DD"; then
11890 ac_path_lt_DD_found=false
11891 # Loop through the user's path and test for each of PROGNAME-LIST
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11894 do
11895 IFS=$as_save_IFS
11896 case $as_dir in #(((
11897 '') as_dir=./ ;;
11898 */) ;;
11899 *) as_dir=$as_dir/ ;;
11900 esac
11901 for ac_prog in dd
11902 do
11903 for ac_exec_ext in '' $ac_executable_extensions; do
11904 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
11905 as_fn_executable_p "$ac_path_lt_DD" || continue
11906 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11907 cmp -s conftest.i conftest.out \
11908 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11909 fi
11910 $ac_path_lt_DD_found && break 3
11911 done
11912 done
11913 done
11914 IFS=$as_save_IFS
11915 if test -z "$ac_cv_path_lt_DD"; then
11916 :
11917 fi
11918 else
11919 ac_cv_path_lt_DD=$lt_DD
11920 fi
11921
11922 rm -f conftest.i conftest2.i conftest.out ;;
11923 esac
11924 fi
11925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11926 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
11927
11928
11929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11930 printf %s "checking how to truncate binary pipes... " >&6; }
11931 if test ${lt_cv_truncate_bin+y}
11932 then :
11933 printf %s "(cached) " >&6
11934 else case e in #(
11935 e) printf 0123456789abcdef0123456789abcdef >conftest.i
11936 cat conftest.i conftest.i >conftest2.i
11937 lt_cv_truncate_bin=
11938 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11939 cmp -s conftest.i conftest.out \
11940 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11941 fi
11942 rm -f conftest.i conftest2.i conftest.out
11943 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
11944 esac
11945 fi
11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11947 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
11948
11949
11950
11951
11952
11953
11954
11955 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
11956 func_cc_basename ()
11957 {
11958 for cc_temp in $*""; do
11959 case $cc_temp in
11960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11962 \-*) ;;
11963 *) break;;
11964 esac
11965 done
11966 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11967 }
11968
11969 # Check whether --enable-libtool-lock was given.
11970 if test ${enable_libtool_lock+y}
11971 then :
11972 enableval=$enable_libtool_lock;
11973 fi
11974
11975 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11976
11977 # Some flags need to be propagated to the compiler or linker for good
11978 # libtool support.
11979 case $host in
11980 ia64-*-hpux*)
11981 # Find out what ABI is being produced by ac_compile, and set mode
11982 # options accordingly.
11983 echo 'int i;' > conftest.$ac_ext
11984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11985 (eval $ac_compile) 2>&5
11986 ac_status=$?
11987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11988 test $ac_status = 0; }; then
11989 case `$FILECMD conftest.$ac_objext` in
11990 *ELF-32*)
11991 HPUX_IA64_MODE=32
11992 ;;
11993 *ELF-64*)
11994 HPUX_IA64_MODE=64
11995 ;;
11996 esac
11997 fi
11998 rm -rf conftest*
11999 ;;
12000 *-*-irix6*)
12001 # Find out what ABI is being produced by ac_compile, and set linker
12002 # options accordingly.
12003 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12005 (eval $ac_compile) 2>&5
12006 ac_status=$?
12007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12008 test $ac_status = 0; }; then
12009 if test yes = "$lt_cv_prog_gnu_ld"; then
12010 case `$FILECMD conftest.$ac_objext` in
12011 *32-bit*)
12012 LD="${LD-ld} -melf32bsmip"
12013 ;;
12014 *N32*)
12015 LD="${LD-ld} -melf32bmipn32"
12016 ;;
12017 *64-bit*)
12018 LD="${LD-ld} -melf64bmip"
12019 ;;
12020 esac
12021 else
12022 case `$FILECMD conftest.$ac_objext` in
12023 *32-bit*)
12024 LD="${LD-ld} -32"
12025 ;;
12026 *N32*)
12027 LD="${LD-ld} -n32"
12028 ;;
12029 *64-bit*)
12030 LD="${LD-ld} -64"
12031 ;;
12032 esac
12033 fi
12034 fi
12035 rm -rf conftest*
12036 ;;
12037
12038 mips64*-*linux*)
12039 # Find out what ABI is being produced by ac_compile, and set linker
12040 # options accordingly.
12041 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12043 (eval $ac_compile) 2>&5
12044 ac_status=$?
12045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12046 test $ac_status = 0; }; then
12047 emul=elf
12048 case `$FILECMD conftest.$ac_objext` in
12049 *32-bit*)
12050 emul="${emul}32"
12051 ;;
12052 *64-bit*)
12053 emul="${emul}64"
12054 ;;
12055 esac
12056 case `$FILECMD conftest.$ac_objext` in
12057 *MSB*)
12058 emul="${emul}btsmip"
12059 ;;
12060 *LSB*)
12061 emul="${emul}ltsmip"
12062 ;;
12063 esac
12064 case `$FILECMD conftest.$ac_objext` in
12065 *N32*)
12066 emul="${emul}n32"
12067 ;;
12068 esac
12069 LD="${LD-ld} -m $emul"
12070 fi
12071 rm -rf conftest*
12072 ;;
12073
12074 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12075 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
12076 # Find out what ABI is being produced by ac_compile, and set linker
12077 # options accordingly. Note that the listed cases only cover the
12078 # situations where additional linker options are needed (such as when
12079 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
12080 # vice versa); the common cases where no linker options are needed do
12081 # not appear in the list.
12082 echo 'int i;' > conftest.$ac_ext
12083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12084 (eval $ac_compile) 2>&5
12085 ac_status=$?
12086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12087 test $ac_status = 0; }; then
12088 case `$FILECMD conftest.o` in
12089 *32-bit*)
12090 case $host in
12091 x86_64-*kfreebsd*-gnu)
12092 LD="${LD-ld} -m elf_i386_fbsd"
12093 ;;
12094 x86_64-*linux*|x86_64-gnu*)
12095 case `$FILECMD conftest.o` in
12096 *x86-64*)
12097 LD="${LD-ld} -m elf32_x86_64"
12098 ;;
12099 *)
12100 LD="${LD-ld} -m elf_i386"
12101 ;;
12102 esac
12103 ;;
12104 powerpc64le-*linux*)
12105 LD="${LD-ld} -m elf32lppclinux"
12106 ;;
12107 powerpc64-*linux*)
12108 LD="${LD-ld} -m elf32ppclinux"
12109 ;;
12110 s390x-*linux*)
12111 LD="${LD-ld} -m elf_s390"
12112 ;;
12113 sparc64-*linux*)
12114 LD="${LD-ld} -m elf32_sparc"
12115 ;;
12116 esac
12117 ;;
12118 *64-bit*)
12119 case $host in
12120 x86_64-*kfreebsd*-gnu)
12121 LD="${LD-ld} -m elf_x86_64_fbsd"
12122 ;;
12123 x86_64-*linux*|x86_64-gnu*)
12124 LD="${LD-ld} -m elf_x86_64"
12125 ;;
12126 powerpcle-*linux*)
12127 LD="${LD-ld} -m elf64lppc"
12128 ;;
12129 powerpc-*linux*)
12130 LD="${LD-ld} -m elf64ppc"
12131 ;;
12132 s390*-*linux*|s390*-*tpf*)
12133 LD="${LD-ld} -m elf64_s390"
12134 ;;
12135 sparc*-*linux*)
12136 LD="${LD-ld} -m elf64_sparc"
12137 ;;
12138 esac
12139 ;;
12140 esac
12141 fi
12142 rm -rf conftest*
12143 ;;
12144
12145 *-*-sco3.2v5*)
12146 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12147 SAVE_CFLAGS=$CFLAGS
12148 CFLAGS="$CFLAGS -belf"
12149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12150 printf %s "checking whether the C compiler needs -belf... " >&6; }
12151 if test ${lt_cv_cc_needs_belf+y}
12152 then :
12153 printf %s "(cached) " >&6
12154 else case e in #(
12155 e) ac_ext=c
12156 ac_cpp='$CPP $CPPFLAGS'
12157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12160
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12163
12164 int
12165 main (void)
12166 {
12167
12168 ;
12169 return 0;
12170 }
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"
12173 then :
12174 lt_cv_cc_needs_belf=yes
12175 else case e in #(
12176 e) lt_cv_cc_needs_belf=no ;;
12177 esac
12178 fi
12179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12180 conftest$ac_exeext conftest.$ac_ext
12181 ac_ext=c
12182 ac_cpp='$CPP $CPPFLAGS'
12183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12186 ;;
12187 esac
12188 fi
12189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12190 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
12191 if test yes != "$lt_cv_cc_needs_belf"; then
12192 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12193 CFLAGS=$SAVE_CFLAGS
12194 fi
12195 ;;
12196 *-*solaris*)
12197 # Find out what ABI is being produced by ac_compile, and set linker
12198 # options accordingly.
12199 echo 'int i;' > conftest.$ac_ext
12200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12201 (eval $ac_compile) 2>&5
12202 ac_status=$?
12203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204 test $ac_status = 0; }; then
12205 case `$FILECMD conftest.o` in
12206 *64-bit*)
12207 case $lt_cv_prog_gnu_ld in
12208 yes*)
12209 case $host in
12210 i?86-*-solaris*|x86_64-*-solaris*)
12211 LD="${LD-ld} -m elf_x86_64"
12212 ;;
12213 sparc*-*-solaris*)
12214 LD="${LD-ld} -m elf64_sparc"
12215 ;;
12216 esac
12217 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12218 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12219 LD=${LD-ld}_sol2
12220 fi
12221 ;;
12222 *)
12223 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12224 LD="${LD-ld} -64"
12225 fi
12226 ;;
12227 esac
12228 ;;
12229 esac
12230 fi
12231 rm -rf conftest*
12232 ;;
12233 esac
12234
12235 need_locks=$enable_libtool_lock
12236
12237 if test -n "$ac_tool_prefix"; then
12238 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12239 set dummy ${ac_tool_prefix}mt; ac_word=$2
12240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241 printf %s "checking for $ac_word... " >&6; }
12242 if test ${ac_cv_prog_MANIFEST_TOOL+y}
12243 then :
12244 printf %s "(cached) " >&6
12245 else case e in #(
12246 e) if test -n "$MANIFEST_TOOL"; then
12247 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12248 else
12249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250 for as_dir in $PATH
12251 do
12252 IFS=$as_save_IFS
12253 case $as_dir in #(((
12254 '') as_dir=./ ;;
12255 */) ;;
12256 *) as_dir=$as_dir/ ;;
12257 esac
12258 for ac_exec_ext in '' $ac_executable_extensions; do
12259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12260 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12262 break 2
12263 fi
12264 done
12265 done
12266 IFS=$as_save_IFS
12267
12268 fi ;;
12269 esac
12270 fi
12271 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12272 if test -n "$MANIFEST_TOOL"; then
12273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12274 printf "%s\n" "$MANIFEST_TOOL" >&6; }
12275 else
12276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 printf "%s\n" "no" >&6; }
12278 fi
12279
12280
12281 fi
12282 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12283 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12284 # Extract the first word of "mt", so it can be a program name with args.
12285 set dummy mt; ac_word=$2
12286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12287 printf %s "checking for $ac_word... " >&6; }
12288 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
12289 then :
12290 printf %s "(cached) " >&6
12291 else case e in #(
12292 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
12293 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12294 else
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12297 do
12298 IFS=$as_save_IFS
12299 case $as_dir in #(((
12300 '') as_dir=./ ;;
12301 */) ;;
12302 *) as_dir=$as_dir/ ;;
12303 esac
12304 for ac_exec_ext in '' $ac_executable_extensions; do
12305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12306 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12308 break 2
12309 fi
12310 done
12311 done
12312 IFS=$as_save_IFS
12313
12314 fi ;;
12315 esac
12316 fi
12317 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12318 if test -n "$ac_ct_MANIFEST_TOOL"; then
12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12320 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
12321 else
12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 printf "%s\n" "no" >&6; }
12324 fi
12325
12326 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12327 MANIFEST_TOOL=":"
12328 else
12329 case $cross_compiling:$ac_tool_warned in
12330 yes:)
12331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12332 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12333 ac_tool_warned=yes ;;
12334 esac
12335 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12336 fi
12337 else
12338 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12339 fi
12340
12341 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12343 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12344 if test ${lt_cv_path_manifest_tool+y}
12345 then :
12346 printf %s "(cached) " >&6
12347 else case e in #(
12348 e) lt_cv_path_manifest_tool=no
12349 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12350 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12351 cat conftest.err >&5
12352 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12353 lt_cv_path_manifest_tool=yes
12354 fi
12355 rm -f conftest* ;;
12356 esac
12357 fi
12358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
12359 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
12360 if test yes != "$lt_cv_path_manifest_tool"; then
12361 MANIFEST_TOOL=:
12362 fi
12363
12364
12365
12366
12367
12368
12369 case $host_os in
12370 rhapsody* | darwin*)
12371 if test -n "$ac_tool_prefix"; then
12372 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12373 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 printf %s "checking for $ac_word... " >&6; }
12376 if test ${ac_cv_prog_DSYMUTIL+y}
12377 then :
12378 printf %s "(cached) " >&6
12379 else case e in #(
12380 e) if test -n "$DSYMUTIL"; then
12381 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12382 else
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12385 do
12386 IFS=$as_save_IFS
12387 case $as_dir in #(((
12388 '') as_dir=./ ;;
12389 */) ;;
12390 *) as_dir=$as_dir/ ;;
12391 esac
12392 for ac_exec_ext in '' $ac_executable_extensions; do
12393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12394 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12396 break 2
12397 fi
12398 done
12399 done
12400 IFS=$as_save_IFS
12401
12402 fi ;;
12403 esac
12404 fi
12405 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12406 if test -n "$DSYMUTIL"; then
12407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12408 printf "%s\n" "$DSYMUTIL" >&6; }
12409 else
12410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 printf "%s\n" "no" >&6; }
12412 fi
12413
12414
12415 fi
12416 if test -z "$ac_cv_prog_DSYMUTIL"; then
12417 ac_ct_DSYMUTIL=$DSYMUTIL
12418 # Extract the first word of "dsymutil", so it can be a program name with args.
12419 set dummy dsymutil; ac_word=$2
12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12421 printf %s "checking for $ac_word... " >&6; }
12422 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
12423 then :
12424 printf %s "(cached) " >&6
12425 else case e in #(
12426 e) if test -n "$ac_ct_DSYMUTIL"; then
12427 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12428 else
12429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430 for as_dir in $PATH
12431 do
12432 IFS=$as_save_IFS
12433 case $as_dir in #(((
12434 '') as_dir=./ ;;
12435 */) ;;
12436 *) as_dir=$as_dir/ ;;
12437 esac
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12440 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12442 break 2
12443 fi
12444 done
12445 done
12446 IFS=$as_save_IFS
12447
12448 fi ;;
12449 esac
12450 fi
12451 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12452 if test -n "$ac_ct_DSYMUTIL"; then
12453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12454 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
12455 else
12456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 printf "%s\n" "no" >&6; }
12458 fi
12459
12460 if test "x$ac_ct_DSYMUTIL" = x; then
12461 DSYMUTIL=":"
12462 else
12463 case $cross_compiling:$ac_tool_warned in
12464 yes:)
12465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12466 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12467 ac_tool_warned=yes ;;
12468 esac
12469 DSYMUTIL=$ac_ct_DSYMUTIL
12470 fi
12471 else
12472 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12473 fi
12474
12475 if test -n "$ac_tool_prefix"; then
12476 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12477 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479 printf %s "checking for $ac_word... " >&6; }
12480 if test ${ac_cv_prog_NMEDIT+y}
12481 then :
12482 printf %s "(cached) " >&6
12483 else case e in #(
12484 e) if test -n "$NMEDIT"; then
12485 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12486 else
12487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12488 for as_dir in $PATH
12489 do
12490 IFS=$as_save_IFS
12491 case $as_dir in #(((
12492 '') as_dir=./ ;;
12493 */) ;;
12494 *) as_dir=$as_dir/ ;;
12495 esac
12496 for ac_exec_ext in '' $ac_executable_extensions; do
12497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12498 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12500 break 2
12501 fi
12502 done
12503 done
12504 IFS=$as_save_IFS
12505
12506 fi ;;
12507 esac
12508 fi
12509 NMEDIT=$ac_cv_prog_NMEDIT
12510 if test -n "$NMEDIT"; then
12511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12512 printf "%s\n" "$NMEDIT" >&6; }
12513 else
12514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 printf "%s\n" "no" >&6; }
12516 fi
12517
12518
12519 fi
12520 if test -z "$ac_cv_prog_NMEDIT"; then
12521 ac_ct_NMEDIT=$NMEDIT
12522 # Extract the first word of "nmedit", so it can be a program name with args.
12523 set dummy nmedit; ac_word=$2
12524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525 printf %s "checking for $ac_word... " >&6; }
12526 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
12527 then :
12528 printf %s "(cached) " >&6
12529 else case e in #(
12530 e) if test -n "$ac_ct_NMEDIT"; then
12531 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12532 else
12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534 for as_dir in $PATH
12535 do
12536 IFS=$as_save_IFS
12537 case $as_dir in #(((
12538 '') as_dir=./ ;;
12539 */) ;;
12540 *) as_dir=$as_dir/ ;;
12541 esac
12542 for ac_exec_ext in '' $ac_executable_extensions; do
12543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12544 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12546 break 2
12547 fi
12548 done
12549 done
12550 IFS=$as_save_IFS
12551
12552 fi ;;
12553 esac
12554 fi
12555 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12556 if test -n "$ac_ct_NMEDIT"; then
12557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12558 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
12559 else
12560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12561 printf "%s\n" "no" >&6; }
12562 fi
12563
12564 if test "x$ac_ct_NMEDIT" = x; then
12565 NMEDIT=":"
12566 else
12567 case $cross_compiling:$ac_tool_warned in
12568 yes:)
12569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12570 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12571 ac_tool_warned=yes ;;
12572 esac
12573 NMEDIT=$ac_ct_NMEDIT
12574 fi
12575 else
12576 NMEDIT="$ac_cv_prog_NMEDIT"
12577 fi
12578
12579 if test -n "$ac_tool_prefix"; then
12580 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12581 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12583 printf %s "checking for $ac_word... " >&6; }
12584 if test ${ac_cv_prog_LIPO+y}
12585 then :
12586 printf %s "(cached) " >&6
12587 else case e in #(
12588 e) if test -n "$LIPO"; then
12589 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12590 else
12591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592 for as_dir in $PATH
12593 do
12594 IFS=$as_save_IFS
12595 case $as_dir in #(((
12596 '') as_dir=./ ;;
12597 */) ;;
12598 *) as_dir=$as_dir/ ;;
12599 esac
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12602 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12604 break 2
12605 fi
12606 done
12607 done
12608 IFS=$as_save_IFS
12609
12610 fi ;;
12611 esac
12612 fi
12613 LIPO=$ac_cv_prog_LIPO
12614 if test -n "$LIPO"; then
12615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12616 printf "%s\n" "$LIPO" >&6; }
12617 else
12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 printf "%s\n" "no" >&6; }
12620 fi
12621
12622
12623 fi
12624 if test -z "$ac_cv_prog_LIPO"; then
12625 ac_ct_LIPO=$LIPO
12626 # Extract the first word of "lipo", so it can be a program name with args.
12627 set dummy lipo; ac_word=$2
12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629 printf %s "checking for $ac_word... " >&6; }
12630 if test ${ac_cv_prog_ac_ct_LIPO+y}
12631 then :
12632 printf %s "(cached) " >&6
12633 else case e in #(
12634 e) if test -n "$ac_ct_LIPO"; then
12635 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12636 else
12637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638 for as_dir in $PATH
12639 do
12640 IFS=$as_save_IFS
12641 case $as_dir in #(((
12642 '') as_dir=./ ;;
12643 */) ;;
12644 *) as_dir=$as_dir/ ;;
12645 esac
12646 for ac_exec_ext in '' $ac_executable_extensions; do
12647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12648 ac_cv_prog_ac_ct_LIPO="lipo"
12649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12650 break 2
12651 fi
12652 done
12653 done
12654 IFS=$as_save_IFS
12655
12656 fi ;;
12657 esac
12658 fi
12659 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12660 if test -n "$ac_ct_LIPO"; then
12661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12662 printf "%s\n" "$ac_ct_LIPO" >&6; }
12663 else
12664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 printf "%s\n" "no" >&6; }
12666 fi
12667
12668 if test "x$ac_ct_LIPO" = x; then
12669 LIPO=":"
12670 else
12671 case $cross_compiling:$ac_tool_warned in
12672 yes:)
12673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12674 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12675 ac_tool_warned=yes ;;
12676 esac
12677 LIPO=$ac_ct_LIPO
12678 fi
12679 else
12680 LIPO="$ac_cv_prog_LIPO"
12681 fi
12682
12683 if test -n "$ac_tool_prefix"; then
12684 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12685 set dummy ${ac_tool_prefix}otool; ac_word=$2
12686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687 printf %s "checking for $ac_word... " >&6; }
12688 if test ${ac_cv_prog_OTOOL+y}
12689 then :
12690 printf %s "(cached) " >&6
12691 else case e in #(
12692 e) if test -n "$OTOOL"; then
12693 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12694 else
12695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696 for as_dir in $PATH
12697 do
12698 IFS=$as_save_IFS
12699 case $as_dir in #(((
12700 '') as_dir=./ ;;
12701 */) ;;
12702 *) as_dir=$as_dir/ ;;
12703 esac
12704 for ac_exec_ext in '' $ac_executable_extensions; do
12705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12706 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12708 break 2
12709 fi
12710 done
12711 done
12712 IFS=$as_save_IFS
12713
12714 fi ;;
12715 esac
12716 fi
12717 OTOOL=$ac_cv_prog_OTOOL
12718 if test -n "$OTOOL"; then
12719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12720 printf "%s\n" "$OTOOL" >&6; }
12721 else
12722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 printf "%s\n" "no" >&6; }
12724 fi
12725
12726
12727 fi
12728 if test -z "$ac_cv_prog_OTOOL"; then
12729 ac_ct_OTOOL=$OTOOL
12730 # Extract the first word of "otool", so it can be a program name with args.
12731 set dummy otool; ac_word=$2
12732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12733 printf %s "checking for $ac_word... " >&6; }
12734 if test ${ac_cv_prog_ac_ct_OTOOL+y}
12735 then :
12736 printf %s "(cached) " >&6
12737 else case e in #(
12738 e) if test -n "$ac_ct_OTOOL"; then
12739 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12740 else
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 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12752 ac_cv_prog_ac_ct_OTOOL="otool"
12753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12754 break 2
12755 fi
12756 done
12757 done
12758 IFS=$as_save_IFS
12759
12760 fi ;;
12761 esac
12762 fi
12763 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12764 if test -n "$ac_ct_OTOOL"; then
12765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12766 printf "%s\n" "$ac_ct_OTOOL" >&6; }
12767 else
12768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 printf "%s\n" "no" >&6; }
12770 fi
12771
12772 if test "x$ac_ct_OTOOL" = x; then
12773 OTOOL=":"
12774 else
12775 case $cross_compiling:$ac_tool_warned in
12776 yes:)
12777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12778 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12779 ac_tool_warned=yes ;;
12780 esac
12781 OTOOL=$ac_ct_OTOOL
12782 fi
12783 else
12784 OTOOL="$ac_cv_prog_OTOOL"
12785 fi
12786
12787 if test -n "$ac_tool_prefix"; then
12788 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12791 printf %s "checking for $ac_word... " >&6; }
12792 if test ${ac_cv_prog_OTOOL64+y}
12793 then :
12794 printf %s "(cached) " >&6
12795 else case e in #(
12796 e) if test -n "$OTOOL64"; then
12797 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12798 else
12799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800 for as_dir in $PATH
12801 do
12802 IFS=$as_save_IFS
12803 case $as_dir in #(((
12804 '') as_dir=./ ;;
12805 */) ;;
12806 *) as_dir=$as_dir/ ;;
12807 esac
12808 for ac_exec_ext in '' $ac_executable_extensions; do
12809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12810 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12812 break 2
12813 fi
12814 done
12815 done
12816 IFS=$as_save_IFS
12817
12818 fi ;;
12819 esac
12820 fi
12821 OTOOL64=$ac_cv_prog_OTOOL64
12822 if test -n "$OTOOL64"; then
12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12824 printf "%s\n" "$OTOOL64" >&6; }
12825 else
12826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 printf "%s\n" "no" >&6; }
12828 fi
12829
12830
12831 fi
12832 if test -z "$ac_cv_prog_OTOOL64"; then
12833 ac_ct_OTOOL64=$OTOOL64
12834 # Extract the first word of "otool64", so it can be a program name with args.
12835 set dummy otool64; ac_word=$2
12836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837 printf %s "checking for $ac_word... " >&6; }
12838 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
12839 then :
12840 printf %s "(cached) " >&6
12841 else case e in #(
12842 e) if test -n "$ac_ct_OTOOL64"; then
12843 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12844 else
12845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12846 for as_dir in $PATH
12847 do
12848 IFS=$as_save_IFS
12849 case $as_dir in #(((
12850 '') as_dir=./ ;;
12851 */) ;;
12852 *) as_dir=$as_dir/ ;;
12853 esac
12854 for ac_exec_ext in '' $ac_executable_extensions; do
12855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12856 ac_cv_prog_ac_ct_OTOOL64="otool64"
12857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12858 break 2
12859 fi
12860 done
12861 done
12862 IFS=$as_save_IFS
12863
12864 fi ;;
12865 esac
12866 fi
12867 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12868 if test -n "$ac_ct_OTOOL64"; then
12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12870 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
12871 else
12872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 printf "%s\n" "no" >&6; }
12874 fi
12875
12876 if test "x$ac_ct_OTOOL64" = x; then
12877 OTOOL64=":"
12878 else
12879 case $cross_compiling:$ac_tool_warned in
12880 yes:)
12881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12882 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12883 ac_tool_warned=yes ;;
12884 esac
12885 OTOOL64=$ac_ct_OTOOL64
12886 fi
12887 else
12888 OTOOL64="$ac_cv_prog_OTOOL64"
12889 fi
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12918 printf %s "checking for -single_module linker flag... " >&6; }
12919 if test ${lt_cv_apple_cc_single_mod+y}
12920 then :
12921 printf %s "(cached) " >&6
12922 else case e in #(
12923 e) lt_cv_apple_cc_single_mod=no
12924 if test -z "$LT_MULTI_MODULE"; then
12925 # By default we will add the -single_module flag. You can override
12926 # by either setting the environment variable LT_MULTI_MODULE
12927 # non-empty at configure time, or by adding -multi_module to the
12928 # link flags.
12929 rm -rf libconftest.dylib*
12930 echo "int foo(void){return 1;}" > conftest.c
12931 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12932 -dynamiclib -Wl,-single_module conftest.c" >&5
12933 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12934 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12935 _lt_result=$?
12936 # If there is a non-empty error log, and "single_module"
12937 # appears in it, assume the flag caused a linker warning
12938 if test -s conftest.err && $GREP single_module conftest.err; then
12939 cat conftest.err >&5
12940 # Otherwise, if the output was created with a 0 exit code from
12941 # the compiler, it worked.
12942 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12943 lt_cv_apple_cc_single_mod=yes
12944 else
12945 cat conftest.err >&5
12946 fi
12947 rm -rf libconftest.dylib*
12948 rm -f conftest.*
12949 fi ;;
12950 esac
12951 fi
12952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12953 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
12954
12955 # Feature test to disable chained fixups since it is not
12956 # compatible with '-undefined dynamic_lookup'
12957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
12958 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
12959 if test ${lt_cv_support_no_fixup_chains+y}
12960 then :
12961 printf %s "(cached) " >&6
12962 else case e in #(
12963 e) save_LDFLAGS=$LDFLAGS
12964 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12967
12968 int
12969 main (void)
12970 {
12971
12972 ;
12973 return 0;
12974 }
12975 _ACEOF
12976 if ac_fn_c_try_link "$LINENO"
12977 then :
12978 lt_cv_support_no_fixup_chains=yes
12979 else case e in #(
12980 e) lt_cv_support_no_fixup_chains=no
12981 ;;
12982 esac
12983 fi
12984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12985 conftest$ac_exeext conftest.$ac_ext
12986 LDFLAGS=$save_LDFLAGS
12987
12988 ;;
12989 esac
12990 fi
12991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
12992 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
12993
12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12995 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
12996 if test ${lt_cv_ld_exported_symbols_list+y}
12997 then :
12998 printf %s "(cached) " >&6
12999 else case e in #(
13000 e) lt_cv_ld_exported_symbols_list=no
13001 save_LDFLAGS=$LDFLAGS
13002 echo "_main" > conftest.sym
13003 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13006
13007 int
13008 main (void)
13009 {
13010
13011 ;
13012 return 0;
13013 }
13014 _ACEOF
13015 if ac_fn_c_try_link "$LINENO"
13016 then :
13017 lt_cv_ld_exported_symbols_list=yes
13018 else case e in #(
13019 e) lt_cv_ld_exported_symbols_list=no ;;
13020 esac
13021 fi
13022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13023 conftest$ac_exeext conftest.$ac_ext
13024 LDFLAGS=$save_LDFLAGS
13025 ;;
13026 esac
13027 fi
13028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13029 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
13030
13031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13032 printf %s "checking for -force_load linker flag... " >&6; }
13033 if test ${lt_cv_ld_force_load+y}
13034 then :
13035 printf %s "(cached) " >&6
13036 else case e in #(
13037 e) lt_cv_ld_force_load=no
13038 cat > conftest.c << _LT_EOF
13039 int forced_loaded() { return 2;}
13040 _LT_EOF
13041 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13042 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13043 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
13044 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
13045 echo "$RANLIB libconftest.a" >&5
13046 $RANLIB libconftest.a 2>&5
13047 cat > conftest.c << _LT_EOF
13048 int main(void) { return 0;}
13049 _LT_EOF
13050 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13051 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13052 _lt_result=$?
13053 if test -s conftest.err && $GREP force_load conftest.err; then
13054 cat conftest.err >&5
13055 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13056 lt_cv_ld_force_load=yes
13057 else
13058 cat conftest.err >&5
13059 fi
13060 rm -f conftest.err libconftest.a conftest conftest.c
13061 rm -rf conftest.dSYM
13062 ;;
13063 esac
13064 fi
13065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13066 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
13067 case $host_os in
13068 rhapsody* | darwin1.[012])
13069 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
13070 darwin1.*)
13071 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13072 darwin*)
13073 case $MACOSX_DEPLOYMENT_TARGET,$host in
13074 10.[012],*|,*powerpc*-darwin[5-8]*)
13075 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13076 *)
13077 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
13078 if test yes = "$lt_cv_support_no_fixup_chains"; then
13079 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
13080 fi
13081 ;;
13082 esac
13083 ;;
13084 esac
13085 if test yes = "$lt_cv_apple_cc_single_mod"; then
13086 _lt_dar_single_mod='$single_module'
13087 fi
13088 _lt_dar_needs_single_mod=no
13089 case $host_os in
13090 rhapsody* | darwin1.*)
13091 _lt_dar_needs_single_mod=yes ;;
13092 darwin*)
13093 # When targeting Mac OS X 10.4 (darwin 8) or later,
13094 # -single_module is the default and -multi_module is unsupported.
13095 # The toolchain on macOS 10.14 (darwin 18) and later cannot
13096 # target any OS version that needs -single_module.
13097 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13098 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
13099 _lt_dar_needs_single_mod=yes ;;
13100 esac
13101 ;;
13102 esac
13103 if test yes = "$lt_cv_ld_exported_symbols_list"; then
13104 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
13105 else
13106 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
13107 fi
13108 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
13109 _lt_dsymutil='~$DSYMUTIL $lib || :'
13110 else
13111 _lt_dsymutil=
13112 fi
13113 ;;
13114 esac
13115
13116 # func_munge_path_list VARIABLE PATH
13117 # -----------------------------------
13118 # VARIABLE is name of variable containing _space_ separated list of
13119 # directories to be munged by the contents of PATH, which is string
13120 # having a format:
13121 # "DIR[:DIR]:"
13122 # string "DIR[ DIR]" will be prepended to VARIABLE
13123 # ":DIR[:DIR]"
13124 # string "DIR[ DIR]" will be appended to VARIABLE
13125 # "DIRP[:DIRP]::[DIRA:]DIRA"
13126 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
13127 # "DIRA[ DIRA]" will be appended to VARIABLE
13128 # "DIR[:DIR]"
13129 # VARIABLE will be replaced by "DIR[ DIR]"
13130 func_munge_path_list ()
13131 {
13132 case x$2 in
13133 x)
13134 ;;
13135 *:)
13136 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
13137 ;;
13138 x:*)
13139 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
13140 ;;
13141 *::*)
13142 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
13143 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
13144 ;;
13145 *)
13146 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
13147 ;;
13148 esac
13149 }
13150
13151 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13152 "
13153 if test "x$ac_cv_header_dlfcn_h" = xyes
13154 then :
13155 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
13156
13157 fi
13158
13159
13160
13161
13162
13163 # Set options
13164 # Check whether --enable-static was given.
13165 if test ${enable_static+y}
13166 then :
13167 enableval=$enable_static; p=${PACKAGE-default}
13168 case $enableval in
13169 yes) enable_static=yes ;;
13170 no) enable_static=no ;;
13171 *)
13172 enable_static=no
13173 # Look at the argument we got. We use all the common list separators.
13174 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13175 for pkg in $enableval; do
13176 IFS=$lt_save_ifs
13177 if test "X$pkg" = "X$p"; then
13178 enable_static=yes
13179 fi
13180 done
13181 IFS=$lt_save_ifs
13182 ;;
13183 esac
13184 else case e in #(
13185 e) enable_static=no ;;
13186 esac
13187 fi
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198 enable_dlopen=no
13199
13200
13201 enable_win32_dll=no
13202
13203
13204 # Check whether --enable-shared was given.
13205 if test ${enable_shared+y}
13206 then :
13207 enableval=$enable_shared; p=${PACKAGE-default}
13208 case $enableval in
13209 yes) enable_shared=yes ;;
13210 no) enable_shared=no ;;
13211 *)
13212 enable_shared=no
13213 # Look at the argument we got. We use all the common list separators.
13214 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13215 for pkg in $enableval; do
13216 IFS=$lt_save_ifs
13217 if test "X$pkg" = "X$p"; then
13218 enable_shared=yes
13219 fi
13220 done
13221 IFS=$lt_save_ifs
13222 ;;
13223 esac
13224 else case e in #(
13225 e) enable_shared=yes ;;
13226 esac
13227 fi
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238 # Check whether --enable-pic was given.
13239 if test ${enable_pic+y}
13240 then :
13241 enableval=$enable_pic; lt_p=${PACKAGE-default}
13242 case $enableval in
13243 yes|no) pic_mode=$enableval ;;
13244 *)
13245 pic_mode=default
13246 # Look at the argument we got. We use all the common list separators.
13247 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13248 for lt_pkg in $enableval; do
13249 IFS=$lt_save_ifs
13250 if test "X$lt_pkg" = "X$lt_p"; then
13251 pic_mode=yes
13252 fi
13253 done
13254 IFS=$lt_save_ifs
13255 ;;
13256 esac
13257 else case e in #(
13258 e) # Check whether --with-pic was given.
13259 if test ${with_pic+y}
13260 then :
13261 withval=$with_pic; lt_p=${PACKAGE-default}
13262 case $withval in
13263 yes|no) pic_mode=$withval ;;
13264 *)
13265 pic_mode=default
13266 # Look at the argument we got. We use all the common list separators.
13267 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13268 for lt_pkg in $withval; do
13269 IFS=$lt_save_ifs
13270 if test "X$lt_pkg" = "X$lt_p"; then
13271 pic_mode=yes
13272 fi
13273 done
13274 IFS=$lt_save_ifs
13275 ;;
13276 esac
13277 else case e in #(
13278 e) pic_mode=default ;;
13279 esac
13280 fi
13281
13282 ;;
13283 esac
13284 fi
13285
13286
13287
13288
13289
13290
13291
13292
13293 # Check whether --enable-fast-install was given.
13294 if test ${enable_fast_install+y}
13295 then :
13296 enableval=$enable_fast_install; p=${PACKAGE-default}
13297 case $enableval in
13298 yes) enable_fast_install=yes ;;
13299 no) enable_fast_install=no ;;
13300 *)
13301 enable_fast_install=no
13302 # Look at the argument we got. We use all the common list separators.
13303 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13304 for pkg in $enableval; do
13305 IFS=$lt_save_ifs
13306 if test "X$pkg" = "X$p"; then
13307 enable_fast_install=yes
13308 fi
13309 done
13310 IFS=$lt_save_ifs
13311 ;;
13312 esac
13313 else case e in #(
13314 e) enable_fast_install=yes ;;
13315 esac
13316 fi
13317
13318
13319
13320
13321
13322
13323
13324
13325 shared_archive_member_spec=
13326 case $host,$enable_shared in
13327 power*-*-aix[5-9]*,yes)
13328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
13329 printf %s "checking which variant of shared library versioning to provide... " >&6; }
13330 # Check whether --enable-aix-soname was given.
13331 if test ${enable_aix_soname+y}
13332 then :
13333 enableval=$enable_aix_soname; case $enableval in
13334 aix|svr4|both)
13335 ;;
13336 *)
13337 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
13338 ;;
13339 esac
13340 lt_cv_with_aix_soname=$enable_aix_soname
13341 else case e in #(
13342 e) # Check whether --with-aix-soname was given.
13343 if test ${with_aix_soname+y}
13344 then :
13345 withval=$with_aix_soname; case $withval in
13346 aix|svr4|both)
13347 ;;
13348 *)
13349 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
13350 ;;
13351 esac
13352 lt_cv_with_aix_soname=$with_aix_soname
13353 else case e in #(
13354 e) if test ${lt_cv_with_aix_soname+y}
13355 then :
13356 printf %s "(cached) " >&6
13357 else case e in #(
13358 e) lt_cv_with_aix_soname=aix ;;
13359 esac
13360 fi
13361 ;;
13362 esac
13363 fi
13364
13365 enable_aix_soname=$lt_cv_with_aix_soname ;;
13366 esac
13367 fi
13368
13369 with_aix_soname=$enable_aix_soname
13370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
13371 printf "%s\n" "$with_aix_soname" >&6; }
13372 if test aix != "$with_aix_soname"; then
13373 # For the AIX way of multilib, we name the shared archive member
13374 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
13375 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
13376 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
13377 # the AIX toolchain works better with OBJECT_MODE set (default 32).
13378 if test 64 = "${OBJECT_MODE-32}"; then
13379 shared_archive_member_spec=shr_64
13380 else
13381 shared_archive_member_spec=shr
13382 fi
13383 fi
13384 ;;
13385 *)
13386 with_aix_soname=aix
13387 ;;
13388 esac
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399 # This can be used to rebuild libtool when needed
13400 LIBTOOL_DEPS=$ltmain
13401
13402 # Always use our own libtool.
13403 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434 test -z "$LN_S" && LN_S="ln -s"
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449 if test -n "${ZSH_VERSION+set}"; then
13450 setopt NO_GLOB_SUBST
13451 fi
13452
13453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13454 printf %s "checking for objdir... " >&6; }
13455 if test ${lt_cv_objdir+y}
13456 then :
13457 printf %s "(cached) " >&6
13458 else case e in #(
13459 e) rm -f .libs 2>/dev/null
13460 mkdir .libs 2>/dev/null
13461 if test -d .libs; then
13462 lt_cv_objdir=.libs
13463 else
13464 # MS-DOS does not allow filenames that begin with a dot.
13465 lt_cv_objdir=_libs
13466 fi
13467 rmdir .libs 2>/dev/null ;;
13468 esac
13469 fi
13470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13471 printf "%s\n" "$lt_cv_objdir" >&6; }
13472 objdir=$lt_cv_objdir
13473
13474
13475
13476
13477
13478 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
13479
13480
13481
13482
13483 case $host_os in
13484 aix3*)
13485 # AIX sometimes has problems with the GCC collect2 program. For some
13486 # reason, if we set the COLLECT_NAMES environment variable, the problems
13487 # vanish in a puff of smoke.
13488 if test set != "${COLLECT_NAMES+set}"; then
13489 COLLECT_NAMES=
13490 export COLLECT_NAMES
13491 fi
13492 ;;
13493 esac
13494
13495 # Global variables:
13496 ofile=libtool
13497 can_build_shared=yes
13498
13499 # All known linkers require a '.a' archive for static linking (except MSVC and
13500 # ICC, which need '.lib').
13501 libext=a
13502
13503 with_gnu_ld=$lt_cv_prog_gnu_ld
13504
13505 old_CC=$CC
13506 old_CFLAGS=$CFLAGS
13507
13508 # Set sane defaults for various variables
13509 test -z "$CC" && CC=cc
13510 test -z "$LTCC" && LTCC=$CC
13511 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13512 test -z "$LD" && LD=ld
13513 test -z "$ac_objext" && ac_objext=o
13514
13515 func_cc_basename $compiler
13516 cc_basename=$func_cc_basename_result
13517
13518
13519 # Only perform the check for file, if the check method requires it
13520 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13521 case $deplibs_check_method in
13522 file_magic*)
13523 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13525 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
13526 if test ${lt_cv_path_MAGIC_CMD+y}
13527 then :
13528 printf %s "(cached) " >&6
13529 else case e in #(
13530 e) case $MAGIC_CMD in
13531 [\\/*] | ?:[\\/]*)
13532 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13533 ;;
13534 *)
13535 lt_save_MAGIC_CMD=$MAGIC_CMD
13536 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13537 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13538 for ac_dir in $ac_dummy; do
13539 IFS=$lt_save_ifs
13540 test -z "$ac_dir" && ac_dir=.
13541 if test -f "$ac_dir/${ac_tool_prefix}file"; then
13542 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
13543 if test -n "$file_magic_test_file"; then
13544 case $deplibs_check_method in
13545 "file_magic "*)
13546 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13547 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13548 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13549 $EGREP "$file_magic_regex" > /dev/null; then
13550 :
13551 else
13552 cat <<_LT_EOF 1>&2
13553
13554 *** Warning: the command libtool uses to detect shared libraries,
13555 *** $file_magic_cmd, produces output that libtool cannot recognize.
13556 *** The result is that libtool may fail to recognize shared libraries
13557 *** as such. This will affect the creation of libtool libraries that
13558 *** depend on shared libraries, but programs linked with such libtool
13559 *** libraries will work regardless of this problem. Nevertheless, you
13560 *** may want to report the problem to your system manager and/or to
13561 *** [email protected]
13562
13563 _LT_EOF
13564 fi ;;
13565 esac
13566 fi
13567 break
13568 fi
13569 done
13570 IFS=$lt_save_ifs
13571 MAGIC_CMD=$lt_save_MAGIC_CMD
13572 ;;
13573 esac ;;
13574 esac
13575 fi
13576
13577 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13578 if test -n "$MAGIC_CMD"; then
13579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13580 printf "%s\n" "$MAGIC_CMD" >&6; }
13581 else
13582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583 printf "%s\n" "no" >&6; }
13584 fi
13585
13586
13587
13588
13589
13590 if test -z "$lt_cv_path_MAGIC_CMD"; then
13591 if test -n "$ac_tool_prefix"; then
13592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13593 printf %s "checking for file... " >&6; }
13594 if test ${lt_cv_path_MAGIC_CMD+y}
13595 then :
13596 printf %s "(cached) " >&6
13597 else case e in #(
13598 e) case $MAGIC_CMD in
13599 [\\/*] | ?:[\\/]*)
13600 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13601 ;;
13602 *)
13603 lt_save_MAGIC_CMD=$MAGIC_CMD
13604 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13605 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13606 for ac_dir in $ac_dummy; do
13607 IFS=$lt_save_ifs
13608 test -z "$ac_dir" && ac_dir=.
13609 if test -f "$ac_dir/file"; then
13610 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13611 if test -n "$file_magic_test_file"; then
13612 case $deplibs_check_method in
13613 "file_magic "*)
13614 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13615 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13617 $EGREP "$file_magic_regex" > /dev/null; then
13618 :
13619 else
13620 cat <<_LT_EOF 1>&2
13621
13622 *** Warning: the command libtool uses to detect shared libraries,
13623 *** $file_magic_cmd, produces output that libtool cannot recognize.
13624 *** The result is that libtool may fail to recognize shared libraries
13625 *** as such. This will affect the creation of libtool libraries that
13626 *** depend on shared libraries, but programs linked with such libtool
13627 *** libraries will work regardless of this problem. Nevertheless, you
13628 *** may want to report the problem to your system manager and/or to
13629 *** [email protected]
13630
13631 _LT_EOF
13632 fi ;;
13633 esac
13634 fi
13635 break
13636 fi
13637 done
13638 IFS=$lt_save_ifs
13639 MAGIC_CMD=$lt_save_MAGIC_CMD
13640 ;;
13641 esac ;;
13642 esac
13643 fi
13644
13645 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13646 if test -n "$MAGIC_CMD"; then
13647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13648 printf "%s\n" "$MAGIC_CMD" >&6; }
13649 else
13650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651 printf "%s\n" "no" >&6; }
13652 fi
13653
13654
13655 else
13656 MAGIC_CMD=:
13657 fi
13658 fi
13659
13660 fi
13661 ;;
13662 esac
13663
13664 # Use C for the default configuration in the libtool script
13665
13666 lt_save_CC=$CC
13667 ac_ext=c
13668 ac_cpp='$CPP $CPPFLAGS'
13669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13672
13673
13674 # Source file extension for C test sources.
13675 ac_ext=c
13676
13677 # Object file extension for compiled C test sources.
13678 objext=o
13679 objext=$objext
13680
13681 # Code to be used in simple compile tests
13682 lt_simple_compile_test_code="int some_variable = 0;"
13683
13684 # Code to be used in simple link tests
13685 lt_simple_link_test_code='int main(void){return(0);}'
13686
13687
13688
13689
13690
13691
13692
13693 # If no C compiler was specified, use CC.
13694 LTCC=${LTCC-"$CC"}
13695
13696 # If no C compiler flags were specified, use CFLAGS.
13697 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13698
13699 # Allow CC to be a program name with arguments.
13700 compiler=$CC
13701
13702 # Save the default compiler, since it gets overwritten when the other
13703 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13704 compiler_DEFAULT=$CC
13705
13706 # save warnings/boilerplate of simple test code
13707 ac_outfile=conftest.$ac_objext
13708 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13709 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13710 _lt_compiler_boilerplate=`cat conftest.err`
13711 $RM conftest*
13712
13713 ac_outfile=conftest.$ac_objext
13714 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13715 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13716 _lt_linker_boilerplate=`cat conftest.err`
13717 $RM -r conftest*
13718
13719
13720 ## CAVEAT EMPTOR:
13721 ## There is no encapsulation within the following macros, do not change
13722 ## the running order or otherwise move them around unless you know exactly
13723 ## what you are doing...
13724 if test -n "$compiler"; then
13725
13726 lt_prog_compiler_no_builtin_flag=
13727
13728 if test yes = "$GCC"; then
13729 case $cc_basename in
13730 nvcc*)
13731 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13732 *)
13733 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13734 esac
13735
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13737 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13738 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13739 then :
13740 printf %s "(cached) " >&6
13741 else case e in #(
13742 e) lt_cv_prog_compiler_rtti_exceptions=no
13743 ac_outfile=conftest.$ac_objext
13744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13745 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
13746 # Insert the option either (1) after the last *FLAGS variable, or
13747 # (2) before a word containing "conftest.", or (3) at the end.
13748 # Note that $ac_compile itself does not contain backslashes and begins
13749 # with a dollar sign (not a hyphen), so the echo should work correctly.
13750 # The option is referenced via a variable to avoid confusing sed.
13751 lt_compile=`echo "$ac_compile" | $SED \
13752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13754 -e 's:$: $lt_compiler_flag:'`
13755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13756 (eval "$lt_compile" 2>conftest.err)
13757 ac_status=$?
13758 cat conftest.err >&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 if (exit $ac_status) && test -s "$ac_outfile"; then
13761 # The compiler can only warn and ignore the option if not recognized
13762 # So say no if there are warnings other than the usual output.
13763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13765 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13766 lt_cv_prog_compiler_rtti_exceptions=yes
13767 fi
13768 fi
13769 $RM conftest*
13770 ;;
13771 esac
13772 fi
13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13774 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13775
13776 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13777 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13778 else
13779 :
13780 fi
13781
13782 fi
13783
13784
13785
13786
13787
13788
13789 lt_prog_compiler_wl=
13790 lt_prog_compiler_pic=
13791 lt_prog_compiler_static=
13792
13793
13794 if test yes = "$GCC"; then
13795 lt_prog_compiler_wl='-Wl,'
13796 lt_prog_compiler_static='-static'
13797
13798 case $host_os in
13799 aix*)
13800 # All AIX code is PIC.
13801 if test ia64 = "$host_cpu"; then
13802 # AIX 5 now supports IA64 processor
13803 lt_prog_compiler_static='-Bstatic'
13804 fi
13805 lt_prog_compiler_pic='-fPIC'
13806 ;;
13807
13808 amigaos*)
13809 case $host_cpu in
13810 powerpc)
13811 # see comment about AmigaOS4 .so support
13812 lt_prog_compiler_pic='-fPIC'
13813 ;;
13814 m68k)
13815 # FIXME: we need at least 68020 code to build shared libraries, but
13816 # adding the '-m68020' flag to GCC prevents building anything better,
13817 # like '-m68040'.
13818 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13819 ;;
13820 esac
13821 ;;
13822
13823 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13824 # PIC is the default for these OSes.
13825 ;;
13826
13827 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13828 # This hack is so that the source file can tell whether it is being
13829 # built for inclusion in a dll (and should export symbols for example).
13830 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13831 # (--disable-auto-import) libraries
13832 lt_prog_compiler_pic='-DDLL_EXPORT'
13833 case $host_os in
13834 os2*)
13835 lt_prog_compiler_static='$wl-static'
13836 ;;
13837 esac
13838 ;;
13839
13840 darwin* | rhapsody*)
13841 # PIC is the default on this platform
13842 # Common symbols not allowed in MH_DYLIB files
13843 lt_prog_compiler_pic='-fno-common'
13844 ;;
13845
13846 haiku*)
13847 # PIC is the default for Haiku.
13848 # The "-static" flag exists, but is broken.
13849 lt_prog_compiler_static=
13850 ;;
13851
13852 hpux*)
13853 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13854 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13855 # sets the default TLS model and affects inlining.
13856 case $host_cpu in
13857 hppa*64*)
13858 # +Z the default
13859 ;;
13860 *)
13861 lt_prog_compiler_pic='-fPIC'
13862 ;;
13863 esac
13864 ;;
13865
13866 interix[3-9]*)
13867 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13868 # Instead, we relocate shared libraries at runtime.
13869 ;;
13870
13871 msdosdjgpp*)
13872 # Just because we use GCC doesn't mean we suddenly get shared libraries
13873 # on systems that don't support them.
13874 lt_prog_compiler_can_build_shared=no
13875 enable_shared=no
13876 ;;
13877
13878 *nto* | *qnx*)
13879 # QNX uses GNU C++, but need to define -shared option too, otherwise
13880 # it will coredump.
13881 lt_prog_compiler_pic='-fPIC -shared'
13882 ;;
13883
13884 sysv4*MP*)
13885 if test -d /usr/nec; then
13886 lt_prog_compiler_pic=-Kconform_pic
13887 fi
13888 ;;
13889
13890 *)
13891 lt_prog_compiler_pic='-fPIC'
13892 ;;
13893 esac
13894
13895 case $cc_basename in
13896 nvcc*) # Cuda Compiler Driver 2.2
13897 lt_prog_compiler_wl='-Xlinker '
13898 if test -n "$lt_prog_compiler_pic"; then
13899 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13900 fi
13901 ;;
13902 esac
13903 else
13904 # PORTME Check for flag to pass linker flags through the system compiler.
13905 case $host_os in
13906 aix*)
13907 lt_prog_compiler_wl='-Wl,'
13908 if test ia64 = "$host_cpu"; then
13909 # AIX 5 now supports IA64 processor
13910 lt_prog_compiler_static='-Bstatic'
13911 else
13912 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13913 fi
13914 ;;
13915
13916 darwin* | rhapsody*)
13917 # PIC is the default on this platform
13918 # Common symbols not allowed in MH_DYLIB files
13919 lt_prog_compiler_pic='-fno-common'
13920 case $cc_basename in
13921 nagfor*)
13922 # NAG Fortran compiler
13923 lt_prog_compiler_wl='-Wl,-Wl,,'
13924 lt_prog_compiler_pic='-PIC'
13925 lt_prog_compiler_static='-Bstatic'
13926 ;;
13927 esac
13928 ;;
13929
13930 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13931 # This hack is so that the source file can tell whether it is being
13932 # built for inclusion in a dll (and should export symbols for example).
13933 lt_prog_compiler_pic='-DDLL_EXPORT'
13934 case $host_os in
13935 os2*)
13936 lt_prog_compiler_static='$wl-static'
13937 ;;
13938 esac
13939 ;;
13940
13941 hpux9* | hpux10* | hpux11*)
13942 lt_prog_compiler_wl='-Wl,'
13943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13944 # not for PA HP-UX.
13945 case $host_cpu in
13946 hppa*64*|ia64*)
13947 # +Z the default
13948 ;;
13949 *)
13950 lt_prog_compiler_pic='+Z'
13951 ;;
13952 esac
13953 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13954 lt_prog_compiler_static='$wl-a ${wl}archive'
13955 ;;
13956
13957 irix5* | irix6* | nonstopux*)
13958 lt_prog_compiler_wl='-Wl,'
13959 # PIC (with -KPIC) is the default.
13960 lt_prog_compiler_static='-non_shared'
13961 ;;
13962
13963 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13964 case $cc_basename in
13965 # old Intel for x86_64, which still supported -KPIC.
13966 ecc*)
13967 lt_prog_compiler_wl='-Wl,'
13968 lt_prog_compiler_pic='-KPIC'
13969 lt_prog_compiler_static='-static'
13970 ;;
13971 *flang* | ftn | f18* | f95*)
13972 # Flang compiler.
13973 lt_prog_compiler_wl='-Wl,'
13974 lt_prog_compiler_pic='-fPIC'
13975 lt_prog_compiler_static='-static'
13976 ;;
13977 # flang / f18. f95 an alias for gfortran or flang on Debian
13978 flang* | f18* | f95*)
13979 lt_prog_compiler_wl='-Wl,'
13980 lt_prog_compiler_pic='-fPIC'
13981 lt_prog_compiler_static='-static'
13982 ;;
13983 # icc used to be incompatible with GCC.
13984 # ICC 10 doesn't accept -KPIC any more.
13985 icc* | ifort*)
13986 lt_prog_compiler_wl='-Wl,'
13987 lt_prog_compiler_pic='-fPIC'
13988 lt_prog_compiler_static='-static'
13989 ;;
13990 # Lahey Fortran 8.1.
13991 lf95*)
13992 lt_prog_compiler_wl='-Wl,'
13993 lt_prog_compiler_pic='--shared'
13994 lt_prog_compiler_static='--static'
13995 ;;
13996 nagfor*)
13997 # NAG Fortran compiler
13998 lt_prog_compiler_wl='-Wl,-Wl,,'
13999 lt_prog_compiler_pic='-PIC'
14000 lt_prog_compiler_static='-Bstatic'
14001 ;;
14002 tcc*)
14003 # Fabrice Bellard et al's Tiny C Compiler
14004 lt_prog_compiler_wl='-Wl,'
14005 lt_prog_compiler_pic='-fPIC'
14006 lt_prog_compiler_static='-static'
14007 ;;
14008 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14009 # Portland Group compilers (*not* the Pentium gcc compiler,
14010 # which looks to be a dead project)
14011 lt_prog_compiler_wl='-Wl,'
14012 lt_prog_compiler_pic='-fpic'
14013 lt_prog_compiler_static='-Bstatic'
14014 ;;
14015 ccc*)
14016 lt_prog_compiler_wl='-Wl,'
14017 # All Alpha code is PIC.
14018 lt_prog_compiler_static='-non_shared'
14019 ;;
14020 xl* | bgxl* | bgf* | mpixl*)
14021 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14022 lt_prog_compiler_wl='-Wl,'
14023 lt_prog_compiler_pic='-qpic'
14024 lt_prog_compiler_static='-qstaticlink'
14025 ;;
14026 *)
14027 case `$CC -V 2>&1 | $SED 5q` in
14028 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14029 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14030 lt_prog_compiler_pic='-KPIC'
14031 lt_prog_compiler_static='-Bstatic'
14032 lt_prog_compiler_wl=''
14033 ;;
14034 *Sun\ F* | *Sun*Fortran*)
14035 lt_prog_compiler_pic='-KPIC'
14036 lt_prog_compiler_static='-Bstatic'
14037 lt_prog_compiler_wl='-Qoption ld '
14038 ;;
14039 *Sun\ C*)
14040 # Sun C 5.9
14041 lt_prog_compiler_pic='-KPIC'
14042 lt_prog_compiler_static='-Bstatic'
14043 lt_prog_compiler_wl='-Wl,'
14044 ;;
14045 *Intel*\ [CF]*Compiler*)
14046 lt_prog_compiler_wl='-Wl,'
14047 lt_prog_compiler_pic='-fPIC'
14048 lt_prog_compiler_static='-static'
14049 ;;
14050 *Portland\ Group*)
14051 lt_prog_compiler_wl='-Wl,'
14052 lt_prog_compiler_pic='-fpic'
14053 lt_prog_compiler_static='-Bstatic'
14054 ;;
14055 esac
14056 ;;
14057 esac
14058 ;;
14059
14060 newsos6)
14061 lt_prog_compiler_pic='-KPIC'
14062 lt_prog_compiler_static='-Bstatic'
14063 ;;
14064
14065 *-mlibc)
14066 lt_prog_compiler_wl='-Wl,'
14067 lt_prog_compiler_pic='-fPIC'
14068 lt_prog_compiler_static='-static'
14069 ;;
14070
14071 *nto* | *qnx*)
14072 # QNX uses GNU C++, but need to define -shared option too, otherwise
14073 # it will coredump.
14074 lt_prog_compiler_pic='-fPIC -shared'
14075 ;;
14076
14077 osf3* | osf4* | osf5*)
14078 lt_prog_compiler_wl='-Wl,'
14079 # All OSF/1 code is PIC.
14080 lt_prog_compiler_static='-non_shared'
14081 ;;
14082
14083 rdos*)
14084 lt_prog_compiler_static='-non_shared'
14085 ;;
14086
14087 serenity*)
14088 ;;
14089
14090 solaris*)
14091 lt_prog_compiler_pic='-KPIC'
14092 lt_prog_compiler_static='-Bstatic'
14093 case $cc_basename in
14094 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14095 lt_prog_compiler_wl='-Qoption ld ';;
14096 *)
14097 lt_prog_compiler_wl='-Wl,';;
14098 esac
14099 ;;
14100
14101 sunos4*)
14102 lt_prog_compiler_wl='-Qoption ld '
14103 lt_prog_compiler_pic='-PIC'
14104 lt_prog_compiler_static='-Bstatic'
14105 ;;
14106
14107 sysv4 | sysv4.2uw2* | sysv4.3*)
14108 lt_prog_compiler_wl='-Wl,'
14109 lt_prog_compiler_pic='-KPIC'
14110 lt_prog_compiler_static='-Bstatic'
14111 ;;
14112
14113 sysv4*MP*)
14114 if test -d /usr/nec; then
14115 lt_prog_compiler_pic='-Kconform_pic'
14116 lt_prog_compiler_static='-Bstatic'
14117 fi
14118 ;;
14119
14120 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14121 lt_prog_compiler_wl='-Wl,'
14122 lt_prog_compiler_pic='-KPIC'
14123 lt_prog_compiler_static='-Bstatic'
14124 ;;
14125
14126 unicos*)
14127 lt_prog_compiler_wl='-Wl,'
14128 lt_prog_compiler_can_build_shared=no
14129 ;;
14130
14131 uts4*)
14132 lt_prog_compiler_pic='-pic'
14133 lt_prog_compiler_static='-Bstatic'
14134 ;;
14135
14136 *)
14137 lt_prog_compiler_can_build_shared=no
14138 ;;
14139 esac
14140 fi
14141
14142 case $host_os in
14143 # For platforms that do not support PIC, -DPIC is meaningless:
14144 *djgpp*)
14145 lt_prog_compiler_pic=
14146 ;;
14147 *)
14148 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14149 ;;
14150 esac
14151
14152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14153 printf %s "checking for $compiler option to produce PIC... " >&6; }
14154 if test ${lt_cv_prog_compiler_pic+y}
14155 then :
14156 printf %s "(cached) " >&6
14157 else case e in #(
14158 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14159 esac
14160 fi
14161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14162 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14163 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14164
14165 #
14166 # Check to make sure the PIC flag actually works.
14167 #
14168 if test -n "$lt_prog_compiler_pic"; then
14169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14170 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14171 if test ${lt_cv_prog_compiler_pic_works+y}
14172 then :
14173 printf %s "(cached) " >&6
14174 else case e in #(
14175 e) lt_cv_prog_compiler_pic_works=no
14176 ac_outfile=conftest.$ac_objext
14177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14178 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14179 # Insert the option either (1) after the last *FLAGS variable, or
14180 # (2) before a word containing "conftest.", or (3) at the end.
14181 # Note that $ac_compile itself does not contain backslashes and begins
14182 # with a dollar sign (not a hyphen), so the echo should work correctly.
14183 # The option is referenced via a variable to avoid confusing sed.
14184 lt_compile=`echo "$ac_compile" | $SED \
14185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14187 -e 's:$: $lt_compiler_flag:'`
14188 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14189 (eval "$lt_compile" 2>conftest.err)
14190 ac_status=$?
14191 cat conftest.err >&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 if (exit $ac_status) && test -s "$ac_outfile"; then
14194 # The compiler can only warn and ignore the option if not recognized
14195 # So say no if there are warnings other than the usual output.
14196 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14198 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14199 lt_cv_prog_compiler_pic_works=yes
14200 fi
14201 fi
14202 $RM conftest*
14203 ;;
14204 esac
14205 fi
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14207 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14208
14209 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14210 case $lt_prog_compiler_pic in
14211 "" | " "*) ;;
14212 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14213 esac
14214 else
14215 lt_prog_compiler_pic=
14216 lt_prog_compiler_can_build_shared=no
14217 fi
14218
14219 fi
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231 #
14232 # Check to make sure the static flag actually works.
14233 #
14234 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14236 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14237 if test ${lt_cv_prog_compiler_static_works+y}
14238 then :
14239 printf %s "(cached) " >&6
14240 else case e in #(
14241 e) lt_cv_prog_compiler_static_works=no
14242 save_LDFLAGS=$LDFLAGS
14243 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14244 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14245 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14246 # The linker can only warn and ignore the option if not recognized
14247 # So say no if there are warnings
14248 if test -s conftest.err; then
14249 # Append any errors to the config.log.
14250 cat conftest.err 1>&5
14251 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14253 if diff conftest.exp conftest.er2 >/dev/null; then
14254 lt_cv_prog_compiler_static_works=yes
14255 fi
14256 else
14257 lt_cv_prog_compiler_static_works=yes
14258 fi
14259 fi
14260 $RM -r conftest*
14261 LDFLAGS=$save_LDFLAGS
14262 ;;
14263 esac
14264 fi
14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14266 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14267
14268 if test yes = "$lt_cv_prog_compiler_static_works"; then
14269 :
14270 else
14271 lt_prog_compiler_static=
14272 fi
14273
14274
14275
14276
14277
14278
14279
14280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14281 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14282 if test ${lt_cv_prog_compiler_c_o+y}
14283 then :
14284 printf %s "(cached) " >&6
14285 else case e in #(
14286 e) lt_cv_prog_compiler_c_o=no
14287 $RM -r conftest 2>/dev/null
14288 mkdir conftest
14289 cd conftest
14290 mkdir out
14291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14292
14293 lt_compiler_flag="-o out/conftest2.$ac_objext"
14294 # Insert the option either (1) after the last *FLAGS variable, or
14295 # (2) before a word containing "conftest.", or (3) at the end.
14296 # Note that $ac_compile itself does not contain backslashes and begins
14297 # with a dollar sign (not a hyphen), so the echo should work correctly.
14298 lt_compile=`echo "$ac_compile" | $SED \
14299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14301 -e 's:$: $lt_compiler_flag:'`
14302 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14303 (eval "$lt_compile" 2>out/conftest.err)
14304 ac_status=$?
14305 cat out/conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14308 then
14309 # The compiler can only warn and ignore the option if not recognized
14310 # So say no if there are warnings
14311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14314 lt_cv_prog_compiler_c_o=yes
14315 fi
14316 fi
14317 chmod u+w . 2>&5
14318 $RM conftest*
14319 # SGI C++ compiler will create directory out/ii_files/ for
14320 # template instantiation
14321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14322 $RM out/* && rmdir out
14323 cd ..
14324 $RM -r conftest
14325 $RM conftest*
14326 ;;
14327 esac
14328 fi
14329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14330 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
14331
14332
14333
14334
14335
14336
14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14338 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14339 if test ${lt_cv_prog_compiler_c_o+y}
14340 then :
14341 printf %s "(cached) " >&6
14342 else case e in #(
14343 e) lt_cv_prog_compiler_c_o=no
14344 $RM -r conftest 2>/dev/null
14345 mkdir conftest
14346 cd conftest
14347 mkdir out
14348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14349
14350 lt_compiler_flag="-o out/conftest2.$ac_objext"
14351 # Insert the option either (1) after the last *FLAGS variable, or
14352 # (2) before a word containing "conftest.", or (3) at the end.
14353 # Note that $ac_compile itself does not contain backslashes and begins
14354 # with a dollar sign (not a hyphen), so the echo should work correctly.
14355 lt_compile=`echo "$ac_compile" | $SED \
14356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14358 -e 's:$: $lt_compiler_flag:'`
14359 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14360 (eval "$lt_compile" 2>out/conftest.err)
14361 ac_status=$?
14362 cat out/conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14365 then
14366 # The compiler can only warn and ignore the option if not recognized
14367 # So say no if there are warnings
14368 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14369 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14370 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14371 lt_cv_prog_compiler_c_o=yes
14372 fi
14373 fi
14374 chmod u+w . 2>&5
14375 $RM conftest*
14376 # SGI C++ compiler will create directory out/ii_files/ for
14377 # template instantiation
14378 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14379 $RM out/* && rmdir out
14380 cd ..
14381 $RM -r conftest
14382 $RM conftest*
14383 ;;
14384 esac
14385 fi
14386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14387 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
14388
14389
14390
14391
14392 hard_links=nottested
14393 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
14394 # do not overwrite the value of need_locks provided by the user
14395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14396 printf %s "checking if we can lock with hard links... " >&6; }
14397 hard_links=yes
14398 $RM conftest*
14399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14400 touch conftest.a
14401 ln conftest.a conftest.b 2>&5 || hard_links=no
14402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14404 printf "%s\n" "$hard_links" >&6; }
14405 if test no = "$hard_links"; then
14406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14407 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14408 need_locks=warn
14409 fi
14410 else
14411 need_locks=no
14412 fi
14413
14414
14415
14416
14417
14418
14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14420 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14421
14422 runpath_var=
14423 allow_undefined_flag=
14424 always_export_symbols=no
14425 archive_cmds=
14426 archive_expsym_cmds=
14427 compiler_needs_object=no
14428 enable_shared_with_static_runtimes=no
14429 export_dynamic_flag_spec=
14430 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14431 hardcode_automatic=no
14432 hardcode_direct=no
14433 hardcode_direct_absolute=no
14434 hardcode_libdir_flag_spec=
14435 hardcode_libdir_separator=
14436 hardcode_minus_L=no
14437 hardcode_shlibpath_var=unsupported
14438 inherit_rpath=no
14439 link_all_deplibs=unknown
14440 module_cmds=
14441 module_expsym_cmds=
14442 old_archive_from_new_cmds=
14443 old_archive_from_expsyms_cmds=
14444 thread_safe_flag_spec=
14445 whole_archive_flag_spec=
14446 # include_expsyms should be a list of space-separated symbols to be *always*
14447 # included in the symbol list
14448 include_expsyms=
14449 # exclude_expsyms can be an extended regexp of symbols to exclude
14450 # it will be wrapped by ' (' and ')$', so one must not match beginning or
14451 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
14452 # as well as any symbol that contains 'd'.
14453 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14454 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14455 # platforms (ab)use it in PIC code, but their linkers get confused if
14456 # the symbol is explicitly referenced. Since portable code cannot
14457 # rely on this symbol name, it's probably fine to never include it in
14458 # preloaded symbol tables.
14459 # Exclude shared library initialization/finalization symbols.
14460 extract_expsyms_cmds=
14461
14462 case $host_os in
14463 cygwin* | mingw* | windows* | pw32* | cegcc*)
14464 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
14465 # When not using gcc, we currently assume that we are using
14466 # Microsoft Visual C++ or Intel C++ Compiler.
14467 if test yes != "$GCC"; then
14468 with_gnu_ld=no
14469 fi
14470 ;;
14471 interix*)
14472 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
14473 with_gnu_ld=yes
14474 ;;
14475 linux* | k*bsd*-gnu | gnu*)
14476 link_all_deplibs=no
14477 ;;
14478 esac
14479
14480 ld_shlibs=yes
14481
14482 # On some targets, GNU ld is compatible enough with the native linker
14483 # that we're better off using the native interface for both.
14484 lt_use_gnu_ld_interface=no
14485 if test yes = "$with_gnu_ld"; then
14486 case $host_os in
14487 aix*)
14488 # The AIX port of GNU ld has always aspired to compatibility
14489 # with the native linker. However, as the warning in the GNU ld
14490 # block says, versions before 2.19.5* couldn't really create working
14491 # shared libraries, regardless of the interface used.
14492 case `$LD -v 2>&1` in
14493 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14494 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14495 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14496 *)
14497 lt_use_gnu_ld_interface=yes
14498 ;;
14499 esac
14500 ;;
14501 *)
14502 lt_use_gnu_ld_interface=yes
14503 ;;
14504 esac
14505 fi
14506
14507 if test yes = "$lt_use_gnu_ld_interface"; then
14508 # If archive_cmds runs LD, not CC, wlarc should be empty
14509 wlarc='$wl'
14510
14511 # Set some defaults for GNU ld with shared library support. These
14512 # are reset later if shared libraries are not supported. Putting them
14513 # here allows them to be overridden if necessary.
14514 runpath_var=LD_RUN_PATH
14515 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14516 export_dynamic_flag_spec='$wl--export-dynamic'
14517 # ancient GNU ld didn't support --whole-archive et. al.
14518 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14519 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14520 else
14521 whole_archive_flag_spec=
14522 fi
14523 supports_anon_versioning=no
14524 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
14525 *GNU\ gold*) supports_anon_versioning=yes ;;
14526 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14527 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14528 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14529 *\ 2.11.*) ;; # other 2.11 versions
14530 *) supports_anon_versioning=yes ;;
14531 esac
14532
14533 # See if GNU ld supports shared libraries.
14534 case $host_os in
14535 aix[3-9]*)
14536 # On AIX/PPC, the GNU linker is very broken
14537 if test ia64 != "$host_cpu"; then
14538 ld_shlibs=no
14539 cat <<_LT_EOF 1>&2
14540
14541 *** Warning: the GNU linker, at least up to release 2.19, is reported
14542 *** to be unable to reliably create shared libraries on AIX.
14543 *** Therefore, libtool is disabling shared libraries support. If you
14544 *** really care for shared libraries, you may want to install binutils
14545 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14546 *** You will then need to restart the configuration process.
14547
14548 _LT_EOF
14549 fi
14550 ;;
14551
14552 amigaos*)
14553 case $host_cpu in
14554 powerpc)
14555 # see comment about AmigaOS4 .so support
14556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14557 archive_expsym_cmds=''
14558 ;;
14559 m68k)
14560 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)'
14561 hardcode_libdir_flag_spec='-L$libdir'
14562 hardcode_minus_L=yes
14563 ;;
14564 esac
14565 ;;
14566
14567 beos*)
14568 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14569 allow_undefined_flag=unsupported
14570 # Joseph Beckenbach <[email protected]> says some releases of gcc
14571 # support --undefined. This deserves some investigation. FIXME
14572 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14573 else
14574 ld_shlibs=no
14575 fi
14576 ;;
14577
14578 cygwin* | mingw* | windows* | pw32* | cegcc*)
14579 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14580 # as there is no search path for DLLs.
14581 hardcode_libdir_flag_spec='-L$libdir'
14582 export_dynamic_flag_spec='$wl--export-all-symbols'
14583 allow_undefined_flag=unsupported
14584 always_export_symbols=no
14585 enable_shared_with_static_runtimes=yes
14586 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'
14587 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14588 file_list_spec='@'
14589
14590 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14592 # If the export-symbols file already is a .def file, use it as
14593 # is; otherwise, prepend EXPORTS...
14594 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14595 cp $export_symbols $output_objdir/$soname.def;
14596 else
14597 echo EXPORTS > $output_objdir/$soname.def;
14598 cat $export_symbols >> $output_objdir/$soname.def;
14599 fi~
14600 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14601 else
14602 ld_shlibs=no
14603 fi
14604 ;;
14605
14606 haiku*)
14607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14608 link_all_deplibs=no
14609 ;;
14610
14611 os2*)
14612 hardcode_libdir_flag_spec='-L$libdir'
14613 hardcode_minus_L=yes
14614 allow_undefined_flag=unsupported
14615 shrext_cmds=.dll
14616 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14617 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14618 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14619 $ECHO EXPORTS >> $output_objdir/$libname.def~
14620 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14621 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14622 emximp -o $lib $output_objdir/$libname.def'
14623 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14624 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14625 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14626 $ECHO EXPORTS >> $output_objdir/$libname.def~
14627 prefix_cmds="$SED"~
14628 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14629 prefix_cmds="$prefix_cmds -e 1d";
14630 fi~
14631 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14632 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14633 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14634 emximp -o $lib $output_objdir/$libname.def'
14635 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14636 enable_shared_with_static_runtimes=yes
14637 file_list_spec='@'
14638 ;;
14639
14640 interix[3-9]*)
14641 hardcode_direct=no
14642 hardcode_shlibpath_var=no
14643 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14644 export_dynamic_flag_spec='$wl-E'
14645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14646 # Instead, shared libraries are loaded at an image base (0x10000000 by
14647 # default) and relocated if they conflict, which is a slow very memory
14648 # consuming and fragmenting process. To avoid this, we pick a random,
14649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14650 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14652 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'
14653 ;;
14654
14655 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14656 tmp_diet=no
14657 if test linux-dietlibc = "$host_os"; then
14658 case $cc_basename in
14659 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14660 esac
14661 fi
14662 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14663 && test no = "$tmp_diet"
14664 then
14665 tmp_addflag=' $pic_flag'
14666 tmp_sharedflag='-shared'
14667 case $cc_basename,$host_cpu in
14668 pgcc*) # Portland Group C compiler
14669 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'
14670 tmp_addflag=' $pic_flag'
14671 ;;
14672 pgf77* | pgf90* | pgf95* | pgfortran*)
14673 # Portland Group f77 and f90 compilers
14674 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'
14675 tmp_addflag=' $pic_flag -Mnomain' ;;
14676 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14677 tmp_addflag=' -i_dynamic' ;;
14678 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14679 tmp_addflag=' -i_dynamic -nofor_main' ;;
14680 ifc* | ifort*) # Intel Fortran compiler
14681 tmp_addflag=' -nofor_main' ;;
14682 lf95*) # Lahey Fortran 8.1
14683 whole_archive_flag_spec=
14684 tmp_sharedflag='--shared' ;;
14685 nagfor*) # NAGFOR 5.3
14686 tmp_sharedflag='-Wl,-shared' ;;
14687 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14688 tmp_sharedflag='-qmkshrobj'
14689 tmp_addflag= ;;
14690 nvcc*) # Cuda Compiler Driver 2.2
14691 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'
14692 compiler_needs_object=yes
14693 ;;
14694 esac
14695 case `$CC -V 2>&1 | $SED 5q` in
14696 *Sun\ C*) # Sun C 5.9
14697 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'
14698 compiler_needs_object=yes
14699 tmp_sharedflag='-G' ;;
14700 *Sun\ F*) # Sun Fortran 8.3
14701 tmp_sharedflag='-G' ;;
14702 esac
14703 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14704
14705 if test yes = "$supports_anon_versioning"; then
14706 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14707 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14708 echo "local: *; };" >> $output_objdir/$libname.ver~
14709 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14710 fi
14711
14712 case $cc_basename in
14713 tcc*)
14714 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14715 export_dynamic_flag_spec='-rdynamic'
14716 ;;
14717 xlf* | bgf* | bgxlf* | mpixlf*)
14718 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14719 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14720 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14721 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14722 if test yes = "$supports_anon_versioning"; then
14723 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14724 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14725 echo "local: *; };" >> $output_objdir/$libname.ver~
14726 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14727 fi
14728 ;;
14729 esac
14730 else
14731 ld_shlibs=no
14732 fi
14733 ;;
14734
14735 *-mlibc)
14736 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14737 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14738 ;;
14739
14740 netbsd* | netbsdelf*-gnu)
14741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14742 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14743 wlarc=
14744 else
14745 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14746 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14747 fi
14748 ;;
14749
14750 solaris*)
14751 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14752 ld_shlibs=no
14753 cat <<_LT_EOF 1>&2
14754
14755 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14756 *** create shared libraries on Solaris systems. Therefore, libtool
14757 *** is disabling shared libraries support. We urge you to upgrade GNU
14758 *** binutils to release 2.9.1 or newer. Another option is to modify
14759 *** your PATH or compiler configuration so that the native linker is
14760 *** used, and then restart.
14761
14762 _LT_EOF
14763 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14764 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14765 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14766 else
14767 ld_shlibs=no
14768 fi
14769 ;;
14770
14771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14772 case `$LD -v 2>&1` in
14773 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14774 ld_shlibs=no
14775 cat <<_LT_EOF 1>&2
14776
14777 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14778 *** reliably create shared libraries on SCO systems. Therefore, libtool
14779 *** is disabling shared libraries support. We urge you to upgrade GNU
14780 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14781 *** your PATH or compiler configuration so that the native linker is
14782 *** used, and then restart.
14783
14784 _LT_EOF
14785 ;;
14786 *)
14787 # For security reasons, it is highly recommended that you always
14788 # use absolute paths for naming shared libraries, and exclude the
14789 # DT_RUNPATH tag from executables and libraries. But doing so
14790 # requires that you compile everything twice, which is a pain.
14791 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14792 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14794 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14795 else
14796 ld_shlibs=no
14797 fi
14798 ;;
14799 esac
14800 ;;
14801
14802 sunos4*)
14803 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14804 wlarc=
14805 hardcode_direct=yes
14806 hardcode_shlibpath_var=no
14807 ;;
14808
14809 *)
14810 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14811 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14812 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14813 else
14814 ld_shlibs=no
14815 fi
14816 ;;
14817 esac
14818
14819 if test no = "$ld_shlibs"; then
14820 runpath_var=
14821 hardcode_libdir_flag_spec=
14822 export_dynamic_flag_spec=
14823 whole_archive_flag_spec=
14824 fi
14825 else
14826 # PORTME fill in a description of your system's linker (not GNU ld)
14827 case $host_os in
14828 aix3*)
14829 allow_undefined_flag=unsupported
14830 always_export_symbols=yes
14831 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'
14832 # Note: this linker hardcodes the directories in LIBPATH if there
14833 # are no directories specified by -L.
14834 hardcode_minus_L=yes
14835 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14836 # Neither direct hardcoding nor static linking is supported with a
14837 # broken collect2.
14838 hardcode_direct=unsupported
14839 fi
14840 ;;
14841
14842 aix[4-9]*)
14843 if test ia64 = "$host_cpu"; then
14844 # On IA64, the linker does run time linking by default, so we don't
14845 # have to do anything special.
14846 aix_use_runtimelinking=no
14847 exp_sym_flag='-Bexport'
14848 no_entry_flag=
14849 else
14850 # If we're using GNU nm, then we don't want the "-C" option.
14851 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14852 # Without the "-l" option, or with the "-B" option, AIX nm treats
14853 # weak defined symbols like other global defined symbols, whereas
14854 # GNU nm marks them as "W".
14855 # While the 'weak' keyword is ignored in the Export File, we need
14856 # it in the Import File for the 'aix-soname' feature, so we have
14857 # to replace the "-B" option with "-P" for AIX nm.
14858 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14859 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'
14860 else
14861 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'
14862 fi
14863 aix_use_runtimelinking=no
14864
14865 # Test if we are trying to use run time linking or normal
14866 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14867 # have runtime linking enabled, and use it for executables.
14868 # For shared libraries, we enable/disable runtime linking
14869 # depending on the kind of the shared library created -
14870 # when "with_aix_soname,aix_use_runtimelinking" is:
14871 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14872 # "aix,yes" lib.so shared, rtl:yes, for executables
14873 # lib.a static archive
14874 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14875 # lib.a(lib.so.V) shared, rtl:no, for executables
14876 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14877 # lib.a(lib.so.V) shared, rtl:no
14878 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14879 # lib.a static archive
14880 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14881 for ld_flag in $LDFLAGS; do
14882 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14883 aix_use_runtimelinking=yes
14884 break
14885 fi
14886 done
14887 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14888 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14889 # so we don't have lib.a shared libs to link our executables.
14890 # We have to force runtime linking in this case.
14891 aix_use_runtimelinking=yes
14892 LDFLAGS="$LDFLAGS -Wl,-brtl"
14893 fi
14894 ;;
14895 esac
14896
14897 exp_sym_flag='-bexport'
14898 no_entry_flag='-bnoentry'
14899 fi
14900
14901 # When large executables or shared objects are built, AIX ld can
14902 # have problems creating the table of contents. If linking a library
14903 # or program results in "error TOC overflow" add -mminimal-toc to
14904 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14905 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14906
14907 archive_cmds=''
14908 hardcode_direct=yes
14909 hardcode_direct_absolute=yes
14910 hardcode_libdir_separator=':'
14911 link_all_deplibs=yes
14912 file_list_spec='$wl-f,'
14913 case $with_aix_soname,$aix_use_runtimelinking in
14914 aix,*) ;; # traditional, no import file
14915 svr4,* | *,yes) # use import file
14916 # The Import File defines what to hardcode.
14917 hardcode_direct=no
14918 hardcode_direct_absolute=no
14919 ;;
14920 esac
14921
14922 if test yes = "$GCC"; then
14923 case $host_os in aix4.[012]|aix4.[012].*)
14924 # We only want to do this on AIX 4.2 and lower, the check
14925 # below for broken collect2 doesn't work under 4.3+
14926 collect2name=`$CC -print-prog-name=collect2`
14927 if test -f "$collect2name" &&
14928 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14929 then
14930 # We have reworked collect2
14931 :
14932 else
14933 # We have old collect2
14934 hardcode_direct=unsupported
14935 # It fails to find uninstalled libraries when the uninstalled
14936 # path is not listed in the libpath. Setting hardcode_minus_L
14937 # to unsupported forces relinking
14938 hardcode_minus_L=yes
14939 hardcode_libdir_flag_spec='-L$libdir'
14940 hardcode_libdir_separator=
14941 fi
14942 ;;
14943 esac
14944 shared_flag='-shared'
14945 if test yes = "$aix_use_runtimelinking"; then
14946 shared_flag="$shared_flag "'$wl-G'
14947 fi
14948 # Need to ensure runtime linking is disabled for the traditional
14949 # shared library, or the linker may eventually find shared libraries
14950 # /with/ Import File - we do not want to mix them.
14951 shared_flag_aix='-shared'
14952 shared_flag_svr4='-shared $wl-G'
14953 else
14954 # not using gcc
14955 if test ia64 = "$host_cpu"; then
14956 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14957 # chokes on -Wl,-G. The following line is correct:
14958 shared_flag='-G'
14959 else
14960 if test yes = "$aix_use_runtimelinking"; then
14961 shared_flag='$wl-G'
14962 else
14963 shared_flag='$wl-bM:SRE'
14964 fi
14965 shared_flag_aix='$wl-bM:SRE'
14966 shared_flag_svr4='$wl-G'
14967 fi
14968 fi
14969
14970 export_dynamic_flag_spec='$wl-bexpall'
14971 # It seems that -bexpall does not export symbols beginning with
14972 # underscore (_), so it is better to generate a list of symbols to export.
14973 always_export_symbols=yes
14974 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14975 # Warning - without using the other runtime loading flags (-brtl),
14976 # -berok will link without error, but may produce a broken library.
14977 allow_undefined_flag='-berok'
14978 # Determine the default libpath from the value encoded in an
14979 # empty executable.
14980 if test set = "${lt_cv_aix_libpath+set}"; then
14981 aix_libpath=$lt_cv_aix_libpath
14982 else
14983 if test ${lt_cv_aix_libpath_+y}
14984 then :
14985 printf %s "(cached) " >&6
14986 else case e in #(
14987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14989
14990 int
14991 main (void)
14992 {
14993
14994 ;
14995 return 0;
14996 }
14997 _ACEOF
14998 if ac_fn_c_try_link "$LINENO"
14999 then :
15000
15001 lt_aix_libpath_sed='
15002 /Import File Strings/,/^$/ {
15003 /^0/ {
15004 s/^0 *\([^ ]*\) *$/\1/
15005 p
15006 }
15007 }'
15008 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15009 # Check for a 64-bit object if we didn't find anything.
15010 if test -z "$lt_cv_aix_libpath_"; then
15011 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15012 fi
15013 fi
15014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15015 conftest$ac_exeext conftest.$ac_ext
15016 if test -z "$lt_cv_aix_libpath_"; then
15017 lt_cv_aix_libpath_=/usr/lib:/lib
15018 fi
15019 ;;
15020 esac
15021 fi
15022
15023 aix_libpath=$lt_cv_aix_libpath_
15024 fi
15025
15026 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15027 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
15028 else
15029 if test ia64 = "$host_cpu"; then
15030 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15031 allow_undefined_flag="-z nodefs"
15032 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"
15033 else
15034 # Determine the default libpath from the value encoded in an
15035 # empty executable.
15036 if test set = "${lt_cv_aix_libpath+set}"; then
15037 aix_libpath=$lt_cv_aix_libpath
15038 else
15039 if test ${lt_cv_aix_libpath_+y}
15040 then :
15041 printf %s "(cached) " >&6
15042 else case e in #(
15043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15045
15046 int
15047 main (void)
15048 {
15049
15050 ;
15051 return 0;
15052 }
15053 _ACEOF
15054 if ac_fn_c_try_link "$LINENO"
15055 then :
15056
15057 lt_aix_libpath_sed='
15058 /Import File Strings/,/^$/ {
15059 /^0/ {
15060 s/^0 *\([^ ]*\) *$/\1/
15061 p
15062 }
15063 }'
15064 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15065 # Check for a 64-bit object if we didn't find anything.
15066 if test -z "$lt_cv_aix_libpath_"; then
15067 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15068 fi
15069 fi
15070 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15071 conftest$ac_exeext conftest.$ac_ext
15072 if test -z "$lt_cv_aix_libpath_"; then
15073 lt_cv_aix_libpath_=/usr/lib:/lib
15074 fi
15075 ;;
15076 esac
15077 fi
15078
15079 aix_libpath=$lt_cv_aix_libpath_
15080 fi
15081
15082 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15083 # Warning - without using the other run time loading flags,
15084 # -berok will link without error, but may produce a broken library.
15085 no_undefined_flag=' $wl-bernotok'
15086 allow_undefined_flag=' $wl-berok'
15087 if test yes = "$with_gnu_ld"; then
15088 # We only use this code for GNU lds that support --whole-archive.
15089 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15090 else
15091 # Exported symbols can be pulled into shared objects from archives
15092 whole_archive_flag_spec='$convenience'
15093 fi
15094 archive_cmds_need_lc=yes
15095 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15096 # -brtl affects multiple linker settings, -berok does not and is overridden later
15097 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15098 if test svr4 != "$with_aix_soname"; then
15099 # This is similar to how AIX traditionally builds its shared libraries.
15100 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'
15101 fi
15102 if test aix != "$with_aix_soname"; then
15103 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'
15104 else
15105 # used by -dlpreopen to get the symbols
15106 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15107 fi
15108 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15109 fi
15110 fi
15111 ;;
15112
15113 amigaos*)
15114 case $host_cpu in
15115 powerpc)
15116 # see comment about AmigaOS4 .so support
15117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15118 archive_expsym_cmds=''
15119 ;;
15120 m68k)
15121 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)'
15122 hardcode_libdir_flag_spec='-L$libdir'
15123 hardcode_minus_L=yes
15124 ;;
15125 esac
15126 ;;
15127
15128 bsdi[45]*)
15129 export_dynamic_flag_spec=-rdynamic
15130 ;;
15131
15132 cygwin* | mingw* | windows* | pw32* | cegcc*)
15133 # When not using gcc, we currently assume that we are using
15134 # Microsoft Visual C++ or Intel C++ Compiler.
15135 # hardcode_libdir_flag_spec is actually meaningless, as there is
15136 # no search path for DLLs.
15137 case $cc_basename in
15138 cl* | icl*)
15139 # Native MSVC or ICC
15140 hardcode_libdir_flag_spec=' '
15141 allow_undefined_flag=unsupported
15142 always_export_symbols=yes
15143 file_list_spec='@'
15144 # Tell ltmain to make .lib files, not .a files.
15145 libext=lib
15146 # Tell ltmain to make .dll files, not .so files.
15147 shrext_cmds=.dll
15148 # FIXME: Setting linknames here is a bad hack.
15149 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15150 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15151 cp "$export_symbols" "$output_objdir/$soname.def";
15152 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15153 else
15154 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15155 fi~
15156 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15157 linknames='
15158 # The linker will not automatically build a static lib if we build a DLL.
15159 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15160 enable_shared_with_static_runtimes=yes
15161 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15163 # Don't use ranlib
15164 old_postinstall_cmds='chmod 644 $oldlib'
15165 postlink_cmds='lt_outputfile="@OUTPUT@"~
15166 lt_tool_outputfile="@TOOL_OUTPUT@"~
15167 case $lt_outputfile in
15168 *.exe|*.EXE) ;;
15169 *)
15170 lt_outputfile=$lt_outputfile.exe
15171 lt_tool_outputfile=$lt_tool_outputfile.exe
15172 ;;
15173 esac~
15174 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15175 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15176 $RM "$lt_outputfile.manifest";
15177 fi'
15178 ;;
15179 *)
15180 # Assume MSVC and ICC wrapper
15181 hardcode_libdir_flag_spec=' '
15182 allow_undefined_flag=unsupported
15183 # Tell ltmain to make .lib files, not .a files.
15184 libext=lib
15185 # Tell ltmain to make .dll files, not .so files.
15186 shrext_cmds=.dll
15187 # FIXME: Setting linknames here is a bad hack.
15188 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15189 # The linker will automatically build a .lib file if we build a DLL.
15190 old_archive_from_new_cmds='true'
15191 # FIXME: Should let the user specify the lib program.
15192 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15193 enable_shared_with_static_runtimes=yes
15194 ;;
15195 esac
15196 ;;
15197
15198 darwin* | rhapsody*)
15199
15200
15201 archive_cmds_need_lc=no
15202 hardcode_direct=no
15203 hardcode_automatic=yes
15204 hardcode_shlibpath_var=unsupported
15205 if test yes = "$lt_cv_ld_force_load"; then
15206 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\"`'
15207
15208 else
15209 whole_archive_flag_spec=''
15210 fi
15211 link_all_deplibs=yes
15212 allow_undefined_flag=$_lt_dar_allow_undefined
15213 case $cc_basename in
15214 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15215 *) _lt_dar_can_shared=$GCC ;;
15216 esac
15217 if test yes = "$_lt_dar_can_shared"; then
15218 output_verbose_link_cmd=func_echo_all
15219 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15220 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15221 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"
15222 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"
15223
15224 else
15225 ld_shlibs=no
15226 fi
15227
15228 ;;
15229
15230 dgux*)
15231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15232 hardcode_libdir_flag_spec='-L$libdir'
15233 hardcode_shlibpath_var=no
15234 ;;
15235
15236 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15237 # support. Future versions do this automatically, but an explicit c++rt0.o
15238 # does not break anything, and helps significantly (at the cost of a little
15239 # extra space).
15240 freebsd2.2*)
15241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15242 hardcode_libdir_flag_spec='-R$libdir'
15243 hardcode_direct=yes
15244 hardcode_shlibpath_var=no
15245 ;;
15246
15247 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15248 freebsd2.*)
15249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15250 hardcode_direct=yes
15251 hardcode_minus_L=yes
15252 hardcode_shlibpath_var=no
15253 ;;
15254
15255 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15256 freebsd* | dragonfly* | midnightbsd*)
15257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15258 hardcode_libdir_flag_spec='-R$libdir'
15259 hardcode_direct=yes
15260 hardcode_shlibpath_var=no
15261 ;;
15262
15263 hpux9*)
15264 if test yes = "$GCC"; then
15265 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'
15266 else
15267 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'
15268 fi
15269 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15270 hardcode_libdir_separator=:
15271 hardcode_direct=yes
15272
15273 # hardcode_minus_L: Not really in the search PATH,
15274 # but as the default location of the library.
15275 hardcode_minus_L=yes
15276 export_dynamic_flag_spec='$wl-E'
15277 ;;
15278
15279 hpux10*)
15280 if test yes,no = "$GCC,$with_gnu_ld"; then
15281 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15282 else
15283 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15284 fi
15285 if test no = "$with_gnu_ld"; then
15286 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15287 hardcode_libdir_separator=:
15288 hardcode_direct=yes
15289 hardcode_direct_absolute=yes
15290 export_dynamic_flag_spec='$wl-E'
15291 # hardcode_minus_L: Not really in the search PATH,
15292 # but as the default location of the library.
15293 hardcode_minus_L=yes
15294 fi
15295 ;;
15296
15297 hpux11*)
15298 if test yes,no = "$GCC,$with_gnu_ld"; then
15299 case $host_cpu in
15300 hppa*64*)
15301 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15302 ;;
15303 ia64*)
15304 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15305 ;;
15306 *)
15307 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15308 ;;
15309 esac
15310 else
15311 case $host_cpu in
15312 hppa*64*)
15313 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15314 ;;
15315 ia64*)
15316 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15317 ;;
15318 *)
15319
15320 # Older versions of the 11.00 compiler do not understand -b yet
15321 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15323 printf %s "checking if $CC understands -b... " >&6; }
15324 if test ${lt_cv_prog_compiler__b+y}
15325 then :
15326 printf %s "(cached) " >&6
15327 else case e in #(
15328 e) lt_cv_prog_compiler__b=no
15329 save_LDFLAGS=$LDFLAGS
15330 LDFLAGS="$LDFLAGS -b"
15331 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15332 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15333 # The linker can only warn and ignore the option if not recognized
15334 # So say no if there are warnings
15335 if test -s conftest.err; then
15336 # Append any errors to the config.log.
15337 cat conftest.err 1>&5
15338 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15340 if diff conftest.exp conftest.er2 >/dev/null; then
15341 lt_cv_prog_compiler__b=yes
15342 fi
15343 else
15344 lt_cv_prog_compiler__b=yes
15345 fi
15346 fi
15347 $RM -r conftest*
15348 LDFLAGS=$save_LDFLAGS
15349 ;;
15350 esac
15351 fi
15352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15353 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
15354
15355 if test yes = "$lt_cv_prog_compiler__b"; then
15356 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15357 else
15358 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15359 fi
15360
15361 ;;
15362 esac
15363 fi
15364 if test no = "$with_gnu_ld"; then
15365 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15366 hardcode_libdir_separator=:
15367
15368 case $host_cpu in
15369 hppa*64*|ia64*)
15370 hardcode_direct=no
15371 hardcode_shlibpath_var=no
15372 ;;
15373 *)
15374 hardcode_direct=yes
15375 hardcode_direct_absolute=yes
15376 export_dynamic_flag_spec='$wl-E'
15377
15378 # hardcode_minus_L: Not really in the search PATH,
15379 # but as the default location of the library.
15380 hardcode_minus_L=yes
15381 ;;
15382 esac
15383 fi
15384 ;;
15385
15386 irix5* | irix6* | nonstopux*)
15387 if test yes = "$GCC"; then
15388 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'
15389 # Try to use the -exported_symbol ld option, if it does not
15390 # work, assume that -exports_file does not work either and
15391 # implicitly export all symbols.
15392 # This should be the same for all languages, so no per-tag cache variable.
15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15394 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15395 if test ${lt_cv_irix_exported_symbol+y}
15396 then :
15397 printf %s "(cached) " >&6
15398 else case e in #(
15399 e) save_LDFLAGS=$LDFLAGS
15400 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
15401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15402 /* end confdefs.h. */
15403 int foo (void) { return 0; }
15404 _ACEOF
15405 if ac_fn_c_try_link "$LINENO"
15406 then :
15407 lt_cv_irix_exported_symbol=yes
15408 else case e in #(
15409 e) lt_cv_irix_exported_symbol=no ;;
15410 esac
15411 fi
15412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15413 conftest$ac_exeext conftest.$ac_ext
15414 LDFLAGS=$save_LDFLAGS ;;
15415 esac
15416 fi
15417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15418 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
15419 if test yes = "$lt_cv_irix_exported_symbol"; then
15420 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'
15421 fi
15422 link_all_deplibs=no
15423 else
15424 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'
15425 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'
15426 fi
15427 archive_cmds_need_lc='no'
15428 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15429 hardcode_libdir_separator=:
15430 inherit_rpath=yes
15431 link_all_deplibs=yes
15432 ;;
15433
15434 linux*)
15435 case $cc_basename in
15436 tcc*)
15437 # Fabrice Bellard et al's Tiny C Compiler
15438 ld_shlibs=yes
15439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15440 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15441 ;;
15442 esac
15443 ;;
15444
15445 *-mlibc)
15446 ;;
15447
15448 netbsd* | netbsdelf*-gnu)
15449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15451 else
15452 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15453 fi
15454 hardcode_libdir_flag_spec='-R$libdir'
15455 hardcode_direct=yes
15456 hardcode_shlibpath_var=no
15457 ;;
15458
15459 newsos6)
15460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15461 hardcode_direct=yes
15462 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15463 hardcode_libdir_separator=:
15464 hardcode_shlibpath_var=no
15465 ;;
15466
15467 *nto* | *qnx*)
15468 ;;
15469
15470 openbsd*)
15471 if test -f /usr/libexec/ld.so; then
15472 hardcode_direct=yes
15473 hardcode_shlibpath_var=no
15474 hardcode_direct_absolute=yes
15475 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15476 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15477 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
15478 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15479 export_dynamic_flag_spec='$wl-E'
15480 else
15481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15482 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15483 fi
15484 else
15485 ld_shlibs=no
15486 fi
15487 ;;
15488
15489 os2*)
15490 hardcode_libdir_flag_spec='-L$libdir'
15491 hardcode_minus_L=yes
15492 allow_undefined_flag=unsupported
15493 shrext_cmds=.dll
15494 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15495 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15496 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15497 $ECHO EXPORTS >> $output_objdir/$libname.def~
15498 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15499 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15500 emximp -o $lib $output_objdir/$libname.def'
15501 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15502 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15503 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15504 $ECHO EXPORTS >> $output_objdir/$libname.def~
15505 prefix_cmds="$SED"~
15506 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15507 prefix_cmds="$prefix_cmds -e 1d";
15508 fi~
15509 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15510 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15511 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15512 emximp -o $lib $output_objdir/$libname.def'
15513 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15514 enable_shared_with_static_runtimes=yes
15515 file_list_spec='@'
15516 ;;
15517
15518 osf3*)
15519 if test yes = "$GCC"; then
15520 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15521 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'
15522 else
15523 allow_undefined_flag=' -expect_unresolved \*'
15524 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'
15525 fi
15526 archive_cmds_need_lc='no'
15527 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15528 hardcode_libdir_separator=:
15529 ;;
15530
15531 osf4* | osf5*) # as osf3* with the addition of -msym flag
15532 if test yes = "$GCC"; then
15533 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15534 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'
15535 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15536 else
15537 allow_undefined_flag=' -expect_unresolved \*'
15538 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'
15539 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~
15540 $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'
15541
15542 # Both c and cxx compiler support -rpath directly
15543 hardcode_libdir_flag_spec='-rpath $libdir'
15544 fi
15545 archive_cmds_need_lc='no'
15546 hardcode_libdir_separator=:
15547 ;;
15548
15549 serenity*)
15550 ;;
15551
15552 solaris*)
15553 no_undefined_flag=' -z defs'
15554 if test yes = "$GCC"; then
15555 wlarc='$wl'
15556 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15558 $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'
15559 else
15560 case `$CC -V 2>&1` in
15561 *"Compilers 5.0"*)
15562 wlarc=''
15563 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15565 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15566 ;;
15567 *)
15568 wlarc='$wl'
15569 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15570 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15571 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15572 ;;
15573 esac
15574 fi
15575 hardcode_libdir_flag_spec='-R$libdir'
15576 hardcode_shlibpath_var=no
15577 case $host_os in
15578 solaris2.[0-5] | solaris2.[0-5].*) ;;
15579 *)
15580 # The compiler driver will combine and reorder linker options,
15581 # but understands '-z linker_flag'. GCC discards it without '$wl',
15582 # but is careful enough not to reorder.
15583 # Supported since Solaris 2.6 (maybe 2.5.1?)
15584 if test yes = "$GCC"; then
15585 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15586 else
15587 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15588 fi
15589 ;;
15590 esac
15591 link_all_deplibs=yes
15592 ;;
15593
15594 sunos4*)
15595 if test sequent = "$host_vendor"; then
15596 # Use $CC to link under sequent, because it throws in some extra .o
15597 # files that make .init and .fini sections work.
15598 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15599 else
15600 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15601 fi
15602 hardcode_libdir_flag_spec='-L$libdir'
15603 hardcode_direct=yes
15604 hardcode_minus_L=yes
15605 hardcode_shlibpath_var=no
15606 ;;
15607
15608 sysv4)
15609 case $host_vendor in
15610 sni)
15611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15612 hardcode_direct=yes # is this really true???
15613 ;;
15614 siemens)
15615 ## LD is ld it makes a PLAMLIB
15616 ## CC just makes a GrossModule.
15617 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15618 reload_cmds='$CC -r -o $output$reload_objs'
15619 hardcode_direct=no
15620 ;;
15621 motorola)
15622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15623 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15624 ;;
15625 esac
15626 runpath_var='LD_RUN_PATH'
15627 hardcode_shlibpath_var=no
15628 ;;
15629
15630 sysv4.3*)
15631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15632 hardcode_shlibpath_var=no
15633 export_dynamic_flag_spec='-Bexport'
15634 ;;
15635
15636 sysv4*MP*)
15637 if test -d /usr/nec; then
15638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15639 hardcode_shlibpath_var=no
15640 runpath_var=LD_RUN_PATH
15641 hardcode_runpath_var=yes
15642 ld_shlibs=yes
15643 fi
15644 ;;
15645
15646 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15647 no_undefined_flag='$wl-z,text'
15648 archive_cmds_need_lc=no
15649 hardcode_shlibpath_var=no
15650 runpath_var='LD_RUN_PATH'
15651
15652 if test yes = "$GCC"; then
15653 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15654 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15655 else
15656 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15657 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15658 fi
15659 ;;
15660
15661 sysv5* | sco3.2v5* | sco5v6*)
15662 # Note: We CANNOT use -z defs as we might desire, because we do not
15663 # link with -lc, and that would cause any symbols used from libc to
15664 # always be unresolved, which means just about no library would
15665 # ever link correctly. If we're not using GNU ld we use -z text
15666 # though, which does catch some bad symbols but isn't as heavy-handed
15667 # as -z defs.
15668 no_undefined_flag='$wl-z,text'
15669 allow_undefined_flag='$wl-z,nodefs'
15670 archive_cmds_need_lc=no
15671 hardcode_shlibpath_var=no
15672 hardcode_libdir_flag_spec='$wl-R,$libdir'
15673 hardcode_libdir_separator=':'
15674 link_all_deplibs=yes
15675 export_dynamic_flag_spec='$wl-Bexport'
15676 runpath_var='LD_RUN_PATH'
15677
15678 if test yes = "$GCC"; then
15679 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15680 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15681 else
15682 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15683 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15684 fi
15685 ;;
15686
15687 uts4*)
15688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15689 hardcode_libdir_flag_spec='-L$libdir'
15690 hardcode_shlibpath_var=no
15691 ;;
15692
15693 *)
15694 ld_shlibs=no
15695 ;;
15696 esac
15697
15698 if test sni = "$host_vendor"; then
15699 case $host in
15700 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15701 export_dynamic_flag_spec='$wl-Blargedynsym'
15702 ;;
15703 esac
15704 fi
15705 fi
15706
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15708 printf "%s\n" "$ld_shlibs" >&6; }
15709 test no = "$ld_shlibs" && can_build_shared=no
15710
15711 with_gnu_ld=$with_gnu_ld
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727 #
15728 # Do we need to explicitly link libc?
15729 #
15730 case "x$archive_cmds_need_lc" in
15731 x|xyes)
15732 # Assume -lc should be added
15733 archive_cmds_need_lc=yes
15734
15735 if test yes,yes = "$GCC,$enable_shared"; then
15736 case $archive_cmds in
15737 *'~'*)
15738 # FIXME: we may have to deal with multi-command sequences.
15739 ;;
15740 '$CC '*)
15741 # Test whether the compiler implicitly links with -lc since on some
15742 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15743 # to ld, don't add -lc before -lgcc.
15744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15745 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15746 if test ${lt_cv_archive_cmds_need_lc+y}
15747 then :
15748 printf %s "(cached) " >&6
15749 else case e in #(
15750 e) $RM conftest*
15751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15752
15753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15754 (eval $ac_compile) 2>&5
15755 ac_status=$?
15756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15757 test $ac_status = 0; } 2>conftest.err; then
15758 soname=conftest
15759 lib=conftest
15760 libobjs=conftest.$ac_objext
15761 deplibs=
15762 wl=$lt_prog_compiler_wl
15763 pic_flag=$lt_prog_compiler_pic
15764 compiler_flags=-v
15765 linker_flags=-v
15766 verstring=
15767 output_objdir=.
15768 libname=conftest
15769 lt_save_allow_undefined_flag=$allow_undefined_flag
15770 allow_undefined_flag=
15771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15772 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15773 ac_status=$?
15774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15775 test $ac_status = 0; }
15776 then
15777 lt_cv_archive_cmds_need_lc=no
15778 else
15779 lt_cv_archive_cmds_need_lc=yes
15780 fi
15781 allow_undefined_flag=$lt_save_allow_undefined_flag
15782 else
15783 cat conftest.err 1>&5
15784 fi
15785 $RM conftest*
15786 ;;
15787 esac
15788 fi
15789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15790 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15791 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15792 ;;
15793 esac
15794 fi
15795 ;;
15796 esac
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15950 printf %s "checking dynamic linker characteristics... " >&6; }
15951
15952 if test yes = "$GCC"; then
15953 case $host_os in
15954 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15955 *) lt_awk_arg='/^libraries:/' ;;
15956 esac
15957 case $host_os in
15958 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15959 *) lt_sed_strip_eq='s|=/|/|g' ;;
15960 esac
15961 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15962 case $lt_search_path_spec in
15963 *\;*)
15964 # if the path contains ";" then we assume it to be the separator
15965 # otherwise default to the standard path separator (i.e. ":") - it is
15966 # assumed that no part of a normal pathname contains ";" but that should
15967 # okay in the real world where ";" in dirpaths is itself problematic.
15968 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15969 ;;
15970 *)
15971 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15972 ;;
15973 esac
15974 # Ok, now we have the path, separated by spaces, we can step through it
15975 # and add multilib dir if necessary...
15976 lt_tmp_lt_search_path_spec=
15977 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15978 # ...but if some path component already ends with the multilib dir we assume
15979 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15980 case "$lt_multi_os_dir; $lt_search_path_spec " in
15981 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15982 lt_multi_os_dir=
15983 ;;
15984 esac
15985 for lt_sys_path in $lt_search_path_spec; do
15986 if test -d "$lt_sys_path$lt_multi_os_dir"; then
15987 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15988 elif test -n "$lt_multi_os_dir"; then
15989 test -d "$lt_sys_path" && \
15990 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15991 fi
15992 done
15993 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15994 BEGIN {RS = " "; FS = "/|\n";} {
15995 lt_foo = "";
15996 lt_count = 0;
15997 for (lt_i = NF; lt_i > 0; lt_i--) {
15998 if ($lt_i != "" && $lt_i != ".") {
15999 if ($lt_i == "..") {
16000 lt_count++;
16001 } else {
16002 if (lt_count == 0) {
16003 lt_foo = "/" $lt_i lt_foo;
16004 } else {
16005 lt_count--;
16006 }
16007 }
16008 }
16009 }
16010 if (lt_foo != "") { lt_freq[lt_foo]++; }
16011 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16012 }'`
16013 # AWK program above erroneously prepends '/' to C:/dos/paths
16014 # for these hosts.
16015 case $host_os in
16016 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16017 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16018 esac
16019 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16020 else
16021 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16022 fi
16023 library_names_spec=
16024 libname_spec='lib$name'
16025 soname_spec=
16026 shrext_cmds=.so
16027 postinstall_cmds=
16028 postuninstall_cmds=
16029 finish_cmds=
16030 finish_eval=
16031 shlibpath_var=
16032 shlibpath_overrides_runpath=unknown
16033 version_type=none
16034 dynamic_linker="$host_os ld.so"
16035 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16036 need_lib_prefix=unknown
16037 hardcode_into_libs=no
16038
16039 # when you set need_version to no, make sure it does not cause -set_version
16040 # flags to be left without arguments
16041 need_version=unknown
16042
16043
16044
16045 case $host_os in
16046 aix3*)
16047 version_type=linux # correct to gnu/linux during the next big refactor
16048 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16049 shlibpath_var=LIBPATH
16050
16051 # AIX 3 has no versioning support, so we append a major version to the name.
16052 soname_spec='$libname$release$shared_ext$major'
16053 ;;
16054
16055 aix[4-9]*)
16056 version_type=linux # correct to gnu/linux during the next big refactor
16057 need_lib_prefix=no
16058 need_version=no
16059 hardcode_into_libs=yes
16060 if test ia64 = "$host_cpu"; then
16061 # AIX 5 supports IA64
16062 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16063 shlibpath_var=LD_LIBRARY_PATH
16064 else
16065 # With GCC up to 2.95.x, collect2 would create an import file
16066 # for dependence libraries. The import file would start with
16067 # the line '#! .'. This would cause the generated library to
16068 # depend on '.', always an invalid library. This was fixed in
16069 # development snapshots of GCC prior to 3.0.
16070 case $host_os in
16071 aix4 | aix4.[01] | aix4.[01].*)
16072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16073 echo ' yes '
16074 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16075 :
16076 else
16077 can_build_shared=no
16078 fi
16079 ;;
16080 esac
16081 # Using Import Files as archive members, it is possible to support
16082 # filename-based versioning of shared library archives on AIX. While
16083 # this would work for both with and without runtime linking, it will
16084 # prevent static linking of such archives. So we do filename-based
16085 # shared library versioning with .so extension only, which is used
16086 # when both runtime linking and shared linking is enabled.
16087 # Unfortunately, runtime linking may impact performance, so we do
16088 # not want this to be the default eventually. Also, we use the
16089 # versioned .so libs for executables only if there is the -brtl
16090 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
16091 # To allow for filename-based versioning support, we need to create
16092 # libNAME.so.V as an archive file, containing:
16093 # *) an Import File, referring to the versioned filename of the
16094 # archive as well as the shared archive member, telling the
16095 # bitwidth (32 or 64) of that shared object, and providing the
16096 # list of exported symbols of that shared object, eventually
16097 # decorated with the 'weak' keyword
16098 # *) the shared object with the F_LOADONLY flag set, to really avoid
16099 # it being seen by the linker.
16100 # At run time we better use the real file rather than another symlink,
16101 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16102
16103 case $with_aix_soname,$aix_use_runtimelinking in
16104 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16105 # soname into executable. Probably we can add versioning support to
16106 # collect2, so additional links can be useful in future.
16107 aix,yes) # traditional libtool
16108 dynamic_linker='AIX unversionable lib.so'
16109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16110 # instead of lib<name>.a to let people know that these are not
16111 # typical AIX shared libraries.
16112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16113 ;;
16114 aix,no) # traditional AIX only
16115 dynamic_linker='AIX lib.a(lib.so.V)'
16116 # We preserve .a as extension for shared libraries through AIX4.2
16117 # and later when we are not doing run time linking.
16118 library_names_spec='$libname$release.a $libname.a'
16119 soname_spec='$libname$release$shared_ext$major'
16120 ;;
16121 svr4,*) # full svr4 only
16122 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16123 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16124 # We do not specify a path in Import Files, so LIBPATH fires.
16125 shlibpath_overrides_runpath=yes
16126 ;;
16127 *,yes) # both, prefer svr4
16128 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16129 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16130 # unpreferred sharedlib libNAME.a needs extra handling
16131 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"'
16132 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"'
16133 # We do not specify a path in Import Files, so LIBPATH fires.
16134 shlibpath_overrides_runpath=yes
16135 ;;
16136 *,no) # both, prefer aix
16137 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16138 library_names_spec='$libname$release.a $libname.a'
16139 soname_spec='$libname$release$shared_ext$major'
16140 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16141 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)'
16142 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"'
16143 ;;
16144 esac
16145 shlibpath_var=LIBPATH
16146 fi
16147 ;;
16148
16149 amigaos*)
16150 case $host_cpu in
16151 powerpc)
16152 # Since July 2007 AmigaOS4 officially supports .so libraries.
16153 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16155 ;;
16156 m68k)
16157 library_names_spec='$libname.ixlibrary $libname.a'
16158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16159 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'
16160 ;;
16161 esac
16162 ;;
16163
16164 beos*)
16165 library_names_spec='$libname$shared_ext'
16166 dynamic_linker="$host_os ld.so"
16167 shlibpath_var=LIBRARY_PATH
16168 ;;
16169
16170 bsdi[45]*)
16171 version_type=linux # correct to gnu/linux during the next big refactor
16172 need_version=no
16173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16174 soname_spec='$libname$release$shared_ext$major'
16175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16176 shlibpath_var=LD_LIBRARY_PATH
16177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16179 # the default ld.so.conf also contains /usr/contrib/lib and
16180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16181 # libtool to hard-code these into programs
16182 ;;
16183
16184 cygwin* | mingw* | windows* | pw32* | cegcc*)
16185 version_type=windows
16186 shrext_cmds=.dll
16187 need_version=no
16188 need_lib_prefix=no
16189
16190 case $GCC,$cc_basename in
16191 yes,*)
16192 # gcc
16193 library_names_spec='$libname.dll.a'
16194 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16195 # If user builds GCC with multilib enabled,
16196 # it should just install on $(libdir)
16197 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
16198 if test xyes = x"$multilib"; then
16199 postinstall_cmds='base_file=`basename \$file`~
16200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16201 dldir=$destdir/`dirname \$dlpath`~
16202 $install_prog $dir/$dlname $destdir/$dlname~
16203 chmod a+x $destdir/$dlname~
16204 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16205 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
16206 fi'
16207 else
16208 postinstall_cmds='base_file=`basename \$file`~
16209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16210 dldir=$destdir/`dirname \$dlpath`~
16211 test -d \$dldir || mkdir -p \$dldir~
16212 $install_prog $dir/$dlname \$dldir/$dlname~
16213 chmod a+x \$dldir/$dlname~
16214 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16215 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16216 fi'
16217 fi
16218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16219 dlpath=$dir/\$dldll~
16220 $RM \$dlpath'
16221 shlibpath_overrides_runpath=yes
16222
16223 case $host_os in
16224 cygwin*)
16225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16226 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16227
16228 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16229 ;;
16230 mingw* | windows* | cegcc*)
16231 # MinGW DLLs use traditional 'lib' prefix
16232 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16233 ;;
16234 pw32*)
16235 # pw32 DLLs use 'pw' prefix rather than 'lib'
16236 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16237 ;;
16238 esac
16239 dynamic_linker='Win32 ld.exe'
16240 ;;
16241
16242 *,cl* | *,icl*)
16243 # Native MSVC or ICC
16244 libname_spec='$name'
16245 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16246 library_names_spec='$libname.dll.lib'
16247
16248 case $build_os in
16249 mingw* | windows*)
16250 sys_lib_search_path_spec=
16251 lt_save_ifs=$IFS
16252 IFS=';'
16253 for lt_path in $LIB
16254 do
16255 IFS=$lt_save_ifs
16256 # Let DOS variable expansion print the short 8.3 style file name.
16257 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16258 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16259 done
16260 IFS=$lt_save_ifs
16261 # Convert to MSYS style.
16262 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16263 ;;
16264 cygwin*)
16265 # Convert to unix form, then to dos form, then back to unix form
16266 # but this time dos style (no spaces!) so that the unix form looks
16267 # like /cygdrive/c/PROGRA~1:/cygdr...
16268 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16269 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16270 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16271 ;;
16272 *)
16273 sys_lib_search_path_spec=$LIB
16274 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16275 # It is most probably a Windows format PATH.
16276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16277 else
16278 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16279 fi
16280 # FIXME: find the short name or the path components, as spaces are
16281 # common. (e.g. "Program Files" -> "PROGRA~1")
16282 ;;
16283 esac
16284
16285 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16286 postinstall_cmds='base_file=`basename \$file`~
16287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16288 dldir=$destdir/`dirname \$dlpath`~
16289 test -d \$dldir || mkdir -p \$dldir~
16290 $install_prog $dir/$dlname \$dldir/$dlname'
16291 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16292 dlpath=$dir/\$dldll~
16293 $RM \$dlpath'
16294 shlibpath_overrides_runpath=yes
16295 dynamic_linker='Win32 link.exe'
16296 ;;
16297
16298 *)
16299 # Assume MSVC and ICC wrapper
16300 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16301 dynamic_linker='Win32 ld.exe'
16302 ;;
16303 esac
16304 # FIXME: first we should search . and the directory the executable is in
16305 shlibpath_var=PATH
16306 ;;
16307
16308 darwin* | rhapsody*)
16309 dynamic_linker="$host_os dyld"
16310 version_type=darwin
16311 need_lib_prefix=no
16312 need_version=no
16313 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16314 soname_spec='$libname$release$major$shared_ext'
16315 shlibpath_overrides_runpath=yes
16316 shlibpath_var=DYLD_LIBRARY_PATH
16317 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16318
16319 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16320 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16321 ;;
16322
16323 dgux*)
16324 version_type=linux # correct to gnu/linux during the next big refactor
16325 need_lib_prefix=no
16326 need_version=no
16327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16328 soname_spec='$libname$release$shared_ext$major'
16329 shlibpath_var=LD_LIBRARY_PATH
16330 ;;
16331
16332 freebsd* | dragonfly* | midnightbsd*)
16333 # DragonFly does not have aout. When/if they implement a new
16334 # versioning mechanism, adjust this.
16335 if test -x /usr/bin/objformat; then
16336 objformat=`/usr/bin/objformat`
16337 else
16338 case $host_os in
16339 freebsd[23].*) objformat=aout ;;
16340 *) objformat=elf ;;
16341 esac
16342 fi
16343 version_type=freebsd-$objformat
16344 case $version_type in
16345 freebsd-elf*)
16346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16347 soname_spec='$libname$release$shared_ext$major'
16348 need_version=no
16349 need_lib_prefix=no
16350 ;;
16351 freebsd-*)
16352 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16353 need_version=yes
16354 ;;
16355 esac
16356 case $host_cpu in
16357 powerpc64)
16358 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
16359 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h. */
16362 int test_pointer_size[sizeof (void *) - 5];
16363
16364 _ACEOF
16365 if ac_fn_c_try_compile "$LINENO"
16366 then :
16367 shlibpath_var=LD_LIBRARY_PATH
16368 else case e in #(
16369 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
16370 esac
16371 fi
16372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16373 ;;
16374 *)
16375 shlibpath_var=LD_LIBRARY_PATH
16376 ;;
16377 esac
16378 case $host_os in
16379 freebsd2.*)
16380 shlibpath_overrides_runpath=yes
16381 ;;
16382 freebsd3.[01]* | freebsdelf3.[01]*)
16383 shlibpath_overrides_runpath=yes
16384 hardcode_into_libs=yes
16385 ;;
16386 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16387 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16388 shlibpath_overrides_runpath=no
16389 hardcode_into_libs=yes
16390 ;;
16391 *) # from 4.6 on, and DragonFly
16392 shlibpath_overrides_runpath=yes
16393 hardcode_into_libs=yes
16394 ;;
16395 esac
16396 ;;
16397
16398 haiku*)
16399 version_type=linux # correct to gnu/linux during the next big refactor
16400 need_lib_prefix=no
16401 need_version=no
16402 dynamic_linker="$host_os runtime_loader"
16403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16404 soname_spec='$libname$release$shared_ext$major'
16405 shlibpath_var=LIBRARY_PATH
16406 shlibpath_overrides_runpath=no
16407 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
16408 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
16409 hardcode_into_libs=no
16410 ;;
16411
16412 hpux9* | hpux10* | hpux11*)
16413 # Give a soname corresponding to the major version so that dld.sl refuses to
16414 # link against other versions.
16415 version_type=sunos
16416 need_lib_prefix=no
16417 need_version=no
16418 case $host_cpu in
16419 ia64*)
16420 shrext_cmds='.so'
16421 hardcode_into_libs=yes
16422 dynamic_linker="$host_os dld.so"
16423 shlibpath_var=LD_LIBRARY_PATH
16424 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16426 soname_spec='$libname$release$shared_ext$major'
16427 if test 32 = "$HPUX_IA64_MODE"; then
16428 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16429 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16430 else
16431 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16432 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16433 fi
16434 ;;
16435 hppa*64*)
16436 shrext_cmds='.sl'
16437 hardcode_into_libs=yes
16438 dynamic_linker="$host_os dld.sl"
16439 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16442 soname_spec='$libname$release$shared_ext$major'
16443 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16445 ;;
16446 *)
16447 shrext_cmds='.sl'
16448 dynamic_linker="$host_os dld.sl"
16449 shlibpath_var=SHLIB_PATH
16450 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16452 soname_spec='$libname$release$shared_ext$major'
16453 ;;
16454 esac
16455 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16456 postinstall_cmds='chmod 555 $lib'
16457 # or fails outright, so override atomically:
16458 install_override_mode=555
16459 ;;
16460
16461 interix[3-9]*)
16462 version_type=linux # correct to gnu/linux during the next big refactor
16463 need_lib_prefix=no
16464 need_version=no
16465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16466 soname_spec='$libname$release$shared_ext$major'
16467 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16468 shlibpath_var=LD_LIBRARY_PATH
16469 shlibpath_overrides_runpath=no
16470 hardcode_into_libs=yes
16471 ;;
16472
16473 irix5* | irix6* | nonstopux*)
16474 case $host_os in
16475 nonstopux*) version_type=nonstopux ;;
16476 *)
16477 if test yes = "$lt_cv_prog_gnu_ld"; then
16478 version_type=linux # correct to gnu/linux during the next big refactor
16479 else
16480 version_type=irix
16481 fi ;;
16482 esac
16483 need_lib_prefix=no
16484 need_version=no
16485 soname_spec='$libname$release$shared_ext$major'
16486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16487 case $host_os in
16488 irix5* | nonstopux*)
16489 libsuff= shlibsuff=
16490 ;;
16491 *)
16492 case $LD in # libtool.m4 will add one of these switches to LD
16493 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16494 libsuff= shlibsuff= libmagic=32-bit;;
16495 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16496 libsuff=32 shlibsuff=N32 libmagic=N32;;
16497 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16498 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16499 *) libsuff= shlibsuff= libmagic=never-match;;
16500 esac
16501 ;;
16502 esac
16503 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16504 shlibpath_overrides_runpath=no
16505 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16506 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16507 hardcode_into_libs=yes
16508 ;;
16509
16510 # No shared lib support for Linux oldld, aout, or coff.
16511 linux*oldld* | linux*aout* | linux*coff*)
16512 dynamic_linker=no
16513 ;;
16514
16515 linux*android*)
16516 version_type=none # Android doesn't support versioned libraries.
16517 need_lib_prefix=no
16518 need_version=no
16519 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
16520 soname_spec='$libname$release$shared_ext'
16521 finish_cmds=
16522 shlibpath_var=LD_LIBRARY_PATH
16523 shlibpath_overrides_runpath=yes
16524
16525 # This implies no fast_install, which is unacceptable.
16526 # Some rework will be needed to allow for fast_install
16527 # before this can be enabled.
16528 hardcode_into_libs=yes
16529
16530 dynamic_linker='Android linker'
16531 # -rpath works at least for libraries that are not overridden by
16532 # libraries installed in system locations.
16533 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16534 ;;
16535
16536 # This must be glibc/ELF.
16537 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16538 version_type=linux # correct to gnu/linux during the next big refactor
16539 need_lib_prefix=no
16540 need_version=no
16541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16542 soname_spec='$libname$release$shared_ext$major'
16543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16544 shlibpath_var=LD_LIBRARY_PATH
16545 shlibpath_overrides_runpath=no
16546
16547 # Some binutils ld are patched to set DT_RUNPATH
16548 if test ${lt_cv_shlibpath_overrides_runpath+y}
16549 then :
16550 printf %s "(cached) " >&6
16551 else case e in #(
16552 e) lt_cv_shlibpath_overrides_runpath=no
16553 save_LDFLAGS=$LDFLAGS
16554 save_libdir=$libdir
16555 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16556 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h. */
16559
16560 int
16561 main (void)
16562 {
16563
16564 ;
16565 return 0;
16566 }
16567 _ACEOF
16568 if ac_fn_c_try_link "$LINENO"
16569 then :
16570 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16571 then :
16572 lt_cv_shlibpath_overrides_runpath=yes
16573 fi
16574 fi
16575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16576 conftest$ac_exeext conftest.$ac_ext
16577 LDFLAGS=$save_LDFLAGS
16578 libdir=$save_libdir
16579 ;;
16580 esac
16581 fi
16582
16583 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16584
16585 # This implies no fast_install, which is unacceptable.
16586 # Some rework will be needed to allow for fast_install
16587 # before this can be enabled.
16588 hardcode_into_libs=yes
16589
16590 # Ideally, we could use ldconfig to report *all* directories which are
16591 # searched for libraries, however this is still not possible. Aside from not
16592 # being certain /sbin/ldconfig is available, command
16593 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16594 # even though it is searched at run-time. Try to do the best guess by
16595 # appending ld.so.conf contents (and includes) to the search path.
16596 if test -f /etc/ld.so.conf; then
16597 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' ' '`
16598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16599 fi
16600
16601 # We used to test for /lib/ld.so.1 and disable shared libraries on
16602 # powerpc, because MkLinux only supported shared libraries with the
16603 # GNU dynamic linker. Since this was broken with cross compilers,
16604 # most powerpc-linux boxes support dynamic linking these days and
16605 # people can always --disable-shared, the test was removed, and we
16606 # assume the GNU/Linux dynamic linker is in use.
16607 dynamic_linker='GNU/Linux ld.so'
16608 ;;
16609
16610 netbsdelf*-gnu)
16611 version_type=linux
16612 need_lib_prefix=no
16613 need_version=no
16614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16615 soname_spec='$libname$release$shared_ext$major'
16616 shlibpath_var=LD_LIBRARY_PATH
16617 shlibpath_overrides_runpath=no
16618 hardcode_into_libs=yes
16619 dynamic_linker='NetBSD ld.elf_so'
16620 ;;
16621
16622 netbsdelf*-gnu)
16623 version_type=linux
16624 need_lib_prefix=no
16625 need_version=no
16626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16627 soname_spec='${libname}${release}${shared_ext}$major'
16628 shlibpath_var=LD_LIBRARY_PATH
16629 shlibpath_overrides_runpath=no
16630 hardcode_into_libs=yes
16631 dynamic_linker='NetBSD ld.elf_so'
16632 ;;
16633
16634 netbsd*)
16635 version_type=sunos
16636 need_lib_prefix=no
16637 need_version=no
16638 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16639 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16641 dynamic_linker='NetBSD (a.out) ld.so'
16642 else
16643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16644 soname_spec='$libname$release$shared_ext$major'
16645 dynamic_linker='NetBSD ld.elf_so'
16646 fi
16647 shlibpath_var=LD_LIBRARY_PATH
16648 shlibpath_overrides_runpath=yes
16649 hardcode_into_libs=yes
16650 ;;
16651
16652 *-mlibc)
16653 version_type=linux # correct to gnu/linux during the next big refactor
16654 need_lib_prefix=no
16655 need_version=no
16656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16657 soname_spec='$libname$release$shared_ext$major'
16658 dynamic_linker='mlibc ld.so'
16659 shlibpath_var=LD_LIBRARY_PATH
16660 shlibpath_overrides_runpath=no
16661 hardcode_into_libs=yes
16662 ;;
16663
16664 newsos6)
16665 version_type=linux # correct to gnu/linux during the next big refactor
16666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16667 shlibpath_var=LD_LIBRARY_PATH
16668 shlibpath_overrides_runpath=yes
16669 ;;
16670
16671 *nto* | *qnx*)
16672 version_type=qnx
16673 need_lib_prefix=no
16674 need_version=no
16675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16676 soname_spec='$libname$release$shared_ext$major'
16677 shlibpath_var=LD_LIBRARY_PATH
16678 shlibpath_overrides_runpath=no
16679 hardcode_into_libs=yes
16680 dynamic_linker='ldqnx.so'
16681 ;;
16682
16683 openbsd*)
16684 version_type=sunos
16685 sys_lib_dlsearch_path_spec=/usr/lib
16686 need_lib_prefix=no
16687 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16688 need_version=no
16689 else
16690 need_version=yes
16691 fi
16692 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16694 shlibpath_var=LD_LIBRARY_PATH
16695 shlibpath_overrides_runpath=yes
16696 ;;
16697
16698 os2*)
16699 libname_spec='$name'
16700 version_type=windows
16701 shrext_cmds=.dll
16702 need_version=no
16703 need_lib_prefix=no
16704 # OS/2 can only load a DLL with a base name of 8 characters or less.
16705 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16706 v=$($ECHO $release$versuffix | tr -d .-);
16707 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16708 $ECHO $n$v`$shared_ext'
16709 library_names_spec='${libname}_dll.$libext'
16710 dynamic_linker='OS/2 ld.exe'
16711 shlibpath_var=BEGINLIBPATH
16712 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16714 postinstall_cmds='base_file=`basename \$file`~
16715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16716 dldir=$destdir/`dirname \$dlpath`~
16717 test -d \$dldir || mkdir -p \$dldir~
16718 $install_prog $dir/$dlname \$dldir/$dlname~
16719 chmod a+x \$dldir/$dlname~
16720 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16721 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16722 fi'
16723 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16724 dlpath=$dir/\$dldll~
16725 $RM \$dlpath'
16726 ;;
16727
16728 osf3* | osf4* | osf5*)
16729 version_type=osf
16730 need_lib_prefix=no
16731 need_version=no
16732 soname_spec='$libname$release$shared_ext$major'
16733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16734 shlibpath_var=LD_LIBRARY_PATH
16735 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16737 ;;
16738
16739 rdos*)
16740 dynamic_linker=no
16741 ;;
16742
16743 serenity*)
16744 version_type=linux # correct to gnu/linux during the next big refactor
16745 need_lib_prefix=no
16746 need_version=no
16747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16748 soname_spec='$libname$release$shared_ext$major'
16749 shlibpath_var=LD_LIBRARY_PATH
16750 shlibpath_overrides_runpath=no
16751 dynamic_linker='SerenityOS LibELF'
16752 ;;
16753
16754 solaris*)
16755 version_type=linux # correct to gnu/linux during the next big refactor
16756 need_lib_prefix=no
16757 need_version=no
16758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16759 soname_spec='$libname$release$shared_ext$major'
16760 shlibpath_var=LD_LIBRARY_PATH
16761 shlibpath_overrides_runpath=yes
16762 hardcode_into_libs=yes
16763 # ldd complains unless libraries are executable
16764 postinstall_cmds='chmod +x $lib'
16765 ;;
16766
16767 sunos4*)
16768 version_type=sunos
16769 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16770 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16771 shlibpath_var=LD_LIBRARY_PATH
16772 shlibpath_overrides_runpath=yes
16773 if test yes = "$with_gnu_ld"; then
16774 need_lib_prefix=no
16775 fi
16776 need_version=yes
16777 ;;
16778
16779 sysv4 | sysv4.3*)
16780 version_type=linux # correct to gnu/linux during the next big refactor
16781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16782 soname_spec='$libname$release$shared_ext$major'
16783 shlibpath_var=LD_LIBRARY_PATH
16784 case $host_vendor in
16785 sni)
16786 shlibpath_overrides_runpath=no
16787 need_lib_prefix=no
16788 runpath_var=LD_RUN_PATH
16789 ;;
16790 siemens)
16791 need_lib_prefix=no
16792 ;;
16793 motorola)
16794 need_lib_prefix=no
16795 need_version=no
16796 shlibpath_overrides_runpath=no
16797 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16798 ;;
16799 esac
16800 ;;
16801
16802 sysv4*MP*)
16803 if test -d /usr/nec; then
16804 version_type=linux # correct to gnu/linux during the next big refactor
16805 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16806 soname_spec='$libname$shared_ext.$major'
16807 shlibpath_var=LD_LIBRARY_PATH
16808 fi
16809 ;;
16810
16811 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16812 version_type=sco
16813 need_lib_prefix=no
16814 need_version=no
16815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16816 soname_spec='$libname$release$shared_ext$major'
16817 shlibpath_var=LD_LIBRARY_PATH
16818 shlibpath_overrides_runpath=yes
16819 hardcode_into_libs=yes
16820 if test yes = "$with_gnu_ld"; then
16821 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16822 else
16823 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16824 case $host_os in
16825 sco3.2v5*)
16826 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16827 ;;
16828 esac
16829 fi
16830 sys_lib_dlsearch_path_spec='/usr/lib'
16831 ;;
16832
16833 tpf*)
16834 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16835 version_type=linux # correct to gnu/linux during the next big refactor
16836 need_lib_prefix=no
16837 need_version=no
16838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16839 shlibpath_var=LD_LIBRARY_PATH
16840 shlibpath_overrides_runpath=no
16841 hardcode_into_libs=yes
16842 ;;
16843
16844 uts4*)
16845 version_type=linux # correct to gnu/linux during the next big refactor
16846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16847 soname_spec='$libname$release$shared_ext$major'
16848 shlibpath_var=LD_LIBRARY_PATH
16849 ;;
16850
16851 emscripten*)
16852 version_type=none
16853 need_lib_prefix=no
16854 need_version=no
16855 library_names_spec='$libname$release$shared_ext'
16856 soname_spec='$libname$release$shared_ext'
16857 finish_cmds=
16858 dynamic_linker="Emscripten linker"
16859 lt_prog_compiler_wl=
16860 lt_prog_compiler_pic=
16861 lt_prog_compiler_static=
16862
16863
16864 if test yes = "$GCC"; then
16865 lt_prog_compiler_wl='-Wl,'
16866 lt_prog_compiler_static='-static'
16867
16868 case $host_os in
16869 aix*)
16870 # All AIX code is PIC.
16871 if test ia64 = "$host_cpu"; then
16872 # AIX 5 now supports IA64 processor
16873 lt_prog_compiler_static='-Bstatic'
16874 fi
16875 lt_prog_compiler_pic='-fPIC'
16876 ;;
16877
16878 amigaos*)
16879 case $host_cpu in
16880 powerpc)
16881 # see comment about AmigaOS4 .so support
16882 lt_prog_compiler_pic='-fPIC'
16883 ;;
16884 m68k)
16885 # FIXME: we need at least 68020 code to build shared libraries, but
16886 # adding the '-m68020' flag to GCC prevents building anything better,
16887 # like '-m68040'.
16888 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16889 ;;
16890 esac
16891 ;;
16892
16893 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16894 # PIC is the default for these OSes.
16895 ;;
16896
16897 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
16898 # This hack is so that the source file can tell whether it is being
16899 # built for inclusion in a dll (and should export symbols for example).
16900 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16901 # (--disable-auto-import) libraries
16902 lt_prog_compiler_pic='-DDLL_EXPORT'
16903 case $host_os in
16904 os2*)
16905 lt_prog_compiler_static='$wl-static'
16906 ;;
16907 esac
16908 ;;
16909
16910 darwin* | rhapsody*)
16911 # PIC is the default on this platform
16912 # Common symbols not allowed in MH_DYLIB files
16913 lt_prog_compiler_pic='-fno-common'
16914 ;;
16915
16916 haiku*)
16917 # PIC is the default for Haiku.
16918 # The "-static" flag exists, but is broken.
16919 lt_prog_compiler_static=
16920 ;;
16921
16922 hpux*)
16923 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16924 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16925 # sets the default TLS model and affects inlining.
16926 case $host_cpu in
16927 hppa*64*)
16928 # +Z the default
16929 ;;
16930 *)
16931 lt_prog_compiler_pic='-fPIC'
16932 ;;
16933 esac
16934 ;;
16935
16936 interix[3-9]*)
16937 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16938 # Instead, we relocate shared libraries at runtime.
16939 ;;
16940
16941 msdosdjgpp*)
16942 # Just because we use GCC doesn't mean we suddenly get shared libraries
16943 # on systems that don't support them.
16944 lt_prog_compiler_can_build_shared=no
16945 enable_shared=no
16946 ;;
16947
16948 *nto* | *qnx*)
16949 # QNX uses GNU C++, but need to define -shared option too, otherwise
16950 # it will coredump.
16951 lt_prog_compiler_pic='-fPIC -shared'
16952 ;;
16953
16954 sysv4*MP*)
16955 if test -d /usr/nec; then
16956 lt_prog_compiler_pic=-Kconform_pic
16957 fi
16958 ;;
16959
16960 *)
16961 lt_prog_compiler_pic='-fPIC'
16962 ;;
16963 esac
16964
16965 case $cc_basename in
16966 nvcc*) # Cuda Compiler Driver 2.2
16967 lt_prog_compiler_wl='-Xlinker '
16968 if test -n "$lt_prog_compiler_pic"; then
16969 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16970 fi
16971 ;;
16972 esac
16973 else
16974 # PORTME Check for flag to pass linker flags through the system compiler.
16975 case $host_os in
16976 aix*)
16977 lt_prog_compiler_wl='-Wl,'
16978 if test ia64 = "$host_cpu"; then
16979 # AIX 5 now supports IA64 processor
16980 lt_prog_compiler_static='-Bstatic'
16981 else
16982 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16983 fi
16984 ;;
16985
16986 darwin* | rhapsody*)
16987 # PIC is the default on this platform
16988 # Common symbols not allowed in MH_DYLIB files
16989 lt_prog_compiler_pic='-fno-common'
16990 case $cc_basename in
16991 nagfor*)
16992 # NAG Fortran compiler
16993 lt_prog_compiler_wl='-Wl,-Wl,,'
16994 lt_prog_compiler_pic='-PIC'
16995 lt_prog_compiler_static='-Bstatic'
16996 ;;
16997 esac
16998 ;;
16999
17000 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
17001 # This hack is so that the source file can tell whether it is being
17002 # built for inclusion in a dll (and should export symbols for example).
17003 lt_prog_compiler_pic='-DDLL_EXPORT'
17004 case $host_os in
17005 os2*)
17006 lt_prog_compiler_static='$wl-static'
17007 ;;
17008 esac
17009 ;;
17010
17011 hpux9* | hpux10* | hpux11*)
17012 lt_prog_compiler_wl='-Wl,'
17013 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17014 # not for PA HP-UX.
17015 case $host_cpu in
17016 hppa*64*|ia64*)
17017 # +Z the default
17018 ;;
17019 *)
17020 lt_prog_compiler_pic='+Z'
17021 ;;
17022 esac
17023 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17024 lt_prog_compiler_static='$wl-a ${wl}archive'
17025 ;;
17026
17027 irix5* | irix6* | nonstopux*)
17028 lt_prog_compiler_wl='-Wl,'
17029 # PIC (with -KPIC) is the default.
17030 lt_prog_compiler_static='-non_shared'
17031 ;;
17032
17033 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17034 case $cc_basename in
17035 # old Intel for x86_64, which still supported -KPIC.
17036 ecc*)
17037 lt_prog_compiler_wl='-Wl,'
17038 lt_prog_compiler_pic='-KPIC'
17039 lt_prog_compiler_static='-static'
17040 ;;
17041 *flang* | ftn | f18* | f95*)
17042 # Flang compiler.
17043 lt_prog_compiler_wl='-Wl,'
17044 lt_prog_compiler_pic='-fPIC'
17045 lt_prog_compiler_static='-static'
17046 ;;
17047 # flang / f18. f95 an alias for gfortran or flang on Debian
17048 flang* | f18* | f95*)
17049 lt_prog_compiler_wl='-Wl,'
17050 lt_prog_compiler_pic='-fPIC'
17051 lt_prog_compiler_static='-static'
17052 ;;
17053 # icc used to be incompatible with GCC.
17054 # ICC 10 doesn't accept -KPIC any more.
17055 icc* | ifort*)
17056 lt_prog_compiler_wl='-Wl,'
17057 lt_prog_compiler_pic='-fPIC'
17058 lt_prog_compiler_static='-static'
17059 ;;
17060 # Lahey Fortran 8.1.
17061 lf95*)
17062 lt_prog_compiler_wl='-Wl,'
17063 lt_prog_compiler_pic='--shared'
17064 lt_prog_compiler_static='--static'
17065 ;;
17066 nagfor*)
17067 # NAG Fortran compiler
17068 lt_prog_compiler_wl='-Wl,-Wl,,'
17069 lt_prog_compiler_pic='-PIC'
17070 lt_prog_compiler_static='-Bstatic'
17071 ;;
17072 tcc*)
17073 # Fabrice Bellard et al's Tiny C Compiler
17074 lt_prog_compiler_wl='-Wl,'
17075 lt_prog_compiler_pic='-fPIC'
17076 lt_prog_compiler_static='-static'
17077 ;;
17078 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17079 # Portland Group compilers (*not* the Pentium gcc compiler,
17080 # which looks to be a dead project)
17081 lt_prog_compiler_wl='-Wl,'
17082 lt_prog_compiler_pic='-fpic'
17083 lt_prog_compiler_static='-Bstatic'
17084 ;;
17085 ccc*)
17086 lt_prog_compiler_wl='-Wl,'
17087 # All Alpha code is PIC.
17088 lt_prog_compiler_static='-non_shared'
17089 ;;
17090 xl* | bgxl* | bgf* | mpixl*)
17091 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17092 lt_prog_compiler_wl='-Wl,'
17093 lt_prog_compiler_pic='-qpic'
17094 lt_prog_compiler_static='-qstaticlink'
17095 ;;
17096 *)
17097 case `$CC -V 2>&1 | $SED 5q` in
17098 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
17099 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17100 lt_prog_compiler_pic='-KPIC'
17101 lt_prog_compiler_static='-Bstatic'
17102 lt_prog_compiler_wl=''
17103 ;;
17104 *Sun\ F* | *Sun*Fortran*)
17105 lt_prog_compiler_pic='-KPIC'
17106 lt_prog_compiler_static='-Bstatic'
17107 lt_prog_compiler_wl='-Qoption ld '
17108 ;;
17109 *Sun\ C*)
17110 # Sun C 5.9
17111 lt_prog_compiler_pic='-KPIC'
17112 lt_prog_compiler_static='-Bstatic'
17113 lt_prog_compiler_wl='-Wl,'
17114 ;;
17115 *Intel*\ [CF]*Compiler*)
17116 lt_prog_compiler_wl='-Wl,'
17117 lt_prog_compiler_pic='-fPIC'
17118 lt_prog_compiler_static='-static'
17119 ;;
17120 *Portland\ Group*)
17121 lt_prog_compiler_wl='-Wl,'
17122 lt_prog_compiler_pic='-fpic'
17123 lt_prog_compiler_static='-Bstatic'
17124 ;;
17125 esac
17126 ;;
17127 esac
17128 ;;
17129
17130 newsos6)
17131 lt_prog_compiler_pic='-KPIC'
17132 lt_prog_compiler_static='-Bstatic'
17133 ;;
17134
17135 *-mlibc)
17136 lt_prog_compiler_wl='-Wl,'
17137 lt_prog_compiler_pic='-fPIC'
17138 lt_prog_compiler_static='-static'
17139 ;;
17140
17141 *nto* | *qnx*)
17142 # QNX uses GNU C++, but need to define -shared option too, otherwise
17143 # it will coredump.
17144 lt_prog_compiler_pic='-fPIC -shared'
17145 ;;
17146
17147 osf3* | osf4* | osf5*)
17148 lt_prog_compiler_wl='-Wl,'
17149 # All OSF/1 code is PIC.
17150 lt_prog_compiler_static='-non_shared'
17151 ;;
17152
17153 rdos*)
17154 lt_prog_compiler_static='-non_shared'
17155 ;;
17156
17157 serenity*)
17158 ;;
17159
17160 solaris*)
17161 lt_prog_compiler_pic='-KPIC'
17162 lt_prog_compiler_static='-Bstatic'
17163 case $cc_basename in
17164 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
17165 lt_prog_compiler_wl='-Qoption ld ';;
17166 *)
17167 lt_prog_compiler_wl='-Wl,';;
17168 esac
17169 ;;
17170
17171 sunos4*)
17172 lt_prog_compiler_wl='-Qoption ld '
17173 lt_prog_compiler_pic='-PIC'
17174 lt_prog_compiler_static='-Bstatic'
17175 ;;
17176
17177 sysv4 | sysv4.2uw2* | sysv4.3*)
17178 lt_prog_compiler_wl='-Wl,'
17179 lt_prog_compiler_pic='-KPIC'
17180 lt_prog_compiler_static='-Bstatic'
17181 ;;
17182
17183 sysv4*MP*)
17184 if test -d /usr/nec; then
17185 lt_prog_compiler_pic='-Kconform_pic'
17186 lt_prog_compiler_static='-Bstatic'
17187 fi
17188 ;;
17189
17190 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17191 lt_prog_compiler_wl='-Wl,'
17192 lt_prog_compiler_pic='-KPIC'
17193 lt_prog_compiler_static='-Bstatic'
17194 ;;
17195
17196 unicos*)
17197 lt_prog_compiler_wl='-Wl,'
17198 lt_prog_compiler_can_build_shared=no
17199 ;;
17200
17201 uts4*)
17202 lt_prog_compiler_pic='-pic'
17203 lt_prog_compiler_static='-Bstatic'
17204 ;;
17205
17206 *)
17207 lt_prog_compiler_can_build_shared=no
17208 ;;
17209 esac
17210 fi
17211
17212 case $host_os in
17213 # For platforms that do not support PIC, -DPIC is meaningless:
17214 *djgpp*)
17215 lt_prog_compiler_pic=
17216 ;;
17217 *)
17218 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17219 ;;
17220 esac
17221
17222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17223 printf %s "checking for $compiler option to produce PIC... " >&6; }
17224 if test ${lt_cv_prog_compiler_pic+y}
17225 then :
17226 printf %s "(cached) " >&6
17227 else case e in #(
17228 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
17229 esac
17230 fi
17231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
17232 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
17233 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
17234
17235 #
17236 # Check to make sure the PIC flag actually works.
17237 #
17238 if test -n "$lt_prog_compiler_pic"; then
17239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17240 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17241 if test ${lt_cv_prog_compiler_pic_works+y}
17242 then :
17243 printf %s "(cached) " >&6
17244 else case e in #(
17245 e) lt_cv_prog_compiler_pic_works=no
17246 ac_outfile=conftest.$ac_objext
17247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17248 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
17249 # Insert the option either (1) after the last *FLAGS variable, or
17250 # (2) before a word containing "conftest.", or (3) at the end.
17251 # Note that $ac_compile itself does not contain backslashes and begins
17252 # with a dollar sign (not a hyphen), so the echo should work correctly.
17253 # The option is referenced via a variable to avoid confusing sed.
17254 lt_compile=`echo "$ac_compile" | $SED \
17255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17257 -e 's:$: $lt_compiler_flag:'`
17258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17259 (eval "$lt_compile" 2>conftest.err)
17260 ac_status=$?
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 if (exit $ac_status) && test -s "$ac_outfile"; then
17264 # The compiler can only warn and ignore the option if not recognized
17265 # So say no if there are warnings other than the usual output.
17266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17269 lt_cv_prog_compiler_pic_works=yes
17270 fi
17271 fi
17272 $RM conftest*
17273 ;;
17274 esac
17275 fi
17276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17277 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
17278
17279 if test yes = "$lt_cv_prog_compiler_pic_works"; then
17280 case $lt_prog_compiler_pic in
17281 "" | " "*) ;;
17282 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17283 esac
17284 else
17285 lt_prog_compiler_pic=
17286 lt_prog_compiler_can_build_shared=no
17287 fi
17288
17289 fi
17290
17291
17292
17293
17294
17295 #
17296 # Check to make sure the static flag actually works.
17297 #
17298 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17300 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17301 if test ${lt_cv_prog_compiler_static_works+y}
17302 then :
17303 printf %s "(cached) " >&6
17304 else case e in #(
17305 e) lt_cv_prog_compiler_static_works=no
17306 save_LDFLAGS=$LDFLAGS
17307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17308 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17310 # The linker can only warn and ignore the option if not recognized
17311 # So say no if there are warnings
17312 if test -s conftest.err; then
17313 # Append any errors to the config.log.
17314 cat conftest.err 1>&5
17315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17317 if diff conftest.exp conftest.er2 >/dev/null; then
17318 lt_cv_prog_compiler_static_works=yes
17319 fi
17320 else
17321 lt_cv_prog_compiler_static_works=yes
17322 fi
17323 fi
17324 $RM -r conftest*
17325 LDFLAGS=$save_LDFLAGS
17326 ;;
17327 esac
17328 fi
17329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17330 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
17331
17332 if test yes = "$lt_cv_prog_compiler_static_works"; then
17333 :
17334 else
17335 lt_prog_compiler_static=
17336 fi
17337
17338
17339
17340 ='-fPIC'
17341 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
17342 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
17343 archive_cmds_need_lc=no
17344 no_undefined_flag=
17345 ;;
17346
17347 *)
17348 dynamic_linker=no
17349 ;;
17350 esac
17351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17352 printf "%s\n" "$dynamic_linker" >&6; }
17353 test no = "$dynamic_linker" && can_build_shared=no
17354
17355 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17356 if test yes = "$GCC"; then
17357 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17358 fi
17359
17360 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17361 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17362 fi
17363
17364 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17365 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17366 fi
17367
17368 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17369 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17370
17371 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17372 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17373
17374 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17375 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17474 printf %s "checking how to hardcode library paths into programs... " >&6; }
17475 hardcode_action=
17476 if test -n "$hardcode_libdir_flag_spec" ||
17477 test -n "$runpath_var" ||
17478 test yes = "$hardcode_automatic"; then
17479
17480 # We can hardcode non-existent directories.
17481 if test no != "$hardcode_direct" &&
17482 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17483 # have to relink, otherwise we might link with an installed library
17484 # when we should be linking with a yet-to-be-installed one
17485 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17486 test no != "$hardcode_minus_L"; then
17487 # Linking always hardcodes the temporary library directory.
17488 hardcode_action=relink
17489 else
17490 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17491 hardcode_action=immediate
17492 fi
17493 else
17494 # We cannot hardcode anything, or else we can only hardcode existing
17495 # directories.
17496 hardcode_action=unsupported
17497 fi
17498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17499 printf "%s\n" "$hardcode_action" >&6; }
17500
17501 if test relink = "$hardcode_action" ||
17502 test yes = "$inherit_rpath"; then
17503 # Fast installation is not supported
17504 enable_fast_install=no
17505 elif test yes = "$shlibpath_overrides_runpath" ||
17506 test no = "$enable_shared"; then
17507 # Fast installation is not necessary
17508 enable_fast_install=needless
17509 fi
17510
17511
17512
17513
17514
17515
17516 if test yes != "$enable_dlopen"; then
17517 enable_dlopen=unknown
17518 enable_dlopen_self=unknown
17519 enable_dlopen_self_static=unknown
17520 else
17521 lt_cv_dlopen=no
17522 lt_cv_dlopen_libs=
17523
17524 case $host_os in
17525 beos*)
17526 lt_cv_dlopen=load_add_on
17527 lt_cv_dlopen_libs=
17528 lt_cv_dlopen_self=yes
17529 ;;
17530
17531 mingw* | windows* | pw32* | cegcc*)
17532 lt_cv_dlopen=LoadLibrary
17533 lt_cv_dlopen_libs=
17534 ;;
17535
17536 cygwin*)
17537 lt_cv_dlopen=dlopen
17538 lt_cv_dlopen_libs=
17539 ;;
17540
17541 darwin*)
17542 # if libdl is installed we need to link against it
17543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17544 printf %s "checking for dlopen in -ldl... " >&6; }
17545 if test ${ac_cv_lib_dl_dlopen+y}
17546 then :
17547 printf %s "(cached) " >&6
17548 else case e in #(
17549 e) ac_check_lib_save_LIBS=$LIBS
17550 LIBS="-ldl $LIBS"
17551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17552 /* end confdefs.h. */
17553
17554 /* Override any GCC internal prototype to avoid an error.
17555 Use char because int might match the return type of a GCC
17556 builtin and then its argument prototype would still apply.
17557 The 'extern "C"' is for builds by C++ compilers;
17558 although this is not generally supported in C code supporting it here
17559 has little cost and some practical benefit (sr 110532). */
17560 #ifdef __cplusplus
17561 extern "C"
17562 #endif
17563 char dlopen (void);
17564 int
17565 main (void)
17566 {
17567 return dlopen ();
17568 ;
17569 return 0;
17570 }
17571 _ACEOF
17572 if ac_fn_c_try_link "$LINENO"
17573 then :
17574 ac_cv_lib_dl_dlopen=yes
17575 else case e in #(
17576 e) ac_cv_lib_dl_dlopen=no ;;
17577 esac
17578 fi
17579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17580 conftest$ac_exeext conftest.$ac_ext
17581 LIBS=$ac_check_lib_save_LIBS ;;
17582 esac
17583 fi
17584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17585 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
17586 if test "x$ac_cv_lib_dl_dlopen" = xyes
17587 then :
17588 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17589 else case e in #(
17590 e)
17591 lt_cv_dlopen=dyld
17592 lt_cv_dlopen_libs=
17593 lt_cv_dlopen_self=yes
17594 ;;
17595 esac
17596 fi
17597
17598 ;;
17599
17600 tpf*)
17601 # Don't try to run any link tests for TPF. We know it's impossible
17602 # because TPF is a cross-compiler, and we know how we open DSOs.
17603 lt_cv_dlopen=dlopen
17604 lt_cv_dlopen_libs=
17605 lt_cv_dlopen_self=no
17606 ;;
17607
17608 *)
17609 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17610 if test "x$ac_cv_func_shl_load" = xyes
17611 then :
17612 lt_cv_dlopen=shl_load
17613 else case e in #(
17614 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17615 printf %s "checking for shl_load in -ldld... " >&6; }
17616 if test ${ac_cv_lib_dld_shl_load+y}
17617 then :
17618 printf %s "(cached) " >&6
17619 else case e in #(
17620 e) ac_check_lib_save_LIBS=$LIBS
17621 LIBS="-ldld $LIBS"
17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17624
17625 /* Override any GCC internal prototype to avoid an error.
17626 Use char because int might match the return type of a GCC
17627 builtin and then its argument prototype would still apply.
17628 The 'extern "C"' is for builds by C++ compilers;
17629 although this is not generally supported in C code supporting it here
17630 has little cost and some practical benefit (sr 110532). */
17631 #ifdef __cplusplus
17632 extern "C"
17633 #endif
17634 char shl_load (void);
17635 int
17636 main (void)
17637 {
17638 return shl_load ();
17639 ;
17640 return 0;
17641 }
17642 _ACEOF
17643 if ac_fn_c_try_link "$LINENO"
17644 then :
17645 ac_cv_lib_dld_shl_load=yes
17646 else case e in #(
17647 e) ac_cv_lib_dld_shl_load=no ;;
17648 esac
17649 fi
17650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17651 conftest$ac_exeext conftest.$ac_ext
17652 LIBS=$ac_check_lib_save_LIBS ;;
17653 esac
17654 fi
17655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17656 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
17657 if test "x$ac_cv_lib_dld_shl_load" = xyes
17658 then :
17659 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17660 else case e in #(
17661 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17662 if test "x$ac_cv_func_dlopen" = xyes
17663 then :
17664 lt_cv_dlopen=dlopen
17665 else case e in #(
17666 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17667 printf %s "checking for dlopen in -ldl... " >&6; }
17668 if test ${ac_cv_lib_dl_dlopen+y}
17669 then :
17670 printf %s "(cached) " >&6
17671 else case e in #(
17672 e) ac_check_lib_save_LIBS=$LIBS
17673 LIBS="-ldl $LIBS"
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17676
17677 /* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply.
17680 The 'extern "C"' is for builds by C++ compilers;
17681 although this is not generally supported in C code supporting it here
17682 has little cost and some practical benefit (sr 110532). */
17683 #ifdef __cplusplus
17684 extern "C"
17685 #endif
17686 char dlopen (void);
17687 int
17688 main (void)
17689 {
17690 return dlopen ();
17691 ;
17692 return 0;
17693 }
17694 _ACEOF
17695 if ac_fn_c_try_link "$LINENO"
17696 then :
17697 ac_cv_lib_dl_dlopen=yes
17698 else case e in #(
17699 e) ac_cv_lib_dl_dlopen=no ;;
17700 esac
17701 fi
17702 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17703 conftest$ac_exeext conftest.$ac_ext
17704 LIBS=$ac_check_lib_save_LIBS ;;
17705 esac
17706 fi
17707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17708 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
17709 if test "x$ac_cv_lib_dl_dlopen" = xyes
17710 then :
17711 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17712 else case e in #(
17713 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17714 printf %s "checking for dlopen in -lsvld... " >&6; }
17715 if test ${ac_cv_lib_svld_dlopen+y}
17716 then :
17717 printf %s "(cached) " >&6
17718 else case e in #(
17719 e) ac_check_lib_save_LIBS=$LIBS
17720 LIBS="-lsvld $LIBS"
17721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h. */
17723
17724 /* Override any GCC internal prototype to avoid an error.
17725 Use char because int might match the return type of a GCC
17726 builtin and then its argument prototype would still apply.
17727 The 'extern "C"' is for builds by C++ compilers;
17728 although this is not generally supported in C code supporting it here
17729 has little cost and some practical benefit (sr 110532). */
17730 #ifdef __cplusplus
17731 extern "C"
17732 #endif
17733 char dlopen (void);
17734 int
17735 main (void)
17736 {
17737 return dlopen ();
17738 ;
17739 return 0;
17740 }
17741 _ACEOF
17742 if ac_fn_c_try_link "$LINENO"
17743 then :
17744 ac_cv_lib_svld_dlopen=yes
17745 else case e in #(
17746 e) ac_cv_lib_svld_dlopen=no ;;
17747 esac
17748 fi
17749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17750 conftest$ac_exeext conftest.$ac_ext
17751 LIBS=$ac_check_lib_save_LIBS ;;
17752 esac
17753 fi
17754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17755 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
17756 if test "x$ac_cv_lib_svld_dlopen" = xyes
17757 then :
17758 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17759 else case e in #(
17760 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17761 printf %s "checking for dld_link in -ldld... " >&6; }
17762 if test ${ac_cv_lib_dld_dld_link+y}
17763 then :
17764 printf %s "(cached) " >&6
17765 else case e in #(
17766 e) ac_check_lib_save_LIBS=$LIBS
17767 LIBS="-ldld $LIBS"
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17770
17771 /* Override any GCC internal prototype to avoid an error.
17772 Use char because int might match the return type of a GCC
17773 builtin and then its argument prototype would still apply.
17774 The 'extern "C"' is for builds by C++ compilers;
17775 although this is not generally supported in C code supporting it here
17776 has little cost and some practical benefit (sr 110532). */
17777 #ifdef __cplusplus
17778 extern "C"
17779 #endif
17780 char dld_link (void);
17781 int
17782 main (void)
17783 {
17784 return dld_link ();
17785 ;
17786 return 0;
17787 }
17788 _ACEOF
17789 if ac_fn_c_try_link "$LINENO"
17790 then :
17791 ac_cv_lib_dld_dld_link=yes
17792 else case e in #(
17793 e) ac_cv_lib_dld_dld_link=no ;;
17794 esac
17795 fi
17796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17797 conftest$ac_exeext conftest.$ac_ext
17798 LIBS=$ac_check_lib_save_LIBS ;;
17799 esac
17800 fi
17801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17802 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
17803 if test "x$ac_cv_lib_dld_dld_link" = xyes
17804 then :
17805 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17806 fi
17807
17808 ;;
17809 esac
17810 fi
17811
17812 ;;
17813 esac
17814 fi
17815
17816 ;;
17817 esac
17818 fi
17819
17820 ;;
17821 esac
17822 fi
17823
17824 ;;
17825 esac
17826 fi
17827
17828 ;;
17829 esac
17830
17831 if test no = "$lt_cv_dlopen"; then
17832 enable_dlopen=no
17833 else
17834 enable_dlopen=yes
17835 fi
17836
17837 case $lt_cv_dlopen in
17838 dlopen)
17839 save_CPPFLAGS=$CPPFLAGS
17840 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17841
17842 save_LDFLAGS=$LDFLAGS
17843 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17844
17845 save_LIBS=$LIBS
17846 LIBS="$lt_cv_dlopen_libs $LIBS"
17847
17848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17849 printf %s "checking whether a program can dlopen itself... " >&6; }
17850 if test ${lt_cv_dlopen_self+y}
17851 then :
17852 printf %s "(cached) " >&6
17853 else case e in #(
17854 e) if test yes = "$cross_compiling"; then :
17855 lt_cv_dlopen_self=cross
17856 else
17857 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17858 lt_status=$lt_dlunknown
17859 cat > conftest.$ac_ext <<_LT_EOF
17860 #line $LINENO "configure"
17861 #include "confdefs.h"
17862
17863 #if HAVE_DLFCN_H
17864 #include <dlfcn.h>
17865 #endif
17866
17867 #include <stdio.h>
17868
17869 #ifdef RTLD_GLOBAL
17870 # define LT_DLGLOBAL RTLD_GLOBAL
17871 #else
17872 # ifdef DL_GLOBAL
17873 # define LT_DLGLOBAL DL_GLOBAL
17874 # else
17875 # define LT_DLGLOBAL 0
17876 # endif
17877 #endif
17878
17879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17880 find out it does not work in some platform. */
17881 #ifndef LT_DLLAZY_OR_NOW
17882 # ifdef RTLD_LAZY
17883 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17884 # else
17885 # ifdef DL_LAZY
17886 # define LT_DLLAZY_OR_NOW DL_LAZY
17887 # else
17888 # ifdef RTLD_NOW
17889 # define LT_DLLAZY_OR_NOW RTLD_NOW
17890 # else
17891 # ifdef DL_NOW
17892 # define LT_DLLAZY_OR_NOW DL_NOW
17893 # else
17894 # define LT_DLLAZY_OR_NOW 0
17895 # endif
17896 # endif
17897 # endif
17898 # endif
17899 #endif
17900
17901 /* When -fvisibility=hidden is used, assume the code has been annotated
17902 correspondingly for the symbols needed. */
17903 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17904 int fnord (void) __attribute__((visibility("default")));
17905 #endif
17906
17907 int fnord (void) { return 42; }
17908 int main (void)
17909 {
17910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17911 int status = $lt_dlunknown;
17912
17913 if (self)
17914 {
17915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17916 else
17917 {
17918 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17919 else puts (dlerror ());
17920 }
17921 /* dlclose (self); */
17922 }
17923 else
17924 puts (dlerror ());
17925
17926 return status;
17927 }
17928 _LT_EOF
17929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17930 (eval $ac_link) 2>&5
17931 ac_status=$?
17932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17933 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17934 (./conftest; exit; ) >&5 2>/dev/null
17935 lt_status=$?
17936 case x$lt_status in
17937 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17938 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17939 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17940 esac
17941 else :
17942 # compilation failed
17943 lt_cv_dlopen_self=no
17944 fi
17945 fi
17946 rm -fr conftest*
17947
17948 ;;
17949 esac
17950 fi
17951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17952 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
17953
17954 if test yes = "$lt_cv_dlopen_self"; then
17955 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17957 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
17958 if test ${lt_cv_dlopen_self_static+y}
17959 then :
17960 printf %s "(cached) " >&6
17961 else case e in #(
17962 e) if test yes = "$cross_compiling"; then :
17963 lt_cv_dlopen_self_static=cross
17964 else
17965 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17966 lt_status=$lt_dlunknown
17967 cat > conftest.$ac_ext <<_LT_EOF
17968 #line $LINENO "configure"
17969 #include "confdefs.h"
17970
17971 #if HAVE_DLFCN_H
17972 #include <dlfcn.h>
17973 #endif
17974
17975 #include <stdio.h>
17976
17977 #ifdef RTLD_GLOBAL
17978 # define LT_DLGLOBAL RTLD_GLOBAL
17979 #else
17980 # ifdef DL_GLOBAL
17981 # define LT_DLGLOBAL DL_GLOBAL
17982 # else
17983 # define LT_DLGLOBAL 0
17984 # endif
17985 #endif
17986
17987 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17988 find out it does not work in some platform. */
17989 #ifndef LT_DLLAZY_OR_NOW
17990 # ifdef RTLD_LAZY
17991 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17992 # else
17993 # ifdef DL_LAZY
17994 # define LT_DLLAZY_OR_NOW DL_LAZY
17995 # else
17996 # ifdef RTLD_NOW
17997 # define LT_DLLAZY_OR_NOW RTLD_NOW
17998 # else
17999 # ifdef DL_NOW
18000 # define LT_DLLAZY_OR_NOW DL_NOW
18001 # else
18002 # define LT_DLLAZY_OR_NOW 0
18003 # endif
18004 # endif
18005 # endif
18006 # endif
18007 #endif
18008
18009 /* When -fvisibility=hidden is used, assume the code has been annotated
18010 correspondingly for the symbols needed. */
18011 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18012 int fnord (void) __attribute__((visibility("default")));
18013 #endif
18014
18015 int fnord (void) { return 42; }
18016 int main (void)
18017 {
18018 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18019 int status = $lt_dlunknown;
18020
18021 if (self)
18022 {
18023 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18024 else
18025 {
18026 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18027 else puts (dlerror ());
18028 }
18029 /* dlclose (self); */
18030 }
18031 else
18032 puts (dlerror ());
18033
18034 return status;
18035 }
18036 _LT_EOF
18037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18038 (eval $ac_link) 2>&5
18039 ac_status=$?
18040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18041 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18042 (./conftest; exit; ) >&5 2>/dev/null
18043 lt_status=$?
18044 case x$lt_status in
18045 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18046 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18047 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18048 esac
18049 else :
18050 # compilation failed
18051 lt_cv_dlopen_self_static=no
18052 fi
18053 fi
18054 rm -fr conftest*
18055
18056 ;;
18057 esac
18058 fi
18059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18060 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
18061 fi
18062
18063 CPPFLAGS=$save_CPPFLAGS
18064 LDFLAGS=$save_LDFLAGS
18065 LIBS=$save_LIBS
18066 ;;
18067 esac
18068
18069 case $lt_cv_dlopen_self in
18070 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18071 *) enable_dlopen_self=unknown ;;
18072 esac
18073
18074 case $lt_cv_dlopen_self_static in
18075 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18076 *) enable_dlopen_self_static=unknown ;;
18077 esac
18078 fi
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096 striplib=
18097 old_striplib=
18098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18099 printf %s "checking whether stripping libraries is possible... " >&6; }
18100 if test -z "$STRIP"; then
18101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18102 printf "%s\n" "no" >&6; }
18103 else
18104 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18105 old_striplib="$STRIP --strip-debug"
18106 striplib="$STRIP --strip-unneeded"
18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18108 printf "%s\n" "yes" >&6; }
18109 else
18110 case $host_os in
18111 darwin*)
18112 # FIXME - insert some real tests, host_os isn't really good enough
18113 striplib="$STRIP -x"
18114 old_striplib="$STRIP -S"
18115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18116 printf "%s\n" "yes" >&6; }
18117 ;;
18118 freebsd*)
18119 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
18120 old_striplib="$STRIP --strip-debug"
18121 striplib="$STRIP --strip-unneeded"
18122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18123 printf "%s\n" "yes" >&6; }
18124 else
18125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18126 printf "%s\n" "no" >&6; }
18127 fi
18128 ;;
18129 *)
18130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18131 printf "%s\n" "no" >&6; }
18132 ;;
18133 esac
18134 fi
18135 fi
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148 # Report what library types will actually be built
18149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18150 printf %s "checking if libtool supports shared libraries... " >&6; }
18151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18152 printf "%s\n" "$can_build_shared" >&6; }
18153
18154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18155 printf %s "checking whether to build shared libraries... " >&6; }
18156 test no = "$can_build_shared" && enable_shared=no
18157
18158 # On AIX, shared libraries and static libraries use the same namespace, and
18159 # are all built from PIC.
18160 case $host_os in
18161 aix3*)
18162 test yes = "$enable_shared" && enable_static=no
18163 if test -n "$RANLIB"; then
18164 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18165 postinstall_cmds='$RANLIB $lib'
18166 fi
18167 ;;
18168
18169 aix[4-9]*)
18170 if test ia64 != "$host_cpu"; then
18171 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18172 yes,aix,yes) ;; # shared object as lib.so file only
18173 yes,svr4,*) ;; # shared object as lib.so archive member only
18174 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18175 esac
18176 fi
18177 ;;
18178 esac
18179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18180 printf "%s\n" "$enable_shared" >&6; }
18181
18182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18183 printf %s "checking whether to build static libraries... " >&6; }
18184 # Make sure either enable_shared or enable_static is yes.
18185 test yes = "$enable_shared" || enable_static=yes
18186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18187 printf "%s\n" "$enable_static" >&6; }
18188
18189
18190
18191
18192 fi
18193 ac_ext=c
18194 ac_cpp='$CPP $CPPFLAGS'
18195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18198
18199 CC=$lt_save_CC
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215 ac_config_commands="$ac_config_commands libtool"
18216
18217
18218
18219
18220 # Only expand once:
18221
18222
18223
18224
18225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** types" >&5
18226 printf "%s\n" "$as_me: **************************************** types" >&6;}
18227 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
18228 case $ac_cv_c_int8_t in #(
18229 no|yes) ;; #(
18230 *)
18231
18232 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
18233 ;;
18234 esac
18235
18236 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
18237 case $ac_cv_c_int16_t in #(
18238 no|yes) ;; #(
18239 *)
18240
18241 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
18242 ;;
18243 esac
18244
18245 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
18246 case $ac_cv_c_int32_t in #(
18247 no|yes) ;; #(
18248 *)
18249
18250 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
18251 ;;
18252 esac
18253
18254 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
18255 case $ac_cv_c_int64_t in #(
18256 no|yes) ;; #(
18257 *)
18258
18259 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
18260 ;;
18261 esac
18262
18263 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
18264 case $ac_cv_c_uint8_t in #(
18265 no|yes) ;; #(
18266 *)
18267
18268 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
18269
18270
18271 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
18272 ;;
18273 esac
18274
18275 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
18276 case $ac_cv_c_uint16_t in #(
18277 no|yes) ;; #(
18278 *)
18279
18280
18281 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
18282 ;;
18283 esac
18284
18285 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
18286 case $ac_cv_c_uint32_t in #(
18287 no|yes) ;; #(
18288 *)
18289
18290 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
18291
18292
18293 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
18294 ;;
18295 esac
18296
18297 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
18298 case $ac_cv_c_uint64_t in #(
18299 no|yes) ;; #(
18300 *)
18301
18302 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
18303
18304
18305 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
18306 ;;
18307 esac
18308
18309 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18310 if test "x$ac_cv_type_size_t" = xyes
18311 then :
18312
18313 else case e in #(
18314 e)
18315 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
18316 ;;
18317 esac
18318 fi
18319
18320 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
18321 if test "x$ac_cv_type_ssize_t" = xyes
18322 then :
18323
18324 else case e in #(
18325 e)
18326 printf "%s\n" "#define ssize_t int" >>confdefs.h
18327 ;;
18328 esac
18329 fi
18330
18331 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
18332 if test "x$ac_cv_type_uid_t" = xyes
18333 then :
18334
18335 else case e in #(
18336 e)
18337 printf "%s\n" "#define uid_t int" >>confdefs.h
18338 ;;
18339 esac
18340 fi
18341
18342 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
18343 if test "x$ac_cv_type_gid_t" = xyes
18344 then :
18345
18346 else case e in #(
18347 e)
18348 printf "%s\n" "#define gid_t int" >>confdefs.h
18349 ;;
18350 esac
18351 fi
18352
18353 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/socket.h>
18354 "
18355 if test "x$ac_cv_type_socklen_t" = xyes
18356 then :
18357
18358 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
18359
18360
18361 else case e in #(
18362 e)
18363 printf "%s\n" "#define socklen_t int" >>confdefs.h
18364 ;;
18365 esac
18366 fi
18367
18368 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/un.h>
18369 "
18370 if test "x$ac_cv_type_struct_sockaddr_un" = xyes
18371 then :
18372
18373 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
18374
18375
18376 fi
18377
18378 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <netdb.h>
18379 "
18380 if test "x$ac_cv_type_struct_addrinfo" = xyes
18381 then :
18382
18383 printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
18384
18385
18386 fi
18387
18388
18389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** PTY device files" >&5
18390 printf "%s\n" "$as_me: **************************************** PTY device files" >&6;}
18391 if test "x${cross_compiling}" = "xno"; then
18392 as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/ptmx"" | sed "$as_sed_sh"`
18393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
18394 printf %s "checking for \"/dev/ptmx\"... " >&6; }
18395 if eval test \${$as_ac_File+y}
18396 then :
18397 printf %s "(cached) " >&6
18398 else case e in #(
18399 e) test "$cross_compiling" = yes &&
18400 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18401 if test -r ""/dev/ptmx""; then
18402 eval "$as_ac_File=yes"
18403 else
18404 eval "$as_ac_File=no"
18405 fi ;;
18406 esac
18407 fi
18408 eval ac_res=\$$as_ac_File
18409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18410 printf "%s\n" "$ac_res" >&6; }
18411 if eval test \"x\$"$as_ac_File"\" = x"yes"
18412 then :
18413
18414 printf "%s\n" "#define HAVE_DEV_PTMX 1" >>confdefs.h
18415
18416 fi
18417
18418 as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/ptc"" | sed "$as_sed_sh"`
18419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
18420 printf %s "checking for \"/dev/ptc\"... " >&6; }
18421 if eval test \${$as_ac_File+y}
18422 then :
18423 printf %s "(cached) " >&6
18424 else case e in #(
18425 e) test "$cross_compiling" = yes &&
18426 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18427 if test -r ""/dev/ptc""; then
18428 eval "$as_ac_File=yes"
18429 else
18430 eval "$as_ac_File=no"
18431 fi ;;
18432 esac
18433 fi
18434 eval ac_res=\$$as_ac_File
18435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18436 printf "%s\n" "$ac_res" >&6; }
18437 if eval test \"x\$"$as_ac_File"\" = x"yes"
18438 then :
18439
18440 printf "%s\n" "#define HAVE_DEV_PTS_AND_PTC 1" >>confdefs.h
18441
18442 fi
18443
18444 else
18445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compilation: assuming /dev/ptmx and /dev/ptc are not available" >&5
18446 printf "%s\n" "$as_me: WARNING: cross-compilation: assuming /dev/ptmx and /dev/ptc are not available" >&2;}
18447 fi
18448
18449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** entropy sources" >&5
18450 printf "%s\n" "$as_me: **************************************** entropy sources" >&6;}
18451
18452 if test "x${cross_compiling}" = "xno"; then
18453
18454 # Check whether --with-egd-socket was given.
18455 if test ${with_egd_socket+y}
18456 then :
18457 withval=$with_egd_socket; EGD_SOCKET="${withval}"
18458
18459 fi
18460
18461 if test -n "${EGD_SOCKET}"; then
18462
18463 printf "%s\n" "#define EGD_SOCKET \"${EGD_SOCKET}\"" >>confdefs.h
18464
18465 fi
18466
18467 # Check for user-specified random device
18468
18469 # Check whether --with-random was given.
18470 if test ${with_random+y}
18471 then :
18472 withval=$with_random; RANDOM_FILE="${withval}"
18473 else case e in #(
18474 e)
18475 # Check for random device
18476 as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | sed "$as_sed_sh"`
18477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
18478 printf %s "checking for \"/dev/urandom\"... " >&6; }
18479 if eval test \${$as_ac_File+y}
18480 then :
18481 printf %s "(cached) " >&6
18482 else case e in #(
18483 e) test "$cross_compiling" = yes &&
18484 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18485 if test -r ""/dev/urandom""; then
18486 eval "$as_ac_File=yes"
18487 else
18488 eval "$as_ac_File=no"
18489 fi ;;
18490 esac
18491 fi
18492 eval ac_res=\$$as_ac_File
18493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18494 printf "%s\n" "$ac_res" >&6; }
18495 if eval test \"x\$"$as_ac_File"\" = x"yes"
18496 then :
18497 RANDOM_FILE="/dev/urandom"
18498 fi
18499
18500
18501 ;;
18502 esac
18503 fi
18504
18505 if test -n "${RANDOM_FILE}"; then
18506
18507
18508 printf "%s\n" "#define RANDOM_FILE \"${RANDOM_FILE}\"" >>confdefs.h
18509
18510 fi
18511 else
18512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compilation: assuming entropy sources are not available" >&5
18513 printf "%s\n" "$as_me: WARNING: cross-compilation: assuming entropy sources are not available" >&2;}
18514 fi
18515
18516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** default group" >&5
18517 printf "%s\n" "$as_me: **************************************** default group" >&6;}
18518 DEFAULT_GROUP=nobody
18519 if test "x${cross_compiling}" = "xno"; then
18520 grep '^nogroup:' /etc/group >/dev/null 2>&1 && DEFAULT_GROUP=nogroup
18521 else
18522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compilation: assuming nogroup is not available" >&5
18523 printf "%s\n" "$as_me: WARNING: cross-compilation: assuming nogroup is not available" >&2;}
18524 fi
18525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default group" >&5
18526 printf %s "checking for default group... " >&6; }
18527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${DEFAULT_GROUP}" >&5
18528 printf "%s\n" "${DEFAULT_GROUP}" >&6; }
18529
18530
18531 # Check whether --enable-largefile was given.
18532 if test ${enable_largefile+y}
18533 then :
18534 enableval=$enable_largefile;
18535 fi
18536 if test "$enable_largefile,$enable_year2038" != no,no
18537 then :
18538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
18539 printf %s "checking for $CPPFLAGS option for large files... " >&6; }
18540 if test ${ac_cv_sys_largefile_opts+y}
18541 then :
18542 printf %s "(cached) " >&6
18543 else case e in #(
18544 e) ac_save_CPPFLAGS=$CPPFLAGS
18545 ac_opt_found=no
18546 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
18547 if test x"$ac_opt" != x"none needed"
18548 then :
18549 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
18550 fi
18551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18552 /* end confdefs.h. */
18553 #include <sys/types.h>
18554 #ifndef FTYPE
18555 # define FTYPE off_t
18556 #endif
18557 /* Check that FTYPE can represent 2**63 - 1 correctly.
18558 We can't simply define LARGE_FTYPE to be 9223372036854775807,
18559 since some C++ compilers masquerading as C compilers
18560 incorrectly reject 9223372036854775807. */
18561 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
18562 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
18563 && LARGE_FTYPE % 2147483647 == 1)
18564 ? 1 : -1];
18565 int
18566 main (void)
18567 {
18568
18569 ;
18570 return 0;
18571 }
18572 _ACEOF
18573 if ac_fn_c_try_compile "$LINENO"
18574 then :
18575 if test x"$ac_opt" = x"none needed"
18576 then :
18577 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
18578 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
18579 if ac_fn_c_try_compile "$LINENO"
18580 then :
18581
18582 else case e in #(
18583 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
18584 if ac_fn_c_try_compile "$LINENO"
18585 then :
18586 ac_opt='-D_FILE_OFFSET_BITS=64'
18587 fi
18588 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
18589 esac
18590 fi
18591 rm -f core conftest.err conftest.$ac_objext conftest.beam
18592 fi
18593 ac_cv_sys_largefile_opts=$ac_opt
18594 ac_opt_found=yes
18595 fi
18596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18597 test $ac_opt_found = no || break
18598 done
18599 CPPFLAGS=$ac_save_CPPFLAGS
18600
18601 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
18602 esac
18603 fi
18604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
18605 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
18606
18607 ac_have_largefile=yes
18608 case $ac_cv_sys_largefile_opts in #(
18609 "none needed") :
18610 ;; #(
18611 "supported through gnulib") :
18612 ;; #(
18613 "support not detected") :
18614 ac_have_largefile=no ;; #(
18615 "-D_FILE_OFFSET_BITS=64") :
18616
18617 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
18618 ;; #(
18619 "-D_LARGE_FILES=1") :
18620
18621 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
18622 ;; #(
18623 *) :
18624 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
18625 esac
18626
18627 if test "$enable_year2038" != no
18628 then :
18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
18630 printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
18631 if test ${ac_cv_sys_year2038_opts+y}
18632 then :
18633 printf %s "(cached) " >&6
18634 else case e in #(
18635 e) ac_save_CPPFLAGS="$CPPFLAGS"
18636 ac_opt_found=no
18637 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
18638 if test x"$ac_opt" != x"none needed"
18639 then :
18640 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
18641 fi
18642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643 /* end confdefs.h. */
18644
18645 #include <time.h>
18646 /* Check that time_t can represent 2**32 - 1 correctly. */
18647 #define LARGE_TIME_T \\
18648 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
18649 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
18650 && LARGE_TIME_T % 65537 == 0)
18651 ? 1 : -1];
18652
18653 int
18654 main (void)
18655 {
18656
18657 ;
18658 return 0;
18659 }
18660 _ACEOF
18661 if ac_fn_c_try_compile "$LINENO"
18662 then :
18663 ac_cv_sys_year2038_opts="$ac_opt"
18664 ac_opt_found=yes
18665 fi
18666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18667 test $ac_opt_found = no || break
18668 done
18669 CPPFLAGS="$ac_save_CPPFLAGS"
18670 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
18671 esac
18672 fi
18673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
18674 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
18675
18676 ac_have_year2038=yes
18677 case $ac_cv_sys_year2038_opts in #(
18678 "none needed") :
18679 ;; #(
18680 "support not detected") :
18681 ac_have_year2038=no ;; #(
18682 "-D_TIME_BITS=64") :
18683
18684 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
18685 ;; #(
18686 "-D__MINGW_USE_VC2005_COMPAT") :
18687
18688 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
18689 ;; #(
18690 "-U_USE_32_BIT_TIME_T"*) :
18691 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18692 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18693 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
18694 will stop working after mid-January 2038. Remove
18695 _USE_32BIT_TIME_T from the compiler flags.
18696 See 'config.log' for more details" "$LINENO" 5; } ;; #(
18697 *) :
18698 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
18699 esac
18700
18701 fi
18702
18703 fi
18704
18705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** header files" >&5
18706 printf "%s\n" "$as_me: **************************************** header files" >&6;}
18707 # AC_HEADER_DIRENT
18708 # AC_HEADER_STDC
18709 # AC_HEADER_SYS_WAIT
18710 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18711 if test "x$ac_cv_header_stdint_h" = xyes
18712 then :
18713 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
18714
18715 fi
18716 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18717 if test "x$ac_cv_header_inttypes_h" = xyes
18718 then :
18719 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
18720
18721 fi
18722 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
18723 if test "x$ac_cv_header_malloc_h" = xyes
18724 then :
18725 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
18726
18727 fi
18728 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
18729 if test "x$ac_cv_header_ucontext_h" = xyes
18730 then :
18731 printf "%s\n" "#define HAVE_UCONTEXT_H 1" >>confdefs.h
18732
18733 fi
18734 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
18735 if test "x$ac_cv_header_pthread_h" = xyes
18736 then :
18737 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
18738
18739 fi
18740 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
18741 if test "x$ac_cv_header_poll_h" = xyes
18742 then :
18743 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
18744
18745 fi
18746 ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
18747 if test "x$ac_cv_header_tcpd_h" = xyes
18748 then :
18749 printf "%s\n" "#define HAVE_TCPD_H 1" >>confdefs.h
18750
18751 fi
18752 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
18753 if test "x$ac_cv_header_stropts_h" = xyes
18754 then :
18755 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
18756
18757 fi
18758 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
18759 if test "x$ac_cv_header_grp_h" = xyes
18760 then :
18761 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
18762
18763 fi
18764 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18765 if test "x$ac_cv_header_unistd_h" = xyes
18766 then :
18767 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
18768
18769 fi
18770 ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
18771 if test "x$ac_cv_header_util_h" = xyes
18772 then :
18773 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
18774
18775 fi
18776 ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
18777 if test "x$ac_cv_header_libutil_h" = xyes
18778 then :
18779 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
18780
18781 fi
18782 ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
18783 if test "x$ac_cv_header_pty_h" = xyes
18784 then :
18785 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h
18786
18787 fi
18788 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
18789 if test "x$ac_cv_header_limits_h" = xyes
18790 then :
18791 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
18792
18793 fi
18794
18795 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18796 if test "x$ac_cv_header_sys_types_h" = xyes
18797 then :
18798 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
18799
18800 fi
18801 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
18802 if test "x$ac_cv_header_sys_select_h" = xyes
18803 then :
18804 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
18805
18806 fi
18807 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
18808 if test "x$ac_cv_header_sys_poll_h" = xyes
18809 then :
18810 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
18811
18812 fi
18813 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
18814 if test "x$ac_cv_header_sys_socket_h" = xyes
18815 then :
18816 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
18817
18818 fi
18819 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
18820 if test "x$ac_cv_header_sys_un_h" = xyes
18821 then :
18822 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
18823
18824 fi
18825 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
18826 if test "x$ac_cv_header_sys_ioctl_h" = xyes
18827 then :
18828 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
18829
18830 fi
18831 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
18832 if test "x$ac_cv_header_sys_filio_h" = xyes
18833 then :
18834 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
18835
18836 fi
18837 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
18838 if test "x$ac_cv_header_sys_resource_h" = xyes
18839 then :
18840 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
18841
18842 fi
18843 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
18844 if test "x$ac_cv_header_sys_uio_h" = xyes
18845 then :
18846 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
18847
18848 fi
18849 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
18850 if test "x$ac_cv_header_sys_syscall_h" = xyes
18851 then :
18852 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
18853
18854 fi
18855 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
18856 if test "x$ac_cv_header_sys_param_h" = xyes
18857 then :
18858 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
18859
18860 fi
18861
18862 ac_fn_c_check_header_compile "$LINENO" "linux/sched.h" "ac_cv_header_linux_sched_h" "$ac_includes_default"
18863 if test "x$ac_cv_header_linux_sched_h" = xyes
18864 then :
18865 printf "%s\n" "#define HAVE_LINUX_SCHED_H 1" >>confdefs.h
18866
18867 fi
18868
18869 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
18870 $ac_includes_default
18871 #include <sys/socket.h>
18872
18873 "
18874 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
18875 then :
18876
18877 printf "%s\n" "#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1" >>confdefs.h
18878
18879
18880 printf "%s\n" "#define HAVE_MSGHDR_MSG_CONTROL 1" >>confdefs.h
18881
18882 fi
18883
18884 ac_fn_c_check_header_compile "$LINENO" "linux/netfilter_ipv4.h" "ac_cv_header_linux_netfilter_ipv4_h" "
18885 #include <limits.h>
18886 #include <linux/types.h>
18887 #include <sys/socket.h>
18888 #include <netdb.h>
18889
18890 "
18891 if test "x$ac_cv_header_linux_netfilter_ipv4_h" = xyes
18892 then :
18893 printf "%s\n" "#define HAVE_LINUX_NETFILTER_IPV4_H 1" >>confdefs.h
18894
18895 fi
18896
18897 ac_fn_c_check_header_compile "$LINENO" "mimalloc.h" "ac_cv_header_mimalloc_h" "$ac_includes_default"
18898 if test "x$ac_cv_header_mimalloc_h" = xyes
18899 then :
18900 printf "%s\n" "#define HAVE_MIMALLOC_H 1" >>confdefs.h
18901
18902 fi
18903
18904
18905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** libraries" >&5
18906 printf "%s\n" "$as_me: **************************************** libraries" >&6;}
18907 # Checks for standard libraries
18908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18909 printf %s "checking for library containing gethostbyname... " >&6; }
18910 if test ${ac_cv_search_gethostbyname+y}
18911 then :
18912 printf %s "(cached) " >&6
18913 else case e in #(
18914 e) ac_func_search_save_LIBS=$LIBS
18915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h. */
18917
18918 /* Override any GCC internal prototype to avoid an error.
18919 Use char because int might match the return type of a GCC
18920 builtin and then its argument prototype would still apply.
18921 The 'extern "C"' is for builds by C++ compilers;
18922 although this is not generally supported in C code supporting it here
18923 has little cost and some practical benefit (sr 110532). */
18924 #ifdef __cplusplus
18925 extern "C"
18926 #endif
18927 char gethostbyname (void);
18928 int
18929 main (void)
18930 {
18931 return gethostbyname ();
18932 ;
18933 return 0;
18934 }
18935 _ACEOF
18936 for ac_lib in '' nsl
18937 do
18938 if test -z "$ac_lib"; then
18939 ac_res="none required"
18940 else
18941 ac_res=-l$ac_lib
18942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18943 fi
18944 if ac_fn_c_try_link "$LINENO"
18945 then :
18946 ac_cv_search_gethostbyname=$ac_res
18947 fi
18948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18949 conftest$ac_exeext
18950 if test ${ac_cv_search_gethostbyname+y}
18951 then :
18952 break
18953 fi
18954 done
18955 if test ${ac_cv_search_gethostbyname+y}
18956 then :
18957
18958 else case e in #(
18959 e) ac_cv_search_gethostbyname=no ;;
18960 esac
18961 fi
18962 rm conftest.$ac_ext
18963 LIBS=$ac_func_search_save_LIBS ;;
18964 esac
18965 fi
18966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18967 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
18968 ac_res=$ac_cv_search_gethostbyname
18969 if test "$ac_res" != no
18970 then :
18971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18972
18973 fi
18974
18975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yp_get_default_domain" >&5
18976 printf %s "checking for library containing yp_get_default_domain... " >&6; }
18977 if test ${ac_cv_search_yp_get_default_domain+y}
18978 then :
18979 printf %s "(cached) " >&6
18980 else case e in #(
18981 e) ac_func_search_save_LIBS=$LIBS
18982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h. */
18984
18985 /* Override any GCC internal prototype to avoid an error.
18986 Use char because int might match the return type of a GCC
18987 builtin and then its argument prototype would still apply.
18988 The 'extern "C"' is for builds by C++ compilers;
18989 although this is not generally supported in C code supporting it here
18990 has little cost and some practical benefit (sr 110532). */
18991 #ifdef __cplusplus
18992 extern "C"
18993 #endif
18994 char yp_get_default_domain (void);
18995 int
18996 main (void)
18997 {
18998 return yp_get_default_domain ();
18999 ;
19000 return 0;
19001 }
19002 _ACEOF
19003 for ac_lib in '' nsl
19004 do
19005 if test -z "$ac_lib"; then
19006 ac_res="none required"
19007 else
19008 ac_res=-l$ac_lib
19009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19010 fi
19011 if ac_fn_c_try_link "$LINENO"
19012 then :
19013 ac_cv_search_yp_get_default_domain=$ac_res
19014 fi
19015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19016 conftest$ac_exeext
19017 if test ${ac_cv_search_yp_get_default_domain+y}
19018 then :
19019 break
19020 fi
19021 done
19022 if test ${ac_cv_search_yp_get_default_domain+y}
19023 then :
19024
19025 else case e in #(
19026 e) ac_cv_search_yp_get_default_domain=no ;;
19027 esac
19028 fi
19029 rm conftest.$ac_ext
19030 LIBS=$ac_func_search_save_LIBS ;;
19031 esac
19032 fi
19033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yp_get_default_domain" >&5
19034 printf "%s\n" "$ac_cv_search_yp_get_default_domain" >&6; }
19035 ac_res=$ac_cv_search_yp_get_default_domain
19036 if test "$ac_res" != no
19037 then :
19038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19039
19040 fi
19041
19042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19043 printf %s "checking for library containing socket... " >&6; }
19044 if test ${ac_cv_search_socket+y}
19045 then :
19046 printf %s "(cached) " >&6
19047 else case e in #(
19048 e) ac_func_search_save_LIBS=$LIBS
19049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19050 /* end confdefs.h. */
19051
19052 /* Override any GCC internal prototype to avoid an error.
19053 Use char because int might match the return type of a GCC
19054 builtin and then its argument prototype would still apply.
19055 The 'extern "C"' is for builds by C++ compilers;
19056 although this is not generally supported in C code supporting it here
19057 has little cost and some practical benefit (sr 110532). */
19058 #ifdef __cplusplus
19059 extern "C"
19060 #endif
19061 char socket (void);
19062 int
19063 main (void)
19064 {
19065 return socket ();
19066 ;
19067 return 0;
19068 }
19069 _ACEOF
19070 for ac_lib in '' socket
19071 do
19072 if test -z "$ac_lib"; then
19073 ac_res="none required"
19074 else
19075 ac_res=-l$ac_lib
19076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19077 fi
19078 if ac_fn_c_try_link "$LINENO"
19079 then :
19080 ac_cv_search_socket=$ac_res
19081 fi
19082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19083 conftest$ac_exeext
19084 if test ${ac_cv_search_socket+y}
19085 then :
19086 break
19087 fi
19088 done
19089 if test ${ac_cv_search_socket+y}
19090 then :
19091
19092 else case e in #(
19093 e) ac_cv_search_socket=no ;;
19094 esac
19095 fi
19096 rm conftest.$ac_ext
19097 LIBS=$ac_func_search_save_LIBS ;;
19098 esac
19099 fi
19100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19101 printf "%s\n" "$ac_cv_search_socket" >&6; }
19102 ac_res=$ac_cv_search_socket
19103 if test "$ac_res" != no
19104 then :
19105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19106
19107 fi
19108
19109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
19110 printf %s "checking for library containing openpty... " >&6; }
19111 if test ${ac_cv_search_openpty+y}
19112 then :
19113 printf %s "(cached) " >&6
19114 else case e in #(
19115 e) ac_func_search_save_LIBS=$LIBS
19116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117 /* end confdefs.h. */
19118
19119 /* Override any GCC internal prototype to avoid an error.
19120 Use char because int might match the return type of a GCC
19121 builtin and then its argument prototype would still apply.
19122 The 'extern "C"' is for builds by C++ compilers;
19123 although this is not generally supported in C code supporting it here
19124 has little cost and some practical benefit (sr 110532). */
19125 #ifdef __cplusplus
19126 extern "C"
19127 #endif
19128 char openpty (void);
19129 int
19130 main (void)
19131 {
19132 return openpty ();
19133 ;
19134 return 0;
19135 }
19136 _ACEOF
19137 for ac_lib in '' util
19138 do
19139 if test -z "$ac_lib"; then
19140 ac_res="none required"
19141 else
19142 ac_res=-l$ac_lib
19143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19144 fi
19145 if ac_fn_c_try_link "$LINENO"
19146 then :
19147 ac_cv_search_openpty=$ac_res
19148 fi
19149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19150 conftest$ac_exeext
19151 if test ${ac_cv_search_openpty+y}
19152 then :
19153 break
19154 fi
19155 done
19156 if test ${ac_cv_search_openpty+y}
19157 then :
19158
19159 else case e in #(
19160 e) ac_cv_search_openpty=no ;;
19161 esac
19162 fi
19163 rm conftest.$ac_ext
19164 LIBS=$ac_func_search_save_LIBS ;;
19165 esac
19166 fi
19167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
19168 printf "%s\n" "$ac_cv_search_openpty" >&6; }
19169 ac_res=$ac_cv_search_openpty
19170 if test "$ac_res" != no
19171 then :
19172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19173
19174 fi
19175
19176 # Checks for dynamic loader needed by OpenSSL
19177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19178 printf %s "checking for library containing dlopen... " >&6; }
19179 if test ${ac_cv_search_dlopen+y}
19180 then :
19181 printf %s "(cached) " >&6
19182 else case e in #(
19183 e) ac_func_search_save_LIBS=$LIBS
19184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h. */
19186
19187 /* Override any GCC internal prototype to avoid an error.
19188 Use char because int might match the return type of a GCC
19189 builtin and then its argument prototype would still apply.
19190 The 'extern "C"' is for builds by C++ compilers;
19191 although this is not generally supported in C code supporting it here
19192 has little cost and some practical benefit (sr 110532). */
19193 #ifdef __cplusplus
19194 extern "C"
19195 #endif
19196 char dlopen (void);
19197 int
19198 main (void)
19199 {
19200 return dlopen ();
19201 ;
19202 return 0;
19203 }
19204 _ACEOF
19205 for ac_lib in '' dl
19206 do
19207 if test -z "$ac_lib"; then
19208 ac_res="none required"
19209 else
19210 ac_res=-l$ac_lib
19211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19212 fi
19213 if ac_fn_c_try_link "$LINENO"
19214 then :
19215 ac_cv_search_dlopen=$ac_res
19216 fi
19217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19218 conftest$ac_exeext
19219 if test ${ac_cv_search_dlopen+y}
19220 then :
19221 break
19222 fi
19223 done
19224 if test ${ac_cv_search_dlopen+y}
19225 then :
19226
19227 else case e in #(
19228 e) ac_cv_search_dlopen=no ;;
19229 esac
19230 fi
19231 rm conftest.$ac_ext
19232 LIBS=$ac_func_search_save_LIBS ;;
19233 esac
19234 fi
19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19236 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
19237 ac_res=$ac_cv_search_dlopen
19238 if test "$ac_res" != no
19239 then :
19240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19241
19242 fi
19243
19244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
19245 printf %s "checking for library containing shl_load... " >&6; }
19246 if test ${ac_cv_search_shl_load+y}
19247 then :
19248 printf %s "(cached) " >&6
19249 else case e in #(
19250 e) ac_func_search_save_LIBS=$LIBS
19251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19252 /* end confdefs.h. */
19253
19254 /* Override any GCC internal prototype to avoid an error.
19255 Use char because int might match the return type of a GCC
19256 builtin and then its argument prototype would still apply.
19257 The 'extern "C"' is for builds by C++ compilers;
19258 although this is not generally supported in C code supporting it here
19259 has little cost and some practical benefit (sr 110532). */
19260 #ifdef __cplusplus
19261 extern "C"
19262 #endif
19263 char shl_load (void);
19264 int
19265 main (void)
19266 {
19267 return shl_load ();
19268 ;
19269 return 0;
19270 }
19271 _ACEOF
19272 for ac_lib in '' dld
19273 do
19274 if test -z "$ac_lib"; then
19275 ac_res="none required"
19276 else
19277 ac_res=-l$ac_lib
19278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19279 fi
19280 if ac_fn_c_try_link "$LINENO"
19281 then :
19282 ac_cv_search_shl_load=$ac_res
19283 fi
19284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19285 conftest$ac_exeext
19286 if test ${ac_cv_search_shl_load+y}
19287 then :
19288 break
19289 fi
19290 done
19291 if test ${ac_cv_search_shl_load+y}
19292 then :
19293
19294 else case e in #(
19295 e) ac_cv_search_shl_load=no ;;
19296 esac
19297 fi
19298 rm conftest.$ac_ext
19299 LIBS=$ac_func_search_save_LIBS ;;
19300 esac
19301 fi
19302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
19303 printf "%s\n" "$ac_cv_search_shl_load" >&6; }
19304 ac_res=$ac_cv_search_shl_load
19305 if test "$ac_res" != no
19306 then :
19307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19308
19309 fi
19310
19311 # Checks for optional libraries
19312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mi_malloc" >&5
19313 printf %s "checking for library containing mi_malloc... " >&6; }
19314 if test ${ac_cv_search_mi_malloc+y}
19315 then :
19316 printf %s "(cached) " >&6
19317 else case e in #(
19318 e) ac_func_search_save_LIBS=$LIBS
19319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320 /* end confdefs.h. */
19321
19322 /* Override any GCC internal prototype to avoid an error.
19323 Use char because int might match the return type of a GCC
19324 builtin and then its argument prototype would still apply.
19325 The 'extern "C"' is for builds by C++ compilers;
19326 although this is not generally supported in C code supporting it here
19327 has little cost and some practical benefit (sr 110532). */
19328 #ifdef __cplusplus
19329 extern "C"
19330 #endif
19331 char mi_malloc (void);
19332 int
19333 main (void)
19334 {
19335 return mi_malloc ();
19336 ;
19337 return 0;
19338 }
19339 _ACEOF
19340 for ac_lib in '' mimalloc
19341 do
19342 if test -z "$ac_lib"; then
19343 ac_res="none required"
19344 else
19345 ac_res=-l$ac_lib
19346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19347 fi
19348 if ac_fn_c_try_link "$LINENO"
19349 then :
19350 ac_cv_search_mi_malloc=$ac_res
19351 fi
19352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19353 conftest$ac_exeext
19354 if test ${ac_cv_search_mi_malloc+y}
19355 then :
19356 break
19357 fi
19358 done
19359 if test ${ac_cv_search_mi_malloc+y}
19360 then :
19361
19362 else case e in #(
19363 e) ac_cv_search_mi_malloc=no ;;
19364 esac
19365 fi
19366 rm conftest.$ac_ext
19367 LIBS=$ac_func_search_save_LIBS ;;
19368 esac
19369 fi
19370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mi_malloc" >&5
19371 printf "%s\n" "$ac_cv_search_mi_malloc" >&6; }
19372 ac_res=$ac_cv_search_mi_malloc
19373 if test "$ac_res" != no
19374 then :
19375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19376
19377 fi
19378
19379
19380 # Add BeOS libraries
19381 if test "x${host_os}" = "xbeos"; then
19382 LIBS="${LIBS} -lbe -lroot -lbind"
19383 fi
19384
19385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** library functions" >&5
19386 printf "%s\n" "$as_me: **************************************** library functions" >&6;}
19387 # safe string operations
19388 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
19389 if test "x$ac_cv_func_snprintf" = xyes
19390 then :
19391 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
19392
19393 fi
19394 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
19395 if test "x$ac_cv_func_vsnprintf" = xyes
19396 then :
19397 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
19398
19399 fi
19400
19401 # pseudoterminal
19402 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
19403 if test "x$ac_cv_func_openpty" = xyes
19404 then :
19405 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
19406
19407 fi
19408 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
19409 if test "x$ac_cv_func__getpty" = xyes
19410 then :
19411 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h
19412
19413 fi
19414
19415 # Unix
19416 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
19417 if test "x$ac_cv_func_daemon" = xyes
19418 then :
19419 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
19420
19421 fi
19422 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
19423 if test "x$ac_cv_func_waitpid" = xyes
19424 then :
19425 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
19426
19427 fi
19428 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
19429 if test "x$ac_cv_func_wait4" = xyes
19430 then :
19431 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
19432
19433 fi
19434 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
19435 if test "x$ac_cv_func_setsid" = xyes
19436 then :
19437 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
19438
19439 fi
19440 ac_fn_c_check_func "$LINENO" "setgroups" "ac_cv_func_setgroups"
19441 if test "x$ac_cv_func_setgroups" = xyes
19442 then :
19443 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
19444
19445 fi
19446 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
19447 if test "x$ac_cv_func_chroot" = xyes
19448 then :
19449 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
19450
19451 fi
19452 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
19453 if test "x$ac_cv_func_realpath" = xyes
19454 then :
19455 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
19456
19457 fi
19458
19459 # limits
19460 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
19461 if test "x$ac_cv_func_sysconf" = xyes
19462 then :
19463 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
19464
19465 fi
19466 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
19467 if test "x$ac_cv_func_getrlimit" = xyes
19468 then :
19469 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
19470
19471 fi
19472
19473 # threads/reentrant functions
19474 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
19475 if test "x$ac_cv_func_pthread_sigmask" = xyes
19476 then :
19477 printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
19478
19479 fi
19480 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
19481 if test "x$ac_cv_func_localtime_r" = xyes
19482 then :
19483 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
19484
19485 fi
19486
19487 # threads
19488 ac_fn_c_check_func "$LINENO" "getcontext" "ac_cv_func_getcontext"
19489 if test "x$ac_cv_func_getcontext" = xyes
19490 then :
19491 printf "%s\n" "#define HAVE_GETCONTEXT 1" >>confdefs.h
19492
19493 fi
19494 ac_fn_c_check_func "$LINENO" "__makecontext_v2" "ac_cv_func___makecontext_v2"
19495 if test "x$ac_cv_func___makecontext_v2" = xyes
19496 then :
19497 printf "%s\n" "#define HAVE___MAKECONTEXT_V2 1" >>confdefs.h
19498
19499 fi
19500
19501 # sockets
19502 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
19503 if test "x$ac_cv_func_poll" = xyes
19504 then :
19505 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
19506
19507 fi
19508 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
19509 if test "x$ac_cv_func_gethostbyname2" = xyes
19510 then :
19511 printf "%s\n" "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
19512
19513 fi
19514 ac_fn_c_check_func "$LINENO" "endhostent" "ac_cv_func_endhostent"
19515 if test "x$ac_cv_func_endhostent" = xyes
19516 then :
19517 printf "%s\n" "#define HAVE_ENDHOSTENT 1" >>confdefs.h
19518
19519 fi
19520 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
19521 if test "x$ac_cv_func_getnameinfo" = xyes
19522 then :
19523 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
19524
19525 fi
19526
19527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19528 printf %s "checking for getaddrinfo... " >&6; }
19529 case "${host_os}" in
19530 *androideabi*)
19531 # http://stackoverflow.com/questions/7818246/segmentation-fault-in-getaddrinfo
19532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (buggy Android implementation)" >&5
19533 printf "%s\n" "no (buggy Android implementation)" >&6; }
19534 ;;
19535 *)
19536 # Tru64 UNIX has getaddrinfo() but has it renamed in libc as
19537 # something else so we must include <netdb.h> to get the
19538 # redefinition.
19539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19540 /* end confdefs.h. */
19541
19542 $ac_includes_default
19543 #include <sys/socket.h>
19544 #include <netdb.h>
19545
19546 int
19547 main (void)
19548 {
19549
19550 getaddrinfo(NULL, NULL, NULL, NULL);
19551
19552 ;
19553 return 0;
19554 }
19555 _ACEOF
19556 if ac_fn_c_try_link "$LINENO"
19557 then :
19558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19559 printf "%s\n" "yes" >&6; };
19560 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
19561
19562 else case e in #(
19563 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19564 printf "%s\n" "no" >&6; } ;;
19565 esac
19566 fi
19567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19568 conftest$ac_exeext conftest.$ac_ext
19569 ;;
19570 esac
19571 # poll() is not recommended on Mac OS X <= 10.3 and broken on Mac OS X 10.4
19572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken poll() implementation" >&5
19573 printf %s "checking for broken poll() implementation... " >&6; }
19574 case "${host_os}" in
19575 darwin0-8.*)
19576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (poll() disabled)" >&5
19577 printf "%s\n" "yes (poll() disabled)" >&6; }
19578
19579 printf "%s\n" "#define BROKEN_POLL 1" >>confdefs.h
19580
19581 ;;
19582 *)
19583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19584 printf "%s\n" "no" >&6; }
19585 ;;
19586 esac
19587 # GNU extensions
19588 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
19589 if test "x$ac_cv_func_timegm" = xyes
19590 then :
19591 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
19592
19593 fi
19594 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
19595 if test "x$ac_cv_func_pipe2" = xyes
19596 then :
19597 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
19598
19599 fi
19600 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
19601 if test "x$ac_cv_func_accept4" = xyes
19602 then :
19603 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
19604
19605 fi
19606
19607
19608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** optional features" >&5
19609 printf "%s\n" "$as_me: **************************************** optional features" >&6;}
19610 # Use IPv6?
19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6 support" >&5
19612 printf %s "checking whether to enable IPv6 support... " >&6; }
19613 # Check whether --enable-ipv6 was given.
19614 if test ${enable_ipv6+y}
19615 then :
19616 enableval=$enable_ipv6;
19617 case "${enableval}" in
19618 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19619 printf "%s\n" "yes" >&6; }
19620
19621 printf "%s\n" "#define USE_IPV6 1" >>confdefs.h
19622
19623 ;;
19624 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19625 printf "%s\n" "no" >&6; }
19626 ;;
19627 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: error" >&5
19628 printf "%s\n" "error" >&6; }
19629 as_fn_error $? "bad value \"${enableval}\"" "$LINENO" 5
19630 ;;
19631 esac
19632
19633 else case e in #(
19634 e)
19635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
19636 printf "%s\n" "yes (default)" >&6; }
19637
19638 printf "%s\n" "#define USE_IPV6 1" >>confdefs.h
19639
19640
19641 ;;
19642 esac
19643 fi
19644
19645
19646 # FIPS Mode
19647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS support" >&5
19648 printf %s "checking whether to enable FIPS support... " >&6; }
19649 # Check whether --enable-fips was given.
19650 if test ${enable_fips+y}
19651 then :
19652 enableval=$enable_fips;
19653 case "${enableval}" in
19654 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19655 printf "%s\n" "yes" >&6; }
19656 use_fips="yes"
19657
19658 printf "%s\n" "#define USE_FIPS 1" >>confdefs.h
19659
19660 ;;
19661 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19662 printf "%s\n" "no" >&6; }
19663 use_fips="no"
19664 ;;
19665 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: error" >&5
19666 printf "%s\n" "error" >&6; }
19667 as_fn_error $? "bad value \"${enableval}\"" "$LINENO" 5
19668 ;;
19669 esac
19670
19671 else case e in #(
19672 e)
19673 use_fips="auto"
19674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: autodetecting" >&5
19675 printf "%s\n" "autodetecting" >&6; }
19676
19677 ;;
19678 esac
19679 fi
19680
19681
19682 # Disable systemd socket activation support
19683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable systemd socket activation support" >&5
19684 printf %s "checking whether to enable systemd socket activation support... " >&6; }
19685 # Check whether --enable-systemd was given.
19686 if test ${enable_systemd+y}
19687 then :
19688 enableval=$enable_systemd;
19689 case "${enableval}" in
19690 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19691 printf "%s\n" "yes" >&6; }
19692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sd_listen_fds" >&5
19693 printf %s "checking for library containing sd_listen_fds... " >&6; }
19694 if test ${ac_cv_search_sd_listen_fds+y}
19695 then :
19696 printf %s "(cached) " >&6
19697 else case e in #(
19698 e) ac_func_search_save_LIBS=$LIBS
19699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h. */
19701
19702 /* Override any GCC internal prototype to avoid an error.
19703 Use char because int might match the return type of a GCC
19704 builtin and then its argument prototype would still apply.
19705 The 'extern "C"' is for builds by C++ compilers;
19706 although this is not generally supported in C code supporting it here
19707 has little cost and some practical benefit (sr 110532). */
19708 #ifdef __cplusplus
19709 extern "C"
19710 #endif
19711 char sd_listen_fds (void);
19712 int
19713 main (void)
19714 {
19715 return sd_listen_fds ();
19716 ;
19717 return 0;
19718 }
19719 _ACEOF
19720 for ac_lib in '' systemd systemd-daemon
19721 do
19722 if test -z "$ac_lib"; then
19723 ac_res="none required"
19724 else
19725 ac_res=-l$ac_lib
19726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19727 fi
19728 if ac_fn_c_try_link "$LINENO"
19729 then :
19730 ac_cv_search_sd_listen_fds=$ac_res
19731 fi
19732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19733 conftest$ac_exeext
19734 if test ${ac_cv_search_sd_listen_fds+y}
19735 then :
19736 break
19737 fi
19738 done
19739 if test ${ac_cv_search_sd_listen_fds+y}
19740 then :
19741
19742 else case e in #(
19743 e) ac_cv_search_sd_listen_fds=no ;;
19744 esac
19745 fi
19746 rm conftest.$ac_ext
19747 LIBS=$ac_func_search_save_LIBS ;;
19748 esac
19749 fi
19750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sd_listen_fds" >&5
19751 printf "%s\n" "$ac_cv_search_sd_listen_fds" >&6; }
19752 ac_res=$ac_cv_search_sd_listen_fds
19753 if test "$ac_res" != no
19754 then :
19755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19756
19757 fi
19758
19759
19760 printf "%s\n" "#define USE_SYSTEMD 1" >>confdefs.h
19761
19762 ;;
19763 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19764 printf "%s\n" "no" >&6; }
19765 ;;
19766 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: error" >&5
19767 printf "%s\n" "error" >&6; }
19768 as_fn_error $? "Bad value \"${enableval}\"" "$LINENO" 5
19769 ;;
19770 esac
19771
19772 else case e in #(
19773 e)
19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: autodetecting" >&5
19775 printf "%s\n" "autodetecting" >&6; }
19776 # the library name has changed to -lsystemd in systemd 209
19777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sd_listen_fds" >&5
19778 printf %s "checking for library containing sd_listen_fds... " >&6; }
19779 if test ${ac_cv_search_sd_listen_fds+y}
19780 then :
19781 printf %s "(cached) " >&6
19782 else case e in #(
19783 e) ac_func_search_save_LIBS=$LIBS
19784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19785 /* end confdefs.h. */
19786
19787 /* Override any GCC internal prototype to avoid an error.
19788 Use char because int might match the return type of a GCC
19789 builtin and then its argument prototype would still apply.
19790 The 'extern "C"' is for builds by C++ compilers;
19791 although this is not generally supported in C code supporting it here
19792 has little cost and some practical benefit (sr 110532). */
19793 #ifdef __cplusplus
19794 extern "C"
19795 #endif
19796 char sd_listen_fds (void);
19797 int
19798 main (void)
19799 {
19800 return sd_listen_fds ();
19801 ;
19802 return 0;
19803 }
19804 _ACEOF
19805 for ac_lib in '' systemd systemd-daemon
19806 do
19807 if test -z "$ac_lib"; then
19808 ac_res="none required"
19809 else
19810 ac_res=-l$ac_lib
19811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19812 fi
19813 if ac_fn_c_try_link "$LINENO"
19814 then :
19815 ac_cv_search_sd_listen_fds=$ac_res
19816 fi
19817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19818 conftest$ac_exeext
19819 if test ${ac_cv_search_sd_listen_fds+y}
19820 then :
19821 break
19822 fi
19823 done
19824 if test ${ac_cv_search_sd_listen_fds+y}
19825 then :
19826
19827 else case e in #(
19828 e) ac_cv_search_sd_listen_fds=no ;;
19829 esac
19830 fi
19831 rm conftest.$ac_ext
19832 LIBS=$ac_func_search_save_LIBS ;;
19833 esac
19834 fi
19835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sd_listen_fds" >&5
19836 printf "%s\n" "$ac_cv_search_sd_listen_fds" >&6; }
19837 ac_res=$ac_cv_search_sd_listen_fds
19838 if test "$ac_res" != no
19839 then :
19840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19841 for ac_header in systemd/sd-daemon.h
19842 do :
19843 ac_fn_c_check_header_compile "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
19844 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
19845 then :
19846 printf "%s\n" "#define HAVE_SYSTEMD_SD_DAEMON_H 1" >>confdefs.h
19847
19848
19849 printf "%s\n" "#define USE_SYSTEMD 1" >>confdefs.h
19850
19851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: systemd support enabled" >&5
19852 printf "%s\n" "$as_me: systemd support enabled" >&6;}
19853
19854 else case e in #(
19855 e)
19856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: systemd header not found" >&5
19857 printf "%s\n" "$as_me: systemd header not found" >&6;}
19858 ;;
19859 esac
19860 fi
19861
19862 done
19863 else case e in #(
19864 e)
19865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: systemd library not found" >&5
19866 printf "%s\n" "$as_me: systemd library not found" >&6;}
19867 ;;
19868 esac
19869 fi
19870
19871
19872 ;;
19873 esac
19874 fi
19875
19876
19877 # Disable use of libwrap (TCP wrappers)
19878 # it should be the last check!
19879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TCP wrappers support" >&5
19880 printf %s "checking whether to enable TCP wrappers support... " >&6; }
19881 # Check whether --enable-libwrap was given.
19882 if test ${enable_libwrap+y}
19883 then :
19884 enableval=$enable_libwrap;
19885 case "${enableval}" in
19886 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19887 printf "%s\n" "yes" >&6; }
19888
19889 printf "%s\n" "#define USE_LIBWRAP 1" >>confdefs.h
19890
19891 LIBS="${LIBS} -lwrap"
19892 ;;
19893 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19894 printf "%s\n" "no" >&6; }
19895 ;;
19896 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: error" >&5
19897 printf "%s\n" "error" >&6; }
19898 as_fn_error $? "Bad value \"${enableval}\"" "$LINENO" 5
19899 ;;
19900 esac
19901
19902 else case e in #(
19903 e)
19904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: autodetecting" >&5
19905 printf "%s\n" "autodetecting" >&6; }
19906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
19907 printf %s "checking for hosts_access in -lwrap... " >&6; }
19908 valid_LIBS="${LIBS}"
19909 LIBS="${valid_LIBS} -lwrap"
19910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19911 /* end confdefs.h. */
19912
19913 int hosts_access(); int allow_severity, deny_severity;
19914 int
19915 main (void)
19916 {
19917 hosts_access()
19918 ;
19919 return 0;
19920 }
19921
19922 _ACEOF
19923 if ac_fn_c_try_link "$LINENO"
19924 then :
19925
19926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19927 printf "%s\n" "yes" >&6; };
19928
19929 printf "%s\n" "#define USE_LIBWRAP 1" >>confdefs.h
19930
19931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libwrap support enabled" >&5
19932 printf "%s\n" "$as_me: libwrap support enabled" >&6;}
19933
19934 else case e in #(
19935 e)
19936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19937 printf "%s\n" "no" >&6; }
19938 LIBS="${valid_LIBS}"
19939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libwrap library not found" >&5
19940 printf "%s\n" "$as_me: libwrap library not found" >&6;}
19941
19942 ;;
19943 esac
19944 fi
19945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19946 conftest$ac_exeext conftest.$ac_ext
19947
19948 ;;
19949 esac
19950 fi
19951
19952
19953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** TLS" >&5
19954 printf "%s\n" "$as_me: **************************************** TLS" >&6;}
19955
19956 check_ssl_dir() { :
19957 test -n "$1" -a -f "$1/include/openssl/ssl.h" && SSLDIR="$1"
19958 }
19959
19960 iterate_ssl_dir() { :
19961 # OpenSSL directory search order:
19962 # - the user-specified prefix
19963 # - common locations for packages built from sources
19964 # - common locations for non-OS-default package managers
19965 # - common locations for OS-default package managers
19966 # - empty prefix
19967 for main_dir in "/usr/local" "/opt" "/opt/local" "/usr/local/opt" "/opt/csw" "/usr/pkg" "/usr/lib" "/usr" ""; do
19968 for sub_dir in "/ssl" "/openssl" "/ossl" ""; do
19969 check_ssl_dir "$1${main_dir}${sub_dir}" && return 0
19970 done
19971 done
19972 return 1
19973 }
19974
19975 find_ssl_dir() { :
19976 # try Android *first*
19977 case "${host_os}" in
19978 *androideabi*)
19979 iterate_ssl_dir "${ANDROID_NDK}/sysroot" && return
19980 ;;
19981 esac
19982
19983 test -d "${lt_sysroot}" && iterate_ssl_dir "${lt_sysroot}" && return
19984 test "${prefix}" != "NONE" && iterate_ssl_dir "${prefix}" && return
19985 test -d "${ac_default_prefix}" && iterate_ssl_dir "${ac_default_prefix}" && return
19986 iterate_ssl_dir "" && return
19987
19988 # try Xcode *last*
19989 if test -x "/usr/bin/xcrun"; then
19990 sdk_path=`/usr/bin/xcrun --sdk macosx --show-sdk-path`
19991 check_ssl_dir "${sdk_path}/usr" && return
19992 fi
19993 check_ssl_dir "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-migrator/sdk/MacOSX.sdk/usr"
19994 }
19995
19996 SSLDIR=""
19997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS directory" >&5
19998 printf %s "checking for TLS directory... " >&6; }
19999
20000 # Check whether --with-ssl was given.
20001 if test ${with_ssl+y}
20002 then :
20003 withval=$with_ssl; check_ssl_dir "${withval}"
20004 else case e in #(
20005 e) find_ssl_dir
20006 ;;
20007 esac
20008 fi
20009
20010 if test -z "${SSLDIR}"; then
20011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20012 printf "%s\n" "not found" >&6; }
20013 as_fn_error $? "
20014 Could not find your TLS library installation dir
20015 Use --with-ssl option to fix this problem
20016 " "$LINENO" 5
20017 fi
20018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SSLDIR}" >&5
20019 printf "%s\n" "${SSLDIR}" >&6; }
20020
20021
20022 printf "%s\n" "#define SSLDIR \"${SSLDIR}\"" >>confdefs.h
20023
20024
20025 valid_CPPFLAGS="${CPPFLAGS}"; CPPFLAGS="${CPPFLAGS} -I${SSLDIR}/include"
20026 valid_LIBS="${LIBS}"; LIBS="${LIBS} -L${SSLDIR}/lib64 -L${SSLDIR}/lib -lssl -lcrypto"
20027
20028 ac_fn_c_check_func "$LINENO" "FIPS_mode_set" "ac_cv_func_FIPS_mode_set"
20029 if test "x$ac_cv_func_FIPS_mode_set" = xyes
20030 then :
20031 printf "%s\n" "#define HAVE_FIPS_MODE_SET 1" >>confdefs.h
20032
20033 fi
20034 ac_fn_c_check_func "$LINENO" "OSSL_PROVIDER_available" "ac_cv_func_OSSL_PROVIDER_available"
20035 if test "x$ac_cv_func_OSSL_PROVIDER_available" = xyes
20036 then :
20037 printf "%s\n" "#define HAVE_OSSL_PROVIDER_AVAILABLE 1" >>confdefs.h
20038
20039 fi
20040
20041 if test "x${use_fips}" = "xauto"; then
20042 if test "x${ac_cv_func_FIPS_mode_set}" = "xyes" -o "x${ac_cv_func_OSSL_PROVIDER_available}" = "xyes"; then
20043
20044 printf "%s\n" "#define USE_FIPS 1" >>confdefs.h
20045
20046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: FIPS support enabled" >&5
20047 printf "%s\n" "$as_me: FIPS support enabled" >&6;}
20048 else
20049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: FIPS support not found" >&5
20050 printf "%s\n" "$as_me: FIPS support not found" >&6;}
20051 fi
20052 fi
20053
20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DH parameters need to be updated" >&5
20055 printf %s "checking whether DH parameters need to be updated... " >&6; }
20056 # only build src/dhparam.c if sources are located in the current directory
20057 if test -f src/stunnel.c && \
20058 ! grep -q " built for ${PACKAGE_STRING} " src/dhparam.c 2>/dev/null; then
20059 "${srcdir}/makedh.sh" "${PACKAGE_STRING}" >src/dhparam.c
20060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20061 printf "%s\n" "yes" >&6; }
20062 else
20063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20064 printf "%s\n" "no" >&6; }
20065 fi
20066
20067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating version.txt" >&5
20068 printf "%s\n" "$as_me: updating version.txt" >&6;}
20069 echo "${PACKAGE_VERSION}" >version.txt
20070
20071 SYSROOT="${lt_sysroot}"
20072 CPPFLAGS="${valid_CPPFLAGS}"
20073 LIBS="${valid_LIBS}"
20074
20075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** write the results" >&5
20076 printf "%s\n" "$as_me: **************************************** write the results" >&6;}
20077 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile tools/Makefile tests/Makefile tests/certs/Makefile"
20078
20079 cat >confcache <<\_ACEOF
20080 # This file is a shell script that caches the results of configure
20081 # tests run on this system so they can be shared between configure
20082 # scripts and configure runs, see configure's option --config-cache.
20083 # It is not useful on other systems. If it contains results you don't
20084 # want to keep, you may remove or edit it.
20085 #
20086 # config.status only pays attention to the cache file if you give it
20087 # the --recheck option to rerun configure.
20088 #
20089 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20090 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20091 # following values.
20092
20093 _ACEOF
20094
20095 # The following way of writing the cache mishandles newlines in values,
20096 # but we know of no workaround that is simple, portable, and efficient.
20097 # So, we kill variables containing newlines.
20098 # Ultrix sh set writes to stderr and can't be redirected directly,
20099 # and sets the high bit in the cache file unless we assign to the vars.
20100 (
20101 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20102 eval ac_val=\$$ac_var
20103 case $ac_val in #(
20104 *${as_nl}*)
20105 case $ac_var in #(
20106 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20107 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20108 esac
20109 case $ac_var in #(
20110 _ | IFS | as_nl) ;; #(
20111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20112 *) { eval $ac_var=; unset $ac_var;} ;;
20113 esac ;;
20114 esac
20115 done
20116
20117 (set) 2>&1 |
20118 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20119 *${as_nl}ac_space=\ *)
20120 # 'set' does not quote correctly, so add quotes: double-quote
20121 # substitution turns \\\\ into \\, and sed turns \\ into \.
20122 sed -n \
20123 "s/'/'\\\\''/g;
20124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20125 ;; #(
20126 *)
20127 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20129 ;;
20130 esac |
20131 sort
20132 ) |
20133 sed '
20134 /^ac_cv_env_/b end
20135 t clear
20136 :clear
20137 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20138 t end
20139 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20140 :end' >>confcache
20141 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20142 if test -w "$cache_file"; then
20143 if test "x$cache_file" != "x/dev/null"; then
20144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20145 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20146 if test ! -f "$cache_file" || test -h "$cache_file"; then
20147 cat confcache >"$cache_file"
20148 else
20149 case $cache_file in #(
20150 */* | ?:*)
20151 mv -f confcache "$cache_file"$$ &&
20152 mv -f "$cache_file"$$ "$cache_file" ;; #(
20153 *)
20154 mv -f confcache "$cache_file" ;;
20155 esac
20156 fi
20157 fi
20158 else
20159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20160 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20161 fi
20162 fi
20163 rm -f confcache
20164
20165 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20166 # Let make expand exec_prefix.
20167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20168
20169 DEFS=-DHAVE_CONFIG_H
20170
20171 ac_libobjs=
20172 ac_ltlibobjs=
20173 U=
20174 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20175 # 1. Remove the extension, and $U if already installed.
20176 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20177 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20178 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20179 # will be set to the directory where LIBOBJS objects are built.
20180 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20181 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20182 done
20183 LIBOBJS=$ac_libobjs
20184
20185 LTLIBOBJS=$ac_ltlibobjs
20186
20187
20188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20189 printf %s "checking that generated files are newer than configure... " >&6; }
20190 if test -n "$am_sleep_pid"; then
20191 # Hide warnings about reused PIDs.
20192 wait $am_sleep_pid 2>/dev/null
20193 fi
20194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20195 printf "%s\n" "done" >&6; }
20196 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20197 as_fn_error $? "conditional \"AMDEP\" was never defined.
20198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20199 fi
20200 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20201 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20203 fi
20204 case $enable_silent_rules in # (((
20205 yes) AM_DEFAULT_VERBOSITY=0;;
20206 no) AM_DEFAULT_VERBOSITY=1;;
20207 esac
20208 if test $am_cv_make_support_nested_variables = yes; then
20209 AM_V='$(V)'
20210 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20211 else
20212 AM_V=$AM_DEFAULT_VERBOSITY
20213 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20214 fi
20215
20216 if test -n "$EXEEXT"; then
20217 am__EXEEXT_TRUE=
20218 am__EXEEXT_FALSE='#'
20219 else
20220 am__EXEEXT_TRUE='#'
20221 am__EXEEXT_FALSE=
20222 fi
20223
20224 # Check whether --enable-year2038 was given.
20225 if test ${enable_year2038+y}
20226 then :
20227 enableval=$enable_year2038;
20228 fi
20229
20230
20231 : "${CONFIG_STATUS=./config.status}"
20232 ac_write_fail=0
20233 ac_clean_files_save=$ac_clean_files
20234 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20236 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20237 as_write_fail=0
20238 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20239 #! $SHELL
20240 # Generated by $as_me.
20241 # Run this file to recreate the current configuration.
20242 # Compiler output produced by configure, useful for debugging
20243 # configure, is in config.log if it exists.
20244
20245 debug=false
20246 ac_cs_recheck=false
20247 ac_cs_silent=false
20248
20249 SHELL=\${CONFIG_SHELL-$SHELL}
20250 export SHELL
20251 _ASEOF
20252 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20253 ## -------------------- ##
20254 ## M4sh Initialization. ##
20255 ## -------------------- ##
20256
20257 # Be more Bourne compatible
20258 DUALCASE=1; export DUALCASE # for MKS sh
20259 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20260 then :
20261 emulate sh
20262 NULLCMD=:
20263 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20264 # is contrary to our usage. Disable this feature.
20265 alias -g '${1+"$@"}'='"$@"'
20266 setopt NO_GLOB_SUBST
20267 else case e in #(
20268 e) case `(set -o) 2>/dev/null` in #(
20269 *posix*) :
20270 set -o posix ;; #(
20271 *) :
20272 ;;
20273 esac ;;
20274 esac
20275 fi
20276
20277
20278
20279 # Reset variables that may have inherited troublesome values from
20280 # the environment.
20281
20282 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20283 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20284 # side effect of setting IFS to empty, thus disabling word splitting.)
20285 # Quoting is to prevent editors from complaining about space-tab.
20286 as_nl='
20287 '
20288 export as_nl
20289 IFS=" "" $as_nl"
20290
20291 PS1='$ '
20292 PS2='> '
20293 PS4='+ '
20294
20295 # Ensure predictable behavior from utilities with locale-dependent output.
20296 LC_ALL=C
20297 export LC_ALL
20298 LANGUAGE=C
20299 export LANGUAGE
20300
20301 # We cannot yet rely on "unset" to work, but we need these variables
20302 # to be unset--not just set to an empty or harmless value--now, to
20303 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20304 # also avoids known problems related to "unset" and subshell syntax
20305 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20306 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20307 do eval test \${$as_var+y} \
20308 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20309 done
20310
20311 # Ensure that fds 0, 1, and 2 are open.
20312 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20313 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20314 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20315
20316 # The user is always right.
20317 if ${PATH_SEPARATOR+false} :; then
20318 PATH_SEPARATOR=:
20319 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20320 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20321 PATH_SEPARATOR=';'
20322 }
20323 fi
20324
20325
20326 # Find who we are. Look in the path if we contain no directory separator.
20327 as_myself=
20328 case $0 in #((
20329 *[\\/]* ) as_myself=$0 ;;
20330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20331 for as_dir in $PATH
20332 do
20333 IFS=$as_save_IFS
20334 case $as_dir in #(((
20335 '') as_dir=./ ;;
20336 */) ;;
20337 *) as_dir=$as_dir/ ;;
20338 esac
20339 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20340 done
20341 IFS=$as_save_IFS
20342
20343 ;;
20344 esac
20345 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20346 # in which case we are not to be found in the path.
20347 if test "x$as_myself" = x; then
20348 as_myself=$0
20349 fi
20350 if test ! -f "$as_myself"; then
20351 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20352 exit 1
20353 fi
20354
20355
20356
20357 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20358 # ----------------------------------------
20359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20361 # script with STATUS, using 1 if that was 0.
20362 as_fn_error ()
20363 {
20364 as_status=$1; test $as_status -eq 0 && as_status=1
20365 if test "$4"; then
20366 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20368 fi
20369 printf "%s\n" "$as_me: error: $2" >&2
20370 as_fn_exit $as_status
20371 } # as_fn_error
20372
20373
20374 # as_fn_set_status STATUS
20375 # -----------------------
20376 # Set $? to STATUS, without forking.
20377 as_fn_set_status ()
20378 {
20379 return $1
20380 } # as_fn_set_status
20381
20382 # as_fn_exit STATUS
20383 # -----------------
20384 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20385 as_fn_exit ()
20386 {
20387 set +e
20388 as_fn_set_status $1
20389 exit $1
20390 } # as_fn_exit
20391
20392 # as_fn_unset VAR
20393 # ---------------
20394 # Portably unset VAR.
20395 as_fn_unset ()
20396 {
20397 { eval $1=; unset $1;}
20398 }
20399 as_unset=as_fn_unset
20400
20401 # as_fn_append VAR VALUE
20402 # ----------------------
20403 # Append the text in VALUE to the end of the definition contained in VAR. Take
20404 # advantage of any shell optimizations that allow amortized linear growth over
20405 # repeated appends, instead of the typical quadratic growth present in naive
20406 # implementations.
20407 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20408 then :
20409 eval 'as_fn_append ()
20410 {
20411 eval $1+=\$2
20412 }'
20413 else case e in #(
20414 e) as_fn_append ()
20415 {
20416 eval $1=\$$1\$2
20417 } ;;
20418 esac
20419 fi # as_fn_append
20420
20421 # as_fn_arith ARG...
20422 # ------------------
20423 # Perform arithmetic evaluation on the ARGs, and store the result in the
20424 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20425 # must be portable across $(()) and expr.
20426 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20427 then :
20428 eval 'as_fn_arith ()
20429 {
20430 as_val=$(( $* ))
20431 }'
20432 else case e in #(
20433 e) as_fn_arith ()
20434 {
20435 as_val=`expr "$@" || test $? -eq 1`
20436 } ;;
20437 esac
20438 fi # as_fn_arith
20439
20440
20441 if expr a : '\(a\)' >/dev/null 2>&1 &&
20442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20443 as_expr=expr
20444 else
20445 as_expr=false
20446 fi
20447
20448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20449 as_basename=basename
20450 else
20451 as_basename=false
20452 fi
20453
20454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20455 as_dirname=dirname
20456 else
20457 as_dirname=false
20458 fi
20459
20460 as_me=`$as_basename -- "$0" ||
20461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20462 X"$0" : 'X\(//\)$' \| \
20463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20464 printf "%s\n" X/"$0" |
20465 sed '/^.*\/\([^/][^/]*\)\/*$/{
20466 s//\1/
20467 q
20468 }
20469 /^X\/\(\/\/\)$/{
20470 s//\1/
20471 q
20472 }
20473 /^X\/\(\/\).*/{
20474 s//\1/
20475 q
20476 }
20477 s/.*/./; q'`
20478
20479 # Avoid depending upon Character Ranges.
20480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20483 as_cr_digits='0123456789'
20484 as_cr_alnum=$as_cr_Letters$as_cr_digits
20485
20486
20487 # Determine whether it's possible to make 'echo' print without a newline.
20488 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20489 # for compatibility with existing Makefiles.
20490 ECHO_C= ECHO_N= ECHO_T=
20491 case `echo -n x` in #(((((
20492 -n*)
20493 case `echo 'xy\c'` in
20494 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20495 xy) ECHO_C='\c';;
20496 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20497 ECHO_T=' ';;
20498 esac;;
20499 *)
20500 ECHO_N='-n';;
20501 esac
20502
20503 # For backward compatibility with old third-party macros, we provide
20504 # the shell variables $as_echo and $as_echo_n. New code should use
20505 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20506 as_echo='printf %s\n'
20507 as_echo_n='printf %s'
20508
20509 rm -f conf$$ conf$$.exe conf$$.file
20510 if test -d conf$$.dir; then
20511 rm -f conf$$.dir/conf$$.file
20512 else
20513 rm -f conf$$.dir
20514 mkdir conf$$.dir 2>/dev/null
20515 fi
20516 if (echo >conf$$.file) 2>/dev/null; then
20517 if ln -s conf$$.file conf$$ 2>/dev/null; then
20518 as_ln_s='ln -s'
20519 # ... but there are two gotchas:
20520 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20521 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20522 # In both cases, we have to default to 'cp -pR'.
20523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20524 as_ln_s='cp -pR'
20525 elif ln conf$$.file conf$$ 2>/dev/null; then
20526 as_ln_s=ln
20527 else
20528 as_ln_s='cp -pR'
20529 fi
20530 else
20531 as_ln_s='cp -pR'
20532 fi
20533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20534 rmdir conf$$.dir 2>/dev/null
20535
20536
20537 # as_fn_mkdir_p
20538 # -------------
20539 # Create "$as_dir" as a directory, including parents if necessary.
20540 as_fn_mkdir_p ()
20541 {
20542
20543 case $as_dir in #(
20544 -*) as_dir=./$as_dir;;
20545 esac
20546 test -d "$as_dir" || eval $as_mkdir_p || {
20547 as_dirs=
20548 while :; do
20549 case $as_dir in #(
20550 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20551 *) as_qdir=$as_dir;;
20552 esac
20553 as_dirs="'$as_qdir' $as_dirs"
20554 as_dir=`$as_dirname -- "$as_dir" ||
20555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20556 X"$as_dir" : 'X\(//\)[^/]' \| \
20557 X"$as_dir" : 'X\(//\)$' \| \
20558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20559 printf "%s\n" X"$as_dir" |
20560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20561 s//\1/
20562 q
20563 }
20564 /^X\(\/\/\)[^/].*/{
20565 s//\1/
20566 q
20567 }
20568 /^X\(\/\/\)$/{
20569 s//\1/
20570 q
20571 }
20572 /^X\(\/\).*/{
20573 s//\1/
20574 q
20575 }
20576 s/.*/./; q'`
20577 test -d "$as_dir" && break
20578 done
20579 test -z "$as_dirs" || eval "mkdir $as_dirs"
20580 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20581
20582
20583 } # as_fn_mkdir_p
20584 if mkdir -p . 2>/dev/null; then
20585 as_mkdir_p='mkdir -p "$as_dir"'
20586 else
20587 test -d ./-p && rmdir ./-p
20588 as_mkdir_p=false
20589 fi
20590
20591
20592 # as_fn_executable_p FILE
20593 # -----------------------
20594 # Test if FILE is an executable regular file.
20595 as_fn_executable_p ()
20596 {
20597 test -f "$1" && test -x "$1"
20598 } # as_fn_executable_p
20599 as_test_x='test -x'
20600 as_executable_p=as_fn_executable_p
20601
20602 # Sed expression to map a string onto a valid CPP name.
20603 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20604 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20605
20606 # Sed expression to map a string onto a valid variable name.
20607 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20608 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20609
20610
20611 exec 6>&1
20612 ## ----------------------------------- ##
20613 ## Main body of $CONFIG_STATUS script. ##
20614 ## ----------------------------------- ##
20615 _ASEOF
20616 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20617
20618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20619 # Save the log message, to keep $0 and so on meaningful, and to
20620 # report actual input values of CONFIG_FILES etc. instead of their
20621 # values after options handling.
20622 ac_log="
20623 This file was extended by stunnel $as_me 5.78, which was
20624 generated by GNU Autoconf 2.72. Invocation command line was
20625
20626 CONFIG_FILES = $CONFIG_FILES
20627 CONFIG_HEADERS = $CONFIG_HEADERS
20628 CONFIG_LINKS = $CONFIG_LINKS
20629 CONFIG_COMMANDS = $CONFIG_COMMANDS
20630 $ $0 $@
20631
20632 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20633 "
20634
20635 _ACEOF
20636
20637 case $ac_config_files in *"
20638 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20639 esac
20640
20641 case $ac_config_headers in *"
20642 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20643 esac
20644
20645
20646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20647 # Files that config.status was made for.
20648 config_files="$ac_config_files"
20649 config_headers="$ac_config_headers"
20650 config_commands="$ac_config_commands"
20651
20652 _ACEOF
20653
20654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20655 ac_cs_usage="\
20656 '$as_me' instantiates files and other configuration actions
20657 from templates according to the current configuration. Unless the files
20658 and actions are specified as TAGs, all are instantiated by default.
20659
20660 Usage: $0 [OPTION]... [TAG]...
20661
20662 -h, --help print this help, then exit
20663 -V, --version print version number and configuration settings, then exit
20664 --config print configuration, then exit
20665 -q, --quiet, --silent
20666 do not print progress messages
20667 -d, --debug don't remove temporary files
20668 --recheck update $as_me by reconfiguring in the same conditions
20669 --file=FILE[:TEMPLATE]
20670 instantiate the configuration file FILE
20671 --header=FILE[:TEMPLATE]
20672 instantiate the configuration header FILE
20673
20674 Configuration files:
20675 $config_files
20676
20677 Configuration headers:
20678 $config_headers
20679
20680 Configuration commands:
20681 $config_commands
20682
20683 Report bugs to the package provider."
20684
20685 _ACEOF
20686 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20687 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20689 ac_cs_config='$ac_cs_config_escaped'
20690 ac_cs_version="\\
20691 stunnel config.status 5.78
20692 configured by $0, generated by GNU Autoconf 2.72,
20693 with options \\"\$ac_cs_config\\"
20694
20695 Copyright (C) 2023 Free Software Foundation, Inc.
20696 This config.status script is free software; the Free Software Foundation
20697 gives unlimited permission to copy, distribute and modify it."
20698
20699 ac_pwd='$ac_pwd'
20700 srcdir='$srcdir'
20701 INSTALL='$INSTALL'
20702 MKDIR_P='$MKDIR_P'
20703 AWK='$AWK'
20704 test -n "\$AWK" || AWK=awk
20705 _ACEOF
20706
20707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20708 # The default lists apply if the user does not specify any file.
20709 ac_need_defaults=:
20710 while test $# != 0
20711 do
20712 case $1 in
20713 --*=?*)
20714 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20715 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20716 ac_shift=:
20717 ;;
20718 --*=)
20719 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20720 ac_optarg=
20721 ac_shift=:
20722 ;;
20723 *)
20724 ac_option=$1
20725 ac_optarg=$2
20726 ac_shift=shift
20727 ;;
20728 esac
20729
20730 case $ac_option in
20731 # Handling of the options.
20732 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20733 ac_cs_recheck=: ;;
20734 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20735 printf "%s\n" "$ac_cs_version"; exit ;;
20736 --config | --confi | --conf | --con | --co | --c )
20737 printf "%s\n" "$ac_cs_config"; exit ;;
20738 --debug | --debu | --deb | --de | --d | -d )
20739 debug=: ;;
20740 --file | --fil | --fi | --f )
20741 $ac_shift
20742 case $ac_optarg in
20743 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20744 '') as_fn_error $? "missing file argument" ;;
20745 esac
20746 as_fn_append CONFIG_FILES " '$ac_optarg'"
20747 ac_need_defaults=false;;
20748 --header | --heade | --head | --hea )
20749 $ac_shift
20750 case $ac_optarg in
20751 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20752 esac
20753 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20754 ac_need_defaults=false;;
20755 --he | --h)
20756 # Conflict between --help and --header
20757 as_fn_error $? "ambiguous option: '$1'
20758 Try '$0 --help' for more information.";;
20759 --help | --hel | -h )
20760 printf "%s\n" "$ac_cs_usage"; exit ;;
20761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20762 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20763 ac_cs_silent=: ;;
20764
20765 # This is an error.
20766 -*) as_fn_error $? "unrecognized option: '$1'
20767 Try '$0 --help' for more information." ;;
20768
20769 *) as_fn_append ac_config_targets " $1"
20770 ac_need_defaults=false ;;
20771
20772 esac
20773 shift
20774 done
20775
20776 ac_configure_extra_args=
20777
20778 if $ac_cs_silent; then
20779 exec 6>/dev/null
20780 ac_configure_extra_args="$ac_configure_extra_args --silent"
20781 fi
20782
20783 _ACEOF
20784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20785 if \$ac_cs_recheck; then
20786 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20787 shift
20788 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20789 CONFIG_SHELL='$SHELL'
20790 export CONFIG_SHELL
20791 exec "\$@"
20792 fi
20793
20794 _ACEOF
20795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20796 exec 5>>config.log
20797 {
20798 echo
20799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20800 ## Running $as_me. ##
20801 _ASBOX
20802 printf "%s\n" "$ac_log"
20803 } >&5
20804
20805 _ACEOF
20806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20807 #
20808 # INIT-COMMANDS
20809 #
20810 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20811
20812
20813 # The HP-UX ksh and POSIX shell print the target directory to stdout
20814 # if CDPATH is set.
20815 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20816
20817 sed_quote_subst='$sed_quote_subst'
20818 double_quote_subst='$double_quote_subst'
20819 delay_variable_subst='$delay_variable_subst'
20820 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20821 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20822 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20823 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20824 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20825 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20826 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20827 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20828 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20829 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20830 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20831 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20832 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20833 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20834 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20835 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20836 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20837 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20838 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20839 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20840 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20841 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20842 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20843 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20844 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20845 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20846 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20847 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20848 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20849 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20850 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20851 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20852 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20853 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20854 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20855 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20856 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20857 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20858 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20859 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20860 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20861 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20862 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20863 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20864 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20865 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20866 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20867 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20868 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20869 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20870 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20871 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20872 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20873 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20874 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20875 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20876 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20877 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20878 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20879 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20880 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"`'
20881 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20882 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20883 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20884 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20885 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20886 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20887 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20888 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20889 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20890 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20891 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20892 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20893 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20894 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20895 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20896 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20897 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20898 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20899 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20900 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20901 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20902 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20903 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20904 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20905 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20906 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20907 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20908 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20909 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20910 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20911 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20912 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20913 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20914 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20915 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20916 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20917 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20918 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20919 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20920 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20921 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20922 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20923 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20924 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20925 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20926 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20927 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20928 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20929 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20930 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20931 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20932 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20933 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20934 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20935 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20936 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20937 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20938 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20939 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20940 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20941 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20942 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20943 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20944 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20945 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20946 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20947 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20948 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20949 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20950 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20951 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20952 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20953 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20954 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20955 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20956 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20957
20958 LTCC='$LTCC'
20959 LTCFLAGS='$LTCFLAGS'
20960 compiler='$compiler_DEFAULT'
20961
20962 # A function that is used when there is no print builtin or printf.
20963 func_fallback_echo ()
20964 {
20965 eval 'cat <<_LTECHO_EOF
20966 \$1
20967 _LTECHO_EOF'
20968 }
20969
20970 # Quote evaled strings.
20971 for var in SHELL \
20972 ECHO \
20973 PATH_SEPARATOR \
20974 SED \
20975 GREP \
20976 EGREP \
20977 FGREP \
20978 LD \
20979 NM \
20980 LN_S \
20981 lt_SP2NL \
20982 lt_NL2SP \
20983 reload_flag \
20984 FILECMD \
20985 OBJDUMP \
20986 deplibs_check_method \
20987 file_magic_cmd \
20988 file_magic_glob \
20989 want_nocaseglob \
20990 DLLTOOL \
20991 sharedlib_from_linklib_cmd \
20992 AR \
20993 archiver_list_spec \
20994 STRIP \
20995 RANLIB \
20996 CC \
20997 CFLAGS \
20998 compiler \
20999 lt_cv_sys_global_symbol_pipe \
21000 lt_cv_sys_global_symbol_to_cdecl \
21001 lt_cv_sys_global_symbol_to_import \
21002 lt_cv_sys_global_symbol_to_c_name_address \
21003 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21004 lt_cv_nm_interface \
21005 nm_file_list_spec \
21006 lt_cv_truncate_bin \
21007 lt_prog_compiler_no_builtin_flag \
21008 lt_prog_compiler_pic \
21009 lt_prog_compiler_wl \
21010 lt_prog_compiler_static \
21011 lt_cv_prog_compiler_c_o \
21012 need_locks \
21013 MANIFEST_TOOL \
21014 DSYMUTIL \
21015 NMEDIT \
21016 LIPO \
21017 OTOOL \
21018 OTOOL64 \
21019 shrext_cmds \
21020 export_dynamic_flag_spec \
21021 whole_archive_flag_spec \
21022 compiler_needs_object \
21023 with_gnu_ld \
21024 allow_undefined_flag \
21025 no_undefined_flag \
21026 hardcode_libdir_flag_spec \
21027 hardcode_libdir_separator \
21028 exclude_expsyms \
21029 include_expsyms \
21030 file_list_spec \
21031 variables_saved_for_relink \
21032 libname_spec \
21033 library_names_spec \
21034 soname_spec \
21035 install_override_mode \
21036 finish_eval \
21037 old_striplib \
21038 striplib; do
21039 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21040 *[\\\\\\\`\\"\\\$]*)
21041 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21042 ;;
21043 *)
21044 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21045 ;;
21046 esac
21047 done
21048
21049 # Double-quote double-evaled strings.
21050 for var in reload_cmds \
21051 old_postinstall_cmds \
21052 old_postuninstall_cmds \
21053 old_archive_cmds \
21054 extract_expsyms_cmds \
21055 old_archive_from_new_cmds \
21056 old_archive_from_expsyms_cmds \
21057 archive_cmds \
21058 archive_expsym_cmds \
21059 module_cmds \
21060 module_expsym_cmds \
21061 export_symbols_cmds \
21062 prelink_cmds \
21063 postlink_cmds \
21064 postinstall_cmds \
21065 postuninstall_cmds \
21066 finish_cmds \
21067 sys_lib_search_path_spec \
21068 configure_time_dlsearch_path \
21069 configure_time_lt_sys_library_path; do
21070 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21071 *[\\\\\\\`\\"\\\$]*)
21072 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21073 ;;
21074 *)
21075 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21076 ;;
21077 esac
21078 done
21079
21080 ac_aux_dir='$ac_aux_dir'
21081
21082 # See if we are running on zsh, and set the options that allow our
21083 # commands through without removal of \ escapes INIT.
21084 if test -n "\${ZSH_VERSION+set}"; then
21085 setopt NO_GLOB_SUBST
21086 fi
21087
21088
21089 PACKAGE='$PACKAGE'
21090 VERSION='$VERSION'
21091 RM='$RM'
21092 ofile='$ofile'
21093
21094
21095
21096
21097 _ACEOF
21098
21099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21100
21101 # Handling of arguments.
21102 for ac_config_target in $ac_config_targets
21103 do
21104 case $ac_config_target in
21105 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21106 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21107 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21108 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21109 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21110 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21111 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21112 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21113 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
21114
21115 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21116 esac
21117 done
21118
21119
21120 # If the user did not use the arguments to specify the items to instantiate,
21121 # then the envvar interface is used. Set only those that are not.
21122 # We use the long form for the default assignment because of an extremely
21123 # bizarre bug on SunOS 4.1.3.
21124 if $ac_need_defaults; then
21125 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21126 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21127 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21128 fi
21129
21130 # Have a temporary directory for convenience. Make it in the build tree
21131 # simply because there is no reason against having it here, and in addition,
21132 # creating and moving files from /tmp can sometimes cause problems.
21133 # Hook for its removal unless debugging.
21134 # Note that there is a small window in which the directory will not be cleaned:
21135 # after its creation but before its name has been assigned to '$tmp'.
21136 $debug ||
21137 {
21138 tmp= ac_tmp=
21139 trap 'exit_status=$?
21140 : "${ac_tmp:=$tmp}"
21141 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21142 ' 0
21143 trap 'as_fn_exit 1' 1 2 13 15
21144 }
21145 # Create a (secure) tmp directory for tmp files.
21146
21147 {
21148 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21149 test -d "$tmp"
21150 } ||
21151 {
21152 tmp=./conf$$-$RANDOM
21153 (umask 077 && mkdir "$tmp")
21154 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21155 ac_tmp=$tmp
21156
21157 # Set up the scripts for CONFIG_FILES section.
21158 # No need to generate them if there are no CONFIG_FILES.
21159 # This happens for instance with './config.status config.h'.
21160 if test -n "$CONFIG_FILES"; then
21161
21162
21163 ac_cr=`echo X | tr X '\015'`
21164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21165 # But we know of no other shell where ac_cr would be empty at this
21166 # point, so we can use a bashism as a fallback.
21167 if test "x$ac_cr" = x; then
21168 eval ac_cr=\$\'\\r\'
21169 fi
21170 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21172 ac_cs_awk_cr='\\r'
21173 else
21174 ac_cs_awk_cr=$ac_cr
21175 fi
21176
21177 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21178 _ACEOF
21179
21180
21181 {
21182 echo "cat >conf$$subs.awk <<_ACEOF" &&
21183 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21184 echo "_ACEOF"
21185 } >conf$$subs.sh ||
21186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21187 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21188 ac_delim='%!_!# '
21189 for ac_last_try in false false false false false :; do
21190 . ./conf$$subs.sh ||
21191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21192
21193 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21194 if test $ac_delim_n = $ac_delim_num; then
21195 break
21196 elif $ac_last_try; then
21197 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21198 else
21199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21200 fi
21201 done
21202 rm -f conf$$subs.sh
21203
21204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21205 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21206 _ACEOF
21207 sed -n '
21208 h
21209 s/^/S["/; s/!.*/"]=/
21210 p
21211 g
21212 s/^[^!]*!//
21213 :repl
21214 t repl
21215 s/'"$ac_delim"'$//
21216 t delim
21217 :nl
21218 h
21219 s/\(.\{148\}\)..*/\1/
21220 t more1
21221 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21222 p
21223 n
21224 b repl
21225 :more1
21226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21227 p
21228 g
21229 s/.\{148\}//
21230 t nl
21231 :delim
21232 h
21233 s/\(.\{148\}\)..*/\1/
21234 t more2
21235 s/["\\]/\\&/g; s/^/"/; s/$/"/
21236 p
21237 b
21238 :more2
21239 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21240 p
21241 g
21242 s/.\{148\}//
21243 t delim
21244 ' <conf$$subs.awk | sed '
21245 /^[^""]/{
21246 N
21247 s/\n//
21248 }
21249 ' >>$CONFIG_STATUS || ac_write_fail=1
21250 rm -f conf$$subs.awk
21251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21252 _ACAWK
21253 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21254 for (key in S) S_is_set[key] = 1
21255 FS = ""
21256
21257 }
21258 {
21259 line = $ 0
21260 nfields = split(line, field, "@")
21261 substed = 0
21262 len = length(field[1])
21263 for (i = 2; i < nfields; i++) {
21264 key = field[i]
21265 keylen = length(key)
21266 if (S_is_set[key]) {
21267 value = S[key]
21268 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21269 len += length(value) + length(field[++i])
21270 substed = 1
21271 } else
21272 len += 1 + keylen
21273 }
21274
21275 print line
21276 }
21277
21278 _ACAWK
21279 _ACEOF
21280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21281 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21282 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21283 else
21284 cat
21285 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21286 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21287 _ACEOF
21288
21289 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21290 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21291 # trailing colons and then remove the whole line if VPATH becomes empty
21292 # (actually we leave an empty line to preserve line numbers).
21293 if test "x$srcdir" = x.; then
21294 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21295 h
21296 s///
21297 s/^/:/
21298 s/[ ]*$/:/
21299 s/:\$(srcdir):/:/g
21300 s/:\${srcdir}:/:/g
21301 s/:@srcdir@:/:/g
21302 s/^:*//
21303 s/:*$//
21304 x
21305 s/\(=[ ]*\).*/\1/
21306 G
21307 s/\n//
21308 s/^[^=]*=[ ]*$//
21309 }'
21310 fi
21311
21312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21313 fi # test -n "$CONFIG_FILES"
21314
21315 # Set up the scripts for CONFIG_HEADERS section.
21316 # No need to generate them if there are no CONFIG_HEADERS.
21317 # This happens for instance with './config.status Makefile'.
21318 if test -n "$CONFIG_HEADERS"; then
21319 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21320 BEGIN {
21321 _ACEOF
21322
21323 # Transform confdefs.h into an awk script 'defines.awk', embedded as
21324 # here-document in config.status, that substitutes the proper values into
21325 # config.h.in to produce config.h.
21326
21327 # Create a delimiter string that does not exist in confdefs.h, to ease
21328 # handling of long lines.
21329 ac_delim='%!_!# '
21330 for ac_last_try in false false :; do
21331 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21332 if test -z "$ac_tt"; then
21333 break
21334 elif $ac_last_try; then
21335 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21336 else
21337 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21338 fi
21339 done
21340
21341 # For the awk script, D is an array of macro values keyed by name,
21342 # likewise P contains macro parameters if any. Preserve backslash
21343 # newline sequences.
21344
21345 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21346 sed -n '
21347 s/.\{148\}/&'"$ac_delim"'/g
21348 t rset
21349 :rset
21350 s/^[ ]*#[ ]*define[ ][ ]*/ /
21351 t def
21352 d
21353 :def
21354 s/\\$//
21355 t bsnl
21356 s/["\\]/\\&/g
21357 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21358 D["\1"]=" \3"/p
21359 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21360 d
21361 :bsnl
21362 s/["\\]/\\&/g
21363 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21364 D["\1"]=" \3\\\\\\n"\\/p
21365 t cont
21366 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21367 t cont
21368 d
21369 :cont
21370 n
21371 s/.\{148\}/&'"$ac_delim"'/g
21372 t clear
21373 :clear
21374 s/\\$//
21375 t bsnlc
21376 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21377 d
21378 :bsnlc
21379 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21380 b cont
21381 ' <confdefs.h | sed '
21382 s/'"$ac_delim"'/"\\\
21383 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21384
21385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21386 for (key in D) D_is_set[key] = 1
21387 FS = ""
21388 }
21389 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21390 line = \$ 0
21391 split(line, arg, " ")
21392 if (arg[1] == "#") {
21393 defundef = arg[2]
21394 mac1 = arg[3]
21395 } else {
21396 defundef = substr(arg[1], 2)
21397 mac1 = arg[2]
21398 }
21399 split(mac1, mac2, "(") #)
21400 macro = mac2[1]
21401 prefix = substr(line, 1, index(line, defundef) - 1)
21402 if (D_is_set[macro]) {
21403 # Preserve the white space surrounding the "#".
21404 print prefix "define", macro P[macro] D[macro]
21405 next
21406 } else {
21407 # Replace #undef with comments. This is necessary, for example,
21408 # in the case of _POSIX_SOURCE, which is predefined and required
21409 # on some systems where configure will not decide to define it.
21410 if (defundef == "undef") {
21411 print "/*", prefix defundef, macro, "*/"
21412 next
21413 }
21414 }
21415 }
21416 { print }
21417 _ACAWK
21418 _ACEOF
21419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21420 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21421 fi # test -n "$CONFIG_HEADERS"
21422
21423
21424 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21425 shift
21426 for ac_tag
21427 do
21428 case $ac_tag in
21429 :[FHLC]) ac_mode=$ac_tag; continue;;
21430 esac
21431 case $ac_mode$ac_tag in
21432 :[FHL]*:*);;
21433 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21434 :[FH]-) ac_tag=-:-;;
21435 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21436 esac
21437 ac_save_IFS=$IFS
21438 IFS=:
21439 set x $ac_tag
21440 IFS=$ac_save_IFS
21441 shift
21442 ac_file=$1
21443 shift
21444
21445 case $ac_mode in
21446 :L) ac_source=$1;;
21447 :[FH])
21448 ac_file_inputs=
21449 for ac_f
21450 do
21451 case $ac_f in
21452 -) ac_f="$ac_tmp/stdin";;
21453 *) # Look for the file first in the build tree, then in the source tree
21454 # (if the path is not absolute). The absolute path cannot be DOS-style,
21455 # because $ac_f cannot contain ':'.
21456 test -f "$ac_f" ||
21457 case $ac_f in
21458 [\\/$]*) false;;
21459 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21460 esac ||
21461 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21462 esac
21463 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21464 as_fn_append ac_file_inputs " '$ac_f'"
21465 done
21466
21467 # Let's still pretend it is 'configure' which instantiates (i.e., don't
21468 # use $as_me), people would be surprised to read:
21469 # /* config.h. Generated by config.status. */
21470 configure_input='Generated from '`
21471 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21472 `' by configure.'
21473 if test x"$ac_file" != x-; then
21474 configure_input="$ac_file. $configure_input"
21475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21476 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21477 fi
21478 # Neutralize special characters interpreted by sed in replacement strings.
21479 case $configure_input in #(
21480 *\&* | *\|* | *\\* )
21481 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21482 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21483 *) ac_sed_conf_input=$configure_input;;
21484 esac
21485
21486 case $ac_tag in
21487 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21489 esac
21490 ;;
21491 esac
21492
21493 ac_dir=`$as_dirname -- "$ac_file" ||
21494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21495 X"$ac_file" : 'X\(//\)[^/]' \| \
21496 X"$ac_file" : 'X\(//\)$' \| \
21497 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21498 printf "%s\n" X"$ac_file" |
21499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21500 s//\1/
21501 q
21502 }
21503 /^X\(\/\/\)[^/].*/{
21504 s//\1/
21505 q
21506 }
21507 /^X\(\/\/\)$/{
21508 s//\1/
21509 q
21510 }
21511 /^X\(\/\).*/{
21512 s//\1/
21513 q
21514 }
21515 s/.*/./; q'`
21516 as_dir="$ac_dir"; as_fn_mkdir_p
21517 ac_builddir=.
21518
21519 case "$ac_dir" in
21520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21521 *)
21522 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21523 # A ".." for each directory in $ac_dir_suffix.
21524 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21525 case $ac_top_builddir_sub in
21526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21528 esac ;;
21529 esac
21530 ac_abs_top_builddir=$ac_pwd
21531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21532 # for backward compatibility:
21533 ac_top_builddir=$ac_top_build_prefix
21534
21535 case $srcdir in
21536 .) # We are building in place.
21537 ac_srcdir=.
21538 ac_top_srcdir=$ac_top_builddir_sub
21539 ac_abs_top_srcdir=$ac_pwd ;;
21540 [\\/]* | ?:[\\/]* ) # Absolute name.
21541 ac_srcdir=$srcdir$ac_dir_suffix;
21542 ac_top_srcdir=$srcdir
21543 ac_abs_top_srcdir=$srcdir ;;
21544 *) # Relative name.
21545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21546 ac_top_srcdir=$ac_top_build_prefix$srcdir
21547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21548 esac
21549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21550
21551
21552 case $ac_mode in
21553 :F)
21554 #
21555 # CONFIG_FILE
21556 #
21557
21558 case $INSTALL in
21559 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21560 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21561 esac
21562 ac_MKDIR_P=$MKDIR_P
21563 case $MKDIR_P in
21564 [\\/$]* | ?:[\\/]* ) ;;
21565 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21566 esac
21567 _ACEOF
21568
21569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21570 # If the template does not know about datarootdir, expand it.
21571 # FIXME: This hack should be removed a few years after 2.60.
21572 ac_datarootdir_hack=; ac_datarootdir_seen=
21573 ac_sed_dataroot='
21574 /datarootdir/ {
21575 p
21576 q
21577 }
21578 /@datadir@/p
21579 /@docdir@/p
21580 /@infodir@/p
21581 /@localedir@/p
21582 /@mandir@/p'
21583 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21584 *datarootdir*) ac_datarootdir_seen=yes;;
21585 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21587 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21588 _ACEOF
21589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21590 ac_datarootdir_hack='
21591 s&@datadir@&$datadir&g
21592 s&@docdir@&$docdir&g
21593 s&@infodir@&$infodir&g
21594 s&@localedir@&$localedir&g
21595 s&@mandir@&$mandir&g
21596 s&\\\${datarootdir}&$datarootdir&g' ;;
21597 esac
21598 _ACEOF
21599
21600 # Neutralize VPATH when '$srcdir' = '.'.
21601 # Shell code in configure.ac might set extrasub.
21602 # FIXME: do we really want to maintain this feature?
21603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21604 ac_sed_extra="$ac_vpsub
21605 $extrasub
21606 _ACEOF
21607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21608 :t
21609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21610 s|@configure_input@|$ac_sed_conf_input|;t t
21611 s&@top_builddir@&$ac_top_builddir_sub&;t t
21612 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21613 s&@srcdir@&$ac_srcdir&;t t
21614 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21615 s&@top_srcdir@&$ac_top_srcdir&;t t
21616 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21617 s&@builddir@&$ac_builddir&;t t
21618 s&@abs_builddir@&$ac_abs_builddir&;t t
21619 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21620 s&@INSTALL@&$ac_INSTALL&;t t
21621 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21622 $ac_datarootdir_hack
21623 "
21624 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21625 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21626
21627 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21628 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21629 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21630 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21632 which seems to be undefined. Please make sure it is defined" >&5
21633 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21634 which seems to be undefined. Please make sure it is defined" >&2;}
21635
21636 rm -f "$ac_tmp/stdin"
21637 case $ac_file in
21638 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21639 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21640 esac \
21641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21642 ;;
21643 :H)
21644 #
21645 # CONFIG_HEADER
21646 #
21647 if test x"$ac_file" != x-; then
21648 {
21649 printf "%s\n" "/* $configure_input */" >&1 \
21650 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21651 } >"$ac_tmp/config.h" \
21652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21653 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21655 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21656 else
21657 rm -f "$ac_file"
21658 mv "$ac_tmp/config.h" "$ac_file" \
21659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21660 fi
21661 else
21662 printf "%s\n" "/* $configure_input */" >&1 \
21663 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21664 || as_fn_error $? "could not create -" "$LINENO" 5
21665 fi
21666 # Compute "$ac_file"'s index in $config_headers.
21667 _am_arg="$ac_file"
21668 _am_stamp_count=1
21669 for _am_header in $config_headers :; do
21670 case $_am_header in
21671 $_am_arg | $_am_arg:* )
21672 break ;;
21673 * )
21674 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21675 esac
21676 done
21677 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21678 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21679 X"$_am_arg" : 'X\(//\)[^/]' \| \
21680 X"$_am_arg" : 'X\(//\)$' \| \
21681 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21682 printf "%s\n" X"$_am_arg" |
21683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21684 s//\1/
21685 q
21686 }
21687 /^X\(\/\/\)[^/].*/{
21688 s//\1/
21689 q
21690 }
21691 /^X\(\/\/\)$/{
21692 s//\1/
21693 q
21694 }
21695 /^X\(\/\).*/{
21696 s//\1/
21697 q
21698 }
21699 s/.*/./; q'`/stamp-h$_am_stamp_count
21700 ;;
21701
21702 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21703 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21704 ;;
21705 esac
21706
21707
21708 case $ac_file$ac_mode in
21709 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21710 # Older Autoconf quotes --file arguments for eval, but not when files
21711 # are listed without --file. Let's play safe and only enable the eval
21712 # if we detect the quoting.
21713 # TODO: see whether this extra hack can be removed once we start
21714 # requiring Autoconf 2.70 or later.
21715 case $CONFIG_FILES in #(
21716 *\'*) :
21717 eval set x "$CONFIG_FILES" ;; #(
21718 *) :
21719 set x $CONFIG_FILES ;; #(
21720 *) :
21721 ;;
21722 esac
21723 shift
21724 # Used to flag and report bootstrapping failures.
21725 am_rc=0
21726 for am_mf
21727 do
21728 # Strip MF so we end up with the name of the file.
21729 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21730 # Check whether this is an Automake generated Makefile which includes
21731 # dependency-tracking related rules and includes.
21732 # Grep'ing the whole file directly is not great: AIX grep has a line
21733 # limit of 2048, but all sed's we know have understand at least 4000.
21734 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21735 || continue
21736 am_dirpart=`$as_dirname -- "$am_mf" ||
21737 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21738 X"$am_mf" : 'X\(//\)[^/]' \| \
21739 X"$am_mf" : 'X\(//\)$' \| \
21740 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21741 printf "%s\n" X"$am_mf" |
21742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21743 s//\1/
21744 q
21745 }
21746 /^X\(\/\/\)[^/].*/{
21747 s//\1/
21748 q
21749 }
21750 /^X\(\/\/\)$/{
21751 s//\1/
21752 q
21753 }
21754 /^X\(\/\).*/{
21755 s//\1/
21756 q
21757 }
21758 s/.*/./; q'`
21759 am_filepart=`$as_basename -- "$am_mf" ||
21760 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21761 X"$am_mf" : 'X\(//\)$' \| \
21762 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21763 printf "%s\n" X/"$am_mf" |
21764 sed '/^.*\/\([^/][^/]*\)\/*$/{
21765 s//\1/
21766 q
21767 }
21768 /^X\/\(\/\/\)$/{
21769 s//\1/
21770 q
21771 }
21772 /^X\/\(\/\).*/{
21773 s//\1/
21774 q
21775 }
21776 s/.*/./; q'`
21777 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21778 && sed -e '/# am--include-marker/d' "$am_filepart" \
21779 | $MAKE -f - am--depfiles" >&5
21780 (cd "$am_dirpart" \
21781 && sed -e '/# am--include-marker/d' "$am_filepart" \
21782 | $MAKE -f - am--depfiles) >&5 2>&5
21783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } || am_rc=$?
21786 done
21787 if test $am_rc -ne 0; then
21788 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21789 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21790 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21791 for automatic dependency tracking. If GNU make was not used, consider
21792 re-running the configure script with MAKE=\"gmake\" (or whatever is
21793 necessary). You can also try re-running configure with the
21794 '--disable-dependency-tracking' option to at least be able to build
21795 the package (albeit without support for automatic dependency tracking).
21796 See 'config.log' for more details" "$LINENO" 5; }
21797 fi
21798 { am_dirpart=; unset am_dirpart;}
21799 { am_filepart=; unset am_filepart;}
21800 { am_mf=; unset am_mf;}
21801 { am_rc=; unset am_rc;}
21802 rm -f conftest-deps.mk
21803 }
21804 ;;
21805 "libtool":C)
21806
21807 # See if we are running on zsh, and set the options that allow our
21808 # commands through without removal of \ escapes.
21809 if test -n "${ZSH_VERSION+set}"; then
21810 setopt NO_GLOB_SUBST
21811 fi
21812
21813 cfgfile=${ofile}T
21814 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21815 $RM "$cfgfile"
21816
21817 cat <<_LT_EOF >> "$cfgfile"
21818 #! $SHELL
21819 # Generated automatically by $as_me ($PACKAGE) $VERSION
21820 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21821
21822 # Provide generalized library-building support services.
21823 # Written by Gordon Matzigkeit, 1996
21824
21825 # Copyright (C) 2024 Free Software Foundation, Inc.
21826 # This is free software; see the source for copying conditions. There is NO
21827 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21828
21829 # GNU Libtool is free software; you can redistribute it and/or modify
21830 # it under the terms of the GNU General Public License as published by
21831 # the Free Software Foundation; either version 2 of the License, or
21832 # (at your option) any later version.
21833 #
21834 # As a special exception to the GNU General Public License, if you
21835 # distribute this file as part of a program or library that is built
21836 # using GNU Libtool, you may include this file under the same
21837 # distribution terms that you use for the rest of that program.
21838 #
21839 # GNU Libtool is distributed in the hope that it will be useful, but
21840 # WITHOUT ANY WARRANTY; without even the implied warranty of
21841 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21842 # GNU General Public License for more details.
21843 #
21844 # You should have received a copy of the GNU General Public License
21845 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21846
21847
21848 # The names of the tagged configurations supported by this script.
21849 available_tags=''
21850
21851 # Configured defaults for sys_lib_dlsearch_path munging.
21852 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21853
21854 # ### BEGIN LIBTOOL CONFIG
21855
21856 # Which release of libtool.m4 was used?
21857 macro_version=$macro_version
21858 macro_revision=$macro_revision
21859
21860 # Whether or not to build static libraries.
21861 build_old_libs=$enable_static
21862
21863 # Whether or not to build shared libraries.
21864 build_libtool_libs=$enable_shared
21865
21866 # What type of objects to build.
21867 pic_mode=$pic_mode
21868
21869 # Whether or not to optimize for fast installation.
21870 fast_install=$enable_fast_install
21871
21872 # Shared archive member basename,for filename based shared library versioning on AIX.
21873 shared_archive_member_spec=$shared_archive_member_spec
21874
21875 # Shell to use when invoking shell scripts.
21876 SHELL=$lt_SHELL
21877
21878 # An echo program that protects backslashes.
21879 ECHO=$lt_ECHO
21880
21881 # The PATH separator for the build system.
21882 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21883
21884 # The host system.
21885 host_alias=$host_alias
21886 host=$host
21887 host_os=$host_os
21888
21889 # The build system.
21890 build_alias=$build_alias
21891 build=$build
21892 build_os=$build_os
21893
21894 # A sed program that does not truncate output.
21895 SED=$lt_SED
21896
21897 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21898 Xsed="\$SED -e 1s/^X//"
21899
21900 # A grep program that handles long lines.
21901 GREP=$lt_GREP
21902
21903 # An ERE matcher.
21904 EGREP=$lt_EGREP
21905
21906 # A literal string matcher.
21907 FGREP=$lt_FGREP
21908
21909 # A BSD- or MS-compatible name lister.
21910 NM=$lt_NM
21911
21912 # Whether we need soft or hard links.
21913 LN_S=$lt_LN_S
21914
21915 # What is the maximum length of a command?
21916 max_cmd_len=$max_cmd_len
21917
21918 # Object file suffix (normally "o").
21919 objext=$ac_objext
21920
21921 # Executable file suffix (normally "").
21922 exeext=$exeext
21923
21924 # whether the shell understands "unset".
21925 lt_unset=$lt_unset
21926
21927 # turn spaces into newlines.
21928 SP2NL=$lt_lt_SP2NL
21929
21930 # turn newlines into spaces.
21931 NL2SP=$lt_lt_NL2SP
21932
21933 # convert \$build file names to \$host format.
21934 to_host_file_cmd=$lt_cv_to_host_file_cmd
21935
21936 # convert \$build files to toolchain format.
21937 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21938
21939 # A file(cmd) program that detects file types.
21940 FILECMD=$lt_FILECMD
21941
21942 # An object symbol dumper.
21943 OBJDUMP=$lt_OBJDUMP
21944
21945 # Method to check whether dependent libraries are shared objects.
21946 deplibs_check_method=$lt_deplibs_check_method
21947
21948 # Command to use when deplibs_check_method = "file_magic".
21949 file_magic_cmd=$lt_file_magic_cmd
21950
21951 # How to find potential files when deplibs_check_method = "file_magic".
21952 file_magic_glob=$lt_file_magic_glob
21953
21954 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21955 want_nocaseglob=$lt_want_nocaseglob
21956
21957 # DLL creation program.
21958 DLLTOOL=$lt_DLLTOOL
21959
21960 # Command to associate shared and link libraries.
21961 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21962
21963 # The archiver.
21964 AR=$lt_AR
21965
21966 # Flags to create an archive (by configure).
21967 lt_ar_flags=$lt_ar_flags
21968
21969 # Flags to create an archive.
21970 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21971
21972 # How to feed a file listing to the archiver.
21973 archiver_list_spec=$lt_archiver_list_spec
21974
21975 # A symbol stripping program.
21976 STRIP=$lt_STRIP
21977
21978 # Commands used to install an old-style archive.
21979 RANLIB=$lt_RANLIB
21980 old_postinstall_cmds=$lt_old_postinstall_cmds
21981 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21982
21983 # Whether to use a lock for old archive extraction.
21984 lock_old_archive_extraction=$lock_old_archive_extraction
21985
21986 # A C compiler.
21987 LTCC=$lt_CC
21988
21989 # LTCC compiler flags.
21990 LTCFLAGS=$lt_CFLAGS
21991
21992 # Take the output of nm and produce a listing of raw symbols and C names.
21993 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21994
21995 # Transform the output of nm in a proper C declaration.
21996 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21997
21998 # Transform the output of nm into a list of symbols to manually relocate.
21999 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22000
22001 # Transform the output of nm in a C name address pair.
22002 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22003
22004 # Transform the output of nm in a C name address pair when lib prefix is needed.
22005 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22006
22007 # The name lister interface.
22008 nm_interface=$lt_lt_cv_nm_interface
22009
22010 # Specify filename containing input files for \$NM.
22011 nm_file_list_spec=$lt_nm_file_list_spec
22012
22013 # The root where to search for dependent libraries,and where our libraries should be installed.
22014 lt_sysroot=$lt_sysroot
22015
22016 # Command to truncate a binary pipe.
22017 lt_truncate_bin=$lt_lt_cv_truncate_bin
22018
22019 # The name of the directory that contains temporary libtool files.
22020 objdir=$objdir
22021
22022 # Used to examine libraries when file_magic_cmd begins with "file".
22023 MAGIC_CMD=$MAGIC_CMD
22024
22025 # Must we lock files when doing compilation?
22026 need_locks=$lt_need_locks
22027
22028 # Manifest tool.
22029 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22030
22031 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22032 DSYMUTIL=$lt_DSYMUTIL
22033
22034 # Tool to change global to local symbols on Mac OS X.
22035 NMEDIT=$lt_NMEDIT
22036
22037 # Tool to manipulate fat objects and archives on Mac OS X.
22038 LIPO=$lt_LIPO
22039
22040 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22041 OTOOL=$lt_OTOOL
22042
22043 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22044 OTOOL64=$lt_OTOOL64
22045
22046 # Old archive suffix (normally "a").
22047 libext=$libext
22048
22049 # Shared library suffix (normally ".so").
22050 shrext_cmds=$lt_shrext_cmds
22051
22052 # The commands to extract the exported symbol list from a shared archive.
22053 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22054
22055 # Variables whose values should be saved in libtool wrapper scripts and
22056 # restored at link time.
22057 variables_saved_for_relink=$lt_variables_saved_for_relink
22058
22059 # Do we need the "lib" prefix for modules?
22060 need_lib_prefix=$need_lib_prefix
22061
22062 # Do we need a version for libraries?
22063 need_version=$need_version
22064
22065 # Library versioning type.
22066 version_type=$version_type
22067
22068 # Shared library runtime path variable.
22069 runpath_var=$runpath_var
22070
22071 # Shared library path variable.
22072 shlibpath_var=$shlibpath_var
22073
22074 # Is shlibpath searched before the hard-coded library search path?
22075 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22076
22077 # Format of library name prefix.
22078 libname_spec=$lt_libname_spec
22079
22080 # List of archive names. First name is the real one, the rest are links.
22081 # The last name is the one that the linker finds with -lNAME
22082 library_names_spec=$lt_library_names_spec
22083
22084 # The coded name of the library, if different from the real name.
22085 soname_spec=$lt_soname_spec
22086
22087 # Permission mode override for installation of shared libraries.
22088 install_override_mode=$lt_install_override_mode
22089
22090 # Command to use after installation of a shared archive.
22091 postinstall_cmds=$lt_postinstall_cmds
22092
22093 # Command to use after uninstallation of a shared archive.
22094 postuninstall_cmds=$lt_postuninstall_cmds
22095
22096 # Commands used to finish a libtool library installation in a directory.
22097 finish_cmds=$lt_finish_cmds
22098
22099 # As "finish_cmds", except a single script fragment to be evaled but
22100 # not shown.
22101 finish_eval=$lt_finish_eval
22102
22103 # Whether we should hardcode library paths into libraries.
22104 hardcode_into_libs=$hardcode_into_libs
22105
22106 # Compile-time system search path for libraries.
22107 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22108
22109 # Detected run-time system search path for libraries.
22110 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22111
22112 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22113 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22114
22115 # Whether dlopen is supported.
22116 dlopen_support=$enable_dlopen
22117
22118 # Whether dlopen of programs is supported.
22119 dlopen_self=$enable_dlopen_self
22120
22121 # Whether dlopen of statically linked programs is supported.
22122 dlopen_self_static=$enable_dlopen_self_static
22123
22124 # Commands to strip libraries.
22125 old_striplib=$lt_old_striplib
22126 striplib=$lt_striplib
22127
22128
22129 # The linker used to build libraries.
22130 LD=$lt_LD
22131
22132 # How to create reloadable object files.
22133 reload_flag=$lt_reload_flag
22134 reload_cmds=$lt_reload_cmds
22135
22136 # Commands used to build an old-style archive.
22137 old_archive_cmds=$lt_old_archive_cmds
22138
22139 # A language specific compiler.
22140 CC=$lt_compiler
22141
22142 # Is the compiler the GNU compiler?
22143 with_gcc=$GCC
22144
22145 # Compiler flag to turn off builtin functions.
22146 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22147
22148 # Additional compiler flags for building library objects.
22149 pic_flag=$lt_lt_prog_compiler_pic
22150
22151 # How to pass a linker flag through the compiler.
22152 wl=$lt_lt_prog_compiler_wl
22153
22154 # Compiler flag to prevent dynamic linking.
22155 link_static_flag=$lt_lt_prog_compiler_static
22156
22157 # Does compiler simultaneously support -c and -o options?
22158 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22159
22160 # Whether or not to add -lc for building shared libraries.
22161 build_libtool_need_lc=$archive_cmds_need_lc
22162
22163 # Whether or not to disallow shared libs when runtime libs are static.
22164 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22165
22166 # Compiler flag to allow reflexive dlopens.
22167 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22168
22169 # Compiler flag to generate shared objects directly from archives.
22170 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22171
22172 # Whether the compiler copes with passing no objects directly.
22173 compiler_needs_object=$lt_compiler_needs_object
22174
22175 # Create an old-style archive from a shared archive.
22176 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22177
22178 # Create a temporary old-style archive to link instead of a shared archive.
22179 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22180
22181 # Commands used to build a shared archive.
22182 archive_cmds=$lt_archive_cmds
22183 archive_expsym_cmds=$lt_archive_expsym_cmds
22184
22185 # Commands used to build a loadable module if different from building
22186 # a shared archive.
22187 module_cmds=$lt_module_cmds
22188 module_expsym_cmds=$lt_module_expsym_cmds
22189
22190 # Whether we are building with GNU ld or not.
22191 with_gnu_ld=$lt_with_gnu_ld
22192
22193 # Flag that allows shared libraries with undefined symbols to be built.
22194 allow_undefined_flag=$lt_allow_undefined_flag
22195
22196 # Flag that enforces no undefined symbols.
22197 no_undefined_flag=$lt_no_undefined_flag
22198
22199 # Flag to hardcode \$libdir into a binary during linking.
22200 # This must work even if \$libdir does not exist
22201 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22202
22203 # Whether we need a single "-rpath" flag with a separated argument.
22204 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22205
22206 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22207 # DIR into the resulting binary.
22208 hardcode_direct=$hardcode_direct
22209
22210 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22211 # DIR into the resulting binary and the resulting library dependency is
22212 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22213 # library is relocated.
22214 hardcode_direct_absolute=$hardcode_direct_absolute
22215
22216 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22217 # into the resulting binary.
22218 hardcode_minus_L=$hardcode_minus_L
22219
22220 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22221 # into the resulting binary.
22222 hardcode_shlibpath_var=$hardcode_shlibpath_var
22223
22224 # Set to "yes" if building a shared library automatically hardcodes DIR
22225 # into the library and all subsequent libraries and executables linked
22226 # against it.
22227 hardcode_automatic=$hardcode_automatic
22228
22229 # Set to yes if linker adds runtime paths of dependent libraries
22230 # to runtime path list.
22231 inherit_rpath=$inherit_rpath
22232
22233 # Whether libtool must link a program against all its dependency libraries.
22234 link_all_deplibs=$link_all_deplibs
22235
22236 # Set to "yes" if exported symbols are required.
22237 always_export_symbols=$always_export_symbols
22238
22239 # The commands to list exported symbols.
22240 export_symbols_cmds=$lt_export_symbols_cmds
22241
22242 # Symbols that should not be listed in the preloaded symbols.
22243 exclude_expsyms=$lt_exclude_expsyms
22244
22245 # Symbols that must always be exported.
22246 include_expsyms=$lt_include_expsyms
22247
22248 # Commands necessary for linking programs (against libraries) with templates.
22249 prelink_cmds=$lt_prelink_cmds
22250
22251 # Commands necessary for finishing linking programs.
22252 postlink_cmds=$lt_postlink_cmds
22253
22254 # Specify filename containing input files.
22255 file_list_spec=$lt_file_list_spec
22256
22257 # How to hardcode a shared library path into an executable.
22258 hardcode_action=$hardcode_action
22259
22260 # ### END LIBTOOL CONFIG
22261
22262 _LT_EOF
22263
22264 cat <<'_LT_EOF' >> "$cfgfile"
22265
22266 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22267
22268 # func_munge_path_list VARIABLE PATH
22269 # -----------------------------------
22270 # VARIABLE is name of variable containing _space_ separated list of
22271 # directories to be munged by the contents of PATH, which is string
22272 # having a format:
22273 # "DIR[:DIR]:"
22274 # string "DIR[ DIR]" will be prepended to VARIABLE
22275 # ":DIR[:DIR]"
22276 # string "DIR[ DIR]" will be appended to VARIABLE
22277 # "DIRP[:DIRP]::[DIRA:]DIRA"
22278 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22279 # "DIRA[ DIRA]" will be appended to VARIABLE
22280 # "DIR[:DIR]"
22281 # VARIABLE will be replaced by "DIR[ DIR]"
22282 func_munge_path_list ()
22283 {
22284 case x$2 in
22285 x)
22286 ;;
22287 *:)
22288 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22289 ;;
22290 x:*)
22291 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22292 ;;
22293 *::*)
22294 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22295 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22296 ;;
22297 *)
22298 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22299 ;;
22300 esac
22301 }
22302
22303
22304 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22305 func_cc_basename ()
22306 {
22307 for cc_temp in $*""; do
22308 case $cc_temp in
22309 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22310 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22311 \-*) ;;
22312 *) break;;
22313 esac
22314 done
22315 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22316 }
22317
22318
22319 # ### END FUNCTIONS SHARED WITH CONFIGURE
22320
22321 _LT_EOF
22322
22323 case $host_os in
22324 aix3*)
22325 cat <<\_LT_EOF >> "$cfgfile"
22326 # AIX sometimes has problems with the GCC collect2 program. For some
22327 # reason, if we set the COLLECT_NAMES environment variable, the problems
22328 # vanish in a puff of smoke.
22329 if test set != "${COLLECT_NAMES+set}"; then
22330 COLLECT_NAMES=
22331 export COLLECT_NAMES
22332 fi
22333 _LT_EOF
22334 ;;
22335 esac
22336
22337
22338
22339 ltmain=$ac_aux_dir/ltmain.sh
22340
22341
22342 # We use sed instead of cat because bash on DJGPP gets confused if
22343 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22344 # text mode, it properly converts lines to CR/LF. This bash problem
22345 # is reportedly fixed, but why not run on old versions too?
22346 $SED '$q' "$ltmain" >> "$cfgfile" \
22347 || (rm -f "$cfgfile"; exit 1)
22348
22349 mv -f "$cfgfile" "$ofile" ||
22350 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22351 chmod +x "$ofile"
22352
22353 ;;
22354
22355 esac
22356 done # for ac_tag
22357
22358
22359 as_fn_exit 0
22360 _ACEOF
22361 ac_clean_files=$ac_clean_files_save
22362
22363 test $ac_write_fail = 0 ||
22364 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22365
22366
22367 # configure is writing to config.log, and then calls config.status.
22368 # config.status does its own redirection, appending to config.log.
22369 # Unfortunately, on DOS this fails, as config.log is still kept open
22370 # by configure, so config.status won't be able to write to it; its
22371 # output is simply discarded. So we exec the FD to /dev/null,
22372 # effectively closing config.log, so it can be properly (re)opened and
22373 # appended to by config.status. When coming back to configure, we
22374 # need to make the FD available again.
22375 if test "$no_create" != yes; then
22376 ac_cs_success=:
22377 ac_config_status_args=
22378 test "$silent" = yes &&
22379 ac_config_status_args="$ac_config_status_args --quiet"
22380 exec 5>/dev/null
22381 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22382 exec 5>>config.log
22383 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22384 # would make configure fail if this is the last instruction.
22385 $ac_cs_success || as_fn_exit 1
22386 fi
22387 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22389 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22390 fi
22391
22392
22393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: **************************************** success" >&5
22394 printf "%s\n" "$as_me: **************************************** success" >&6;}
22395 # vim: ft=automake ts=4 expandtab
22396 # End of configure.ac
22397