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 kronosnet 1.33.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: [email protected] about your system, including
283 $0: any error possibly output before this message. Then
284 $0: install a modern shell, or manually run the script
285 $0: under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='kronosnet'
616 PACKAGE_TARNAME='kronosnet'
617 PACKAGE_VERSION='1.33'
618 PACKAGE_STRING='kronosnet 1.33'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 # Factoring default headers for most tests.
623 ac_includes_default="\
624 #include <stddef.h>
625 #ifdef HAVE_STDIO_H
626 # include <stdio.h>
627 #endif
628 #ifdef HAVE_STDLIB_H
629 # include <stdlib.h>
630 #endif
631 #ifdef HAVE_STRING_H
632 # include <string.h>
633 #endif
634 #ifdef HAVE_INTTYPES_H
635 # include <inttypes.h>
636 #endif
637 #ifdef HAVE_STDINT_H
638 # include <stdint.h>
639 #endif
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
642 #endif
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef HAVE_UNISTD_H
650 # include <unistd.h>
651 #endif"
652
653 ac_header_c_list=
654 ac_unique_file="libknet/handle.c"
655 ac_subst_vars='am__EXEEXT_FALSE
656 am__EXEEXT_TRUE
657 LTLIBOBJS
658 LIBOBJS
659 SOURCE_EPOCH
660 UTC_DATE_AT
661 AM_LDFLAGS
662 AM_CFLAGS
663 HAS_ANNOCHECK_FALSE
664 HAS_ANNOCHECK_TRUE
665 ANNOCHECK_EXEC
666 XOPEN_CPPFLAGS
667 TESTDIR
668 dlpi_LIBS
669 libnlroute_LIBS
670 libnlroute_CFLAGS
671 libnl_LIBS
672 libnl_CFLAGS
673 BUILD_DOXYXML_FALSE
674 BUILD_DOXYXML_TRUE
675 libxml_BUILD_LIBS
676 libxml_BUILD_CFLAGS
677 libqb_BUILD_PREFIX
678 libqb_BUILD_LIBS
679 libqb_BUILD_CFLAGS
680 LDFLAGS_FOR_BUILD
681 CPPFLAGS_FOR_BUILD
682 CFLAGS_FOR_BUILD
683 BUILD_OBJEXT
684 BUILD_EXEEXT
685 CPP_FOR_BUILD
686 ac_ct_CC_FOR_BUILD
687 CC_FOR_BUILD
688 libqb_PREFIX
689 DOXYGEN2MAN
690 DOXYGEN
691 libqb_LIBS
692 libqb_CFLAGS
693 BUILD_FOR_SOLARIS_FALSE
694 BUILD_FOR_SOLARIS_TRUE
695 socket_LIBS
696 dl_LIBS
697 rt_LIBS
698 m_LIBS
699 PTHREAD_CFLAGS
700 PTHREAD_LIBS
701 PTHREAD_CXX
702 PTHREAD_CC
703 ax_pthread_config
704 BUILD_LIBNOZZLE_FALSE
705 BUILD_LIBNOZZLE_TRUE
706 OVERRIDE_RPM_DEBUGINFO_FALSE
707 OVERRIDE_RPM_DEBUGINFO_TRUE
708 BUILD_RPM_DEBUGINFO_FALSE
709 BUILD_RPM_DEBUGINFO_TRUE
710 BUILD_RUNAUTOGEN_FALSE
711 BUILD_RUNAUTOGEN_TRUE
712 INSTALL_TESTS_FALSE
713 INSTALL_TESTS_TRUE
714 bzip2_LIBS
715 bzip2_CFLAGS
716 BUILD_COMPRESS_BZIP2_FALSE
717 BUILD_COMPRESS_BZIP2_TRUE
718 liblzma_LIBS
719 liblzma_CFLAGS
720 BUILD_COMPRESS_LZMA_FALSE
721 BUILD_COMPRESS_LZMA_TRUE
722 lzo2_LIBS
723 lzo2_CFLAGS
724 BUILD_COMPRESS_LZO2_FALSE
725 BUILD_COMPRESS_LZO2_TRUE
726 liblz4_LIBS
727 liblz4_CFLAGS
728 BUILD_COMPRESS_LZ4_FALSE
729 BUILD_COMPRESS_LZ4_TRUE
730 zlib_LIBS
731 zlib_CFLAGS
732 BUILD_COMPRESS_ZLIB_FALSE
733 BUILD_COMPRESS_ZLIB_TRUE
734 libzstd_LIBS
735 libzstd_CFLAGS
736 BUILD_COMPRESS_ZSTD_FALSE
737 BUILD_COMPRESS_ZSTD_TRUE
738 openssl_LIBS
739 openssl_CFLAGS
740 BUILD_CRYPTO_OPENSSL_FALSE
741 BUILD_CRYPTO_OPENSSL_TRUE
742 nss_LIBS
743 nss_CFLAGS
744 BUILD_CRYPTO_NSS_FALSE
745 BUILD_CRYPTO_NSS_TRUE
746 RUN_FUN_TESTS_FALSE
747 RUN_FUN_TESTS_TRUE
748 BUILD_SCTP_FALSE
749 BUILD_SCTP_TRUE
750 BUILD_MAN_FALSE
751 BUILD_MAN_TRUE
752 HAS_COVFORMATERRORS_FALSE
753 HAS_COVFORMATERRORS_TRUE
754 COVFORMATERRORS_EXEC
755 HAS_COVANALYZE_FALSE
756 HAS_COVANALYZE_TRUE
757 COVANALYZE_EXEC
758 HAS_COVBUILD_FALSE
759 HAS_COVBUILD_TRUE
760 COVBUILD_EXEC
761 HAS_VALGRIND_FALSE
762 HAS_VALGRIND_TRUE
763 VALGRIND_EXEC
764 PKG_CONFIG_LIBDIR
765 PKG_CONFIG_PATH
766 PKG_CONFIG
767 CPP
768 LT_SYS_LIBRARY_PATH
769 OTOOL64
770 OTOOL
771 LIPO
772 NMEDIT
773 DSYMUTIL
774 MANIFEST_TOOL
775 RANLIB
776 ac_ct_AR
777 AR
778 DLLTOOL
779 OBJDUMP
780 FILECMD
781 LN_S
782 NM
783 ac_ct_DUMPBIN
784 DUMPBIN
785 LD
786 FGREP
787 EGREP
788 GREP
789 SED
790 LIBTOOL
791 host_os
792 host_vendor
793 host_cpu
794 host
795 build_os
796 build_vendor
797 build_cpu
798 build
799 am__xargs_n
800 am__rm_f_notfound
801 AM_BACKSLASH
802 AM_DEFAULT_VERBOSITY
803 AM_DEFAULT_V
804 AM_V
805 CSCOPE
806 ETAGS
807 CTAGS
808 am__fastdepCC_FALSE
809 am__fastdepCC_TRUE
810 CCDEPMODE
811 am__nodep
812 AMDEPBACKSLASH
813 AMDEP_FALSE
814 AMDEP_TRUE
815 am__include
816 DEPDIR
817 am__untar
818 am__tar
819 AMTAR
820 am__leading_dot
821 SET_MAKE
822 AWK
823 mkdir_p
824 MKDIR_P
825 INSTALL_STRIP_PROGRAM
826 STRIP
827 install_sh
828 MAKEINFO
829 AUTOHEADER
830 AUTOMAKE
831 AUTOCONF
832 ACLOCAL
833 VERSION
834 PACKAGE
835 CYGPATH_W
836 am__isrc
837 INSTALL_DATA
838 INSTALL_SCRIPT
839 INSTALL_PROGRAM
840 OBJEXT
841 EXEEXT
842 ac_ct_CC
843 CPPFLAGS
844 LDFLAGS
845 CFLAGS
846 CC
847 target_alias
848 host_alias
849 build_alias
850 LIBS
851 ECHO_T
852 ECHO_N
853 ECHO_C
854 DEFS
855 mandir
856 localedir
857 libdir
858 psdir
859 pdfdir
860 dvidir
861 htmldir
862 infodir
863 docdir
864 oldincludedir
865 includedir
866 runstatedir
867 localstatedir
868 sharedstatedir
869 sysconfdir
870 datadir
871 datarootdir
872 libexecdir
873 sbindir
874 bindir
875 program_transform_name
876 prefix
877 exec_prefix
878 PACKAGE_URL
879 PACKAGE_BUGREPORT
880 PACKAGE_STRING
881 PACKAGE_VERSION
882 PACKAGE_TARNAME
883 PACKAGE_NAME
884 PATH_SEPARATOR
885 SHELL
886 am__quote'
887 ac_subst_files=''
888 ac_user_opts='
889 enable_option_checking
890 enable_dependency_tracking
891 enable_silent_rules
892 enable_shared
893 enable_static
894 enable_pic
895 with_pic
896 enable_fast_install
897 enable_aix_soname
898 with_aix_soname
899 with_gnu_ld
900 with_sysroot
901 enable_libtool_lock
902 enable_man
903 enable_libknet_sctp
904 enable_functional_tests
905 enable_crypto_all
906 enable_crypto_nss
907 enable_crypto_openssl
908 enable_compress_all
909 enable_compress_zstd
910 enable_compress_zlib
911 enable_compress_lz4
912 enable_compress_lzo2
913 enable_compress_lzma
914 enable_compress_bzip2
915 enable_install_tests
916 enable_runautogen
917 enable_rpm_debuginfo
918 enable_libnozzle
919 enable_debug
920 enable_hardening
921 with_testdir
922 '
923 ac_precious_vars='build_alias
924 host_alias
925 target_alias
926 CC
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
931 LT_SYS_LIBRARY_PATH
932 CPP
933 PKG_CONFIG
934 PKG_CONFIG_PATH
935 PKG_CONFIG_LIBDIR
936 nss_CFLAGS
937 nss_LIBS
938 openssl_CFLAGS
939 openssl_LIBS
940 libzstd_CFLAGS
941 libzstd_LIBS
942 zlib_CFLAGS
943 zlib_LIBS
944 liblz4_CFLAGS
945 liblz4_LIBS
946 lzo2_CFLAGS
947 lzo2_LIBS
948 liblzma_CFLAGS
949 liblzma_LIBS
950 bzip2_CFLAGS
951 bzip2_LIBS
952 libqb_CFLAGS
953 libqb_LIBS
954 DOXYGEN
955 DOXYGEN2MAN
956 libqb_PREFIX
957 libqb_BUILD_CFLAGS
958 libqb_BUILD_LIBS
959 libqb_BUILD_PREFIX
960 libxml_BUILD_CFLAGS
961 libxml_BUILD_LIBS
962 libnl_CFLAGS
963 libnl_LIBS
964 libnlroute_CFLAGS
965 libnlroute_LIBS
966 SOURCE_EPOCH'
967
968
969 # Initialize some variables set by options.
970 ac_init_help=
971 ac_init_version=false
972 ac_unrecognized_opts=
973 ac_unrecognized_sep=
974 # The variables have the same names as the options, with
975 # dashes changed to underlines.
976 cache_file=/dev/null
977 exec_prefix=NONE
978 no_create=
979 no_recursion=
980 prefix=NONE
981 program_prefix=NONE
982 program_suffix=NONE
983 program_transform_name=s,x,x,
984 silent=
985 site=
986 srcdir=
987 verbose=
988 x_includes=NONE
989 x_libraries=NONE
990
991 # Installation directory options.
992 # These are left unexpanded so users can "make install exec_prefix=/foo"
993 # and all the variables that are supposed to be based on exec_prefix
994 # by default will actually change.
995 # Use braces instead of parens because sh, perl, etc. also accept them.
996 # (The list follows the same order as the GNU Coding Standards.)
997 bindir='${exec_prefix}/bin'
998 sbindir='${exec_prefix}/sbin'
999 libexecdir='${exec_prefix}/libexec'
1000 datarootdir='${prefix}/share'
1001 datadir='${datarootdir}'
1002 sysconfdir='${prefix}/etc'
1003 sharedstatedir='${prefix}/com'
1004 localstatedir='${prefix}/var'
1005 runstatedir='${localstatedir}/run'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009 infodir='${datarootdir}/info'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1017
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1021 do
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\$ac_option
1025 ac_prev=
1026 continue
1027 fi
1028
1029 case $ac_option in
1030 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 *=) ac_optarg= ;;
1032 *) ac_optarg=yes ;;
1033 esac
1034
1035 case $ac_dashdash$ac_option in
1036 --)
1037 ac_dashdash=yes ;;
1038
1039 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1040 ac_prev=bindir ;;
1041 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042 bindir=$ac_optarg ;;
1043
1044 -build | --build | --buil | --bui | --bu)
1045 ac_prev=build_alias ;;
1046 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047 build_alias=$ac_optarg ;;
1048
1049 -cache-file | --cache-file | --cache-fil | --cache-fi \
1050 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051 ac_prev=cache_file ;;
1052 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054 cache_file=$ac_optarg ;;
1055
1056 --config-cache | -C)
1057 cache_file=config.cache ;;
1058
1059 -datadir | --datadir | --datadi | --datad)
1060 ac_prev=datadir ;;
1061 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062 datadir=$ac_optarg ;;
1063
1064 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065 | --dataroo | --dataro | --datar)
1066 ac_prev=datarootdir ;;
1067 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069 datarootdir=$ac_optarg ;;
1070
1071 -disable-* | --disable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid feature name: '$ac_useropt'"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval enable_$ac_useropt=no ;;
1086
1087 -docdir | --docdir | --docdi | --doc | --do)
1088 ac_prev=docdir ;;
1089 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1090 docdir=$ac_optarg ;;
1091
1092 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1093 ac_prev=dvidir ;;
1094 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1095 dvidir=$ac_optarg ;;
1096
1097 -enable-* | --enable-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid feature name: '$ac_useropt'"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106 "enable_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval enable_$ac_useropt=\$ac_optarg ;;
1112
1113 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1114 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1115 | --exec | --exe | --ex)
1116 ac_prev=exec_prefix ;;
1117 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1118 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1119 | --exec=* | --exe=* | --ex=*)
1120 exec_prefix=$ac_optarg ;;
1121
1122 -gas | --gas | --ga | --g)
1123 # Obsolete; use --with-gas.
1124 with_gas=yes ;;
1125
1126 -help | --help | --hel | --he | -h)
1127 ac_init_help=long ;;
1128 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1129 ac_init_help=recursive ;;
1130 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1131 ac_init_help=short ;;
1132
1133 -host | --host | --hos | --ho)
1134 ac_prev=host_alias ;;
1135 -host=* | --host=* | --hos=* | --ho=*)
1136 host_alias=$ac_optarg ;;
1137
1138 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1139 ac_prev=htmldir ;;
1140 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1141 | --ht=*)
1142 htmldir=$ac_optarg ;;
1143
1144 -includedir | --includedir | --includedi | --included | --include \
1145 | --includ | --inclu | --incl | --inc)
1146 ac_prev=includedir ;;
1147 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1148 | --includ=* | --inclu=* | --incl=* | --inc=*)
1149 includedir=$ac_optarg ;;
1150
1151 -infodir | --infodir | --infodi | --infod | --info | --inf)
1152 ac_prev=infodir ;;
1153 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1154 infodir=$ac_optarg ;;
1155
1156 -libdir | --libdir | --libdi | --libd)
1157 ac_prev=libdir ;;
1158 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1159 libdir=$ac_optarg ;;
1160
1161 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1162 | --libexe | --libex | --libe)
1163 ac_prev=libexecdir ;;
1164 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1165 | --libexe=* | --libex=* | --libe=*)
1166 libexecdir=$ac_optarg ;;
1167
1168 -localedir | --localedir | --localedi | --localed | --locale)
1169 ac_prev=localedir ;;
1170 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1171 localedir=$ac_optarg ;;
1172
1173 -localstatedir | --localstatedir | --localstatedi | --localstated \
1174 | --localstate | --localstat | --localsta | --localst | --locals)
1175 ac_prev=localstatedir ;;
1176 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1177 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1178 localstatedir=$ac_optarg ;;
1179
1180 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1181 ac_prev=mandir ;;
1182 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1183 mandir=$ac_optarg ;;
1184
1185 -nfp | --nfp | --nf)
1186 # Obsolete; use --without-fp.
1187 with_fp=no ;;
1188
1189 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1190 | --no-cr | --no-c | -n)
1191 no_create=yes ;;
1192
1193 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1194 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1195 no_recursion=yes ;;
1196
1197 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1198 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1199 | --oldin | --oldi | --old | --ol | --o)
1200 ac_prev=oldincludedir ;;
1201 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1202 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1203 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1204 oldincludedir=$ac_optarg ;;
1205
1206 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1207 ac_prev=prefix ;;
1208 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1209 prefix=$ac_optarg ;;
1210
1211 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1212 | --program-pre | --program-pr | --program-p)
1213 ac_prev=program_prefix ;;
1214 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1215 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1216 program_prefix=$ac_optarg ;;
1217
1218 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1219 | --program-suf | --program-su | --program-s)
1220 ac_prev=program_suffix ;;
1221 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1222 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1223 program_suffix=$ac_optarg ;;
1224
1225 -program-transform-name | --program-transform-name \
1226 | --program-transform-nam | --program-transform-na \
1227 | --program-transform-n | --program-transform- \
1228 | --program-transform | --program-transfor \
1229 | --program-transfo | --program-transf \
1230 | --program-trans | --program-tran \
1231 | --progr-tra | --program-tr | --program-t)
1232 ac_prev=program_transform_name ;;
1233 -program-transform-name=* | --program-transform-name=* \
1234 | --program-transform-nam=* | --program-transform-na=* \
1235 | --program-transform-n=* | --program-transform-=* \
1236 | --program-transform=* | --program-transfor=* \
1237 | --program-transfo=* | --program-transf=* \
1238 | --program-trans=* | --program-tran=* \
1239 | --progr-tra=* | --program-tr=* | --program-t=*)
1240 program_transform_name=$ac_optarg ;;
1241
1242 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1243 ac_prev=pdfdir ;;
1244 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1245 pdfdir=$ac_optarg ;;
1246
1247 -psdir | --psdir | --psdi | --psd | --ps)
1248 ac_prev=psdir ;;
1249 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1250 psdir=$ac_optarg ;;
1251
1252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1253 | -silent | --silent | --silen | --sile | --sil)
1254 silent=yes ;;
1255
1256 -runstatedir | --runstatedir | --runstatedi | --runstated \
1257 | --runstate | --runstat | --runsta | --runst | --runs \
1258 | --run | --ru | --r)
1259 ac_prev=runstatedir ;;
1260 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1261 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1262 | --run=* | --ru=* | --r=*)
1263 runstatedir=$ac_optarg ;;
1264
1265 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1266 ac_prev=sbindir ;;
1267 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1268 | --sbi=* | --sb=*)
1269 sbindir=$ac_optarg ;;
1270
1271 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1272 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1273 | --sharedst | --shareds | --shared | --share | --shar \
1274 | --sha | --sh)
1275 ac_prev=sharedstatedir ;;
1276 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1277 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1278 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1279 | --sha=* | --sh=*)
1280 sharedstatedir=$ac_optarg ;;
1281
1282 -site | --site | --sit)
1283 ac_prev=site ;;
1284 -site=* | --site=* | --sit=*)
1285 site=$ac_optarg ;;
1286
1287 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1288 ac_prev=srcdir ;;
1289 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1290 srcdir=$ac_optarg ;;
1291
1292 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1293 | --syscon | --sysco | --sysc | --sys | --sy)
1294 ac_prev=sysconfdir ;;
1295 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1296 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1297 sysconfdir=$ac_optarg ;;
1298
1299 -target | --target | --targe | --targ | --tar | --ta | --t)
1300 ac_prev=target_alias ;;
1301 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1302 target_alias=$ac_optarg ;;
1303
1304 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1305 verbose=yes ;;
1306
1307 -version | --version | --versio | --versi | --vers | -V)
1308 ac_init_version=: ;;
1309
1310 -with-* | --with-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error $? "invalid package name: '$ac_useropt'"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1318 *"
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=\$ac_optarg ;;
1325
1326 -without-* | --without-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330 as_fn_error $? "invalid package name: '$ac_useropt'"
1331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1334 *"
1335 "with_$ac_useropt"
1336 "*) ;;
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1339 esac
1340 eval with_$ac_useropt=no ;;
1341
1342 --x)
1343 # Obsolete; use --with-x.
1344 with_x=yes ;;
1345
1346 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1347 | --x-incl | --x-inc | --x-in | --x-i)
1348 ac_prev=x_includes ;;
1349 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1350 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1351 x_includes=$ac_optarg ;;
1352
1353 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1354 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1355 ac_prev=x_libraries ;;
1356 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1357 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358 x_libraries=$ac_optarg ;;
1359
1360 -*) as_fn_error $? "unrecognized option: '$ac_option'
1361 Try '$0 --help' for more information"
1362 ;;
1363
1364 *=*)
1365 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1366 # Reject names that are not valid shell variable names.
1367 case $ac_envvar in #(
1368 '' | [0-9]* | *[!_$as_cr_alnum]* )
1369 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1370 esac
1371 eval $ac_envvar=\$ac_optarg
1372 export $ac_envvar ;;
1373
1374 *)
1375 # FIXME: should be removed in autoconf 3.0.
1376 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1377 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1378 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1379 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1380 ;;
1381
1382 esac
1383 done
1384
1385 if test -n "$ac_prev"; then
1386 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1387 as_fn_error $? "missing argument to $ac_option"
1388 fi
1389
1390 if test -n "$ac_unrecognized_opts"; then
1391 case $enable_option_checking in
1392 no) ;;
1393 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1394 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1395 esac
1396 fi
1397
1398 # Check all directory arguments for consistency.
1399 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1400 datadir sysconfdir sharedstatedir localstatedir includedir \
1401 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1402 libdir localedir mandir runstatedir
1403 do
1404 eval ac_val=\$$ac_var
1405 # Remove trailing slashes.
1406 case $ac_val in
1407 */ )
1408 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1409 eval $ac_var=\$ac_val;;
1410 esac
1411 # Be sure to have absolute directory names.
1412 case $ac_val in
1413 [\\/$]* | ?:[\\/]* ) continue;;
1414 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1415 esac
1416 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1417 done
1418
1419 # There might be people who depend on the old broken behavior: '$host'
1420 # used to hold the argument of --host etc.
1421 # FIXME: To remove some day.
1422 build=$build_alias
1423 host=$host_alias
1424 target=$target_alias
1425
1426 # FIXME: To remove some day.
1427 if test "x$host_alias" != x; then
1428 if test "x$build_alias" = x; then
1429 cross_compiling=maybe
1430 elif test "x$build_alias" != "x$host_alias"; then
1431 cross_compiling=yes
1432 fi
1433 fi
1434
1435 ac_tool_prefix=
1436 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1437
1438 test "$silent" = yes && exec 6>/dev/null
1439
1440
1441 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1442 ac_ls_di=`ls -di .` &&
1443 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1444 as_fn_error $? "working directory cannot be determined"
1445 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1446 as_fn_error $? "pwd does not report name of working directory"
1447
1448
1449 # Find the source files, if location was not specified.
1450 if test -z "$srcdir"; then
1451 ac_srcdir_defaulted=yes
1452 # Try the directory containing this script, then the parent directory.
1453 ac_confdir=`$as_dirname -- "$as_myself" ||
1454 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1455 X"$as_myself" : 'X\(//\)[^/]' \| \
1456 X"$as_myself" : 'X\(//\)$' \| \
1457 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1458 printf "%s\n" X"$as_myself" |
1459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1460 s//\1/
1461 q
1462 }
1463 /^X\(\/\/\)[^/].*/{
1464 s//\1/
1465 q
1466 }
1467 /^X\(\/\/\)$/{
1468 s//\1/
1469 q
1470 }
1471 /^X\(\/\).*/{
1472 s//\1/
1473 q
1474 }
1475 s/.*/./; q'`
1476 srcdir=$ac_confdir
1477 if test ! -r "$srcdir/$ac_unique_file"; then
1478 srcdir=..
1479 fi
1480 else
1481 ac_srcdir_defaulted=no
1482 fi
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1484 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1485 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1486 fi
1487 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1488 ac_abs_confdir=`(
1489 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1490 pwd)`
1491 # When building in place, set srcdir=.
1492 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493 srcdir=.
1494 fi
1495 # Remove unnecessary trailing slashes from srcdir.
1496 # Double slashes in file names in object file debugging info
1497 # mess up M-x gdb in Emacs.
1498 case $srcdir in
1499 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 esac
1501 for ac_var in $ac_precious_vars; do
1502 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_env_${ac_var}_value=\$${ac_var}
1504 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1505 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506 done
1507
1508 #
1509 # Report the --help message.
1510 #
1511 if test "$ac_init_help" = "long"; then
1512 # Omit some internal or obsolete options to make the list less imposing.
1513 # This message is too long to be a string in the A/UX 3.1 sh.
1514 cat <<_ACEOF
1515 'configure' configures kronosnet 1.33 to adapt to many kinds of systems.
1516
1517 Usage: $0 [OPTION]... [VAR=VALUE]...
1518
1519 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520 VAR=VALUE. See below for descriptions of some of the useful variables.
1521
1522 Defaults for the options are specified in brackets.
1523
1524 Configuration:
1525 -h, --help display this help and exit
1526 --help=short display options specific to this package
1527 --help=recursive display the short help of all the included packages
1528 -V, --version display version information and exit
1529 -q, --quiet, --silent do not print 'checking ...' messages
1530 --cache-file=FILE cache test results in FILE [disabled]
1531 -C, --config-cache alias for '--cache-file=config.cache'
1532 -n, --no-create do not create output files
1533 --srcdir=DIR find the sources in DIR [configure dir or '..']
1534
1535 Installation directories:
1536 --prefix=PREFIX install architecture-independent files in PREFIX
1537 [$ac_default_prefix]
1538 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1539 [PREFIX]
1540
1541 By default, 'make install' will install all the files in
1542 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1543 an installation prefix other than '$ac_default_prefix' using '--prefix',
1544 for instance '--prefix=\$HOME'.
1545
1546 For better control, use the options below.
1547
1548 Fine tuning of the installation directories:
1549 --bindir=DIR user executables [EPREFIX/bin]
1550 --sbindir=DIR system admin executables [EPREFIX/sbin]
1551 --libexecdir=DIR program executables [EPREFIX/libexec]
1552 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1553 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1554 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1555 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1556 --libdir=DIR object code libraries [EPREFIX/lib]
1557 --includedir=DIR C header files [PREFIX/include]
1558 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1559 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1560 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1561 --infodir=DIR info documentation [DATAROOTDIR/info]
1562 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1563 --mandir=DIR man documentation [DATAROOTDIR/man]
1564 --docdir=DIR documentation root [DATAROOTDIR/doc/kronosnet]
1565 --htmldir=DIR html documentation [DOCDIR]
1566 --dvidir=DIR dvi documentation [DOCDIR]
1567 --pdfdir=DIR pdf documentation [DOCDIR]
1568 --psdir=DIR ps documentation [DOCDIR]
1569 _ACEOF
1570
1571 cat <<\_ACEOF
1572
1573 Program names:
1574 --program-prefix=PREFIX prepend PREFIX to installed program names
1575 --program-suffix=SUFFIX append SUFFIX to installed program names
1576 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1577
1578 System types:
1579 --build=BUILD configure for building on BUILD [guessed]
1580 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1581 _ACEOF
1582 fi
1583
1584 if test -n "$ac_init_help"; then
1585 case $ac_init_help in
1586 short | recursive ) echo "Configuration of kronosnet 1.33:";;
1587 esac
1588 cat <<\_ACEOF
1589
1590 Optional Features:
1591 --disable-option-checking ignore unrecognized --enable/--with options
1592 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1593 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1594 --enable-dependency-tracking
1595 do not reject slow dependency extractors
1596 --disable-dependency-tracking
1597 speeds up one-time build
1598 --enable-silent-rules less verbose build output (undo: "make V=1")
1599 --disable-silent-rules verbose build output (undo: "make V=0")
1600 --enable-shared[=PKGS] build shared libraries [default=yes]
1601 --enable-static[=PKGS] build static libraries [default=yes]
1602 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1603 both]
1604 --enable-fast-install[=PKGS]
1605 optimize for fast installation [default=yes]
1606 --enable-aix-soname=aix|svr4|both
1607 shared library versioning (aka "SONAME") variant to
1608 provide on AIX, [default=aix].
1609 --disable-libtool-lock avoid locking (might break parallel builds)
1610 --disable-man disable man page creation
1611 --enable-libknet-sctp enable libknet SCTP support
1612 --disable-functional-tests
1613 disable execution of functional tests, useful for
1614 old and slow arches
1615 --disable-crypto-all disable libknet all crypto modules support
1616 --disable-crypto-nss disable libknet nss support
1617 --disable-crypto-openssl
1618 disable libknet openssl support
1619 --disable-compress-all disable libknet all compress modules support
1620 --disable-compress-zstd disable libknet zstd support
1621 --disable-compress-zlib disable libknet zlib support
1622 --disable-compress-lz4 disable libknet lz4 support
1623 --disable-compress-lzo2 disable libknet lzo2 support
1624 --disable-compress-lzma disable libknet lzma support
1625 --disable-compress-bzip2
1626 disable libknet bzip2 support
1627 --enable-install-tests install tests
1628 --enable-runautogen run autogen.sh
1629 --enable-rpm-debuginfo build debuginfo packages
1630 --enable-libnozzle libnozzle support
1631 --enable-debug enable debug build
1632 --disable-hardening disable hardening build flags
1633
1634 Optional Packages:
1635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1637 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1638 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1639 compiler's sysroot if not specified).
1640 --with-testdir=DIR path to /usr/lib../kronosnet/tests/ dir where to
1641 install the test suite
1642
1643 Some influential environment variables:
1644 CC C compiler command
1645 CFLAGS C compiler flags
1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1647 nonstandard directory <lib dir>
1648 LIBS libraries to pass to the linker, e.g. -l<library>
1649 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1650 you have headers in a nonstandard directory <include dir>
1651 LT_SYS_LIBRARY_PATH
1652 User-defined run-time library search path.
1653 CPP C preprocessor
1654 PKG_CONFIG path to pkg-config utility
1655 PKG_CONFIG_PATH
1656 directories to add to pkg-config's search path
1657 PKG_CONFIG_LIBDIR
1658 path overriding pkg-config's built-in search path
1659 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1660 nss_LIBS linker flags for nss, overriding pkg-config
1661 openssl_CFLAGS
1662 C compiler flags for openssl, overriding pkg-config
1663 openssl_LIBS
1664 linker flags for openssl, overriding pkg-config
1665 libzstd_CFLAGS
1666 C compiler flags for libzstd, overriding pkg-config
1667 libzstd_LIBS
1668 linker flags for libzstd, overriding pkg-config
1669 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1670 zlib_LIBS linker flags for zlib, overriding pkg-config
1671 liblz4_CFLAGS
1672 C compiler flags for liblz4, overriding pkg-config
1673 liblz4_LIBS linker flags for liblz4, overriding pkg-config
1674 lzo2_CFLAGS C compiler flags for lzo2, overriding pkg-config
1675 lzo2_LIBS linker flags for lzo2, overriding pkg-config
1676 liblzma_CFLAGS
1677 C compiler flags for liblzma, overriding pkg-config
1678 liblzma_LIBS
1679 linker flags for liblzma, overriding pkg-config
1680 bzip2_CFLAGS
1681 C compiler flags for bzip2, overriding pkg-config
1682 bzip2_LIBS linker flags for bzip2, overriding pkg-config
1683 libqb_CFLAGS
1684 C compiler flags for libqb, overriding pkg-config
1685 libqb_LIBS linker flags for libqb, overriding pkg-config
1686 DOXYGEN override doxygen executable
1687 DOXYGEN2MAN override doxygen2man executable
1688 libqb_PREFIX
1689 value of prefix for libqb, overriding pkg-config
1690 libqb_BUILD_CFLAGS
1691 C compiler flags for libqb_BUILD, overriding pkg-config
1692 libqb_BUILD_LIBS
1693 linker flags for libqb_BUILD, overriding pkg-config
1694 libqb_BUILD_PREFIX
1695 value of prefix for libqb, overriding pkg-config
1696 libxml_BUILD_CFLAGS
1697 C compiler flags for libxml_BUILD, overriding pkg-config
1698 libxml_BUILD_LIBS
1699 linker flags for libxml_BUILD, overriding pkg-config
1700 libnl_CFLAGS
1701 C compiler flags for libnl, overriding pkg-config
1702 libnl_LIBS linker flags for libnl, overriding pkg-config
1703 libnlroute_CFLAGS
1704 C compiler flags for libnlroute, overriding pkg-config
1705 libnlroute_LIBS
1706 linker flags for libnlroute, overriding pkg-config
1707 SOURCE_EPOCH
1708 last modification date of the source
1709
1710 Use these variables to override the choices made by 'configure' or to help
1711 it to find libraries and programs with nonstandard names/locations.
1712
1713 Report bugs to <[email protected]>.
1714 _ACEOF
1715 ac_status=$?
1716 fi
1717
1718 if test "$ac_init_help" = "recursive"; then
1719 # If there are subdirs, report their specific --help.
1720 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1721 test -d "$ac_dir" ||
1722 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1723 continue
1724 ac_builddir=.
1725
1726 case "$ac_dir" in
1727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728 *)
1729 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1730 # A ".." for each directory in $ac_dir_suffix.
1731 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1732 case $ac_top_builddir_sub in
1733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1735 esac ;;
1736 esac
1737 ac_abs_top_builddir=$ac_pwd
1738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1739 # for backward compatibility:
1740 ac_top_builddir=$ac_top_build_prefix
1741
1742 case $srcdir in
1743 .) # We are building in place.
1744 ac_srcdir=.
1745 ac_top_srcdir=$ac_top_builddir_sub
1746 ac_abs_top_srcdir=$ac_pwd ;;
1747 [\\/]* | ?:[\\/]* ) # Absolute name.
1748 ac_srcdir=$srcdir$ac_dir_suffix;
1749 ac_top_srcdir=$srcdir
1750 ac_abs_top_srcdir=$srcdir ;;
1751 *) # Relative name.
1752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753 ac_top_srcdir=$ac_top_build_prefix$srcdir
1754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1755 esac
1756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1757
1758 cd "$ac_dir" || { ac_status=$?; continue; }
1759 # Check for configure.gnu first; this name is used for a wrapper for
1760 # Metaconfig's "Configure" on case-insensitive file systems.
1761 if test -f "$ac_srcdir/configure.gnu"; then
1762 echo &&
1763 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764 elif test -f "$ac_srcdir/configure"; then
1765 echo &&
1766 $SHELL "$ac_srcdir/configure" --help=recursive
1767 else
1768 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769 fi || ac_status=$?
1770 cd "$ac_pwd" || { ac_status=$?; break; }
1771 done
1772 fi
1773
1774 test -n "$ac_init_help" && exit $ac_status
1775 if $ac_init_version; then
1776 cat <<\_ACEOF
1777 kronosnet configure 1.33
1778 generated by GNU Autoconf 2.72
1779
1780 Copyright (C) 2023 Free Software Foundation, Inc.
1781 This configure script is free software; the Free Software Foundation
1782 gives unlimited permission to copy, distribute and modify it.
1783 _ACEOF
1784 exit
1785 fi
1786
1787 ## ------------------------ ##
1788 ## Autoconf initialization. ##
1789 ## ------------------------ ##
1790
1791 # ac_fn_c_try_compile LINENO
1792 # --------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_compile ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext conftest.beam
1798 if { { ac_try="$ac_compile"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 printf "%s\n" "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext
1817 then :
1818 ac_retval=0
1819 else case e in #(
1820 e) printf "%s\n" "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=1 ;;
1824 esac
1825 fi
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829 } # ac_fn_c_try_compile
1830
1831 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1832 # -------------------------------------------------------
1833 # Tests whether HEADER exists and can be compiled using the include files in
1834 # INCLUDES, setting the cache variable VAR accordingly.
1835 ac_fn_c_check_header_compile ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 printf %s "checking for $2... " >&6; }
1840 if eval test \${$3+y}
1841 then :
1842 printf %s "(cached) " >&6
1843 else case e in #(
1844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 $4
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"
1850 then :
1851 eval "$3=yes"
1852 else case e in #(
1853 e) eval "$3=no" ;;
1854 esac
1855 fi
1856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1857 esac
1858 fi
1859 eval ac_res=\$$3
1860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 printf "%s\n" "$ac_res" >&6; }
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863
1864 } # ac_fn_c_check_header_compile
1865
1866 # ac_fn_c_try_link LINENO
1867 # -----------------------
1868 # Try to link conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_c_try_link ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1873 if { { ac_try="$ac_link"
1874 case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 printf "%s\n" "$ac_try_echo"; } >&5
1880 (eval "$ac_link") 2>conftest.err
1881 ac_status=$?
1882 if test -s conftest.err; then
1883 grep -v '^ *+' conftest.err >conftest.er1
1884 cat conftest.er1 >&5
1885 mv -f conftest.er1 conftest.err
1886 fi
1887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && {
1889 test -z "$ac_c_werror_flag" ||
1890 test ! -s conftest.err
1891 } && test -s conftest$ac_exeext && {
1892 test "$cross_compiling" = yes ||
1893 test -x conftest$ac_exeext
1894 }
1895 then :
1896 ac_retval=0
1897 else case e in #(
1898 e) printf "%s\n" "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=1 ;;
1902 esac
1903 fi
1904 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1905 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1906 # interfere with the next link command; also delete a directory that is
1907 # left behind by Apple's compiler. We do this before executing the actions.
1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 as_fn_set_status $ac_retval
1911
1912 } # ac_fn_c_try_link
1913
1914 # ac_fn_c_check_func LINENO FUNC VAR
1915 # ----------------------------------
1916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1917 ac_fn_c_check_func ()
1918 {
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 printf %s "checking for $2... " >&6; }
1922 if eval test \${$3+y}
1923 then :
1924 printf %s "(cached) " >&6
1925 else case e in #(
1926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1930 #define $2 innocuous_$2
1931
1932 /* System header to define __stub macros and hopefully few prototypes,
1933 which can conflict with char $2 (void); below. */
1934
1935 #include <limits.h>
1936 #undef $2
1937
1938 /* Override any GCC internal prototype to avoid an error.
1939 Use char because int might match the return type of a GCC
1940 builtin and then its argument prototype would still apply. */
1941 #ifdef __cplusplus
1942 extern "C"
1943 #endif
1944 char $2 (void);
1945 /* The GNU C library defines this for functions which it implements
1946 to always fail with ENOSYS. Some functions are actually named
1947 something starting with __ and the normal name is an alias. */
1948 #if defined __stub_$2 || defined __stub___$2
1949 choke me
1950 #endif
1951
1952 int
1953 main (void)
1954 {
1955 return $2 ();
1956 ;
1957 return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_link "$LINENO"
1961 then :
1962 eval "$3=yes"
1963 else case e in #(
1964 e) eval "$3=no" ;;
1965 esac
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1968 conftest$ac_exeext conftest.$ac_ext ;;
1969 esac
1970 fi
1971 eval ac_res=\$$3
1972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 printf "%s\n" "$ac_res" >&6; }
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976 } # ac_fn_c_check_func
1977
1978 # ac_fn_c_try_cpp LINENO
1979 # ----------------------
1980 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1981 ac_fn_c_try_cpp ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if { { ac_try="$ac_cpp conftest.$ac_ext"
1985 case "(($ac_try" in
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 printf "%s\n" "$ac_try_echo"; } >&5
1991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1992 ac_status=$?
1993 if test -s conftest.err; then
1994 grep -v '^ *+' conftest.err >conftest.er1
1995 cat conftest.er1 >&5
1996 mv -f conftest.er1 conftest.err
1997 fi
1998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } > conftest.i && {
2000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2001 test ! -s conftest.err
2002 }
2003 then :
2004 ac_retval=0
2005 else case e in #(
2006 e) printf "%s\n" "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009 ac_retval=1 ;;
2010 esac
2011 fi
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 as_fn_set_status $ac_retval
2014
2015 } # ac_fn_c_try_cpp
2016
2017 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2018 # ------------------------------------------------------------------
2019 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2020 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2021 ac_fn_check_decl ()
2022 {
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 as_decl_name=`echo $2|sed 's/ *(.*//'`
2025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2026 printf %s "checking whether $as_decl_name is declared... " >&6; }
2027 if eval test \${$3+y}
2028 then :
2029 printf %s "(cached) " >&6
2030 else case e in #(
2031 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2032 eval ac_save_FLAGS=\$$6
2033 as_fn_append $6 " $5"
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 $4
2037 int
2038 main (void)
2039 {
2040 #ifndef $as_decl_name
2041 #ifdef __cplusplus
2042 (void) $as_decl_use;
2043 #else
2044 (void) $as_decl_name;
2045 #endif
2046 #endif
2047
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"
2053 then :
2054 eval "$3=yes"
2055 else case e in #(
2056 e) eval "$3=no" ;;
2057 esac
2058 fi
2059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2060 eval $6=\$ac_save_FLAGS
2061 ;;
2062 esac
2063 fi
2064 eval ac_res=\$$3
2065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 printf "%s\n" "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068
2069 } # ac_fn_check_decl
2070
2071 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2072 # -------------------------------------------
2073 # Tests whether TYPE exists after having included INCLUDES, setting cache
2074 # variable VAR accordingly.
2075 ac_fn_c_check_type ()
2076 {
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 printf %s "checking for $2... " >&6; }
2080 if eval test \${$3+y}
2081 then :
2082 printf %s "(cached) " >&6
2083 else case e in #(
2084 e) eval "$3=no"
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2087 $4
2088 int
2089 main (void)
2090 {
2091 if (sizeof ($2))
2092 return 0;
2093 ;
2094 return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"
2098 then :
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 $4
2102 int
2103 main (void)
2104 {
2105 if (sizeof (($2)))
2106 return 0;
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"
2112 then :
2113
2114 else case e in #(
2115 e) eval "$3=yes" ;;
2116 esac
2117 fi
2118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2121 esac
2122 fi
2123 eval ac_res=\$$3
2124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 printf "%s\n" "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127
2128 } # ac_fn_c_check_type
2129
2130 # ac_fn_c_find_uintX_t LINENO BITS VAR
2131 # ------------------------------------
2132 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2133 # accordingly.
2134 ac_fn_c_find_uintX_t ()
2135 {
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2138 printf %s "checking for uint$2_t... " >&6; }
2139 if eval test \${$3+y}
2140 then :
2141 printf %s "(cached) " >&6
2142 else case e in #(
2143 e) eval "$3=no"
2144 # Order is important - never check a type that is potentially smaller
2145 # than half of the expected target width.
2146 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2147 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 $ac_includes_default
2151 int
2152 main (void)
2153 {
2154 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2155 test_array [0] = 0;
2156 return test_array [0];
2157
2158 ;
2159 return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"
2163 then :
2164 case $ac_type in #(
2165 uint$2_t) :
2166 eval "$3=yes" ;; #(
2167 *) :
2168 eval "$3=\$ac_type" ;;
2169 esac
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2172 if eval test \"x\$"$3"\" = x"no"
2173 then :
2174
2175 else case e in #(
2176 e) break ;;
2177 esac
2178 fi
2179 done ;;
2180 esac
2181 fi
2182 eval ac_res=\$$3
2183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 printf "%s\n" "$ac_res" >&6; }
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186
2187 } # ac_fn_c_find_uintX_t
2188
2189 # ac_fn_c_find_intX_t LINENO BITS VAR
2190 # -----------------------------------
2191 # Finds a signed integer type with width BITS, setting cache variable VAR
2192 # accordingly.
2193 ac_fn_c_find_intX_t ()
2194 {
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2197 printf %s "checking for int$2_t... " >&6; }
2198 if eval test \${$3+y}
2199 then :
2200 printf %s "(cached) " >&6
2201 else case e in #(
2202 e) eval "$3=no"
2203 # Order is important - never check a type that is potentially smaller
2204 # than half of the expected target width.
2205 for ac_type in int$2_t 'int' 'long int' \
2206 'long long int' 'short int' 'signed char'; do
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $ac_includes_default
2210 enum { N = $2 / 2 - 1 };
2211 int
2212 main (void)
2213 {
2214 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2215 test_array [0] = 0;
2216 return test_array [0];
2217
2218 ;
2219 return 0;
2220 }
2221 _ACEOF
2222 if ac_fn_c_try_compile "$LINENO"
2223 then :
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $ac_includes_default
2227 enum { N = $2 / 2 - 1 };
2228 int
2229 main (void)
2230 {
2231 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2232 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2233 test_array [0] = 0;
2234 return test_array [0];
2235
2236 ;
2237 return 0;
2238 }
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"
2241 then :
2242
2243 else case e in #(
2244 e) case $ac_type in #(
2245 int$2_t) :
2246 eval "$3=yes" ;; #(
2247 *) :
2248 eval "$3=\$ac_type" ;;
2249 esac ;;
2250 esac
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2255 if eval test \"x\$"$3"\" = x"no"
2256 then :
2257
2258 else case e in #(
2259 e) break ;;
2260 esac
2261 fi
2262 done ;;
2263 esac
2264 fi
2265 eval ac_res=\$$3
2266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 printf "%s\n" "$ac_res" >&6; }
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269
2270 } # ac_fn_c_find_intX_t
2271 ac_configure_args_raw=
2272 for ac_arg
2273 do
2274 case $ac_arg in
2275 *\'*)
2276 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2277 esac
2278 as_fn_append ac_configure_args_raw " '$ac_arg'"
2279 done
2280
2281 case $ac_configure_args_raw in
2282 *$as_nl*)
2283 ac_safe_unquote= ;;
2284 *)
2285 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2286 ac_unsafe_a="$ac_unsafe_z#~"
2287 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2288 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2289 esac
2290
2291 cat >config.log <<_ACEOF
2292 This file contains any messages produced by compilers while
2293 running configure, to aid debugging if configure makes a mistake.
2294
2295 It was created by kronosnet $as_me 1.33, which was
2296 generated by GNU Autoconf 2.72. Invocation command line was
2297
2298 $ $0$ac_configure_args_raw
2299
2300 _ACEOF
2301 exec 5>>config.log
2302 {
2303 cat <<_ASUNAME
2304 ## --------- ##
2305 ## Platform. ##
2306 ## --------- ##
2307
2308 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2309 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2310 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2311 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2312 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2313
2314 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2315 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2316
2317 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2318 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2319 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2320 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2321 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2322 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2323 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2324
2325 _ASUNAME
2326
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330 IFS=$as_save_IFS
2331 case $as_dir in #(((
2332 '') as_dir=./ ;;
2333 */) ;;
2334 *) as_dir=$as_dir/ ;;
2335 esac
2336 printf "%s\n" "PATH: $as_dir"
2337 done
2338 IFS=$as_save_IFS
2339
2340 } >&5
2341
2342 cat >&5 <<_ACEOF
2343
2344
2345 ## ----------- ##
2346 ## Core tests. ##
2347 ## ----------- ##
2348
2349 _ACEOF
2350
2351
2352 # Keep a trace of the command line.
2353 # Strip out --no-create and --no-recursion so they do not pile up.
2354 # Strip out --silent because we don't want to record it for future runs.
2355 # Also quote any args containing shell meta-characters.
2356 # Make two passes to allow for proper duplicate-argument suppression.
2357 ac_configure_args=
2358 ac_configure_args0=
2359 ac_configure_args1=
2360 ac_must_keep_next=false
2361 for ac_pass in 1 2
2362 do
2363 for ac_arg
2364 do
2365 case $ac_arg in
2366 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2368 | -silent | --silent | --silen | --sile | --sil)
2369 continue ;;
2370 *\'*)
2371 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2372 esac
2373 case $ac_pass in
2374 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2375 2)
2376 as_fn_append ac_configure_args1 " '$ac_arg'"
2377 if test $ac_must_keep_next = true; then
2378 ac_must_keep_next=false # Got value, back to normal.
2379 else
2380 case $ac_arg in
2381 *=* | --config-cache | -C | -disable-* | --disable-* \
2382 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2383 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2384 | -with-* | --with-* | -without-* | --without-* | --x)
2385 case "$ac_configure_args0 " in
2386 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2387 esac
2388 ;;
2389 -* ) ac_must_keep_next=true ;;
2390 esac
2391 fi
2392 as_fn_append ac_configure_args " '$ac_arg'"
2393 ;;
2394 esac
2395 done
2396 done
2397 { ac_configure_args0=; unset ac_configure_args0;}
2398 { ac_configure_args1=; unset ac_configure_args1;}
2399
2400 # When interrupted or exit'd, cleanup temporary files, and complete
2401 # config.log. We remove comments because anyway the quotes in there
2402 # would cause problems or look ugly.
2403 # WARNING: Use '\'' to represent an apostrophe within the trap.
2404 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2405 trap 'exit_status=$?
2406 # Sanitize IFS.
2407 IFS=" "" $as_nl"
2408 # Save into config.log some information that might help in debugging.
2409 {
2410 echo
2411
2412 printf "%s\n" "## ---------------- ##
2413 ## Cache variables. ##
2414 ## ---------------- ##"
2415 echo
2416 # The following way of writing the cache mishandles newlines in values,
2417 (
2418 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2419 eval ac_val=\$$ac_var
2420 case $ac_val in #(
2421 *${as_nl}*)
2422 case $ac_var in #(
2423 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2424 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2425 esac
2426 case $ac_var in #(
2427 _ | IFS | as_nl) ;; #(
2428 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2429 *) { eval $ac_var=; unset $ac_var;} ;;
2430 esac ;;
2431 esac
2432 done
2433 (set) 2>&1 |
2434 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2435 *${as_nl}ac_space=\ *)
2436 sed -n \
2437 "s/'\''/'\''\\\\'\'''\''/g;
2438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2439 ;; #(
2440 *)
2441 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2442 ;;
2443 esac |
2444 sort
2445 )
2446 echo
2447
2448 printf "%s\n" "## ----------------- ##
2449 ## Output variables. ##
2450 ## ----------------- ##"
2451 echo
2452 for ac_var in $ac_subst_vars
2453 do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in
2456 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 esac
2458 printf "%s\n" "$ac_var='\''$ac_val'\''"
2459 done | sort
2460 echo
2461
2462 if test -n "$ac_subst_files"; then
2463 printf "%s\n" "## ------------------- ##
2464 ## File substitutions. ##
2465 ## ------------------- ##"
2466 echo
2467 for ac_var in $ac_subst_files
2468 do
2469 eval ac_val=\$$ac_var
2470 case $ac_val in
2471 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2472 esac
2473 printf "%s\n" "$ac_var='\''$ac_val'\''"
2474 done | sort
2475 echo
2476 fi
2477
2478 if test -s confdefs.h; then
2479 printf "%s\n" "## ----------- ##
2480 ## confdefs.h. ##
2481 ## ----------- ##"
2482 echo
2483 cat confdefs.h
2484 echo
2485 fi
2486 test "$ac_signal" != 0 &&
2487 printf "%s\n" "$as_me: caught signal $ac_signal"
2488 printf "%s\n" "$as_me: exit $exit_status"
2489 } >&5
2490 rm -f core *.core core.conftest.* &&
2491 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2492 exit $exit_status
2493 ' 0
2494 for ac_signal in 1 2 13 15; do
2495 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2496 done
2497 ac_signal=0
2498
2499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2500 rm -f -r conftest* confdefs.h
2501
2502 printf "%s\n" "/* confdefs.h */" > confdefs.h
2503
2504 # Predefined preprocessor variables.
2505
2506 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2507
2508 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2509
2510 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2511
2512 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2513
2514 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2515
2516 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2517
2518
2519 # Let the site file select an alternate cache file if it wants to.
2520 # Prefer an explicitly selected file to automatically selected ones.
2521 if test -n "$CONFIG_SITE"; then
2522 ac_site_files="$CONFIG_SITE"
2523 elif test "x$prefix" != xNONE; then
2524 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2525 else
2526 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2527 fi
2528
2529 for ac_site_file in $ac_site_files
2530 do
2531 case $ac_site_file in #(
2532 */*) :
2533 ;; #(
2534 *) :
2535 ac_site_file=./$ac_site_file ;;
2536 esac
2537 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2539 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2540 sed 's/^/| /' "$ac_site_file" >&5
2541 . "$ac_site_file" \
2542 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2543 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2544 as_fn_error $? "failed to load site script $ac_site_file
2545 See 'config.log' for more details" "$LINENO" 5; }
2546 fi
2547 done
2548
2549 if test -r "$cache_file"; then
2550 # Some versions of bash will fail to source /dev/null (special files
2551 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2552 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2555 case $cache_file in
2556 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557 *) . "./$cache_file";;
2558 esac
2559 fi
2560 else
2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2563 >$cache_file
2564 fi
2565
2566 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2567 # Test code for whether the C compiler supports C89 (global declarations)
2568 ac_c_conftest_c89_globals='
2569 /* Does the compiler advertise C89 conformance?
2570 Do not test the value of __STDC__, because some compilers set it to 0
2571 while being otherwise adequately conformant. */
2572 #if !defined __STDC__
2573 # error "Compiler does not advertise C89 conformance"
2574 #endif
2575
2576 #include <stddef.h>
2577 #include <stdarg.h>
2578 struct stat;
2579 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2580 struct buf { int x; };
2581 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2582 static char *e (char **p, int i)
2583 {
2584 return p[i];
2585 }
2586 static char *f (char * (*g) (char **, int), char **p, ...)
2587 {
2588 char *s;
2589 va_list v;
2590 va_start (v,p);
2591 s = g (p, va_arg (v,int));
2592 va_end (v);
2593 return s;
2594 }
2595
2596 /* C89 style stringification. */
2597 #define noexpand_stringify(a) #a
2598 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2599
2600 /* C89 style token pasting. Exercises some of the corner cases that
2601 e.g. old MSVC gets wrong, but not very hard. */
2602 #define noexpand_concat(a,b) a##b
2603 #define expand_concat(a,b) noexpand_concat(a,b)
2604 extern int vA;
2605 extern int vbee;
2606 #define aye A
2607 #define bee B
2608 int *pvA = &expand_concat(v,aye);
2609 int *pvbee = &noexpand_concat(v,bee);
2610
2611 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2612 function prototypes and stuff, but not \xHH hex character constants.
2613 These do not provoke an error unfortunately, instead are silently treated
2614 as an "x". The following induces an error, until -std is added to get
2615 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2616 array size at least. It is necessary to write \x00 == 0 to get something
2617 that is true only with -std. */
2618 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2619
2620 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2621 inside strings and character constants. */
2622 #define FOO(x) '\''x'\''
2623 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2624
2625 int test (int i, double x);
2626 struct s1 {int (*f) (int a);};
2627 struct s2 {int (*f) (double a);};
2628 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2629 int, int);'
2630
2631 # Test code for whether the C compiler supports C89 (body of main).
2632 ac_c_conftest_c89_main='
2633 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2634 '
2635
2636 # Test code for whether the C compiler supports C99 (global declarations)
2637 ac_c_conftest_c99_globals='
2638 /* Does the compiler advertise C99 conformance? */
2639 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2640 # error "Compiler does not advertise C99 conformance"
2641 #endif
2642
2643 // See if C++-style comments work.
2644
2645 #include <stdbool.h>
2646 extern int puts (const char *);
2647 extern int printf (const char *, ...);
2648 extern int dprintf (int, const char *, ...);
2649 extern void *malloc (size_t);
2650 extern void free (void *);
2651
2652 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2653 // dprintf is used instead of fprintf to avoid needing to declare
2654 // FILE and stderr.
2655 #define debug(...) dprintf (2, __VA_ARGS__)
2656 #define showlist(...) puts (#__VA_ARGS__)
2657 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2658 static void
2659 test_varargs_macros (void)
2660 {
2661 int x = 1234;
2662 int y = 5678;
2663 debug ("Flag");
2664 debug ("X = %d\n", x);
2665 showlist (The first, second, and third items.);
2666 report (x>y, "x is %d but y is %d", x, y);
2667 }
2668
2669 // Check long long types.
2670 #define BIG64 18446744073709551615ull
2671 #define BIG32 4294967295ul
2672 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2673 #if !BIG_OK
2674 #error "your preprocessor is broken"
2675 #endif
2676 #if BIG_OK
2677 #else
2678 #error "your preprocessor is broken"
2679 #endif
2680 static long long int bignum = -9223372036854775807LL;
2681 static unsigned long long int ubignum = BIG64;
2682
2683 struct incomplete_array
2684 {
2685 int datasize;
2686 double data[];
2687 };
2688
2689 struct named_init {
2690 int number;
2691 const wchar_t *name;
2692 double average;
2693 };
2694
2695 typedef const char *ccp;
2696
2697 static inline int
2698 test_restrict (ccp restrict text)
2699 {
2700 // Iterate through items via the restricted pointer.
2701 // Also check for declarations in for loops.
2702 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2703 continue;
2704 return 0;
2705 }
2706
2707 // Check varargs and va_copy.
2708 static bool
2709 test_varargs (const char *format, ...)
2710 {
2711 va_list args;
2712 va_start (args, format);
2713 va_list args_copy;
2714 va_copy (args_copy, args);
2715
2716 const char *str = "";
2717 int number = 0;
2718 float fnumber = 0;
2719
2720 while (*format)
2721 {
2722 switch (*format++)
2723 {
2724 case '\''s'\'': // string
2725 str = va_arg (args_copy, const char *);
2726 break;
2727 case '\''d'\'': // int
2728 number = va_arg (args_copy, int);
2729 break;
2730 case '\''f'\'': // float
2731 fnumber = va_arg (args_copy, double);
2732 break;
2733 default:
2734 break;
2735 }
2736 }
2737 va_end (args_copy);
2738 va_end (args);
2739
2740 return *str && number && fnumber;
2741 }
2742 '
2743
2744 # Test code for whether the C compiler supports C99 (body of main).
2745 ac_c_conftest_c99_main='
2746 // Check bool.
2747 _Bool success = false;
2748 success |= (argc != 0);
2749
2750 // Check restrict.
2751 if (test_restrict ("String literal") == 0)
2752 success = true;
2753 char *restrict newvar = "Another string";
2754
2755 // Check varargs.
2756 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2757 test_varargs_macros ();
2758
2759 // Check flexible array members.
2760 struct incomplete_array *ia =
2761 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2762 ia->datasize = 10;
2763 for (int i = 0; i < ia->datasize; ++i)
2764 ia->data[i] = i * 1.234;
2765 // Work around memory leak warnings.
2766 free (ia);
2767
2768 // Check named initializers.
2769 struct named_init ni = {
2770 .number = 34,
2771 .name = L"Test wide string",
2772 .average = 543.34343,
2773 };
2774
2775 ni.number = 58;
2776
2777 int dynamic_array[ni.number];
2778 dynamic_array[0] = argv[0][0];
2779 dynamic_array[ni.number - 1] = 543;
2780
2781 // work around unused variable warnings
2782 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2783 || dynamic_array[ni.number - 1] != 543);
2784 '
2785
2786 # Test code for whether the C compiler supports C11 (global declarations)
2787 ac_c_conftest_c11_globals='
2788 /* Does the compiler advertise C11 conformance? */
2789 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2790 # error "Compiler does not advertise C11 conformance"
2791 #endif
2792
2793 // Check _Alignas.
2794 char _Alignas (double) aligned_as_double;
2795 char _Alignas (0) no_special_alignment;
2796 extern char aligned_as_int;
2797 char _Alignas (0) _Alignas (int) aligned_as_int;
2798
2799 // Check _Alignof.
2800 enum
2801 {
2802 int_alignment = _Alignof (int),
2803 int_array_alignment = _Alignof (int[100]),
2804 char_alignment = _Alignof (char)
2805 };
2806 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2807
2808 // Check _Noreturn.
2809 int _Noreturn does_not_return (void) { for (;;) continue; }
2810
2811 // Check _Static_assert.
2812 struct test_static_assert
2813 {
2814 int x;
2815 _Static_assert (sizeof (int) <= sizeof (long int),
2816 "_Static_assert does not work in struct");
2817 long int y;
2818 };
2819
2820 // Check UTF-8 literals.
2821 #define u8 syntax error!
2822 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2823
2824 // Check duplicate typedefs.
2825 typedef long *long_ptr;
2826 typedef long int *long_ptr;
2827 typedef long_ptr long_ptr;
2828
2829 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2830 struct anonymous
2831 {
2832 union {
2833 struct { int i; int j; };
2834 struct { int k; long int l; } w;
2835 };
2836 int m;
2837 } v1;
2838 '
2839
2840 # Test code for whether the C compiler supports C11 (body of main).
2841 ac_c_conftest_c11_main='
2842 _Static_assert ((offsetof (struct anonymous, i)
2843 == offsetof (struct anonymous, w.k)),
2844 "Anonymous union alignment botch");
2845 v1.i = 2;
2846 v1.w.k = 5;
2847 ok |= v1.i != 5;
2848 '
2849
2850 # Test code for whether the C compiler supports C11 (complete).
2851 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2852 ${ac_c_conftest_c99_globals}
2853 ${ac_c_conftest_c11_globals}
2854
2855 int
2856 main (int argc, char **argv)
2857 {
2858 int ok = 0;
2859 ${ac_c_conftest_c89_main}
2860 ${ac_c_conftest_c99_main}
2861 ${ac_c_conftest_c11_main}
2862 return ok;
2863 }
2864 "
2865
2866 # Test code for whether the C compiler supports C99 (complete).
2867 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2868 ${ac_c_conftest_c99_globals}
2869
2870 int
2871 main (int argc, char **argv)
2872 {
2873 int ok = 0;
2874 ${ac_c_conftest_c89_main}
2875 ${ac_c_conftest_c99_main}
2876 return ok;
2877 }
2878 "
2879
2880 # Test code for whether the C compiler supports C89 (complete).
2881 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2882
2883 int
2884 main (int argc, char **argv)
2885 {
2886 int ok = 0;
2887 ${ac_c_conftest_c89_main}
2888 return ok;
2889 }
2890 "
2891
2892 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2893 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2894 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2895 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2896 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2897 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2898 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2899 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2900 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2901 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2902
2903 # Auxiliary files required by this configure script.
2904 ac_aux_files="ltmain.sh config.guess config.sub missing install-sh compile"
2905
2906 # Locations in which to look for auxiliary files.
2907 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2908
2909 # Search for a directory containing all of the required auxiliary files,
2910 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2911 # If we don't find one directory that contains all the files we need,
2912 # we report the set of missing files from the *first* directory in
2913 # $ac_aux_dir_candidates and give up.
2914 ac_missing_aux_files=""
2915 ac_first_candidate=:
2916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 as_found=false
2919 for as_dir in $ac_aux_dir_candidates
2920 do
2921 IFS=$as_save_IFS
2922 case $as_dir in #(((
2923 '') as_dir=./ ;;
2924 */) ;;
2925 *) as_dir=$as_dir/ ;;
2926 esac
2927 as_found=:
2928
2929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2930 ac_aux_dir_found=yes
2931 ac_install_sh=
2932 for ac_aux in $ac_aux_files
2933 do
2934 # As a special case, if "install-sh" is required, that requirement
2935 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2936 # and $ac_install_sh is set appropriately for whichever one is found.
2937 if test x"$ac_aux" = x"install-sh"
2938 then
2939 if test -f "${as_dir}install-sh"; then
2940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2941 ac_install_sh="${as_dir}install-sh -c"
2942 elif test -f "${as_dir}install.sh"; then
2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2944 ac_install_sh="${as_dir}install.sh -c"
2945 elif test -f "${as_dir}shtool"; then
2946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2947 ac_install_sh="${as_dir}shtool install -c"
2948 else
2949 ac_aux_dir_found=no
2950 if $ac_first_candidate; then
2951 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2952 else
2953 break
2954 fi
2955 fi
2956 else
2957 if test -f "${as_dir}${ac_aux}"; then
2958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2959 else
2960 ac_aux_dir_found=no
2961 if $ac_first_candidate; then
2962 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2963 else
2964 break
2965 fi
2966 fi
2967 fi
2968 done
2969 if test "$ac_aux_dir_found" = yes; then
2970 ac_aux_dir="$as_dir"
2971 break
2972 fi
2973 ac_first_candidate=false
2974
2975 as_found=false
2976 done
2977 IFS=$as_save_IFS
2978 if $as_found
2979 then :
2980
2981 else case e in #(
2982 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2983 esac
2984 fi
2985
2986
2987 # These three variables are undocumented and unsupported,
2988 # and are intended to be withdrawn in a future Autoconf release.
2989 # They can cause serious problems if a builder's source tree is in a directory
2990 # whose full name contains unusual characters.
2991 if test -f "${ac_aux_dir}config.guess"; then
2992 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2993 fi
2994 if test -f "${ac_aux_dir}config.sub"; then
2995 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2996 fi
2997 if test -f "$ac_aux_dir/configure"; then
2998 ac_configure="$SHELL ${ac_aux_dir}configure"
2999 fi
3000
3001 # Check that the precious variables saved in the cache have kept the same
3002 # value.
3003 ac_cache_corrupted=false
3004 for ac_var in $ac_precious_vars; do
3005 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3006 eval ac_new_set=\$ac_env_${ac_var}_set
3007 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3008 eval ac_new_val=\$ac_env_${ac_var}_value
3009 case $ac_old_set,$ac_new_set in
3010 set,)
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3012 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3013 ac_cache_corrupted=: ;;
3014 ,set)
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3016 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3017 ac_cache_corrupted=: ;;
3018 ,);;
3019 *)
3020 if test "x$ac_old_val" != "x$ac_new_val"; then
3021 # differences in whitespace do not lead to failure.
3022 ac_old_val_w=`echo x $ac_old_val`
3023 ac_new_val_w=`echo x $ac_new_val`
3024 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3026 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3027 ac_cache_corrupted=:
3028 else
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3030 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3031 eval $ac_var=\$ac_old_val
3032 fi
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3034 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3036 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3037 fi;;
3038 esac
3039 # Pass precious variables to config.status.
3040 if test "$ac_new_set" = set; then
3041 case $ac_new_val in
3042 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3043 *) ac_arg=$ac_var=$ac_new_val ;;
3044 esac
3045 case " $ac_configure_args " in
3046 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3047 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3048 esac
3049 fi
3050 done
3051 if $ac_cache_corrupted; then
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3053 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3055 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3056 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3057 and start over" "$LINENO" 5
3058 fi
3059 ## -------------------- ##
3060 ## Main body of script. ##
3061 ## -------------------- ##
3062
3063 ac_ext=c
3064 ac_cpp='$CPP $CPPFLAGS'
3065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3068
3069
3070 # Don't let AC_PROC_CC (invoked by AC_USE_SYSTEM_EXTENSIONS) replace
3071 # undefined CFLAGS with -g -O2, overriding our special OPT_CFLAGS.
3072 : ${CFLAGS=""}
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084 # Expand $ac_aux_dir to an absolute path.
3085 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3086
3087 ac_ext=c
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 printf %s "checking for $ac_word... " >&6; }
3097 if test ${ac_cv_prog_CC+y}
3098 then :
3099 printf %s "(cached) " >&6
3100 else case e in #(
3101 e) if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 case $as_dir in #(((
3109 '') as_dir=./ ;;
3110 */) ;;
3111 *) as_dir=$as_dir/ ;;
3112 esac
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi ;;
3124 esac
3125 fi
3126 CC=$ac_cv_prog_CC
3127 if test -n "$CC"; then
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129 printf "%s\n" "$CC" >&6; }
3130 else
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 printf "%s\n" "no" >&6; }
3133 fi
3134
3135
3136 fi
3137 if test -z "$ac_cv_prog_CC"; then
3138 ac_ct_CC=$CC
3139 # Extract the first word of "gcc", so it can be a program name with args.
3140 set dummy gcc; ac_word=$2
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 printf %s "checking for $ac_word... " >&6; }
3143 if test ${ac_cv_prog_ac_ct_CC+y}
3144 then :
3145 printf %s "(cached) " >&6
3146 else case e in #(
3147 e) if test -n "$ac_ct_CC"; then
3148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153 IFS=$as_save_IFS
3154 case $as_dir in #(((
3155 '') as_dir=./ ;;
3156 */) ;;
3157 *) as_dir=$as_dir/ ;;
3158 esac
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_ac_ct_CC="gcc"
3162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3163 break 2
3164 fi
3165 done
3166 done
3167 IFS=$as_save_IFS
3168
3169 fi ;;
3170 esac
3171 fi
3172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3173 if test -n "$ac_ct_CC"; then
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3175 printf "%s\n" "$ac_ct_CC" >&6; }
3176 else
3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 printf "%s\n" "no" >&6; }
3179 fi
3180
3181 if test "x$ac_ct_CC" = x; then
3182 CC=""
3183 else
3184 case $cross_compiling:$ac_tool_warned in
3185 yes:)
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3187 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3188 ac_tool_warned=yes ;;
3189 esac
3190 CC=$ac_ct_CC
3191 fi
3192 else
3193 CC="$ac_cv_prog_CC"
3194 fi
3195
3196 if test -z "$CC"; then
3197 if test -n "$ac_tool_prefix"; then
3198 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3199 set dummy ${ac_tool_prefix}cc; ac_word=$2
3200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 printf %s "checking for $ac_word... " >&6; }
3202 if test ${ac_cv_prog_CC+y}
3203 then :
3204 printf %s "(cached) " >&6
3205 else case e in #(
3206 e) if test -n "$CC"; then
3207 ac_cv_prog_CC="$CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 case $as_dir in #(((
3214 '') as_dir=./ ;;
3215 */) ;;
3216 *) as_dir=$as_dir/ ;;
3217 esac
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_CC="${ac_tool_prefix}cc"
3221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3222 break 2
3223 fi
3224 done
3225 done
3226 IFS=$as_save_IFS
3227
3228 fi ;;
3229 esac
3230 fi
3231 CC=$ac_cv_prog_CC
3232 if test -n "$CC"; then
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234 printf "%s\n" "$CC" >&6; }
3235 else
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 printf "%s\n" "no" >&6; }
3238 fi
3239
3240
3241 fi
3242 fi
3243 if test -z "$CC"; then
3244 # Extract the first word of "cc", so it can be a program name with args.
3245 set dummy cc; ac_word=$2
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 printf %s "checking for $ac_word... " >&6; }
3248 if test ${ac_cv_prog_CC+y}
3249 then :
3250 printf %s "(cached) " >&6
3251 else case e in #(
3252 e) if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 ac_prog_rejected=no
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259 IFS=$as_save_IFS
3260 case $as_dir in #(((
3261 '') as_dir=./ ;;
3262 */) ;;
3263 *) as_dir=$as_dir/ ;;
3264 esac
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3267 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3268 ac_prog_rejected=yes
3269 continue
3270 fi
3271 ac_cv_prog_CC="cc"
3272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 if test $ac_prog_rejected = yes; then
3280 # We found a bogon in the path, so make sure we never use it.
3281 set dummy $ac_cv_prog_CC
3282 shift
3283 if test $# != 0; then
3284 # We chose a different compiler from the bogus one.
3285 # However, it has the same basename, so the bogon will be chosen
3286 # first if we set CC to just the basename; use the full file name.
3287 shift
3288 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3289 fi
3290 fi
3291 fi ;;
3292 esac
3293 fi
3294 CC=$ac_cv_prog_CC
3295 if test -n "$CC"; then
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3297 printf "%s\n" "$CC" >&6; }
3298 else
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 printf "%s\n" "no" >&6; }
3301 fi
3302
3303
3304 fi
3305 if test -z "$CC"; then
3306 if test -n "$ac_tool_prefix"; then
3307 for ac_prog in cl.exe
3308 do
3309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 printf %s "checking for $ac_word... " >&6; }
3313 if test ${ac_cv_prog_CC+y}
3314 then :
3315 printf %s "(cached) " >&6
3316 else case e in #(
3317 e) if test -n "$CC"; then
3318 ac_cv_prog_CC="$CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 case $as_dir in #(((
3325 '') as_dir=./ ;;
3326 */) ;;
3327 *) as_dir=$as_dir/ ;;
3328 esac
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335 done
3336 done
3337 IFS=$as_save_IFS
3338
3339 fi ;;
3340 esac
3341 fi
3342 CC=$ac_cv_prog_CC
3343 if test -n "$CC"; then
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345 printf "%s\n" "$CC" >&6; }
3346 else
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 printf "%s\n" "no" >&6; }
3349 fi
3350
3351
3352 test -n "$CC" && break
3353 done
3354 fi
3355 if test -z "$CC"; then
3356 ac_ct_CC=$CC
3357 for ac_prog in cl.exe
3358 do
3359 # Extract the first word of "$ac_prog", so it can be a program name with args.
3360 set dummy $ac_prog; ac_word=$2
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 printf %s "checking for $ac_word... " >&6; }
3363 if test ${ac_cv_prog_ac_ct_CC+y}
3364 then :
3365 printf %s "(cached) " >&6
3366 else case e in #(
3367 e) if test -n "$ac_ct_CC"; then
3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373 IFS=$as_save_IFS
3374 case $as_dir in #(((
3375 '') as_dir=./ ;;
3376 */) ;;
3377 *) as_dir=$as_dir/ ;;
3378 esac
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_ac_ct_CC="$ac_prog"
3382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385 done
3386 done
3387 IFS=$as_save_IFS
3388
3389 fi ;;
3390 esac
3391 fi
3392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3393 if test -n "$ac_ct_CC"; then
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3395 printf "%s\n" "$ac_ct_CC" >&6; }
3396 else
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 printf "%s\n" "no" >&6; }
3399 fi
3400
3401
3402 test -n "$ac_ct_CC" && break
3403 done
3404
3405 if test "x$ac_ct_CC" = x; then
3406 CC=""
3407 else
3408 case $cross_compiling:$ac_tool_warned in
3409 yes:)
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3411 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3412 ac_tool_warned=yes ;;
3413 esac
3414 CC=$ac_ct_CC
3415 fi
3416 fi
3417
3418 fi
3419 if test -z "$CC"; then
3420 if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3422 set dummy ${ac_tool_prefix}clang; ac_word=$2
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 printf %s "checking for $ac_word... " >&6; }
3425 if test ${ac_cv_prog_CC+y}
3426 then :
3427 printf %s "(cached) " >&6
3428 else case e in #(
3429 e) if test -n "$CC"; then
3430 ac_cv_prog_CC="$CC" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435 IFS=$as_save_IFS
3436 case $as_dir in #(((
3437 '') as_dir=./ ;;
3438 */) ;;
3439 *) as_dir=$as_dir/ ;;
3440 esac
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3443 ac_cv_prog_CC="${ac_tool_prefix}clang"
3444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3445 break 2
3446 fi
3447 done
3448 done
3449 IFS=$as_save_IFS
3450
3451 fi ;;
3452 esac
3453 fi
3454 CC=$ac_cv_prog_CC
3455 if test -n "$CC"; then
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 printf "%s\n" "$CC" >&6; }
3458 else
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 printf "%s\n" "no" >&6; }
3461 fi
3462
3463
3464 fi
3465 if test -z "$ac_cv_prog_CC"; then
3466 ac_ct_CC=$CC
3467 # Extract the first word of "clang", so it can be a program name with args.
3468 set dummy clang; ac_word=$2
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 printf %s "checking for $ac_word... " >&6; }
3471 if test ${ac_cv_prog_ac_ct_CC+y}
3472 then :
3473 printf %s "(cached) " >&6
3474 else case e in #(
3475 e) if test -n "$ac_ct_CC"; then
3476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481 IFS=$as_save_IFS
3482 case $as_dir in #(((
3483 '') as_dir=./ ;;
3484 */) ;;
3485 *) as_dir=$as_dir/ ;;
3486 esac
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3489 ac_cv_prog_ac_ct_CC="clang"
3490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3491 break 2
3492 fi
3493 done
3494 done
3495 IFS=$as_save_IFS
3496
3497 fi ;;
3498 esac
3499 fi
3500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501 if test -n "$ac_ct_CC"; then
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3503 printf "%s\n" "$ac_ct_CC" >&6; }
3504 else
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 printf "%s\n" "no" >&6; }
3507 fi
3508
3509 if test "x$ac_ct_CC" = x; then
3510 CC=""
3511 else
3512 case $cross_compiling:$ac_tool_warned in
3513 yes:)
3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516 ac_tool_warned=yes ;;
3517 esac
3518 CC=$ac_ct_CC
3519 fi
3520 else
3521 CC="$ac_cv_prog_CC"
3522 fi
3523
3524 fi
3525
3526
3527 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3528 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3529 as_fn_error $? "no acceptable C compiler found in \$PATH
3530 See 'config.log' for more details" "$LINENO" 5; }
3531
3532 # Provide some information about the compiler.
3533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3534 set X $ac_compile
3535 ac_compiler=$2
3536 for ac_option in --version -v -V -qversion -version; do
3537 { { ac_try="$ac_compiler $ac_option >&5"
3538 case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 printf "%s\n" "$ac_try_echo"; } >&5
3544 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3545 ac_status=$?
3546 if test -s conftest.err; then
3547 sed '10a\
3548 ... rest of stderr output deleted ...
3549 10q' conftest.err >conftest.er1
3550 cat conftest.er1 >&5
3551 fi
3552 rm -f conftest.er1 conftest.err
3553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554 test $ac_status = 0; }
3555 done
3556
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559
3560 int
3561 main (void)
3562 {
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 ac_clean_files_save=$ac_clean_files
3569 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3570 # Try to create an executable without -o first, disregard a.out.
3571 # It will help us diagnose broken compilers, and finding out an intuition
3572 # of exeext.
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3574 printf %s "checking whether the C compiler works... " >&6; }
3575 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3576
3577 # The possible output files:
3578 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3579
3580 ac_rmfiles=
3581 for ac_file in $ac_files
3582 do
3583 case $ac_file in
3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3585 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3586 esac
3587 done
3588 rm -f $ac_rmfiles
3589
3590 if { { ac_try="$ac_link_default"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596 printf "%s\n" "$ac_try_echo"; } >&5
3597 (eval "$ac_link_default") 2>&5
3598 ac_status=$?
3599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600 test $ac_status = 0; }
3601 then :
3602 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3603 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3604 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3605 # so that the user can short-circuit this test for compilers unknown to
3606 # Autoconf.
3607 for ac_file in $ac_files ''
3608 do
3609 test -f "$ac_file" || continue
3610 case $ac_file in
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3612 ;;
3613 [ab].out )
3614 # We found the default executable, but exeext='' is most
3615 # certainly right.
3616 break;;
3617 *.* )
3618 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3619 then :; else
3620 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3621 fi
3622 # We set ac_cv_exeext here because the later test for it is not
3623 # safe: cross compilers may not add the suffix if given an '-o'
3624 # argument, so we may need to know it at that point already.
3625 # Even if this section looks crufty: it has the advantage of
3626 # actually working.
3627 break;;
3628 * )
3629 break;;
3630 esac
3631 done
3632 test "$ac_cv_exeext" = no && ac_cv_exeext=
3633
3634 else case e in #(
3635 e) ac_file='' ;;
3636 esac
3637 fi
3638 if test -z "$ac_file"
3639 then :
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 printf "%s\n" "no" >&6; }
3642 printf "%s\n" "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3646 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3647 as_fn_error 77 "C compiler cannot create executables
3648 See 'config.log' for more details" "$LINENO" 5; }
3649 else case e in #(
3650 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3651 printf "%s\n" "yes" >&6; } ;;
3652 esac
3653 fi
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3655 printf %s "checking for C compiler default output file name... " >&6; }
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3657 printf "%s\n" "$ac_file" >&6; }
3658 ac_exeext=$ac_cv_exeext
3659
3660 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3661 ac_clean_files=$ac_clean_files_save
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3663 printf %s "checking for suffix of executables... " >&6; }
3664 if { { ac_try="$ac_link"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 printf "%s\n" "$ac_try_echo"; } >&5
3671 (eval "$ac_link") 2>&5
3672 ac_status=$?
3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }
3675 then :
3676 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3677 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3678 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3679 # 'rm'.
3680 for ac_file in conftest.exe conftest conftest.*; do
3681 test -f "$ac_file" || continue
3682 case $ac_file in
3683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3684 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 break;;
3686 * ) break;;
3687 esac
3688 done
3689 else case e in #(
3690 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3691 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3692 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3693 See 'config.log' for more details" "$LINENO" 5; } ;;
3694 esac
3695 fi
3696 rm -f conftest conftest$ac_cv_exeext
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3698 printf "%s\n" "$ac_cv_exeext" >&6; }
3699
3700 rm -f conftest.$ac_ext
3701 EXEEXT=$ac_cv_exeext
3702 ac_exeext=$EXEEXT
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705 #include <stdio.h>
3706 int
3707 main (void)
3708 {
3709 FILE *f = fopen ("conftest.out", "w");
3710 if (!f)
3711 return 1;
3712 return ferror (f) || fclose (f) != 0;
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 ac_clean_files="$ac_clean_files conftest.out"
3719 # Check that the compiler produces executables we can run. If not, either
3720 # the compiler is broken, or we cross compile.
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3722 printf %s "checking whether we are cross compiling... " >&6; }
3723 if test "$cross_compiling" != yes; then
3724 { { ac_try="$ac_link"
3725 case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 printf "%s\n" "$ac_try_echo"; } >&5
3731 (eval "$ac_link") 2>&5
3732 ac_status=$?
3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }
3735 if { ac_try='./conftest$ac_cv_exeext'
3736 { { case "(($ac_try" in
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 printf "%s\n" "$ac_try_echo"; } >&5
3742 (eval "$ac_try") 2>&5
3743 ac_status=$?
3744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }; }; then
3746 cross_compiling=no
3747 else
3748 if test "$cross_compiling" = maybe; then
3749 cross_compiling=yes
3750 else
3751 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3752 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3753 as_fn_error 77 "cannot run C compiled programs.
3754 If you meant to cross compile, use '--host'.
3755 See 'config.log' for more details" "$LINENO" 5; }
3756 fi
3757 fi
3758 fi
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3760 printf "%s\n" "$cross_compiling" >&6; }
3761
3762 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3763 conftest.o conftest.obj conftest.out
3764 ac_clean_files=$ac_clean_files_save
3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3766 printf %s "checking for suffix of object files... " >&6; }
3767 if test ${ac_cv_objext+y}
3768 then :
3769 printf %s "(cached) " >&6
3770 else case e in #(
3771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3773
3774 int
3775 main (void)
3776 {
3777
3778 ;
3779 return 0;
3780 }
3781 _ACEOF
3782 rm -f conftest.o conftest.obj
3783 if { { ac_try="$ac_compile"
3784 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 printf "%s\n" "$ac_try_echo"; } >&5
3790 (eval "$ac_compile") 2>&5
3791 ac_status=$?
3792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }
3794 then :
3795 for ac_file in conftest.o conftest.obj conftest.*; do
3796 test -f "$ac_file" || continue;
3797 case $ac_file in
3798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3799 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3800 break;;
3801 esac
3802 done
3803 else case e in #(
3804 e) printf "%s\n" "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3808 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3809 as_fn_error $? "cannot compute suffix of object files: cannot compile
3810 See 'config.log' for more details" "$LINENO" 5; } ;;
3811 esac
3812 fi
3813 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3814 esac
3815 fi
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3817 printf "%s\n" "$ac_cv_objext" >&6; }
3818 OBJEXT=$ac_cv_objext
3819 ac_objext=$OBJEXT
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3821 printf %s "checking whether the compiler supports GNU C... " >&6; }
3822 if test ${ac_cv_c_compiler_gnu+y}
3823 then :
3824 printf %s "(cached) " >&6
3825 else case e in #(
3826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828
3829 int
3830 main (void)
3831 {
3832 #ifndef __GNUC__
3833 choke me
3834 #endif
3835
3836 ;
3837 return 0;
3838 }
3839 _ACEOF
3840 if ac_fn_c_try_compile "$LINENO"
3841 then :
3842 ac_compiler_gnu=yes
3843 else case e in #(
3844 e) ac_compiler_gnu=no ;;
3845 esac
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3849 ;;
3850 esac
3851 fi
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3853 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855
3856 if test $ac_compiler_gnu = yes; then
3857 GCC=yes
3858 else
3859 GCC=
3860 fi
3861 ac_test_CFLAGS=${CFLAGS+y}
3862 ac_save_CFLAGS=$CFLAGS
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3864 printf %s "checking whether $CC accepts -g... " >&6; }
3865 if test ${ac_cv_prog_cc_g+y}
3866 then :
3867 printf %s "(cached) " >&6
3868 else case e in #(
3869 e) ac_save_c_werror_flag=$ac_c_werror_flag
3870 ac_c_werror_flag=yes
3871 ac_cv_prog_cc_g=no
3872 CFLAGS="-g"
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875
3876 int
3877 main (void)
3878 {
3879
3880 ;
3881 return 0;
3882 }
3883 _ACEOF
3884 if ac_fn_c_try_compile "$LINENO"
3885 then :
3886 ac_cv_prog_cc_g=yes
3887 else case e in #(
3888 e) CFLAGS=""
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3891
3892 int
3893 main (void)
3894 {
3895
3896 ;
3897 return 0;
3898 }
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"
3901 then :
3902
3903 else case e in #(
3904 e) ac_c_werror_flag=$ac_save_c_werror_flag
3905 CFLAGS="-g"
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3908
3909 int
3910 main (void)
3911 {
3912
3913 ;
3914 return 0;
3915 }
3916 _ACEOF
3917 if ac_fn_c_try_compile "$LINENO"
3918 then :
3919 ac_cv_prog_cc_g=yes
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3922 esac
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3925 esac
3926 fi
3927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3928 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3929 esac
3930 fi
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3932 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3933 if test $ac_test_CFLAGS; then
3934 CFLAGS=$ac_save_CFLAGS
3935 elif test $ac_cv_prog_cc_g = yes; then
3936 if test "$GCC" = yes; then
3937 CFLAGS="-g -O2"
3938 else
3939 CFLAGS="-g"
3940 fi
3941 else
3942 if test "$GCC" = yes; then
3943 CFLAGS="-O2"
3944 else
3945 CFLAGS=
3946 fi
3947 fi
3948 ac_prog_cc_stdc=no
3949 if test x$ac_prog_cc_stdc = xno
3950 then :
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3952 printf %s "checking for $CC option to enable C11 features... " >&6; }
3953 if test ${ac_cv_prog_cc_c11+y}
3954 then :
3955 printf %s "(cached) " >&6
3956 else case e in #(
3957 e) ac_cv_prog_cc_c11=no
3958 ac_save_CC=$CC
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3961 $ac_c_conftest_c11_program
3962 _ACEOF
3963 for ac_arg in '' -std=gnu11
3964 do
3965 CC="$ac_save_CC $ac_arg"
3966 if ac_fn_c_try_compile "$LINENO"
3967 then :
3968 ac_cv_prog_cc_c11=$ac_arg
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext conftest.beam
3971 test "x$ac_cv_prog_cc_c11" != "xno" && break
3972 done
3973 rm -f conftest.$ac_ext
3974 CC=$ac_save_CC ;;
3975 esac
3976 fi
3977
3978 if test "x$ac_cv_prog_cc_c11" = xno
3979 then :
3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3981 printf "%s\n" "unsupported" >&6; }
3982 else case e in #(
3983 e) if test "x$ac_cv_prog_cc_c11" = x
3984 then :
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3986 printf "%s\n" "none needed" >&6; }
3987 else case e in #(
3988 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3989 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3990 CC="$CC $ac_cv_prog_cc_c11" ;;
3991 esac
3992 fi
3993 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3994 ac_prog_cc_stdc=c11 ;;
3995 esac
3996 fi
3997 fi
3998 if test x$ac_prog_cc_stdc = xno
3999 then :
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4001 printf %s "checking for $CC option to enable C99 features... " >&6; }
4002 if test ${ac_cv_prog_cc_c99+y}
4003 then :
4004 printf %s "(cached) " >&6
4005 else case e in #(
4006 e) ac_cv_prog_cc_c99=no
4007 ac_save_CC=$CC
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4010 $ac_c_conftest_c99_program
4011 _ACEOF
4012 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4013 do
4014 CC="$ac_save_CC $ac_arg"
4015 if ac_fn_c_try_compile "$LINENO"
4016 then :
4017 ac_cv_prog_cc_c99=$ac_arg
4018 fi
4019 rm -f core conftest.err conftest.$ac_objext conftest.beam
4020 test "x$ac_cv_prog_cc_c99" != "xno" && break
4021 done
4022 rm -f conftest.$ac_ext
4023 CC=$ac_save_CC ;;
4024 esac
4025 fi
4026
4027 if test "x$ac_cv_prog_cc_c99" = xno
4028 then :
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030 printf "%s\n" "unsupported" >&6; }
4031 else case e in #(
4032 e) if test "x$ac_cv_prog_cc_c99" = x
4033 then :
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4035 printf "%s\n" "none needed" >&6; }
4036 else case e in #(
4037 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4038 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4039 CC="$CC $ac_cv_prog_cc_c99" ;;
4040 esac
4041 fi
4042 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4043 ac_prog_cc_stdc=c99 ;;
4044 esac
4045 fi
4046 fi
4047 if test x$ac_prog_cc_stdc = xno
4048 then :
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4050 printf %s "checking for $CC option to enable C89 features... " >&6; }
4051 if test ${ac_cv_prog_cc_c89+y}
4052 then :
4053 printf %s "(cached) " >&6
4054 else case e in #(
4055 e) ac_cv_prog_cc_c89=no
4056 ac_save_CC=$CC
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 $ac_c_conftest_c89_program
4060 _ACEOF
4061 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4062 do
4063 CC="$ac_save_CC $ac_arg"
4064 if ac_fn_c_try_compile "$LINENO"
4065 then :
4066 ac_cv_prog_cc_c89=$ac_arg
4067 fi
4068 rm -f core conftest.err conftest.$ac_objext conftest.beam
4069 test "x$ac_cv_prog_cc_c89" != "xno" && break
4070 done
4071 rm -f conftest.$ac_ext
4072 CC=$ac_save_CC ;;
4073 esac
4074 fi
4075
4076 if test "x$ac_cv_prog_cc_c89" = xno
4077 then :
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4079 printf "%s\n" "unsupported" >&6; }
4080 else case e in #(
4081 e) if test "x$ac_cv_prog_cc_c89" = x
4082 then :
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4084 printf "%s\n" "none needed" >&6; }
4085 else case e in #(
4086 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4087 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4088 CC="$CC $ac_cv_prog_cc_c89" ;;
4089 esac
4090 fi
4091 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4092 ac_prog_cc_stdc=c89 ;;
4093 esac
4094 fi
4095 fi
4096
4097 ac_ext=c
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102
4103
4104 ac_ext=c
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4110 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4111 if test ${am_cv_prog_cc_c_o+y}
4112 then :
4113 printf %s "(cached) " >&6
4114 else case e in #(
4115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117
4118 int
4119 main (void)
4120 {
4121
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 # Make sure it works both with $CC and with simple cc.
4127 # Following AC_PROG_CC_C_O, we do the test twice because some
4128 # compilers refuse to overwrite an existing .o file with -o,
4129 # though they will create one.
4130 am_cv_prog_cc_c_o=yes
4131 for am_i in 1 2; do
4132 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4133 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } \
4137 && test -f conftest2.$ac_objext; then
4138 : OK
4139 else
4140 am_cv_prog_cc_c_o=no
4141 break
4142 fi
4143 done
4144 rm -f core conftest*
4145 unset am_i ;;
4146 esac
4147 fi
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4149 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4150 if test "$am_cv_prog_cc_c_o" != yes; then
4151 # Losing compiler, so override with the script.
4152 # FIXME: It is wrong to rewrite CC.
4153 # But if we don't then we get into trouble of one sort or another.
4154 # A longer-term fix would be to have automake use am__CC in this case,
4155 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4156 CC="$am_aux_dir/compile $CC"
4157 fi
4158 ac_ext=c
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163
4164
4165
4166 ac_header= ac_cache=
4167 for ac_item in $ac_header_c_list
4168 do
4169 if test $ac_cache; then
4170 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4171 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4172 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4173 fi
4174 ac_header= ac_cache=
4175 elif test $ac_header; then
4176 ac_cache=$ac_item
4177 else
4178 ac_header=$ac_item
4179 fi
4180 done
4181
4182
4183
4184
4185
4186
4187
4188
4189 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4190 then :
4191
4192 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4193
4194 fi
4195
4196
4197
4198
4199
4200
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4202 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4203 if test ${ac_cv_safe_to_define___extensions__+y}
4204 then :
4205 printf %s "(cached) " >&6
4206 else case e in #(
4207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209
4210 # define __EXTENSIONS__ 1
4211 $ac_includes_default
4212 int
4213 main (void)
4214 {
4215
4216 ;
4217 return 0;
4218 }
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"
4221 then :
4222 ac_cv_safe_to_define___extensions__=yes
4223 else case e in #(
4224 e) ac_cv_safe_to_define___extensions__=no ;;
4225 esac
4226 fi
4227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4228 esac
4229 fi
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4231 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4232
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4234 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4235 if test ${ac_cv_should_define__xopen_source+y}
4236 then :
4237 printf %s "(cached) " >&6
4238 else case e in #(
4239 e) ac_cv_should_define__xopen_source=no
4240 if test $ac_cv_header_wchar_h = yes
4241 then :
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244
4245 #include <wchar.h>
4246 mbstate_t x;
4247 int
4248 main (void)
4249 {
4250
4251 ;
4252 return 0;
4253 }
4254 _ACEOF
4255 if ac_fn_c_try_compile "$LINENO"
4256 then :
4257
4258 else case e in #(
4259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261
4262 #define _XOPEN_SOURCE 500
4263 #include <wchar.h>
4264 mbstate_t x;
4265 int
4266 main (void)
4267 {
4268
4269 ;
4270 return 0;
4271 }
4272 _ACEOF
4273 if ac_fn_c_try_compile "$LINENO"
4274 then :
4275 ac_cv_should_define__xopen_source=yes
4276 fi
4277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4278 esac
4279 fi
4280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4281 fi ;;
4282 esac
4283 fi
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4285 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4286
4287 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4288
4289 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4290
4291 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4292
4293 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4294
4295 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4296
4297 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4298
4299 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4300
4301 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4302
4303 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4304
4305 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4306
4307 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4308
4309 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4310
4311 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4312
4313 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4314
4315 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4316
4317 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4318
4319 if test $ac_cv_header_minix_config_h = yes
4320 then :
4321 MINIX=yes
4322 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4323
4324 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4325
4326 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4327
4328 else case e in #(
4329 e) MINIX= ;;
4330 esac
4331 fi
4332 if test $ac_cv_safe_to_define___extensions__ = yes
4333 then :
4334 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4335
4336 fi
4337 if test $ac_cv_should_define__xopen_source = yes
4338 then :
4339 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4340
4341 fi
4342
4343 am__api_version='1.17'
4344
4345
4346 # Find a good install program. We prefer a C program (faster),
4347 # so one script is as good as another. But avoid the broken or
4348 # incompatible versions:
4349 # SysV /etc/install, /usr/sbin/install
4350 # SunOS /usr/etc/install
4351 # IRIX /sbin/install
4352 # AIX /bin/install
4353 # AmigaOS /C/install, which installs bootblocks on floppy discs
4354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4357 # OS/2's system install, which has a completely different semantic
4358 # ./install, which can be erroneously created by make from ./install.sh.
4359 # Reject install programs that cannot install multiple files.
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4361 printf %s "checking for a BSD-compatible install... " >&6; }
4362 if test -z "$INSTALL"; then
4363 if test ${ac_cv_path_install+y}
4364 then :
4365 printf %s "(cached) " >&6
4366 else case e in #(
4367 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370 IFS=$as_save_IFS
4371 case $as_dir in #(((
4372 '') as_dir=./ ;;
4373 */) ;;
4374 *) as_dir=$as_dir/ ;;
4375 esac
4376 # Account for fact that we put trailing slashes in our PATH walk.
4377 case $as_dir in #((
4378 ./ | /[cC]/* | \
4379 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4380 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4381 /usr/ucb/* ) ;;
4382 *)
4383 # OSF1 and SCO ODT 3.0 have their own names for install.
4384 # Don't use installbsd from OSF since it installs stuff as root
4385 # by default.
4386 for ac_prog in ginstall scoinst install; do
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4389 if test $ac_prog = install &&
4390 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4391 # AIX install. It has an incompatible calling convention.
4392 :
4393 elif test $ac_prog = install &&
4394 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4395 # program-specific install script used by HP pwplus--don't use.
4396 :
4397 else
4398 rm -rf conftest.one conftest.two conftest.dir
4399 echo one > conftest.one
4400 echo two > conftest.two
4401 mkdir conftest.dir
4402 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4403 test -s conftest.one && test -s conftest.two &&
4404 test -s conftest.dir/conftest.one &&
4405 test -s conftest.dir/conftest.two
4406 then
4407 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4408 break 3
4409 fi
4410 fi
4411 fi
4412 done
4413 done
4414 ;;
4415 esac
4416
4417 done
4418 IFS=$as_save_IFS
4419
4420 rm -rf conftest.one conftest.two conftest.dir
4421 ;;
4422 esac
4423 fi
4424 if test ${ac_cv_path_install+y}; then
4425 INSTALL=$ac_cv_path_install
4426 else
4427 # As a last resort, use the slow shell script. Don't cache a
4428 # value for INSTALL within a source directory, because that will
4429 # break other packages using the cache if that directory is
4430 # removed, or if the value is a relative name.
4431 INSTALL=$ac_install_sh
4432 fi
4433 fi
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4435 printf "%s\n" "$INSTALL" >&6; }
4436
4437 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4438 # It thinks the first close brace ends the variable substitution.
4439 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4440
4441 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4442
4443 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4444
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4446 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4447 if test ${am_cv_sleep_fractional_seconds+y}
4448 then :
4449 printf %s "(cached) " >&6
4450 else case e in #(
4451 e) if sleep 0.001 2>/dev/null
4452 then :
4453 am_cv_sleep_fractional_seconds=yes
4454 else case e in #(
4455 e) am_cv_sleep_fractional_seconds=no ;;
4456 esac
4457 fi
4458 ;;
4459 esac
4460 fi
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4462 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4463
4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4465 printf %s "checking filesystem timestamp resolution... " >&6; }
4466 if test ${am_cv_filesystem_timestamp_resolution+y}
4467 then :
4468 printf %s "(cached) " >&6
4469 else case e in #(
4470 e) # Default to the worst case.
4471 am_cv_filesystem_timestamp_resolution=2
4472
4473 # Only try to go finer than 1 sec if sleep can do it.
4474 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4475 # - 1 sec is not much of a win compared to 2 sec, and
4476 # - it takes 2 seconds to perform the test whether 1 sec works.
4477 #
4478 # Instead, just use the default 2s on platforms that have 1s resolution,
4479 # accept the extra 1s delay when using $sleep in the Automake tests, in
4480 # exchange for not incurring the 2s delay for running the test for all
4481 # packages.
4482 #
4483 am_try_resolutions=
4484 if test "$am_cv_sleep_fractional_seconds" = yes; then
4485 # Even a millisecond often causes a bunch of false positives,
4486 # so just try a hundredth of a second. The time saved between .001 and
4487 # .01 is not terribly consequential.
4488 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4489 fi
4490
4491 # In order to catch current-generation FAT out, we must *modify* files
4492 # that already exist; the *creation* timestamp is finer. Use names
4493 # that make ls -t sort them differently when they have equal
4494 # timestamps than when they have distinct timestamps, keeping
4495 # in mind that ls -t prints the *newest* file first.
4496 rm -f conftest.ts?
4497 : > conftest.ts1
4498 : > conftest.ts2
4499 : > conftest.ts3
4500
4501 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4502 # clobber the current shell's arguments. (Outer-level square brackets
4503 # are removed by m4; they're present so that m4 does not expand
4504 # <dollar><star>; be careful, easy to get confused.)
4505 if (
4506 set X `ls -t conftest.ts[12]` &&
4507 {
4508 test "$*" != "X conftest.ts1 conftest.ts2" ||
4509 test "$*" != "X conftest.ts2 conftest.ts1";
4510 }
4511 ); then :; else
4512 # If neither matched, then we have a broken ls. This can happen
4513 # if, for instance, CONFIG_SHELL is bash and it inherits a
4514 # broken ls alias from the environment. This has actually
4515 # happened. Such a system could not be considered "sane".
4516 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4517 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4518 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4519 as_fn_error $? "ls -t produces unexpected output.
4520 Make sure there is not a broken ls alias in your environment.
4521 See 'config.log' for more details" "$LINENO" 5; }
4522 fi
4523
4524 for am_try_res in $am_try_resolutions; do
4525 # Any one fine-grained sleep might happen to cross the boundary
4526 # between two values of a coarser actual resolution, but if we do
4527 # two fine-grained sleeps in a row, at least one of them will fall
4528 # entirely within a coarse interval.
4529 echo alpha > conftest.ts1
4530 sleep $am_try_res
4531 echo beta > conftest.ts2
4532 sleep $am_try_res
4533 echo gamma > conftest.ts3
4534
4535 # We assume that 'ls -t' will make use of high-resolution
4536 # timestamps if the operating system supports them at all.
4537 if (set X `ls -t conftest.ts?` &&
4538 test "$2" = conftest.ts3 &&
4539 test "$3" = conftest.ts2 &&
4540 test "$4" = conftest.ts1); then
4541 #
4542 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4543 # because we don't need to test make.
4544 make_ok=true
4545 if test $am_try_res != 1; then
4546 # But if we've succeeded so far with a subsecond resolution, we
4547 # have one more thing to check: make. It can happen that
4548 # everything else supports the subsecond mtimes, but make doesn't;
4549 # notably on macOS, which ships make 3.81 from 2006 (the last one
4550 # released under GPLv2). https://bugs.gnu.org/68808
4551 #
4552 # We test $MAKE if it is defined in the environment, else "make".
4553 # It might get overridden later, but our hope is that in practice
4554 # it does not matter: it is the system "make" which is (by far)
4555 # the most likely to be broken, whereas if the user overrides it,
4556 # probably they did so with a better, or at least not worse, make.
4557 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4558 #
4559 # Create a Makefile (real tab character here):
4560 rm -f conftest.mk
4561 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4562 echo ' touch conftest.ts2' >>conftest.mk
4563 #
4564 # Now, running
4565 # touch conftest.ts1; touch conftest.ts2; make
4566 # should touch ts1 because ts2 is newer. This could happen by luck,
4567 # but most often, it will fail if make's support is insufficient. So
4568 # test for several consecutive successes.
4569 #
4570 # (We reuse conftest.ts[12] because we still want to modify existing
4571 # files, not create new ones, per above.)
4572 n=0
4573 make=${MAKE-make}
4574 until test $n -eq 3; do
4575 echo one > conftest.ts1
4576 sleep $am_try_res
4577 echo two > conftest.ts2 # ts2 should now be newer than ts1
4578 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4579 make_ok=false
4580 break # out of $n loop
4581 fi
4582 n=`expr $n + 1`
4583 done
4584 fi
4585 #
4586 if $make_ok; then
4587 # Everything we know to check worked out, so call this resolution good.
4588 am_cv_filesystem_timestamp_resolution=$am_try_res
4589 break # out of $am_try_res loop
4590 fi
4591 # Otherwise, we'll go on to check the next resolution.
4592 fi
4593 done
4594 rm -f conftest.ts?
4595 # (end _am_filesystem_timestamp_resolution)
4596 ;;
4597 esac
4598 fi
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4600 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4601
4602 # This check should not be cached, as it may vary across builds of
4603 # different projects.
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4605 printf %s "checking whether build environment is sane... " >&6; }
4606 # Reject unsafe characters in $srcdir or the absolute working directory
4607 # name. Accept space and tab only in the latter.
4608 am_lf='
4609 '
4610 case `pwd` in
4611 *[\\\"\#\$\&\'\`$am_lf]*)
4612 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4613 esac
4614 case $srcdir in
4615 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4616 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4617 esac
4618
4619 # Do 'set' in a subshell so we don't clobber the current shell's
4620 # arguments. Must try -L first in case configure is actually a
4621 # symlink; some systems play weird games with the mod time of symlinks
4622 # (eg FreeBSD returns the mod time of the symlink's containing
4623 # directory).
4624 am_build_env_is_sane=no
4625 am_has_slept=no
4626 rm -f conftest.file
4627 for am_try in 1 2; do
4628 echo "timestamp, slept: $am_has_slept" > conftest.file
4629 if (
4630 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4631 if test "$*" = "X"; then
4632 # -L didn't work.
4633 set X `ls -t "$srcdir/configure" conftest.file`
4634 fi
4635 test "$2" = conftest.file
4636 ); then
4637 am_build_env_is_sane=yes
4638 break
4639 fi
4640 # Just in case.
4641 sleep "$am_cv_filesystem_timestamp_resolution"
4642 am_has_slept=yes
4643 done
4644
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4646 printf "%s\n" "$am_build_env_is_sane" >&6; }
4647 if test "$am_build_env_is_sane" = no; then
4648 as_fn_error $? "newly created file is older than distributed files!
4649 Check your system clock" "$LINENO" 5
4650 fi
4651
4652 # If we didn't sleep, we still need to ensure time stamps of config.status and
4653 # generated files are strictly newer.
4654 am_sleep_pid=
4655 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4656 then :
4657
4658 else case e in #(
4659 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4660 am_sleep_pid=$!
4661 ;;
4662 esac
4663 fi
4664
4665 rm -f conftest.file
4666
4667 test "$program_prefix" != NONE &&
4668 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4669 # Use a double $ so make ignores it.
4670 test "$program_suffix" != NONE &&
4671 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4672 # Double any \ or $.
4673 # By default was 's,x,x', remove it if useless.
4674 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4675 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4676
4677
4678 if test x"${MISSING+set}" != xset; then
4679 MISSING="\${SHELL} '$am_aux_dir/missing'"
4680 fi
4681 # Use eval to expand $SHELL
4682 if eval "$MISSING --is-lightweight"; then
4683 am_missing_run="$MISSING "
4684 else
4685 am_missing_run=
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4687 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4688 fi
4689
4690 if test x"${install_sh+set}" != xset; then
4691 case $am_aux_dir in
4692 *\ * | *\ *)
4693 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4694 *)
4695 install_sh="\${SHELL} $am_aux_dir/install-sh"
4696 esac
4697 fi
4698
4699 # Installed binaries are usually stripped using 'strip' when the user
4700 # run "make install-strip". However 'strip' might not be the right
4701 # tool to use in cross-compilation environments, therefore Automake
4702 # will honor the 'STRIP' environment variable to overrule this program.
4703 if test "$cross_compiling" != no; then
4704 if test -n "$ac_tool_prefix"; then
4705 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4706 set dummy ${ac_tool_prefix}strip; ac_word=$2
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 printf %s "checking for $ac_word... " >&6; }
4709 if test ${ac_cv_prog_STRIP+y}
4710 then :
4711 printf %s "(cached) " >&6
4712 else case e in #(
4713 e) if test -n "$STRIP"; then
4714 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719 IFS=$as_save_IFS
4720 case $as_dir in #(((
4721 '') as_dir=./ ;;
4722 */) ;;
4723 *) as_dir=$as_dir/ ;;
4724 esac
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4727 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731 done
4732 done
4733 IFS=$as_save_IFS
4734
4735 fi ;;
4736 esac
4737 fi
4738 STRIP=$ac_cv_prog_STRIP
4739 if test -n "$STRIP"; then
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4741 printf "%s\n" "$STRIP" >&6; }
4742 else
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 printf "%s\n" "no" >&6; }
4745 fi
4746
4747
4748 fi
4749 if test -z "$ac_cv_prog_STRIP"; then
4750 ac_ct_STRIP=$STRIP
4751 # Extract the first word of "strip", so it can be a program name with args.
4752 set dummy strip; ac_word=$2
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 printf %s "checking for $ac_word... " >&6; }
4755 if test ${ac_cv_prog_ac_ct_STRIP+y}
4756 then :
4757 printf %s "(cached) " >&6
4758 else case e in #(
4759 e) if test -n "$ac_ct_STRIP"; then
4760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 case $as_dir in #(((
4767 '') as_dir=./ ;;
4768 */) ;;
4769 *) as_dir=$as_dir/ ;;
4770 esac
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4773 ac_cv_prog_ac_ct_STRIP="strip"
4774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777 done
4778 done
4779 IFS=$as_save_IFS
4780
4781 fi ;;
4782 esac
4783 fi
4784 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4785 if test -n "$ac_ct_STRIP"; then
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4787 printf "%s\n" "$ac_ct_STRIP" >&6; }
4788 else
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 printf "%s\n" "no" >&6; }
4791 fi
4792
4793 if test "x$ac_ct_STRIP" = x; then
4794 STRIP=":"
4795 else
4796 case $cross_compiling:$ac_tool_warned in
4797 yes:)
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned=yes ;;
4801 esac
4802 STRIP=$ac_ct_STRIP
4803 fi
4804 else
4805 STRIP="$ac_cv_prog_STRIP"
4806 fi
4807
4808 fi
4809 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4810
4811
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4813 printf %s "checking for a race-free mkdir -p... " >&6; }
4814 if test -z "$MKDIR_P"; then
4815 if test ${ac_cv_path_mkdir+y}
4816 then :
4817 printf %s "(cached) " >&6
4818 else case e in #(
4819 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4821 do
4822 IFS=$as_save_IFS
4823 case $as_dir in #(((
4824 '') as_dir=./ ;;
4825 */) ;;
4826 *) as_dir=$as_dir/ ;;
4827 esac
4828 for ac_prog in mkdir gmkdir; do
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4831 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4832 'mkdir ('*'coreutils) '* | \
4833 *'BusyBox '* | \
4834 'mkdir (fileutils) '4.1*)
4835 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4836 break 3;;
4837 esac
4838 done
4839 done
4840 done
4841 IFS=$as_save_IFS
4842 ;;
4843 esac
4844 fi
4845
4846 test -d ./--version && rmdir ./--version
4847 if test ${ac_cv_path_mkdir+y}; then
4848 MKDIR_P="$ac_cv_path_mkdir -p"
4849 else
4850 # As a last resort, use plain mkdir -p,
4851 # in the hope it doesn't have the bugs of ancient mkdir.
4852 MKDIR_P='mkdir -p'
4853 fi
4854 fi
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4856 printf "%s\n" "$MKDIR_P" >&6; }
4857
4858 for ac_prog in gawk mawk nawk awk
4859 do
4860 # Extract the first word of "$ac_prog", so it can be a program name with args.
4861 set dummy $ac_prog; ac_word=$2
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 printf %s "checking for $ac_word... " >&6; }
4864 if test ${ac_cv_prog_AWK+y}
4865 then :
4866 printf %s "(cached) " >&6
4867 else case e in #(
4868 e) if test -n "$AWK"; then
4869 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4870 else
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4873 do
4874 IFS=$as_save_IFS
4875 case $as_dir in #(((
4876 '') as_dir=./ ;;
4877 */) ;;
4878 *) as_dir=$as_dir/ ;;
4879 esac
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_AWK="$ac_prog"
4883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4884 break 2
4885 fi
4886 done
4887 done
4888 IFS=$as_save_IFS
4889
4890 fi ;;
4891 esac
4892 fi
4893 AWK=$ac_cv_prog_AWK
4894 if test -n "$AWK"; then
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4896 printf "%s\n" "$AWK" >&6; }
4897 else
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 printf "%s\n" "no" >&6; }
4900 fi
4901
4902
4903 test -n "$AWK" && break
4904 done
4905
4906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4907 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4908 set x ${MAKE-make}
4909 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4910 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4911 then :
4912 printf %s "(cached) " >&6
4913 else case e in #(
4914 e) cat >conftest.make <<\_ACEOF
4915 SHELL = /bin/sh
4916 all:
4917 @echo '@@@%%%=$(MAKE)=@@@%%%'
4918 _ACEOF
4919 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4920 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4921 *@@@%%%=?*=@@@%%%*)
4922 eval ac_cv_prog_make_${ac_make}_set=yes;;
4923 *)
4924 eval ac_cv_prog_make_${ac_make}_set=no;;
4925 esac
4926 rm -f conftest.make ;;
4927 esac
4928 fi
4929 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4931 printf "%s\n" "yes" >&6; }
4932 SET_MAKE=
4933 else
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 printf "%s\n" "no" >&6; }
4936 SET_MAKE="MAKE=${MAKE-make}"
4937 fi
4938
4939 rm -rf .tst 2>/dev/null
4940 mkdir .tst 2>/dev/null
4941 if test -d .tst; then
4942 am__leading_dot=.
4943 else
4944 am__leading_dot=_
4945 fi
4946 rmdir .tst 2>/dev/null
4947
4948 DEPDIR="${am__leading_dot}deps"
4949
4950 ac_config_commands="$ac_config_commands depfiles"
4951
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4953 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4954 cat > confinc.mk << 'END'
4955 am__doit:
4956 @echo this is the am__doit target >confinc.out
4957 .PHONY: am__doit
4958 END
4959 am__include="#"
4960 am__quote=
4961 # BSD make does it like this.
4962 echo '.include "confinc.mk" # ignored' > confmf.BSD
4963 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4964 echo 'include confinc.mk # ignored' > confmf.GNU
4965 _am_result=no
4966 for s in GNU BSD; do
4967 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4968 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }
4972 case $?:`cat confinc.out 2>/dev/null` in #(
4973 '0:this is the am__doit target') :
4974 case $s in #(
4975 BSD) :
4976 am__include='.include' am__quote='"' ;; #(
4977 *) :
4978 am__include='include' am__quote='' ;;
4979 esac ;; #(
4980 *) :
4981 ;;
4982 esac
4983 if test "$am__include" != "#"; then
4984 _am_result="yes ($s style)"
4985 break
4986 fi
4987 done
4988 rm -f confinc.* confmf.*
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4990 printf "%s\n" "${_am_result}" >&6; }
4991
4992 # Check whether --enable-dependency-tracking was given.
4993 if test ${enable_dependency_tracking+y}
4994 then :
4995 enableval=$enable_dependency_tracking;
4996 fi
4997
4998 if test "x$enable_dependency_tracking" != xno; then
4999 am_depcomp="$ac_aux_dir/depcomp"
5000 AMDEPBACKSLASH='\'
5001 am__nodep='_no'
5002 fi
5003 if test "x$enable_dependency_tracking" != xno; then
5004 AMDEP_TRUE=
5005 AMDEP_FALSE='#'
5006 else
5007 AMDEP_TRUE='#'
5008 AMDEP_FALSE=
5009 fi
5010
5011
5012 AM_DEFAULT_VERBOSITY=1
5013 # Check whether --enable-silent-rules was given.
5014 if test ${enable_silent_rules+y}
5015 then :
5016 enableval=$enable_silent_rules;
5017 fi
5018
5019 am_make=${MAKE-make}
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5021 printf %s "checking whether $am_make supports nested variables... " >&6; }
5022 if test ${am_cv_make_support_nested_variables+y}
5023 then :
5024 printf %s "(cached) " >&6
5025 else case e in #(
5026 e) if printf "%s\n" 'TRUE=$(BAR$(V))
5027 BAR0=false
5028 BAR1=true
5029 V=1
5030 am__doit:
5031 @$(TRUE)
5032 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5033 am_cv_make_support_nested_variables=yes
5034 else
5035 am_cv_make_support_nested_variables=no
5036 fi ;;
5037 esac
5038 fi
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5040 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
5041 AM_BACKSLASH='\'
5042
5043 am__rm_f_notfound=
5044 if (rm -f && rm -fr && rm -rf) 2>/dev/null
5045 then :
5046
5047 else case e in #(
5048 e) am__rm_f_notfound='""' ;;
5049 esac
5050 fi
5051
5052
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
5054 printf %s "checking xargs -n works... " >&6; }
5055 if test ${am_cv_xargs_n_works+y}
5056 then :
5057 printf %s "(cached) " >&6
5058 else case e in #(
5059 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
5060 3"
5061 then :
5062 am_cv_xargs_n_works=yes
5063 else case e in #(
5064 e) am_cv_xargs_n_works=no ;;
5065 esac
5066 fi ;;
5067 esac
5068 fi
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
5070 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
5071 if test "$am_cv_xargs_n_works" = yes
5072 then :
5073 am__xargs_n='xargs -n'
5074 else case e in #(
5075 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
5076 ;;
5077 esac
5078 fi
5079
5080 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5081 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5082 # is not polluted with repeated "-I."
5083 am__isrc=' -I$(srcdir)'
5084 # test to see if srcdir already configured
5085 if test -f $srcdir/config.status; then
5086 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5087 fi
5088 fi
5089
5090 # test whether we have cygpath
5091 if test -z "$CYGPATH_W"; then
5092 if (cygpath --version) >/dev/null 2>/dev/null; then
5093 CYGPATH_W='cygpath -w'
5094 else
5095 CYGPATH_W=echo
5096 fi
5097 fi
5098
5099
5100 # Define the identity of the package.
5101 PACKAGE='kronosnet'
5102 VERSION='1.33'
5103
5104
5105 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
5106
5107
5108 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
5109
5110 # Some tools Automake needs.
5111
5112 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5113
5114
5115 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5116
5117
5118 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5119
5120
5121 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5122
5123
5124 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5125
5126 # For better backward compatibility. To be removed once Automake 1.9.x
5127 # dies out for good. For more background, see:
5128 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5129 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5130 mkdir_p='$(MKDIR_P)'
5131
5132 # We need awk for the "check" target (and possibly the TAP driver). The
5133 # system "awk" is bad on some platforms.
5134 # Always define AMTAR for backward compatibility. Yes, it's still used
5135 # in the wild :-( We should find a proper way to deprecate it ...
5136 AMTAR='$${TAR-tar}'
5137
5138
5139 # We'll loop over all known methods to create a tar archive until one works.
5140 _am_tools='gnutar pax cpio none'
5141
5142 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5143
5144
5145
5146
5147
5148 depcc="$CC" am_compiler_list=
5149
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5151 printf %s "checking dependency style of $depcc... " >&6; }
5152 if test ${am_cv_CC_dependencies_compiler_type+y}
5153 then :
5154 printf %s "(cached) " >&6
5155 else case e in #(
5156 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5157 # We make a subdir and do the tests there. Otherwise we can end up
5158 # making bogus files that we don't know about and never remove. For
5159 # instance it was reported that on HP-UX the gcc test will end up
5160 # making a dummy file named 'D' -- because '-MD' means "put the output
5161 # in D".
5162 rm -rf conftest.dir
5163 mkdir conftest.dir
5164 # Copy depcomp to subdir because otherwise we won't find it if we're
5165 # using a relative directory.
5166 cp "$am_depcomp" conftest.dir
5167 cd conftest.dir
5168 # We will build objects and dependencies in a subdirectory because
5169 # it helps to detect inapplicable dependency modes. For instance
5170 # both Tru64's cc and ICC support -MD to output dependencies as a
5171 # side effect of compilation, but ICC will put the dependencies in
5172 # the current directory while Tru64 will put them in the object
5173 # directory.
5174 mkdir sub
5175
5176 am_cv_CC_dependencies_compiler_type=none
5177 if test "$am_compiler_list" = ""; then
5178 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5179 fi
5180 am__universal=false
5181 case " $depcc " in #(
5182 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5183 esac
5184
5185 for depmode in $am_compiler_list; do
5186 # Setup a source with many dependencies, because some compilers
5187 # like to wrap large dependency lists on column 80 (with \), and
5188 # we should not choose a depcomp mode which is confused by this.
5189 #
5190 # We need to recreate these files for each test, as the compiler may
5191 # overwrite some of them when testing with obscure command lines.
5192 # This happens at least with the AIX C compiler.
5193 : > sub/conftest.c
5194 for i in 1 2 3 4 5 6; do
5195 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5196 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5197 # Solaris 10 /bin/sh.
5198 echo '/* dummy */' > sub/conftst$i.h
5199 done
5200 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5201
5202 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5203 # mode. It turns out that the SunPro C++ compiler does not properly
5204 # handle '-M -o', and we need to detect this. Also, some Intel
5205 # versions had trouble with output in subdirs.
5206 am__obj=sub/conftest.${OBJEXT-o}
5207 am__minus_obj="-o $am__obj"
5208 case $depmode in
5209 gcc)
5210 # This depmode causes a compiler race in universal mode.
5211 test "$am__universal" = false || continue
5212 ;;
5213 nosideeffect)
5214 # After this tag, mechanisms are not by side-effect, so they'll
5215 # only be used when explicitly requested.
5216 if test "x$enable_dependency_tracking" = xyes; then
5217 continue
5218 else
5219 break
5220 fi
5221 ;;
5222 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5223 # This compiler won't grok '-c -o', but also, the minuso test has
5224 # not run yet. These depmodes are late enough in the game, and
5225 # so weak that their functioning should not be impacted.
5226 am__obj=conftest.${OBJEXT-o}
5227 am__minus_obj=
5228 ;;
5229 none) break ;;
5230 esac
5231 if depmode=$depmode \
5232 source=sub/conftest.c object=$am__obj \
5233 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5234 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5235 >/dev/null 2>conftest.err &&
5236 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5237 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5238 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5239 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5240 # icc doesn't choke on unknown options, it will just issue warnings
5241 # or remarks (even with -Werror). So we grep stderr for any message
5242 # that says an option was ignored or not supported.
5243 # When given -MP, icc 7.0 and 7.1 complain thus:
5244 # icc: Command line warning: ignoring option '-M'; no argument required
5245 # The diagnosis changed in icc 8.0:
5246 # icc: Command line remark: option '-MP' not supported
5247 if (grep 'ignoring option' conftest.err ||
5248 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5249 am_cv_CC_dependencies_compiler_type=$depmode
5250 break
5251 fi
5252 fi
5253 done
5254
5255 cd ..
5256 rm -rf conftest.dir
5257 else
5258 am_cv_CC_dependencies_compiler_type=none
5259 fi
5260 ;;
5261 esac
5262 fi
5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5264 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5265 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5266
5267 if
5268 test "x$enable_dependency_tracking" != xno \
5269 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5270 am__fastdepCC_TRUE=
5271 am__fastdepCC_FALSE='#'
5272 else
5273 am__fastdepCC_TRUE='#'
5274 am__fastdepCC_FALSE=
5275 fi
5276
5277
5278 # Variables for tags utilities; see am/tags.am
5279 if test -z "$CTAGS"; then
5280 CTAGS=ctags
5281 fi
5282
5283 if test -z "$ETAGS"; then
5284 ETAGS=etags
5285 fi
5286
5287 if test -z "$CSCOPE"; then
5288 CSCOPE=cscope
5289 fi
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302 # Make sure we can run config.sub.
5303 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5304 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5305
5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5307 printf %s "checking build system type... " >&6; }
5308 if test ${ac_cv_build+y}
5309 then :
5310 printf %s "(cached) " >&6
5311 else case e in #(
5312 e) ac_build_alias=$build_alias
5313 test "x$ac_build_alias" = x &&
5314 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5315 test "x$ac_build_alias" = x &&
5316 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5317 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5318 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5319 ;;
5320 esac
5321 fi
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5323 printf "%s\n" "$ac_cv_build" >&6; }
5324 case $ac_cv_build in
5325 *-*-*) ;;
5326 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5327 esac
5328 build=$ac_cv_build
5329 ac_save_IFS=$IFS; IFS='-'
5330 set x $ac_cv_build
5331 shift
5332 build_cpu=$1
5333 build_vendor=$2
5334 shift; shift
5335 # Remember, the first character of IFS is used to create $*,
5336 # except with old shells:
5337 build_os=$*
5338 IFS=$ac_save_IFS
5339 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5340
5341
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5343 printf %s "checking host system type... " >&6; }
5344 if test ${ac_cv_host+y}
5345 then :
5346 printf %s "(cached) " >&6
5347 else case e in #(
5348 e) if test "x$host_alias" = x; then
5349 ac_cv_host=$ac_cv_build
5350 else
5351 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5352 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5353 fi
5354 ;;
5355 esac
5356 fi
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5358 printf "%s\n" "$ac_cv_host" >&6; }
5359 case $ac_cv_host in
5360 *-*-*) ;;
5361 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5362 esac
5363 host=$ac_cv_host
5364 ac_save_IFS=$IFS; IFS='-'
5365 set x $ac_cv_host
5366 shift
5367 host_cpu=$1
5368 host_vendor=$2
5369 shift; shift
5370 # Remember, the first character of IFS is used to create $*,
5371 # except with old shells:
5372 host_os=$*
5373 IFS=$ac_save_IFS
5374 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5375
5376
5377 # --enable-new-dtags: Use RUNPATH instead of RPATH.
5378 # It is necessary to have this done before libtool does linker detection.
5379 # See also: https://github.com/kronosnet/kronosnet/issues/107
5380 # --as-needed: Modern systems have builtin ceil() making -lm superfluous but
5381 # AC_SEARCH_LIBS can't detect this because it tests with a false prototype
5382 case "$host_os" in
5383 solaris*)
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Skipping --enable-new-dtags check, Solaris' RPATH logic is like RUNPATH on other platforms" >&5
5385 printf "%s\n" "$as_me: Skipping --enable-new-dtags check, Solaris' RPATH logic is like RUNPATH on other platforms" >&6;}
5386 ;;
5387 *)
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--enable-new-dtags" >&5
5389 printf %s "checking whether the linker accepts -Wl,--enable-new-dtags... " >&6; }
5390 if test ${ax_cv_check_ldflags___Wl___enable_new_dtags+y}
5391 then :
5392 printf %s "(cached) " >&6
5393 else case e in #(
5394 e)
5395 ax_check_save_flags=$LDFLAGS
5396 LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5399
5400 int
5401 main (void)
5402 {
5403
5404 ;
5405 return 0;
5406 }
5407 _ACEOF
5408 if ac_fn_c_try_link "$LINENO"
5409 then :
5410 ax_cv_check_ldflags___Wl___enable_new_dtags=yes
5411 else case e in #(
5412 e) ax_cv_check_ldflags___Wl___enable_new_dtags=no ;;
5413 esac
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5416 conftest$ac_exeext conftest.$ac_ext
5417 LDFLAGS=$ax_check_save_flags ;;
5418 esac
5419 fi
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___enable_new_dtags" >&5
5421 printf "%s\n" "$ax_cv_check_ldflags___Wl___enable_new_dtags" >&6; }
5422 if test "x$ax_cv_check_ldflags___Wl___enable_new_dtags" = xyes
5423 then :
5424 AM_LDFLAGS=-Wl,--enable-new-dtags
5425 else case e in #(
5426 e) as_fn_error $? "\"Linker support for --enable-new-dtags is required\"" "$LINENO" 5 ;;
5427 esac
5428 fi
5429
5430 ;;
5431 esac
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--as-needed" >&5
5433 printf %s "checking whether the linker accepts -Wl,--as-needed... " >&6; }
5434 if test ${ax_cv_check_ldflags___Wl___as_needed+y}
5435 then :
5436 printf %s "(cached) " >&6
5437 else case e in #(
5438 e)
5439 ax_check_save_flags=$LDFLAGS
5440 LDFLAGS="$LDFLAGS -Wl,--as-needed"
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443
5444 int
5445 main (void)
5446 {
5447
5448 ;
5449 return 0;
5450 }
5451 _ACEOF
5452 if ac_fn_c_try_link "$LINENO"
5453 then :
5454 ax_cv_check_ldflags___Wl___as_needed=yes
5455 else case e in #(
5456 e) ax_cv_check_ldflags___Wl___as_needed=no ;;
5457 esac
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5460 conftest$ac_exeext conftest.$ac_ext
5461 LDFLAGS=$ax_check_save_flags ;;
5462 esac
5463 fi
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___as_needed" >&5
5465 printf "%s\n" "$ax_cv_check_ldflags___Wl___as_needed" >&6; }
5466 if test "x$ax_cv_check_ldflags___Wl___as_needed" = xyes
5467 then :
5468 AM_LDFLAGS="$AM_LDFLAGS -Wl,--as-needed"
5469 else case e in #(
5470 e) : ;;
5471 esac
5472 fi
5473
5474
5475 saved_LDFLAGS="$LDFLAGS"
5476 LDFLAGS="$AM_LDFLAGS $LDFLAGS"
5477 case `pwd` in
5478 *\ * | *\ *)
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5480 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5481 esac
5482
5483
5484
5485 macro_version='2.5.4'
5486 macro_revision='2.5.4'
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501 ltmain=$ac_aux_dir/ltmain.sh
5502
5503 # Backslashify metacharacters that are still active within
5504 # double-quoted strings.
5505 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5506
5507 # Same as above, but do not quote variable references.
5508 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5509
5510 # Sed substitution to delay expansion of an escaped shell variable in a
5511 # double_quote_subst'ed string.
5512 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5513
5514 # Sed substitution to delay expansion of an escaped single quote.
5515 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5516
5517 # Sed substitution to avoid accidental globbing in evaled expressions
5518 no_glob_subst='s/\*/\\\*/g'
5519
5520 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5521 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5522 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5523
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5525 printf %s "checking how to print strings... " >&6; }
5526 # Test print first, because it will be a builtin if present.
5527 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5528 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5529 ECHO='print -r --'
5530 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5531 ECHO='printf %s\n'
5532 else
5533 # Use this function as a fallback that always works.
5534 func_fallback_echo ()
5535 {
5536 eval 'cat <<_LTECHO_EOF
5537 $1
5538 _LTECHO_EOF'
5539 }
5540 ECHO='func_fallback_echo'
5541 fi
5542
5543 # func_echo_all arg...
5544 # Invoke $ECHO with all args, space-separated.
5545 func_echo_all ()
5546 {
5547 $ECHO ""
5548 }
5549
5550 case $ECHO in
5551 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5552 printf "%s\n" "printf" >&6; } ;;
5553 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5554 printf "%s\n" "print -r" >&6; } ;;
5555 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5556 printf "%s\n" "cat" >&6; } ;;
5557 esac
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5573 printf %s "checking for a sed that does not truncate output... " >&6; }
5574 if test ${ac_cv_path_SED+y}
5575 then :
5576 printf %s "(cached) " >&6
5577 else case e in #(
5578 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5579 for ac_i in 1 2 3 4 5 6 7; do
5580 ac_script="$ac_script$as_nl$ac_script"
5581 done
5582 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5583 { ac_script=; unset ac_script;}
5584 if test -z "$SED"; then
5585 ac_path_SED_found=false
5586 # Loop through the user's path and test for each of PROGNAME-LIST
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH
5589 do
5590 IFS=$as_save_IFS
5591 case $as_dir in #(((
5592 '') as_dir=./ ;;
5593 */) ;;
5594 *) as_dir=$as_dir/ ;;
5595 esac
5596 for ac_prog in sed gsed
5597 do
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5600 as_fn_executable_p "$ac_path_SED" || continue
5601 # Check for GNU ac_path_SED and select it if it is found.
5602 # Check for GNU $ac_path_SED
5603 case `"$ac_path_SED" --version 2>&1` in #(
5604 *GNU*)
5605 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5606 #(
5607 *)
5608 ac_count=0
5609 printf %s 0123456789 >"conftest.in"
5610 while :
5611 do
5612 cat "conftest.in" "conftest.in" >"conftest.tmp"
5613 mv "conftest.tmp" "conftest.in"
5614 cp "conftest.in" "conftest.nl"
5615 printf "%s\n" '' >> "conftest.nl"
5616 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5618 as_fn_arith $ac_count + 1 && ac_count=$as_val
5619 if test $ac_count -gt ${ac_path_SED_max-0}; then
5620 # Best one so far, save it but keep looking for a better one
5621 ac_cv_path_SED="$ac_path_SED"
5622 ac_path_SED_max=$ac_count
5623 fi
5624 # 10*(2^10) chars as input seems more than enough
5625 test $ac_count -gt 10 && break
5626 done
5627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5628 esac
5629
5630 $ac_path_SED_found && break 3
5631 done
5632 done
5633 done
5634 IFS=$as_save_IFS
5635 if test -z "$ac_cv_path_SED"; then
5636 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5637 fi
5638 else
5639 ac_cv_path_SED=$SED
5640 fi
5641 ;;
5642 esac
5643 fi
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5645 printf "%s\n" "$ac_cv_path_SED" >&6; }
5646 SED="$ac_cv_path_SED"
5647 rm -f conftest.sed
5648
5649 test -z "$SED" && SED=sed
5650 Xsed="$SED -e 1s/^X//"
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5663 printf %s "checking for grep that handles long lines and -e... " >&6; }
5664 if test ${ac_cv_path_GREP+y}
5665 then :
5666 printf %s "(cached) " >&6
5667 else case e in #(
5668 e) if test -z "$GREP"; then
5669 ac_path_GREP_found=false
5670 # Loop through the user's path and test for each of PROGNAME-LIST
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5673 do
5674 IFS=$as_save_IFS
5675 case $as_dir in #(((
5676 '') as_dir=./ ;;
5677 */) ;;
5678 *) as_dir=$as_dir/ ;;
5679 esac
5680 for ac_prog in grep ggrep
5681 do
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5684 as_fn_executable_p "$ac_path_GREP" || continue
5685 # Check for GNU ac_path_GREP and select it if it is found.
5686 # Check for GNU $ac_path_GREP
5687 case `"$ac_path_GREP" --version 2>&1` in #(
5688 *GNU*)
5689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5690 #(
5691 *)
5692 ac_count=0
5693 printf %s 0123456789 >"conftest.in"
5694 while :
5695 do
5696 cat "conftest.in" "conftest.in" >"conftest.tmp"
5697 mv "conftest.tmp" "conftest.in"
5698 cp "conftest.in" "conftest.nl"
5699 printf "%s\n" 'GREP' >> "conftest.nl"
5700 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5702 as_fn_arith $ac_count + 1 && ac_count=$as_val
5703 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5704 # Best one so far, save it but keep looking for a better one
5705 ac_cv_path_GREP="$ac_path_GREP"
5706 ac_path_GREP_max=$ac_count
5707 fi
5708 # 10*(2^10) chars as input seems more than enough
5709 test $ac_count -gt 10 && break
5710 done
5711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5712 esac
5713
5714 $ac_path_GREP_found && break 3
5715 done
5716 done
5717 done
5718 IFS=$as_save_IFS
5719 if test -z "$ac_cv_path_GREP"; then
5720 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5721 fi
5722 else
5723 ac_cv_path_GREP=$GREP
5724 fi
5725 ;;
5726 esac
5727 fi
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5729 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5730 GREP="$ac_cv_path_GREP"
5731
5732
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5734 printf %s "checking for egrep... " >&6; }
5735 if test ${ac_cv_path_EGREP+y}
5736 then :
5737 printf %s "(cached) " >&6
5738 else case e in #(
5739 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5740 then ac_cv_path_EGREP="$GREP -E"
5741 else
5742 if test -z "$EGREP"; then
5743 ac_path_EGREP_found=false
5744 # Loop through the user's path and test for each of PROGNAME-LIST
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5747 do
5748 IFS=$as_save_IFS
5749 case $as_dir in #(((
5750 '') as_dir=./ ;;
5751 */) ;;
5752 *) as_dir=$as_dir/ ;;
5753 esac
5754 for ac_prog in egrep
5755 do
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5758 as_fn_executable_p "$ac_path_EGREP" || continue
5759 # Check for GNU ac_path_EGREP and select it if it is found.
5760 # Check for GNU $ac_path_EGREP
5761 case `"$ac_path_EGREP" --version 2>&1` in #(
5762 *GNU*)
5763 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5764 #(
5765 *)
5766 ac_count=0
5767 printf %s 0123456789 >"conftest.in"
5768 while :
5769 do
5770 cat "conftest.in" "conftest.in" >"conftest.tmp"
5771 mv "conftest.tmp" "conftest.in"
5772 cp "conftest.in" "conftest.nl"
5773 printf "%s\n" 'EGREP' >> "conftest.nl"
5774 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5776 as_fn_arith $ac_count + 1 && ac_count=$as_val
5777 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5778 # Best one so far, save it but keep looking for a better one
5779 ac_cv_path_EGREP="$ac_path_EGREP"
5780 ac_path_EGREP_max=$ac_count
5781 fi
5782 # 10*(2^10) chars as input seems more than enough
5783 test $ac_count -gt 10 && break
5784 done
5785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5786 esac
5787
5788 $ac_path_EGREP_found && break 3
5789 done
5790 done
5791 done
5792 IFS=$as_save_IFS
5793 if test -z "$ac_cv_path_EGREP"; then
5794 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5795 fi
5796 else
5797 ac_cv_path_EGREP=$EGREP
5798 fi
5799
5800 fi ;;
5801 esac
5802 fi
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5804 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5805 EGREP="$ac_cv_path_EGREP"
5806
5807 EGREP_TRADITIONAL=$EGREP
5808 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5809
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5811 printf %s "checking for fgrep... " >&6; }
5812 if test ${ac_cv_path_FGREP+y}
5813 then :
5814 printf %s "(cached) " >&6
5815 else case e in #(
5816 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5817 then ac_cv_path_FGREP="$GREP -F"
5818 else
5819 if test -z "$FGREP"; then
5820 ac_path_FGREP_found=false
5821 # Loop through the user's path and test for each of PROGNAME-LIST
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5824 do
5825 IFS=$as_save_IFS
5826 case $as_dir in #(((
5827 '') as_dir=./ ;;
5828 */) ;;
5829 *) as_dir=$as_dir/ ;;
5830 esac
5831 for ac_prog in fgrep
5832 do
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5835 as_fn_executable_p "$ac_path_FGREP" || continue
5836 # Check for GNU ac_path_FGREP and select it if it is found.
5837 # Check for GNU $ac_path_FGREP
5838 case `"$ac_path_FGREP" --version 2>&1` in #(
5839 *GNU*)
5840 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5841 #(
5842 *)
5843 ac_count=0
5844 printf %s 0123456789 >"conftest.in"
5845 while :
5846 do
5847 cat "conftest.in" "conftest.in" >"conftest.tmp"
5848 mv "conftest.tmp" "conftest.in"
5849 cp "conftest.in" "conftest.nl"
5850 printf "%s\n" 'FGREP' >> "conftest.nl"
5851 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5853 as_fn_arith $ac_count + 1 && ac_count=$as_val
5854 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5855 # Best one so far, save it but keep looking for a better one
5856 ac_cv_path_FGREP="$ac_path_FGREP"
5857 ac_path_FGREP_max=$ac_count
5858 fi
5859 # 10*(2^10) chars as input seems more than enough
5860 test $ac_count -gt 10 && break
5861 done
5862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5863 esac
5864
5865 $ac_path_FGREP_found && break 3
5866 done
5867 done
5868 done
5869 IFS=$as_save_IFS
5870 if test -z "$ac_cv_path_FGREP"; then
5871 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5872 fi
5873 else
5874 ac_cv_path_FGREP=$FGREP
5875 fi
5876
5877 fi ;;
5878 esac
5879 fi
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5881 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5882 FGREP="$ac_cv_path_FGREP"
5883
5884
5885 test -z "$GREP" && GREP=grep
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905 # Check whether --with-gnu-ld was given.
5906 if test ${with_gnu_ld+y}
5907 then :
5908 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5909 else case e in #(
5910 e) with_gnu_ld=no ;;
5911 esac
5912 fi
5913
5914 ac_prog=ld
5915 if test yes = "$GCC"; then
5916 # Check if gcc -print-prog-name=ld gives a path.
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5918 printf %s "checking for ld used by $CC... " >&6; }
5919 case $host in
5920 *-*-mingw* | *-*-windows*)
5921 # gcc leaves a trailing carriage return, which upsets mingw
5922 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5923 *)
5924 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5925 esac
5926 case $ac_prog in
5927 # Accept absolute paths.
5928 [\\/]* | ?:[\\/]*)
5929 re_direlt='/[^/][^/]*/\.\./'
5930 # Canonicalize the pathname of ld
5931 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5932 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5933 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5934 done
5935 test -z "$LD" && LD=$ac_prog
5936 ;;
5937 "")
5938 # If it fails, then pretend we aren't using GCC.
5939 ac_prog=ld
5940 ;;
5941 *)
5942 # If it is relative, then search for the first ld in PATH.
5943 with_gnu_ld=unknown
5944 ;;
5945 esac
5946 elif test yes = "$with_gnu_ld"; then
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5948 printf %s "checking for GNU ld... " >&6; }
5949 else
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5951 printf %s "checking for non-GNU ld... " >&6; }
5952 fi
5953 if test ${lt_cv_path_LD+y}
5954 then :
5955 printf %s "(cached) " >&6
5956 else case e in #(
5957 e) if test -z "$LD"; then
5958 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5959 for ac_dir in $PATH; do
5960 IFS=$lt_save_ifs
5961 test -z "$ac_dir" && ac_dir=.
5962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5963 lt_cv_path_LD=$ac_dir/$ac_prog
5964 # Check to see if the program is GNU ld. I'd rather use --version,
5965 # but apparently some variants of GNU ld only accept -v.
5966 # Break only if it was the GNU/non-GNU ld that we prefer.
5967 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5968 *GNU* | *'with BFD'*)
5969 test no != "$with_gnu_ld" && break
5970 ;;
5971 *)
5972 test yes != "$with_gnu_ld" && break
5973 ;;
5974 esac
5975 fi
5976 done
5977 IFS=$lt_save_ifs
5978 else
5979 lt_cv_path_LD=$LD # Let the user override the test with a path.
5980 fi ;;
5981 esac
5982 fi
5983
5984 LD=$lt_cv_path_LD
5985 if test -n "$LD"; then
5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5987 printf "%s\n" "$LD" >&6; }
5988 else
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 printf "%s\n" "no" >&6; }
5991 fi
5992 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5994 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5995 if test ${lt_cv_prog_gnu_ld+y}
5996 then :
5997 printf %s "(cached) " >&6
5998 else case e in #(
5999 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6000 case `$LD -v 2>&1 </dev/null` in
6001 *GNU* | *'with BFD'*)
6002 lt_cv_prog_gnu_ld=yes
6003 ;;
6004 *)
6005 lt_cv_prog_gnu_ld=no
6006 ;;
6007 esac ;;
6008 esac
6009 fi
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6011 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6012 with_gnu_ld=$lt_cv_prog_gnu_ld
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6023 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6024 if test ${lt_cv_path_NM+y}
6025 then :
6026 printf %s "(cached) " >&6
6027 else case e in #(
6028 e) if test -n "$NM"; then
6029 # Let the user override the test.
6030 lt_cv_path_NM=$NM
6031 else
6032 lt_nm_to_check=${ac_tool_prefix}nm
6033 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6034 lt_nm_to_check="$lt_nm_to_check nm"
6035 fi
6036 for lt_tmp_nm in $lt_nm_to_check; do
6037 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6038 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6039 IFS=$lt_save_ifs
6040 test -z "$ac_dir" && ac_dir=.
6041 tmp_nm=$ac_dir/$lt_tmp_nm
6042 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6043 # Check to see if the nm accepts a BSD-compat flag.
6044 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6045 # nm: unknown option "B" ignored
6046 # Tru64's nm complains that /dev/null is an invalid object file
6047 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6048 case $build_os in
6049 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6050 *) lt_bad_file=/dev/null ;;
6051 esac
6052 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6053 *$lt_bad_file* | *'Invalid file or object type'*)
6054 lt_cv_path_NM="$tmp_nm -B"
6055 break 2
6056 ;;
6057 *)
6058 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6059 */dev/null*)
6060 lt_cv_path_NM="$tmp_nm -p"
6061 break 2
6062 ;;
6063 *)
6064 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6065 continue # so that we can try to find one that supports BSD flags
6066 ;;
6067 esac
6068 ;;
6069 esac
6070 fi
6071 done
6072 IFS=$lt_save_ifs
6073 done
6074 : ${lt_cv_path_NM=no}
6075 fi ;;
6076 esac
6077 fi
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6079 printf "%s\n" "$lt_cv_path_NM" >&6; }
6080 if test no != "$lt_cv_path_NM"; then
6081 NM=$lt_cv_path_NM
6082 else
6083 # Didn't find any BSD compatible name lister, look for dumpbin.
6084 if test -n "$DUMPBIN"; then :
6085 # Let the user override the test.
6086 else
6087 if test -n "$ac_tool_prefix"; then
6088 for ac_prog in dumpbin "link -dump"
6089 do
6090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 printf %s "checking for $ac_word... " >&6; }
6094 if test ${ac_cv_prog_DUMPBIN+y}
6095 then :
6096 printf %s "(cached) " >&6
6097 else case e in #(
6098 e) if test -n "$DUMPBIN"; then
6099 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104 IFS=$as_save_IFS
6105 case $as_dir in #(((
6106 '') as_dir=./ ;;
6107 */) ;;
6108 *) as_dir=$as_dir/ ;;
6109 esac
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6114 break 2
6115 fi
6116 done
6117 done
6118 IFS=$as_save_IFS
6119
6120 fi ;;
6121 esac
6122 fi
6123 DUMPBIN=$ac_cv_prog_DUMPBIN
6124 if test -n "$DUMPBIN"; then
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6126 printf "%s\n" "$DUMPBIN" >&6; }
6127 else
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 printf "%s\n" "no" >&6; }
6130 fi
6131
6132
6133 test -n "$DUMPBIN" && break
6134 done
6135 fi
6136 if test -z "$DUMPBIN"; then
6137 ac_ct_DUMPBIN=$DUMPBIN
6138 for ac_prog in dumpbin "link -dump"
6139 do
6140 # Extract the first word of "$ac_prog", so it can be a program name with args.
6141 set dummy $ac_prog; ac_word=$2
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143 printf %s "checking for $ac_word... " >&6; }
6144 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6145 then :
6146 printf %s "(cached) " >&6
6147 else case e in #(
6148 e) if test -n "$ac_ct_DUMPBIN"; then
6149 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154 IFS=$as_save_IFS
6155 case $as_dir in #(((
6156 '') as_dir=./ ;;
6157 */) ;;
6158 *) as_dir=$as_dir/ ;;
6159 esac
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6162 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170 fi ;;
6171 esac
6172 fi
6173 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6174 if test -n "$ac_ct_DUMPBIN"; then
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6176 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6177 else
6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 printf "%s\n" "no" >&6; }
6180 fi
6181
6182
6183 test -n "$ac_ct_DUMPBIN" && break
6184 done
6185
6186 if test "x$ac_ct_DUMPBIN" = x; then
6187 DUMPBIN=":"
6188 else
6189 case $cross_compiling:$ac_tool_warned in
6190 yes:)
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6192 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6193 ac_tool_warned=yes ;;
6194 esac
6195 DUMPBIN=$ac_ct_DUMPBIN
6196 fi
6197 fi
6198
6199 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6200 *COFF*)
6201 DUMPBIN="$DUMPBIN -symbols -headers"
6202 ;;
6203 *)
6204 DUMPBIN=:
6205 ;;
6206 esac
6207 fi
6208
6209 if test : != "$DUMPBIN"; then
6210 NM=$DUMPBIN
6211 fi
6212 fi
6213 test -z "$NM" && NM=nm
6214
6215
6216
6217
6218
6219
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6221 printf %s "checking the name lister ($NM) interface... " >&6; }
6222 if test ${lt_cv_nm_interface+y}
6223 then :
6224 printf %s "(cached) " >&6
6225 else case e in #(
6226 e) lt_cv_nm_interface="BSD nm"
6227 echo "int some_variable = 0;" > conftest.$ac_ext
6228 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6229 (eval "$ac_compile" 2>conftest.err)
6230 cat conftest.err >&5
6231 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6232 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6233 cat conftest.err >&5
6234 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6235 cat conftest.out >&5
6236 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6237 lt_cv_nm_interface="MS dumpbin"
6238 fi
6239 rm -f conftest* ;;
6240 esac
6241 fi
6242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6243 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6244
6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6246 printf %s "checking whether ln -s works... " >&6; }
6247 LN_S=$as_ln_s
6248 if test "$LN_S" = "ln -s"; then
6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6250 printf "%s\n" "yes" >&6; }
6251 else
6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6253 printf "%s\n" "no, using $LN_S" >&6; }
6254 fi
6255
6256 # find the maximum length of command line arguments
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6258 printf %s "checking the maximum length of command line arguments... " >&6; }
6259 if test ${lt_cv_sys_max_cmd_len+y}
6260 then :
6261 printf %s "(cached) " >&6
6262 else case e in #(
6263 e) i=0
6264 teststring=ABCD
6265
6266 case $build_os in
6267 msdosdjgpp*)
6268 # On DJGPP, this test can blow up pretty badly due to problems in libc
6269 # (any single argument exceeding 2000 bytes causes a buffer overrun
6270 # during glob expansion). Even if it were fixed, the result of this
6271 # check would be larger than it should be.
6272 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6273 ;;
6274
6275 gnu* | ironclad*)
6276 # Under GNU Hurd and Ironclad, this test is not required because there
6277 # is no limit to the length of command line arguments.
6278 # Libtool will interpret -1 as no limit whatsoever
6279 lt_cv_sys_max_cmd_len=-1;
6280 ;;
6281
6282 cygwin* | mingw* | windows* | cegcc*)
6283 # On Win9x/ME, this test blows up -- it succeeds, but takes
6284 # about 5 minutes as the teststring grows exponentially.
6285 # Worse, since 9x/ME are not pre-emptively multitasking,
6286 # you end up with a "frozen" computer, even though with patience
6287 # the test eventually succeeds (with a max line length of 256k).
6288 # Instead, let's just punt: use the minimum linelength reported by
6289 # all of the supported platforms: 8192 (on NT/2K/XP).
6290 lt_cv_sys_max_cmd_len=8192;
6291 ;;
6292
6293 mint*)
6294 # On MiNT this can take a long time and run out of memory.
6295 lt_cv_sys_max_cmd_len=8192;
6296 ;;
6297
6298 amigaos*)
6299 # On AmigaOS with pdksh, this test takes hours, literally.
6300 # So we just punt and use a minimum line length of 8192.
6301 lt_cv_sys_max_cmd_len=8192;
6302 ;;
6303
6304 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6305 # This has been around since 386BSD, at least. Likely further.
6306 if test -x /sbin/sysctl; then
6307 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6308 elif test -x /usr/sbin/sysctl; then
6309 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6310 else
6311 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6312 fi
6313 # And add a safety zone
6314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6316 ;;
6317
6318 interix*)
6319 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6320 lt_cv_sys_max_cmd_len=196608
6321 ;;
6322
6323 os2*)
6324 # The test takes a long time on OS/2.
6325 lt_cv_sys_max_cmd_len=8192
6326 ;;
6327
6328 osf*)
6329 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6330 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6331 # nice to cause kernel panics so lets avoid the loop below.
6332 # First set a reasonable default.
6333 lt_cv_sys_max_cmd_len=16384
6334 #
6335 if test -x /sbin/sysconfig; then
6336 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6337 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6338 esac
6339 fi
6340 ;;
6341 sco3.2v5*)
6342 lt_cv_sys_max_cmd_len=102400
6343 ;;
6344 sysv5* | sco5v6* | sysv4.2uw2*)
6345 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6346 if test -n "$kargmax"; then
6347 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6348 else
6349 lt_cv_sys_max_cmd_len=32768
6350 fi
6351 ;;
6352 *)
6353 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6354 if test -n "$lt_cv_sys_max_cmd_len" && \
6355 test undefined != "$lt_cv_sys_max_cmd_len"; then
6356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6358 else
6359 # Make teststring a little bigger before we do anything with it.
6360 # a 1K string should be a reasonable start.
6361 for i in 1 2 3 4 5 6 7 8; do
6362 teststring=$teststring$teststring
6363 done
6364 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6365 # If test is not a shell built-in, we'll probably end up computing a
6366 # maximum length that is only half of the actual maximum length, but
6367 # we can't tell.
6368 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6369 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6370 test 17 != "$i" # 1/2 MB should be enough
6371 do
6372 i=`expr $i + 1`
6373 teststring=$teststring$teststring
6374 done
6375 # Only check the string length outside the loop.
6376 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6377 teststring=
6378 # Add a significant safety factor because C++ compilers can tack on
6379 # massive amounts of additional arguments before passing them to the
6380 # linker. It appears as though 1/2 is a usable value.
6381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6382 fi
6383 ;;
6384 esac
6385 ;;
6386 esac
6387 fi
6388
6389 if test -n "$lt_cv_sys_max_cmd_len"; then
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6391 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6392 else
6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6394 printf "%s\n" "none" >&6; }
6395 fi
6396 max_cmd_len=$lt_cv_sys_max_cmd_len
6397
6398
6399
6400
6401
6402
6403 : ${CP="cp -f"}
6404 : ${MV="mv -f"}
6405 : ${RM="rm -f"}
6406
6407 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6408 lt_unset=unset
6409 else
6410 lt_unset=false
6411 fi
6412
6413
6414
6415
6416
6417 # test EBCDIC or ASCII
6418 case `echo X|tr X '\101'` in
6419 A) # ASCII based system
6420 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6421 lt_SP2NL='tr \040 \012'
6422 lt_NL2SP='tr \015\012 \040\040'
6423 ;;
6424 *) # EBCDIC based system
6425 lt_SP2NL='tr \100 \n'
6426 lt_NL2SP='tr \r\n \100\100'
6427 ;;
6428 esac
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6439 printf %s "checking how to convert $build file names to $host format... " >&6; }
6440 if test ${lt_cv_to_host_file_cmd+y}
6441 then :
6442 printf %s "(cached) " >&6
6443 else case e in #(
6444 e) case $host in
6445 *-*-mingw* )
6446 case $build in
6447 *-*-mingw* | *-*-windows* ) # actually msys
6448 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6449 ;;
6450 *-*-cygwin* )
6451 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6452 ;;
6453 * ) # otherwise, assume *nix
6454 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6455 ;;
6456 esac
6457 ;;
6458 *-*-cygwin* )
6459 case $build in
6460 *-*-mingw* | *-*-windows* ) # actually msys
6461 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6462 ;;
6463 *-*-cygwin* )
6464 lt_cv_to_host_file_cmd=func_convert_file_noop
6465 ;;
6466 * ) # otherwise, assume *nix
6467 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6468 ;;
6469 esac
6470 ;;
6471 * ) # unhandled hosts (and "normal" native builds)
6472 lt_cv_to_host_file_cmd=func_convert_file_noop
6473 ;;
6474 esac
6475 ;;
6476 esac
6477 fi
6478
6479 to_host_file_cmd=$lt_cv_to_host_file_cmd
6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6481 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6482
6483
6484
6485
6486
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6488 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6489 if test ${lt_cv_to_tool_file_cmd+y}
6490 then :
6491 printf %s "(cached) " >&6
6492 else case e in #(
6493 e) #assume ordinary cross tools, or native build.
6494 lt_cv_to_tool_file_cmd=func_convert_file_noop
6495 case $host in
6496 *-*-mingw* | *-*-windows* )
6497 case $build in
6498 *-*-mingw* | *-*-windows* ) # actually msys
6499 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6500 ;;
6501 esac
6502 ;;
6503 esac
6504 ;;
6505 esac
6506 fi
6507
6508 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6510 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6511
6512
6513
6514
6515
6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6517 printf %s "checking for $LD option to reload object files... " >&6; }
6518 if test ${lt_cv_ld_reload_flag+y}
6519 then :
6520 printf %s "(cached) " >&6
6521 else case e in #(
6522 e) lt_cv_ld_reload_flag='-r' ;;
6523 esac
6524 fi
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6526 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6527 reload_flag=$lt_cv_ld_reload_flag
6528 case $reload_flag in
6529 "" | " "*) ;;
6530 *) reload_flag=" $reload_flag" ;;
6531 esac
6532 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6533 case $host_os in
6534 cygwin* | mingw* | windows* | pw32* | cegcc*)
6535 if test yes != "$GCC"; then
6536 reload_cmds=false
6537 fi
6538 ;;
6539 darwin*)
6540 if test yes = "$GCC"; then
6541 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6542 else
6543 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6544 fi
6545 ;;
6546 esac
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556 # Extract the first word of "file", so it can be a program name with args.
6557 set dummy file; ac_word=$2
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559 printf %s "checking for $ac_word... " >&6; }
6560 if test ${ac_cv_prog_FILECMD+y}
6561 then :
6562 printf %s "(cached) " >&6
6563 else case e in #(
6564 e) if test -n "$FILECMD"; then
6565 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6566 else
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6569 do
6570 IFS=$as_save_IFS
6571 case $as_dir in #(((
6572 '') as_dir=./ ;;
6573 */) ;;
6574 *) as_dir=$as_dir/ ;;
6575 esac
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6578 ac_cv_prog_FILECMD="file"
6579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6587 fi ;;
6588 esac
6589 fi
6590 FILECMD=$ac_cv_prog_FILECMD
6591 if test -n "$FILECMD"; then
6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6593 printf "%s\n" "$FILECMD" >&6; }
6594 else
6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 printf "%s\n" "no" >&6; }
6597 fi
6598
6599
6600
6601
6602
6603
6604
6605
6606 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 printf %s "checking for $ac_word... " >&6; }
6611 if test ${ac_cv_prog_OBJDUMP+y}
6612 then :
6613 printf %s "(cached) " >&6
6614 else case e in #(
6615 e) if test -n "$OBJDUMP"; then
6616 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621 IFS=$as_save_IFS
6622 case $as_dir in #(((
6623 '') as_dir=./ ;;
6624 */) ;;
6625 *) as_dir=$as_dir/ ;;
6626 esac
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637 fi ;;
6638 esac
6639 fi
6640 OBJDUMP=$ac_cv_prog_OBJDUMP
6641 if test -n "$OBJDUMP"; then
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6643 printf "%s\n" "$OBJDUMP" >&6; }
6644 else
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 printf "%s\n" "no" >&6; }
6647 fi
6648
6649
6650 fi
6651 if test -z "$ac_cv_prog_OBJDUMP"; then
6652 ac_ct_OBJDUMP=$OBJDUMP
6653 # Extract the first word of "objdump", so it can be a program name with args.
6654 set dummy objdump; ac_word=$2
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 printf %s "checking for $ac_word... " >&6; }
6657 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6658 then :
6659 printf %s "(cached) " >&6
6660 else case e in #(
6661 e) if test -n "$ac_ct_OBJDUMP"; then
6662 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667 IFS=$as_save_IFS
6668 case $as_dir in #(((
6669 '') as_dir=./ ;;
6670 */) ;;
6671 *) as_dir=$as_dir/ ;;
6672 esac
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6675 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6677 break 2
6678 fi
6679 done
6680 done
6681 IFS=$as_save_IFS
6682
6683 fi ;;
6684 esac
6685 fi
6686 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6687 if test -n "$ac_ct_OBJDUMP"; then
6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6689 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6690 else
6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 printf "%s\n" "no" >&6; }
6693 fi
6694
6695 if test "x$ac_ct_OBJDUMP" = x; then
6696 OBJDUMP="false"
6697 else
6698 case $cross_compiling:$ac_tool_warned in
6699 yes:)
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6701 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6702 ac_tool_warned=yes ;;
6703 esac
6704 OBJDUMP=$ac_ct_OBJDUMP
6705 fi
6706 else
6707 OBJDUMP="$ac_cv_prog_OBJDUMP"
6708 fi
6709
6710 test -z "$OBJDUMP" && OBJDUMP=objdump
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6721 printf %s "checking how to recognize dependent libraries... " >&6; }
6722 if test ${lt_cv_deplibs_check_method+y}
6723 then :
6724 printf %s "(cached) " >&6
6725 else case e in #(
6726 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6727 lt_cv_file_magic_test_file=
6728 lt_cv_deplibs_check_method='unknown'
6729 # Need to set the preceding variable on all platforms that support
6730 # interlibrary dependencies.
6731 # 'none' -- dependencies not supported.
6732 # 'unknown' -- same as none, but documents that we really don't know.
6733 # 'pass_all' -- all dependencies passed with no checks.
6734 # 'file_magic [[regex]]' -- check by looking for files in library path
6735 # that responds to the $file_magic_cmd with a given extended regex.
6736 # If you have 'file' or equivalent on your system and you're not sure
6737 # whether 'pass_all' will *always* work, you probably want this one.
6738
6739 case $host_os in
6740 aix[4-9]*)
6741 lt_cv_deplibs_check_method=pass_all
6742 ;;
6743
6744 beos*)
6745 lt_cv_deplibs_check_method=pass_all
6746 ;;
6747
6748 bsdi[45]*)
6749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6750 lt_cv_file_magic_cmd='$FILECMD -L'
6751 lt_cv_file_magic_test_file=/shlib/libc.so
6752 ;;
6753
6754 cygwin*)
6755 # func_win32_libid is a shell function defined in ltmain.sh
6756 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6757 lt_cv_file_magic_cmd='func_win32_libid'
6758 ;;
6759
6760 mingw* | windows* | pw32*)
6761 # Base MSYS/MinGW do not provide the 'file' command needed by
6762 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6763 # unless we find 'file', for example because we are cross-compiling.
6764 if ( file / ) >/dev/null 2>&1; then
6765 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6766 lt_cv_file_magic_cmd='func_win32_libid'
6767 else
6768 # Keep this pattern in sync with the one in func_win32_libid.
6769 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6770 lt_cv_file_magic_cmd='$OBJDUMP -f'
6771 fi
6772 ;;
6773
6774 cegcc*)
6775 # use the weaker test based on 'objdump'. See mingw*.
6776 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6777 lt_cv_file_magic_cmd='$OBJDUMP -f'
6778 ;;
6779
6780 darwin* | rhapsody*)
6781 lt_cv_deplibs_check_method=pass_all
6782 ;;
6783
6784 freebsd* | dragonfly* | midnightbsd*)
6785 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6786 case $host_cpu in
6787 i*86 )
6788 # Not sure whether the presence of OpenBSD here was a mistake.
6789 # Let's accept both of them until this is cleared up.
6790 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6791 lt_cv_file_magic_cmd=$FILECMD
6792 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6793 ;;
6794 esac
6795 else
6796 lt_cv_deplibs_check_method=pass_all
6797 fi
6798 ;;
6799
6800 haiku*)
6801 lt_cv_deplibs_check_method=pass_all
6802 ;;
6803
6804 hpux10.20* | hpux11*)
6805 lt_cv_file_magic_cmd=$FILECMD
6806 case $host_cpu in
6807 ia64*)
6808 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6809 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6810 ;;
6811 hppa*64*)
6812 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]'
6813 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6814 ;;
6815 *)
6816 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6817 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6818 ;;
6819 esac
6820 ;;
6821
6822 interix[3-9]*)
6823 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6825 ;;
6826
6827 irix5* | irix6* | nonstopux*)
6828 case $LD in
6829 *-32|*"-32 ") libmagic=32-bit;;
6830 *-n32|*"-n32 ") libmagic=N32;;
6831 *-64|*"-64 ") libmagic=64-bit;;
6832 *) libmagic=never-match;;
6833 esac
6834 lt_cv_deplibs_check_method=pass_all
6835 ;;
6836
6837 # This must be glibc/ELF.
6838 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6839 lt_cv_deplibs_check_method=pass_all
6840 ;;
6841
6842 *-mlibc)
6843 lt_cv_deplibs_check_method=pass_all
6844 ;;
6845
6846 netbsd* | netbsdelf*-gnu)
6847 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6849 else
6850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6851 fi
6852 ;;
6853
6854 newos6*)
6855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6856 lt_cv_file_magic_cmd=$FILECMD
6857 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6858 ;;
6859
6860 *nto* | *qnx*)
6861 lt_cv_deplibs_check_method=pass_all
6862 ;;
6863
6864 openbsd*)
6865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6867 else
6868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6869 fi
6870 ;;
6871
6872 osf3* | osf4* | osf5*)
6873 lt_cv_deplibs_check_method=pass_all
6874 ;;
6875
6876 rdos*)
6877 lt_cv_deplibs_check_method=pass_all
6878 ;;
6879
6880 serenity*)
6881 lt_cv_deplibs_check_method=pass_all
6882 ;;
6883
6884 solaris*)
6885 lt_cv_deplibs_check_method=pass_all
6886 ;;
6887
6888 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6889 lt_cv_deplibs_check_method=pass_all
6890 ;;
6891
6892 sysv4 | sysv4.3*)
6893 case $host_vendor in
6894 motorola)
6895 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]'
6896 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6897 ;;
6898 ncr)
6899 lt_cv_deplibs_check_method=pass_all
6900 ;;
6901 sequent)
6902 lt_cv_file_magic_cmd='/bin/file'
6903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6904 ;;
6905 sni)
6906 lt_cv_file_magic_cmd='/bin/file'
6907 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6908 lt_cv_file_magic_test_file=/lib/libc.so
6909 ;;
6910 siemens)
6911 lt_cv_deplibs_check_method=pass_all
6912 ;;
6913 pc)
6914 lt_cv_deplibs_check_method=pass_all
6915 ;;
6916 esac
6917 ;;
6918
6919 tpf*)
6920 lt_cv_deplibs_check_method=pass_all
6921 ;;
6922 os2*)
6923 lt_cv_deplibs_check_method=pass_all
6924 ;;
6925 esac
6926 ;;
6927 esac
6928 fi
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6930 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6931
6932 file_magic_glob=
6933 want_nocaseglob=no
6934 if test "$build" = "$host"; then
6935 case $host_os in
6936 mingw* | windows* | pw32*)
6937 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6938 want_nocaseglob=yes
6939 else
6940 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6941 fi
6942 ;;
6943 esac
6944 fi
6945
6946 file_magic_cmd=$lt_cv_file_magic_cmd
6947 deplibs_check_method=$lt_cv_deplibs_check_method
6948 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971 if test -n "$ac_tool_prefix"; then
6972 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6973 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 printf %s "checking for $ac_word... " >&6; }
6976 if test ${ac_cv_prog_DLLTOOL+y}
6977 then :
6978 printf %s "(cached) " >&6
6979 else case e in #(
6980 e) if test -n "$DLLTOOL"; then
6981 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986 IFS=$as_save_IFS
6987 case $as_dir in #(((
6988 '') as_dir=./ ;;
6989 */) ;;
6990 *) as_dir=$as_dir/ ;;
6991 esac
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6994 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998 done
6999 done
7000 IFS=$as_save_IFS
7001
7002 fi ;;
7003 esac
7004 fi
7005 DLLTOOL=$ac_cv_prog_DLLTOOL
7006 if test -n "$DLLTOOL"; then
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7008 printf "%s\n" "$DLLTOOL" >&6; }
7009 else
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 printf "%s\n" "no" >&6; }
7012 fi
7013
7014
7015 fi
7016 if test -z "$ac_cv_prog_DLLTOOL"; then
7017 ac_ct_DLLTOOL=$DLLTOOL
7018 # Extract the first word of "dlltool", so it can be a program name with args.
7019 set dummy dlltool; ac_word=$2
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 printf %s "checking for $ac_word... " >&6; }
7022 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7023 then :
7024 printf %s "(cached) " >&6
7025 else case e in #(
7026 e) if test -n "$ac_ct_DLLTOOL"; then
7027 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032 IFS=$as_save_IFS
7033 case $as_dir in #(((
7034 '') as_dir=./ ;;
7035 */) ;;
7036 *) as_dir=$as_dir/ ;;
7037 esac
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7040 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7042 break 2
7043 fi
7044 done
7045 done
7046 IFS=$as_save_IFS
7047
7048 fi ;;
7049 esac
7050 fi
7051 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7052 if test -n "$ac_ct_DLLTOOL"; then
7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7054 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7055 else
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 printf "%s\n" "no" >&6; }
7058 fi
7059
7060 if test "x$ac_ct_DLLTOOL" = x; then
7061 DLLTOOL="false"
7062 else
7063 case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069 DLLTOOL=$ac_ct_DLLTOOL
7070 fi
7071 else
7072 DLLTOOL="$ac_cv_prog_DLLTOOL"
7073 fi
7074
7075 test -z "$DLLTOOL" && DLLTOOL=dlltool
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7087 printf %s "checking how to associate runtime and link libraries... " >&6; }
7088 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7089 then :
7090 printf %s "(cached) " >&6
7091 else case e in #(
7092 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7093
7094 case $host_os in
7095 cygwin* | mingw* | windows* | pw32* | cegcc*)
7096 # two different shell functions defined in ltmain.sh;
7097 # decide which one to use based on capabilities of $DLLTOOL
7098 case `$DLLTOOL --help 2>&1` in
7099 *--identify-strict*)
7100 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7101 ;;
7102 *)
7103 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7104 ;;
7105 esac
7106 ;;
7107 *)
7108 # fallback: assume linklib IS sharedlib
7109 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7110 ;;
7111 esac
7112 ;;
7113 esac
7114 fi
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7116 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7117 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7118 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7119
7120
7121
7122
7123
7124
7125
7126 if test -n "$ac_tool_prefix"; then
7127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 printf %s "checking for $ac_word... " >&6; }
7131 if test ${ac_cv_prog_RANLIB+y}
7132 then :
7133 printf %s "(cached) " >&6
7134 else case e in #(
7135 e) if test -n "$RANLIB"; then
7136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141 IFS=$as_save_IFS
7142 case $as_dir in #(((
7143 '') as_dir=./ ;;
7144 */) ;;
7145 *) as_dir=$as_dir/ ;;
7146 esac
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7149 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157 fi ;;
7158 esac
7159 fi
7160 RANLIB=$ac_cv_prog_RANLIB
7161 if test -n "$RANLIB"; then
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7163 printf "%s\n" "$RANLIB" >&6; }
7164 else
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 printf "%s\n" "no" >&6; }
7167 fi
7168
7169
7170 fi
7171 if test -z "$ac_cv_prog_RANLIB"; then
7172 ac_ct_RANLIB=$RANLIB
7173 # Extract the first word of "ranlib", so it can be a program name with args.
7174 set dummy ranlib; ac_word=$2
7175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 printf %s "checking for $ac_word... " >&6; }
7177 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7178 then :
7179 printf %s "(cached) " >&6
7180 else case e in #(
7181 e) if test -n "$ac_ct_RANLIB"; then
7182 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187 IFS=$as_save_IFS
7188 case $as_dir in #(((
7189 '') as_dir=./ ;;
7190 */) ;;
7191 *) as_dir=$as_dir/ ;;
7192 esac
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_ac_ct_RANLIB="ranlib"
7196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi ;;
7204 esac
7205 fi
7206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7207 if test -n "$ac_ct_RANLIB"; then
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7209 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7210 else
7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 printf "%s\n" "no" >&6; }
7213 fi
7214
7215 if test "x$ac_ct_RANLIB" = x; then
7216 RANLIB=":"
7217 else
7218 case $cross_compiling:$ac_tool_warned in
7219 yes:)
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222 ac_tool_warned=yes ;;
7223 esac
7224 RANLIB=$ac_ct_RANLIB
7225 fi
7226 else
7227 RANLIB="$ac_cv_prog_RANLIB"
7228 fi
7229
7230 if test -n "$ac_tool_prefix"; then
7231 for ac_prog in ar
7232 do
7233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 printf %s "checking for $ac_word... " >&6; }
7237 if test ${ac_cv_prog_AR+y}
7238 then :
7239 printf %s "(cached) " >&6
7240 else case e in #(
7241 e) if test -n "$AR"; then
7242 ac_cv_prog_AR="$AR" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247 IFS=$as_save_IFS
7248 case $as_dir in #(((
7249 '') as_dir=./ ;;
7250 */) ;;
7251 *) as_dir=$as_dir/ ;;
7252 esac
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7257 break 2
7258 fi
7259 done
7260 done
7261 IFS=$as_save_IFS
7262
7263 fi ;;
7264 esac
7265 fi
7266 AR=$ac_cv_prog_AR
7267 if test -n "$AR"; then
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7269 printf "%s\n" "$AR" >&6; }
7270 else
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 printf "%s\n" "no" >&6; }
7273 fi
7274
7275
7276 test -n "$AR" && break
7277 done
7278 fi
7279 if test -z "$AR"; then
7280 ac_ct_AR=$AR
7281 for ac_prog in ar
7282 do
7283 # Extract the first word of "$ac_prog", so it can be a program name with args.
7284 set dummy $ac_prog; ac_word=$2
7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 printf %s "checking for $ac_word... " >&6; }
7287 if test ${ac_cv_prog_ac_ct_AR+y}
7288 then :
7289 printf %s "(cached) " >&6
7290 else case e in #(
7291 e) if test -n "$ac_ct_AR"; then
7292 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297 IFS=$as_save_IFS
7298 case $as_dir in #(((
7299 '') as_dir=./ ;;
7300 */) ;;
7301 *) as_dir=$as_dir/ ;;
7302 esac
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7305 ac_cv_prog_ac_ct_AR="$ac_prog"
7306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7307 break 2
7308 fi
7309 done
7310 done
7311 IFS=$as_save_IFS
7312
7313 fi ;;
7314 esac
7315 fi
7316 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7317 if test -n "$ac_ct_AR"; then
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7319 printf "%s\n" "$ac_ct_AR" >&6; }
7320 else
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 printf "%s\n" "no" >&6; }
7323 fi
7324
7325
7326 test -n "$ac_ct_AR" && break
7327 done
7328
7329 if test "x$ac_ct_AR" = x; then
7330 AR="false"
7331 else
7332 case $cross_compiling:$ac_tool_warned in
7333 yes:)
7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7335 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7336 ac_tool_warned=yes ;;
7337 esac
7338 AR=$ac_ct_AR
7339 fi
7340 fi
7341
7342 : ${AR=ar}
7343
7344
7345
7346
7347
7348
7349 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7350 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7351 # higher priority because that's what people were doing historically (setting
7352 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7353 # variable obsoleted/removed.
7354
7355 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7356 lt_ar_flags=$AR_FLAGS
7357
7358
7359
7360
7361
7362
7363 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7364 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7365
7366
7367
7368
7369
7370
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7372 printf %s "checking for archiver @FILE support... " >&6; }
7373 if test ${lt_cv_ar_at_file+y}
7374 then :
7375 printf %s "(cached) " >&6
7376 else case e in #(
7377 e) lt_cv_ar_at_file=no
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380
7381 int
7382 main (void)
7383 {
7384
7385 ;
7386 return 0;
7387 }
7388 _ACEOF
7389 if ac_fn_c_try_compile "$LINENO"
7390 then :
7391 echo conftest.$ac_objext > conftest.lst
7392 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7394 (eval $lt_ar_try) 2>&5
7395 ac_status=$?
7396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7397 test $ac_status = 0; }
7398 if test 0 -eq "$ac_status"; then
7399 # Ensure the archiver fails upon bogus file names.
7400 rm -f conftest.$ac_objext libconftest.a
7401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7402 (eval $lt_ar_try) 2>&5
7403 ac_status=$?
7404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405 test $ac_status = 0; }
7406 if test 0 -ne "$ac_status"; then
7407 lt_cv_ar_at_file=@
7408 fi
7409 fi
7410 rm -f conftest.* libconftest.a
7411
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7414 ;;
7415 esac
7416 fi
7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7418 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7419
7420 if test no = "$lt_cv_ar_at_file"; then
7421 archiver_list_spec=
7422 else
7423 archiver_list_spec=$lt_cv_ar_at_file
7424 fi
7425
7426
7427
7428
7429
7430
7431
7432 if test -n "$ac_tool_prefix"; then
7433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}strip; ac_word=$2
7435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 printf %s "checking for $ac_word... " >&6; }
7437 if test ${ac_cv_prog_STRIP+y}
7438 then :
7439 printf %s "(cached) " >&6
7440 else case e in #(
7441 e) if test -n "$STRIP"; then
7442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447 IFS=$as_save_IFS
7448 case $as_dir in #(((
7449 '') as_dir=./ ;;
7450 */) ;;
7451 *) as_dir=$as_dir/ ;;
7452 esac
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7457 break 2
7458 fi
7459 done
7460 done
7461 IFS=$as_save_IFS
7462
7463 fi ;;
7464 esac
7465 fi
7466 STRIP=$ac_cv_prog_STRIP
7467 if test -n "$STRIP"; then
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7469 printf "%s\n" "$STRIP" >&6; }
7470 else
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 printf "%s\n" "no" >&6; }
7473 fi
7474
7475
7476 fi
7477 if test -z "$ac_cv_prog_STRIP"; then
7478 ac_ct_STRIP=$STRIP
7479 # Extract the first word of "strip", so it can be a program name with args.
7480 set dummy strip; ac_word=$2
7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 printf %s "checking for $ac_word... " >&6; }
7483 if test ${ac_cv_prog_ac_ct_STRIP+y}
7484 then :
7485 printf %s "(cached) " >&6
7486 else case e in #(
7487 e) if test -n "$ac_ct_STRIP"; then
7488 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7489 else
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7492 do
7493 IFS=$as_save_IFS
7494 case $as_dir in #(((
7495 '') as_dir=./ ;;
7496 */) ;;
7497 *) as_dir=$as_dir/ ;;
7498 esac
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_ac_ct_STRIP="strip"
7502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505 done
7506 done
7507 IFS=$as_save_IFS
7508
7509 fi ;;
7510 esac
7511 fi
7512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7513 if test -n "$ac_ct_STRIP"; then
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7515 printf "%s\n" "$ac_ct_STRIP" >&6; }
7516 else
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 printf "%s\n" "no" >&6; }
7519 fi
7520
7521 if test "x$ac_ct_STRIP" = x; then
7522 STRIP=":"
7523 else
7524 case $cross_compiling:$ac_tool_warned in
7525 yes:)
7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7529 esac
7530 STRIP=$ac_ct_STRIP
7531 fi
7532 else
7533 STRIP="$ac_cv_prog_STRIP"
7534 fi
7535
7536 test -z "$STRIP" && STRIP=:
7537
7538
7539
7540
7541
7542
7543
7544 test -z "$RANLIB" && RANLIB=:
7545
7546
7547
7548
7549
7550
7551 # Determine commands to create old-style static archives.
7552 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7553 old_postinstall_cmds='chmod 644 $oldlib'
7554 old_postuninstall_cmds=
7555
7556 if test -n "$RANLIB"; then
7557 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7558 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7559 fi
7560
7561 case $host_os in
7562 darwin*)
7563 lock_old_archive_extraction=yes ;;
7564 *)
7565 lock_old_archive_extraction=no ;;
7566 esac
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606 # If no C compiler was specified, use CC.
7607 LTCC=${LTCC-"$CC"}
7608
7609 # If no C compiler flags were specified, use CFLAGS.
7610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7611
7612 # Allow CC to be a program name with arguments.
7613 compiler=$CC
7614
7615
7616 # Check for command to grab the raw symbol name followed by C symbol from nm.
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7618 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7619 if test ${lt_cv_sys_global_symbol_pipe+y}
7620 then :
7621 printf %s "(cached) " >&6
7622 else case e in #(
7623 e)
7624 # These are sane defaults that work on at least a few old systems.
7625 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7626
7627 # Character class describing NM global symbol codes.
7628 symcode='[BCDEGRST]'
7629
7630 # Regexp to match symbols that can be accessed directly from C.
7631 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7632
7633 # Define system-specific variables.
7634 case $host_os in
7635 aix*)
7636 symcode='[BCDT]'
7637 ;;
7638 cygwin* | mingw* | windows* | pw32* | cegcc*)
7639 symcode='[ABCDGISTW]'
7640 ;;
7641 hpux*)
7642 if test ia64 = "$host_cpu"; then
7643 symcode='[ABCDEGRST]'
7644 fi
7645 ;;
7646 irix* | nonstopux*)
7647 symcode='[BCDEGRST]'
7648 ;;
7649 osf*)
7650 symcode='[BCDEGQRST]'
7651 ;;
7652 solaris*)
7653 symcode='[BCDRT]'
7654 ;;
7655 sco3.2v5*)
7656 symcode='[DT]'
7657 ;;
7658 sysv4.2uw2*)
7659 symcode='[DT]'
7660 ;;
7661 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7662 symcode='[ABDT]'
7663 ;;
7664 sysv4)
7665 symcode='[DFNSTU]'
7666 ;;
7667 esac
7668
7669 # If we're using GNU nm, then use its standard symbol codes.
7670 case `$NM -V 2>&1` in
7671 *GNU* | *'with BFD'*)
7672 symcode='[ABCDGIRSTW]' ;;
7673 esac
7674
7675 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7676 # Gets list of data symbols to import.
7677 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7678 # Adjust the below global symbol transforms to fixup imported variables.
7679 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7680 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7681 lt_c_name_lib_hook="\
7682 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7683 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7684 else
7685 # Disable hooks by default.
7686 lt_cv_sys_global_symbol_to_import=
7687 lt_cdecl_hook=
7688 lt_c_name_hook=
7689 lt_c_name_lib_hook=
7690 fi
7691
7692 # Transform an extracted symbol line into a proper C declaration.
7693 # Some systems (esp. on ia64) link data and code symbols differently,
7694 # so use this general approach.
7695 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7696 $lt_cdecl_hook\
7697 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7698 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7699
7700 # Transform an extracted symbol line into symbol name and symbol address
7701 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7702 $lt_c_name_hook\
7703 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7704 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7705
7706 # Transform an extracted symbol line into symbol name with lib prefix and
7707 # symbol address.
7708 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7709 $lt_c_name_lib_hook\
7710 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7711 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7712 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7713
7714 # Handle CRLF in mingw tool chain
7715 opt_cr=
7716 case $build_os in
7717 mingw* | windows*)
7718 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7719 ;;
7720 esac
7721
7722 # Try without a prefix underscore, then with it.
7723 for ac_symprfx in "" "_"; do
7724
7725 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7726 symxfrm="\\1 $ac_symprfx\\2 \\2"
7727
7728 # Write the raw and C identifiers.
7729 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7730 # Fake it for dumpbin and say T for any non-static function,
7731 # D for any global variable and I for any imported variable.
7732 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7733 # which start with @ or ?.
7734 lt_cv_sys_global_symbol_pipe="$AWK '"\
7735 " {last_section=section; section=\$ 3};"\
7736 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7737 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7738 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7739 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7740 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7741 " \$ 0!~/External *\|/{next};"\
7742 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7743 " {if(hide[section]) next};"\
7744 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7745 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7746 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7747 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7748 " ' prfx=^$ac_symprfx"
7749 else
7750 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7751 fi
7752 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7753
7754 # Check to see that the pipe works correctly.
7755 pipe_works=no
7756
7757 rm -f conftest*
7758 cat > conftest.$ac_ext <<_LT_EOF
7759 #ifdef __cplusplus
7760 extern "C" {
7761 #endif
7762 char nm_test_var;
7763 void nm_test_func(void);
7764 void nm_test_func(void){}
7765 #ifdef __cplusplus
7766 }
7767 #endif
7768 int main(void){nm_test_var='a';nm_test_func();return(0);}
7769 _LT_EOF
7770
7771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7772 (eval $ac_compile) 2>&5
7773 ac_status=$?
7774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7775 test $ac_status = 0; }; then
7776 # Now try to grab the symbols.
7777 nlist=conftest.nm
7778 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7779 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7780 # Try sorting and uniquifying the output.
7781 if sort "$nlist" | uniq > "$nlist"T; then
7782 mv -f "$nlist"T "$nlist"
7783 else
7784 rm -f "$nlist"T
7785 fi
7786
7787 # Make sure that we snagged all the symbols we need.
7788 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7789 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7790 cat <<_LT_EOF > conftest.$ac_ext
7791 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7792 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7793 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7794 relocations are performed -- see ld's documentation on pseudo-relocs. */
7795 # define LT_DLSYM_CONST
7796 #elif defined __osf__
7797 /* This system does not cope well with relocations in const data. */
7798 # define LT_DLSYM_CONST
7799 #else
7800 # define LT_DLSYM_CONST const
7801 #endif
7802
7803 #ifdef __cplusplus
7804 extern "C" {
7805 #endif
7806
7807 _LT_EOF
7808 # Now generate the symbol file.
7809 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7810
7811 cat <<_LT_EOF >> conftest.$ac_ext
7812
7813 /* The mapping between symbol names and symbols. */
7814 LT_DLSYM_CONST struct {
7815 const char *name;
7816 void *address;
7817 }
7818 lt__PROGRAM__LTX_preloaded_symbols[] =
7819 {
7820 { "@PROGRAM@", (void *) 0 },
7821 _LT_EOF
7822 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7823 cat <<\_LT_EOF >> conftest.$ac_ext
7824 {0, (void *) 0}
7825 };
7826
7827 /* This works around a problem in FreeBSD linker */
7828 #ifdef FREEBSD_WORKAROUND
7829 static const void *lt_preloaded_setup() {
7830 return lt__PROGRAM__LTX_preloaded_symbols;
7831 }
7832 #endif
7833
7834 #ifdef __cplusplus
7835 }
7836 #endif
7837 _LT_EOF
7838 # Now try linking the two files.
7839 mv conftest.$ac_objext conftstm.$ac_objext
7840 lt_globsym_save_LIBS=$LIBS
7841 lt_globsym_save_CFLAGS=$CFLAGS
7842 LIBS=conftstm.$ac_objext
7843 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7845 (eval $ac_link) 2>&5
7846 ac_status=$?
7847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7848 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7849 pipe_works=yes
7850 fi
7851 LIBS=$lt_globsym_save_LIBS
7852 CFLAGS=$lt_globsym_save_CFLAGS
7853 else
7854 echo "cannot find nm_test_func in $nlist" >&5
7855 fi
7856 else
7857 echo "cannot find nm_test_var in $nlist" >&5
7858 fi
7859 else
7860 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7861 fi
7862 else
7863 echo "$progname: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7865 fi
7866 rm -rf conftest* conftst*
7867
7868 # Do not use the global_symbol_pipe unless it works.
7869 if test yes = "$pipe_works"; then
7870 break
7871 else
7872 lt_cv_sys_global_symbol_pipe=
7873 fi
7874 done
7875 ;;
7876 esac
7877 fi
7878
7879 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7880 lt_cv_sys_global_symbol_to_cdecl=
7881 fi
7882 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7884 printf "%s\n" "failed" >&6; }
7885 else
7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7887 printf "%s\n" "ok" >&6; }
7888 fi
7889
7890 # Response file support.
7891 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7892 nm_file_list_spec='@'
7893 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7894 nm_file_list_spec='@'
7895 fi
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7934 printf %s "checking for sysroot... " >&6; }
7935
7936 # Check whether --with-sysroot was given.
7937 if test ${with_sysroot+y}
7938 then :
7939 withval=$with_sysroot;
7940 else case e in #(
7941 e) with_sysroot=no ;;
7942 esac
7943 fi
7944
7945
7946 lt_sysroot=
7947 case $with_sysroot in #(
7948 yes)
7949 if test yes = "$GCC"; then
7950 # Trim trailing / since we'll always append absolute paths and we want
7951 # to avoid //, if only for less confusing output for the user.
7952 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7953 fi
7954 ;; #(
7955 /*)
7956 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7957 ;; #(
7958 no|'')
7959 ;; #(
7960 *)
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7962 printf "%s\n" "$with_sysroot" >&6; }
7963 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7964 ;;
7965 esac
7966
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7968 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7969
7970
7971
7972
7973
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7975 printf %s "checking for a working dd... " >&6; }
7976 if test ${ac_cv_path_lt_DD+y}
7977 then :
7978 printf %s "(cached) " >&6
7979 else case e in #(
7980 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7981 cat conftest.i conftest.i >conftest2.i
7982 : ${lt_DD:=$DD}
7983 if test -z "$lt_DD"; then
7984 ac_path_lt_DD_found=false
7985 # Loop through the user's path and test for each of PROGNAME-LIST
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989 IFS=$as_save_IFS
7990 case $as_dir in #(((
7991 '') as_dir=./ ;;
7992 */) ;;
7993 *) as_dir=$as_dir/ ;;
7994 esac
7995 for ac_prog in dd
7996 do
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7999 as_fn_executable_p "$ac_path_lt_DD" || continue
8000 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8001 cmp -s conftest.i conftest.out \
8002 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8003 fi
8004 $ac_path_lt_DD_found && break 3
8005 done
8006 done
8007 done
8008 IFS=$as_save_IFS
8009 if test -z "$ac_cv_path_lt_DD"; then
8010 :
8011 fi
8012 else
8013 ac_cv_path_lt_DD=$lt_DD
8014 fi
8015
8016 rm -f conftest.i conftest2.i conftest.out ;;
8017 esac
8018 fi
8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8020 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8021
8022
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8024 printf %s "checking how to truncate binary pipes... " >&6; }
8025 if test ${lt_cv_truncate_bin+y}
8026 then :
8027 printf %s "(cached) " >&6
8028 else case e in #(
8029 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8030 cat conftest.i conftest.i >conftest2.i
8031 lt_cv_truncate_bin=
8032 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8033 cmp -s conftest.i conftest.out \
8034 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8035 fi
8036 rm -f conftest.i conftest2.i conftest.out
8037 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8038 esac
8039 fi
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8041 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8042
8043
8044
8045
8046
8047
8048
8049 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8050 func_cc_basename ()
8051 {
8052 for cc_temp in $*""; do
8053 case $cc_temp in
8054 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8055 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8056 \-*) ;;
8057 *) break;;
8058 esac
8059 done
8060 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8061 }
8062
8063 # Check whether --enable-libtool-lock was given.
8064 if test ${enable_libtool_lock+y}
8065 then :
8066 enableval=$enable_libtool_lock;
8067 fi
8068
8069 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8070
8071 # Some flags need to be propagated to the compiler or linker for good
8072 # libtool support.
8073 case $host in
8074 ia64-*-hpux*)
8075 # Find out what ABI is being produced by ac_compile, and set mode
8076 # options accordingly.
8077 echo 'int i;' > conftest.$ac_ext
8078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8079 (eval $ac_compile) 2>&5
8080 ac_status=$?
8081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8082 test $ac_status = 0; }; then
8083 case `$FILECMD conftest.$ac_objext` in
8084 *ELF-32*)
8085 HPUX_IA64_MODE=32
8086 ;;
8087 *ELF-64*)
8088 HPUX_IA64_MODE=64
8089 ;;
8090 esac
8091 fi
8092 rm -rf conftest*
8093 ;;
8094 *-*-irix6*)
8095 # Find out what ABI is being produced by ac_compile, and set linker
8096 # options accordingly.
8097 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8099 (eval $ac_compile) 2>&5
8100 ac_status=$?
8101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8102 test $ac_status = 0; }; then
8103 if test yes = "$lt_cv_prog_gnu_ld"; then
8104 case `$FILECMD conftest.$ac_objext` in
8105 *32-bit*)
8106 LD="${LD-ld} -melf32bsmip"
8107 ;;
8108 *N32*)
8109 LD="${LD-ld} -melf32bmipn32"
8110 ;;
8111 *64-bit*)
8112 LD="${LD-ld} -melf64bmip"
8113 ;;
8114 esac
8115 else
8116 case `$FILECMD conftest.$ac_objext` in
8117 *32-bit*)
8118 LD="${LD-ld} -32"
8119 ;;
8120 *N32*)
8121 LD="${LD-ld} -n32"
8122 ;;
8123 *64-bit*)
8124 LD="${LD-ld} -64"
8125 ;;
8126 esac
8127 fi
8128 fi
8129 rm -rf conftest*
8130 ;;
8131
8132 mips64*-*linux*)
8133 # Find out what ABI is being produced by ac_compile, and set linker
8134 # options accordingly.
8135 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8137 (eval $ac_compile) 2>&5
8138 ac_status=$?
8139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140 test $ac_status = 0; }; then
8141 emul=elf
8142 case `$FILECMD conftest.$ac_objext` in
8143 *32-bit*)
8144 emul="${emul}32"
8145 ;;
8146 *64-bit*)
8147 emul="${emul}64"
8148 ;;
8149 esac
8150 case `$FILECMD conftest.$ac_objext` in
8151 *MSB*)
8152 emul="${emul}btsmip"
8153 ;;
8154 *LSB*)
8155 emul="${emul}ltsmip"
8156 ;;
8157 esac
8158 case `$FILECMD conftest.$ac_objext` in
8159 *N32*)
8160 emul="${emul}n32"
8161 ;;
8162 esac
8163 LD="${LD-ld} -m $emul"
8164 fi
8165 rm -rf conftest*
8166 ;;
8167
8168 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8169 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8170 # Find out what ABI is being produced by ac_compile, and set linker
8171 # options accordingly. Note that the listed cases only cover the
8172 # situations where additional linker options are needed (such as when
8173 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8174 # vice versa); the common cases where no linker options are needed do
8175 # not appear in the list.
8176 echo 'int i;' > conftest.$ac_ext
8177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8178 (eval $ac_compile) 2>&5
8179 ac_status=$?
8180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8181 test $ac_status = 0; }; then
8182 case `$FILECMD conftest.o` in
8183 *32-bit*)
8184 case $host in
8185 x86_64-*kfreebsd*-gnu)
8186 LD="${LD-ld} -m elf_i386_fbsd"
8187 ;;
8188 x86_64-*linux*|x86_64-gnu*)
8189 case `$FILECMD conftest.o` in
8190 *x86-64*)
8191 LD="${LD-ld} -m elf32_x86_64"
8192 ;;
8193 *)
8194 LD="${LD-ld} -m elf_i386"
8195 ;;
8196 esac
8197 ;;
8198 powerpc64le-*linux*)
8199 LD="${LD-ld} -m elf32lppclinux"
8200 ;;
8201 powerpc64-*linux*)
8202 LD="${LD-ld} -m elf32ppclinux"
8203 ;;
8204 s390x-*linux*)
8205 LD="${LD-ld} -m elf_s390"
8206 ;;
8207 sparc64-*linux*)
8208 LD="${LD-ld} -m elf32_sparc"
8209 ;;
8210 esac
8211 ;;
8212 *64-bit*)
8213 case $host in
8214 x86_64-*kfreebsd*-gnu)
8215 LD="${LD-ld} -m elf_x86_64_fbsd"
8216 ;;
8217 x86_64-*linux*|x86_64-gnu*)
8218 LD="${LD-ld} -m elf_x86_64"
8219 ;;
8220 powerpcle-*linux*)
8221 LD="${LD-ld} -m elf64lppc"
8222 ;;
8223 powerpc-*linux*)
8224 LD="${LD-ld} -m elf64ppc"
8225 ;;
8226 s390*-*linux*|s390*-*tpf*)
8227 LD="${LD-ld} -m elf64_s390"
8228 ;;
8229 sparc*-*linux*)
8230 LD="${LD-ld} -m elf64_sparc"
8231 ;;
8232 esac
8233 ;;
8234 esac
8235 fi
8236 rm -rf conftest*
8237 ;;
8238
8239 *-*-sco3.2v5*)
8240 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8241 SAVE_CFLAGS=$CFLAGS
8242 CFLAGS="$CFLAGS -belf"
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8244 printf %s "checking whether the C compiler needs -belf... " >&6; }
8245 if test ${lt_cv_cc_needs_belf+y}
8246 then :
8247 printf %s "(cached) " >&6
8248 else case e in #(
8249 e) ac_ext=c
8250 ac_cpp='$CPP $CPPFLAGS'
8251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8254
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8257
8258 int
8259 main (void)
8260 {
8261
8262 ;
8263 return 0;
8264 }
8265 _ACEOF
8266 if ac_fn_c_try_link "$LINENO"
8267 then :
8268 lt_cv_cc_needs_belf=yes
8269 else case e in #(
8270 e) lt_cv_cc_needs_belf=no ;;
8271 esac
8272 fi
8273 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8274 conftest$ac_exeext conftest.$ac_ext
8275 ac_ext=c
8276 ac_cpp='$CPP $CPPFLAGS'
8277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8280 ;;
8281 esac
8282 fi
8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8284 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8285 if test yes != "$lt_cv_cc_needs_belf"; then
8286 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8287 CFLAGS=$SAVE_CFLAGS
8288 fi
8289 ;;
8290 *-*solaris*)
8291 # Find out what ABI is being produced by ac_compile, and set linker
8292 # options accordingly.
8293 echo 'int i;' > conftest.$ac_ext
8294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8295 (eval $ac_compile) 2>&5
8296 ac_status=$?
8297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8298 test $ac_status = 0; }; then
8299 case `$FILECMD conftest.o` in
8300 *64-bit*)
8301 case $lt_cv_prog_gnu_ld in
8302 yes*)
8303 case $host in
8304 i?86-*-solaris*|x86_64-*-solaris*)
8305 LD="${LD-ld} -m elf_x86_64"
8306 ;;
8307 sparc*-*-solaris*)
8308 LD="${LD-ld} -m elf64_sparc"
8309 ;;
8310 esac
8311 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8312 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8313 LD=${LD-ld}_sol2
8314 fi
8315 ;;
8316 *)
8317 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8318 LD="${LD-ld} -64"
8319 fi
8320 ;;
8321 esac
8322 ;;
8323 esac
8324 fi
8325 rm -rf conftest*
8326 ;;
8327 esac
8328
8329 need_locks=$enable_libtool_lock
8330
8331 if test -n "$ac_tool_prefix"; then
8332 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8333 set dummy ${ac_tool_prefix}mt; ac_word=$2
8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 printf %s "checking for $ac_word... " >&6; }
8336 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8337 then :
8338 printf %s "(cached) " >&6
8339 else case e in #(
8340 e) if test -n "$MANIFEST_TOOL"; then
8341 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8342 else
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8345 do
8346 IFS=$as_save_IFS
8347 case $as_dir in #(((
8348 '') as_dir=./ ;;
8349 */) ;;
8350 *) as_dir=$as_dir/ ;;
8351 esac
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8354 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8356 break 2
8357 fi
8358 done
8359 done
8360 IFS=$as_save_IFS
8361
8362 fi ;;
8363 esac
8364 fi
8365 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8366 if test -n "$MANIFEST_TOOL"; then
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8368 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8369 else
8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 printf "%s\n" "no" >&6; }
8372 fi
8373
8374
8375 fi
8376 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8377 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8378 # Extract the first word of "mt", so it can be a program name with args.
8379 set dummy mt; ac_word=$2
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 printf %s "checking for $ac_word... " >&6; }
8382 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8383 then :
8384 printf %s "(cached) " >&6
8385 else case e in #(
8386 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8387 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8388 else
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8391 do
8392 IFS=$as_save_IFS
8393 case $as_dir in #(((
8394 '') as_dir=./ ;;
8395 */) ;;
8396 *) as_dir=$as_dir/ ;;
8397 esac
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8400 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8402 break 2
8403 fi
8404 done
8405 done
8406 IFS=$as_save_IFS
8407
8408 fi ;;
8409 esac
8410 fi
8411 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8412 if test -n "$ac_ct_MANIFEST_TOOL"; then
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8414 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8415 else
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 printf "%s\n" "no" >&6; }
8418 fi
8419
8420 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8421 MANIFEST_TOOL=":"
8422 else
8423 case $cross_compiling:$ac_tool_warned in
8424 yes:)
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8428 esac
8429 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8430 fi
8431 else
8432 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8433 fi
8434
8435 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8437 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8438 if test ${lt_cv_path_manifest_tool+y}
8439 then :
8440 printf %s "(cached) " >&6
8441 else case e in #(
8442 e) lt_cv_path_manifest_tool=no
8443 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8444 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8445 cat conftest.err >&5
8446 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8447 lt_cv_path_manifest_tool=yes
8448 fi
8449 rm -f conftest* ;;
8450 esac
8451 fi
8452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8453 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8454 if test yes != "$lt_cv_path_manifest_tool"; then
8455 MANIFEST_TOOL=:
8456 fi
8457
8458
8459
8460
8461
8462
8463 case $host_os in
8464 rhapsody* | darwin*)
8465 if test -n "$ac_tool_prefix"; then
8466 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8467 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 printf %s "checking for $ac_word... " >&6; }
8470 if test ${ac_cv_prog_DSYMUTIL+y}
8471 then :
8472 printf %s "(cached) " >&6
8473 else case e in #(
8474 e) if test -n "$DSYMUTIL"; then
8475 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8476 else
8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478 for as_dir in $PATH
8479 do
8480 IFS=$as_save_IFS
8481 case $as_dir in #(((
8482 '') as_dir=./ ;;
8483 */) ;;
8484 *) as_dir=$as_dir/ ;;
8485 esac
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8488 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8490 break 2
8491 fi
8492 done
8493 done
8494 IFS=$as_save_IFS
8495
8496 fi ;;
8497 esac
8498 fi
8499 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8500 if test -n "$DSYMUTIL"; then
8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8502 printf "%s\n" "$DSYMUTIL" >&6; }
8503 else
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 printf "%s\n" "no" >&6; }
8506 fi
8507
8508
8509 fi
8510 if test -z "$ac_cv_prog_DSYMUTIL"; then
8511 ac_ct_DSYMUTIL=$DSYMUTIL
8512 # Extract the first word of "dsymutil", so it can be a program name with args.
8513 set dummy dsymutil; ac_word=$2
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 printf %s "checking for $ac_word... " >&6; }
8516 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8517 then :
8518 printf %s "(cached) " >&6
8519 else case e in #(
8520 e) if test -n "$ac_ct_DSYMUTIL"; then
8521 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8522 else
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 for as_dir in $PATH
8525 do
8526 IFS=$as_save_IFS
8527 case $as_dir in #(((
8528 '') as_dir=./ ;;
8529 */) ;;
8530 *) as_dir=$as_dir/ ;;
8531 esac
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8534 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8536 break 2
8537 fi
8538 done
8539 done
8540 IFS=$as_save_IFS
8541
8542 fi ;;
8543 esac
8544 fi
8545 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8546 if test -n "$ac_ct_DSYMUTIL"; then
8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8548 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8549 else
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 printf "%s\n" "no" >&6; }
8552 fi
8553
8554 if test "x$ac_ct_DSYMUTIL" = x; then
8555 DSYMUTIL=":"
8556 else
8557 case $cross_compiling:$ac_tool_warned in
8558 yes:)
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8560 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8561 ac_tool_warned=yes ;;
8562 esac
8563 DSYMUTIL=$ac_ct_DSYMUTIL
8564 fi
8565 else
8566 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8567 fi
8568
8569 if test -n "$ac_tool_prefix"; then
8570 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8571 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 printf %s "checking for $ac_word... " >&6; }
8574 if test ${ac_cv_prog_NMEDIT+y}
8575 then :
8576 printf %s "(cached) " >&6
8577 else case e in #(
8578 e) if test -n "$NMEDIT"; then
8579 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8580 else
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8583 do
8584 IFS=$as_save_IFS
8585 case $as_dir in #(((
8586 '') as_dir=./ ;;
8587 */) ;;
8588 *) as_dir=$as_dir/ ;;
8589 esac
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8594 break 2
8595 fi
8596 done
8597 done
8598 IFS=$as_save_IFS
8599
8600 fi ;;
8601 esac
8602 fi
8603 NMEDIT=$ac_cv_prog_NMEDIT
8604 if test -n "$NMEDIT"; then
8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8606 printf "%s\n" "$NMEDIT" >&6; }
8607 else
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 printf "%s\n" "no" >&6; }
8610 fi
8611
8612
8613 fi
8614 if test -z "$ac_cv_prog_NMEDIT"; then
8615 ac_ct_NMEDIT=$NMEDIT
8616 # Extract the first word of "nmedit", so it can be a program name with args.
8617 set dummy nmedit; ac_word=$2
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619 printf %s "checking for $ac_word... " >&6; }
8620 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8621 then :
8622 printf %s "(cached) " >&6
8623 else case e in #(
8624 e) if test -n "$ac_ct_NMEDIT"; then
8625 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8626 else
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 for as_dir in $PATH
8629 do
8630 IFS=$as_save_IFS
8631 case $as_dir in #(((
8632 '') as_dir=./ ;;
8633 */) ;;
8634 *) as_dir=$as_dir/ ;;
8635 esac
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8638 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8640 break 2
8641 fi
8642 done
8643 done
8644 IFS=$as_save_IFS
8645
8646 fi ;;
8647 esac
8648 fi
8649 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8650 if test -n "$ac_ct_NMEDIT"; then
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8652 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8653 else
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655 printf "%s\n" "no" >&6; }
8656 fi
8657
8658 if test "x$ac_ct_NMEDIT" = x; then
8659 NMEDIT=":"
8660 else
8661 case $cross_compiling:$ac_tool_warned in
8662 yes:)
8663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8664 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8665 ac_tool_warned=yes ;;
8666 esac
8667 NMEDIT=$ac_ct_NMEDIT
8668 fi
8669 else
8670 NMEDIT="$ac_cv_prog_NMEDIT"
8671 fi
8672
8673 if test -n "$ac_tool_prefix"; then
8674 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8675 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8677 printf %s "checking for $ac_word... " >&6; }
8678 if test ${ac_cv_prog_LIPO+y}
8679 then :
8680 printf %s "(cached) " >&6
8681 else case e in #(
8682 e) if test -n "$LIPO"; then
8683 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8684 else
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8687 do
8688 IFS=$as_save_IFS
8689 case $as_dir in #(((
8690 '') as_dir=./ ;;
8691 */) ;;
8692 *) as_dir=$as_dir/ ;;
8693 esac
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8696 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8698 break 2
8699 fi
8700 done
8701 done
8702 IFS=$as_save_IFS
8703
8704 fi ;;
8705 esac
8706 fi
8707 LIPO=$ac_cv_prog_LIPO
8708 if test -n "$LIPO"; then
8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8710 printf "%s\n" "$LIPO" >&6; }
8711 else
8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713 printf "%s\n" "no" >&6; }
8714 fi
8715
8716
8717 fi
8718 if test -z "$ac_cv_prog_LIPO"; then
8719 ac_ct_LIPO=$LIPO
8720 # Extract the first word of "lipo", so it can be a program name with args.
8721 set dummy lipo; ac_word=$2
8722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723 printf %s "checking for $ac_word... " >&6; }
8724 if test ${ac_cv_prog_ac_ct_LIPO+y}
8725 then :
8726 printf %s "(cached) " >&6
8727 else case e in #(
8728 e) if test -n "$ac_ct_LIPO"; then
8729 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8730 else
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8733 do
8734 IFS=$as_save_IFS
8735 case $as_dir in #(((
8736 '') as_dir=./ ;;
8737 */) ;;
8738 *) as_dir=$as_dir/ ;;
8739 esac
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8742 ac_cv_prog_ac_ct_LIPO="lipo"
8743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8744 break 2
8745 fi
8746 done
8747 done
8748 IFS=$as_save_IFS
8749
8750 fi ;;
8751 esac
8752 fi
8753 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8754 if test -n "$ac_ct_LIPO"; then
8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8756 printf "%s\n" "$ac_ct_LIPO" >&6; }
8757 else
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759 printf "%s\n" "no" >&6; }
8760 fi
8761
8762 if test "x$ac_ct_LIPO" = x; then
8763 LIPO=":"
8764 else
8765 case $cross_compiling:$ac_tool_warned in
8766 yes:)
8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8768 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8769 ac_tool_warned=yes ;;
8770 esac
8771 LIPO=$ac_ct_LIPO
8772 fi
8773 else
8774 LIPO="$ac_cv_prog_LIPO"
8775 fi
8776
8777 if test -n "$ac_tool_prefix"; then
8778 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8779 set dummy ${ac_tool_prefix}otool; ac_word=$2
8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 printf %s "checking for $ac_word... " >&6; }
8782 if test ${ac_cv_prog_OTOOL+y}
8783 then :
8784 printf %s "(cached) " >&6
8785 else case e in #(
8786 e) if test -n "$OTOOL"; then
8787 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8791 do
8792 IFS=$as_save_IFS
8793 case $as_dir in #(((
8794 '') as_dir=./ ;;
8795 */) ;;
8796 *) as_dir=$as_dir/ ;;
8797 esac
8798 for ac_exec_ext in '' $ac_executable_extensions; do
8799 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8800 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8802 break 2
8803 fi
8804 done
8805 done
8806 IFS=$as_save_IFS
8807
8808 fi ;;
8809 esac
8810 fi
8811 OTOOL=$ac_cv_prog_OTOOL
8812 if test -n "$OTOOL"; then
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8814 printf "%s\n" "$OTOOL" >&6; }
8815 else
8816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 printf "%s\n" "no" >&6; }
8818 fi
8819
8820
8821 fi
8822 if test -z "$ac_cv_prog_OTOOL"; then
8823 ac_ct_OTOOL=$OTOOL
8824 # Extract the first word of "otool", so it can be a program name with args.
8825 set dummy otool; ac_word=$2
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 printf %s "checking for $ac_word... " >&6; }
8828 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8829 then :
8830 printf %s "(cached) " >&6
8831 else case e in #(
8832 e) if test -n "$ac_ct_OTOOL"; then
8833 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8834 else
8835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 for as_dir in $PATH
8837 do
8838 IFS=$as_save_IFS
8839 case $as_dir in #(((
8840 '') as_dir=./ ;;
8841 */) ;;
8842 *) as_dir=$as_dir/ ;;
8843 esac
8844 for ac_exec_ext in '' $ac_executable_extensions; do
8845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8846 ac_cv_prog_ac_ct_OTOOL="otool"
8847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8848 break 2
8849 fi
8850 done
8851 done
8852 IFS=$as_save_IFS
8853
8854 fi ;;
8855 esac
8856 fi
8857 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8858 if test -n "$ac_ct_OTOOL"; then
8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8860 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8861 else
8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8863 printf "%s\n" "no" >&6; }
8864 fi
8865
8866 if test "x$ac_ct_OTOOL" = x; then
8867 OTOOL=":"
8868 else
8869 case $cross_compiling:$ac_tool_warned in
8870 yes:)
8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8872 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8873 ac_tool_warned=yes ;;
8874 esac
8875 OTOOL=$ac_ct_OTOOL
8876 fi
8877 else
8878 OTOOL="$ac_cv_prog_OTOOL"
8879 fi
8880
8881 if test -n "$ac_tool_prefix"; then
8882 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8883 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8885 printf %s "checking for $ac_word... " >&6; }
8886 if test ${ac_cv_prog_OTOOL64+y}
8887 then :
8888 printf %s "(cached) " >&6
8889 else case e in #(
8890 e) if test -n "$OTOOL64"; then
8891 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8892 else
8893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894 for as_dir in $PATH
8895 do
8896 IFS=$as_save_IFS
8897 case $as_dir in #(((
8898 '') as_dir=./ ;;
8899 */) ;;
8900 *) as_dir=$as_dir/ ;;
8901 esac
8902 for ac_exec_ext in '' $ac_executable_extensions; do
8903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8904 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8906 break 2
8907 fi
8908 done
8909 done
8910 IFS=$as_save_IFS
8911
8912 fi ;;
8913 esac
8914 fi
8915 OTOOL64=$ac_cv_prog_OTOOL64
8916 if test -n "$OTOOL64"; then
8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8918 printf "%s\n" "$OTOOL64" >&6; }
8919 else
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 printf "%s\n" "no" >&6; }
8922 fi
8923
8924
8925 fi
8926 if test -z "$ac_cv_prog_OTOOL64"; then
8927 ac_ct_OTOOL64=$OTOOL64
8928 # Extract the first word of "otool64", so it can be a program name with args.
8929 set dummy otool64; ac_word=$2
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 printf %s "checking for $ac_word... " >&6; }
8932 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8933 then :
8934 printf %s "(cached) " >&6
8935 else case e in #(
8936 e) if test -n "$ac_ct_OTOOL64"; then
8937 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8938 else
8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940 for as_dir in $PATH
8941 do
8942 IFS=$as_save_IFS
8943 case $as_dir in #(((
8944 '') as_dir=./ ;;
8945 */) ;;
8946 *) as_dir=$as_dir/ ;;
8947 esac
8948 for ac_exec_ext in '' $ac_executable_extensions; do
8949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8950 ac_cv_prog_ac_ct_OTOOL64="otool64"
8951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8952 break 2
8953 fi
8954 done
8955 done
8956 IFS=$as_save_IFS
8957
8958 fi ;;
8959 esac
8960 fi
8961 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8962 if test -n "$ac_ct_OTOOL64"; then
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8964 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8965 else
8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 printf "%s\n" "no" >&6; }
8968 fi
8969
8970 if test "x$ac_ct_OTOOL64" = x; then
8971 OTOOL64=":"
8972 else
8973 case $cross_compiling:$ac_tool_warned in
8974 yes:)
8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8976 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8977 ac_tool_warned=yes ;;
8978 esac
8979 OTOOL64=$ac_ct_OTOOL64
8980 fi
8981 else
8982 OTOOL64="$ac_cv_prog_OTOOL64"
8983 fi
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9012 printf %s "checking for -single_module linker flag... " >&6; }
9013 if test ${lt_cv_apple_cc_single_mod+y}
9014 then :
9015 printf %s "(cached) " >&6
9016 else case e in #(
9017 e) lt_cv_apple_cc_single_mod=no
9018 if test -z "$LT_MULTI_MODULE"; then
9019 # By default we will add the -single_module flag. You can override
9020 # by either setting the environment variable LT_MULTI_MODULE
9021 # non-empty at configure time, or by adding -multi_module to the
9022 # link flags.
9023 rm -rf libconftest.dylib*
9024 echo "int foo(void){return 1;}" > conftest.c
9025 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9026 -dynamiclib -Wl,-single_module conftest.c" >&5
9027 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9028 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9029 _lt_result=$?
9030 # If there is a non-empty error log, and "single_module"
9031 # appears in it, assume the flag caused a linker warning
9032 if test -s conftest.err && $GREP single_module conftest.err; then
9033 cat conftest.err >&5
9034 # Otherwise, if the output was created with a 0 exit code from
9035 # the compiler, it worked.
9036 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9037 lt_cv_apple_cc_single_mod=yes
9038 else
9039 cat conftest.err >&5
9040 fi
9041 rm -rf libconftest.dylib*
9042 rm -f conftest.*
9043 fi ;;
9044 esac
9045 fi
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9047 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9048
9049 # Feature test to disable chained fixups since it is not
9050 # compatible with '-undefined dynamic_lookup'
9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9052 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9053 if test ${lt_cv_support_no_fixup_chains+y}
9054 then :
9055 printf %s "(cached) " >&6
9056 else case e in #(
9057 e) save_LDFLAGS=$LDFLAGS
9058 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
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 lt_cv_support_no_fixup_chains=yes
9073 else case e in #(
9074 e) lt_cv_support_no_fixup_chains=no
9075 ;;
9076 esac
9077 fi
9078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9079 conftest$ac_exeext conftest.$ac_ext
9080 LDFLAGS=$save_LDFLAGS
9081
9082 ;;
9083 esac
9084 fi
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9086 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9087
9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9089 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9090 if test ${lt_cv_ld_exported_symbols_list+y}
9091 then :
9092 printf %s "(cached) " >&6
9093 else case e in #(
9094 e) lt_cv_ld_exported_symbols_list=no
9095 save_LDFLAGS=$LDFLAGS
9096 echo "_main" > conftest.sym
9097 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9100
9101 int
9102 main (void)
9103 {
9104
9105 ;
9106 return 0;
9107 }
9108 _ACEOF
9109 if ac_fn_c_try_link "$LINENO"
9110 then :
9111 lt_cv_ld_exported_symbols_list=yes
9112 else case e in #(
9113 e) lt_cv_ld_exported_symbols_list=no ;;
9114 esac
9115 fi
9116 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9117 conftest$ac_exeext conftest.$ac_ext
9118 LDFLAGS=$save_LDFLAGS
9119 ;;
9120 esac
9121 fi
9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9123 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9124
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9126 printf %s "checking for -force_load linker flag... " >&6; }
9127 if test ${lt_cv_ld_force_load+y}
9128 then :
9129 printf %s "(cached) " >&6
9130 else case e in #(
9131 e) lt_cv_ld_force_load=no
9132 cat > conftest.c << _LT_EOF
9133 int forced_loaded() { return 2;}
9134 _LT_EOF
9135 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9136 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9137 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9138 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9139 echo "$RANLIB libconftest.a" >&5
9140 $RANLIB libconftest.a 2>&5
9141 cat > conftest.c << _LT_EOF
9142 int main(void) { return 0;}
9143 _LT_EOF
9144 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9145 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9146 _lt_result=$?
9147 if test -s conftest.err && $GREP force_load conftest.err; then
9148 cat conftest.err >&5
9149 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9150 lt_cv_ld_force_load=yes
9151 else
9152 cat conftest.err >&5
9153 fi
9154 rm -f conftest.err libconftest.a conftest conftest.c
9155 rm -rf conftest.dSYM
9156 ;;
9157 esac
9158 fi
9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9160 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9161 case $host_os in
9162 rhapsody* | darwin1.[012])
9163 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9164 darwin1.*)
9165 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9166 darwin*)
9167 case $MACOSX_DEPLOYMENT_TARGET,$host in
9168 10.[012],*|,*powerpc*-darwin[5-8]*)
9169 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9170 *)
9171 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9172 if test yes = "$lt_cv_support_no_fixup_chains"; then
9173 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9174 fi
9175 ;;
9176 esac
9177 ;;
9178 esac
9179 if test yes = "$lt_cv_apple_cc_single_mod"; then
9180 _lt_dar_single_mod='$single_module'
9181 fi
9182 _lt_dar_needs_single_mod=no
9183 case $host_os in
9184 rhapsody* | darwin1.*)
9185 _lt_dar_needs_single_mod=yes ;;
9186 darwin*)
9187 # When targeting Mac OS X 10.4 (darwin 8) or later,
9188 # -single_module is the default and -multi_module is unsupported.
9189 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9190 # target any OS version that needs -single_module.
9191 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9192 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9193 _lt_dar_needs_single_mod=yes ;;
9194 esac
9195 ;;
9196 esac
9197 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9198 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9199 else
9200 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9201 fi
9202 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9203 _lt_dsymutil='~$DSYMUTIL $lib || :'
9204 else
9205 _lt_dsymutil=
9206 fi
9207 ;;
9208 esac
9209
9210 # func_munge_path_list VARIABLE PATH
9211 # -----------------------------------
9212 # VARIABLE is name of variable containing _space_ separated list of
9213 # directories to be munged by the contents of PATH, which is string
9214 # having a format:
9215 # "DIR[:DIR]:"
9216 # string "DIR[ DIR]" will be prepended to VARIABLE
9217 # ":DIR[:DIR]"
9218 # string "DIR[ DIR]" will be appended to VARIABLE
9219 # "DIRP[:DIRP]::[DIRA:]DIRA"
9220 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9221 # "DIRA[ DIRA]" will be appended to VARIABLE
9222 # "DIR[:DIR]"
9223 # VARIABLE will be replaced by "DIR[ DIR]"
9224 func_munge_path_list ()
9225 {
9226 case x$2 in
9227 x)
9228 ;;
9229 *:)
9230 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9231 ;;
9232 x:*)
9233 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9234 ;;
9235 *::*)
9236 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9237 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9238 ;;
9239 *)
9240 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9241 ;;
9242 esac
9243 }
9244
9245 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9246 "
9247 if test "x$ac_cv_header_dlfcn_h" = xyes
9248 then :
9249 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9250
9251 fi
9252
9253
9254
9255
9256
9257 # Set options
9258
9259
9260
9261 enable_dlopen=no
9262
9263
9264 enable_win32_dll=no
9265
9266
9267 # Check whether --enable-shared was given.
9268 if test ${enable_shared+y}
9269 then :
9270 enableval=$enable_shared; p=${PACKAGE-default}
9271 case $enableval in
9272 yes) enable_shared=yes ;;
9273 no) enable_shared=no ;;
9274 *)
9275 enable_shared=no
9276 # Look at the argument we got. We use all the common list separators.
9277 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9278 for pkg in $enableval; do
9279 IFS=$lt_save_ifs
9280 if test "X$pkg" = "X$p"; then
9281 enable_shared=yes
9282 fi
9283 done
9284 IFS=$lt_save_ifs
9285 ;;
9286 esac
9287 else case e in #(
9288 e) enable_shared=yes ;;
9289 esac
9290 fi
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300 # Check whether --enable-static was given.
9301 if test ${enable_static+y}
9302 then :
9303 enableval=$enable_static; p=${PACKAGE-default}
9304 case $enableval in
9305 yes) enable_static=yes ;;
9306 no) enable_static=no ;;
9307 *)
9308 enable_static=no
9309 # Look at the argument we got. We use all the common list separators.
9310 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9311 for pkg in $enableval; do
9312 IFS=$lt_save_ifs
9313 if test "X$pkg" = "X$p"; then
9314 enable_static=yes
9315 fi
9316 done
9317 IFS=$lt_save_ifs
9318 ;;
9319 esac
9320 else case e in #(
9321 e) enable_static=yes ;;
9322 esac
9323 fi
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333 # Check whether --enable-pic was given.
9334 if test ${enable_pic+y}
9335 then :
9336 enableval=$enable_pic; lt_p=${PACKAGE-default}
9337 case $enableval in
9338 yes|no) pic_mode=$enableval ;;
9339 *)
9340 pic_mode=default
9341 # Look at the argument we got. We use all the common list separators.
9342 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9343 for lt_pkg in $enableval; do
9344 IFS=$lt_save_ifs
9345 if test "X$lt_pkg" = "X$lt_p"; then
9346 pic_mode=yes
9347 fi
9348 done
9349 IFS=$lt_save_ifs
9350 ;;
9351 esac
9352 else case e in #(
9353 e) # Check whether --with-pic was given.
9354 if test ${with_pic+y}
9355 then :
9356 withval=$with_pic; lt_p=${PACKAGE-default}
9357 case $withval in
9358 yes|no) pic_mode=$withval ;;
9359 *)
9360 pic_mode=default
9361 # Look at the argument we got. We use all the common list separators.
9362 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9363 for lt_pkg in $withval; do
9364 IFS=$lt_save_ifs
9365 if test "X$lt_pkg" = "X$lt_p"; then
9366 pic_mode=yes
9367 fi
9368 done
9369 IFS=$lt_save_ifs
9370 ;;
9371 esac
9372 else case e in #(
9373 e) pic_mode=default ;;
9374 esac
9375 fi
9376
9377 ;;
9378 esac
9379 fi
9380
9381
9382
9383
9384
9385
9386
9387
9388 # Check whether --enable-fast-install was given.
9389 if test ${enable_fast_install+y}
9390 then :
9391 enableval=$enable_fast_install; p=${PACKAGE-default}
9392 case $enableval in
9393 yes) enable_fast_install=yes ;;
9394 no) enable_fast_install=no ;;
9395 *)
9396 enable_fast_install=no
9397 # Look at the argument we got. We use all the common list separators.
9398 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9399 for pkg in $enableval; do
9400 IFS=$lt_save_ifs
9401 if test "X$pkg" = "X$p"; then
9402 enable_fast_install=yes
9403 fi
9404 done
9405 IFS=$lt_save_ifs
9406 ;;
9407 esac
9408 else case e in #(
9409 e) enable_fast_install=yes ;;
9410 esac
9411 fi
9412
9413
9414
9415
9416
9417
9418
9419
9420 shared_archive_member_spec=
9421 case $host,$enable_shared in
9422 power*-*-aix[5-9]*,yes)
9423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9424 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9425 # Check whether --enable-aix-soname was given.
9426 if test ${enable_aix_soname+y}
9427 then :
9428 enableval=$enable_aix_soname; case $enableval in
9429 aix|svr4|both)
9430 ;;
9431 *)
9432 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9433 ;;
9434 esac
9435 lt_cv_with_aix_soname=$enable_aix_soname
9436 else case e in #(
9437 e) # Check whether --with-aix-soname was given.
9438 if test ${with_aix_soname+y}
9439 then :
9440 withval=$with_aix_soname; case $withval in
9441 aix|svr4|both)
9442 ;;
9443 *)
9444 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9445 ;;
9446 esac
9447 lt_cv_with_aix_soname=$with_aix_soname
9448 else case e in #(
9449 e) if test ${lt_cv_with_aix_soname+y}
9450 then :
9451 printf %s "(cached) " >&6
9452 else case e in #(
9453 e) lt_cv_with_aix_soname=aix ;;
9454 esac
9455 fi
9456 ;;
9457 esac
9458 fi
9459
9460 enable_aix_soname=$lt_cv_with_aix_soname ;;
9461 esac
9462 fi
9463
9464 with_aix_soname=$enable_aix_soname
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9466 printf "%s\n" "$with_aix_soname" >&6; }
9467 if test aix != "$with_aix_soname"; then
9468 # For the AIX way of multilib, we name the shared archive member
9469 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9470 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9471 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9472 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9473 if test 64 = "${OBJECT_MODE-32}"; then
9474 shared_archive_member_spec=shr_64
9475 else
9476 shared_archive_member_spec=shr
9477 fi
9478 fi
9479 ;;
9480 *)
9481 with_aix_soname=aix
9482 ;;
9483 esac
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494 # This can be used to rebuild libtool when needed
9495 LIBTOOL_DEPS=$ltmain
9496
9497 # Always use our own libtool.
9498 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529 test -z "$LN_S" && LN_S="ln -s"
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544 if test -n "${ZSH_VERSION+set}"; then
9545 setopt NO_GLOB_SUBST
9546 fi
9547
9548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9549 printf %s "checking for objdir... " >&6; }
9550 if test ${lt_cv_objdir+y}
9551 then :
9552 printf %s "(cached) " >&6
9553 else case e in #(
9554 e) rm -f .libs 2>/dev/null
9555 mkdir .libs 2>/dev/null
9556 if test -d .libs; then
9557 lt_cv_objdir=.libs
9558 else
9559 # MS-DOS does not allow filenames that begin with a dot.
9560 lt_cv_objdir=_libs
9561 fi
9562 rmdir .libs 2>/dev/null ;;
9563 esac
9564 fi
9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9566 printf "%s\n" "$lt_cv_objdir" >&6; }
9567 objdir=$lt_cv_objdir
9568
9569
9570
9571
9572
9573 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9574
9575
9576
9577
9578 case $host_os in
9579 aix3*)
9580 # AIX sometimes has problems with the GCC collect2 program. For some
9581 # reason, if we set the COLLECT_NAMES environment variable, the problems
9582 # vanish in a puff of smoke.
9583 if test set != "${COLLECT_NAMES+set}"; then
9584 COLLECT_NAMES=
9585 export COLLECT_NAMES
9586 fi
9587 ;;
9588 esac
9589
9590 # Global variables:
9591 ofile=libtool
9592 can_build_shared=yes
9593
9594 # All known linkers require a '.a' archive for static linking (except MSVC and
9595 # ICC, which need '.lib').
9596 libext=a
9597
9598 with_gnu_ld=$lt_cv_prog_gnu_ld
9599
9600 old_CC=$CC
9601 old_CFLAGS=$CFLAGS
9602
9603 # Set sane defaults for various variables
9604 test -z "$CC" && CC=cc
9605 test -z "$LTCC" && LTCC=$CC
9606 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9607 test -z "$LD" && LD=ld
9608 test -z "$ac_objext" && ac_objext=o
9609
9610 func_cc_basename $compiler
9611 cc_basename=$func_cc_basename_result
9612
9613
9614 # Only perform the check for file, if the check method requires it
9615 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9616 case $deplibs_check_method in
9617 file_magic*)
9618 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9620 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9621 if test ${lt_cv_path_MAGIC_CMD+y}
9622 then :
9623 printf %s "(cached) " >&6
9624 else case e in #(
9625 e) case $MAGIC_CMD in
9626 [\\/*] | ?:[\\/]*)
9627 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9628 ;;
9629 *)
9630 lt_save_MAGIC_CMD=$MAGIC_CMD
9631 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9632 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9633 for ac_dir in $ac_dummy; do
9634 IFS=$lt_save_ifs
9635 test -z "$ac_dir" && ac_dir=.
9636 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9637 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9638 if test -n "$file_magic_test_file"; then
9639 case $deplibs_check_method in
9640 "file_magic "*)
9641 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9642 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9643 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9644 $EGREP "$file_magic_regex" > /dev/null; then
9645 :
9646 else
9647 cat <<_LT_EOF 1>&2
9648
9649 *** Warning: the command libtool uses to detect shared libraries,
9650 *** $file_magic_cmd, produces output that libtool cannot recognize.
9651 *** The result is that libtool may fail to recognize shared libraries
9652 *** as such. This will affect the creation of libtool libraries that
9653 *** depend on shared libraries, but programs linked with such libtool
9654 *** libraries will work regardless of this problem. Nevertheless, you
9655 *** may want to report the problem to your system manager and/or to
9656 *** [email protected]
9657
9658 _LT_EOF
9659 fi ;;
9660 esac
9661 fi
9662 break
9663 fi
9664 done
9665 IFS=$lt_save_ifs
9666 MAGIC_CMD=$lt_save_MAGIC_CMD
9667 ;;
9668 esac ;;
9669 esac
9670 fi
9671
9672 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9673 if test -n "$MAGIC_CMD"; then
9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9675 printf "%s\n" "$MAGIC_CMD" >&6; }
9676 else
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9678 printf "%s\n" "no" >&6; }
9679 fi
9680
9681
9682
9683
9684
9685 if test -z "$lt_cv_path_MAGIC_CMD"; then
9686 if test -n "$ac_tool_prefix"; then
9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9688 printf %s "checking for file... " >&6; }
9689 if test ${lt_cv_path_MAGIC_CMD+y}
9690 then :
9691 printf %s "(cached) " >&6
9692 else case e in #(
9693 e) case $MAGIC_CMD in
9694 [\\/*] | ?:[\\/]*)
9695 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9696 ;;
9697 *)
9698 lt_save_MAGIC_CMD=$MAGIC_CMD
9699 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9700 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9701 for ac_dir in $ac_dummy; do
9702 IFS=$lt_save_ifs
9703 test -z "$ac_dir" && ac_dir=.
9704 if test -f "$ac_dir/file"; then
9705 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9706 if test -n "$file_magic_test_file"; then
9707 case $deplibs_check_method in
9708 "file_magic "*)
9709 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9710 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9711 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9712 $EGREP "$file_magic_regex" > /dev/null; then
9713 :
9714 else
9715 cat <<_LT_EOF 1>&2
9716
9717 *** Warning: the command libtool uses to detect shared libraries,
9718 *** $file_magic_cmd, produces output that libtool cannot recognize.
9719 *** The result is that libtool may fail to recognize shared libraries
9720 *** as such. This will affect the creation of libtool libraries that
9721 *** depend on shared libraries, but programs linked with such libtool
9722 *** libraries will work regardless of this problem. Nevertheless, you
9723 *** may want to report the problem to your system manager and/or to
9724 *** [email protected]
9725
9726 _LT_EOF
9727 fi ;;
9728 esac
9729 fi
9730 break
9731 fi
9732 done
9733 IFS=$lt_save_ifs
9734 MAGIC_CMD=$lt_save_MAGIC_CMD
9735 ;;
9736 esac ;;
9737 esac
9738 fi
9739
9740 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9741 if test -n "$MAGIC_CMD"; then
9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9743 printf "%s\n" "$MAGIC_CMD" >&6; }
9744 else
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 printf "%s\n" "no" >&6; }
9747 fi
9748
9749
9750 else
9751 MAGIC_CMD=:
9752 fi
9753 fi
9754
9755 fi
9756 ;;
9757 esac
9758
9759 # Use C for the default configuration in the libtool script
9760
9761 lt_save_CC=$CC
9762 ac_ext=c
9763 ac_cpp='$CPP $CPPFLAGS'
9764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9767
9768
9769 # Source file extension for C test sources.
9770 ac_ext=c
9771
9772 # Object file extension for compiled C test sources.
9773 objext=o
9774 objext=$objext
9775
9776 # Code to be used in simple compile tests
9777 lt_simple_compile_test_code="int some_variable = 0;"
9778
9779 # Code to be used in simple link tests
9780 lt_simple_link_test_code='int main(void){return(0);}'
9781
9782
9783
9784
9785
9786
9787
9788 # If no C compiler was specified, use CC.
9789 LTCC=${LTCC-"$CC"}
9790
9791 # If no C compiler flags were specified, use CFLAGS.
9792 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9793
9794 # Allow CC to be a program name with arguments.
9795 compiler=$CC
9796
9797 # Save the default compiler, since it gets overwritten when the other
9798 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9799 compiler_DEFAULT=$CC
9800
9801 # save warnings/boilerplate of simple test code
9802 ac_outfile=conftest.$ac_objext
9803 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9804 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9805 _lt_compiler_boilerplate=`cat conftest.err`
9806 $RM conftest*
9807
9808 ac_outfile=conftest.$ac_objext
9809 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9810 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9811 _lt_linker_boilerplate=`cat conftest.err`
9812 $RM -r conftest*
9813
9814
9815 ## CAVEAT EMPTOR:
9816 ## There is no encapsulation within the following macros, do not change
9817 ## the running order or otherwise move them around unless you know exactly
9818 ## what you are doing...
9819 if test -n "$compiler"; then
9820
9821 lt_prog_compiler_no_builtin_flag=
9822
9823 if test yes = "$GCC"; then
9824 case $cc_basename in
9825 nvcc*)
9826 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9827 *)
9828 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9829 esac
9830
9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9832 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9833 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9834 then :
9835 printf %s "(cached) " >&6
9836 else case e in #(
9837 e) lt_cv_prog_compiler_rtti_exceptions=no
9838 ac_outfile=conftest.$ac_objext
9839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9840 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9841 # Insert the option either (1) after the last *FLAGS variable, or
9842 # (2) before a word containing "conftest.", or (3) at the end.
9843 # Note that $ac_compile itself does not contain backslashes and begins
9844 # with a dollar sign (not a hyphen), so the echo should work correctly.
9845 # The option is referenced via a variable to avoid confusing sed.
9846 lt_compile=`echo "$ac_compile" | $SED \
9847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9849 -e 's:$: $lt_compiler_flag:'`
9850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9851 (eval "$lt_compile" 2>conftest.err)
9852 ac_status=$?
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 if (exit $ac_status) && test -s "$ac_outfile"; then
9856 # The compiler can only warn and ignore the option if not recognized
9857 # So say no if there are warnings other than the usual output.
9858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9860 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9861 lt_cv_prog_compiler_rtti_exceptions=yes
9862 fi
9863 fi
9864 $RM conftest*
9865 ;;
9866 esac
9867 fi
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9869 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9870
9871 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9872 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9873 else
9874 :
9875 fi
9876
9877 fi
9878
9879
9880
9881
9882
9883
9884 lt_prog_compiler_wl=
9885 lt_prog_compiler_pic=
9886 lt_prog_compiler_static=
9887
9888
9889 if test yes = "$GCC"; then
9890 lt_prog_compiler_wl='-Wl,'
9891 lt_prog_compiler_static='-static'
9892
9893 case $host_os in
9894 aix*)
9895 # All AIX code is PIC.
9896 if test ia64 = "$host_cpu"; then
9897 # AIX 5 now supports IA64 processor
9898 lt_prog_compiler_static='-Bstatic'
9899 fi
9900 lt_prog_compiler_pic='-fPIC'
9901 ;;
9902
9903 amigaos*)
9904 case $host_cpu in
9905 powerpc)
9906 # see comment about AmigaOS4 .so support
9907 lt_prog_compiler_pic='-fPIC'
9908 ;;
9909 m68k)
9910 # FIXME: we need at least 68020 code to build shared libraries, but
9911 # adding the '-m68020' flag to GCC prevents building anything better,
9912 # like '-m68040'.
9913 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9914 ;;
9915 esac
9916 ;;
9917
9918 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9919 # PIC is the default for these OSes.
9920 ;;
9921
9922 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9923 # This hack is so that the source file can tell whether it is being
9924 # built for inclusion in a dll (and should export symbols for example).
9925 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9926 # (--disable-auto-import) libraries
9927 lt_prog_compiler_pic='-DDLL_EXPORT'
9928 case $host_os in
9929 os2*)
9930 lt_prog_compiler_static='$wl-static'
9931 ;;
9932 esac
9933 ;;
9934
9935 darwin* | rhapsody*)
9936 # PIC is the default on this platform
9937 # Common symbols not allowed in MH_DYLIB files
9938 lt_prog_compiler_pic='-fno-common'
9939 ;;
9940
9941 haiku*)
9942 # PIC is the default for Haiku.
9943 # The "-static" flag exists, but is broken.
9944 lt_prog_compiler_static=
9945 ;;
9946
9947 hpux*)
9948 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9949 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9950 # sets the default TLS model and affects inlining.
9951 case $host_cpu in
9952 hppa*64*)
9953 # +Z the default
9954 ;;
9955 *)
9956 lt_prog_compiler_pic='-fPIC'
9957 ;;
9958 esac
9959 ;;
9960
9961 interix[3-9]*)
9962 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9963 # Instead, we relocate shared libraries at runtime.
9964 ;;
9965
9966 msdosdjgpp*)
9967 # Just because we use GCC doesn't mean we suddenly get shared libraries
9968 # on systems that don't support them.
9969 lt_prog_compiler_can_build_shared=no
9970 enable_shared=no
9971 ;;
9972
9973 *nto* | *qnx*)
9974 # QNX uses GNU C++, but need to define -shared option too, otherwise
9975 # it will coredump.
9976 lt_prog_compiler_pic='-fPIC -shared'
9977 ;;
9978
9979 sysv4*MP*)
9980 if test -d /usr/nec; then
9981 lt_prog_compiler_pic=-Kconform_pic
9982 fi
9983 ;;
9984
9985 *)
9986 lt_prog_compiler_pic='-fPIC'
9987 ;;
9988 esac
9989
9990 case $cc_basename in
9991 nvcc*) # Cuda Compiler Driver 2.2
9992 lt_prog_compiler_wl='-Xlinker '
9993 if test -n "$lt_prog_compiler_pic"; then
9994 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9995 fi
9996 ;;
9997 esac
9998 else
9999 # PORTME Check for flag to pass linker flags through the system compiler.
10000 case $host_os in
10001 aix*)
10002 lt_prog_compiler_wl='-Wl,'
10003 if test ia64 = "$host_cpu"; then
10004 # AIX 5 now supports IA64 processor
10005 lt_prog_compiler_static='-Bstatic'
10006 else
10007 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10008 fi
10009 ;;
10010
10011 darwin* | rhapsody*)
10012 # PIC is the default on this platform
10013 # Common symbols not allowed in MH_DYLIB files
10014 lt_prog_compiler_pic='-fno-common'
10015 case $cc_basename in
10016 nagfor*)
10017 # NAG Fortran compiler
10018 lt_prog_compiler_wl='-Wl,-Wl,,'
10019 lt_prog_compiler_pic='-PIC'
10020 lt_prog_compiler_static='-Bstatic'
10021 ;;
10022 esac
10023 ;;
10024
10025 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10026 # This hack is so that the source file can tell whether it is being
10027 # built for inclusion in a dll (and should export symbols for example).
10028 lt_prog_compiler_pic='-DDLL_EXPORT'
10029 case $host_os in
10030 os2*)
10031 lt_prog_compiler_static='$wl-static'
10032 ;;
10033 esac
10034 ;;
10035
10036 hpux9* | hpux10* | hpux11*)
10037 lt_prog_compiler_wl='-Wl,'
10038 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10039 # not for PA HP-UX.
10040 case $host_cpu in
10041 hppa*64*|ia64*)
10042 # +Z the default
10043 ;;
10044 *)
10045 lt_prog_compiler_pic='+Z'
10046 ;;
10047 esac
10048 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10049 lt_prog_compiler_static='$wl-a ${wl}archive'
10050 ;;
10051
10052 irix5* | irix6* | nonstopux*)
10053 lt_prog_compiler_wl='-Wl,'
10054 # PIC (with -KPIC) is the default.
10055 lt_prog_compiler_static='-non_shared'
10056 ;;
10057
10058 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10059 case $cc_basename in
10060 # old Intel for x86_64, which still supported -KPIC.
10061 ecc*)
10062 lt_prog_compiler_wl='-Wl,'
10063 lt_prog_compiler_pic='-KPIC'
10064 lt_prog_compiler_static='-static'
10065 ;;
10066 *flang* | ftn | f18* | f95*)
10067 # Flang compiler.
10068 lt_prog_compiler_wl='-Wl,'
10069 lt_prog_compiler_pic='-fPIC'
10070 lt_prog_compiler_static='-static'
10071 ;;
10072 # icc used to be incompatible with GCC.
10073 # ICC 10 doesn't accept -KPIC any more.
10074 icc* | ifort*)
10075 lt_prog_compiler_wl='-Wl,'
10076 lt_prog_compiler_pic='-fPIC'
10077 lt_prog_compiler_static='-static'
10078 ;;
10079 # Lahey Fortran 8.1.
10080 lf95*)
10081 lt_prog_compiler_wl='-Wl,'
10082 lt_prog_compiler_pic='--shared'
10083 lt_prog_compiler_static='--static'
10084 ;;
10085 nagfor*)
10086 # NAG Fortran compiler
10087 lt_prog_compiler_wl='-Wl,-Wl,,'
10088 lt_prog_compiler_pic='-PIC'
10089 lt_prog_compiler_static='-Bstatic'
10090 ;;
10091 tcc*)
10092 # Fabrice Bellard et al's Tiny C Compiler
10093 lt_prog_compiler_wl='-Wl,'
10094 lt_prog_compiler_pic='-fPIC'
10095 lt_prog_compiler_static='-static'
10096 ;;
10097 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10098 # Portland Group compilers (*not* the Pentium gcc compiler,
10099 # which looks to be a dead project)
10100 lt_prog_compiler_wl='-Wl,'
10101 lt_prog_compiler_pic='-fpic'
10102 lt_prog_compiler_static='-Bstatic'
10103 ;;
10104 ccc*)
10105 lt_prog_compiler_wl='-Wl,'
10106 # All Alpha code is PIC.
10107 lt_prog_compiler_static='-non_shared'
10108 ;;
10109 xl* | bgxl* | bgf* | mpixl*)
10110 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10111 lt_prog_compiler_wl='-Wl,'
10112 lt_prog_compiler_pic='-qpic'
10113 lt_prog_compiler_static='-qstaticlink'
10114 ;;
10115 *)
10116 case `$CC -V 2>&1 | $SED 5q` in
10117 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10118 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10119 lt_prog_compiler_pic='-KPIC'
10120 lt_prog_compiler_static='-Bstatic'
10121 lt_prog_compiler_wl=''
10122 ;;
10123 *Sun\ F* | *Sun*Fortran*)
10124 lt_prog_compiler_pic='-KPIC'
10125 lt_prog_compiler_static='-Bstatic'
10126 lt_prog_compiler_wl='-Qoption ld '
10127 ;;
10128 *Sun\ C*)
10129 # Sun C 5.9
10130 lt_prog_compiler_pic='-KPIC'
10131 lt_prog_compiler_static='-Bstatic'
10132 lt_prog_compiler_wl='-Wl,'
10133 ;;
10134 *Intel*\ [CF]*Compiler*)
10135 lt_prog_compiler_wl='-Wl,'
10136 lt_prog_compiler_pic='-fPIC'
10137 lt_prog_compiler_static='-static'
10138 ;;
10139 *Portland\ Group*)
10140 lt_prog_compiler_wl='-Wl,'
10141 lt_prog_compiler_pic='-fpic'
10142 lt_prog_compiler_static='-Bstatic'
10143 ;;
10144 esac
10145 ;;
10146 esac
10147 ;;
10148
10149 newsos6)
10150 lt_prog_compiler_pic='-KPIC'
10151 lt_prog_compiler_static='-Bstatic'
10152 ;;
10153
10154 *-mlibc)
10155 lt_prog_compiler_wl='-Wl,'
10156 lt_prog_compiler_pic='-fPIC'
10157 lt_prog_compiler_static='-static'
10158 ;;
10159
10160 *nto* | *qnx*)
10161 # QNX uses GNU C++, but need to define -shared option too, otherwise
10162 # it will coredump.
10163 lt_prog_compiler_pic='-fPIC -shared'
10164 ;;
10165
10166 osf3* | osf4* | osf5*)
10167 lt_prog_compiler_wl='-Wl,'
10168 # All OSF/1 code is PIC.
10169 lt_prog_compiler_static='-non_shared'
10170 ;;
10171
10172 rdos*)
10173 lt_prog_compiler_static='-non_shared'
10174 ;;
10175
10176 serenity*)
10177 ;;
10178
10179 solaris*)
10180 lt_prog_compiler_pic='-KPIC'
10181 lt_prog_compiler_static='-Bstatic'
10182 case $cc_basename in
10183 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10184 lt_prog_compiler_wl='-Qoption ld ';;
10185 *)
10186 lt_prog_compiler_wl='-Wl,';;
10187 esac
10188 ;;
10189
10190 sunos4*)
10191 lt_prog_compiler_wl='-Qoption ld '
10192 lt_prog_compiler_pic='-PIC'
10193 lt_prog_compiler_static='-Bstatic'
10194 ;;
10195
10196 sysv4 | sysv4.2uw2* | sysv4.3*)
10197 lt_prog_compiler_wl='-Wl,'
10198 lt_prog_compiler_pic='-KPIC'
10199 lt_prog_compiler_static='-Bstatic'
10200 ;;
10201
10202 sysv4*MP*)
10203 if test -d /usr/nec; then
10204 lt_prog_compiler_pic='-Kconform_pic'
10205 lt_prog_compiler_static='-Bstatic'
10206 fi
10207 ;;
10208
10209 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10210 lt_prog_compiler_wl='-Wl,'
10211 lt_prog_compiler_pic='-KPIC'
10212 lt_prog_compiler_static='-Bstatic'
10213 ;;
10214
10215 unicos*)
10216 lt_prog_compiler_wl='-Wl,'
10217 lt_prog_compiler_can_build_shared=no
10218 ;;
10219
10220 uts4*)
10221 lt_prog_compiler_pic='-pic'
10222 lt_prog_compiler_static='-Bstatic'
10223 ;;
10224
10225 *)
10226 lt_prog_compiler_can_build_shared=no
10227 ;;
10228 esac
10229 fi
10230
10231 case $host_os in
10232 # For platforms that do not support PIC, -DPIC is meaningless:
10233 *djgpp*)
10234 lt_prog_compiler_pic=
10235 ;;
10236 *)
10237 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10238 ;;
10239 esac
10240
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10242 printf %s "checking for $compiler option to produce PIC... " >&6; }
10243 if test ${lt_cv_prog_compiler_pic+y}
10244 then :
10245 printf %s "(cached) " >&6
10246 else case e in #(
10247 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10248 esac
10249 fi
10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10251 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10252 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10253
10254 #
10255 # Check to make sure the PIC flag actually works.
10256 #
10257 if test -n "$lt_prog_compiler_pic"; then
10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10259 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10260 if test ${lt_cv_prog_compiler_pic_works+y}
10261 then :
10262 printf %s "(cached) " >&6
10263 else case e in #(
10264 e) lt_cv_prog_compiler_pic_works=no
10265 ac_outfile=conftest.$ac_objext
10266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10267 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10268 # Insert the option either (1) after the last *FLAGS variable, or
10269 # (2) before a word containing "conftest.", or (3) at the end.
10270 # Note that $ac_compile itself does not contain backslashes and begins
10271 # with a dollar sign (not a hyphen), so the echo should work correctly.
10272 # The option is referenced via a variable to avoid confusing sed.
10273 lt_compile=`echo "$ac_compile" | $SED \
10274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10276 -e 's:$: $lt_compiler_flag:'`
10277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10278 (eval "$lt_compile" 2>conftest.err)
10279 ac_status=$?
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 if (exit $ac_status) && test -s "$ac_outfile"; then
10283 # The compiler can only warn and ignore the option if not recognized
10284 # So say no if there are warnings other than the usual output.
10285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10288 lt_cv_prog_compiler_pic_works=yes
10289 fi
10290 fi
10291 $RM conftest*
10292 ;;
10293 esac
10294 fi
10295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10296 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10297
10298 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10299 case $lt_prog_compiler_pic in
10300 "" | " "*) ;;
10301 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10302 esac
10303 else
10304 lt_prog_compiler_pic=
10305 lt_prog_compiler_can_build_shared=no
10306 fi
10307
10308 fi
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320 #
10321 # Check to make sure the static flag actually works.
10322 #
10323 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10325 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10326 if test ${lt_cv_prog_compiler_static_works+y}
10327 then :
10328 printf %s "(cached) " >&6
10329 else case e in #(
10330 e) lt_cv_prog_compiler_static_works=no
10331 save_LDFLAGS=$LDFLAGS
10332 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10333 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10334 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10335 # The linker can only warn and ignore the option if not recognized
10336 # So say no if there are warnings
10337 if test -s conftest.err; then
10338 # Append any errors to the config.log.
10339 cat conftest.err 1>&5
10340 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10342 if diff conftest.exp conftest.er2 >/dev/null; then
10343 lt_cv_prog_compiler_static_works=yes
10344 fi
10345 else
10346 lt_cv_prog_compiler_static_works=yes
10347 fi
10348 fi
10349 $RM -r conftest*
10350 LDFLAGS=$save_LDFLAGS
10351 ;;
10352 esac
10353 fi
10354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10355 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10356
10357 if test yes = "$lt_cv_prog_compiler_static_works"; then
10358 :
10359 else
10360 lt_prog_compiler_static=
10361 fi
10362
10363
10364
10365
10366
10367
10368
10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10370 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10371 if test ${lt_cv_prog_compiler_c_o+y}
10372 then :
10373 printf %s "(cached) " >&6
10374 else case e in #(
10375 e) lt_cv_prog_compiler_c_o=no
10376 $RM -r conftest 2>/dev/null
10377 mkdir conftest
10378 cd conftest
10379 mkdir out
10380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10381
10382 lt_compiler_flag="-o out/conftest2.$ac_objext"
10383 # Insert the option either (1) after the last *FLAGS variable, or
10384 # (2) before a word containing "conftest.", or (3) at the end.
10385 # Note that $ac_compile itself does not contain backslashes and begins
10386 # with a dollar sign (not a hyphen), so the echo should work correctly.
10387 lt_compile=`echo "$ac_compile" | $SED \
10388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10390 -e 's:$: $lt_compiler_flag:'`
10391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10392 (eval "$lt_compile" 2>out/conftest.err)
10393 ac_status=$?
10394 cat out/conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10397 then
10398 # The compiler can only warn and ignore the option if not recognized
10399 # So say no if there are warnings
10400 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10401 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10402 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10403 lt_cv_prog_compiler_c_o=yes
10404 fi
10405 fi
10406 chmod u+w . 2>&5
10407 $RM conftest*
10408 # SGI C++ compiler will create directory out/ii_files/ for
10409 # template instantiation
10410 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10411 $RM out/* && rmdir out
10412 cd ..
10413 $RM -r conftest
10414 $RM conftest*
10415 ;;
10416 esac
10417 fi
10418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10419 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10420
10421
10422
10423
10424
10425
10426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10427 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10428 if test ${lt_cv_prog_compiler_c_o+y}
10429 then :
10430 printf %s "(cached) " >&6
10431 else case e in #(
10432 e) lt_cv_prog_compiler_c_o=no
10433 $RM -r conftest 2>/dev/null
10434 mkdir conftest
10435 cd conftest
10436 mkdir out
10437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10438
10439 lt_compiler_flag="-o out/conftest2.$ac_objext"
10440 # Insert the option either (1) after the last *FLAGS variable, or
10441 # (2) before a word containing "conftest.", or (3) at the end.
10442 # Note that $ac_compile itself does not contain backslashes and begins
10443 # with a dollar sign (not a hyphen), so the echo should work correctly.
10444 lt_compile=`echo "$ac_compile" | $SED \
10445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10447 -e 's:$: $lt_compiler_flag:'`
10448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10449 (eval "$lt_compile" 2>out/conftest.err)
10450 ac_status=$?
10451 cat out/conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10454 then
10455 # The compiler can only warn and ignore the option if not recognized
10456 # So say no if there are warnings
10457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10458 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10459 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10460 lt_cv_prog_compiler_c_o=yes
10461 fi
10462 fi
10463 chmod u+w . 2>&5
10464 $RM conftest*
10465 # SGI C++ compiler will create directory out/ii_files/ for
10466 # template instantiation
10467 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10468 $RM out/* && rmdir out
10469 cd ..
10470 $RM -r conftest
10471 $RM conftest*
10472 ;;
10473 esac
10474 fi
10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10476 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10477
10478
10479
10480
10481 hard_links=nottested
10482 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10483 # do not overwrite the value of need_locks provided by the user
10484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10485 printf %s "checking if we can lock with hard links... " >&6; }
10486 hard_links=yes
10487 $RM conftest*
10488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10489 touch conftest.a
10490 ln conftest.a conftest.b 2>&5 || hard_links=no
10491 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10493 printf "%s\n" "$hard_links" >&6; }
10494 if test no = "$hard_links"; then
10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10496 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10497 need_locks=warn
10498 fi
10499 else
10500 need_locks=no
10501 fi
10502
10503
10504
10505
10506
10507
10508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10509 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10510
10511 runpath_var=
10512 allow_undefined_flag=
10513 always_export_symbols=no
10514 archive_cmds=
10515 archive_expsym_cmds=
10516 compiler_needs_object=no
10517 enable_shared_with_static_runtimes=no
10518 export_dynamic_flag_spec=
10519 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10520 hardcode_automatic=no
10521 hardcode_direct=no
10522 hardcode_direct_absolute=no
10523 hardcode_libdir_flag_spec=
10524 hardcode_libdir_separator=
10525 hardcode_minus_L=no
10526 hardcode_shlibpath_var=unsupported
10527 inherit_rpath=no
10528 link_all_deplibs=unknown
10529 module_cmds=
10530 module_expsym_cmds=
10531 old_archive_from_new_cmds=
10532 old_archive_from_expsyms_cmds=
10533 thread_safe_flag_spec=
10534 whole_archive_flag_spec=
10535 # include_expsyms should be a list of space-separated symbols to be *always*
10536 # included in the symbol list
10537 include_expsyms=
10538 # exclude_expsyms can be an extended regexp of symbols to exclude
10539 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10540 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10541 # as well as any symbol that contains 'd'.
10542 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10543 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10544 # platforms (ab)use it in PIC code, but their linkers get confused if
10545 # the symbol is explicitly referenced. Since portable code cannot
10546 # rely on this symbol name, it's probably fine to never include it in
10547 # preloaded symbol tables.
10548 # Exclude shared library initialization/finalization symbols.
10549 extract_expsyms_cmds=
10550
10551 case $host_os in
10552 cygwin* | mingw* | windows* | pw32* | cegcc*)
10553 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10554 # When not using gcc, we currently assume that we are using
10555 # Microsoft Visual C++ or Intel C++ Compiler.
10556 if test yes != "$GCC"; then
10557 with_gnu_ld=no
10558 fi
10559 ;;
10560 interix*)
10561 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10562 with_gnu_ld=yes
10563 ;;
10564 esac
10565
10566 ld_shlibs=yes
10567
10568 # On some targets, GNU ld is compatible enough with the native linker
10569 # that we're better off using the native interface for both.
10570 lt_use_gnu_ld_interface=no
10571 if test yes = "$with_gnu_ld"; then
10572 case $host_os in
10573 aix*)
10574 # The AIX port of GNU ld has always aspired to compatibility
10575 # with the native linker. However, as the warning in the GNU ld
10576 # block says, versions before 2.19.5* couldn't really create working
10577 # shared libraries, regardless of the interface used.
10578 case `$LD -v 2>&1` in
10579 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10580 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10581 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10582 *)
10583 lt_use_gnu_ld_interface=yes
10584 ;;
10585 esac
10586 ;;
10587 *)
10588 lt_use_gnu_ld_interface=yes
10589 ;;
10590 esac
10591 fi
10592
10593 if test yes = "$lt_use_gnu_ld_interface"; then
10594 # If archive_cmds runs LD, not CC, wlarc should be empty
10595 wlarc='$wl'
10596
10597 # Set some defaults for GNU ld with shared library support. These
10598 # are reset later if shared libraries are not supported. Putting them
10599 # here allows them to be overridden if necessary.
10600 runpath_var=LD_RUN_PATH
10601 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10602 export_dynamic_flag_spec='$wl--export-dynamic'
10603 # ancient GNU ld didn't support --whole-archive et. al.
10604 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10605 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10606 else
10607 whole_archive_flag_spec=
10608 fi
10609 supports_anon_versioning=no
10610 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10611 *GNU\ gold*) supports_anon_versioning=yes ;;
10612 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10613 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10614 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10615 *\ 2.11.*) ;; # other 2.11 versions
10616 *) supports_anon_versioning=yes ;;
10617 esac
10618
10619 # See if GNU ld supports shared libraries.
10620 case $host_os in
10621 aix[3-9]*)
10622 # On AIX/PPC, the GNU linker is very broken
10623 if test ia64 != "$host_cpu"; then
10624 ld_shlibs=no
10625 cat <<_LT_EOF 1>&2
10626
10627 *** Warning: the GNU linker, at least up to release 2.19, is reported
10628 *** to be unable to reliably create shared libraries on AIX.
10629 *** Therefore, libtool is disabling shared libraries support. If you
10630 *** really care for shared libraries, you may want to install binutils
10631 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10632 *** You will then need to restart the configuration process.
10633
10634 _LT_EOF
10635 fi
10636 ;;
10637
10638 amigaos*)
10639 case $host_cpu in
10640 powerpc)
10641 # see comment about AmigaOS4 .so support
10642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10643 archive_expsym_cmds=''
10644 ;;
10645 m68k)
10646 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)'
10647 hardcode_libdir_flag_spec='-L$libdir'
10648 hardcode_minus_L=yes
10649 ;;
10650 esac
10651 ;;
10652
10653 beos*)
10654 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10655 allow_undefined_flag=unsupported
10656 # Joseph Beckenbach <[email protected]> says some releases of gcc
10657 # support --undefined. This deserves some investigation. FIXME
10658 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10659 else
10660 ld_shlibs=no
10661 fi
10662 ;;
10663
10664 cygwin* | mingw* | windows* | pw32* | cegcc*)
10665 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10666 # as there is no search path for DLLs.
10667 hardcode_libdir_flag_spec='-L$libdir'
10668 export_dynamic_flag_spec='$wl--export-all-symbols'
10669 allow_undefined_flag=unsupported
10670 always_export_symbols=no
10671 enable_shared_with_static_runtimes=yes
10672 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'
10673 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10674 file_list_spec='@'
10675
10676 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10678 # If the export-symbols file already is a .def file, use it as
10679 # is; otherwise, prepend EXPORTS...
10680 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10681 cp $export_symbols $output_objdir/$soname.def;
10682 else
10683 echo EXPORTS > $output_objdir/$soname.def;
10684 cat $export_symbols >> $output_objdir/$soname.def;
10685 fi~
10686 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10687 else
10688 ld_shlibs=no
10689 fi
10690 ;;
10691
10692 haiku*)
10693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10694 link_all_deplibs=no
10695 ;;
10696
10697 os2*)
10698 hardcode_libdir_flag_spec='-L$libdir'
10699 hardcode_minus_L=yes
10700 allow_undefined_flag=unsupported
10701 shrext_cmds=.dll
10702 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10703 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10704 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10705 $ECHO EXPORTS >> $output_objdir/$libname.def~
10706 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10707 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10708 emximp -o $lib $output_objdir/$libname.def'
10709 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10710 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10711 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10712 $ECHO EXPORTS >> $output_objdir/$libname.def~
10713 prefix_cmds="$SED"~
10714 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10715 prefix_cmds="$prefix_cmds -e 1d";
10716 fi~
10717 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10718 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10719 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10720 emximp -o $lib $output_objdir/$libname.def'
10721 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10722 enable_shared_with_static_runtimes=yes
10723 file_list_spec='@'
10724 ;;
10725
10726 interix[3-9]*)
10727 hardcode_direct=no
10728 hardcode_shlibpath_var=no
10729 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10730 export_dynamic_flag_spec='$wl-E'
10731 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10732 # Instead, shared libraries are loaded at an image base (0x10000000 by
10733 # default) and relocated if they conflict, which is a slow very memory
10734 # consuming and fragmenting process. To avoid this, we pick a random,
10735 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10736 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10737 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10738 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'
10739 ;;
10740
10741 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10742 tmp_diet=no
10743 if test linux-dietlibc = "$host_os"; then
10744 case $cc_basename in
10745 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10746 esac
10747 fi
10748 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10749 && test no = "$tmp_diet"
10750 then
10751 tmp_addflag=' $pic_flag'
10752 tmp_sharedflag='-shared'
10753 case $cc_basename,$host_cpu in
10754 pgcc*) # Portland Group C compiler
10755 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'
10756 tmp_addflag=' $pic_flag'
10757 ;;
10758 pgf77* | pgf90* | pgf95* | pgfortran*)
10759 # Portland Group f77 and f90 compilers
10760 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'
10761 tmp_addflag=' $pic_flag -Mnomain' ;;
10762 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10763 tmp_addflag=' -i_dynamic' ;;
10764 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10765 tmp_addflag=' -i_dynamic -nofor_main' ;;
10766 ifc* | ifort*) # Intel Fortran compiler
10767 tmp_addflag=' -nofor_main' ;;
10768 lf95*) # Lahey Fortran 8.1
10769 whole_archive_flag_spec=
10770 tmp_sharedflag='--shared' ;;
10771 nagfor*) # NAGFOR 5.3
10772 tmp_sharedflag='-Wl,-shared' ;;
10773 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10774 tmp_sharedflag='-qmkshrobj'
10775 tmp_addflag= ;;
10776 nvcc*) # Cuda Compiler Driver 2.2
10777 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'
10778 compiler_needs_object=yes
10779 ;;
10780 esac
10781 case `$CC -V 2>&1 | $SED 5q` in
10782 *Sun\ C*) # Sun C 5.9
10783 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'
10784 compiler_needs_object=yes
10785 tmp_sharedflag='-G' ;;
10786 *Sun\ F*) # Sun Fortran 8.3
10787 tmp_sharedflag='-G' ;;
10788 esac
10789 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10790
10791 if test yes = "$supports_anon_versioning"; then
10792 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10793 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10794 echo "local: *; };" >> $output_objdir/$libname.ver~
10795 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10796 fi
10797
10798 case $cc_basename in
10799 tcc*)
10800 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10801 export_dynamic_flag_spec='-rdynamic'
10802 ;;
10803 xlf* | bgf* | bgxlf* | mpixlf*)
10804 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10805 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10806 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10807 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10808 if test yes = "$supports_anon_versioning"; then
10809 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10810 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10811 echo "local: *; };" >> $output_objdir/$libname.ver~
10812 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10813 fi
10814 ;;
10815 esac
10816 else
10817 ld_shlibs=no
10818 fi
10819 ;;
10820
10821 *-mlibc)
10822 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10823 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10824 ;;
10825
10826 netbsd* | netbsdelf*-gnu)
10827 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10828 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10829 wlarc=
10830 else
10831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10832 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10833 fi
10834 ;;
10835
10836 solaris*)
10837 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10838 ld_shlibs=no
10839 cat <<_LT_EOF 1>&2
10840
10841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10842 *** create shared libraries on Solaris systems. Therefore, libtool
10843 *** is disabling shared libraries support. We urge you to upgrade GNU
10844 *** binutils to release 2.9.1 or newer. Another option is to modify
10845 *** your PATH or compiler configuration so that the native linker is
10846 *** used, and then restart.
10847
10848 _LT_EOF
10849 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10850 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10851 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10852 else
10853 ld_shlibs=no
10854 fi
10855 ;;
10856
10857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10858 case `$LD -v 2>&1` in
10859 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10860 ld_shlibs=no
10861 cat <<_LT_EOF 1>&2
10862
10863 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10864 *** reliably create shared libraries on SCO systems. Therefore, libtool
10865 *** is disabling shared libraries support. We urge you to upgrade GNU
10866 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10867 *** your PATH or compiler configuration so that the native linker is
10868 *** used, and then restart.
10869
10870 _LT_EOF
10871 ;;
10872 *)
10873 # For security reasons, it is highly recommended that you always
10874 # use absolute paths for naming shared libraries, and exclude the
10875 # DT_RUNPATH tag from executables and libraries. But doing so
10876 # requires that you compile everything twice, which is a pain.
10877 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10878 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10880 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10881 else
10882 ld_shlibs=no
10883 fi
10884 ;;
10885 esac
10886 ;;
10887
10888 sunos4*)
10889 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10890 wlarc=
10891 hardcode_direct=yes
10892 hardcode_shlibpath_var=no
10893 ;;
10894
10895 *)
10896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10897 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10898 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10899 else
10900 ld_shlibs=no
10901 fi
10902 ;;
10903 esac
10904
10905 if test no = "$ld_shlibs"; then
10906 runpath_var=
10907 hardcode_libdir_flag_spec=
10908 export_dynamic_flag_spec=
10909 whole_archive_flag_spec=
10910 fi
10911 else
10912 # PORTME fill in a description of your system's linker (not GNU ld)
10913 case $host_os in
10914 aix3*)
10915 allow_undefined_flag=unsupported
10916 always_export_symbols=yes
10917 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'
10918 # Note: this linker hardcodes the directories in LIBPATH if there
10919 # are no directories specified by -L.
10920 hardcode_minus_L=yes
10921 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10922 # Neither direct hardcoding nor static linking is supported with a
10923 # broken collect2.
10924 hardcode_direct=unsupported
10925 fi
10926 ;;
10927
10928 aix[4-9]*)
10929 if test ia64 = "$host_cpu"; then
10930 # On IA64, the linker does run time linking by default, so we don't
10931 # have to do anything special.
10932 aix_use_runtimelinking=no
10933 exp_sym_flag='-Bexport'
10934 no_entry_flag=
10935 else
10936 # If we're using GNU nm, then we don't want the "-C" option.
10937 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10938 # Without the "-l" option, or with the "-B" option, AIX nm treats
10939 # weak defined symbols like other global defined symbols, whereas
10940 # GNU nm marks them as "W".
10941 # While the 'weak' keyword is ignored in the Export File, we need
10942 # it in the Import File for the 'aix-soname' feature, so we have
10943 # to replace the "-B" option with "-P" for AIX nm.
10944 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10945 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'
10946 else
10947 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'
10948 fi
10949 aix_use_runtimelinking=no
10950
10951 # Test if we are trying to use run time linking or normal
10952 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10953 # have runtime linking enabled, and use it for executables.
10954 # For shared libraries, we enable/disable runtime linking
10955 # depending on the kind of the shared library created -
10956 # when "with_aix_soname,aix_use_runtimelinking" is:
10957 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10958 # "aix,yes" lib.so shared, rtl:yes, for executables
10959 # lib.a static archive
10960 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10961 # lib.a(lib.so.V) shared, rtl:no, for executables
10962 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10963 # lib.a(lib.so.V) shared, rtl:no
10964 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10965 # lib.a static archive
10966 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10967 for ld_flag in $LDFLAGS; do
10968 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10969 aix_use_runtimelinking=yes
10970 break
10971 fi
10972 done
10973 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10974 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10975 # so we don't have lib.a shared libs to link our executables.
10976 # We have to force runtime linking in this case.
10977 aix_use_runtimelinking=yes
10978 LDFLAGS="$LDFLAGS -Wl,-brtl"
10979 fi
10980 ;;
10981 esac
10982
10983 exp_sym_flag='-bexport'
10984 no_entry_flag='-bnoentry'
10985 fi
10986
10987 # When large executables or shared objects are built, AIX ld can
10988 # have problems creating the table of contents. If linking a library
10989 # or program results in "error TOC overflow" add -mminimal-toc to
10990 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10991 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10992
10993 archive_cmds=''
10994 hardcode_direct=yes
10995 hardcode_direct_absolute=yes
10996 hardcode_libdir_separator=':'
10997 link_all_deplibs=yes
10998 file_list_spec='$wl-f,'
10999 case $with_aix_soname,$aix_use_runtimelinking in
11000 aix,*) ;; # traditional, no import file
11001 svr4,* | *,yes) # use import file
11002 # The Import File defines what to hardcode.
11003 hardcode_direct=no
11004 hardcode_direct_absolute=no
11005 ;;
11006 esac
11007
11008 if test yes = "$GCC"; then
11009 case $host_os in aix4.[012]|aix4.[012].*)
11010 # We only want to do this on AIX 4.2 and lower, the check
11011 # below for broken collect2 doesn't work under 4.3+
11012 collect2name=`$CC -print-prog-name=collect2`
11013 if test -f "$collect2name" &&
11014 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11015 then
11016 # We have reworked collect2
11017 :
11018 else
11019 # We have old collect2
11020 hardcode_direct=unsupported
11021 # It fails to find uninstalled libraries when the uninstalled
11022 # path is not listed in the libpath. Setting hardcode_minus_L
11023 # to unsupported forces relinking
11024 hardcode_minus_L=yes
11025 hardcode_libdir_flag_spec='-L$libdir'
11026 hardcode_libdir_separator=
11027 fi
11028 ;;
11029 esac
11030 shared_flag='-shared'
11031 if test yes = "$aix_use_runtimelinking"; then
11032 shared_flag="$shared_flag "'$wl-G'
11033 fi
11034 # Need to ensure runtime linking is disabled for the traditional
11035 # shared library, or the linker may eventually find shared libraries
11036 # /with/ Import File - we do not want to mix them.
11037 shared_flag_aix='-shared'
11038 shared_flag_svr4='-shared $wl-G'
11039 else
11040 # not using gcc
11041 if test ia64 = "$host_cpu"; then
11042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11043 # chokes on -Wl,-G. The following line is correct:
11044 shared_flag='-G'
11045 else
11046 if test yes = "$aix_use_runtimelinking"; then
11047 shared_flag='$wl-G'
11048 else
11049 shared_flag='$wl-bM:SRE'
11050 fi
11051 shared_flag_aix='$wl-bM:SRE'
11052 shared_flag_svr4='$wl-G'
11053 fi
11054 fi
11055
11056 export_dynamic_flag_spec='$wl-bexpall'
11057 # It seems that -bexpall does not export symbols beginning with
11058 # underscore (_), so it is better to generate a list of symbols to export.
11059 always_export_symbols=yes
11060 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11061 # Warning - without using the other runtime loading flags (-brtl),
11062 # -berok will link without error, but may produce a broken library.
11063 allow_undefined_flag='-berok'
11064 # Determine the default libpath from the value encoded in an
11065 # empty executable.
11066 if test set = "${lt_cv_aix_libpath+set}"; then
11067 aix_libpath=$lt_cv_aix_libpath
11068 else
11069 if test ${lt_cv_aix_libpath_+y}
11070 then :
11071 printf %s "(cached) " >&6
11072 else case e in #(
11073 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074 /* end confdefs.h. */
11075
11076 int
11077 main (void)
11078 {
11079
11080 ;
11081 return 0;
11082 }
11083 _ACEOF
11084 if ac_fn_c_try_link "$LINENO"
11085 then :
11086
11087 lt_aix_libpath_sed='
11088 /Import File Strings/,/^$/ {
11089 /^0/ {
11090 s/^0 *\([^ ]*\) *$/\1/
11091 p
11092 }
11093 }'
11094 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11095 # Check for a 64-bit object if we didn't find anything.
11096 if test -z "$lt_cv_aix_libpath_"; then
11097 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11098 fi
11099 fi
11100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11101 conftest$ac_exeext conftest.$ac_ext
11102 if test -z "$lt_cv_aix_libpath_"; then
11103 lt_cv_aix_libpath_=/usr/lib:/lib
11104 fi
11105 ;;
11106 esac
11107 fi
11108
11109 aix_libpath=$lt_cv_aix_libpath_
11110 fi
11111
11112 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11113 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
11114 else
11115 if test ia64 = "$host_cpu"; then
11116 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11117 allow_undefined_flag="-z nodefs"
11118 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"
11119 else
11120 # Determine the default libpath from the value encoded in an
11121 # empty executable.
11122 if test set = "${lt_cv_aix_libpath+set}"; then
11123 aix_libpath=$lt_cv_aix_libpath
11124 else
11125 if test ${lt_cv_aix_libpath_+y}
11126 then :
11127 printf %s "(cached) " >&6
11128 else case e in #(
11129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11131
11132 int
11133 main (void)
11134 {
11135
11136 ;
11137 return 0;
11138 }
11139 _ACEOF
11140 if ac_fn_c_try_link "$LINENO"
11141 then :
11142
11143 lt_aix_libpath_sed='
11144 /Import File Strings/,/^$/ {
11145 /^0/ {
11146 s/^0 *\([^ ]*\) *$/\1/
11147 p
11148 }
11149 }'
11150 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11151 # Check for a 64-bit object if we didn't find anything.
11152 if test -z "$lt_cv_aix_libpath_"; then
11153 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11154 fi
11155 fi
11156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11157 conftest$ac_exeext conftest.$ac_ext
11158 if test -z "$lt_cv_aix_libpath_"; then
11159 lt_cv_aix_libpath_=/usr/lib:/lib
11160 fi
11161 ;;
11162 esac
11163 fi
11164
11165 aix_libpath=$lt_cv_aix_libpath_
11166 fi
11167
11168 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11169 # Warning - without using the other run time loading flags,
11170 # -berok will link without error, but may produce a broken library.
11171 no_undefined_flag=' $wl-bernotok'
11172 allow_undefined_flag=' $wl-berok'
11173 if test yes = "$with_gnu_ld"; then
11174 # We only use this code for GNU lds that support --whole-archive.
11175 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11176 else
11177 # Exported symbols can be pulled into shared objects from archives
11178 whole_archive_flag_spec='$convenience'
11179 fi
11180 archive_cmds_need_lc=yes
11181 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11182 # -brtl affects multiple linker settings, -berok does not and is overridden later
11183 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11184 if test svr4 != "$with_aix_soname"; then
11185 # This is similar to how AIX traditionally builds its shared libraries.
11186 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'
11187 fi
11188 if test aix != "$with_aix_soname"; then
11189 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'
11190 else
11191 # used by -dlpreopen to get the symbols
11192 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11193 fi
11194 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11195 fi
11196 fi
11197 ;;
11198
11199 amigaos*)
11200 case $host_cpu in
11201 powerpc)
11202 # see comment about AmigaOS4 .so support
11203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11204 archive_expsym_cmds=''
11205 ;;
11206 m68k)
11207 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)'
11208 hardcode_libdir_flag_spec='-L$libdir'
11209 hardcode_minus_L=yes
11210 ;;
11211 esac
11212 ;;
11213
11214 bsdi[45]*)
11215 export_dynamic_flag_spec=-rdynamic
11216 ;;
11217
11218 cygwin* | mingw* | windows* | pw32* | cegcc*)
11219 # When not using gcc, we currently assume that we are using
11220 # Microsoft Visual C++ or Intel C++ Compiler.
11221 # hardcode_libdir_flag_spec is actually meaningless, as there is
11222 # no search path for DLLs.
11223 case $cc_basename in
11224 cl* | icl*)
11225 # Native MSVC or ICC
11226 hardcode_libdir_flag_spec=' '
11227 allow_undefined_flag=unsupported
11228 always_export_symbols=yes
11229 file_list_spec='@'
11230 # Tell ltmain to make .lib files, not .a files.
11231 libext=lib
11232 # Tell ltmain to make .dll files, not .so files.
11233 shrext_cmds=.dll
11234 # FIXME: Setting linknames here is a bad hack.
11235 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11236 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11237 cp "$export_symbols" "$output_objdir/$soname.def";
11238 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11239 else
11240 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11241 fi~
11242 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11243 linknames='
11244 # The linker will not automatically build a static lib if we build a DLL.
11245 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11246 enable_shared_with_static_runtimes=yes
11247 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11248 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11249 # Don't use ranlib
11250 old_postinstall_cmds='chmod 644 $oldlib'
11251 postlink_cmds='lt_outputfile="@OUTPUT@"~
11252 lt_tool_outputfile="@TOOL_OUTPUT@"~
11253 case $lt_outputfile in
11254 *.exe|*.EXE) ;;
11255 *)
11256 lt_outputfile=$lt_outputfile.exe
11257 lt_tool_outputfile=$lt_tool_outputfile.exe
11258 ;;
11259 esac~
11260 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11261 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11262 $RM "$lt_outputfile.manifest";
11263 fi'
11264 ;;
11265 *)
11266 # Assume MSVC and ICC wrapper
11267 hardcode_libdir_flag_spec=' '
11268 allow_undefined_flag=unsupported
11269 # Tell ltmain to make .lib files, not .a files.
11270 libext=lib
11271 # Tell ltmain to make .dll files, not .so files.
11272 shrext_cmds=.dll
11273 # FIXME: Setting linknames here is a bad hack.
11274 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11275 # The linker will automatically build a .lib file if we build a DLL.
11276 old_archive_from_new_cmds='true'
11277 # FIXME: Should let the user specify the lib program.
11278 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11279 enable_shared_with_static_runtimes=yes
11280 ;;
11281 esac
11282 ;;
11283
11284 darwin* | rhapsody*)
11285
11286
11287 archive_cmds_need_lc=no
11288 hardcode_direct=no
11289 hardcode_automatic=yes
11290 hardcode_shlibpath_var=unsupported
11291 if test yes = "$lt_cv_ld_force_load"; then
11292 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\"`'
11293
11294 else
11295 whole_archive_flag_spec=''
11296 fi
11297 link_all_deplibs=yes
11298 allow_undefined_flag=$_lt_dar_allow_undefined
11299 case $cc_basename in
11300 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11301 *) _lt_dar_can_shared=$GCC ;;
11302 esac
11303 if test yes = "$_lt_dar_can_shared"; then
11304 output_verbose_link_cmd=func_echo_all
11305 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11306 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11307 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"
11308 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"
11309
11310 else
11311 ld_shlibs=no
11312 fi
11313
11314 ;;
11315
11316 dgux*)
11317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11318 hardcode_libdir_flag_spec='-L$libdir'
11319 hardcode_shlibpath_var=no
11320 ;;
11321
11322 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11323 # support. Future versions do this automatically, but an explicit c++rt0.o
11324 # does not break anything, and helps significantly (at the cost of a little
11325 # extra space).
11326 freebsd2.2*)
11327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11328 hardcode_libdir_flag_spec='-R$libdir'
11329 hardcode_direct=yes
11330 hardcode_shlibpath_var=no
11331 ;;
11332
11333 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11334 freebsd2.*)
11335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11336 hardcode_direct=yes
11337 hardcode_minus_L=yes
11338 hardcode_shlibpath_var=no
11339 ;;
11340
11341 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11342 freebsd* | dragonfly* | midnightbsd*)
11343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11344 hardcode_libdir_flag_spec='-R$libdir'
11345 hardcode_direct=yes
11346 hardcode_shlibpath_var=no
11347 ;;
11348
11349 hpux9*)
11350 if test yes = "$GCC"; then
11351 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'
11352 else
11353 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'
11354 fi
11355 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11356 hardcode_libdir_separator=:
11357 hardcode_direct=yes
11358
11359 # hardcode_minus_L: Not really in the search PATH,
11360 # but as the default location of the library.
11361 hardcode_minus_L=yes
11362 export_dynamic_flag_spec='$wl-E'
11363 ;;
11364
11365 hpux10*)
11366 if test yes,no = "$GCC,$with_gnu_ld"; then
11367 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11368 else
11369 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11370 fi
11371 if test no = "$with_gnu_ld"; then
11372 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11373 hardcode_libdir_separator=:
11374 hardcode_direct=yes
11375 hardcode_direct_absolute=yes
11376 export_dynamic_flag_spec='$wl-E'
11377 # hardcode_minus_L: Not really in the search PATH,
11378 # but as the default location of the library.
11379 hardcode_minus_L=yes
11380 fi
11381 ;;
11382
11383 hpux11*)
11384 if test yes,no = "$GCC,$with_gnu_ld"; then
11385 case $host_cpu in
11386 hppa*64*)
11387 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11388 ;;
11389 ia64*)
11390 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11391 ;;
11392 *)
11393 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11394 ;;
11395 esac
11396 else
11397 case $host_cpu in
11398 hppa*64*)
11399 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11400 ;;
11401 ia64*)
11402 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11403 ;;
11404 *)
11405
11406 # Older versions of the 11.00 compiler do not understand -b yet
11407 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11409 printf %s "checking if $CC understands -b... " >&6; }
11410 if test ${lt_cv_prog_compiler__b+y}
11411 then :
11412 printf %s "(cached) " >&6
11413 else case e in #(
11414 e) lt_cv_prog_compiler__b=no
11415 save_LDFLAGS=$LDFLAGS
11416 LDFLAGS="$LDFLAGS -b"
11417 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11419 # The linker can only warn and ignore the option if not recognized
11420 # So say no if there are warnings
11421 if test -s conftest.err; then
11422 # Append any errors to the config.log.
11423 cat conftest.err 1>&5
11424 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11426 if diff conftest.exp conftest.er2 >/dev/null; then
11427 lt_cv_prog_compiler__b=yes
11428 fi
11429 else
11430 lt_cv_prog_compiler__b=yes
11431 fi
11432 fi
11433 $RM -r conftest*
11434 LDFLAGS=$save_LDFLAGS
11435 ;;
11436 esac
11437 fi
11438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11439 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11440
11441 if test yes = "$lt_cv_prog_compiler__b"; then
11442 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11443 else
11444 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11445 fi
11446
11447 ;;
11448 esac
11449 fi
11450 if test no = "$with_gnu_ld"; then
11451 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11452 hardcode_libdir_separator=:
11453
11454 case $host_cpu in
11455 hppa*64*|ia64*)
11456 hardcode_direct=no
11457 hardcode_shlibpath_var=no
11458 ;;
11459 *)
11460 hardcode_direct=yes
11461 hardcode_direct_absolute=yes
11462 export_dynamic_flag_spec='$wl-E'
11463
11464 # hardcode_minus_L: Not really in the search PATH,
11465 # but as the default location of the library.
11466 hardcode_minus_L=yes
11467 ;;
11468 esac
11469 fi
11470 ;;
11471
11472 irix5* | irix6* | nonstopux*)
11473 if test yes = "$GCC"; then
11474 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'
11475 # Try to use the -exported_symbol ld option, if it does not
11476 # work, assume that -exports_file does not work either and
11477 # implicitly export all symbols.
11478 # This should be the same for all languages, so no per-tag cache variable.
11479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11480 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11481 if test ${lt_cv_irix_exported_symbol+y}
11482 then :
11483 printf %s "(cached) " >&6
11484 else case e in #(
11485 e) save_LDFLAGS=$LDFLAGS
11486 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489 int foo (void) { return 0; }
11490 _ACEOF
11491 if ac_fn_c_try_link "$LINENO"
11492 then :
11493 lt_cv_irix_exported_symbol=yes
11494 else case e in #(
11495 e) lt_cv_irix_exported_symbol=no ;;
11496 esac
11497 fi
11498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11499 conftest$ac_exeext conftest.$ac_ext
11500 LDFLAGS=$save_LDFLAGS ;;
11501 esac
11502 fi
11503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11504 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11505 if test yes = "$lt_cv_irix_exported_symbol"; then
11506 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'
11507 fi
11508 else
11509 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'
11510 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'
11511 fi
11512 archive_cmds_need_lc='no'
11513 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11514 hardcode_libdir_separator=:
11515 inherit_rpath=yes
11516 link_all_deplibs=yes
11517 ;;
11518
11519 linux*)
11520 case $cc_basename in
11521 tcc*)
11522 # Fabrice Bellard et al's Tiny C Compiler
11523 ld_shlibs=yes
11524 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11525 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11526 ;;
11527 esac
11528 ;;
11529
11530 *-mlibc)
11531 ;;
11532
11533 netbsd* | netbsdelf*-gnu)
11534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11536 else
11537 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11538 fi
11539 hardcode_libdir_flag_spec='-R$libdir'
11540 hardcode_direct=yes
11541 hardcode_shlibpath_var=no
11542 ;;
11543
11544 newsos6)
11545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11546 hardcode_direct=yes
11547 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11548 hardcode_libdir_separator=:
11549 hardcode_shlibpath_var=no
11550 ;;
11551
11552 *nto* | *qnx*)
11553 ;;
11554
11555 openbsd*)
11556 if test -f /usr/libexec/ld.so; then
11557 hardcode_direct=yes
11558 hardcode_shlibpath_var=no
11559 hardcode_direct_absolute=yes
11560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11562 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11563 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11564 export_dynamic_flag_spec='$wl-E'
11565 else
11566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11567 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11568 fi
11569 else
11570 ld_shlibs=no
11571 fi
11572 ;;
11573
11574 os2*)
11575 hardcode_libdir_flag_spec='-L$libdir'
11576 hardcode_minus_L=yes
11577 allow_undefined_flag=unsupported
11578 shrext_cmds=.dll
11579 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11580 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11581 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11582 $ECHO EXPORTS >> $output_objdir/$libname.def~
11583 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11584 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11585 emximp -o $lib $output_objdir/$libname.def'
11586 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11587 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11588 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11589 $ECHO EXPORTS >> $output_objdir/$libname.def~
11590 prefix_cmds="$SED"~
11591 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11592 prefix_cmds="$prefix_cmds -e 1d";
11593 fi~
11594 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11595 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11596 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11597 emximp -o $lib $output_objdir/$libname.def'
11598 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11599 enable_shared_with_static_runtimes=yes
11600 file_list_spec='@'
11601 ;;
11602
11603 osf3*)
11604 if test yes = "$GCC"; then
11605 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11606 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'
11607 else
11608 allow_undefined_flag=' -expect_unresolved \*'
11609 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'
11610 fi
11611 archive_cmds_need_lc='no'
11612 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11613 hardcode_libdir_separator=:
11614 ;;
11615
11616 osf4* | osf5*) # as osf3* with the addition of -msym flag
11617 if test yes = "$GCC"; then
11618 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11619 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'
11620 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11621 else
11622 allow_undefined_flag=' -expect_unresolved \*'
11623 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'
11624 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~
11625 $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'
11626
11627 # Both c and cxx compiler support -rpath directly
11628 hardcode_libdir_flag_spec='-rpath $libdir'
11629 fi
11630 archive_cmds_need_lc='no'
11631 hardcode_libdir_separator=:
11632 ;;
11633
11634 serenity*)
11635 ;;
11636
11637 solaris*)
11638 no_undefined_flag=' -z defs'
11639 if test yes = "$GCC"; then
11640 wlarc='$wl'
11641 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11642 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11643 $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'
11644 else
11645 case `$CC -V 2>&1` in
11646 *"Compilers 5.0"*)
11647 wlarc=''
11648 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11650 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11651 ;;
11652 *)
11653 wlarc='$wl'
11654 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11655 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11656 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11657 ;;
11658 esac
11659 fi
11660 hardcode_libdir_flag_spec='-R$libdir'
11661 hardcode_shlibpath_var=no
11662 case $host_os in
11663 solaris2.[0-5] | solaris2.[0-5].*) ;;
11664 *)
11665 # The compiler driver will combine and reorder linker options,
11666 # but understands '-z linker_flag'. GCC discards it without '$wl',
11667 # but is careful enough not to reorder.
11668 # Supported since Solaris 2.6 (maybe 2.5.1?)
11669 if test yes = "$GCC"; then
11670 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11671 else
11672 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11673 fi
11674 ;;
11675 esac
11676 link_all_deplibs=yes
11677 ;;
11678
11679 sunos4*)
11680 if test sequent = "$host_vendor"; then
11681 # Use $CC to link under sequent, because it throws in some extra .o
11682 # files that make .init and .fini sections work.
11683 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11684 else
11685 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11686 fi
11687 hardcode_libdir_flag_spec='-L$libdir'
11688 hardcode_direct=yes
11689 hardcode_minus_L=yes
11690 hardcode_shlibpath_var=no
11691 ;;
11692
11693 sysv4)
11694 case $host_vendor in
11695 sni)
11696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11697 hardcode_direct=yes # is this really true???
11698 ;;
11699 siemens)
11700 ## LD is ld it makes a PLAMLIB
11701 ## CC just makes a GrossModule.
11702 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11703 reload_cmds='$CC -r -o $output$reload_objs'
11704 hardcode_direct=no
11705 ;;
11706 motorola)
11707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11708 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11709 ;;
11710 esac
11711 runpath_var='LD_RUN_PATH'
11712 hardcode_shlibpath_var=no
11713 ;;
11714
11715 sysv4.3*)
11716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11717 hardcode_shlibpath_var=no
11718 export_dynamic_flag_spec='-Bexport'
11719 ;;
11720
11721 sysv4*MP*)
11722 if test -d /usr/nec; then
11723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11724 hardcode_shlibpath_var=no
11725 runpath_var=LD_RUN_PATH
11726 hardcode_runpath_var=yes
11727 ld_shlibs=yes
11728 fi
11729 ;;
11730
11731 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11732 no_undefined_flag='$wl-z,text'
11733 archive_cmds_need_lc=no
11734 hardcode_shlibpath_var=no
11735 runpath_var='LD_RUN_PATH'
11736
11737 if test yes = "$GCC"; then
11738 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11739 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11740 else
11741 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11742 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11743 fi
11744 ;;
11745
11746 sysv5* | sco3.2v5* | sco5v6*)
11747 # Note: We CANNOT use -z defs as we might desire, because we do not
11748 # link with -lc, and that would cause any symbols used from libc to
11749 # always be unresolved, which means just about no library would
11750 # ever link correctly. If we're not using GNU ld we use -z text
11751 # though, which does catch some bad symbols but isn't as heavy-handed
11752 # as -z defs.
11753 no_undefined_flag='$wl-z,text'
11754 allow_undefined_flag='$wl-z,nodefs'
11755 archive_cmds_need_lc=no
11756 hardcode_shlibpath_var=no
11757 hardcode_libdir_flag_spec='$wl-R,$libdir'
11758 hardcode_libdir_separator=':'
11759 link_all_deplibs=yes
11760 export_dynamic_flag_spec='$wl-Bexport'
11761 runpath_var='LD_RUN_PATH'
11762
11763 if test yes = "$GCC"; then
11764 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11765 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11766 else
11767 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11768 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11769 fi
11770 ;;
11771
11772 uts4*)
11773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11774 hardcode_libdir_flag_spec='-L$libdir'
11775 hardcode_shlibpath_var=no
11776 ;;
11777
11778 *)
11779 ld_shlibs=no
11780 ;;
11781 esac
11782
11783 if test sni = "$host_vendor"; then
11784 case $host in
11785 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11786 export_dynamic_flag_spec='$wl-Blargedynsym'
11787 ;;
11788 esac
11789 fi
11790 fi
11791
11792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11793 printf "%s\n" "$ld_shlibs" >&6; }
11794 test no = "$ld_shlibs" && can_build_shared=no
11795
11796 with_gnu_ld=$with_gnu_ld
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812 #
11813 # Do we need to explicitly link libc?
11814 #
11815 case "x$archive_cmds_need_lc" in
11816 x|xyes)
11817 # Assume -lc should be added
11818 archive_cmds_need_lc=yes
11819
11820 if test yes,yes = "$GCC,$enable_shared"; then
11821 case $archive_cmds in
11822 *'~'*)
11823 # FIXME: we may have to deal with multi-command sequences.
11824 ;;
11825 '$CC '*)
11826 # Test whether the compiler implicitly links with -lc since on some
11827 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11828 # to ld, don't add -lc before -lgcc.
11829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11830 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11831 if test ${lt_cv_archive_cmds_need_lc+y}
11832 then :
11833 printf %s "(cached) " >&6
11834 else case e in #(
11835 e) $RM conftest*
11836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11837
11838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11839 (eval $ac_compile) 2>&5
11840 ac_status=$?
11841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11842 test $ac_status = 0; } 2>conftest.err; then
11843 soname=conftest
11844 lib=conftest
11845 libobjs=conftest.$ac_objext
11846 deplibs=
11847 wl=$lt_prog_compiler_wl
11848 pic_flag=$lt_prog_compiler_pic
11849 compiler_flags=-v
11850 linker_flags=-v
11851 verstring=
11852 output_objdir=.
11853 libname=conftest
11854 lt_save_allow_undefined_flag=$allow_undefined_flag
11855 allow_undefined_flag=
11856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11857 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11858 ac_status=$?
11859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11860 test $ac_status = 0; }
11861 then
11862 lt_cv_archive_cmds_need_lc=no
11863 else
11864 lt_cv_archive_cmds_need_lc=yes
11865 fi
11866 allow_undefined_flag=$lt_save_allow_undefined_flag
11867 else
11868 cat conftest.err 1>&5
11869 fi
11870 $RM conftest*
11871 ;;
11872 esac
11873 fi
11874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11875 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11876 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11877 ;;
11878 esac
11879 fi
11880 ;;
11881 esac
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12035 printf %s "checking dynamic linker characteristics... " >&6; }
12036
12037 if test yes = "$GCC"; then
12038 case $host_os in
12039 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12040 *) lt_awk_arg='/^libraries:/' ;;
12041 esac
12042 case $host_os in
12043 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12044 *) lt_sed_strip_eq='s|=/|/|g' ;;
12045 esac
12046 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12047 case $lt_search_path_spec in
12048 *\;*)
12049 # if the path contains ";" then we assume it to be the separator
12050 # otherwise default to the standard path separator (i.e. ":") - it is
12051 # assumed that no part of a normal pathname contains ";" but that should
12052 # okay in the real world where ";" in dirpaths is itself problematic.
12053 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12054 ;;
12055 *)
12056 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12057 ;;
12058 esac
12059 # Ok, now we have the path, separated by spaces, we can step through it
12060 # and add multilib dir if necessary...
12061 lt_tmp_lt_search_path_spec=
12062 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12063 # ...but if some path component already ends with the multilib dir we assume
12064 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12065 case "$lt_multi_os_dir; $lt_search_path_spec " in
12066 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12067 lt_multi_os_dir=
12068 ;;
12069 esac
12070 for lt_sys_path in $lt_search_path_spec; do
12071 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12073 elif test -n "$lt_multi_os_dir"; then
12074 test -d "$lt_sys_path" && \
12075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12076 fi
12077 done
12078 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12079 BEGIN {RS = " "; FS = "/|\n";} {
12080 lt_foo = "";
12081 lt_count = 0;
12082 for (lt_i = NF; lt_i > 0; lt_i--) {
12083 if ($lt_i != "" && $lt_i != ".") {
12084 if ($lt_i == "..") {
12085 lt_count++;
12086 } else {
12087 if (lt_count == 0) {
12088 lt_foo = "/" $lt_i lt_foo;
12089 } else {
12090 lt_count--;
12091 }
12092 }
12093 }
12094 }
12095 if (lt_foo != "") { lt_freq[lt_foo]++; }
12096 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12097 }'`
12098 # AWK program above erroneously prepends '/' to C:/dos/paths
12099 # for these hosts.
12100 case $host_os in
12101 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12102 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12103 esac
12104 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12105 else
12106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12107 fi
12108 library_names_spec=
12109 libname_spec='lib$name'
12110 soname_spec=
12111 shrext_cmds=.so
12112 postinstall_cmds=
12113 postuninstall_cmds=
12114 finish_cmds=
12115 finish_eval=
12116 shlibpath_var=
12117 shlibpath_overrides_runpath=unknown
12118 version_type=none
12119 dynamic_linker="$host_os ld.so"
12120 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12121 need_lib_prefix=unknown
12122 hardcode_into_libs=no
12123
12124 # when you set need_version to no, make sure it does not cause -set_version
12125 # flags to be left without arguments
12126 need_version=unknown
12127
12128
12129
12130 case $host_os in
12131 aix3*)
12132 version_type=linux # correct to gnu/linux during the next big refactor
12133 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12134 shlibpath_var=LIBPATH
12135
12136 # AIX 3 has no versioning support, so we append a major version to the name.
12137 soname_spec='$libname$release$shared_ext$major'
12138 ;;
12139
12140 aix[4-9]*)
12141 version_type=linux # correct to gnu/linux during the next big refactor
12142 need_lib_prefix=no
12143 need_version=no
12144 hardcode_into_libs=yes
12145 if test ia64 = "$host_cpu"; then
12146 # AIX 5 supports IA64
12147 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12148 shlibpath_var=LD_LIBRARY_PATH
12149 else
12150 # With GCC up to 2.95.x, collect2 would create an import file
12151 # for dependence libraries. The import file would start with
12152 # the line '#! .'. This would cause the generated library to
12153 # depend on '.', always an invalid library. This was fixed in
12154 # development snapshots of GCC prior to 3.0.
12155 case $host_os in
12156 aix4 | aix4.[01] | aix4.[01].*)
12157 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12158 echo ' yes '
12159 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12160 :
12161 else
12162 can_build_shared=no
12163 fi
12164 ;;
12165 esac
12166 # Using Import Files as archive members, it is possible to support
12167 # filename-based versioning of shared library archives on AIX. While
12168 # this would work for both with and without runtime linking, it will
12169 # prevent static linking of such archives. So we do filename-based
12170 # shared library versioning with .so extension only, which is used
12171 # when both runtime linking and shared linking is enabled.
12172 # Unfortunately, runtime linking may impact performance, so we do
12173 # not want this to be the default eventually. Also, we use the
12174 # versioned .so libs for executables only if there is the -brtl
12175 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12176 # To allow for filename-based versioning support, we need to create
12177 # libNAME.so.V as an archive file, containing:
12178 # *) an Import File, referring to the versioned filename of the
12179 # archive as well as the shared archive member, telling the
12180 # bitwidth (32 or 64) of that shared object, and providing the
12181 # list of exported symbols of that shared object, eventually
12182 # decorated with the 'weak' keyword
12183 # *) the shared object with the F_LOADONLY flag set, to really avoid
12184 # it being seen by the linker.
12185 # At run time we better use the real file rather than another symlink,
12186 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12187
12188 case $with_aix_soname,$aix_use_runtimelinking in
12189 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12190 # soname into executable. Probably we can add versioning support to
12191 # collect2, so additional links can be useful in future.
12192 aix,yes) # traditional libtool
12193 dynamic_linker='AIX unversionable lib.so'
12194 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12195 # instead of lib<name>.a to let people know that these are not
12196 # typical AIX shared libraries.
12197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12198 ;;
12199 aix,no) # traditional AIX only
12200 dynamic_linker='AIX lib.a(lib.so.V)'
12201 # We preserve .a as extension for shared libraries through AIX4.2
12202 # and later when we are not doing run time linking.
12203 library_names_spec='$libname$release.a $libname.a'
12204 soname_spec='$libname$release$shared_ext$major'
12205 ;;
12206 svr4,*) # full svr4 only
12207 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12208 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12209 # We do not specify a path in Import Files, so LIBPATH fires.
12210 shlibpath_overrides_runpath=yes
12211 ;;
12212 *,yes) # both, prefer svr4
12213 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12214 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12215 # unpreferred sharedlib libNAME.a needs extra handling
12216 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"'
12217 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"'
12218 # We do not specify a path in Import Files, so LIBPATH fires.
12219 shlibpath_overrides_runpath=yes
12220 ;;
12221 *,no) # both, prefer aix
12222 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12223 library_names_spec='$libname$release.a $libname.a'
12224 soname_spec='$libname$release$shared_ext$major'
12225 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12226 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)'
12227 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"'
12228 ;;
12229 esac
12230 shlibpath_var=LIBPATH
12231 fi
12232 ;;
12233
12234 amigaos*)
12235 case $host_cpu in
12236 powerpc)
12237 # Since July 2007 AmigaOS4 officially supports .so libraries.
12238 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12240 ;;
12241 m68k)
12242 library_names_spec='$libname.ixlibrary $libname.a'
12243 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12244 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'
12245 ;;
12246 esac
12247 ;;
12248
12249 beos*)
12250 library_names_spec='$libname$shared_ext'
12251 dynamic_linker="$host_os ld.so"
12252 shlibpath_var=LIBRARY_PATH
12253 ;;
12254
12255 bsdi[45]*)
12256 version_type=linux # correct to gnu/linux during the next big refactor
12257 need_version=no
12258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12259 soname_spec='$libname$release$shared_ext$major'
12260 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12261 shlibpath_var=LD_LIBRARY_PATH
12262 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12263 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12264 # the default ld.so.conf also contains /usr/contrib/lib and
12265 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12266 # libtool to hard-code these into programs
12267 ;;
12268
12269 cygwin* | mingw* | windows* | pw32* | cegcc*)
12270 version_type=windows
12271 shrext_cmds=.dll
12272 need_version=no
12273 need_lib_prefix=no
12274
12275 case $GCC,$cc_basename in
12276 yes,*)
12277 # gcc
12278 library_names_spec='$libname.dll.a'
12279 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12280 # If user builds GCC with multilib enabled,
12281 # it should just install on $(libdir)
12282 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12283 if test xyes = x"$multilib"; then
12284 postinstall_cmds='base_file=`basename \$file`~
12285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12286 dldir=$destdir/`dirname \$dlpath`~
12287 $install_prog $dir/$dlname $destdir/$dlname~
12288 chmod a+x $destdir/$dlname~
12289 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12290 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12291 fi'
12292 else
12293 postinstall_cmds='base_file=`basename \$file`~
12294 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12295 dldir=$destdir/`dirname \$dlpath`~
12296 test -d \$dldir || mkdir -p \$dldir~
12297 $install_prog $dir/$dlname \$dldir/$dlname~
12298 chmod a+x \$dldir/$dlname~
12299 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12300 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12301 fi'
12302 fi
12303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12304 dlpath=$dir/\$dldll~
12305 $RM \$dlpath'
12306 shlibpath_overrides_runpath=yes
12307
12308 case $host_os in
12309 cygwin*)
12310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12311 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12312
12313 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12314 ;;
12315 mingw* | windows* | cegcc*)
12316 # MinGW DLLs use traditional 'lib' prefix
12317 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12318 ;;
12319 pw32*)
12320 # pw32 DLLs use 'pw' prefix rather than 'lib'
12321 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12322 ;;
12323 esac
12324 dynamic_linker='Win32 ld.exe'
12325 ;;
12326
12327 *,cl* | *,icl*)
12328 # Native MSVC or ICC
12329 libname_spec='$name'
12330 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12331 library_names_spec='$libname.dll.lib'
12332
12333 case $build_os in
12334 mingw* | windows*)
12335 sys_lib_search_path_spec=
12336 lt_save_ifs=$IFS
12337 IFS=';'
12338 for lt_path in $LIB
12339 do
12340 IFS=$lt_save_ifs
12341 # Let DOS variable expansion print the short 8.3 style file name.
12342 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12343 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12344 done
12345 IFS=$lt_save_ifs
12346 # Convert to MSYS style.
12347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12348 ;;
12349 cygwin*)
12350 # Convert to unix form, then to dos form, then back to unix form
12351 # but this time dos style (no spaces!) so that the unix form looks
12352 # like /cygdrive/c/PROGRA~1:/cygdr...
12353 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12354 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12355 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12356 ;;
12357 *)
12358 sys_lib_search_path_spec=$LIB
12359 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12360 # It is most probably a Windows format PATH.
12361 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12362 else
12363 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12364 fi
12365 # FIXME: find the short name or the path components, as spaces are
12366 # common. (e.g. "Program Files" -> "PROGRA~1")
12367 ;;
12368 esac
12369
12370 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12371 postinstall_cmds='base_file=`basename \$file`~
12372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12373 dldir=$destdir/`dirname \$dlpath`~
12374 test -d \$dldir || mkdir -p \$dldir~
12375 $install_prog $dir/$dlname \$dldir/$dlname'
12376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12377 dlpath=$dir/\$dldll~
12378 $RM \$dlpath'
12379 shlibpath_overrides_runpath=yes
12380 dynamic_linker='Win32 link.exe'
12381 ;;
12382
12383 *)
12384 # Assume MSVC and ICC wrapper
12385 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12386 dynamic_linker='Win32 ld.exe'
12387 ;;
12388 esac
12389 # FIXME: first we should search . and the directory the executable is in
12390 shlibpath_var=PATH
12391 ;;
12392
12393 darwin* | rhapsody*)
12394 dynamic_linker="$host_os dyld"
12395 version_type=darwin
12396 need_lib_prefix=no
12397 need_version=no
12398 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12399 soname_spec='$libname$release$major$shared_ext'
12400 shlibpath_overrides_runpath=yes
12401 shlibpath_var=DYLD_LIBRARY_PATH
12402 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12403
12404 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12405 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12406 ;;
12407
12408 dgux*)
12409 version_type=linux # correct to gnu/linux during the next big refactor
12410 need_lib_prefix=no
12411 need_version=no
12412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12413 soname_spec='$libname$release$shared_ext$major'
12414 shlibpath_var=LD_LIBRARY_PATH
12415 ;;
12416
12417 freebsd* | dragonfly* | midnightbsd*)
12418 # DragonFly does not have aout. When/if they implement a new
12419 # versioning mechanism, adjust this.
12420 if test -x /usr/bin/objformat; then
12421 objformat=`/usr/bin/objformat`
12422 else
12423 case $host_os in
12424 freebsd[23].*) objformat=aout ;;
12425 *) objformat=elf ;;
12426 esac
12427 fi
12428 version_type=freebsd-$objformat
12429 case $version_type in
12430 freebsd-elf*)
12431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12432 soname_spec='$libname$release$shared_ext$major'
12433 need_version=no
12434 need_lib_prefix=no
12435 ;;
12436 freebsd-*)
12437 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12438 need_version=yes
12439 ;;
12440 esac
12441 case $host_cpu in
12442 powerpc64)
12443 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12444 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12447 int test_pointer_size[sizeof (void *) - 5];
12448
12449 _ACEOF
12450 if ac_fn_c_try_compile "$LINENO"
12451 then :
12452 shlibpath_var=LD_LIBRARY_PATH
12453 else case e in #(
12454 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12455 esac
12456 fi
12457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12458 ;;
12459 *)
12460 shlibpath_var=LD_LIBRARY_PATH
12461 ;;
12462 esac
12463 case $host_os in
12464 freebsd2.*)
12465 shlibpath_overrides_runpath=yes
12466 ;;
12467 freebsd3.[01]* | freebsdelf3.[01]*)
12468 shlibpath_overrides_runpath=yes
12469 hardcode_into_libs=yes
12470 ;;
12471 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12472 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12473 shlibpath_overrides_runpath=no
12474 hardcode_into_libs=yes
12475 ;;
12476 *) # from 4.6 on, and DragonFly
12477 shlibpath_overrides_runpath=yes
12478 hardcode_into_libs=yes
12479 ;;
12480 esac
12481 ;;
12482
12483 haiku*)
12484 version_type=linux # correct to gnu/linux during the next big refactor
12485 need_lib_prefix=no
12486 need_version=no
12487 dynamic_linker="$host_os runtime_loader"
12488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12489 soname_spec='$libname$release$shared_ext$major'
12490 shlibpath_var=LIBRARY_PATH
12491 shlibpath_overrides_runpath=no
12492 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12493 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12494 hardcode_into_libs=no
12495 ;;
12496
12497 hpux9* | hpux10* | hpux11*)
12498 # Give a soname corresponding to the major version so that dld.sl refuses to
12499 # link against other versions.
12500 version_type=sunos
12501 need_lib_prefix=no
12502 need_version=no
12503 case $host_cpu in
12504 ia64*)
12505 shrext_cmds='.so'
12506 hardcode_into_libs=yes
12507 dynamic_linker="$host_os dld.so"
12508 shlibpath_var=LD_LIBRARY_PATH
12509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12511 soname_spec='$libname$release$shared_ext$major'
12512 if test 32 = "$HPUX_IA64_MODE"; then
12513 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12514 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12515 else
12516 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12517 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12518 fi
12519 ;;
12520 hppa*64*)
12521 shrext_cmds='.sl'
12522 hardcode_into_libs=yes
12523 dynamic_linker="$host_os dld.sl"
12524 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12527 soname_spec='$libname$release$shared_ext$major'
12528 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12530 ;;
12531 *)
12532 shrext_cmds='.sl'
12533 dynamic_linker="$host_os dld.sl"
12534 shlibpath_var=SHLIB_PATH
12535 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12537 soname_spec='$libname$release$shared_ext$major'
12538 ;;
12539 esac
12540 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12541 postinstall_cmds='chmod 555 $lib'
12542 # or fails outright, so override atomically:
12543 install_override_mode=555
12544 ;;
12545
12546 interix[3-9]*)
12547 version_type=linux # correct to gnu/linux during the next big refactor
12548 need_lib_prefix=no
12549 need_version=no
12550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12551 soname_spec='$libname$release$shared_ext$major'
12552 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12553 shlibpath_var=LD_LIBRARY_PATH
12554 shlibpath_overrides_runpath=no
12555 hardcode_into_libs=yes
12556 ;;
12557
12558 irix5* | irix6* | nonstopux*)
12559 case $host_os in
12560 nonstopux*) version_type=nonstopux ;;
12561 *)
12562 if test yes = "$lt_cv_prog_gnu_ld"; then
12563 version_type=linux # correct to gnu/linux during the next big refactor
12564 else
12565 version_type=irix
12566 fi ;;
12567 esac
12568 need_lib_prefix=no
12569 need_version=no
12570 soname_spec='$libname$release$shared_ext$major'
12571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12572 case $host_os in
12573 irix5* | nonstopux*)
12574 libsuff= shlibsuff=
12575 ;;
12576 *)
12577 case $LD in # libtool.m4 will add one of these switches to LD
12578 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12579 libsuff= shlibsuff= libmagic=32-bit;;
12580 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12581 libsuff=32 shlibsuff=N32 libmagic=N32;;
12582 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12583 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12584 *) libsuff= shlibsuff= libmagic=never-match;;
12585 esac
12586 ;;
12587 esac
12588 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12589 shlibpath_overrides_runpath=no
12590 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12591 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12592 hardcode_into_libs=yes
12593 ;;
12594
12595 # No shared lib support for Linux oldld, aout, or coff.
12596 linux*oldld* | linux*aout* | linux*coff*)
12597 dynamic_linker=no
12598 ;;
12599
12600 linux*android*)
12601 version_type=none # Android doesn't support versioned libraries.
12602 need_lib_prefix=no
12603 need_version=no
12604 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12605 soname_spec='$libname$release$shared_ext'
12606 finish_cmds=
12607 shlibpath_var=LD_LIBRARY_PATH
12608 shlibpath_overrides_runpath=yes
12609
12610 # This implies no fast_install, which is unacceptable.
12611 # Some rework will be needed to allow for fast_install
12612 # before this can be enabled.
12613 hardcode_into_libs=yes
12614
12615 dynamic_linker='Android linker'
12616 # -rpath works at least for libraries that are not overridden by
12617 # libraries installed in system locations.
12618 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12619 ;;
12620
12621 # This must be glibc/ELF.
12622 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12623 version_type=linux # correct to gnu/linux during the next big refactor
12624 need_lib_prefix=no
12625 need_version=no
12626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12627 soname_spec='$libname$release$shared_ext$major'
12628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12629 shlibpath_var=LD_LIBRARY_PATH
12630 shlibpath_overrides_runpath=no
12631
12632 # Some binutils ld are patched to set DT_RUNPATH
12633 if test ${lt_cv_shlibpath_overrides_runpath+y}
12634 then :
12635 printf %s "(cached) " >&6
12636 else case e in #(
12637 e) lt_cv_shlibpath_overrides_runpath=no
12638 save_LDFLAGS=$LDFLAGS
12639 save_libdir=$libdir
12640 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12641 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12644
12645 int
12646 main (void)
12647 {
12648
12649 ;
12650 return 0;
12651 }
12652 _ACEOF
12653 if ac_fn_c_try_link "$LINENO"
12654 then :
12655 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12656 then :
12657 lt_cv_shlibpath_overrides_runpath=yes
12658 fi
12659 fi
12660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12661 conftest$ac_exeext conftest.$ac_ext
12662 LDFLAGS=$save_LDFLAGS
12663 libdir=$save_libdir
12664 ;;
12665 esac
12666 fi
12667
12668 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12669
12670 # This implies no fast_install, which is unacceptable.
12671 # Some rework will be needed to allow for fast_install
12672 # before this can be enabled.
12673 hardcode_into_libs=yes
12674
12675 # Add ABI-specific directories to the system library path.
12676 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12677
12678 # Ideally, we could use ldconfig to report *all* directories which are
12679 # searched for libraries, however this is still not possible. Aside from not
12680 # being certain /sbin/ldconfig is available, command
12681 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12682 # even though it is searched at run-time. Try to do the best guess by
12683 # appending ld.so.conf contents (and includes) to the search path.
12684 if test -f /etc/ld.so.conf; then
12685 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' ' '`
12686 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12687 fi
12688
12689 # We used to test for /lib/ld.so.1 and disable shared libraries on
12690 # powerpc, because MkLinux only supported shared libraries with the
12691 # GNU dynamic linker. Since this was broken with cross compilers,
12692 # most powerpc-linux boxes support dynamic linking these days and
12693 # people can always --disable-shared, the test was removed, and we
12694 # assume the GNU/Linux dynamic linker is in use.
12695 dynamic_linker='GNU/Linux ld.so'
12696 ;;
12697
12698 netbsdelf*-gnu)
12699 version_type=linux
12700 need_lib_prefix=no
12701 need_version=no
12702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12703 soname_spec='$libname$release$shared_ext$major'
12704 shlibpath_var=LD_LIBRARY_PATH
12705 shlibpath_overrides_runpath=no
12706 hardcode_into_libs=yes
12707 dynamic_linker='NetBSD ld.elf_so'
12708 ;;
12709
12710 netbsd*)
12711 version_type=sunos
12712 need_lib_prefix=no
12713 need_version=no
12714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12715 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12717 dynamic_linker='NetBSD (a.out) ld.so'
12718 else
12719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12720 soname_spec='$libname$release$shared_ext$major'
12721 dynamic_linker='NetBSD ld.elf_so'
12722 fi
12723 shlibpath_var=LD_LIBRARY_PATH
12724 shlibpath_overrides_runpath=yes
12725 hardcode_into_libs=yes
12726 ;;
12727
12728 *-mlibc)
12729 version_type=linux # correct to gnu/linux during the next big refactor
12730 need_lib_prefix=no
12731 need_version=no
12732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12733 soname_spec='$libname$release$shared_ext$major'
12734 dynamic_linker='mlibc ld.so'
12735 shlibpath_var=LD_LIBRARY_PATH
12736 shlibpath_overrides_runpath=no
12737 hardcode_into_libs=yes
12738 ;;
12739
12740 newsos6)
12741 version_type=linux # correct to gnu/linux during the next big refactor
12742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12743 shlibpath_var=LD_LIBRARY_PATH
12744 shlibpath_overrides_runpath=yes
12745 ;;
12746
12747 *nto* | *qnx*)
12748 version_type=qnx
12749 need_lib_prefix=no
12750 need_version=no
12751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12752 soname_spec='$libname$release$shared_ext$major'
12753 shlibpath_var=LD_LIBRARY_PATH
12754 shlibpath_overrides_runpath=no
12755 hardcode_into_libs=yes
12756 dynamic_linker='ldqnx.so'
12757 ;;
12758
12759 openbsd*)
12760 version_type=sunos
12761 sys_lib_dlsearch_path_spec=/usr/lib
12762 need_lib_prefix=no
12763 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12764 need_version=no
12765 else
12766 need_version=yes
12767 fi
12768 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12770 shlibpath_var=LD_LIBRARY_PATH
12771 shlibpath_overrides_runpath=yes
12772 ;;
12773
12774 os2*)
12775 libname_spec='$name'
12776 version_type=windows
12777 shrext_cmds=.dll
12778 need_version=no
12779 need_lib_prefix=no
12780 # OS/2 can only load a DLL with a base name of 8 characters or less.
12781 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12782 v=$($ECHO $release$versuffix | tr -d .-);
12783 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12784 $ECHO $n$v`$shared_ext'
12785 library_names_spec='${libname}_dll.$libext'
12786 dynamic_linker='OS/2 ld.exe'
12787 shlibpath_var=BEGINLIBPATH
12788 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12790 postinstall_cmds='base_file=`basename \$file`~
12791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12792 dldir=$destdir/`dirname \$dlpath`~
12793 test -d \$dldir || mkdir -p \$dldir~
12794 $install_prog $dir/$dlname \$dldir/$dlname~
12795 chmod a+x \$dldir/$dlname~
12796 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12797 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12798 fi'
12799 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12800 dlpath=$dir/\$dldll~
12801 $RM \$dlpath'
12802 ;;
12803
12804 osf3* | osf4* | osf5*)
12805 version_type=osf
12806 need_lib_prefix=no
12807 need_version=no
12808 soname_spec='$libname$release$shared_ext$major'
12809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12810 shlibpath_var=LD_LIBRARY_PATH
12811 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12813 ;;
12814
12815 rdos*)
12816 dynamic_linker=no
12817 ;;
12818
12819 serenity*)
12820 version_type=linux # correct to gnu/linux during the next big refactor
12821 need_lib_prefix=no
12822 need_version=no
12823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12824 soname_spec='$libname$release$shared_ext$major'
12825 shlibpath_var=LD_LIBRARY_PATH
12826 shlibpath_overrides_runpath=no
12827 dynamic_linker='SerenityOS LibELF'
12828 ;;
12829
12830 solaris*)
12831 version_type=linux # correct to gnu/linux during the next big refactor
12832 need_lib_prefix=no
12833 need_version=no
12834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12835 soname_spec='$libname$release$shared_ext$major'
12836 shlibpath_var=LD_LIBRARY_PATH
12837 shlibpath_overrides_runpath=yes
12838 hardcode_into_libs=yes
12839 # ldd complains unless libraries are executable
12840 postinstall_cmds='chmod +x $lib'
12841 ;;
12842
12843 sunos4*)
12844 version_type=sunos
12845 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12846 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12847 shlibpath_var=LD_LIBRARY_PATH
12848 shlibpath_overrides_runpath=yes
12849 if test yes = "$with_gnu_ld"; then
12850 need_lib_prefix=no
12851 fi
12852 need_version=yes
12853 ;;
12854
12855 sysv4 | sysv4.3*)
12856 version_type=linux # correct to gnu/linux during the next big refactor
12857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12858 soname_spec='$libname$release$shared_ext$major'
12859 shlibpath_var=LD_LIBRARY_PATH
12860 case $host_vendor in
12861 sni)
12862 shlibpath_overrides_runpath=no
12863 need_lib_prefix=no
12864 runpath_var=LD_RUN_PATH
12865 ;;
12866 siemens)
12867 need_lib_prefix=no
12868 ;;
12869 motorola)
12870 need_lib_prefix=no
12871 need_version=no
12872 shlibpath_overrides_runpath=no
12873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12874 ;;
12875 esac
12876 ;;
12877
12878 sysv4*MP*)
12879 if test -d /usr/nec; then
12880 version_type=linux # correct to gnu/linux during the next big refactor
12881 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12882 soname_spec='$libname$shared_ext.$major'
12883 shlibpath_var=LD_LIBRARY_PATH
12884 fi
12885 ;;
12886
12887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12888 version_type=sco
12889 need_lib_prefix=no
12890 need_version=no
12891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12892 soname_spec='$libname$release$shared_ext$major'
12893 shlibpath_var=LD_LIBRARY_PATH
12894 shlibpath_overrides_runpath=yes
12895 hardcode_into_libs=yes
12896 if test yes = "$with_gnu_ld"; then
12897 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12898 else
12899 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12900 case $host_os in
12901 sco3.2v5*)
12902 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12903 ;;
12904 esac
12905 fi
12906 sys_lib_dlsearch_path_spec='/usr/lib'
12907 ;;
12908
12909 tpf*)
12910 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12911 version_type=linux # correct to gnu/linux during the next big refactor
12912 need_lib_prefix=no
12913 need_version=no
12914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12915 shlibpath_var=LD_LIBRARY_PATH
12916 shlibpath_overrides_runpath=no
12917 hardcode_into_libs=yes
12918 ;;
12919
12920 uts4*)
12921 version_type=linux # correct to gnu/linux during the next big refactor
12922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12923 soname_spec='$libname$release$shared_ext$major'
12924 shlibpath_var=LD_LIBRARY_PATH
12925 ;;
12926
12927 emscripten*)
12928 version_type=none
12929 need_lib_prefix=no
12930 need_version=no
12931 library_names_spec='$libname$release$shared_ext'
12932 soname_spec='$libname$release$shared_ext'
12933 finish_cmds=
12934 dynamic_linker="Emscripten linker"
12935 lt_prog_compiler_wl=
12936 lt_prog_compiler_pic=
12937 lt_prog_compiler_static=
12938
12939
12940 if test yes = "$GCC"; then
12941 lt_prog_compiler_wl='-Wl,'
12942 lt_prog_compiler_static='-static'
12943
12944 case $host_os in
12945 aix*)
12946 # All AIX code is PIC.
12947 if test ia64 = "$host_cpu"; then
12948 # AIX 5 now supports IA64 processor
12949 lt_prog_compiler_static='-Bstatic'
12950 fi
12951 lt_prog_compiler_pic='-fPIC'
12952 ;;
12953
12954 amigaos*)
12955 case $host_cpu in
12956 powerpc)
12957 # see comment about AmigaOS4 .so support
12958 lt_prog_compiler_pic='-fPIC'
12959 ;;
12960 m68k)
12961 # FIXME: we need at least 68020 code to build shared libraries, but
12962 # adding the '-m68020' flag to GCC prevents building anything better,
12963 # like '-m68040'.
12964 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12965 ;;
12966 esac
12967 ;;
12968
12969 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12970 # PIC is the default for these OSes.
12971 ;;
12972
12973 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12974 # This hack is so that the source file can tell whether it is being
12975 # built for inclusion in a dll (and should export symbols for example).
12976 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12977 # (--disable-auto-import) libraries
12978 lt_prog_compiler_pic='-DDLL_EXPORT'
12979 case $host_os in
12980 os2*)
12981 lt_prog_compiler_static='$wl-static'
12982 ;;
12983 esac
12984 ;;
12985
12986 darwin* | rhapsody*)
12987 # PIC is the default on this platform
12988 # Common symbols not allowed in MH_DYLIB files
12989 lt_prog_compiler_pic='-fno-common'
12990 ;;
12991
12992 haiku*)
12993 # PIC is the default for Haiku.
12994 # The "-static" flag exists, but is broken.
12995 lt_prog_compiler_static=
12996 ;;
12997
12998 hpux*)
12999 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13000 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13001 # sets the default TLS model and affects inlining.
13002 case $host_cpu in
13003 hppa*64*)
13004 # +Z the default
13005 ;;
13006 *)
13007 lt_prog_compiler_pic='-fPIC'
13008 ;;
13009 esac
13010 ;;
13011
13012 interix[3-9]*)
13013 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13014 # Instead, we relocate shared libraries at runtime.
13015 ;;
13016
13017 msdosdjgpp*)
13018 # Just because we use GCC doesn't mean we suddenly get shared libraries
13019 # on systems that don't support them.
13020 lt_prog_compiler_can_build_shared=no
13021 enable_shared=no
13022 ;;
13023
13024 *nto* | *qnx*)
13025 # QNX uses GNU C++, but need to define -shared option too, otherwise
13026 # it will coredump.
13027 lt_prog_compiler_pic='-fPIC -shared'
13028 ;;
13029
13030 sysv4*MP*)
13031 if test -d /usr/nec; then
13032 lt_prog_compiler_pic=-Kconform_pic
13033 fi
13034 ;;
13035
13036 *)
13037 lt_prog_compiler_pic='-fPIC'
13038 ;;
13039 esac
13040
13041 case $cc_basename in
13042 nvcc*) # Cuda Compiler Driver 2.2
13043 lt_prog_compiler_wl='-Xlinker '
13044 if test -n "$lt_prog_compiler_pic"; then
13045 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13046 fi
13047 ;;
13048 esac
13049 else
13050 # PORTME Check for flag to pass linker flags through the system compiler.
13051 case $host_os in
13052 aix*)
13053 lt_prog_compiler_wl='-Wl,'
13054 if test ia64 = "$host_cpu"; then
13055 # AIX 5 now supports IA64 processor
13056 lt_prog_compiler_static='-Bstatic'
13057 else
13058 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13059 fi
13060 ;;
13061
13062 darwin* | rhapsody*)
13063 # PIC is the default on this platform
13064 # Common symbols not allowed in MH_DYLIB files
13065 lt_prog_compiler_pic='-fno-common'
13066 case $cc_basename in
13067 nagfor*)
13068 # NAG Fortran compiler
13069 lt_prog_compiler_wl='-Wl,-Wl,,'
13070 lt_prog_compiler_pic='-PIC'
13071 lt_prog_compiler_static='-Bstatic'
13072 ;;
13073 esac
13074 ;;
13075
13076 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13077 # This hack is so that the source file can tell whether it is being
13078 # built for inclusion in a dll (and should export symbols for example).
13079 lt_prog_compiler_pic='-DDLL_EXPORT'
13080 case $host_os in
13081 os2*)
13082 lt_prog_compiler_static='$wl-static'
13083 ;;
13084 esac
13085 ;;
13086
13087 hpux9* | hpux10* | hpux11*)
13088 lt_prog_compiler_wl='-Wl,'
13089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13090 # not for PA HP-UX.
13091 case $host_cpu in
13092 hppa*64*|ia64*)
13093 # +Z the default
13094 ;;
13095 *)
13096 lt_prog_compiler_pic='+Z'
13097 ;;
13098 esac
13099 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13100 lt_prog_compiler_static='$wl-a ${wl}archive'
13101 ;;
13102
13103 irix5* | irix6* | nonstopux*)
13104 lt_prog_compiler_wl='-Wl,'
13105 # PIC (with -KPIC) is the default.
13106 lt_prog_compiler_static='-non_shared'
13107 ;;
13108
13109 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13110 case $cc_basename in
13111 # old Intel for x86_64, which still supported -KPIC.
13112 ecc*)
13113 lt_prog_compiler_wl='-Wl,'
13114 lt_prog_compiler_pic='-KPIC'
13115 lt_prog_compiler_static='-static'
13116 ;;
13117 *flang* | ftn | f18* | f95*)
13118 # Flang compiler.
13119 lt_prog_compiler_wl='-Wl,'
13120 lt_prog_compiler_pic='-fPIC'
13121 lt_prog_compiler_static='-static'
13122 ;;
13123 # icc used to be incompatible with GCC.
13124 # ICC 10 doesn't accept -KPIC any more.
13125 icc* | ifort*)
13126 lt_prog_compiler_wl='-Wl,'
13127 lt_prog_compiler_pic='-fPIC'
13128 lt_prog_compiler_static='-static'
13129 ;;
13130 # Lahey Fortran 8.1.
13131 lf95*)
13132 lt_prog_compiler_wl='-Wl,'
13133 lt_prog_compiler_pic='--shared'
13134 lt_prog_compiler_static='--static'
13135 ;;
13136 nagfor*)
13137 # NAG Fortran compiler
13138 lt_prog_compiler_wl='-Wl,-Wl,,'
13139 lt_prog_compiler_pic='-PIC'
13140 lt_prog_compiler_static='-Bstatic'
13141 ;;
13142 tcc*)
13143 # Fabrice Bellard et al's Tiny C Compiler
13144 lt_prog_compiler_wl='-Wl,'
13145 lt_prog_compiler_pic='-fPIC'
13146 lt_prog_compiler_static='-static'
13147 ;;
13148 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13149 # Portland Group compilers (*not* the Pentium gcc compiler,
13150 # which looks to be a dead project)
13151 lt_prog_compiler_wl='-Wl,'
13152 lt_prog_compiler_pic='-fpic'
13153 lt_prog_compiler_static='-Bstatic'
13154 ;;
13155 ccc*)
13156 lt_prog_compiler_wl='-Wl,'
13157 # All Alpha code is PIC.
13158 lt_prog_compiler_static='-non_shared'
13159 ;;
13160 xl* | bgxl* | bgf* | mpixl*)
13161 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13162 lt_prog_compiler_wl='-Wl,'
13163 lt_prog_compiler_pic='-qpic'
13164 lt_prog_compiler_static='-qstaticlink'
13165 ;;
13166 *)
13167 case `$CC -V 2>&1 | $SED 5q` in
13168 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13169 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13170 lt_prog_compiler_pic='-KPIC'
13171 lt_prog_compiler_static='-Bstatic'
13172 lt_prog_compiler_wl=''
13173 ;;
13174 *Sun\ F* | *Sun*Fortran*)
13175 lt_prog_compiler_pic='-KPIC'
13176 lt_prog_compiler_static='-Bstatic'
13177 lt_prog_compiler_wl='-Qoption ld '
13178 ;;
13179 *Sun\ C*)
13180 # Sun C 5.9
13181 lt_prog_compiler_pic='-KPIC'
13182 lt_prog_compiler_static='-Bstatic'
13183 lt_prog_compiler_wl='-Wl,'
13184 ;;
13185 *Intel*\ [CF]*Compiler*)
13186 lt_prog_compiler_wl='-Wl,'
13187 lt_prog_compiler_pic='-fPIC'
13188 lt_prog_compiler_static='-static'
13189 ;;
13190 *Portland\ Group*)
13191 lt_prog_compiler_wl='-Wl,'
13192 lt_prog_compiler_pic='-fpic'
13193 lt_prog_compiler_static='-Bstatic'
13194 ;;
13195 esac
13196 ;;
13197 esac
13198 ;;
13199
13200 newsos6)
13201 lt_prog_compiler_pic='-KPIC'
13202 lt_prog_compiler_static='-Bstatic'
13203 ;;
13204
13205 *-mlibc)
13206 lt_prog_compiler_wl='-Wl,'
13207 lt_prog_compiler_pic='-fPIC'
13208 lt_prog_compiler_static='-static'
13209 ;;
13210
13211 *nto* | *qnx*)
13212 # QNX uses GNU C++, but need to define -shared option too, otherwise
13213 # it will coredump.
13214 lt_prog_compiler_pic='-fPIC -shared'
13215 ;;
13216
13217 osf3* | osf4* | osf5*)
13218 lt_prog_compiler_wl='-Wl,'
13219 # All OSF/1 code is PIC.
13220 lt_prog_compiler_static='-non_shared'
13221 ;;
13222
13223 rdos*)
13224 lt_prog_compiler_static='-non_shared'
13225 ;;
13226
13227 serenity*)
13228 ;;
13229
13230 solaris*)
13231 lt_prog_compiler_pic='-KPIC'
13232 lt_prog_compiler_static='-Bstatic'
13233 case $cc_basename in
13234 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13235 lt_prog_compiler_wl='-Qoption ld ';;
13236 *)
13237 lt_prog_compiler_wl='-Wl,';;
13238 esac
13239 ;;
13240
13241 sunos4*)
13242 lt_prog_compiler_wl='-Qoption ld '
13243 lt_prog_compiler_pic='-PIC'
13244 lt_prog_compiler_static='-Bstatic'
13245 ;;
13246
13247 sysv4 | sysv4.2uw2* | sysv4.3*)
13248 lt_prog_compiler_wl='-Wl,'
13249 lt_prog_compiler_pic='-KPIC'
13250 lt_prog_compiler_static='-Bstatic'
13251 ;;
13252
13253 sysv4*MP*)
13254 if test -d /usr/nec; then
13255 lt_prog_compiler_pic='-Kconform_pic'
13256 lt_prog_compiler_static='-Bstatic'
13257 fi
13258 ;;
13259
13260 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13261 lt_prog_compiler_wl='-Wl,'
13262 lt_prog_compiler_pic='-KPIC'
13263 lt_prog_compiler_static='-Bstatic'
13264 ;;
13265
13266 unicos*)
13267 lt_prog_compiler_wl='-Wl,'
13268 lt_prog_compiler_can_build_shared=no
13269 ;;
13270
13271 uts4*)
13272 lt_prog_compiler_pic='-pic'
13273 lt_prog_compiler_static='-Bstatic'
13274 ;;
13275
13276 *)
13277 lt_prog_compiler_can_build_shared=no
13278 ;;
13279 esac
13280 fi
13281
13282 case $host_os in
13283 # For platforms that do not support PIC, -DPIC is meaningless:
13284 *djgpp*)
13285 lt_prog_compiler_pic=
13286 ;;
13287 *)
13288 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13289 ;;
13290 esac
13291
13292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13293 printf %s "checking for $compiler option to produce PIC... " >&6; }
13294 if test ${lt_cv_prog_compiler_pic+y}
13295 then :
13296 printf %s "(cached) " >&6
13297 else case e in #(
13298 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13299 esac
13300 fi
13301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13302 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13303 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13304
13305 #
13306 # Check to make sure the PIC flag actually works.
13307 #
13308 if test -n "$lt_prog_compiler_pic"; then
13309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13310 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13311 if test ${lt_cv_prog_compiler_pic_works+y}
13312 then :
13313 printf %s "(cached) " >&6
13314 else case e in #(
13315 e) lt_cv_prog_compiler_pic_works=no
13316 ac_outfile=conftest.$ac_objext
13317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13318 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13319 # Insert the option either (1) after the last *FLAGS variable, or
13320 # (2) before a word containing "conftest.", or (3) at the end.
13321 # Note that $ac_compile itself does not contain backslashes and begins
13322 # with a dollar sign (not a hyphen), so the echo should work correctly.
13323 # The option is referenced via a variable to avoid confusing sed.
13324 lt_compile=`echo "$ac_compile" | $SED \
13325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13327 -e 's:$: $lt_compiler_flag:'`
13328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13329 (eval "$lt_compile" 2>conftest.err)
13330 ac_status=$?
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 if (exit $ac_status) && test -s "$ac_outfile"; then
13334 # The compiler can only warn and ignore the option if not recognized
13335 # So say no if there are warnings other than the usual output.
13336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13338 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13339 lt_cv_prog_compiler_pic_works=yes
13340 fi
13341 fi
13342 $RM conftest*
13343 ;;
13344 esac
13345 fi
13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13347 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13348
13349 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13350 case $lt_prog_compiler_pic in
13351 "" | " "*) ;;
13352 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13353 esac
13354 else
13355 lt_prog_compiler_pic=
13356 lt_prog_compiler_can_build_shared=no
13357 fi
13358
13359 fi
13360
13361
13362
13363
13364
13365 #
13366 # Check to make sure the static flag actually works.
13367 #
13368 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13370 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13371 if test ${lt_cv_prog_compiler_static_works+y}
13372 then :
13373 printf %s "(cached) " >&6
13374 else case e in #(
13375 e) lt_cv_prog_compiler_static_works=no
13376 save_LDFLAGS=$LDFLAGS
13377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13380 # The linker can only warn and ignore the option if not recognized
13381 # So say no if there are warnings
13382 if test -s conftest.err; then
13383 # Append any errors to the config.log.
13384 cat conftest.err 1>&5
13385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13387 if diff conftest.exp conftest.er2 >/dev/null; then
13388 lt_cv_prog_compiler_static_works=yes
13389 fi
13390 else
13391 lt_cv_prog_compiler_static_works=yes
13392 fi
13393 fi
13394 $RM -r conftest*
13395 LDFLAGS=$save_LDFLAGS
13396 ;;
13397 esac
13398 fi
13399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13400 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13401
13402 if test yes = "$lt_cv_prog_compiler_static_works"; then
13403 :
13404 else
13405 lt_prog_compiler_static=
13406 fi
13407
13408
13409
13410 ='-fPIC'
13411 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13412 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'
13413 archive_cmds_need_lc=no
13414 no_undefined_flag=
13415 ;;
13416
13417 *)
13418 dynamic_linker=no
13419 ;;
13420 esac
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13422 printf "%s\n" "$dynamic_linker" >&6; }
13423 test no = "$dynamic_linker" && can_build_shared=no
13424
13425 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13426 if test yes = "$GCC"; then
13427 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13428 fi
13429
13430 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13431 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13432 fi
13433
13434 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13435 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13436 fi
13437
13438 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13439 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13440
13441 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13442 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13443
13444 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13445 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13544 printf %s "checking how to hardcode library paths into programs... " >&6; }
13545 hardcode_action=
13546 if test -n "$hardcode_libdir_flag_spec" ||
13547 test -n "$runpath_var" ||
13548 test yes = "$hardcode_automatic"; then
13549
13550 # We can hardcode non-existent directories.
13551 if test no != "$hardcode_direct" &&
13552 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13553 # have to relink, otherwise we might link with an installed library
13554 # when we should be linking with a yet-to-be-installed one
13555 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13556 test no != "$hardcode_minus_L"; then
13557 # Linking always hardcodes the temporary library directory.
13558 hardcode_action=relink
13559 else
13560 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13561 hardcode_action=immediate
13562 fi
13563 else
13564 # We cannot hardcode anything, or else we can only hardcode existing
13565 # directories.
13566 hardcode_action=unsupported
13567 fi
13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13569 printf "%s\n" "$hardcode_action" >&6; }
13570
13571 if test relink = "$hardcode_action" ||
13572 test yes = "$inherit_rpath"; then
13573 # Fast installation is not supported
13574 enable_fast_install=no
13575 elif test yes = "$shlibpath_overrides_runpath" ||
13576 test no = "$enable_shared"; then
13577 # Fast installation is not necessary
13578 enable_fast_install=needless
13579 fi
13580
13581
13582
13583
13584
13585
13586 if test yes != "$enable_dlopen"; then
13587 enable_dlopen=unknown
13588 enable_dlopen_self=unknown
13589 enable_dlopen_self_static=unknown
13590 else
13591 lt_cv_dlopen=no
13592 lt_cv_dlopen_libs=
13593
13594 case $host_os in
13595 beos*)
13596 lt_cv_dlopen=load_add_on
13597 lt_cv_dlopen_libs=
13598 lt_cv_dlopen_self=yes
13599 ;;
13600
13601 mingw* | windows* | pw32* | cegcc*)
13602 lt_cv_dlopen=LoadLibrary
13603 lt_cv_dlopen_libs=
13604 ;;
13605
13606 cygwin*)
13607 lt_cv_dlopen=dlopen
13608 lt_cv_dlopen_libs=
13609 ;;
13610
13611 darwin*)
13612 # if libdl is installed we need to link against it
13613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13614 printf %s "checking for dlopen in -ldl... " >&6; }
13615 if test ${ac_cv_lib_dl_dlopen+y}
13616 then :
13617 printf %s "(cached) " >&6
13618 else case e in #(
13619 e) ac_check_lib_save_LIBS=$LIBS
13620 LIBS="-ldl $LIBS"
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623
13624 /* Override any GCC internal prototype to avoid an error.
13625 Use char because int might match the return type of a GCC
13626 builtin and then its argument prototype would still apply.
13627 The 'extern "C"' is for builds by C++ compilers;
13628 although this is not generally supported in C code supporting it here
13629 has little cost and some practical benefit (sr 110532). */
13630 #ifdef __cplusplus
13631 extern "C"
13632 #endif
13633 char dlopen (void);
13634 int
13635 main (void)
13636 {
13637 return dlopen ();
13638 ;
13639 return 0;
13640 }
13641 _ACEOF
13642 if ac_fn_c_try_link "$LINENO"
13643 then :
13644 ac_cv_lib_dl_dlopen=yes
13645 else case e in #(
13646 e) ac_cv_lib_dl_dlopen=no ;;
13647 esac
13648 fi
13649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13650 conftest$ac_exeext conftest.$ac_ext
13651 LIBS=$ac_check_lib_save_LIBS ;;
13652 esac
13653 fi
13654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13655 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13656 if test "x$ac_cv_lib_dl_dlopen" = xyes
13657 then :
13658 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13659 else case e in #(
13660 e)
13661 lt_cv_dlopen=dyld
13662 lt_cv_dlopen_libs=
13663 lt_cv_dlopen_self=yes
13664 ;;
13665 esac
13666 fi
13667
13668 ;;
13669
13670 tpf*)
13671 # Don't try to run any link tests for TPF. We know it's impossible
13672 # because TPF is a cross-compiler, and we know how we open DSOs.
13673 lt_cv_dlopen=dlopen
13674 lt_cv_dlopen_libs=
13675 lt_cv_dlopen_self=no
13676 ;;
13677
13678 *)
13679 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13680 if test "x$ac_cv_func_shl_load" = xyes
13681 then :
13682 lt_cv_dlopen=shl_load
13683 else case e in #(
13684 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13685 printf %s "checking for shl_load in -ldld... " >&6; }
13686 if test ${ac_cv_lib_dld_shl_load+y}
13687 then :
13688 printf %s "(cached) " >&6
13689 else case e in #(
13690 e) ac_check_lib_save_LIBS=$LIBS
13691 LIBS="-ldld $LIBS"
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694
13695 /* Override any GCC internal prototype to avoid an error.
13696 Use char because int might match the return type of a GCC
13697 builtin and then its argument prototype would still apply.
13698 The 'extern "C"' is for builds by C++ compilers;
13699 although this is not generally supported in C code supporting it here
13700 has little cost and some practical benefit (sr 110532). */
13701 #ifdef __cplusplus
13702 extern "C"
13703 #endif
13704 char shl_load (void);
13705 int
13706 main (void)
13707 {
13708 return shl_load ();
13709 ;
13710 return 0;
13711 }
13712 _ACEOF
13713 if ac_fn_c_try_link "$LINENO"
13714 then :
13715 ac_cv_lib_dld_shl_load=yes
13716 else case e in #(
13717 e) ac_cv_lib_dld_shl_load=no ;;
13718 esac
13719 fi
13720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13721 conftest$ac_exeext conftest.$ac_ext
13722 LIBS=$ac_check_lib_save_LIBS ;;
13723 esac
13724 fi
13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13726 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13727 if test "x$ac_cv_lib_dld_shl_load" = xyes
13728 then :
13729 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13730 else case e in #(
13731 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13732 if test "x$ac_cv_func_dlopen" = xyes
13733 then :
13734 lt_cv_dlopen=dlopen
13735 else case e in #(
13736 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13737 printf %s "checking for dlopen in -ldl... " >&6; }
13738 if test ${ac_cv_lib_dl_dlopen+y}
13739 then :
13740 printf %s "(cached) " >&6
13741 else case e in #(
13742 e) ac_check_lib_save_LIBS=$LIBS
13743 LIBS="-ldl $LIBS"
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746
13747 /* Override any GCC internal prototype to avoid an error.
13748 Use char because int might match the return type of a GCC
13749 builtin and then its argument prototype would still apply.
13750 The 'extern "C"' is for builds by C++ compilers;
13751 although this is not generally supported in C code supporting it here
13752 has little cost and some practical benefit (sr 110532). */
13753 #ifdef __cplusplus
13754 extern "C"
13755 #endif
13756 char dlopen (void);
13757 int
13758 main (void)
13759 {
13760 return dlopen ();
13761 ;
13762 return 0;
13763 }
13764 _ACEOF
13765 if ac_fn_c_try_link "$LINENO"
13766 then :
13767 ac_cv_lib_dl_dlopen=yes
13768 else case e in #(
13769 e) ac_cv_lib_dl_dlopen=no ;;
13770 esac
13771 fi
13772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13773 conftest$ac_exeext conftest.$ac_ext
13774 LIBS=$ac_check_lib_save_LIBS ;;
13775 esac
13776 fi
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13778 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13779 if test "x$ac_cv_lib_dl_dlopen" = xyes
13780 then :
13781 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13782 else case e in #(
13783 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13784 printf %s "checking for dlopen in -lsvld... " >&6; }
13785 if test ${ac_cv_lib_svld_dlopen+y}
13786 then :
13787 printf %s "(cached) " >&6
13788 else case e in #(
13789 e) ac_check_lib_save_LIBS=$LIBS
13790 LIBS="-lsvld $LIBS"
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13793
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply.
13797 The 'extern "C"' is for builds by C++ compilers;
13798 although this is not generally supported in C code supporting it here
13799 has little cost and some practical benefit (sr 110532). */
13800 #ifdef __cplusplus
13801 extern "C"
13802 #endif
13803 char dlopen (void);
13804 int
13805 main (void)
13806 {
13807 return dlopen ();
13808 ;
13809 return 0;
13810 }
13811 _ACEOF
13812 if ac_fn_c_try_link "$LINENO"
13813 then :
13814 ac_cv_lib_svld_dlopen=yes
13815 else case e in #(
13816 e) ac_cv_lib_svld_dlopen=no ;;
13817 esac
13818 fi
13819 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13820 conftest$ac_exeext conftest.$ac_ext
13821 LIBS=$ac_check_lib_save_LIBS ;;
13822 esac
13823 fi
13824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13825 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13826 if test "x$ac_cv_lib_svld_dlopen" = xyes
13827 then :
13828 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13829 else case e in #(
13830 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13831 printf %s "checking for dld_link in -ldld... " >&6; }
13832 if test ${ac_cv_lib_dld_dld_link+y}
13833 then :
13834 printf %s "(cached) " >&6
13835 else case e in #(
13836 e) ac_check_lib_save_LIBS=$LIBS
13837 LIBS="-ldld $LIBS"
13838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839 /* end confdefs.h. */
13840
13841 /* Override any GCC internal prototype to avoid an error.
13842 Use char because int might match the return type of a GCC
13843 builtin and then its argument prototype would still apply.
13844 The 'extern "C"' is for builds by C++ compilers;
13845 although this is not generally supported in C code supporting it here
13846 has little cost and some practical benefit (sr 110532). */
13847 #ifdef __cplusplus
13848 extern "C"
13849 #endif
13850 char dld_link (void);
13851 int
13852 main (void)
13853 {
13854 return dld_link ();
13855 ;
13856 return 0;
13857 }
13858 _ACEOF
13859 if ac_fn_c_try_link "$LINENO"
13860 then :
13861 ac_cv_lib_dld_dld_link=yes
13862 else case e in #(
13863 e) ac_cv_lib_dld_dld_link=no ;;
13864 esac
13865 fi
13866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13867 conftest$ac_exeext conftest.$ac_ext
13868 LIBS=$ac_check_lib_save_LIBS ;;
13869 esac
13870 fi
13871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13872 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13873 if test "x$ac_cv_lib_dld_dld_link" = xyes
13874 then :
13875 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13876 fi
13877
13878 ;;
13879 esac
13880 fi
13881
13882 ;;
13883 esac
13884 fi
13885
13886 ;;
13887 esac
13888 fi
13889
13890 ;;
13891 esac
13892 fi
13893
13894 ;;
13895 esac
13896 fi
13897
13898 ;;
13899 esac
13900
13901 if test no = "$lt_cv_dlopen"; then
13902 enable_dlopen=no
13903 else
13904 enable_dlopen=yes
13905 fi
13906
13907 case $lt_cv_dlopen in
13908 dlopen)
13909 save_CPPFLAGS=$CPPFLAGS
13910 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13911
13912 save_LDFLAGS=$LDFLAGS
13913 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13914
13915 save_LIBS=$LIBS
13916 LIBS="$lt_cv_dlopen_libs $LIBS"
13917
13918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13919 printf %s "checking whether a program can dlopen itself... " >&6; }
13920 if test ${lt_cv_dlopen_self+y}
13921 then :
13922 printf %s "(cached) " >&6
13923 else case e in #(
13924 e) if test yes = "$cross_compiling"; then :
13925 lt_cv_dlopen_self=cross
13926 else
13927 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13928 lt_status=$lt_dlunknown
13929 cat > conftest.$ac_ext <<_LT_EOF
13930 #line $LINENO "configure"
13931 #include "confdefs.h"
13932
13933 #if HAVE_DLFCN_H
13934 #include <dlfcn.h>
13935 #endif
13936
13937 #include <stdio.h>
13938
13939 #ifdef RTLD_GLOBAL
13940 # define LT_DLGLOBAL RTLD_GLOBAL
13941 #else
13942 # ifdef DL_GLOBAL
13943 # define LT_DLGLOBAL DL_GLOBAL
13944 # else
13945 # define LT_DLGLOBAL 0
13946 # endif
13947 #endif
13948
13949 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13950 find out it does not work in some platform. */
13951 #ifndef LT_DLLAZY_OR_NOW
13952 # ifdef RTLD_LAZY
13953 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13954 # else
13955 # ifdef DL_LAZY
13956 # define LT_DLLAZY_OR_NOW DL_LAZY
13957 # else
13958 # ifdef RTLD_NOW
13959 # define LT_DLLAZY_OR_NOW RTLD_NOW
13960 # else
13961 # ifdef DL_NOW
13962 # define LT_DLLAZY_OR_NOW DL_NOW
13963 # else
13964 # define LT_DLLAZY_OR_NOW 0
13965 # endif
13966 # endif
13967 # endif
13968 # endif
13969 #endif
13970
13971 /* When -fvisibility=hidden is used, assume the code has been annotated
13972 correspondingly for the symbols needed. */
13973 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13974 int fnord (void) __attribute__((visibility("default")));
13975 #endif
13976
13977 int fnord (void) { return 42; }
13978 int main (void)
13979 {
13980 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13981 int status = $lt_dlunknown;
13982
13983 if (self)
13984 {
13985 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13986 else
13987 {
13988 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13989 else puts (dlerror ());
13990 }
13991 /* dlclose (self); */
13992 }
13993 else
13994 puts (dlerror ());
13995
13996 return status;
13997 }
13998 _LT_EOF
13999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14000 (eval $ac_link) 2>&5
14001 ac_status=$?
14002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14003 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14004 (./conftest; exit; ) >&5 2>/dev/null
14005 lt_status=$?
14006 case x$lt_status in
14007 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14008 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14009 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14010 esac
14011 else :
14012 # compilation failed
14013 lt_cv_dlopen_self=no
14014 fi
14015 fi
14016 rm -fr conftest*
14017
14018 ;;
14019 esac
14020 fi
14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14022 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14023
14024 if test yes = "$lt_cv_dlopen_self"; then
14025 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14027 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14028 if test ${lt_cv_dlopen_self_static+y}
14029 then :
14030 printf %s "(cached) " >&6
14031 else case e in #(
14032 e) if test yes = "$cross_compiling"; then :
14033 lt_cv_dlopen_self_static=cross
14034 else
14035 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14036 lt_status=$lt_dlunknown
14037 cat > conftest.$ac_ext <<_LT_EOF
14038 #line $LINENO "configure"
14039 #include "confdefs.h"
14040
14041 #if HAVE_DLFCN_H
14042 #include <dlfcn.h>
14043 #endif
14044
14045 #include <stdio.h>
14046
14047 #ifdef RTLD_GLOBAL
14048 # define LT_DLGLOBAL RTLD_GLOBAL
14049 #else
14050 # ifdef DL_GLOBAL
14051 # define LT_DLGLOBAL DL_GLOBAL
14052 # else
14053 # define LT_DLGLOBAL 0
14054 # endif
14055 #endif
14056
14057 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14058 find out it does not work in some platform. */
14059 #ifndef LT_DLLAZY_OR_NOW
14060 # ifdef RTLD_LAZY
14061 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14062 # else
14063 # ifdef DL_LAZY
14064 # define LT_DLLAZY_OR_NOW DL_LAZY
14065 # else
14066 # ifdef RTLD_NOW
14067 # define LT_DLLAZY_OR_NOW RTLD_NOW
14068 # else
14069 # ifdef DL_NOW
14070 # define LT_DLLAZY_OR_NOW DL_NOW
14071 # else
14072 # define LT_DLLAZY_OR_NOW 0
14073 # endif
14074 # endif
14075 # endif
14076 # endif
14077 #endif
14078
14079 /* When -fvisibility=hidden is used, assume the code has been annotated
14080 correspondingly for the symbols needed. */
14081 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14082 int fnord (void) __attribute__((visibility("default")));
14083 #endif
14084
14085 int fnord (void) { return 42; }
14086 int main (void)
14087 {
14088 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14089 int status = $lt_dlunknown;
14090
14091 if (self)
14092 {
14093 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14094 else
14095 {
14096 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14097 else puts (dlerror ());
14098 }
14099 /* dlclose (self); */
14100 }
14101 else
14102 puts (dlerror ());
14103
14104 return status;
14105 }
14106 _LT_EOF
14107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14108 (eval $ac_link) 2>&5
14109 ac_status=$?
14110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14111 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14112 (./conftest; exit; ) >&5 2>/dev/null
14113 lt_status=$?
14114 case x$lt_status in
14115 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14116 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14117 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14118 esac
14119 else :
14120 # compilation failed
14121 lt_cv_dlopen_self_static=no
14122 fi
14123 fi
14124 rm -fr conftest*
14125
14126 ;;
14127 esac
14128 fi
14129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14130 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14131 fi
14132
14133 CPPFLAGS=$save_CPPFLAGS
14134 LDFLAGS=$save_LDFLAGS
14135 LIBS=$save_LIBS
14136 ;;
14137 esac
14138
14139 case $lt_cv_dlopen_self in
14140 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14141 *) enable_dlopen_self=unknown ;;
14142 esac
14143
14144 case $lt_cv_dlopen_self_static in
14145 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14146 *) enable_dlopen_self_static=unknown ;;
14147 esac
14148 fi
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166 striplib=
14167 old_striplib=
14168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14169 printf %s "checking whether stripping libraries is possible... " >&6; }
14170 if test -z "$STRIP"; then
14171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172 printf "%s\n" "no" >&6; }
14173 else
14174 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14175 old_striplib="$STRIP --strip-debug"
14176 striplib="$STRIP --strip-unneeded"
14177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14178 printf "%s\n" "yes" >&6; }
14179 else
14180 case $host_os in
14181 darwin*)
14182 # FIXME - insert some real tests, host_os isn't really good enough
14183 striplib="$STRIP -x"
14184 old_striplib="$STRIP -S"
14185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14186 printf "%s\n" "yes" >&6; }
14187 ;;
14188 freebsd*)
14189 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14190 old_striplib="$STRIP --strip-debug"
14191 striplib="$STRIP --strip-unneeded"
14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14193 printf "%s\n" "yes" >&6; }
14194 else
14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14196 printf "%s\n" "no" >&6; }
14197 fi
14198 ;;
14199 *)
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201 printf "%s\n" "no" >&6; }
14202 ;;
14203 esac
14204 fi
14205 fi
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218 # Report what library types will actually be built
14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14220 printf %s "checking if libtool supports shared libraries... " >&6; }
14221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14222 printf "%s\n" "$can_build_shared" >&6; }
14223
14224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14225 printf %s "checking whether to build shared libraries... " >&6; }
14226 test no = "$can_build_shared" && enable_shared=no
14227
14228 # On AIX, shared libraries and static libraries use the same namespace, and
14229 # are all built from PIC.
14230 case $host_os in
14231 aix3*)
14232 test yes = "$enable_shared" && enable_static=no
14233 if test -n "$RANLIB"; then
14234 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14235 postinstall_cmds='$RANLIB $lib'
14236 fi
14237 ;;
14238
14239 aix[4-9]*)
14240 if test ia64 != "$host_cpu"; then
14241 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14242 yes,aix,yes) ;; # shared object as lib.so file only
14243 yes,svr4,*) ;; # shared object as lib.so archive member only
14244 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14245 esac
14246 fi
14247 ;;
14248 esac
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14250 printf "%s\n" "$enable_shared" >&6; }
14251
14252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14253 printf %s "checking whether to build static libraries... " >&6; }
14254 # Make sure either enable_shared or enable_static is yes.
14255 test yes = "$enable_shared" || enable_static=yes
14256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14257 printf "%s\n" "$enable_static" >&6; }
14258
14259
14260
14261
14262 fi
14263 ac_ext=c
14264 ac_cpp='$CPP $CPPFLAGS'
14265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14268
14269 CC=$lt_save_CC
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285 ac_config_commands="$ac_config_commands libtool"
14286
14287
14288
14289
14290 # Only expand once:
14291
14292
14293 LDFLAGS="$saved_LDFLAGS"
14294
14295
14296
14297 ac_config_headers="$ac_config_headers config.h"
14298
14299
14300 ac_ext=c
14301 ac_cpp='$CPP $CPPFLAGS'
14302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14305
14306
14307 if test "$prefix" = "NONE"; then
14308 prefix="/usr"
14309 if test "$localstatedir" = "\${prefix}/var"; then
14310 localstatedir="/var"
14311 fi
14312 if test "$libdir" = "\${exec_prefix}/lib"; then
14313 if test -e /usr/lib64; then
14314 libdir="/usr/lib64"
14315 else
14316 libdir="/usr/lib"
14317 fi
14318 fi
14319 fi
14320
14321 for ac_prog in gawk mawk nawk awk
14322 do
14323 # Extract the first word of "$ac_prog", so it can be a program name with args.
14324 set dummy $ac_prog; ac_word=$2
14325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14326 printf %s "checking for $ac_word... " >&6; }
14327 if test ${ac_cv_prog_AWK+y}
14328 then :
14329 printf %s "(cached) " >&6
14330 else case e in #(
14331 e) if test -n "$AWK"; then
14332 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14333 else
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14336 do
14337 IFS=$as_save_IFS
14338 case $as_dir in #(((
14339 '') as_dir=./ ;;
14340 */) ;;
14341 *) as_dir=$as_dir/ ;;
14342 esac
14343 for ac_exec_ext in '' $ac_executable_extensions; do
14344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14345 ac_cv_prog_AWK="$ac_prog"
14346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14347 break 2
14348 fi
14349 done
14350 done
14351 IFS=$as_save_IFS
14352
14353 fi ;;
14354 esac
14355 fi
14356 AWK=$ac_cv_prog_AWK
14357 if test -n "$AWK"; then
14358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14359 printf "%s\n" "$AWK" >&6; }
14360 else
14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14362 printf "%s\n" "no" >&6; }
14363 fi
14364
14365
14366 test -n "$AWK" && break
14367 done
14368
14369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
14370 printf %s "checking for grep that handles long lines and -e... " >&6; }
14371 if test ${ac_cv_path_GREP+y}
14372 then :
14373 printf %s "(cached) " >&6
14374 else case e in #(
14375 e) if test -z "$GREP"; then
14376 ac_path_GREP_found=false
14377 # Loop through the user's path and test for each of PROGNAME-LIST
14378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14380 do
14381 IFS=$as_save_IFS
14382 case $as_dir in #(((
14383 '') as_dir=./ ;;
14384 */) ;;
14385 *) as_dir=$as_dir/ ;;
14386 esac
14387 for ac_prog in grep ggrep
14388 do
14389 for ac_exec_ext in '' $ac_executable_extensions; do
14390 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
14391 as_fn_executable_p "$ac_path_GREP" || continue
14392 # Check for GNU ac_path_GREP and select it if it is found.
14393 # Check for GNU $ac_path_GREP
14394 case `"$ac_path_GREP" --version 2>&1` in #(
14395 *GNU*)
14396 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
14397 #(
14398 *)
14399 ac_count=0
14400 printf %s 0123456789 >"conftest.in"
14401 while :
14402 do
14403 cat "conftest.in" "conftest.in" >"conftest.tmp"
14404 mv "conftest.tmp" "conftest.in"
14405 cp "conftest.in" "conftest.nl"
14406 printf "%s\n" 'GREP' >> "conftest.nl"
14407 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
14408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14409 as_fn_arith $ac_count + 1 && ac_count=$as_val
14410 if test $ac_count -gt ${ac_path_GREP_max-0}; then
14411 # Best one so far, save it but keep looking for a better one
14412 ac_cv_path_GREP="$ac_path_GREP"
14413 ac_path_GREP_max=$ac_count
14414 fi
14415 # 10*(2^10) chars as input seems more than enough
14416 test $ac_count -gt 10 && break
14417 done
14418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14419 esac
14420
14421 $ac_path_GREP_found && break 3
14422 done
14423 done
14424 done
14425 IFS=$as_save_IFS
14426 if test -z "$ac_cv_path_GREP"; then
14427 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14428 fi
14429 else
14430 ac_cv_path_GREP=$GREP
14431 fi
14432 ;;
14433 esac
14434 fi
14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
14436 printf "%s\n" "$ac_cv_path_GREP" >&6; }
14437 GREP="$ac_cv_path_GREP"
14438
14439
14440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14441 printf %s "checking for a sed that does not truncate output... " >&6; }
14442 if test ${ac_cv_path_SED+y}
14443 then :
14444 printf %s "(cached) " >&6
14445 else case e in #(
14446 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14447 for ac_i in 1 2 3 4 5 6 7; do
14448 ac_script="$ac_script$as_nl$ac_script"
14449 done
14450 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14451 { ac_script=; unset ac_script;}
14452 if test -z "$SED"; then
14453 ac_path_SED_found=false
14454 # Loop through the user's path and test for each of PROGNAME-LIST
14455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14456 for as_dir in $PATH
14457 do
14458 IFS=$as_save_IFS
14459 case $as_dir in #(((
14460 '') as_dir=./ ;;
14461 */) ;;
14462 *) as_dir=$as_dir/ ;;
14463 esac
14464 for ac_prog in sed gsed
14465 do
14466 for ac_exec_ext in '' $ac_executable_extensions; do
14467 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
14468 as_fn_executable_p "$ac_path_SED" || continue
14469 # Check for GNU ac_path_SED and select it if it is found.
14470 # Check for GNU $ac_path_SED
14471 case `"$ac_path_SED" --version 2>&1` in #(
14472 *GNU*)
14473 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14474 #(
14475 *)
14476 ac_count=0
14477 printf %s 0123456789 >"conftest.in"
14478 while :
14479 do
14480 cat "conftest.in" "conftest.in" >"conftest.tmp"
14481 mv "conftest.tmp" "conftest.in"
14482 cp "conftest.in" "conftest.nl"
14483 printf "%s\n" '' >> "conftest.nl"
14484 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14486 as_fn_arith $ac_count + 1 && ac_count=$as_val
14487 if test $ac_count -gt ${ac_path_SED_max-0}; then
14488 # Best one so far, save it but keep looking for a better one
14489 ac_cv_path_SED="$ac_path_SED"
14490 ac_path_SED_max=$ac_count
14491 fi
14492 # 10*(2^10) chars as input seems more than enough
14493 test $ac_count -gt 10 && break
14494 done
14495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14496 esac
14497
14498 $ac_path_SED_found && break 3
14499 done
14500 done
14501 done
14502 IFS=$as_save_IFS
14503 if test -z "$ac_cv_path_SED"; then
14504 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14505 fi
14506 else
14507 ac_cv_path_SED=$SED
14508 fi
14509 ;;
14510 esac
14511 fi
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14513 printf "%s\n" "$ac_cv_path_SED" >&6; }
14514 SED="$ac_cv_path_SED"
14515 rm -f conftest.sed
14516
14517 ac_ext=c
14518 ac_cpp='$CPP $CPPFLAGS'
14519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14523 printf %s "checking how to run the C preprocessor... " >&6; }
14524 # On Suns, sometimes $CPP names a directory.
14525 if test -n "$CPP" && test -d "$CPP"; then
14526 CPP=
14527 fi
14528 if test -z "$CPP"; then
14529 if test ${ac_cv_prog_CPP+y}
14530 then :
14531 printf %s "(cached) " >&6
14532 else case e in #(
14533 e) # Double quotes because $CC needs to be expanded
14534 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14535 do
14536 ac_preproc_ok=false
14537 for ac_c_preproc_warn_flag in '' yes
14538 do
14539 # Use a header file that comes with gcc, so configuring glibc
14540 # with a fresh cross-compiler works.
14541 # On the NeXT, cc -E runs the code through the compiler's parser,
14542 # not just through cpp. "Syntax error" is here to catch this case.
14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h. */
14545 #include <limits.h>
14546 Syntax error
14547 _ACEOF
14548 if ac_fn_c_try_cpp "$LINENO"
14549 then :
14550
14551 else case e in #(
14552 e) # Broken: fails on valid input.
14553 continue ;;
14554 esac
14555 fi
14556 rm -f conftest.err conftest.i conftest.$ac_ext
14557
14558 # OK, works on sane cases. Now check whether nonexistent headers
14559 # can be detected and how.
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14562 #include <ac_nonexistent.h>
14563 _ACEOF
14564 if ac_fn_c_try_cpp "$LINENO"
14565 then :
14566 # Broken: success on invalid input.
14567 continue
14568 else case e in #(
14569 e) # Passes both tests.
14570 ac_preproc_ok=:
14571 break ;;
14572 esac
14573 fi
14574 rm -f conftest.err conftest.i conftest.$ac_ext
14575
14576 done
14577 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14578 rm -f conftest.i conftest.err conftest.$ac_ext
14579 if $ac_preproc_ok
14580 then :
14581 break
14582 fi
14583
14584 done
14585 ac_cv_prog_CPP=$CPP
14586 ;;
14587 esac
14588 fi
14589 CPP=$ac_cv_prog_CPP
14590 else
14591 ac_cv_prog_CPP=$CPP
14592 fi
14593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14594 printf "%s\n" "$CPP" >&6; }
14595 ac_preproc_ok=false
14596 for ac_c_preproc_warn_flag in '' yes
14597 do
14598 # Use a header file that comes with gcc, so configuring glibc
14599 # with a fresh cross-compiler works.
14600 # On the NeXT, cc -E runs the code through the compiler's parser,
14601 # not just through cpp. "Syntax error" is here to catch this case.
14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h. */
14604 #include <limits.h>
14605 Syntax error
14606 _ACEOF
14607 if ac_fn_c_try_cpp "$LINENO"
14608 then :
14609
14610 else case e in #(
14611 e) # Broken: fails on valid input.
14612 continue ;;
14613 esac
14614 fi
14615 rm -f conftest.err conftest.i conftest.$ac_ext
14616
14617 # OK, works on sane cases. Now check whether nonexistent headers
14618 # can be detected and how.
14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h. */
14621 #include <ac_nonexistent.h>
14622 _ACEOF
14623 if ac_fn_c_try_cpp "$LINENO"
14624 then :
14625 # Broken: success on invalid input.
14626 continue
14627 else case e in #(
14628 e) # Passes both tests.
14629 ac_preproc_ok=:
14630 break ;;
14631 esac
14632 fi
14633 rm -f conftest.err conftest.i conftest.$ac_ext
14634
14635 done
14636 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14637 rm -f conftest.i conftest.err conftest.$ac_ext
14638 if $ac_preproc_ok
14639 then :
14640
14641 else case e in #(
14642 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14643 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14644 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14645 See 'config.log' for more details" "$LINENO" 5; } ;;
14646 esac
14647 fi
14648
14649 ac_ext=c
14650 ac_cpp='$CPP $CPPFLAGS'
14651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14654
14655 ac_ext=c
14656 ac_cpp='$CPP $CPPFLAGS'
14657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14660 if test -n "$ac_tool_prefix"; then
14661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14662 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14664 printf %s "checking for $ac_word... " >&6; }
14665 if test ${ac_cv_prog_CC+y}
14666 then :
14667 printf %s "(cached) " >&6
14668 else case e in #(
14669 e) if test -n "$CC"; then
14670 ac_cv_prog_CC="$CC" # Let the user override the test.
14671 else
14672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14673 for as_dir in $PATH
14674 do
14675 IFS=$as_save_IFS
14676 case $as_dir in #(((
14677 '') as_dir=./ ;;
14678 */) ;;
14679 *) as_dir=$as_dir/ ;;
14680 esac
14681 for ac_exec_ext in '' $ac_executable_extensions; do
14682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14683 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14685 break 2
14686 fi
14687 done
14688 done
14689 IFS=$as_save_IFS
14690
14691 fi ;;
14692 esac
14693 fi
14694 CC=$ac_cv_prog_CC
14695 if test -n "$CC"; then
14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14697 printf "%s\n" "$CC" >&6; }
14698 else
14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14700 printf "%s\n" "no" >&6; }
14701 fi
14702
14703
14704 fi
14705 if test -z "$ac_cv_prog_CC"; then
14706 ac_ct_CC=$CC
14707 # Extract the first word of "gcc", so it can be a program name with args.
14708 set dummy gcc; ac_word=$2
14709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14710 printf %s "checking for $ac_word... " >&6; }
14711 if test ${ac_cv_prog_ac_ct_CC+y}
14712 then :
14713 printf %s "(cached) " >&6
14714 else case e in #(
14715 e) if test -n "$ac_ct_CC"; then
14716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14717 else
14718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14719 for as_dir in $PATH
14720 do
14721 IFS=$as_save_IFS
14722 case $as_dir in #(((
14723 '') as_dir=./ ;;
14724 */) ;;
14725 *) as_dir=$as_dir/ ;;
14726 esac
14727 for ac_exec_ext in '' $ac_executable_extensions; do
14728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14729 ac_cv_prog_ac_ct_CC="gcc"
14730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14731 break 2
14732 fi
14733 done
14734 done
14735 IFS=$as_save_IFS
14736
14737 fi ;;
14738 esac
14739 fi
14740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14741 if test -n "$ac_ct_CC"; then
14742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14743 printf "%s\n" "$ac_ct_CC" >&6; }
14744 else
14745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14746 printf "%s\n" "no" >&6; }
14747 fi
14748
14749 if test "x$ac_ct_CC" = x; then
14750 CC=""
14751 else
14752 case $cross_compiling:$ac_tool_warned in
14753 yes:)
14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14755 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14756 ac_tool_warned=yes ;;
14757 esac
14758 CC=$ac_ct_CC
14759 fi
14760 else
14761 CC="$ac_cv_prog_CC"
14762 fi
14763
14764 if test -z "$CC"; then
14765 if test -n "$ac_tool_prefix"; then
14766 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14767 set dummy ${ac_tool_prefix}cc; ac_word=$2
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14769 printf %s "checking for $ac_word... " >&6; }
14770 if test ${ac_cv_prog_CC+y}
14771 then :
14772 printf %s "(cached) " >&6
14773 else case e in #(
14774 e) if test -n "$CC"; then
14775 ac_cv_prog_CC="$CC" # Let the user override the test.
14776 else
14777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14778 for as_dir in $PATH
14779 do
14780 IFS=$as_save_IFS
14781 case $as_dir in #(((
14782 '') as_dir=./ ;;
14783 */) ;;
14784 *) as_dir=$as_dir/ ;;
14785 esac
14786 for ac_exec_ext in '' $ac_executable_extensions; do
14787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14788 ac_cv_prog_CC="${ac_tool_prefix}cc"
14789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14790 break 2
14791 fi
14792 done
14793 done
14794 IFS=$as_save_IFS
14795
14796 fi ;;
14797 esac
14798 fi
14799 CC=$ac_cv_prog_CC
14800 if test -n "$CC"; then
14801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14802 printf "%s\n" "$CC" >&6; }
14803 else
14804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14805 printf "%s\n" "no" >&6; }
14806 fi
14807
14808
14809 fi
14810 fi
14811 if test -z "$CC"; then
14812 # Extract the first word of "cc", so it can be a program name with args.
14813 set dummy cc; ac_word=$2
14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14815 printf %s "checking for $ac_word... " >&6; }
14816 if test ${ac_cv_prog_CC+y}
14817 then :
14818 printf %s "(cached) " >&6
14819 else case e in #(
14820 e) if test -n "$CC"; then
14821 ac_cv_prog_CC="$CC" # Let the user override the test.
14822 else
14823 ac_prog_rejected=no
14824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14825 for as_dir in $PATH
14826 do
14827 IFS=$as_save_IFS
14828 case $as_dir in #(((
14829 '') as_dir=./ ;;
14830 */) ;;
14831 *) as_dir=$as_dir/ ;;
14832 esac
14833 for ac_exec_ext in '' $ac_executable_extensions; do
14834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14835 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14836 ac_prog_rejected=yes
14837 continue
14838 fi
14839 ac_cv_prog_CC="cc"
14840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14841 break 2
14842 fi
14843 done
14844 done
14845 IFS=$as_save_IFS
14846
14847 if test $ac_prog_rejected = yes; then
14848 # We found a bogon in the path, so make sure we never use it.
14849 set dummy $ac_cv_prog_CC
14850 shift
14851 if test $# != 0; then
14852 # We chose a different compiler from the bogus one.
14853 # However, it has the same basename, so the bogon will be chosen
14854 # first if we set CC to just the basename; use the full file name.
14855 shift
14856 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14857 fi
14858 fi
14859 fi ;;
14860 esac
14861 fi
14862 CC=$ac_cv_prog_CC
14863 if test -n "$CC"; then
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14865 printf "%s\n" "$CC" >&6; }
14866 else
14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14868 printf "%s\n" "no" >&6; }
14869 fi
14870
14871
14872 fi
14873 if test -z "$CC"; then
14874 if test -n "$ac_tool_prefix"; then
14875 for ac_prog in cl.exe
14876 do
14877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14880 printf %s "checking for $ac_word... " >&6; }
14881 if test ${ac_cv_prog_CC+y}
14882 then :
14883 printf %s "(cached) " >&6
14884 else case e in #(
14885 e) if test -n "$CC"; then
14886 ac_cv_prog_CC="$CC" # Let the user override the test.
14887 else
14888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14889 for as_dir in $PATH
14890 do
14891 IFS=$as_save_IFS
14892 case $as_dir in #(((
14893 '') as_dir=./ ;;
14894 */) ;;
14895 *) as_dir=$as_dir/ ;;
14896 esac
14897 for ac_exec_ext in '' $ac_executable_extensions; do
14898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14901 break 2
14902 fi
14903 done
14904 done
14905 IFS=$as_save_IFS
14906
14907 fi ;;
14908 esac
14909 fi
14910 CC=$ac_cv_prog_CC
14911 if test -n "$CC"; then
14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14913 printf "%s\n" "$CC" >&6; }
14914 else
14915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14916 printf "%s\n" "no" >&6; }
14917 fi
14918
14919
14920 test -n "$CC" && break
14921 done
14922 fi
14923 if test -z "$CC"; then
14924 ac_ct_CC=$CC
14925 for ac_prog in cl.exe
14926 do
14927 # Extract the first word of "$ac_prog", so it can be a program name with args.
14928 set dummy $ac_prog; ac_word=$2
14929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14930 printf %s "checking for $ac_word... " >&6; }
14931 if test ${ac_cv_prog_ac_ct_CC+y}
14932 then :
14933 printf %s "(cached) " >&6
14934 else case e in #(
14935 e) if test -n "$ac_ct_CC"; then
14936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14937 else
14938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14939 for as_dir in $PATH
14940 do
14941 IFS=$as_save_IFS
14942 case $as_dir in #(((
14943 '') as_dir=./ ;;
14944 */) ;;
14945 *) as_dir=$as_dir/ ;;
14946 esac
14947 for ac_exec_ext in '' $ac_executable_extensions; do
14948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14949 ac_cv_prog_ac_ct_CC="$ac_prog"
14950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14951 break 2
14952 fi
14953 done
14954 done
14955 IFS=$as_save_IFS
14956
14957 fi ;;
14958 esac
14959 fi
14960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14961 if test -n "$ac_ct_CC"; then
14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14963 printf "%s\n" "$ac_ct_CC" >&6; }
14964 else
14965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14966 printf "%s\n" "no" >&6; }
14967 fi
14968
14969
14970 test -n "$ac_ct_CC" && break
14971 done
14972
14973 if test "x$ac_ct_CC" = x; then
14974 CC=""
14975 else
14976 case $cross_compiling:$ac_tool_warned in
14977 yes:)
14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14979 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14980 ac_tool_warned=yes ;;
14981 esac
14982 CC=$ac_ct_CC
14983 fi
14984 fi
14985
14986 fi
14987 if test -z "$CC"; then
14988 if test -n "$ac_tool_prefix"; then
14989 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14990 set dummy ${ac_tool_prefix}clang; ac_word=$2
14991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14992 printf %s "checking for $ac_word... " >&6; }
14993 if test ${ac_cv_prog_CC+y}
14994 then :
14995 printf %s "(cached) " >&6
14996 else case e in #(
14997 e) if test -n "$CC"; then
14998 ac_cv_prog_CC="$CC" # Let the user override the test.
14999 else
15000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15001 for as_dir in $PATH
15002 do
15003 IFS=$as_save_IFS
15004 case $as_dir in #(((
15005 '') as_dir=./ ;;
15006 */) ;;
15007 *) as_dir=$as_dir/ ;;
15008 esac
15009 for ac_exec_ext in '' $ac_executable_extensions; do
15010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15011 ac_cv_prog_CC="${ac_tool_prefix}clang"
15012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15013 break 2
15014 fi
15015 done
15016 done
15017 IFS=$as_save_IFS
15018
15019 fi ;;
15020 esac
15021 fi
15022 CC=$ac_cv_prog_CC
15023 if test -n "$CC"; then
15024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15025 printf "%s\n" "$CC" >&6; }
15026 else
15027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15028 printf "%s\n" "no" >&6; }
15029 fi
15030
15031
15032 fi
15033 if test -z "$ac_cv_prog_CC"; then
15034 ac_ct_CC=$CC
15035 # Extract the first word of "clang", so it can be a program name with args.
15036 set dummy clang; ac_word=$2
15037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15038 printf %s "checking for $ac_word... " >&6; }
15039 if test ${ac_cv_prog_ac_ct_CC+y}
15040 then :
15041 printf %s "(cached) " >&6
15042 else case e in #(
15043 e) if test -n "$ac_ct_CC"; then
15044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15045 else
15046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15047 for as_dir in $PATH
15048 do
15049 IFS=$as_save_IFS
15050 case $as_dir in #(((
15051 '') as_dir=./ ;;
15052 */) ;;
15053 *) as_dir=$as_dir/ ;;
15054 esac
15055 for ac_exec_ext in '' $ac_executable_extensions; do
15056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15057 ac_cv_prog_ac_ct_CC="clang"
15058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15059 break 2
15060 fi
15061 done
15062 done
15063 IFS=$as_save_IFS
15064
15065 fi ;;
15066 esac
15067 fi
15068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15069 if test -n "$ac_ct_CC"; then
15070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15071 printf "%s\n" "$ac_ct_CC" >&6; }
15072 else
15073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15074 printf "%s\n" "no" >&6; }
15075 fi
15076
15077 if test "x$ac_ct_CC" = x; then
15078 CC=""
15079 else
15080 case $cross_compiling:$ac_tool_warned in
15081 yes:)
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15083 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15084 ac_tool_warned=yes ;;
15085 esac
15086 CC=$ac_ct_CC
15087 fi
15088 else
15089 CC="$ac_cv_prog_CC"
15090 fi
15091
15092 fi
15093
15094
15095 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15096 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15097 as_fn_error $? "no acceptable C compiler found in \$PATH
15098 See 'config.log' for more details" "$LINENO" 5; }
15099
15100 # Provide some information about the compiler.
15101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
15102 set X $ac_compile
15103 ac_compiler=$2
15104 for ac_option in --version -v -V -qversion -version; do
15105 { { ac_try="$ac_compiler $ac_option >&5"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15109 esac
15110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15111 printf "%s\n" "$ac_try_echo"; } >&5
15112 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15113 ac_status=$?
15114 if test -s conftest.err; then
15115 sed '10a\
15116 ... rest of stderr output deleted ...
15117 10q' conftest.err >conftest.er1
15118 cat conftest.er1 >&5
15119 fi
15120 rm -f conftest.er1 conftest.err
15121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15122 test $ac_status = 0; }
15123 done
15124
15125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
15126 printf %s "checking whether the compiler supports GNU C... " >&6; }
15127 if test ${ac_cv_c_compiler_gnu+y}
15128 then :
15129 printf %s "(cached) " >&6
15130 else case e in #(
15131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15133
15134 int
15135 main (void)
15136 {
15137 #ifndef __GNUC__
15138 choke me
15139 #endif
15140
15141 ;
15142 return 0;
15143 }
15144 _ACEOF
15145 if ac_fn_c_try_compile "$LINENO"
15146 then :
15147 ac_compiler_gnu=yes
15148 else case e in #(
15149 e) ac_compiler_gnu=no ;;
15150 esac
15151 fi
15152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15153 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15154 ;;
15155 esac
15156 fi
15157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
15158 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
15159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15160
15161 if test $ac_compiler_gnu = yes; then
15162 GCC=yes
15163 else
15164 GCC=
15165 fi
15166 ac_test_CFLAGS=${CFLAGS+y}
15167 ac_save_CFLAGS=$CFLAGS
15168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
15169 printf %s "checking whether $CC accepts -g... " >&6; }
15170 if test ${ac_cv_prog_cc_g+y}
15171 then :
15172 printf %s "(cached) " >&6
15173 else case e in #(
15174 e) ac_save_c_werror_flag=$ac_c_werror_flag
15175 ac_c_werror_flag=yes
15176 ac_cv_prog_cc_g=no
15177 CFLAGS="-g"
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180
15181 int
15182 main (void)
15183 {
15184
15185 ;
15186 return 0;
15187 }
15188 _ACEOF
15189 if ac_fn_c_try_compile "$LINENO"
15190 then :
15191 ac_cv_prog_cc_g=yes
15192 else case e in #(
15193 e) CFLAGS=""
15194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15195 /* end confdefs.h. */
15196
15197 int
15198 main (void)
15199 {
15200
15201 ;
15202 return 0;
15203 }
15204 _ACEOF
15205 if ac_fn_c_try_compile "$LINENO"
15206 then :
15207
15208 else case e in #(
15209 e) ac_c_werror_flag=$ac_save_c_werror_flag
15210 CFLAGS="-g"
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213
15214 int
15215 main (void)
15216 {
15217
15218 ;
15219 return 0;
15220 }
15221 _ACEOF
15222 if ac_fn_c_try_compile "$LINENO"
15223 then :
15224 ac_cv_prog_cc_g=yes
15225 fi
15226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15227 esac
15228 fi
15229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15230 esac
15231 fi
15232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15233 ac_c_werror_flag=$ac_save_c_werror_flag ;;
15234 esac
15235 fi
15236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
15237 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
15238 if test $ac_test_CFLAGS; then
15239 CFLAGS=$ac_save_CFLAGS
15240 elif test $ac_cv_prog_cc_g = yes; then
15241 if test "$GCC" = yes; then
15242 CFLAGS="-g -O2"
15243 else
15244 CFLAGS="-g"
15245 fi
15246 else
15247 if test "$GCC" = yes; then
15248 CFLAGS="-O2"
15249 else
15250 CFLAGS=
15251 fi
15252 fi
15253 ac_prog_cc_stdc=no
15254 if test x$ac_prog_cc_stdc = xno
15255 then :
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
15257 printf %s "checking for $CC option to enable C11 features... " >&6; }
15258 if test ${ac_cv_prog_cc_c11+y}
15259 then :
15260 printf %s "(cached) " >&6
15261 else case e in #(
15262 e) ac_cv_prog_cc_c11=no
15263 ac_save_CC=$CC
15264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265 /* end confdefs.h. */
15266 $ac_c_conftest_c11_program
15267 _ACEOF
15268 for ac_arg in '' -std=gnu11
15269 do
15270 CC="$ac_save_CC $ac_arg"
15271 if ac_fn_c_try_compile "$LINENO"
15272 then :
15273 ac_cv_prog_cc_c11=$ac_arg
15274 fi
15275 rm -f core conftest.err conftest.$ac_objext conftest.beam
15276 test "x$ac_cv_prog_cc_c11" != "xno" && break
15277 done
15278 rm -f conftest.$ac_ext
15279 CC=$ac_save_CC ;;
15280 esac
15281 fi
15282
15283 if test "x$ac_cv_prog_cc_c11" = xno
15284 then :
15285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15286 printf "%s\n" "unsupported" >&6; }
15287 else case e in #(
15288 e) if test "x$ac_cv_prog_cc_c11" = x
15289 then :
15290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15291 printf "%s\n" "none needed" >&6; }
15292 else case e in #(
15293 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
15294 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
15295 CC="$CC $ac_cv_prog_cc_c11" ;;
15296 esac
15297 fi
15298 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
15299 ac_prog_cc_stdc=c11 ;;
15300 esac
15301 fi
15302 fi
15303 if test x$ac_prog_cc_stdc = xno
15304 then :
15305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
15306 printf %s "checking for $CC option to enable C99 features... " >&6; }
15307 if test ${ac_cv_prog_cc_c99+y}
15308 then :
15309 printf %s "(cached) " >&6
15310 else case e in #(
15311 e) ac_cv_prog_cc_c99=no
15312 ac_save_CC=$CC
15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314 /* end confdefs.h. */
15315 $ac_c_conftest_c99_program
15316 _ACEOF
15317 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
15318 do
15319 CC="$ac_save_CC $ac_arg"
15320 if ac_fn_c_try_compile "$LINENO"
15321 then :
15322 ac_cv_prog_cc_c99=$ac_arg
15323 fi
15324 rm -f core conftest.err conftest.$ac_objext conftest.beam
15325 test "x$ac_cv_prog_cc_c99" != "xno" && break
15326 done
15327 rm -f conftest.$ac_ext
15328 CC=$ac_save_CC ;;
15329 esac
15330 fi
15331
15332 if test "x$ac_cv_prog_cc_c99" = xno
15333 then :
15334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15335 printf "%s\n" "unsupported" >&6; }
15336 else case e in #(
15337 e) if test "x$ac_cv_prog_cc_c99" = x
15338 then :
15339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15340 printf "%s\n" "none needed" >&6; }
15341 else case e in #(
15342 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
15343 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
15344 CC="$CC $ac_cv_prog_cc_c99" ;;
15345 esac
15346 fi
15347 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15348 ac_prog_cc_stdc=c99 ;;
15349 esac
15350 fi
15351 fi
15352 if test x$ac_prog_cc_stdc = xno
15353 then :
15354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
15355 printf %s "checking for $CC option to enable C89 features... " >&6; }
15356 if test ${ac_cv_prog_cc_c89+y}
15357 then :
15358 printf %s "(cached) " >&6
15359 else case e in #(
15360 e) ac_cv_prog_cc_c89=no
15361 ac_save_CC=$CC
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15364 $ac_c_conftest_c89_program
15365 _ACEOF
15366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15367 do
15368 CC="$ac_save_CC $ac_arg"
15369 if ac_fn_c_try_compile "$LINENO"
15370 then :
15371 ac_cv_prog_cc_c89=$ac_arg
15372 fi
15373 rm -f core conftest.err conftest.$ac_objext conftest.beam
15374 test "x$ac_cv_prog_cc_c89" != "xno" && break
15375 done
15376 rm -f conftest.$ac_ext
15377 CC=$ac_save_CC ;;
15378 esac
15379 fi
15380
15381 if test "x$ac_cv_prog_cc_c89" = xno
15382 then :
15383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15384 printf "%s\n" "unsupported" >&6; }
15385 else case e in #(
15386 e) if test "x$ac_cv_prog_cc_c89" = x
15387 then :
15388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15389 printf "%s\n" "none needed" >&6; }
15390 else case e in #(
15391 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15392 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
15393 CC="$CC $ac_cv_prog_cc_c89" ;;
15394 esac
15395 fi
15396 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
15397 ac_prog_cc_stdc=c89 ;;
15398 esac
15399 fi
15400 fi
15401
15402 ac_ext=c
15403 ac_cpp='$CPP $CPPFLAGS'
15404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15407
15408
15409 ac_ext=c
15410 ac_cpp='$CPP $CPPFLAGS'
15411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
15415 printf %s "checking whether $CC understands -c and -o together... " >&6; }
15416 if test ${am_cv_prog_cc_c_o+y}
15417 then :
15418 printf %s "(cached) " >&6
15419 else case e in #(
15420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h. */
15422
15423 int
15424 main (void)
15425 {
15426
15427 ;
15428 return 0;
15429 }
15430 _ACEOF
15431 # Make sure it works both with $CC and with simple cc.
15432 # Following AC_PROG_CC_C_O, we do the test twice because some
15433 # compilers refuse to overwrite an existing .o file with -o,
15434 # though they will create one.
15435 am_cv_prog_cc_c_o=yes
15436 for am_i in 1 2; do
15437 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
15438 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } \
15442 && test -f conftest2.$ac_objext; then
15443 : OK
15444 else
15445 am_cv_prog_cc_c_o=no
15446 break
15447 fi
15448 done
15449 rm -f core conftest*
15450 unset am_i ;;
15451 esac
15452 fi
15453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
15454 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
15455 if test "$am_cv_prog_cc_c_o" != yes; then
15456 # Losing compiler, so override with the script.
15457 # FIXME: It is wrong to rewrite CC.
15458 # But if we don't then we get into trouble of one sort or another.
15459 # A longer-term fix would be to have automake use am__CC in this case,
15460 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15461 CC="$am_aux_dir/compile $CC"
15462 fi
15463 ac_ext=c
15464 ac_cpp='$CPP $CPPFLAGS'
15465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15468
15469
15470 :
15471 if test "x$ac_cv_prog_cc_c99" = "xno"; then
15472 as_fn_error $? "\"C99 support is required\"" "$LINENO" 5
15473 fi
15474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15475 printf %s "checking whether ln -s works... " >&6; }
15476 LN_S=$as_ln_s
15477 if test "$LN_S" = "ln -s"; then
15478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15479 printf "%s\n" "yes" >&6; }
15480 else
15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15482 printf "%s\n" "no, using $LN_S" >&6; }
15483 fi
15484
15485
15486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15487 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15488 set x ${MAKE-make}
15489 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15490 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
15491 then :
15492 printf %s "(cached) " >&6
15493 else case e in #(
15494 e) cat >conftest.make <<\_ACEOF
15495 SHELL = /bin/sh
15496 all:
15497 @echo '@@@%%%=$(MAKE)=@@@%%%'
15498 _ACEOF
15499 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15500 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15501 *@@@%%%=?*=@@@%%%*)
15502 eval ac_cv_prog_make_${ac_make}_set=yes;;
15503 *)
15504 eval ac_cv_prog_make_${ac_make}_set=no;;
15505 esac
15506 rm -f conftest.make ;;
15507 esac
15508 fi
15509 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15511 printf "%s\n" "yes" >&6; }
15512 SET_MAKE=
15513 else
15514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15515 printf "%s\n" "no" >&6; }
15516 SET_MAKE="MAKE=${MAKE-make}"
15517 fi
15518
15519
15520
15521
15522
15523
15524
15525
15526 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15527 if test -n "$ac_tool_prefix"; then
15528 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15529 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15531 printf %s "checking for $ac_word... " >&6; }
15532 if test ${ac_cv_path_PKG_CONFIG+y}
15533 then :
15534 printf %s "(cached) " >&6
15535 else case e in #(
15536 e) case $PKG_CONFIG in
15537 [\\/]* | ?:[\\/]*)
15538 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15539 ;;
15540 *)
15541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15542 for as_dir in $PATH
15543 do
15544 IFS=$as_save_IFS
15545 case $as_dir in #(((
15546 '') as_dir=./ ;;
15547 */) ;;
15548 *) as_dir=$as_dir/ ;;
15549 esac
15550 for ac_exec_ext in '' $ac_executable_extensions; do
15551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15552 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15554 break 2
15555 fi
15556 done
15557 done
15558 IFS=$as_save_IFS
15559
15560 ;;
15561 esac ;;
15562 esac
15563 fi
15564 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15565 if test -n "$PKG_CONFIG"; then
15566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15567 printf "%s\n" "$PKG_CONFIG" >&6; }
15568 else
15569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15570 printf "%s\n" "no" >&6; }
15571 fi
15572
15573
15574 fi
15575 if test -z "$ac_cv_path_PKG_CONFIG"; then
15576 ac_pt_PKG_CONFIG=$PKG_CONFIG
15577 # Extract the first word of "pkg-config", so it can be a program name with args.
15578 set dummy pkg-config; ac_word=$2
15579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15580 printf %s "checking for $ac_word... " >&6; }
15581 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15582 then :
15583 printf %s "(cached) " >&6
15584 else case e in #(
15585 e) case $ac_pt_PKG_CONFIG in
15586 [\\/]* | ?:[\\/]*)
15587 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15588 ;;
15589 *)
15590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15591 for as_dir in $PATH
15592 do
15593 IFS=$as_save_IFS
15594 case $as_dir in #(((
15595 '') as_dir=./ ;;
15596 */) ;;
15597 *) as_dir=$as_dir/ ;;
15598 esac
15599 for ac_exec_ext in '' $ac_executable_extensions; do
15600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15601 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15603 break 2
15604 fi
15605 done
15606 done
15607 IFS=$as_save_IFS
15608
15609 ;;
15610 esac ;;
15611 esac
15612 fi
15613 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15614 if test -n "$ac_pt_PKG_CONFIG"; then
15615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15616 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15617 else
15618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15619 printf "%s\n" "no" >&6; }
15620 fi
15621
15622 if test "x$ac_pt_PKG_CONFIG" = x; then
15623 PKG_CONFIG=""
15624 else
15625 case $cross_compiling:$ac_tool_warned in
15626 yes:)
15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15628 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15629 ac_tool_warned=yes ;;
15630 esac
15631 PKG_CONFIG=$ac_pt_PKG_CONFIG
15632 fi
15633 else
15634 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15635 fi
15636
15637 fi
15638 if test -n "$PKG_CONFIG"; then
15639 _pkg_min_version=0.9.0
15640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15641 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15642 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15644 printf "%s\n" "yes" >&6; }
15645 else
15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15647 printf "%s\n" "no" >&6; }
15648 PKG_CONFIG=""
15649 fi
15650 fi
15651 if test -z "$PKG_CONFIG"; then
15652 as_fn_error $? "pkg-config not found" "$LINENO" 5
15653 fi
15654
15655 for ac_prog in valgrind
15656 do
15657 # Extract the first word of "$ac_prog", so it can be a program name with args.
15658 set dummy $ac_prog; ac_word=$2
15659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15660 printf %s "checking for $ac_word... " >&6; }
15661 if test ${ac_cv_prog_VALGRIND_EXEC+y}
15662 then :
15663 printf %s "(cached) " >&6
15664 else case e in #(
15665 e) if test -n "$VALGRIND_EXEC"; then
15666 ac_cv_prog_VALGRIND_EXEC="$VALGRIND_EXEC" # Let the user override the test.
15667 else
15668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15669 for as_dir in $PATH
15670 do
15671 IFS=$as_save_IFS
15672 case $as_dir in #(((
15673 '') as_dir=./ ;;
15674 */) ;;
15675 *) as_dir=$as_dir/ ;;
15676 esac
15677 for ac_exec_ext in '' $ac_executable_extensions; do
15678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15679 ac_cv_prog_VALGRIND_EXEC="$ac_prog"
15680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15681 break 2
15682 fi
15683 done
15684 done
15685 IFS=$as_save_IFS
15686
15687 fi ;;
15688 esac
15689 fi
15690 VALGRIND_EXEC=$ac_cv_prog_VALGRIND_EXEC
15691 if test -n "$VALGRIND_EXEC"; then
15692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_EXEC" >&5
15693 printf "%s\n" "$VALGRIND_EXEC" >&6; }
15694 else
15695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15696 printf "%s\n" "no" >&6; }
15697 fi
15698
15699
15700 test -n "$VALGRIND_EXEC" && break
15701 done
15702
15703 if test x$VALGRIND_EXEC != "x"; then
15704 HAS_VALGRIND_TRUE=
15705 HAS_VALGRIND_FALSE='#'
15706 else
15707 HAS_VALGRIND_TRUE='#'
15708 HAS_VALGRIND_FALSE=
15709 fi
15710
15711
15712 for ac_prog in cov-build
15713 do
15714 # Extract the first word of "$ac_prog", so it can be a program name with args.
15715 set dummy $ac_prog; ac_word=$2
15716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15717 printf %s "checking for $ac_word... " >&6; }
15718 if test ${ac_cv_prog_COVBUILD_EXEC+y}
15719 then :
15720 printf %s "(cached) " >&6
15721 else case e in #(
15722 e) if test -n "$COVBUILD_EXEC"; then
15723 ac_cv_prog_COVBUILD_EXEC="$COVBUILD_EXEC" # Let the user override the test.
15724 else
15725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15726 for as_dir in $PATH
15727 do
15728 IFS=$as_save_IFS
15729 case $as_dir in #(((
15730 '') as_dir=./ ;;
15731 */) ;;
15732 *) as_dir=$as_dir/ ;;
15733 esac
15734 for ac_exec_ext in '' $ac_executable_extensions; do
15735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15736 ac_cv_prog_COVBUILD_EXEC="$ac_prog"
15737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15738 break 2
15739 fi
15740 done
15741 done
15742 IFS=$as_save_IFS
15743
15744 fi ;;
15745 esac
15746 fi
15747 COVBUILD_EXEC=$ac_cv_prog_COVBUILD_EXEC
15748 if test -n "$COVBUILD_EXEC"; then
15749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COVBUILD_EXEC" >&5
15750 printf "%s\n" "$COVBUILD_EXEC" >&6; }
15751 else
15752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15753 printf "%s\n" "no" >&6; }
15754 fi
15755
15756
15757 test -n "$COVBUILD_EXEC" && break
15758 done
15759
15760 if test x$COVBUILD_EXEC != "x"; then
15761 HAS_COVBUILD_TRUE=
15762 HAS_COVBUILD_FALSE='#'
15763 else
15764 HAS_COVBUILD_TRUE='#'
15765 HAS_COVBUILD_FALSE=
15766 fi
15767
15768
15769 for ac_prog in cov-analyze
15770 do
15771 # Extract the first word of "$ac_prog", so it can be a program name with args.
15772 set dummy $ac_prog; ac_word=$2
15773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15774 printf %s "checking for $ac_word... " >&6; }
15775 if test ${ac_cv_prog_COVANALYZE_EXEC+y}
15776 then :
15777 printf %s "(cached) " >&6
15778 else case e in #(
15779 e) if test -n "$COVANALYZE_EXEC"; then
15780 ac_cv_prog_COVANALYZE_EXEC="$COVANALYZE_EXEC" # Let the user override the test.
15781 else
15782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15783 for as_dir in $PATH
15784 do
15785 IFS=$as_save_IFS
15786 case $as_dir in #(((
15787 '') as_dir=./ ;;
15788 */) ;;
15789 *) as_dir=$as_dir/ ;;
15790 esac
15791 for ac_exec_ext in '' $ac_executable_extensions; do
15792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15793 ac_cv_prog_COVANALYZE_EXEC="$ac_prog"
15794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15795 break 2
15796 fi
15797 done
15798 done
15799 IFS=$as_save_IFS
15800
15801 fi ;;
15802 esac
15803 fi
15804 COVANALYZE_EXEC=$ac_cv_prog_COVANALYZE_EXEC
15805 if test -n "$COVANALYZE_EXEC"; then
15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COVANALYZE_EXEC" >&5
15807 printf "%s\n" "$COVANALYZE_EXEC" >&6; }
15808 else
15809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15810 printf "%s\n" "no" >&6; }
15811 fi
15812
15813
15814 test -n "$COVANALYZE_EXEC" && break
15815 done
15816
15817 if test x$COVANALYZE_EXEC != "x"; then
15818 HAS_COVANALYZE_TRUE=
15819 HAS_COVANALYZE_FALSE='#'
15820 else
15821 HAS_COVANALYZE_TRUE='#'
15822 HAS_COVANALYZE_FALSE=
15823 fi
15824
15825
15826 for ac_prog in cov-format-errors
15827 do
15828 # Extract the first word of "$ac_prog", so it can be a program name with args.
15829 set dummy $ac_prog; ac_word=$2
15830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15831 printf %s "checking for $ac_word... " >&6; }
15832 if test ${ac_cv_prog_COVFORMATERRORS_EXEC+y}
15833 then :
15834 printf %s "(cached) " >&6
15835 else case e in #(
15836 e) if test -n "$COVFORMATERRORS_EXEC"; then
15837 ac_cv_prog_COVFORMATERRORS_EXEC="$COVFORMATERRORS_EXEC" # Let the user override the test.
15838 else
15839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15840 for as_dir in $PATH
15841 do
15842 IFS=$as_save_IFS
15843 case $as_dir in #(((
15844 '') as_dir=./ ;;
15845 */) ;;
15846 *) as_dir=$as_dir/ ;;
15847 esac
15848 for ac_exec_ext in '' $ac_executable_extensions; do
15849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15850 ac_cv_prog_COVFORMATERRORS_EXEC="$ac_prog"
15851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15852 break 2
15853 fi
15854 done
15855 done
15856 IFS=$as_save_IFS
15857
15858 fi ;;
15859 esac
15860 fi
15861 COVFORMATERRORS_EXEC=$ac_cv_prog_COVFORMATERRORS_EXEC
15862 if test -n "$COVFORMATERRORS_EXEC"; then
15863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COVFORMATERRORS_EXEC" >&5
15864 printf "%s\n" "$COVFORMATERRORS_EXEC" >&6; }
15865 else
15866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15867 printf "%s\n" "no" >&6; }
15868 fi
15869
15870
15871 test -n "$COVFORMATERRORS_EXEC" && break
15872 done
15873
15874 if test x$COVFORMATERRORS_EXEC != "x"; then
15875 HAS_COVFORMATERRORS_TRUE=
15876 HAS_COVFORMATERRORS_FALSE='#'
15877 else
15878 HAS_COVFORMATERRORS_TRUE='#'
15879 HAS_COVFORMATERRORS_FALSE=
15880 fi
15881
15882
15883 # KNET_OPTION_DEFINES(stem,type,detection code)
15884 # stem: enters name of option, Automake conditional and preprocessor define
15885 # type: compress or crypto, determines where the default comes from
15886
15887
15888 # Check whether --enable-man was given.
15889 if test ${enable_man+y}
15890 then :
15891 enableval=$enable_man;
15892 else case e in #(
15893 e) enable_man="yes" ;;
15894 esac
15895 fi
15896
15897 if test x$enable_man = xyes; then
15898 BUILD_MAN_TRUE=
15899 BUILD_MAN_FALSE='#'
15900 else
15901 BUILD_MAN_TRUE='#'
15902 BUILD_MAN_FALSE=
15903 fi
15904
15905
15906 # Check whether --enable-libknet-sctp was given.
15907 if test ${enable_libknet_sctp+y}
15908 then :
15909 enableval=$enable_libknet_sctp; enable_libknet_sctp="yes"
15910 fi
15911
15912 if test x$enable_libknet_sctp = xyes; then
15913 BUILD_SCTP_TRUE=
15914 BUILD_SCTP_FALSE='#'
15915 else
15916 BUILD_SCTP_TRUE='#'
15917 BUILD_SCTP_FALSE=
15918 fi
15919
15920
15921 # Check whether --enable-functional-tests was given.
15922 if test ${enable_functional_tests+y}
15923 then :
15924 enableval=$enable_functional_tests;
15925 else case e in #(
15926 e) enable_functional_tests="yes" ;;
15927 esac
15928 fi
15929
15930 if test x$enable_functional_tests = xyes; then
15931 RUN_FUN_TESTS_TRUE=
15932 RUN_FUN_TESTS_FALSE='#'
15933 else
15934 RUN_FUN_TESTS_TRUE='#'
15935 RUN_FUN_TESTS_FALSE=
15936 fi
15937
15938
15939 # Check whether --enable-crypto-all was given.
15940 if test ${enable_crypto_all+y}
15941 then :
15942 enableval=$enable_crypto_all;
15943 else case e in #(
15944 e) enable_crypto_all="yes" ;;
15945 esac
15946 fi
15947
15948
15949
15950 # Check whether --enable-crypto-nss was given.
15951 if test ${enable_crypto_nss+y}
15952 then :
15953 enableval=$enable_crypto_nss;
15954 else case e in #(
15955 e) enable_crypto_nss="$enable_crypto_all" ;;
15956 esac
15957 fi
15958
15959 if test "x$enable_crypto_nss" = xyes; then
15960 BUILD_CRYPTO_NSS_TRUE=
15961 BUILD_CRYPTO_NSS_FALSE='#'
15962 else
15963 BUILD_CRYPTO_NSS_TRUE='#'
15964 BUILD_CRYPTO_NSS_FALSE=
15965 fi
15966
15967 if test "x$enable_crypto_nss" = xyes; then
15968
15969 pkg_failed=no
15970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
15971 printf %s "checking for nss... " >&6; }
15972
15973 if test -n "$nss_CFLAGS"; then
15974 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
15975 elif test -n "$PKG_CONFIG"; then
15976 if test -n "$PKG_CONFIG" && \
15977 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
15978 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
15979 ac_status=$?
15980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15981 test $ac_status = 0; }; then
15982 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
15983 test "x$?" != "x0" && pkg_failed=yes
15984 else
15985 pkg_failed=yes
15986 fi
15987 else
15988 pkg_failed=untried
15989 fi
15990 if test -n "$nss_LIBS"; then
15991 pkg_cv_nss_LIBS="$nss_LIBS"
15992 elif test -n "$PKG_CONFIG"; then
15993 if test -n "$PKG_CONFIG" && \
15994 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
15995 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
15996 ac_status=$?
15997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15998 test $ac_status = 0; }; then
15999 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
16000 test "x$?" != "x0" && pkg_failed=yes
16001 else
16002 pkg_failed=yes
16003 fi
16004 else
16005 pkg_failed=untried
16006 fi
16007
16008
16009
16010 if test $pkg_failed = yes; then
16011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16012 printf "%s\n" "no" >&6; }
16013
16014 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16015 _pkg_short_errors_supported=yes
16016 else
16017 _pkg_short_errors_supported=no
16018 fi
16019 if test $_pkg_short_errors_supported = yes; then
16020 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
16021 else
16022 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
16023 fi
16024 # Put the nasty error message in config.log where it belongs
16025 echo "$nss_PKG_ERRORS" >&5
16026
16027 as_fn_error $? "Package requirements (nss) were not met:
16028
16029 $nss_PKG_ERRORS
16030
16031 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16032 installed software in a non-standard prefix.
16033
16034 Alternatively, you may set the environment variables nss_CFLAGS
16035 and nss_LIBS to avoid the need to call pkg-config.
16036 See the pkg-config man page for more details." "$LINENO" 5
16037 elif test $pkg_failed = untried; then
16038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16039 printf "%s\n" "no" >&6; }
16040 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16041 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16042 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16043 is in your PATH or set the PKG_CONFIG environment variable to the full
16044 path to pkg-config.
16045
16046 Alternatively, you may set the environment variables nss_CFLAGS
16047 and nss_LIBS to avoid the need to call pkg-config.
16048 See the pkg-config man page for more details.
16049
16050 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16051 See 'config.log' for more details" "$LINENO" 5; }
16052 else
16053 nss_CFLAGS=$pkg_cv_nss_CFLAGS
16054 nss_LIBS=$pkg_cv_nss_LIBS
16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16056 printf "%s\n" "yes" >&6; }
16057
16058 fi
16059 fi
16060
16061 cat >>confdefs.h <<_ACEOF
16062 #define WITH_CRYPTO_NSS `test "x$enable_crypto_nss" != xyes; echo $?`
16063 _ACEOF
16064
16065
16066
16067 # Check whether --enable-crypto-openssl was given.
16068 if test ${enable_crypto_openssl+y}
16069 then :
16070 enableval=$enable_crypto_openssl;
16071 else case e in #(
16072 e) enable_crypto_openssl="$enable_crypto_all" ;;
16073 esac
16074 fi
16075
16076 if test "x$enable_crypto_openssl" = xyes; then
16077 BUILD_CRYPTO_OPENSSL_TRUE=
16078 BUILD_CRYPTO_OPENSSL_FALSE='#'
16079 else
16080 BUILD_CRYPTO_OPENSSL_TRUE='#'
16081 BUILD_CRYPTO_OPENSSL_FALSE=
16082 fi
16083
16084 if test "x$enable_crypto_openssl" = xyes; then
16085
16086 pkg_failed=no
16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto" >&5
16088 printf %s "checking for libcrypto... " >&6; }
16089
16090 if test -n "$openssl_CFLAGS"; then
16091 pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
16092 elif test -n "$PKG_CONFIG"; then
16093 if test -n "$PKG_CONFIG" && \
16094 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
16095 ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
16096 ac_status=$?
16097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16098 test $ac_status = 0; }; then
16099 pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null`
16100 test "x$?" != "x0" && pkg_failed=yes
16101 else
16102 pkg_failed=yes
16103 fi
16104 else
16105 pkg_failed=untried
16106 fi
16107 if test -n "$openssl_LIBS"; then
16108 pkg_cv_openssl_LIBS="$openssl_LIBS"
16109 elif test -n "$PKG_CONFIG"; then
16110 if test -n "$PKG_CONFIG" && \
16111 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
16112 ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
16113 ac_status=$?
16114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16115 test $ac_status = 0; }; then
16116 pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null`
16117 test "x$?" != "x0" && pkg_failed=yes
16118 else
16119 pkg_failed=yes
16120 fi
16121 else
16122 pkg_failed=untried
16123 fi
16124
16125
16126
16127 if test $pkg_failed = yes; then
16128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16129 printf "%s\n" "no" >&6; }
16130
16131 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16132 _pkg_short_errors_supported=yes
16133 else
16134 _pkg_short_errors_supported=no
16135 fi
16136 if test $_pkg_short_errors_supported = yes; then
16137 openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto" 2>&1`
16138 else
16139 openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto" 2>&1`
16140 fi
16141 # Put the nasty error message in config.log where it belongs
16142 echo "$openssl_PKG_ERRORS" >&5
16143
16144 as_fn_error $? "Package requirements (libcrypto) were not met:
16145
16146 $openssl_PKG_ERRORS
16147
16148 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16149 installed software in a non-standard prefix.
16150
16151 Alternatively, you may set the environment variables openssl_CFLAGS
16152 and openssl_LIBS to avoid the need to call pkg-config.
16153 See the pkg-config man page for more details." "$LINENO" 5
16154 elif test $pkg_failed = untried; then
16155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16156 printf "%s\n" "no" >&6; }
16157 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16158 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16159 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16160 is in your PATH or set the PKG_CONFIG environment variable to the full
16161 path to pkg-config.
16162
16163 Alternatively, you may set the environment variables openssl_CFLAGS
16164 and openssl_LIBS to avoid the need to call pkg-config.
16165 See the pkg-config man page for more details.
16166
16167 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16168 See 'config.log' for more details" "$LINENO" 5; }
16169 else
16170 openssl_CFLAGS=$pkg_cv_openssl_CFLAGS
16171 openssl_LIBS=$pkg_cv_openssl_LIBS
16172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16173 printf "%s\n" "yes" >&6; }
16174
16175 fi
16176 fi
16177
16178 cat >>confdefs.h <<_ACEOF
16179 #define WITH_CRYPTO_OPENSSL `test "x$enable_crypto_openssl" != xyes; echo $?`
16180 _ACEOF
16181
16182
16183
16184 # Check whether --enable-compress-all was given.
16185 if test ${enable_compress_all+y}
16186 then :
16187 enableval=$enable_compress_all;
16188 else case e in #(
16189 e) enable_compress_all="yes" ;;
16190 esac
16191 fi
16192
16193
16194
16195 # Check whether --enable-compress-zstd was given.
16196 if test ${enable_compress_zstd+y}
16197 then :
16198 enableval=$enable_compress_zstd;
16199 else case e in #(
16200 e) enable_compress_zstd="$enable_compress_all" ;;
16201 esac
16202 fi
16203
16204 if test "x$enable_compress_zstd" = xyes; then
16205 BUILD_COMPRESS_ZSTD_TRUE=
16206 BUILD_COMPRESS_ZSTD_FALSE='#'
16207 else
16208 BUILD_COMPRESS_ZSTD_TRUE='#'
16209 BUILD_COMPRESS_ZSTD_FALSE=
16210 fi
16211
16212 if test "x$enable_compress_zstd" = xyes; then
16213
16214 pkg_failed=no
16215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5
16216 printf %s "checking for libzstd... " >&6; }
16217
16218 if test -n "$libzstd_CFLAGS"; then
16219 pkg_cv_libzstd_CFLAGS="$libzstd_CFLAGS"
16220 elif test -n "$PKG_CONFIG"; then
16221 if test -n "$PKG_CONFIG" && \
16222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
16223 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
16224 ac_status=$?
16225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16226 test $ac_status = 0; }; then
16227 pkg_cv_libzstd_CFLAGS=`$PKG_CONFIG --cflags "libzstd" 2>/dev/null`
16228 test "x$?" != "x0" && pkg_failed=yes
16229 else
16230 pkg_failed=yes
16231 fi
16232 else
16233 pkg_failed=untried
16234 fi
16235 if test -n "$libzstd_LIBS"; then
16236 pkg_cv_libzstd_LIBS="$libzstd_LIBS"
16237 elif test -n "$PKG_CONFIG"; then
16238 if test -n "$PKG_CONFIG" && \
16239 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
16240 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
16241 ac_status=$?
16242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16243 test $ac_status = 0; }; then
16244 pkg_cv_libzstd_LIBS=`$PKG_CONFIG --libs "libzstd" 2>/dev/null`
16245 test "x$?" != "x0" && pkg_failed=yes
16246 else
16247 pkg_failed=yes
16248 fi
16249 else
16250 pkg_failed=untried
16251 fi
16252
16253
16254
16255 if test $pkg_failed = yes; then
16256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257 printf "%s\n" "no" >&6; }
16258
16259 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16260 _pkg_short_errors_supported=yes
16261 else
16262 _pkg_short_errors_supported=no
16263 fi
16264 if test $_pkg_short_errors_supported = yes; then
16265 libzstd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd" 2>&1`
16266 else
16267 libzstd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd" 2>&1`
16268 fi
16269 # Put the nasty error message in config.log where it belongs
16270 echo "$libzstd_PKG_ERRORS" >&5
16271
16272 as_fn_error $? "Package requirements (libzstd) were not met:
16273
16274 $libzstd_PKG_ERRORS
16275
16276 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16277 installed software in a non-standard prefix.
16278
16279 Alternatively, you may set the environment variables libzstd_CFLAGS
16280 and libzstd_LIBS to avoid the need to call pkg-config.
16281 See the pkg-config man page for more details." "$LINENO" 5
16282 elif test $pkg_failed = untried; then
16283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284 printf "%s\n" "no" >&6; }
16285 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16286 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16287 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16288 is in your PATH or set the PKG_CONFIG environment variable to the full
16289 path to pkg-config.
16290
16291 Alternatively, you may set the environment variables libzstd_CFLAGS
16292 and libzstd_LIBS to avoid the need to call pkg-config.
16293 See the pkg-config man page for more details.
16294
16295 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16296 See 'config.log' for more details" "$LINENO" 5; }
16297 else
16298 libzstd_CFLAGS=$pkg_cv_libzstd_CFLAGS
16299 libzstd_LIBS=$pkg_cv_libzstd_LIBS
16300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16301 printf "%s\n" "yes" >&6; }
16302
16303 fi
16304 fi
16305
16306 cat >>confdefs.h <<_ACEOF
16307 #define WITH_COMPRESS_ZSTD `test "x$enable_compress_zstd" != xyes; echo $?`
16308 _ACEOF
16309
16310
16311
16312 # Check whether --enable-compress-zlib was given.
16313 if test ${enable_compress_zlib+y}
16314 then :
16315 enableval=$enable_compress_zlib;
16316 else case e in #(
16317 e) enable_compress_zlib="$enable_compress_all" ;;
16318 esac
16319 fi
16320
16321 if test "x$enable_compress_zlib" = xyes; then
16322 BUILD_COMPRESS_ZLIB_TRUE=
16323 BUILD_COMPRESS_ZLIB_FALSE='#'
16324 else
16325 BUILD_COMPRESS_ZLIB_TRUE='#'
16326 BUILD_COMPRESS_ZLIB_FALSE=
16327 fi
16328
16329 if test "x$enable_compress_zlib" = xyes; then
16330
16331 pkg_failed=no
16332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
16333 printf %s "checking for zlib... " >&6; }
16334
16335 if test -n "$zlib_CFLAGS"; then
16336 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
16337 elif test -n "$PKG_CONFIG"; then
16338 if test -n "$PKG_CONFIG" && \
16339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
16340 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
16341 ac_status=$?
16342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16343 test $ac_status = 0; }; then
16344 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
16345 test "x$?" != "x0" && pkg_failed=yes
16346 else
16347 pkg_failed=yes
16348 fi
16349 else
16350 pkg_failed=untried
16351 fi
16352 if test -n "$zlib_LIBS"; then
16353 pkg_cv_zlib_LIBS="$zlib_LIBS"
16354 elif test -n "$PKG_CONFIG"; then
16355 if test -n "$PKG_CONFIG" && \
16356 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
16357 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
16358 ac_status=$?
16359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16360 test $ac_status = 0; }; then
16361 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
16362 test "x$?" != "x0" && pkg_failed=yes
16363 else
16364 pkg_failed=yes
16365 fi
16366 else
16367 pkg_failed=untried
16368 fi
16369
16370
16371
16372 if test $pkg_failed = yes; then
16373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16374 printf "%s\n" "no" >&6; }
16375
16376 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16377 _pkg_short_errors_supported=yes
16378 else
16379 _pkg_short_errors_supported=no
16380 fi
16381 if test $_pkg_short_errors_supported = yes; then
16382 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
16383 else
16384 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
16385 fi
16386 # Put the nasty error message in config.log where it belongs
16387 echo "$zlib_PKG_ERRORS" >&5
16388
16389 as_fn_error $? "Package requirements (zlib) were not met:
16390
16391 $zlib_PKG_ERRORS
16392
16393 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16394 installed software in a non-standard prefix.
16395
16396 Alternatively, you may set the environment variables zlib_CFLAGS
16397 and zlib_LIBS to avoid the need to call pkg-config.
16398 See the pkg-config man page for more details." "$LINENO" 5
16399 elif test $pkg_failed = untried; then
16400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16401 printf "%s\n" "no" >&6; }
16402 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16403 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16404 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16405 is in your PATH or set the PKG_CONFIG environment variable to the full
16406 path to pkg-config.
16407
16408 Alternatively, you may set the environment variables zlib_CFLAGS
16409 and zlib_LIBS to avoid the need to call pkg-config.
16410 See the pkg-config man page for more details.
16411
16412 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16413 See 'config.log' for more details" "$LINENO" 5; }
16414 else
16415 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
16416 zlib_LIBS=$pkg_cv_zlib_LIBS
16417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16418 printf "%s\n" "yes" >&6; }
16419
16420 fi
16421 fi
16422
16423 cat >>confdefs.h <<_ACEOF
16424 #define WITH_COMPRESS_ZLIB `test "x$enable_compress_zlib" != xyes; echo $?`
16425 _ACEOF
16426
16427
16428
16429 # Check whether --enable-compress-lz4 was given.
16430 if test ${enable_compress_lz4+y}
16431 then :
16432 enableval=$enable_compress_lz4;
16433 else case e in #(
16434 e) enable_compress_lz4="$enable_compress_all" ;;
16435 esac
16436 fi
16437
16438 if test "x$enable_compress_lz4" = xyes; then
16439 BUILD_COMPRESS_LZ4_TRUE=
16440 BUILD_COMPRESS_LZ4_FALSE='#'
16441 else
16442 BUILD_COMPRESS_LZ4_TRUE='#'
16443 BUILD_COMPRESS_LZ4_FALSE=
16444 fi
16445
16446 if test "x$enable_compress_lz4" = xyes; then
16447
16448 pkg_failed=no
16449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblz4" >&5
16450 printf %s "checking for liblz4... " >&6; }
16451
16452 if test -n "$liblz4_CFLAGS"; then
16453 pkg_cv_liblz4_CFLAGS="$liblz4_CFLAGS"
16454 elif test -n "$PKG_CONFIG"; then
16455 if test -n "$PKG_CONFIG" && \
16456 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
16457 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
16458 ac_status=$?
16459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16460 test $ac_status = 0; }; then
16461 pkg_cv_liblz4_CFLAGS=`$PKG_CONFIG --cflags "liblz4" 2>/dev/null`
16462 test "x$?" != "x0" && pkg_failed=yes
16463 else
16464 pkg_failed=yes
16465 fi
16466 else
16467 pkg_failed=untried
16468 fi
16469 if test -n "$liblz4_LIBS"; then
16470 pkg_cv_liblz4_LIBS="$liblz4_LIBS"
16471 elif test -n "$PKG_CONFIG"; then
16472 if test -n "$PKG_CONFIG" && \
16473 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
16474 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
16475 ac_status=$?
16476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16477 test $ac_status = 0; }; then
16478 pkg_cv_liblz4_LIBS=`$PKG_CONFIG --libs "liblz4" 2>/dev/null`
16479 test "x$?" != "x0" && pkg_failed=yes
16480 else
16481 pkg_failed=yes
16482 fi
16483 else
16484 pkg_failed=untried
16485 fi
16486
16487
16488
16489 if test $pkg_failed = yes; then
16490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16491 printf "%s\n" "no" >&6; }
16492
16493 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16494 _pkg_short_errors_supported=yes
16495 else
16496 _pkg_short_errors_supported=no
16497 fi
16498 if test $_pkg_short_errors_supported = yes; then
16499 liblz4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4" 2>&1`
16500 else
16501 liblz4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblz4" 2>&1`
16502 fi
16503 # Put the nasty error message in config.log where it belongs
16504 echo "$liblz4_PKG_ERRORS" >&5
16505
16506 as_fn_error $? "Package requirements (liblz4) were not met:
16507
16508 $liblz4_PKG_ERRORS
16509
16510 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16511 installed software in a non-standard prefix.
16512
16513 Alternatively, you may set the environment variables liblz4_CFLAGS
16514 and liblz4_LIBS to avoid the need to call pkg-config.
16515 See the pkg-config man page for more details." "$LINENO" 5
16516 elif test $pkg_failed = untried; then
16517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16518 printf "%s\n" "no" >&6; }
16519 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16520 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16521 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16522 is in your PATH or set the PKG_CONFIG environment variable to the full
16523 path to pkg-config.
16524
16525 Alternatively, you may set the environment variables liblz4_CFLAGS
16526 and liblz4_LIBS to avoid the need to call pkg-config.
16527 See the pkg-config man page for more details.
16528
16529 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16530 See 'config.log' for more details" "$LINENO" 5; }
16531 else
16532 liblz4_CFLAGS=$pkg_cv_liblz4_CFLAGS
16533 liblz4_LIBS=$pkg_cv_liblz4_LIBS
16534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16535 printf "%s\n" "yes" >&6; }
16536
16537 fi
16538 fi
16539
16540 cat >>confdefs.h <<_ACEOF
16541 #define WITH_COMPRESS_LZ4 `test "x$enable_compress_lz4" != xyes; echo $?`
16542 _ACEOF
16543
16544
16545
16546 # Check whether --enable-compress-lzo2 was given.
16547 if test ${enable_compress_lzo2+y}
16548 then :
16549 enableval=$enable_compress_lzo2;
16550 else case e in #(
16551 e) enable_compress_lzo2="$enable_compress_all" ;;
16552 esac
16553 fi
16554
16555 if test "x$enable_compress_lzo2" = xyes; then
16556 BUILD_COMPRESS_LZO2_TRUE=
16557 BUILD_COMPRESS_LZO2_FALSE='#'
16558 else
16559 BUILD_COMPRESS_LZO2_TRUE='#'
16560 BUILD_COMPRESS_LZO2_FALSE=
16561 fi
16562
16563 if test "x$enable_compress_lzo2" = xyes; then
16564
16565
16566 pkg_failed=no
16567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzo2" >&5
16568 printf %s "checking for lzo2... " >&6; }
16569
16570 if test -n "$lzo2_CFLAGS"; then
16571 pkg_cv_lzo2_CFLAGS="$lzo2_CFLAGS"
16572 elif test -n "$PKG_CONFIG"; then
16573 if test -n "$PKG_CONFIG" && \
16574 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lzo2\""; } >&5
16575 ($PKG_CONFIG --exists --print-errors "lzo2") 2>&5
16576 ac_status=$?
16577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16578 test $ac_status = 0; }; then
16579 pkg_cv_lzo2_CFLAGS=`$PKG_CONFIG --cflags "lzo2" 2>/dev/null`
16580 test "x$?" != "x0" && pkg_failed=yes
16581 else
16582 pkg_failed=yes
16583 fi
16584 else
16585 pkg_failed=untried
16586 fi
16587 if test -n "$lzo2_LIBS"; then
16588 pkg_cv_lzo2_LIBS="$lzo2_LIBS"
16589 elif test -n "$PKG_CONFIG"; then
16590 if test -n "$PKG_CONFIG" && \
16591 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lzo2\""; } >&5
16592 ($PKG_CONFIG --exists --print-errors "lzo2") 2>&5
16593 ac_status=$?
16594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16595 test $ac_status = 0; }; then
16596 pkg_cv_lzo2_LIBS=`$PKG_CONFIG --libs "lzo2" 2>/dev/null`
16597 test "x$?" != "x0" && pkg_failed=yes
16598 else
16599 pkg_failed=yes
16600 fi
16601 else
16602 pkg_failed=untried
16603 fi
16604
16605
16606
16607 if test $pkg_failed = yes; then
16608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16609 printf "%s\n" "no" >&6; }
16610
16611 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16612 _pkg_short_errors_supported=yes
16613 else
16614 _pkg_short_errors_supported=no
16615 fi
16616 if test $_pkg_short_errors_supported = yes; then
16617 lzo2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lzo2" 2>&1`
16618 else
16619 lzo2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lzo2" 2>&1`
16620 fi
16621 # Put the nasty error message in config.log where it belongs
16622 echo "$lzo2_PKG_ERRORS" >&5
16623
16624 for ac_header in lzo/lzo1x.h
16625 do :
16626 ac_fn_c_check_header_compile "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
16627 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes
16628 then :
16629 printf "%s\n" "#define HAVE_LZO_LZO1X_H 1" >>confdefs.h
16630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzo1x_decompress_safe in -llzo2" >&5
16631 printf %s "checking for lzo1x_decompress_safe in -llzo2... " >&6; }
16632 if test ${ac_cv_lib_lzo2_lzo1x_decompress_safe+y}
16633 then :
16634 printf %s "(cached) " >&6
16635 else case e in #(
16636 e) ac_check_lib_save_LIBS=$LIBS
16637 LIBS="-llzo2 $LIBS"
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640
16641 /* Override any GCC internal prototype to avoid an error.
16642 Use char because int might match the return type of a GCC
16643 builtin and then its argument prototype would still apply.
16644 The 'extern "C"' is for builds by C++ compilers;
16645 although this is not generally supported in C code supporting it here
16646 has little cost and some practical benefit (sr 110532). */
16647 #ifdef __cplusplus
16648 extern "C"
16649 #endif
16650 char lzo1x_decompress_safe (void);
16651 int
16652 main (void)
16653 {
16654 return lzo1x_decompress_safe ();
16655 ;
16656 return 0;
16657 }
16658 _ACEOF
16659 if ac_fn_c_try_link "$LINENO"
16660 then :
16661 ac_cv_lib_lzo2_lzo1x_decompress_safe=yes
16662 else case e in #(
16663 e) ac_cv_lib_lzo2_lzo1x_decompress_safe=no ;;
16664 esac
16665 fi
16666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16667 conftest$ac_exeext conftest.$ac_ext
16668 LIBS=$ac_check_lib_save_LIBS ;;
16669 esac
16670 fi
16671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_decompress_safe" >&5
16672 printf "%s\n" "$ac_cv_lib_lzo2_lzo1x_decompress_safe" >&6; }
16673 if test "x$ac_cv_lib_lzo2_lzo1x_decompress_safe" = xyes
16674 then :
16675 lzo2_LIBS=-llzo2
16676
16677 fi
16678
16679 else case e in #(
16680 e) as_fn_error $? "\"missing required lzo/lzo1x.h header\"" "$LINENO" 5 ;;
16681 esac
16682 fi
16683
16684 done
16685 elif test $pkg_failed = untried; then
16686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16687 printf "%s\n" "no" >&6; }
16688 for ac_header in lzo/lzo1x.h
16689 do :
16690 ac_fn_c_check_header_compile "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
16691 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes
16692 then :
16693 printf "%s\n" "#define HAVE_LZO_LZO1X_H 1" >>confdefs.h
16694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzo1x_decompress_safe in -llzo2" >&5
16695 printf %s "checking for lzo1x_decompress_safe in -llzo2... " >&6; }
16696 if test ${ac_cv_lib_lzo2_lzo1x_decompress_safe+y}
16697 then :
16698 printf %s "(cached) " >&6
16699 else case e in #(
16700 e) ac_check_lib_save_LIBS=$LIBS
16701 LIBS="-llzo2 $LIBS"
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16704
16705 /* Override any GCC internal prototype to avoid an error.
16706 Use char because int might match the return type of a GCC
16707 builtin and then its argument prototype would still apply.
16708 The 'extern "C"' is for builds by C++ compilers;
16709 although this is not generally supported in C code supporting it here
16710 has little cost and some practical benefit (sr 110532). */
16711 #ifdef __cplusplus
16712 extern "C"
16713 #endif
16714 char lzo1x_decompress_safe (void);
16715 int
16716 main (void)
16717 {
16718 return lzo1x_decompress_safe ();
16719 ;
16720 return 0;
16721 }
16722 _ACEOF
16723 if ac_fn_c_try_link "$LINENO"
16724 then :
16725 ac_cv_lib_lzo2_lzo1x_decompress_safe=yes
16726 else case e in #(
16727 e) ac_cv_lib_lzo2_lzo1x_decompress_safe=no ;;
16728 esac
16729 fi
16730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16731 conftest$ac_exeext conftest.$ac_ext
16732 LIBS=$ac_check_lib_save_LIBS ;;
16733 esac
16734 fi
16735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_decompress_safe" >&5
16736 printf "%s\n" "$ac_cv_lib_lzo2_lzo1x_decompress_safe" >&6; }
16737 if test "x$ac_cv_lib_lzo2_lzo1x_decompress_safe" = xyes
16738 then :
16739 lzo2_LIBS=-llzo2
16740
16741 fi
16742
16743 else case e in #(
16744 e) as_fn_error $? "\"missing required lzo/lzo1x.h header\"" "$LINENO" 5 ;;
16745 esac
16746 fi
16747
16748 done
16749 else
16750 lzo2_CFLAGS=$pkg_cv_lzo2_CFLAGS
16751 lzo2_LIBS=$pkg_cv_lzo2_LIBS
16752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16753 printf "%s\n" "yes" >&6; }
16754 # work around broken pkg-config file in v2.10
16755 lzo2_CFLAGS=`echo $lzo2_CFLAGS | sed 's,/lzo *, ,'`
16756
16757 fi
16758
16759 fi
16760
16761 cat >>confdefs.h <<_ACEOF
16762 #define WITH_COMPRESS_LZO2 `test "x$enable_compress_lzo2" != xyes; echo $?`
16763 _ACEOF
16764
16765
16766
16767 # Check whether --enable-compress-lzma was given.
16768 if test ${enable_compress_lzma+y}
16769 then :
16770 enableval=$enable_compress_lzma;
16771 else case e in #(
16772 e) enable_compress_lzma="$enable_compress_all" ;;
16773 esac
16774 fi
16775
16776 if test "x$enable_compress_lzma" = xyes; then
16777 BUILD_COMPRESS_LZMA_TRUE=
16778 BUILD_COMPRESS_LZMA_FALSE='#'
16779 else
16780 BUILD_COMPRESS_LZMA_TRUE='#'
16781 BUILD_COMPRESS_LZMA_FALSE=
16782 fi
16783
16784 if test "x$enable_compress_lzma" = xyes; then
16785
16786 pkg_failed=no
16787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16788 printf %s "checking for liblzma... " >&6; }
16789
16790 if test -n "$liblzma_CFLAGS"; then
16791 pkg_cv_liblzma_CFLAGS="$liblzma_CFLAGS"
16792 elif test -n "$PKG_CONFIG"; then
16793 if test -n "$PKG_CONFIG" && \
16794 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
16795 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
16796 ac_status=$?
16797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16798 test $ac_status = 0; }; then
16799 pkg_cv_liblzma_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
16800 test "x$?" != "x0" && pkg_failed=yes
16801 else
16802 pkg_failed=yes
16803 fi
16804 else
16805 pkg_failed=untried
16806 fi
16807 if test -n "$liblzma_LIBS"; then
16808 pkg_cv_liblzma_LIBS="$liblzma_LIBS"
16809 elif test -n "$PKG_CONFIG"; then
16810 if test -n "$PKG_CONFIG" && \
16811 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
16812 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
16813 ac_status=$?
16814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16815 test $ac_status = 0; }; then
16816 pkg_cv_liblzma_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
16817 test "x$?" != "x0" && pkg_failed=yes
16818 else
16819 pkg_failed=yes
16820 fi
16821 else
16822 pkg_failed=untried
16823 fi
16824
16825
16826
16827 if test $pkg_failed = yes; then
16828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16829 printf "%s\n" "no" >&6; }
16830
16831 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16832 _pkg_short_errors_supported=yes
16833 else
16834 _pkg_short_errors_supported=no
16835 fi
16836 if test $_pkg_short_errors_supported = yes; then
16837 liblzma_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
16838 else
16839 liblzma_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
16840 fi
16841 # Put the nasty error message in config.log where it belongs
16842 echo "$liblzma_PKG_ERRORS" >&5
16843
16844 as_fn_error $? "Package requirements (liblzma) were not met:
16845
16846 $liblzma_PKG_ERRORS
16847
16848 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16849 installed software in a non-standard prefix.
16850
16851 Alternatively, you may set the environment variables liblzma_CFLAGS
16852 and liblzma_LIBS to avoid the need to call pkg-config.
16853 See the pkg-config man page for more details." "$LINENO" 5
16854 elif test $pkg_failed = untried; then
16855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16856 printf "%s\n" "no" >&6; }
16857 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16858 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16859 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16860 is in your PATH or set the PKG_CONFIG environment variable to the full
16861 path to pkg-config.
16862
16863 Alternatively, you may set the environment variables liblzma_CFLAGS
16864 and liblzma_LIBS to avoid the need to call pkg-config.
16865 See the pkg-config man page for more details.
16866
16867 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16868 See 'config.log' for more details" "$LINENO" 5; }
16869 else
16870 liblzma_CFLAGS=$pkg_cv_liblzma_CFLAGS
16871 liblzma_LIBS=$pkg_cv_liblzma_LIBS
16872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16873 printf "%s\n" "yes" >&6; }
16874
16875 fi
16876 fi
16877
16878 cat >>confdefs.h <<_ACEOF
16879 #define WITH_COMPRESS_LZMA `test "x$enable_compress_lzma" != xyes; echo $?`
16880 _ACEOF
16881
16882
16883
16884 # Check whether --enable-compress-bzip2 was given.
16885 if test ${enable_compress_bzip2+y}
16886 then :
16887 enableval=$enable_compress_bzip2;
16888 else case e in #(
16889 e) enable_compress_bzip2="$enable_compress_all" ;;
16890 esac
16891 fi
16892
16893 if test "x$enable_compress_bzip2" = xyes; then
16894 BUILD_COMPRESS_BZIP2_TRUE=
16895 BUILD_COMPRESS_BZIP2_FALSE='#'
16896 else
16897 BUILD_COMPRESS_BZIP2_TRUE='#'
16898 BUILD_COMPRESS_BZIP2_FALSE=
16899 fi
16900
16901 if test "x$enable_compress_bzip2" = xyes; then
16902
16903
16904 pkg_failed=no
16905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzip2" >&5
16906 printf %s "checking for bzip2... " >&6; }
16907
16908 if test -n "$bzip2_CFLAGS"; then
16909 pkg_cv_bzip2_CFLAGS="$bzip2_CFLAGS"
16910 elif test -n "$PKG_CONFIG"; then
16911 if test -n "$PKG_CONFIG" && \
16912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
16913 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
16914 ac_status=$?
16915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16916 test $ac_status = 0; }; then
16917 pkg_cv_bzip2_CFLAGS=`$PKG_CONFIG --cflags "bzip2" 2>/dev/null`
16918 test "x$?" != "x0" && pkg_failed=yes
16919 else
16920 pkg_failed=yes
16921 fi
16922 else
16923 pkg_failed=untried
16924 fi
16925 if test -n "$bzip2_LIBS"; then
16926 pkg_cv_bzip2_LIBS="$bzip2_LIBS"
16927 elif test -n "$PKG_CONFIG"; then
16928 if test -n "$PKG_CONFIG" && \
16929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
16930 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
16931 ac_status=$?
16932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16933 test $ac_status = 0; }; then
16934 pkg_cv_bzip2_LIBS=`$PKG_CONFIG --libs "bzip2" 2>/dev/null`
16935 test "x$?" != "x0" && pkg_failed=yes
16936 else
16937 pkg_failed=yes
16938 fi
16939 else
16940 pkg_failed=untried
16941 fi
16942
16943
16944
16945 if test $pkg_failed = yes; then
16946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947 printf "%s\n" "no" >&6; }
16948
16949 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16950 _pkg_short_errors_supported=yes
16951 else
16952 _pkg_short_errors_supported=no
16953 fi
16954 if test $_pkg_short_errors_supported = yes; then
16955 bzip2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bzip2" 2>&1`
16956 else
16957 bzip2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bzip2" 2>&1`
16958 fi
16959 # Put the nasty error message in config.log where it belongs
16960 echo "$bzip2_PKG_ERRORS" >&5
16961
16962 for ac_header in bzlib.h
16963 do :
16964 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
16965 if test "x$ac_cv_header_bzlib_h" = xyes
16966 then :
16967 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
16968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
16969 printf %s "checking for BZ2_bzBuffToBuffCompress in -lbz2... " >&6; }
16970 if test ${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+y}
16971 then :
16972 printf %s "(cached) " >&6
16973 else case e in #(
16974 e) ac_check_lib_save_LIBS=$LIBS
16975 LIBS="-lbz2 $LIBS"
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16978
16979 /* Override any GCC internal prototype to avoid an error.
16980 Use char because int might match the return type of a GCC
16981 builtin and then its argument prototype would still apply.
16982 The 'extern "C"' is for builds by C++ compilers;
16983 although this is not generally supported in C code supporting it here
16984 has little cost and some practical benefit (sr 110532). */
16985 #ifdef __cplusplus
16986 extern "C"
16987 #endif
16988 char BZ2_bzBuffToBuffCompress (void);
16989 int
16990 main (void)
16991 {
16992 return BZ2_bzBuffToBuffCompress ();
16993 ;
16994 return 0;
16995 }
16996 _ACEOF
16997 if ac_fn_c_try_link "$LINENO"
16998 then :
16999 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes
17000 else case e in #(
17001 e) ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no ;;
17002 esac
17003 fi
17004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17005 conftest$ac_exeext conftest.$ac_ext
17006 LIBS=$ac_check_lib_save_LIBS ;;
17007 esac
17008 fi
17009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5
17010 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6; }
17011 if test "x$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" = xyes
17012 then :
17013 bzip2_LIBS=-lbz2
17014
17015 fi
17016
17017 else case e in #(
17018 e) as_fn_error $? "\"missing required bzlib.h\"" "$LINENO" 5 ;;
17019 esac
17020 fi
17021
17022 done
17023 elif test $pkg_failed = untried; then
17024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17025 printf "%s\n" "no" >&6; }
17026 for ac_header in bzlib.h
17027 do :
17028 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
17029 if test "x$ac_cv_header_bzlib_h" = xyes
17030 then :
17031 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
17032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
17033 printf %s "checking for BZ2_bzBuffToBuffCompress in -lbz2... " >&6; }
17034 if test ${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+y}
17035 then :
17036 printf %s "(cached) " >&6
17037 else case e in #(
17038 e) ac_check_lib_save_LIBS=$LIBS
17039 LIBS="-lbz2 $LIBS"
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17042
17043 /* Override any GCC internal prototype to avoid an error.
17044 Use char because int might match the return type of a GCC
17045 builtin and then its argument prototype would still apply.
17046 The 'extern "C"' is for builds by C++ compilers;
17047 although this is not generally supported in C code supporting it here
17048 has little cost and some practical benefit (sr 110532). */
17049 #ifdef __cplusplus
17050 extern "C"
17051 #endif
17052 char BZ2_bzBuffToBuffCompress (void);
17053 int
17054 main (void)
17055 {
17056 return BZ2_bzBuffToBuffCompress ();
17057 ;
17058 return 0;
17059 }
17060 _ACEOF
17061 if ac_fn_c_try_link "$LINENO"
17062 then :
17063 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes
17064 else case e in #(
17065 e) ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no ;;
17066 esac
17067 fi
17068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17069 conftest$ac_exeext conftest.$ac_ext
17070 LIBS=$ac_check_lib_save_LIBS ;;
17071 esac
17072 fi
17073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5
17074 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6; }
17075 if test "x$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" = xyes
17076 then :
17077 bzip2_LIBS=-lbz2
17078
17079 fi
17080
17081 else case e in #(
17082 e) as_fn_error $? "\"missing required bzlib.h\"" "$LINENO" 5 ;;
17083 esac
17084 fi
17085
17086 done
17087 else
17088 bzip2_CFLAGS=$pkg_cv_bzip2_CFLAGS
17089 bzip2_LIBS=$pkg_cv_bzip2_LIBS
17090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17091 printf "%s\n" "yes" >&6; }
17092
17093 fi
17094
17095 fi
17096
17097 cat >>confdefs.h <<_ACEOF
17098 #define WITH_COMPRESS_BZIP2 `test "x$enable_compress_bzip2" != xyes; echo $?`
17099 _ACEOF
17100
17101
17102
17103 # Check whether --enable-install-tests was given.
17104 if test ${enable_install_tests+y}
17105 then :
17106 enableval=$enable_install_tests;
17107 else case e in #(
17108 e) enable_install_tests="no" ;;
17109 esac
17110 fi
17111
17112 if test x$enable_install_tests = xyes; then
17113 INSTALL_TESTS_TRUE=
17114 INSTALL_TESTS_FALSE='#'
17115 else
17116 INSTALL_TESTS_TRUE='#'
17117 INSTALL_TESTS_FALSE=
17118 fi
17119
17120
17121 # Check whether --enable-runautogen was given.
17122 if test ${enable_runautogen+y}
17123 then :
17124 enableval=$enable_runautogen;
17125 else case e in #(
17126 e) enable_runautogen="no" ;;
17127 esac
17128 fi
17129
17130 if test x$enable_runautogen = xyes; then
17131 BUILD_RUNAUTOGEN_TRUE=
17132 BUILD_RUNAUTOGEN_FALSE='#'
17133 else
17134 BUILD_RUNAUTOGEN_TRUE='#'
17135 BUILD_RUNAUTOGEN_FALSE=
17136 fi
17137
17138
17139 override_rpm_debuginfo_option="yes"
17140 # Check whether --enable-rpm-debuginfo was given.
17141 if test ${enable_rpm_debuginfo+y}
17142 then :
17143 enableval=$enable_rpm_debuginfo;
17144 else case e in #(
17145 e) enable_rpm_debuginfo="no", override_rpm_debuginfo_option="no" ;;
17146 esac
17147 fi
17148
17149 if test x$enable_rpm_debuginfo = xyes; then
17150 BUILD_RPM_DEBUGINFO_TRUE=
17151 BUILD_RPM_DEBUGINFO_FALSE='#'
17152 else
17153 BUILD_RPM_DEBUGINFO_TRUE='#'
17154 BUILD_RPM_DEBUGINFO_FALSE=
17155 fi
17156
17157 if test x$override_rpm_debuginfo_option = xyes; then
17158 OVERRIDE_RPM_DEBUGINFO_TRUE=
17159 OVERRIDE_RPM_DEBUGINFO_FALSE='#'
17160 else
17161 OVERRIDE_RPM_DEBUGINFO_TRUE='#'
17162 OVERRIDE_RPM_DEBUGINFO_FALSE=
17163 fi
17164
17165
17166 # Check whether --enable-libnozzle was given.
17167 if test ${enable_libnozzle+y}
17168 then :
17169 enableval=$enable_libnozzle;
17170 else case e in #(
17171 e) enable_libnozzle="yes" ;;
17172 esac
17173 fi
17174
17175
17176 if test x$enable_libnozzle = xyes; then
17177 BUILD_LIBNOZZLE_TRUE=
17178 BUILD_LIBNOZZLE_FALSE='#'
17179 else
17180 BUILD_LIBNOZZLE_TRUE='#'
17181 BUILD_LIBNOZZLE_FALSE=
17182 fi
17183
17184
17185 ## local helper functions
17186 # this function checks if CC support options passed as
17187 # args. Global CPPFLAGS are ignored during this test.
17188 cc_supports_flag() {
17189 saveCPPFLAGS="$CPPFLAGS"
17190 CPPFLAGS="-Werror $@"
17191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports \"$@\"" >&5
17192 printf %s "checking whether $CC supports \"$@\"... " >&6; }
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h. */
17195 #include <stdio.h>
17196 int
17197 main (void)
17198 {
17199
17200 #ifdef __USE_FORTIFY_LEVEL
17201 printf("%d\n", __USE_FORTIFY_LEVEL)
17202 #else
17203 printf("hello world\n")
17204 #endif
17205
17206 ;
17207 return 0;
17208 }
17209 _ACEOF
17210 if ac_fn_c_try_compile "$LINENO"
17211 then :
17212 RC=0; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17213 printf "%s\n" "yes" >&6; }
17214 else case e in #(
17215 e) RC=1; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17216 printf "%s\n" "no" >&6; } ;;
17217 esac
17218 fi
17219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17220 CPPFLAGS="$saveCPPFLAGS"
17221 return $RC
17222 }
17223
17224 # Checks for libraries.
17225
17226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
17227 printf %s "checking for egrep -e... " >&6; }
17228 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
17229 then :
17230 printf %s "(cached) " >&6
17231 else case e in #(
17232 e) if test -z "$EGREP_TRADITIONAL"; then
17233 ac_path_EGREP_TRADITIONAL_found=false
17234 # Loop through the user's path and test for each of PROGNAME-LIST
17235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17237 do
17238 IFS=$as_save_IFS
17239 case $as_dir in #(((
17240 '') as_dir=./ ;;
17241 */) ;;
17242 *) as_dir=$as_dir/ ;;
17243 esac
17244 for ac_prog in grep ggrep
17245 do
17246 for ac_exec_ext in '' $ac_executable_extensions; do
17247 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
17248 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
17249 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
17250 # Check for GNU $ac_path_EGREP_TRADITIONAL
17251 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
17252 *GNU*)
17253 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
17254 #(
17255 *)
17256 ac_count=0
17257 printf %s 0123456789 >"conftest.in"
17258 while :
17259 do
17260 cat "conftest.in" "conftest.in" >"conftest.tmp"
17261 mv "conftest.tmp" "conftest.in"
17262 cp "conftest.in" "conftest.nl"
17263 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
17264 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17266 as_fn_arith $ac_count + 1 && ac_count=$as_val
17267 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
17268 # Best one so far, save it but keep looking for a better one
17269 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
17270 ac_path_EGREP_TRADITIONAL_max=$ac_count
17271 fi
17272 # 10*(2^10) chars as input seems more than enough
17273 test $ac_count -gt 10 && break
17274 done
17275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17276 esac
17277
17278 $ac_path_EGREP_TRADITIONAL_found && break 3
17279 done
17280 done
17281 done
17282 IFS=$as_save_IFS
17283 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
17284 :
17285 fi
17286 else
17287 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
17288 fi
17289
17290 if test "$ac_cv_path_EGREP_TRADITIONAL"
17291 then :
17292 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
17293 else case e in #(
17294 e) if test -z "$EGREP_TRADITIONAL"; then
17295 ac_path_EGREP_TRADITIONAL_found=false
17296 # Loop through the user's path and test for each of PROGNAME-LIST
17297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17298 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17299 do
17300 IFS=$as_save_IFS
17301 case $as_dir in #(((
17302 '') as_dir=./ ;;
17303 */) ;;
17304 *) as_dir=$as_dir/ ;;
17305 esac
17306 for ac_prog in egrep
17307 do
17308 for ac_exec_ext in '' $ac_executable_extensions; do
17309 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
17310 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
17311 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
17312 # Check for GNU $ac_path_EGREP_TRADITIONAL
17313 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
17314 *GNU*)
17315 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
17316 #(
17317 *)
17318 ac_count=0
17319 printf %s 0123456789 >"conftest.in"
17320 while :
17321 do
17322 cat "conftest.in" "conftest.in" >"conftest.tmp"
17323 mv "conftest.tmp" "conftest.in"
17324 cp "conftest.in" "conftest.nl"
17325 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
17326 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17328 as_fn_arith $ac_count + 1 && ac_count=$as_val
17329 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
17330 # Best one so far, save it but keep looking for a better one
17331 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
17332 ac_path_EGREP_TRADITIONAL_max=$ac_count
17333 fi
17334 # 10*(2^10) chars as input seems more than enough
17335 test $ac_count -gt 10 && break
17336 done
17337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17338 esac
17339
17340 $ac_path_EGREP_TRADITIONAL_found && break 3
17341 done
17342 done
17343 done
17344 IFS=$as_save_IFS
17345 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
17346 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
17347 fi
17348 else
17349 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
17350 fi
17351 ;;
17352 esac
17353 fi ;;
17354 esac
17355 fi
17356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
17357 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
17358 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
17359
17360
17361
17362
17363
17364 ac_ext=c
17365 ac_cpp='$CPP $CPPFLAGS'
17366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17369
17370 ax_pthread_ok=no
17371
17372 # We used to check for pthread.h first, but this fails if pthread.h
17373 # requires special compiler flags (e.g. on Tru64 or Sequent).
17374 # It gets checked for in the link test anyway.
17375
17376 # First of all, check if the user has set any of the PTHREAD_LIBS,
17377 # etcetera environment variables, and if threads linking works using
17378 # them:
17379 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
17380 ax_pthread_save_CC="$CC"
17381 ax_pthread_save_CFLAGS="$CFLAGS"
17382 ax_pthread_save_LIBS="$LIBS"
17383 if test "x$PTHREAD_CC" != "x"
17384 then :
17385 CC="$PTHREAD_CC"
17386 fi
17387 if test "x$PTHREAD_CXX" != "x"
17388 then :
17389 CXX="$PTHREAD_CXX"
17390 fi
17391 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17392 LIBS="$PTHREAD_LIBS $LIBS"
17393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
17394 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396 /* end confdefs.h. */
17397
17398 /* Override any GCC internal prototype to avoid an error.
17399 Use char because int might match the return type of a GCC
17400 builtin and then its argument prototype would still apply.
17401 The 'extern "C"' is for builds by C++ compilers;
17402 although this is not generally supported in C code supporting it here
17403 has little cost and some practical benefit (sr 110532). */
17404 #ifdef __cplusplus
17405 extern "C"
17406 #endif
17407 char pthread_join (void);
17408 int
17409 main (void)
17410 {
17411 return pthread_join ();
17412 ;
17413 return 0;
17414 }
17415 _ACEOF
17416 if ac_fn_c_try_link "$LINENO"
17417 then :
17418 ax_pthread_ok=yes
17419 fi
17420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17421 conftest$ac_exeext conftest.$ac_ext
17422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17423 printf "%s\n" "$ax_pthread_ok" >&6; }
17424 if test "x$ax_pthread_ok" = "xno"; then
17425 PTHREAD_LIBS=""
17426 PTHREAD_CFLAGS=""
17427 fi
17428 CC="$ax_pthread_save_CC"
17429 CFLAGS="$ax_pthread_save_CFLAGS"
17430 LIBS="$ax_pthread_save_LIBS"
17431 fi
17432
17433 # We must check for the threads library under a number of different
17434 # names; the ordering is very important because some systems
17435 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17436 # libraries is broken (non-POSIX).
17437
17438 # Create a list of thread flags to try. Items with a "," contain both
17439 # C compiler flags (before ",") and linker flags (after ","). Other items
17440 # starting with a "-" are C compiler flags, and remaining items are
17441 # library names, except for "none" which indicates that we try without
17442 # any flags at all, and "pthread-config" which is a program returning
17443 # the flags for the Pth emulation library.
17444
17445 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17446
17447 # The ordering *is* (sometimes) important. Some notes on the
17448 # individual items follow:
17449
17450 # pthreads: AIX (must check this before -lpthread)
17451 # none: in case threads are in libc; should be tried before -Kthread and
17452 # other compiler flags to prevent continual compiler warnings
17453 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17454 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
17455 # (Note: HP C rejects this with "bad form for `-t' option")
17456 # -pthreads: Solaris/gcc (Note: HP C also rejects)
17457 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17458 # doesn't hurt to check since this sometimes defines pthreads and
17459 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
17460 # is present but should not be used directly; and before -mthreads,
17461 # because the compiler interprets this as "-mt" + "-hreads")
17462 # -mthreads: Mingw32/gcc, Lynx/gcc
17463 # pthread: Linux, etcetera
17464 # --thread-safe: KAI C++
17465 # pthread-config: use pthread-config program (for GNU Pth library)
17466
17467 case $host_os in
17468
17469 freebsd*)
17470
17471 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17472 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17473
17474 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
17475 ;;
17476
17477 hpux*)
17478
17479 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
17480 # multi-threading and also sets -lpthread."
17481
17482 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
17483 ;;
17484
17485 openedition*)
17486
17487 # IBM z/OS requires a feature-test macro to be defined in order to
17488 # enable POSIX threads at all, so give the user a hint if this is
17489 # not set. (We don't define these ourselves, as they can affect
17490 # other portions of the system API in unpredictable ways.)
17491
17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493 /* end confdefs.h. */
17494
17495 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
17496 AX_PTHREAD_ZOS_MISSING
17497 # endif
17498
17499 _ACEOF
17500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17501 $EGREP_TRADITIONAL "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
17502 then :
17503 { 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
17504 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
17505 fi
17506 rm -rf conftest*
17507
17508 ;;
17509
17510 solaris*)
17511
17512 # On Solaris (at least, for some versions), libc contains stubbed
17513 # (non-functional) versions of the pthreads routines, so link-based
17514 # tests will erroneously succeed. (N.B.: The stubs are missing
17515 # pthread_cleanup_push, or rather a function called by this macro,
17516 # so we could check for that, but who knows whether they'll stub
17517 # that too in a future libc.) So we'll check first for the
17518 # standard Solaris way of linking pthreads (-mt -lpthread).
17519
17520 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
17521 ;;
17522 esac
17523
17524 # Are we compiling with Clang?
17525
17526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
17527 printf %s "checking whether $CC is Clang... " >&6; }
17528 if test ${ax_cv_PTHREAD_CLANG+y}
17529 then :
17530 printf %s "(cached) " >&6
17531 else case e in #(
17532 e) ax_cv_PTHREAD_CLANG=no
17533 # Note that Autoconf sets GCC=yes for Clang as well as GCC
17534 if test "x$GCC" = "xyes"; then
17535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17536 /* end confdefs.h. */
17537 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
17538 # if defined(__clang__) && defined(__llvm__)
17539 AX_PTHREAD_CC_IS_CLANG
17540 # endif
17541
17542 _ACEOF
17543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17544 $EGREP_TRADITIONAL "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
17545 then :
17546 ax_cv_PTHREAD_CLANG=yes
17547 fi
17548 rm -rf conftest*
17549
17550 fi
17551 ;;
17552 esac
17553 fi
17554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
17555 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
17556 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
17557
17558
17559 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
17560
17561 # Note that for GCC and Clang -pthread generally implies -lpthread,
17562 # except when -nostdlib is passed.
17563 # This is problematic using libtool to build C++ shared libraries with pthread:
17564 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
17565 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
17566 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
17567 # To solve this, first try -pthread together with -lpthread for GCC
17568
17569 if test "x$GCC" = "xyes"
17570 then :
17571 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
17572 fi
17573
17574 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
17575
17576 if test "x$ax_pthread_clang" = "xyes"
17577 then :
17578 ax_pthread_flags="-pthread,-lpthread -pthread"
17579 fi
17580
17581
17582 # The presence of a feature test macro requesting re-entrant function
17583 # definitions is, on some systems, a strong hint that pthreads support is
17584 # correctly enabled
17585
17586 case $host_os in
17587 darwin* | hpux* | linux* | osf* | solaris*)
17588 ax_pthread_check_macro="_REENTRANT"
17589 ;;
17590
17591 aix*)
17592 ax_pthread_check_macro="_THREAD_SAFE"
17593 ;;
17594
17595 *)
17596 ax_pthread_check_macro="--"
17597 ;;
17598 esac
17599 if test "x$ax_pthread_check_macro" = "x--"
17600 then :
17601 ax_pthread_check_cond=0
17602 else case e in #(
17603 e) ax_pthread_check_cond="!defined($ax_pthread_check_macro)" ;;
17604 esac
17605 fi
17606
17607
17608 if test "x$ax_pthread_ok" = "xno"; then
17609 for ax_pthread_try_flag in $ax_pthread_flags; do
17610
17611 case $ax_pthread_try_flag in
17612 none)
17613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17614 printf %s "checking whether pthreads work without any flags... " >&6; }
17615 ;;
17616
17617 *,*)
17618 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
17619 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
17620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
17621 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
17622 ;;
17623
17624 -*)
17625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
17626 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
17627 PTHREAD_CFLAGS="$ax_pthread_try_flag"
17628 ;;
17629
17630 pthread-config)
17631 # Extract the first word of "pthread-config", so it can be a program name with args.
17632 set dummy pthread-config; ac_word=$2
17633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17634 printf %s "checking for $ac_word... " >&6; }
17635 if test ${ac_cv_prog_ax_pthread_config+y}
17636 then :
17637 printf %s "(cached) " >&6
17638 else case e in #(
17639 e) if test -n "$ax_pthread_config"; then
17640 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
17641 else
17642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17643 for as_dir in $PATH
17644 do
17645 IFS=$as_save_IFS
17646 case $as_dir in #(((
17647 '') as_dir=./ ;;
17648 */) ;;
17649 *) as_dir=$as_dir/ ;;
17650 esac
17651 for ac_exec_ext in '' $ac_executable_extensions; do
17652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17653 ac_cv_prog_ax_pthread_config="yes"
17654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17655 break 2
17656 fi
17657 done
17658 done
17659 IFS=$as_save_IFS
17660
17661 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
17662 fi ;;
17663 esac
17664 fi
17665 ax_pthread_config=$ac_cv_prog_ax_pthread_config
17666 if test -n "$ax_pthread_config"; then
17667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
17668 printf "%s\n" "$ax_pthread_config" >&6; }
17669 else
17670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17671 printf "%s\n" "no" >&6; }
17672 fi
17673
17674
17675 if test "x$ax_pthread_config" = "xno"
17676 then :
17677 continue
17678 fi
17679 PTHREAD_CFLAGS="`pthread-config --cflags`"
17680 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17681 ;;
17682
17683 *)
17684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
17685 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
17686 PTHREAD_LIBS="-l$ax_pthread_try_flag"
17687 ;;
17688 esac
17689
17690 ax_pthread_save_CFLAGS="$CFLAGS"
17691 ax_pthread_save_LIBS="$LIBS"
17692 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17693 LIBS="$PTHREAD_LIBS $LIBS"
17694
17695 # Check for various functions. We must include pthread.h,
17696 # since some functions may be macros. (On the Sequent, we
17697 # need a special flag -Kthread to make this header compile.)
17698 # We check for pthread_join because it is in -lpthread on IRIX
17699 # while pthread_create is in libc. We check for pthread_attr_init
17700 # due to DEC craziness with -lpthreads. We check for
17701 # pthread_cleanup_push because it is one of the few pthread
17702 # functions on Solaris that doesn't have a non-functional libc stub.
17703 # We try pthread_create on general principles.
17704
17705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17706 /* end confdefs.h. */
17707 #include <pthread.h>
17708 # if $ax_pthread_check_cond
17709 # error "$ax_pthread_check_macro must be defined"
17710 # endif
17711 static void *some_global = NULL;
17712 static void routine(void *a)
17713 {
17714 /* To avoid any unused-parameter or
17715 unused-but-set-parameter warning. */
17716 some_global = a;
17717 }
17718 static void *start_routine(void *a) { return a; }
17719 int
17720 main (void)
17721 {
17722 pthread_t th; pthread_attr_t attr;
17723 pthread_create(&th, 0, start_routine, 0);
17724 pthread_join(th, 0);
17725 pthread_attr_init(&attr);
17726 pthread_cleanup_push(routine, 0);
17727 pthread_cleanup_pop(0) /* ; */
17728 ;
17729 return 0;
17730 }
17731 _ACEOF
17732 if ac_fn_c_try_link "$LINENO"
17733 then :
17734 ax_pthread_ok=yes
17735 fi
17736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17737 conftest$ac_exeext conftest.$ac_ext
17738
17739 CFLAGS="$ax_pthread_save_CFLAGS"
17740 LIBS="$ax_pthread_save_LIBS"
17741
17742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17743 printf "%s\n" "$ax_pthread_ok" >&6; }
17744 if test "x$ax_pthread_ok" = "xyes"
17745 then :
17746 break
17747 fi
17748
17749 PTHREAD_LIBS=""
17750 PTHREAD_CFLAGS=""
17751 done
17752 fi
17753
17754
17755 # Clang needs special handling, because older versions handle the -pthread
17756 # option in a rather... idiosyncratic way
17757
17758 if test "x$ax_pthread_clang" = "xyes"; then
17759
17760 # Clang takes -pthread; it has never supported any other flag
17761
17762 # (Note 1: This will need to be revisited if a system that Clang
17763 # supports has POSIX threads in a separate library. This tends not
17764 # to be the way of modern systems, but it's conceivable.)
17765
17766 # (Note 2: On some systems, notably Darwin, -pthread is not needed
17767 # to get POSIX threads support; the API is always present and
17768 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
17769 # -pthread does define _REENTRANT, and while the Darwin headers
17770 # ignore this macro, third-party headers might not.)
17771
17772 # However, older versions of Clang make a point of warning the user
17773 # that, in an invocation where only linking and no compilation is
17774 # taking place, the -pthread option has no effect ("argument unused
17775 # during compilation"). They expect -pthread to be passed in only
17776 # when source code is being compiled.
17777 #
17778 # Problem is, this is at odds with the way Automake and most other
17779 # C build frameworks function, which is that the same flags used in
17780 # compilation (CFLAGS) are also used in linking. Many systems
17781 # supported by AX_PTHREAD require exactly this for POSIX threads
17782 # support, and in fact it is often not straightforward to specify a
17783 # flag that is used only in the compilation phase and not in
17784 # linking. Such a scenario is extremely rare in practice.
17785 #
17786 # Even though use of the -pthread flag in linking would only print
17787 # a warning, this can be a nuisance for well-run software projects
17788 # that build with -Werror. So if the active version of Clang has
17789 # this misfeature, we search for an option to squash it.
17790
17791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
17792 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
17793 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
17794 then :
17795 printf %s "(cached) " >&6
17796 else case e in #(
17797 e) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
17798 # Create an alternate version of $ac_link that compiles and
17799 # links in two steps (.c -> .o, .o -> exe) instead of one
17800 # (.c -> exe), because the warning occurs only in the second
17801 # step
17802 ax_pthread_save_ac_link="$ac_link"
17803 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
17804 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
17805 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
17806 ax_pthread_save_CFLAGS="$CFLAGS"
17807 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
17808 if test "x$ax_pthread_try" = "xunknown"
17809 then :
17810 break
17811 fi
17812 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
17813 ac_link="$ax_pthread_save_ac_link"
17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815 /* end confdefs.h. */
17816 int main(void){return 0;}
17817 _ACEOF
17818 if ac_fn_c_try_link "$LINENO"
17819 then :
17820 ac_link="$ax_pthread_2step_ac_link"
17821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822 /* end confdefs.h. */
17823 int main(void){return 0;}
17824 _ACEOF
17825 if ac_fn_c_try_link "$LINENO"
17826 then :
17827 break
17828 fi
17829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17830 conftest$ac_exeext conftest.$ac_ext
17831
17832 fi
17833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17834 conftest$ac_exeext conftest.$ac_ext
17835 done
17836 ac_link="$ax_pthread_save_ac_link"
17837 CFLAGS="$ax_pthread_save_CFLAGS"
17838 if test "x$ax_pthread_try" = "x"
17839 then :
17840 ax_pthread_try=no
17841 fi
17842 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
17843 ;;
17844 esac
17845 fi
17846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
17847 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
17848
17849 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
17850 no | unknown) ;;
17851 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
17852 esac
17853
17854 fi # $ax_pthread_clang = yes
17855
17856
17857
17858 # Various other checks:
17859 if test "x$ax_pthread_ok" = "xyes"; then
17860 ax_pthread_save_CFLAGS="$CFLAGS"
17861 ax_pthread_save_LIBS="$LIBS"
17862 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17863 LIBS="$PTHREAD_LIBS $LIBS"
17864
17865 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17867 printf %s "checking for joinable pthread attribute... " >&6; }
17868 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
17869 then :
17870 printf %s "(cached) " >&6
17871 else case e in #(
17872 e) ax_cv_PTHREAD_JOINABLE_ATTR=unknown
17873 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17875 /* end confdefs.h. */
17876 #include <pthread.h>
17877 int
17878 main (void)
17879 {
17880 int attr = $ax_pthread_attr; return attr /* ; */
17881 ;
17882 return 0;
17883 }
17884 _ACEOF
17885 if ac_fn_c_try_link "$LINENO"
17886 then :
17887 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
17888 fi
17889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17890 conftest$ac_exeext conftest.$ac_ext
17891 done
17892 ;;
17893 esac
17894 fi
17895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
17896 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
17897 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
17898 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
17899 test "x$ax_pthread_joinable_attr_defined" != "xyes"
17900 then :
17901
17902 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
17903
17904 ax_pthread_joinable_attr_defined=yes
17905
17906 fi
17907
17908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
17909 printf %s "checking whether more special flags are required for pthreads... " >&6; }
17910 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
17911 then :
17912 printf %s "(cached) " >&6
17913 else case e in #(
17914 e) ax_cv_PTHREAD_SPECIAL_FLAGS=no
17915 case $host_os in
17916 solaris*)
17917 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
17918 ;;
17919 esac
17920 ;;
17921 esac
17922 fi
17923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
17924 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
17925 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
17926 test "x$ax_pthread_special_flags_added" != "xyes"
17927 then :
17928 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
17929 ax_pthread_special_flags_added=yes
17930 fi
17931
17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
17933 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
17934 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
17935 then :
17936 printf %s "(cached) " >&6
17937 else case e in #(
17938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h. */
17940 #include <pthread.h>
17941 int
17942 main (void)
17943 {
17944 int i = PTHREAD_PRIO_INHERIT;
17945 return i;
17946 ;
17947 return 0;
17948 }
17949 _ACEOF
17950 if ac_fn_c_try_link "$LINENO"
17951 then :
17952 ax_cv_PTHREAD_PRIO_INHERIT=yes
17953 else case e in #(
17954 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;;
17955 esac
17956 fi
17957 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17958 conftest$ac_exeext conftest.$ac_ext
17959 ;;
17960 esac
17961 fi
17962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
17963 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
17964 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
17965 test "x$ax_pthread_prio_inherit_defined" != "xyes"
17966 then :
17967
17968 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
17969
17970 ax_pthread_prio_inherit_defined=yes
17971
17972 fi
17973
17974 CFLAGS="$ax_pthread_save_CFLAGS"
17975 LIBS="$ax_pthread_save_LIBS"
17976
17977 # More AIX lossage: compile with *_r variant
17978 if test "x$GCC" != "xyes"; then
17979 case $host_os in
17980 aix*)
17981 case "x/$CC" in #(
17982 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
17983 #handle absolute path differently from PATH based program lookup
17984 case "x$CC" in #(
17985 x/*) :
17986
17987 if as_fn_executable_p ${CC}_r
17988 then :
17989 PTHREAD_CC="${CC}_r"
17990 fi
17991 if test "x${CXX}" != "x"
17992 then :
17993 if as_fn_executable_p ${CXX}_r
17994 then :
17995 PTHREAD_CXX="${CXX}_r"
17996 fi
17997 fi
17998 ;; #(
17999 *) :
18000
18001 for ac_prog in ${CC}_r
18002 do
18003 # Extract the first word of "$ac_prog", so it can be a program name with args.
18004 set dummy $ac_prog; ac_word=$2
18005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18006 printf %s "checking for $ac_word... " >&6; }
18007 if test ${ac_cv_prog_PTHREAD_CC+y}
18008 then :
18009 printf %s "(cached) " >&6
18010 else case e in #(
18011 e) if test -n "$PTHREAD_CC"; then
18012 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18013 else
18014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18015 for as_dir in $PATH
18016 do
18017 IFS=$as_save_IFS
18018 case $as_dir in #(((
18019 '') as_dir=./ ;;
18020 */) ;;
18021 *) as_dir=$as_dir/ ;;
18022 esac
18023 for ac_exec_ext in '' $ac_executable_extensions; do
18024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18025 ac_cv_prog_PTHREAD_CC="$ac_prog"
18026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18027 break 2
18028 fi
18029 done
18030 done
18031 IFS=$as_save_IFS
18032
18033 fi ;;
18034 esac
18035 fi
18036 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18037 if test -n "$PTHREAD_CC"; then
18038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18039 printf "%s\n" "$PTHREAD_CC" >&6; }
18040 else
18041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18042 printf "%s\n" "no" >&6; }
18043 fi
18044
18045
18046 test -n "$PTHREAD_CC" && break
18047 done
18048 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18049
18050 if test "x${CXX}" != "x"
18051 then :
18052 for ac_prog in ${CXX}_r
18053 do
18054 # Extract the first word of "$ac_prog", so it can be a program name with args.
18055 set dummy $ac_prog; ac_word=$2
18056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18057 printf %s "checking for $ac_word... " >&6; }
18058 if test ${ac_cv_prog_PTHREAD_CXX+y}
18059 then :
18060 printf %s "(cached) " >&6
18061 else case e in #(
18062 e) if test -n "$PTHREAD_CXX"; then
18063 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
18064 else
18065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18066 for as_dir in $PATH
18067 do
18068 IFS=$as_save_IFS
18069 case $as_dir in #(((
18070 '') as_dir=./ ;;
18071 */) ;;
18072 *) as_dir=$as_dir/ ;;
18073 esac
18074 for ac_exec_ext in '' $ac_executable_extensions; do
18075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18076 ac_cv_prog_PTHREAD_CXX="$ac_prog"
18077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18078 break 2
18079 fi
18080 done
18081 done
18082 IFS=$as_save_IFS
18083
18084 fi ;;
18085 esac
18086 fi
18087 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
18088 if test -n "$PTHREAD_CXX"; then
18089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
18090 printf "%s\n" "$PTHREAD_CXX" >&6; }
18091 else
18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18093 printf "%s\n" "no" >&6; }
18094 fi
18095
18096
18097 test -n "$PTHREAD_CXX" && break
18098 done
18099 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
18100
18101 fi
18102
18103 ;;
18104 esac
18105 ;; #(
18106 *) :
18107 ;;
18108 esac
18109 ;;
18110 esac
18111 fi
18112 fi
18113
18114 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18115 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
18116
18117
18118
18119
18120
18121
18122 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18123 if test "x$ax_pthread_ok" = "xyes"; then
18124
18125 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
18126
18127 :
18128 else
18129 ax_pthread_ok=no
18130 as_fn_error $? "POSIX threads support is required" "$LINENO" 5
18131 fi
18132 ac_ext=c
18133 ac_cpp='$CPP $CPPFLAGS'
18134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18137
18138
18139 saved_LIBS="$LIBS"
18140 LIBS=
18141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
18142 printf %s "checking for library containing ceil... " >&6; }
18143 if test ${ac_cv_search_ceil+y}
18144 then :
18145 printf %s "(cached) " >&6
18146 else case e in #(
18147 e) ac_func_search_save_LIBS=$LIBS
18148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149 /* end confdefs.h. */
18150
18151 /* Override any GCC internal prototype to avoid an error.
18152 Use char because int might match the return type of a GCC
18153 builtin and then its argument prototype would still apply.
18154 The 'extern "C"' is for builds by C++ compilers;
18155 although this is not generally supported in C code supporting it here
18156 has little cost and some practical benefit (sr 110532). */
18157 #ifdef __cplusplus
18158 extern "C"
18159 #endif
18160 char ceil (void);
18161 int
18162 main (void)
18163 {
18164 return ceil ();
18165 ;
18166 return 0;
18167 }
18168 _ACEOF
18169 for ac_lib in '' m
18170 do
18171 if test -z "$ac_lib"; then
18172 ac_res="none required"
18173 else
18174 ac_res=-l$ac_lib
18175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18176 fi
18177 if ac_fn_c_try_link "$LINENO"
18178 then :
18179 ac_cv_search_ceil=$ac_res
18180 fi
18181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18182 conftest$ac_exeext
18183 if test ${ac_cv_search_ceil+y}
18184 then :
18185 break
18186 fi
18187 done
18188 if test ${ac_cv_search_ceil+y}
18189 then :
18190
18191 else case e in #(
18192 e) ac_cv_search_ceil=no ;;
18193 esac
18194 fi
18195 rm conftest.$ac_ext
18196 LIBS=$ac_func_search_save_LIBS ;;
18197 esac
18198 fi
18199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
18200 printf "%s\n" "$ac_cv_search_ceil" >&6; }
18201 ac_res=$ac_cv_search_ceil
18202 if test "$ac_res" != no
18203 then :
18204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18205
18206 else case e in #(
18207 e) as_fn_error $? "ceil not found" "$LINENO" 5 ;;
18208 esac
18209 fi
18210
18211 m_LIBS=$LIBS
18212
18213 LIBS=
18214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18215 printf %s "checking for library containing clock_gettime... " >&6; }
18216 if test ${ac_cv_search_clock_gettime+y}
18217 then :
18218 printf %s "(cached) " >&6
18219 else case e in #(
18220 e) ac_func_search_save_LIBS=$LIBS
18221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222 /* end confdefs.h. */
18223
18224 /* Override any GCC internal prototype to avoid an error.
18225 Use char because int might match the return type of a GCC
18226 builtin and then its argument prototype would still apply.
18227 The 'extern "C"' is for builds by C++ compilers;
18228 although this is not generally supported in C code supporting it here
18229 has little cost and some practical benefit (sr 110532). */
18230 #ifdef __cplusplus
18231 extern "C"
18232 #endif
18233 char clock_gettime (void);
18234 int
18235 main (void)
18236 {
18237 return clock_gettime ();
18238 ;
18239 return 0;
18240 }
18241 _ACEOF
18242 for ac_lib in '' rt
18243 do
18244 if test -z "$ac_lib"; then
18245 ac_res="none required"
18246 else
18247 ac_res=-l$ac_lib
18248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18249 fi
18250 if ac_fn_c_try_link "$LINENO"
18251 then :
18252 ac_cv_search_clock_gettime=$ac_res
18253 fi
18254 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18255 conftest$ac_exeext
18256 if test ${ac_cv_search_clock_gettime+y}
18257 then :
18258 break
18259 fi
18260 done
18261 if test ${ac_cv_search_clock_gettime+y}
18262 then :
18263
18264 else case e in #(
18265 e) ac_cv_search_clock_gettime=no ;;
18266 esac
18267 fi
18268 rm conftest.$ac_ext
18269 LIBS=$ac_func_search_save_LIBS ;;
18270 esac
18271 fi
18272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18273 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
18274 ac_res=$ac_cv_search_clock_gettime
18275 if test "$ac_res" != no
18276 then :
18277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18278
18279 else case e in #(
18280 e) as_fn_error $? "clock_gettime not found" "$LINENO" 5 ;;
18281 esac
18282 fi
18283
18284 rt_LIBS=$LIBS
18285
18286 LIBS=
18287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18288 printf %s "checking for library containing dlopen... " >&6; }
18289 if test ${ac_cv_search_dlopen+y}
18290 then :
18291 printf %s "(cached) " >&6
18292 else case e in #(
18293 e) ac_func_search_save_LIBS=$LIBS
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296
18297 /* Override any GCC internal prototype to avoid an error.
18298 Use char because int might match the return type of a GCC
18299 builtin and then its argument prototype would still apply.
18300 The 'extern "C"' is for builds by C++ compilers;
18301 although this is not generally supported in C code supporting it here
18302 has little cost and some practical benefit (sr 110532). */
18303 #ifdef __cplusplus
18304 extern "C"
18305 #endif
18306 char dlopen (void);
18307 int
18308 main (void)
18309 {
18310 return dlopen ();
18311 ;
18312 return 0;
18313 }
18314 _ACEOF
18315 for ac_lib in '' dl dld
18316 do
18317 if test -z "$ac_lib"; then
18318 ac_res="none required"
18319 else
18320 ac_res=-l$ac_lib
18321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18322 fi
18323 if ac_fn_c_try_link "$LINENO"
18324 then :
18325 ac_cv_search_dlopen=$ac_res
18326 fi
18327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18328 conftest$ac_exeext
18329 if test ${ac_cv_search_dlopen+y}
18330 then :
18331 break
18332 fi
18333 done
18334 if test ${ac_cv_search_dlopen+y}
18335 then :
18336
18337 else case e in #(
18338 e) ac_cv_search_dlopen=no ;;
18339 esac
18340 fi
18341 rm conftest.$ac_ext
18342 LIBS=$ac_func_search_save_LIBS ;;
18343 esac
18344 fi
18345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18346 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
18347 ac_res=$ac_cv_search_dlopen
18348 if test "$ac_res" != no
18349 then :
18350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18351
18352 else case e in #(
18353 e) as_fn_error $? "dlopen not found" "$LINENO" 5 ;;
18354 esac
18355 fi
18356
18357 dl_LIBS=$LIBS
18358
18359 LIBS="$saved_LIBS"
18360
18361 # Check RTLD_DI_ORIGIN (not decalred by musl. glibc has it as an enum so cannot use ifdef)
18362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
18363 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
18364 if test ${ac_cv_c_undeclared_builtin_options+y}
18365 then :
18366 printf %s "(cached) " >&6
18367 else case e in #(
18368 e) ac_save_CFLAGS=$CFLAGS
18369 ac_cv_c_undeclared_builtin_options='cannot detect'
18370 for ac_arg in '' -fno-builtin; do
18371 CFLAGS="$ac_save_CFLAGS $ac_arg"
18372 # This test program should *not* compile successfully.
18373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18374 /* end confdefs.h. */
18375
18376 int
18377 main (void)
18378 {
18379 (void) strchr;
18380 ;
18381 return 0;
18382 }
18383 _ACEOF
18384 if ac_fn_c_try_compile "$LINENO"
18385 then :
18386
18387 else case e in #(
18388 e) # This test program should compile successfully.
18389 # No library function is consistently available on
18390 # freestanding implementations, so test against a dummy
18391 # declaration. Include always-available headers on the
18392 # off chance that they somehow elicit warnings.
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18395 #include <float.h>
18396 #include <limits.h>
18397 #include <stdarg.h>
18398 #include <stddef.h>
18399 extern void ac_decl (int, char *);
18400
18401 int
18402 main (void)
18403 {
18404 (void) ac_decl (0, (char *) 0);
18405 (void) ac_decl;
18406
18407 ;
18408 return 0;
18409 }
18410 _ACEOF
18411 if ac_fn_c_try_compile "$LINENO"
18412 then :
18413 if test x"$ac_arg" = x
18414 then :
18415 ac_cv_c_undeclared_builtin_options='none needed'
18416 else case e in #(
18417 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
18418 esac
18419 fi
18420 break
18421 fi
18422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18423 esac
18424 fi
18425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18426 done
18427 CFLAGS=$ac_save_CFLAGS
18428 ;;
18429 esac
18430 fi
18431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
18432 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
18433 case $ac_cv_c_undeclared_builtin_options in #(
18434 'cannot detect') :
18435 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18436 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18437 as_fn_error $? "cannot make $CC report undeclared builtins
18438 See 'config.log' for more details" "$LINENO" 5; } ;; #(
18439 'none needed') :
18440 ac_c_undeclared_builtin_options='' ;; #(
18441 *) :
18442 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
18443 esac
18444
18445 ac_fn_check_decl "$LINENO" "RTLD_DI_ORIGIN" "ac_cv_have_decl_RTLD_DI_ORIGIN" "#include <dlfcn.h>
18446 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18447 if test "x$ac_cv_have_decl_RTLD_DI_ORIGIN" = xyes
18448 then :
18449
18450 printf "%s\n" "#define HAVE_RTLD_DI_ORIGIN 1" >>confdefs.h
18451
18452 fi
18453
18454 ac_fn_check_decl "$LINENO" "MSG_NOSIGNAL" "ac_cv_have_decl_MSG_NOSIGNAL" "#include <sys/socket.h>
18455 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18456 if test "x$ac_cv_have_decl_MSG_NOSIGNAL" = xyes
18457 then :
18458 ac_have_decl=1
18459 else case e in #(
18460 e) ac_have_decl=0 ;;
18461 esac
18462 fi
18463 printf "%s\n" "#define HAVE_DECL_MSG_NOSIGNAL $ac_have_decl" >>confdefs.h
18464 if test $ac_have_decl = 1
18465 then :
18466
18467 else case e in #(
18468 e) CFLAGS="$CFLAGS -DMSG_NOSIGNAL=0" ;;
18469 esac
18470 fi
18471
18472
18473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18474 printf %s "checking for socket in -lsocket... " >&6; }
18475 if test ${ac_cv_lib_socket_socket+y}
18476 then :
18477 printf %s "(cached) " >&6
18478 else case e in #(
18479 e) ac_check_lib_save_LIBS=$LIBS
18480 LIBS="-lsocket $LIBS"
18481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482 /* end confdefs.h. */
18483
18484 /* Override any GCC internal prototype to avoid an error.
18485 Use char because int might match the return type of a GCC
18486 builtin and then its argument prototype would still apply.
18487 The 'extern "C"' is for builds by C++ compilers;
18488 although this is not generally supported in C code supporting it here
18489 has little cost and some practical benefit (sr 110532). */
18490 #ifdef __cplusplus
18491 extern "C"
18492 #endif
18493 char socket (void);
18494 int
18495 main (void)
18496 {
18497 return socket ();
18498 ;
18499 return 0;
18500 }
18501 _ACEOF
18502 if ac_fn_c_try_link "$LINENO"
18503 then :
18504 ac_cv_lib_socket_socket=yes
18505 else case e in #(
18506 e) ac_cv_lib_socket_socket=no ;;
18507 esac
18508 fi
18509 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18510 conftest$ac_exeext conftest.$ac_ext
18511 LIBS=$ac_check_lib_save_LIBS ;;
18512 esac
18513 fi
18514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18515 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
18516 if test "x$ac_cv_lib_socket_socket" = xyes
18517 then :
18518 socket_LIBS=-lsocket
18519
18520 fi
18521
18522
18523 # OS detection
18524
18525 build_for_solaris=no
18526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for os in ${host_os}" >&5
18527 printf %s "checking for os in ${host_os}... " >&6; }
18528 case "$host_os" in
18529 *linux*)
18530
18531 printf "%s\n" "#define KNET_LINUX 1" >>confdefs.h
18532
18533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
18534 printf "%s\n" "Linux" >&6; }
18535 ;;
18536 *bsd*)
18537
18538 printf "%s\n" "#define KNET_BSD 1" >>confdefs.h
18539
18540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: BSD" >&5
18541 printf "%s\n" "BSD" >&6; }
18542 ;;
18543 solaris*)
18544
18545 printf "%s\n" "#define KNET_SOLARIS 1" >>confdefs.h
18546
18547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
18548 printf "%s\n" "Solaris" >&6; }
18549 build_for_solaris=yes
18550 ;;
18551 *)
18552 as_fn_error $? "Unsupported OS? hmmmm" "$LINENO" 5
18553 ;;
18554 esac
18555
18556 if test "x$build_for_solaris" = "xyes"; then
18557 BUILD_FOR_SOLARIS_TRUE=
18558 BUILD_FOR_SOLARIS_FALSE='#'
18559 else
18560 BUILD_FOR_SOLARIS_TRUE='#'
18561 BUILD_FOR_SOLARIS_FALSE=
18562 fi
18563
18564
18565 # Checks for header files.
18566 ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
18567 if test "x$ac_cv_header_sys_epoll_h" = xyes
18568 then :
18569 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
18570
18571 fi
18572
18573 ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
18574 if test "x$ac_cv_func_kevent" = xyes
18575 then :
18576 printf "%s\n" "#define HAVE_KEVENT 1" >>confdefs.h
18577
18578 fi
18579
18580 # if neither sys/epoll.h nor kevent are present, we should fail.
18581
18582 if test "x$ac_cv_header_sys_epoll_h" = xno && test "x$ac_cv_func_kevent" = xno; then
18583 as_fn_error $? "Both epoll and kevent unavailable on this OS" "$LINENO" 5
18584 fi
18585
18586 if test "x$ac_cv_header_sys_epoll_h" = xyes && test "x$ac_cv_func_kevent" = xyes; then
18587 as_fn_error $? "Both epoll and kevent available on this OS, please contact the maintainers to fix the code" "$LINENO" 5
18588 fi
18589
18590 if test "x$enable_libknet_sctp" = xyes; then
18591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SCTP support is deprecated and will be removed in kronosnet 2.0" >&5
18592 printf "%s\n" "$as_me: WARNING: SCTP support is deprecated and will be removed in kronosnet 2.0" >&2;}
18593 for ac_header in netinet/sctp.h
18594 do :
18595 ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "$ac_includes_default"
18596 if test "x$ac_cv_header_netinet_sctp_h" = xyes
18597 then :
18598 printf "%s\n" "#define HAVE_NETINET_SCTP_H 1" >>confdefs.h
18599
18600 else case e in #(
18601 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for netinet/sctp.h with netinet/in.h included" >&5
18602 printf %s "checking for netinet/sctp.h with netinet/in.h included... " >&6; }
18603 if test ${ac_cv_have_sctp+y}
18604 then :
18605 printf %s "(cached) " >&6
18606 else case e in #(
18607 e)
18608 ac_cv_have_sctp=no
18609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610 /* end confdefs.h. */
18611
18612 #include <netinet/in.h>
18613 #include <netinet/sctp.h>
18614
18615 int
18616 main (void)
18617 {
18618
18619 sctp_assoc_t my_sctp_assoc;
18620
18621 ;
18622 return 0;
18623 }
18624 _ACEOF
18625 if ac_fn_c_try_compile "$LINENO"
18626 then :
18627 ac_cv_have_sctp=yes
18628 else case e in #(
18629 e) as_fn_error $? "\"missing required SCTP headers\"" "$LINENO" 5 ;;
18630 esac
18631 fi
18632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18633 ;;
18634 esac
18635 fi
18636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sctp" >&5
18637 printf "%s\n" "$ac_cv_have_sctp" >&6; }
18638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sctp_bindx in -lsctp" >&5
18639 printf %s "checking for sctp_bindx in -lsctp... " >&6; }
18640 if test ${ac_cv_lib_sctp_sctp_bindx+y}
18641 then :
18642 printf %s "(cached) " >&6
18643 else case e in #(
18644 e) ac_check_lib_save_LIBS=$LIBS
18645 LIBS="-lsctp $LIBS"
18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18647 /* end confdefs.h. */
18648
18649 /* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply.
18652 The 'extern "C"' is for builds by C++ compilers;
18653 although this is not generally supported in C code supporting it here
18654 has little cost and some practical benefit (sr 110532). */
18655 #ifdef __cplusplus
18656 extern "C"
18657 #endif
18658 char sctp_bindx (void);
18659 int
18660 main (void)
18661 {
18662 return sctp_bindx ();
18663 ;
18664 return 0;
18665 }
18666 _ACEOF
18667 if ac_fn_c_try_link "$LINENO"
18668 then :
18669 ac_cv_lib_sctp_sctp_bindx=yes
18670 else case e in #(
18671 e) ac_cv_lib_sctp_sctp_bindx=no ;;
18672 esac
18673 fi
18674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18675 conftest$ac_exeext conftest.$ac_ext
18676 LIBS=$ac_check_lib_save_LIBS ;;
18677 esac
18678 fi
18679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sctp_sctp_bindx" >&5
18680 printf "%s\n" "$ac_cv_lib_sctp_sctp_bindx" >&6; }
18681 if test "x$ac_cv_lib_sctp_sctp_bindx" = xyes
18682 then :
18683 sctp_LIBS="-lsctp"
18684 fi
18685
18686 if test "x$ac_cv_have_sctp" = xyes; then
18687
18688 printf "%s\n" "#define HAVE_NETINET_SCTP_H 1" >>confdefs.h
18689
18690 fi
18691 ;;
18692 esac
18693 fi
18694
18695 done
18696 fi
18697
18698 # Checks for typedefs, structures, and compiler characteristics.
18699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18700 printf %s "checking for inline... " >&6; }
18701 if test ${ac_cv_c_inline+y}
18702 then :
18703 printf %s "(cached) " >&6
18704 else case e in #(
18705 e) ac_cv_c_inline=no
18706 for ac_kw in inline __inline__ __inline; do
18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18709 #ifndef __cplusplus
18710 typedef int foo_t;
18711 static $ac_kw foo_t static_foo (void) {return 0; }
18712 $ac_kw foo_t foo (void) {return 0; }
18713 #endif
18714
18715 _ACEOF
18716 if ac_fn_c_try_compile "$LINENO"
18717 then :
18718 ac_cv_c_inline=$ac_kw
18719 fi
18720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18721 test "$ac_cv_c_inline" != no && break
18722 done
18723 ;;
18724 esac
18725 fi
18726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18727 printf "%s\n" "$ac_cv_c_inline" >&6; }
18728
18729 case $ac_cv_c_inline in
18730 inline | yes) ;;
18731 *)
18732 case $ac_cv_c_inline in
18733 no) ac_val=;;
18734 *) ac_val=$ac_cv_c_inline;;
18735 esac
18736 cat >>confdefs.h <<_ACEOF
18737 #ifndef __cplusplus
18738 #define inline $ac_val
18739 #endif
18740 _ACEOF
18741 ;;
18742 esac
18743
18744
18745 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
18746 "
18747 if test "x$ac_cv_type_pid_t" = xyes
18748 then :
18749
18750 else case e in #(
18751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18752 /* end confdefs.h. */
18753
18754 #if defined _WIN64 && !defined __CYGWIN__
18755 LLP64
18756 #endif
18757
18758 int
18759 main (void)
18760 {
18761
18762 ;
18763 return 0;
18764 }
18765
18766 _ACEOF
18767 if ac_fn_c_try_compile "$LINENO"
18768 then :
18769 ac_pid_type='int'
18770 else case e in #(
18771 e) ac_pid_type='__int64' ;;
18772 esac
18773 fi
18774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18775
18776 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
18777
18778 ;;
18779 esac
18780 fi
18781
18782
18783 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18784 if test "x$ac_cv_type_size_t" = xyes
18785 then :
18786
18787 else case e in #(
18788 e)
18789 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
18790 ;;
18791 esac
18792 fi
18793
18794 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
18795 if test "x$ac_cv_type_ssize_t" = xyes
18796 then :
18797
18798 else case e in #(
18799 e)
18800 printf "%s\n" "#define ssize_t int" >>confdefs.h
18801 ;;
18802 esac
18803 fi
18804
18805 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
18806 case $ac_cv_c_uint8_t in #(
18807 no|yes) ;; #(
18808 *)
18809
18810 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
18811
18812
18813 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
18814 ;;
18815 esac
18816
18817 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
18818 case $ac_cv_c_uint16_t in #(
18819 no|yes) ;; #(
18820 *)
18821
18822
18823 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
18824 ;;
18825 esac
18826
18827 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
18828 case $ac_cv_c_uint32_t in #(
18829 no|yes) ;; #(
18830 *)
18831
18832 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
18833
18834
18835 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
18836 ;;
18837 esac
18838
18839 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
18840 case $ac_cv_c_uint64_t in #(
18841 no|yes) ;; #(
18842 *)
18843
18844 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
18845
18846
18847 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
18848 ;;
18849 esac
18850
18851 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
18852 case $ac_cv_c_int8_t in #(
18853 no|yes) ;; #(
18854 *)
18855
18856 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
18857 ;;
18858 esac
18859
18860 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
18861 case $ac_cv_c_int16_t in #(
18862 no|yes) ;; #(
18863 *)
18864
18865 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
18866 ;;
18867 esac
18868
18869 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
18870 case $ac_cv_c_int32_t in #(
18871 no|yes) ;; #(
18872 *)
18873
18874 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
18875 ;;
18876 esac
18877
18878 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
18879 case $ac_cv_c_int64_t in #(
18880 no|yes) ;; #(
18881 *)
18882
18883 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
18884 ;;
18885 esac
18886
18887
18888
18889 pkg_failed=no
18890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libqb" >&5
18891 printf %s "checking for libqb... " >&6; }
18892
18893 if test -n "$libqb_CFLAGS"; then
18894 pkg_cv_libqb_CFLAGS="$libqb_CFLAGS"
18895 elif test -n "$PKG_CONFIG"; then
18896 if test -n "$PKG_CONFIG" && \
18897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqb\""; } >&5
18898 ($PKG_CONFIG --exists --print-errors "libqb") 2>&5
18899 ac_status=$?
18900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18901 test $ac_status = 0; }; then
18902 pkg_cv_libqb_CFLAGS=`$PKG_CONFIG --cflags "libqb" 2>/dev/null`
18903 test "x$?" != "x0" && pkg_failed=yes
18904 else
18905 pkg_failed=yes
18906 fi
18907 else
18908 pkg_failed=untried
18909 fi
18910 if test -n "$libqb_LIBS"; then
18911 pkg_cv_libqb_LIBS="$libqb_LIBS"
18912 elif test -n "$PKG_CONFIG"; then
18913 if test -n "$PKG_CONFIG" && \
18914 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqb\""; } >&5
18915 ($PKG_CONFIG --exists --print-errors "libqb") 2>&5
18916 ac_status=$?
18917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18918 test $ac_status = 0; }; then
18919 pkg_cv_libqb_LIBS=`$PKG_CONFIG --libs "libqb" 2>/dev/null`
18920 test "x$?" != "x0" && pkg_failed=yes
18921 else
18922 pkg_failed=yes
18923 fi
18924 else
18925 pkg_failed=untried
18926 fi
18927
18928
18929
18930 if test $pkg_failed = yes; then
18931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18932 printf "%s\n" "no" >&6; }
18933
18934 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18935 _pkg_short_errors_supported=yes
18936 else
18937 _pkg_short_errors_supported=no
18938 fi
18939 if test $_pkg_short_errors_supported = yes; then
18940 libqb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libqb" 2>&1`
18941 else
18942 libqb_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libqb" 2>&1`
18943 fi
18944 # Put the nasty error message in config.log where it belongs
18945 echo "$libqb_PKG_ERRORS" >&5
18946
18947 as_fn_error $? "Package requirements (libqb) were not met:
18948
18949 $libqb_PKG_ERRORS
18950
18951 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18952 installed software in a non-standard prefix.
18953
18954 Alternatively, you may set the environment variables libqb_CFLAGS
18955 and libqb_LIBS to avoid the need to call pkg-config.
18956 See the pkg-config man page for more details." "$LINENO" 5
18957 elif test $pkg_failed = untried; then
18958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18959 printf "%s\n" "no" >&6; }
18960 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18961 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18962 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18963 is in your PATH or set the PKG_CONFIG environment variable to the full
18964 path to pkg-config.
18965
18966 Alternatively, you may set the environment variables libqb_CFLAGS
18967 and libqb_LIBS to avoid the need to call pkg-config.
18968 See the pkg-config man page for more details.
18969
18970 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18971 See 'config.log' for more details" "$LINENO" 5; }
18972 else
18973 libqb_CFLAGS=$pkg_cv_libqb_CFLAGS
18974 libqb_LIBS=$pkg_cv_libqb_LIBS
18975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18976 printf "%s\n" "yes" >&6; }
18977
18978 fi
18979
18980 if test "x$enable_man" = "xyes"; then
18981
18982 for ac_prog in doxygen
18983 do
18984 # Extract the first word of "$ac_prog", so it can be a program name with args.
18985 set dummy $ac_prog; ac_word=$2
18986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18987 printf %s "checking for $ac_word... " >&6; }
18988 if test ${ac_cv_prog_DOXYGEN+y}
18989 then :
18990 printf %s "(cached) " >&6
18991 else case e in #(
18992 e) if test -n "$DOXYGEN"; then
18993 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
18994 else
18995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18996 for as_dir in $PATH
18997 do
18998 IFS=$as_save_IFS
18999 case $as_dir in #(((
19000 '') as_dir=./ ;;
19001 */) ;;
19002 *) as_dir=$as_dir/ ;;
19003 esac
19004 for ac_exec_ext in '' $ac_executable_extensions; do
19005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19006 ac_cv_prog_DOXYGEN="$ac_prog"
19007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19008 break 2
19009 fi
19010 done
19011 done
19012 IFS=$as_save_IFS
19013
19014 fi ;;
19015 esac
19016 fi
19017 DOXYGEN=$ac_cv_prog_DOXYGEN
19018 if test -n "$DOXYGEN"; then
19019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19020 printf "%s\n" "$DOXYGEN" >&6; }
19021 else
19022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19023 printf "%s\n" "no" >&6; }
19024 fi
19025
19026
19027 test -n "$DOXYGEN" && break
19028 done
19029 test -n "$DOXYGEN" || DOXYGEN="no"
19030
19031 if test "x$DOXYGEN" = xno; then
19032 as_fn_error $? "\"Doxygen command not found\"" "$LINENO" 5
19033 fi
19034
19035
19036 if test "x$cross_compiling" = "xno"; then
19037
19038 if test -n "$libqb_PREFIX"; then
19039 pkg_cv_libqb_PREFIX="$libqb_PREFIX"
19040 elif test -n "$PKG_CONFIG"; then
19041 if test -n "$PKG_CONFIG" && \
19042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqb\""; } >&5
19043 ($PKG_CONFIG --exists --print-errors "libqb") 2>&5
19044 ac_status=$?
19045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19046 test $ac_status = 0; }; then
19047 pkg_cv_libqb_PREFIX=`$PKG_CONFIG --variable="prefix" "libqb" 2>/dev/null`
19048 test "x$?" != "x0" && pkg_failed=yes
19049 else
19050 pkg_failed=yes
19051 fi
19052 else
19053 pkg_failed=untried
19054 fi
19055 libqb_PREFIX=$pkg_cv_libqb_PREFIX
19056
19057 if test "x$libqb_PREFIX" = x""
19058 then :
19059
19060 fi
19061 # Extract the first word of "doxygen2man", so it can be a program name with args.
19062 set dummy doxygen2man; ac_word=$2
19063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19064 printf %s "checking for $ac_word... " >&6; }
19065 if test ${ac_cv_path_DOXYGEN2MAN+y}
19066 then :
19067 printf %s "(cached) " >&6
19068 else case e in #(
19069 e) case $DOXYGEN2MAN in
19070 [\\/]* | ?:[\\/]*)
19071 ac_cv_path_DOXYGEN2MAN="$DOXYGEN2MAN" # Let the user override the test with a path.
19072 ;;
19073 *)
19074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19075 for as_dir in $libqb_PREFIX/bin$PATH_SEPARATOR$PATH
19076 do
19077 IFS=$as_save_IFS
19078 case $as_dir in #(((
19079 '') as_dir=./ ;;
19080 */) ;;
19081 *) as_dir=$as_dir/ ;;
19082 esac
19083 for ac_exec_ext in '' $ac_executable_extensions; do
19084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19085 ac_cv_path_DOXYGEN2MAN="$as_dir$ac_word$ac_exec_ext"
19086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19087 break 2
19088 fi
19089 done
19090 done
19091 IFS=$as_save_IFS
19092
19093 test -z "$ac_cv_path_DOXYGEN2MAN" && ac_cv_path_DOXYGEN2MAN="no"
19094 ;;
19095 esac ;;
19096 esac
19097 fi
19098 DOXYGEN2MAN=$ac_cv_path_DOXYGEN2MAN
19099 if test -n "$DOXYGEN2MAN"; then
19100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN2MAN" >&5
19101 printf "%s\n" "$DOXYGEN2MAN" >&6; }
19102 else
19103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19104 printf "%s\n" "no" >&6; }
19105 fi
19106
19107
19108 fi
19109 if test "x$DOXYGEN2MAN" = "xno"; then
19110 # required by doxyxml to build man pages dynamically
19111 # Don't let AC_PROC_CC (invoked by AX_PROG_CC_FOR_BUILD) replace
19112 # undefined CFLAGS_FOR_BUILD with -g -O2, overriding our special OPT_CFLAGS.
19113 : ${CFLAGS_FOR_BUILD=""}
19114
19115
19116
19117 save_cross_compiling=$cross_compiling
19118 save_ac_tool_prefix=$ac_tool_prefix
19119 cross_compiling=no
19120 ac_tool_prefix=
19121
19122 ac_ext=c
19123 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
19124 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
19125 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
19126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19127 if test -n "$ac_tool_prefix"; then
19128 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19129 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19131 printf %s "checking for $ac_word... " >&6; }
19132 if test ${ac_cv_prog_CC_FOR_BUILD+y}
19133 then :
19134 printf %s "(cached) " >&6
19135 else case e in #(
19136 e) if test -n "$CC_FOR_BUILD"; then
19137 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
19138 else
19139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19140 for as_dir in $PATH
19141 do
19142 IFS=$as_save_IFS
19143 case $as_dir in #(((
19144 '') as_dir=./ ;;
19145 */) ;;
19146 *) as_dir=$as_dir/ ;;
19147 esac
19148 for ac_exec_ext in '' $ac_executable_extensions; do
19149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19150 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
19151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19152 break 2
19153 fi
19154 done
19155 done
19156 IFS=$as_save_IFS
19157
19158 fi ;;
19159 esac
19160 fi
19161 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
19162 if test -n "$CC_FOR_BUILD"; then
19163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
19164 printf "%s\n" "$CC_FOR_BUILD" >&6; }
19165 else
19166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19167 printf "%s\n" "no" >&6; }
19168 fi
19169
19170
19171 fi
19172 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
19173 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
19174 # Extract the first word of "gcc", so it can be a program name with args.
19175 set dummy gcc; ac_word=$2
19176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19177 printf %s "checking for $ac_word... " >&6; }
19178 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
19179 then :
19180 printf %s "(cached) " >&6
19181 else case e in #(
19182 e) if test -n "$ac_ct_CC_FOR_BUILD"; then
19183 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
19184 else
19185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19186 for as_dir in $PATH
19187 do
19188 IFS=$as_save_IFS
19189 case $as_dir in #(((
19190 '') as_dir=./ ;;
19191 */) ;;
19192 *) as_dir=$as_dir/ ;;
19193 esac
19194 for ac_exec_ext in '' $ac_executable_extensions; do
19195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19196 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
19197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19198 break 2
19199 fi
19200 done
19201 done
19202 IFS=$as_save_IFS
19203
19204 fi ;;
19205 esac
19206 fi
19207 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
19208 if test -n "$ac_ct_CC_FOR_BUILD"; then
19209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
19210 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
19211 else
19212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19213 printf "%s\n" "no" >&6; }
19214 fi
19215
19216 if test "x$ac_ct_CC_FOR_BUILD" = x; then
19217 CC_FOR_BUILD=""
19218 else
19219 case $cross_compiling:$ac_tool_warned in
19220 yes:)
19221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
19222 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
19223 ac_tool_warned=yes ;;
19224 esac
19225 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
19226 fi
19227 else
19228 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
19229 fi
19230
19231 if test -z "$CC_FOR_BUILD"; then
19232 if test -n "$ac_tool_prefix"; then
19233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19234 set dummy ${ac_tool_prefix}cc; ac_word=$2
19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19236 printf %s "checking for $ac_word... " >&6; }
19237 if test ${ac_cv_prog_CC_FOR_BUILD+y}
19238 then :
19239 printf %s "(cached) " >&6
19240 else case e in #(
19241 e) if test -n "$CC_FOR_BUILD"; then
19242 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
19243 else
19244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19245 for as_dir in $PATH
19246 do
19247 IFS=$as_save_IFS
19248 case $as_dir in #(((
19249 '') as_dir=./ ;;
19250 */) ;;
19251 *) as_dir=$as_dir/ ;;
19252 esac
19253 for ac_exec_ext in '' $ac_executable_extensions; do
19254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19255 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
19256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19257 break 2
19258 fi
19259 done
19260 done
19261 IFS=$as_save_IFS
19262
19263 fi ;;
19264 esac
19265 fi
19266 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
19267 if test -n "$CC_FOR_BUILD"; then
19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
19269 printf "%s\n" "$CC_FOR_BUILD" >&6; }
19270 else
19271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19272 printf "%s\n" "no" >&6; }
19273 fi
19274
19275
19276 fi
19277 fi
19278 if test -z "$CC_FOR_BUILD"; then
19279 # Extract the first word of "cc", so it can be a program name with args.
19280 set dummy cc; ac_word=$2
19281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19282 printf %s "checking for $ac_word... " >&6; }
19283 if test ${ac_cv_prog_CC_FOR_BUILD+y}
19284 then :
19285 printf %s "(cached) " >&6
19286 else case e in #(
19287 e) if test -n "$CC_FOR_BUILD"; then
19288 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
19289 else
19290 ac_prog_rejected=no
19291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19292 for as_dir in $PATH
19293 do
19294 IFS=$as_save_IFS
19295 case $as_dir in #(((
19296 '') as_dir=./ ;;
19297 */) ;;
19298 *) as_dir=$as_dir/ ;;
19299 esac
19300 for ac_exec_ext in '' $ac_executable_extensions; do
19301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19302 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19303 ac_prog_rejected=yes
19304 continue
19305 fi
19306 ac_cv_prog_CC_FOR_BUILD="cc"
19307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19308 break 2
19309 fi
19310 done
19311 done
19312 IFS=$as_save_IFS
19313
19314 if test $ac_prog_rejected = yes; then
19315 # We found a bogon in the path, so make sure we never use it.
19316 set dummy $ac_cv_prog_CC_FOR_BUILD
19317 shift
19318 if test $# != 0; then
19319 # We chose a different compiler from the bogus one.
19320 # However, it has the same basename, so the bogon will be chosen
19321 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
19322 shift
19323 ac_cv_prog_CC_FOR_BUILD="$as_dir$ac_word${1+' '}$@"
19324 fi
19325 fi
19326 fi ;;
19327 esac
19328 fi
19329 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
19330 if test -n "$CC_FOR_BUILD"; then
19331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
19332 printf "%s\n" "$CC_FOR_BUILD" >&6; }
19333 else
19334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19335 printf "%s\n" "no" >&6; }
19336 fi
19337
19338
19339 fi
19340 if test -z "$CC_FOR_BUILD"; then
19341 if test -n "$ac_tool_prefix"; then
19342 for ac_prog in cl.exe
19343 do
19344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19347 printf %s "checking for $ac_word... " >&6; }
19348 if test ${ac_cv_prog_CC_FOR_BUILD+y}
19349 then :
19350 printf %s "(cached) " >&6
19351 else case e in #(
19352 e) if test -n "$CC_FOR_BUILD"; then
19353 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
19354 else
19355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19356 for as_dir in $PATH
19357 do
19358 IFS=$as_save_IFS
19359 case $as_dir in #(((
19360 '') as_dir=./ ;;
19361 */) ;;
19362 *) as_dir=$as_dir/ ;;
19363 esac
19364 for ac_exec_ext in '' $ac_executable_extensions; do
19365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19366 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
19367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19368 break 2
19369 fi
19370 done
19371 done
19372 IFS=$as_save_IFS
19373
19374 fi ;;
19375 esac
19376 fi
19377 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
19378 if test -n "$CC_FOR_BUILD"; then
19379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
19380 printf "%s\n" "$CC_FOR_BUILD" >&6; }
19381 else
19382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19383 printf "%s\n" "no" >&6; }
19384 fi
19385
19386
19387 test -n "$CC_FOR_BUILD" && break
19388 done
19389 fi
19390 if test -z "$CC_FOR_BUILD"; then
19391 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
19392 for ac_prog in cl.exe
19393 do
19394 # Extract the first word of "$ac_prog", so it can be a program name with args.
19395 set dummy $ac_prog; ac_word=$2
19396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19397 printf %s "checking for $ac_word... " >&6; }
19398 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
19399 then :
19400 printf %s "(cached) " >&6
19401 else case e in #(
19402 e) if test -n "$ac_ct_CC_FOR_BUILD"; then
19403 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
19404 else
19405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19406 for as_dir in $PATH
19407 do
19408 IFS=$as_save_IFS
19409 case $as_dir in #(((
19410 '') as_dir=./ ;;
19411 */) ;;
19412 *) as_dir=$as_dir/ ;;
19413 esac
19414 for ac_exec_ext in '' $ac_executable_extensions; do
19415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19416 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
19417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19418 break 2
19419 fi
19420 done
19421 done
19422 IFS=$as_save_IFS
19423
19424 fi ;;
19425 esac
19426 fi
19427 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
19428 if test -n "$ac_ct_CC_FOR_BUILD"; then
19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
19430 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
19431 else
19432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19433 printf "%s\n" "no" >&6; }
19434 fi
19435
19436
19437 test -n "$ac_ct_CC_FOR_BUILD" && break
19438 done
19439
19440 if test "x$ac_ct_CC_FOR_BUILD" = x; then
19441 CC_FOR_BUILD=""
19442 else
19443 case $cross_compiling:$ac_tool_warned in
19444 yes:)
19445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
19446 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
19447 ac_tool_warned=yes ;;
19448 esac
19449 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
19450 fi
19451 fi
19452
19453 fi
19454 if test -z "$CC_FOR_BUILD"; then
19455 if test -n "$ac_tool_prefix"; then
19456 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
19457 set dummy ${ac_tool_prefix}clang; ac_word=$2
19458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19459 printf %s "checking for $ac_word... " >&6; }
19460 if test ${ac_cv_prog_CC_FOR_BUILD+y}
19461 then :
19462 printf %s "(cached) " >&6
19463 else case e in #(
19464 e) if test -n "$CC_FOR_BUILD"; then
19465 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
19466 else
19467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19468 for as_dir in $PATH
19469 do
19470 IFS=$as_save_IFS
19471 case $as_dir in #(((
19472 '') as_dir=./ ;;
19473 */) ;;
19474 *) as_dir=$as_dir/ ;;
19475 esac
19476 for ac_exec_ext in '' $ac_executable_extensions; do
19477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19478 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}clang"
19479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19480 break 2
19481 fi
19482 done
19483 done
19484 IFS=$as_save_IFS
19485
19486 fi ;;
19487 esac
19488 fi
19489 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
19490 if test -n "$CC_FOR_BUILD"; then
19491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
19492 printf "%s\n" "$CC_FOR_BUILD" >&6; }
19493 else
19494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19495 printf "%s\n" "no" >&6; }
19496 fi
19497
19498
19499 fi
19500 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
19501 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
19502 # Extract the first word of "clang", so it can be a program name with args.
19503 set dummy clang; ac_word=$2
19504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19505 printf %s "checking for $ac_word... " >&6; }
19506 if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
19507 then :
19508 printf %s "(cached) " >&6
19509 else case e in #(
19510 e) if test -n "$ac_ct_CC_FOR_BUILD"; then
19511 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
19512 else
19513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19514 for as_dir in $PATH
19515 do
19516 IFS=$as_save_IFS
19517 case $as_dir in #(((
19518 '') as_dir=./ ;;
19519 */) ;;
19520 *) as_dir=$as_dir/ ;;
19521 esac
19522 for ac_exec_ext in '' $ac_executable_extensions; do
19523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19524 ac_cv_prog_ac_ct_CC_FOR_BUILD="clang"
19525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19526 break 2
19527 fi
19528 done
19529 done
19530 IFS=$as_save_IFS
19531
19532 fi ;;
19533 esac
19534 fi
19535 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
19536 if test -n "$ac_ct_CC_FOR_BUILD"; then
19537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
19538 printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
19539 else
19540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19541 printf "%s\n" "no" >&6; }
19542 fi
19543
19544 if test "x$ac_ct_CC_FOR_BUILD" = x; then
19545 CC_FOR_BUILD=""
19546 else
19547 case $cross_compiling:$ac_tool_warned in
19548 yes:)
19549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
19550 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
19551 ac_tool_warned=yes ;;
19552 esac
19553 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
19554 fi
19555 else
19556 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
19557 fi
19558
19559 fi
19560
19561
19562 test -z "$CC_FOR_BUILD" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19563 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19564 as_fn_error $? "no acceptable C compiler found in \$PATH
19565 See 'config.log' for more details" "$LINENO" 5; }
19566
19567 # Provide some information about the compiler.
19568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19569 set X $ac_build_compile
19570 ac_compiler=$2
19571 for ac_option in --version -v -V -qversion -version; do
19572 { { ac_try="$ac_compiler $ac_option >&5"
19573 case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19576 esac
19577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19578 printf "%s\n" "$ac_try_echo"; } >&5
19579 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19580 ac_status=$?
19581 if test -s conftest.err; then
19582 sed '10a\
19583 ... rest of stderr output deleted ...
19584 10q' conftest.err >conftest.er1
19585 cat conftest.er1 >&5
19586 fi
19587 rm -f conftest.er1 conftest.err
19588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19589 test $ac_status = 0; }
19590 done
19591
19592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
19593 printf %s "checking whether the compiler supports GNU C... " >&6; }
19594 if test ${ac_cv_c_compiler_gnu+y}
19595 then :
19596 printf %s "(cached) " >&6
19597 else case e in #(
19598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h. */
19600
19601 int
19602 main (void)
19603 {
19604 #ifndef __GNUC__
19605 choke me
19606 #endif
19607
19608 ;
19609 return 0;
19610 }
19611 _ACEOF
19612 if ac_fn_c_try_compile "$LINENO"
19613 then :
19614 ac_compiler_gnu=yes
19615 else case e in #(
19616 e) ac_compiler_gnu=no ;;
19617 esac
19618 fi
19619 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
19620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19621 ;;
19622 esac
19623 fi
19624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19625 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
19626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19627
19628 if test $ac_compiler_gnu = yes; then
19629 GCC=yes
19630 else
19631 GCC=
19632 fi
19633 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+y}
19634 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
19635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
19636 printf %s "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
19637 if test ${ac_cv_build_prog_cc_g+y}
19638 then :
19639 printf %s "(cached) " >&6
19640 else case e in #(
19641 e) ac_save_c_werror_flag=$ac_c_werror_flag
19642 ac_c_werror_flag=yes
19643 ac_cv_build_prog_cc_g=no
19644 CFLAGS_FOR_BUILD="-g"
19645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19646 /* end confdefs.h. */
19647
19648 int
19649 main (void)
19650 {
19651
19652 ;
19653 return 0;
19654 }
19655 _ACEOF
19656 if ac_fn_c_try_compile "$LINENO"
19657 then :
19658 ac_cv_build_prog_cc_g=yes
19659 else case e in #(
19660 e) CFLAGS_FOR_BUILD=""
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h. */
19663
19664 int
19665 main (void)
19666 {
19667
19668 ;
19669 return 0;
19670 }
19671 _ACEOF
19672 if ac_fn_c_try_compile "$LINENO"
19673 then :
19674
19675 else case e in #(
19676 e) ac_c_werror_flag=$ac_save_c_werror_flag
19677 CFLAGS_FOR_BUILD="-g"
19678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19679 /* end confdefs.h. */
19680
19681 int
19682 main (void)
19683 {
19684
19685 ;
19686 return 0;
19687 }
19688 _ACEOF
19689 if ac_fn_c_try_compile "$LINENO"
19690 then :
19691 ac_cv_build_prog_cc_g=yes
19692 fi
19693 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext ;;
19694 esac
19695 fi
19696 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext ;;
19697 esac
19698 fi
19699 rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
19700 ac_c_werror_flag=$ac_save_c_werror_flag ;;
19701 esac
19702 fi
19703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
19704 printf "%s\n" "$ac_cv_build_prog_cc_g" >&6; }
19705 if test $ac_test_CFLAGS; then
19706 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
19707 elif test $ac_cv_build_prog_cc_g = yes; then
19708 if test "$GCC" = yes; then
19709 CFLAGS_FOR_BUILD="-g -O2"
19710 else
19711 CFLAGS_FOR_BUILD="-g"
19712 fi
19713 else
19714 if test "$GCC" = yes; then
19715 CFLAGS_FOR_BUILD="-O2"
19716 else
19717 CFLAGS_FOR_BUILD=
19718 fi
19719 fi
19720 ac_prog_cc_stdc=no
19721 if test x$ac_prog_cc_stdc = xno
19722 then :
19723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C11 features" >&5
19724 printf %s "checking for $CC_FOR_BUILD option to enable C11 features... " >&6; }
19725 if test ${ac_cv_prog_cc_c11+y}
19726 then :
19727 printf %s "(cached) " >&6
19728 else case e in #(
19729 e) ac_cv_prog_cc_c11=no
19730 ac_save_CC=$CC_FOR_BUILD
19731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19732 /* end confdefs.h. */
19733 $ac_c_conftest_c11_program
19734 _ACEOF
19735 for ac_arg in '' -std=gnu11
19736 do
19737 CC_FOR_BUILD="$ac_save_CC $ac_arg"
19738 if ac_fn_c_try_compile "$LINENO"
19739 then :
19740 ac_cv_prog_cc_c11=$ac_arg
19741 fi
19742 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
19743 test "x$ac_cv_prog_cc_c11" != "xno" && break
19744 done
19745 rm -f conftest.$ac_ext
19746 CC_FOR_BUILD=$ac_save_CC ;;
19747 esac
19748 fi
19749
19750 if test "x$ac_cv_prog_cc_c11" = xno
19751 then :
19752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19753 printf "%s\n" "unsupported" >&6; }
19754 else case e in #(
19755 e) if test "x$ac_cv_prog_cc_c11" = x
19756 then :
19757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19758 printf "%s\n" "none needed" >&6; }
19759 else case e in #(
19760 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
19761 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
19762 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c11" ;;
19763 esac
19764 fi
19765 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
19766 ac_prog_cc_stdc=c11 ;;
19767 esac
19768 fi
19769 fi
19770 if test x$ac_prog_cc_stdc = xno
19771 then :
19772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C99 features" >&5
19773 printf %s "checking for $CC_FOR_BUILD option to enable C99 features... " >&6; }
19774 if test ${ac_cv_prog_cc_c99+y}
19775 then :
19776 printf %s "(cached) " >&6
19777 else case e in #(
19778 e) ac_cv_prog_cc_c99=no
19779 ac_save_CC=$CC_FOR_BUILD
19780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19781 /* end confdefs.h. */
19782 $ac_c_conftest_c99_program
19783 _ACEOF
19784 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
19785 do
19786 CC_FOR_BUILD="$ac_save_CC $ac_arg"
19787 if ac_fn_c_try_compile "$LINENO"
19788 then :
19789 ac_cv_prog_cc_c99=$ac_arg
19790 fi
19791 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
19792 test "x$ac_cv_prog_cc_c99" != "xno" && break
19793 done
19794 rm -f conftest.$ac_ext
19795 CC_FOR_BUILD=$ac_save_CC ;;
19796 esac
19797 fi
19798
19799 if test "x$ac_cv_prog_cc_c99" = xno
19800 then :
19801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19802 printf "%s\n" "unsupported" >&6; }
19803 else case e in #(
19804 e) if test "x$ac_cv_prog_cc_c99" = x
19805 then :
19806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19807 printf "%s\n" "none needed" >&6; }
19808 else case e in #(
19809 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
19810 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
19811 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c99" ;;
19812 esac
19813 fi
19814 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
19815 ac_prog_cc_stdc=c99 ;;
19816 esac
19817 fi
19818 fi
19819 if test x$ac_prog_cc_stdc = xno
19820 then :
19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C89 features" >&5
19822 printf %s "checking for $CC_FOR_BUILD option to enable C89 features... " >&6; }
19823 if test ${ac_cv_prog_cc_c89+y}
19824 then :
19825 printf %s "(cached) " >&6
19826 else case e in #(
19827 e) ac_cv_prog_cc_c89=no
19828 ac_save_CC=$CC_FOR_BUILD
19829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19830 /* end confdefs.h. */
19831 $ac_c_conftest_c89_program
19832 _ACEOF
19833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19834 do
19835 CC_FOR_BUILD="$ac_save_CC $ac_arg"
19836 if ac_fn_c_try_compile "$LINENO"
19837 then :
19838 ac_cv_prog_cc_c89=$ac_arg
19839 fi
19840 rm -f core conftest.err conftest.$ac_build_objext conftest.beam
19841 test "x$ac_cv_prog_cc_c89" != "xno" && break
19842 done
19843 rm -f conftest.$ac_ext
19844 CC_FOR_BUILD=$ac_save_CC ;;
19845 esac
19846 fi
19847
19848 if test "x$ac_cv_prog_cc_c89" = xno
19849 then :
19850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19851 printf "%s\n" "unsupported" >&6; }
19852 else case e in #(
19853 e) if test "x$ac_cv_prog_cc_c89" = x
19854 then :
19855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19856 printf "%s\n" "none needed" >&6; }
19857 else case e in #(
19858 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19859 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
19860 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89" ;;
19861 esac
19862 fi
19863 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
19864 ac_prog_cc_stdc=c89 ;;
19865 esac
19866 fi
19867 fi
19868
19869 ac_ext=c
19870 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
19871 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
19872 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
19873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19874
19875
19876 ac_ext=c
19877 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
19878 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
19879 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
19880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
19882 printf %s "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
19883 if test ${am_cv_prog_cc_c_o+y}
19884 then :
19885 printf %s "(cached) " >&6
19886 else case e in #(
19887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19888 /* end confdefs.h. */
19889
19890 int
19891 main (void)
19892 {
19893
19894 ;
19895 return 0;
19896 }
19897 _ACEOF
19898 # Make sure it works both with $CC and with simple cc.
19899 # Following AC_PROG_CC_C_O, we do the test twice because some
19900 # compilers refuse to overwrite an existing .o file with -o,
19901 # though they will create one.
19902 am_cv_prog_cc_c_o=yes
19903 for am_i in 1 2; do
19904 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
19905 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
19906 ac_status=$?
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } \
19909 && test -f conftest2.$ac_build_objext; then
19910 : OK
19911 else
19912 am_cv_prog_cc_c_o=no
19913 break
19914 fi
19915 done
19916 rm -f core conftest*
19917 unset am_i ;;
19918 esac
19919 fi
19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
19921 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
19922 if test "$am_cv_prog_cc_c_o" != yes; then
19923 # Losing compiler, so override with the script.
19924 # FIXME: It is wrong to rewrite CC.
19925 # But if we don't then we get into trouble of one sort or another.
19926 # A longer-term fix would be to have automake use am__CC in this case,
19927 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19928 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
19929 fi
19930 ac_ext=c
19931 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
19932 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
19933 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
19934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19935
19936
19937 ac_ext=c
19938 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
19939 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
19940 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
19941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
19943 printf %s "checking how to run the C preprocessor... " >&6; }
19944 # On Suns, sometimes $CPP names a directory.
19945 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
19946 CPP_FOR_BUILD=
19947 fi
19948 if test -z "$CPP_FOR_BUILD"; then
19949 if test ${ac_cv_build_prog_CPP+y}
19950 then :
19951 printf %s "(cached) " >&6
19952 else case e in #(
19953 e) # Double quotes because $CC needs to be expanded
19954 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" cpp /lib/cpp
19955 do
19956 ac_preproc_ok=false
19957 for ac_c_preproc_warn_flag in '' yes
19958 do
19959 # Use a header file that comes with gcc, so configuring glibc
19960 # with a fresh cross-compiler works.
19961 # On the NeXT, cc -E runs the code through the compiler's parser,
19962 # not just through cpp. "Syntax error" is here to catch this case.
19963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19964 /* end confdefs.h. */
19965 #include <limits.h>
19966 Syntax error
19967 _ACEOF
19968 if ac_fn_c_try_cpp "$LINENO"
19969 then :
19970
19971 else case e in #(
19972 e) # Broken: fails on valid input.
19973 continue ;;
19974 esac
19975 fi
19976 rm -f conftest.err conftest.i conftest.$ac_ext
19977
19978 # OK, works on sane cases. Now check whether nonexistent headers
19979 # can be detected and how.
19980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19981 /* end confdefs.h. */
19982 #include <ac_nonexistent.h>
19983 _ACEOF
19984 if ac_fn_c_try_cpp "$LINENO"
19985 then :
19986 # Broken: success on invalid input.
19987 continue
19988 else case e in #(
19989 e) # Passes both tests.
19990 ac_preproc_ok=:
19991 break ;;
19992 esac
19993 fi
19994 rm -f conftest.err conftest.i conftest.$ac_ext
19995
19996 done
19997 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19998 rm -f conftest.i conftest.err conftest.$ac_ext
19999 if $ac_preproc_ok
20000 then :
20001 break
20002 fi
20003
20004 done
20005 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
20006 ;;
20007 esac
20008 fi
20009 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
20010 else
20011 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
20012 fi
20013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
20014 printf "%s\n" "$CPP_FOR_BUILD" >&6; }
20015 ac_preproc_ok=false
20016 for ac_c_preproc_warn_flag in '' yes
20017 do
20018 # Use a header file that comes with gcc, so configuring glibc
20019 # with a fresh cross-compiler works.
20020 # On the NeXT, cc -E runs the code through the compiler's parser,
20021 # not just through cpp. "Syntax error" is here to catch this case.
20022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023 /* end confdefs.h. */
20024 #include <limits.h>
20025 Syntax error
20026 _ACEOF
20027 if ac_fn_c_try_cpp "$LINENO"
20028 then :
20029
20030 else case e in #(
20031 e) # Broken: fails on valid input.
20032 continue ;;
20033 esac
20034 fi
20035 rm -f conftest.err conftest.i conftest.$ac_ext
20036
20037 # OK, works on sane cases. Now check whether nonexistent headers
20038 # can be detected and how.
20039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h. */
20041 #include <ac_nonexistent.h>
20042 _ACEOF
20043 if ac_fn_c_try_cpp "$LINENO"
20044 then :
20045 # Broken: success on invalid input.
20046 continue
20047 else case e in #(
20048 e) # Passes both tests.
20049 ac_preproc_ok=:
20050 break ;;
20051 esac
20052 fi
20053 rm -f conftest.err conftest.i conftest.$ac_ext
20054
20055 done
20056 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20057 rm -f conftest.i conftest.err conftest.$ac_ext
20058 if $ac_preproc_ok
20059 then :
20060
20061 else case e in #(
20062 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20063 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20064 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
20065 See 'config.log' for more details" "$LINENO" 5; } ;;
20066 esac
20067 fi
20068
20069 ac_ext=c
20070 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
20071 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
20072 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
20073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20074
20075
20076
20077 ac_tool_prefix=$save_ac_tool_prefix
20078 cross_compiling=$save_cross_compiling
20079
20080
20081 BUILD_EXEEXT=$ac_build_exeext
20082 BUILD_OBJEXT=$ac_build_objext
20083
20084 saved_PKG_CONFIG="$PKG_CONFIG"
20085 saved_ac_cv_path_PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20086 unset PKG_CONFIG ac_cv_path_PKG_CONFIG
20087 # Extract the first word of "pkg-config", so it can be a program name with args.
20088 set dummy pkg-config; ac_word=$2
20089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20090 printf %s "checking for $ac_word... " >&6; }
20091 if test ${ac_cv_path_PKG_CONFIG+y}
20092 then :
20093 printf %s "(cached) " >&6
20094 else case e in #(
20095 e) case $PKG_CONFIG in
20096 [\\/]* | ?:[\\/]*)
20097 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20098 ;;
20099 *)
20100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20101 for as_dir in $PATH
20102 do
20103 IFS=$as_save_IFS
20104 case $as_dir in #(((
20105 '') as_dir=./ ;;
20106 */) ;;
20107 *) as_dir=$as_dir/ ;;
20108 esac
20109 for ac_exec_ext in '' $ac_executable_extensions; do
20110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20111 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20113 break 2
20114 fi
20115 done
20116 done
20117 IFS=$as_save_IFS
20118
20119 ;;
20120 esac ;;
20121 esac
20122 fi
20123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20124 if test -n "$PKG_CONFIG"; then
20125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20126 printf "%s\n" "$PKG_CONFIG" >&6; }
20127 else
20128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20129 printf "%s\n" "no" >&6; }
20130 fi
20131
20132
20133
20134 pkg_failed=no
20135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libqb" >&5
20136 printf %s "checking for libqb... " >&6; }
20137
20138 if test -n "$libqb_BUILD_CFLAGS"; then
20139 pkg_cv_libqb_BUILD_CFLAGS="$libqb_BUILD_CFLAGS"
20140 elif test -n "$PKG_CONFIG"; then
20141 if test -n "$PKG_CONFIG" && \
20142 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqb\""; } >&5
20143 ($PKG_CONFIG --exists --print-errors "libqb") 2>&5
20144 ac_status=$?
20145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20146 test $ac_status = 0; }; then
20147 pkg_cv_libqb_BUILD_CFLAGS=`$PKG_CONFIG --cflags "libqb" 2>/dev/null`
20148 test "x$?" != "x0" && pkg_failed=yes
20149 else
20150 pkg_failed=yes
20151 fi
20152 else
20153 pkg_failed=untried
20154 fi
20155 if test -n "$libqb_BUILD_LIBS"; then
20156 pkg_cv_libqb_BUILD_LIBS="$libqb_BUILD_LIBS"
20157 elif test -n "$PKG_CONFIG"; then
20158 if test -n "$PKG_CONFIG" && \
20159 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqb\""; } >&5
20160 ($PKG_CONFIG --exists --print-errors "libqb") 2>&5
20161 ac_status=$?
20162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20163 test $ac_status = 0; }; then
20164 pkg_cv_libqb_BUILD_LIBS=`$PKG_CONFIG --libs "libqb" 2>/dev/null`
20165 test "x$?" != "x0" && pkg_failed=yes
20166 else
20167 pkg_failed=yes
20168 fi
20169 else
20170 pkg_failed=untried
20171 fi
20172
20173
20174
20175 if test $pkg_failed = yes; then
20176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20177 printf "%s\n" "no" >&6; }
20178
20179 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20180 _pkg_short_errors_supported=yes
20181 else
20182 _pkg_short_errors_supported=no
20183 fi
20184 if test $_pkg_short_errors_supported = yes; then
20185 libqb_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libqb" 2>&1`
20186 else
20187 libqb_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libqb" 2>&1`
20188 fi
20189 # Put the nasty error message in config.log where it belongs
20190 echo "$libqb_BUILD_PKG_ERRORS" >&5
20191
20192 as_fn_error $? "Package requirements (libqb) were not met:
20193
20194 $libqb_BUILD_PKG_ERRORS
20195
20196 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20197 installed software in a non-standard prefix.
20198
20199 Alternatively, you may set the environment variables libqb_BUILD_CFLAGS
20200 and libqb_BUILD_LIBS to avoid the need to call pkg-config.
20201 See the pkg-config man page for more details." "$LINENO" 5
20202 elif test $pkg_failed = untried; then
20203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20204 printf "%s\n" "no" >&6; }
20205 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20206 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20207 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20208 is in your PATH or set the PKG_CONFIG environment variable to the full
20209 path to pkg-config.
20210
20211 Alternatively, you may set the environment variables libqb_BUILD_CFLAGS
20212 and libqb_BUILD_LIBS to avoid the need to call pkg-config.
20213 See the pkg-config man page for more details.
20214
20215 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20216 See 'config.log' for more details" "$LINENO" 5; }
20217 else
20218 libqb_BUILD_CFLAGS=$pkg_cv_libqb_BUILD_CFLAGS
20219 libqb_BUILD_LIBS=$pkg_cv_libqb_BUILD_LIBS
20220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20221 printf "%s\n" "yes" >&6; }
20222
20223 fi
20224
20225 if test -n "$libqb_BUILD_PREFIX"; then
20226 pkg_cv_libqb_BUILD_PREFIX="$libqb_BUILD_PREFIX"
20227 elif test -n "$PKG_CONFIG"; then
20228 if test -n "$PKG_CONFIG" && \
20229 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqb\""; } >&5
20230 ($PKG_CONFIG --exists --print-errors "libqb") 2>&5
20231 ac_status=$?
20232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20233 test $ac_status = 0; }; then
20234 pkg_cv_libqb_BUILD_PREFIX=`$PKG_CONFIG --variable="prefix" "libqb" 2>/dev/null`
20235 test "x$?" != "x0" && pkg_failed=yes
20236 else
20237 pkg_failed=yes
20238 fi
20239 else
20240 pkg_failed=untried
20241 fi
20242 libqb_BUILD_PREFIX=$pkg_cv_libqb_BUILD_PREFIX
20243
20244 if test "x$libqb_BUILD_PREFIX" = x""
20245 then :
20246
20247 fi
20248 # Extract the first word of "doxygen2man", so it can be a program name with args.
20249 set dummy doxygen2man; ac_word=$2
20250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20251 printf %s "checking for $ac_word... " >&6; }
20252 if test ${ac_cv_path_DOXYGEN2MAN+y}
20253 then :
20254 printf %s "(cached) " >&6
20255 else case e in #(
20256 e) case $DOXYGEN2MAN in
20257 [\\/]* | ?:[\\/]*)
20258 ac_cv_path_DOXYGEN2MAN="$DOXYGEN2MAN" # Let the user override the test with a path.
20259 ;;
20260 *)
20261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20262 for as_dir in $libqb_BUILD_PREFIX/bin$PATH_SEPARATOR$PATH
20263 do
20264 IFS=$as_save_IFS
20265 case $as_dir in #(((
20266 '') as_dir=./ ;;
20267 */) ;;
20268 *) as_dir=$as_dir/ ;;
20269 esac
20270 for ac_exec_ext in '' $ac_executable_extensions; do
20271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20272 ac_cv_path_DOXYGEN2MAN="$as_dir$ac_word$ac_exec_ext"
20273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20274 break 2
20275 fi
20276 done
20277 done
20278 IFS=$as_save_IFS
20279
20280 test -z "$ac_cv_path_DOXYGEN2MAN" && ac_cv_path_DOXYGEN2MAN="no"
20281 ;;
20282 esac ;;
20283 esac
20284 fi
20285 DOXYGEN2MAN=$ac_cv_path_DOXYGEN2MAN
20286 if test -n "$DOXYGEN2MAN"; then
20287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN2MAN" >&5
20288 printf "%s\n" "$DOXYGEN2MAN" >&6; }
20289 else
20290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20291 printf "%s\n" "no" >&6; }
20292 fi
20293
20294
20295 if test "x$DOXYGEN2MAN" = "xno"; then
20296
20297 pkg_failed=no
20298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0" >&5
20299 printf %s "checking for libxml-2.0... " >&6; }
20300
20301 if test -n "$libxml_BUILD_CFLAGS"; then
20302 pkg_cv_libxml_BUILD_CFLAGS="$libxml_BUILD_CFLAGS"
20303 elif test -n "$PKG_CONFIG"; then
20304 if test -n "$PKG_CONFIG" && \
20305 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
20306 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
20307 ac_status=$?
20308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20309 test $ac_status = 0; }; then
20310 pkg_cv_libxml_BUILD_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
20311 test "x$?" != "x0" && pkg_failed=yes
20312 else
20313 pkg_failed=yes
20314 fi
20315 else
20316 pkg_failed=untried
20317 fi
20318 if test -n "$libxml_BUILD_LIBS"; then
20319 pkg_cv_libxml_BUILD_LIBS="$libxml_BUILD_LIBS"
20320 elif test -n "$PKG_CONFIG"; then
20321 if test -n "$PKG_CONFIG" && \
20322 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
20323 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
20324 ac_status=$?
20325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20326 test $ac_status = 0; }; then
20327 pkg_cv_libxml_BUILD_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
20328 test "x$?" != "x0" && pkg_failed=yes
20329 else
20330 pkg_failed=yes
20331 fi
20332 else
20333 pkg_failed=untried
20334 fi
20335
20336
20337
20338 if test $pkg_failed = yes; then
20339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20340 printf "%s\n" "no" >&6; }
20341
20342 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20343 _pkg_short_errors_supported=yes
20344 else
20345 _pkg_short_errors_supported=no
20346 fi
20347 if test $_pkg_short_errors_supported = yes; then
20348 libxml_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
20349 else
20350 libxml_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
20351 fi
20352 # Put the nasty error message in config.log where it belongs
20353 echo "$libxml_BUILD_PKG_ERRORS" >&5
20354
20355 as_fn_error $? "Package requirements (libxml-2.0) were not met:
20356
20357 $libxml_BUILD_PKG_ERRORS
20358
20359 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20360 installed software in a non-standard prefix.
20361
20362 Alternatively, you may set the environment variables libxml_BUILD_CFLAGS
20363 and libxml_BUILD_LIBS to avoid the need to call pkg-config.
20364 See the pkg-config man page for more details." "$LINENO" 5
20365 elif test $pkg_failed = untried; then
20366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20367 printf "%s\n" "no" >&6; }
20368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20369 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20370 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20371 is in your PATH or set the PKG_CONFIG environment variable to the full
20372 path to pkg-config.
20373
20374 Alternatively, you may set the environment variables libxml_BUILD_CFLAGS
20375 and libxml_BUILD_LIBS to avoid the need to call pkg-config.
20376 See the pkg-config man page for more details.
20377
20378 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20379 See 'config.log' for more details" "$LINENO" 5; }
20380 else
20381 libxml_BUILD_CFLAGS=$pkg_cv_libxml_BUILD_CFLAGS
20382 libxml_BUILD_LIBS=$pkg_cv_libxml_BUILD_LIBS
20383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20384 printf "%s\n" "yes" >&6; }
20385
20386 fi
20387 DOXYGEN2MAN="\${abs_top_builddir}/man/doxyxml"
20388 build_doxy=yes
20389 fi
20390 PKG_CONFIG="$saved_PKG_CONFIG"
20391 ac_cv_path_PKG_CONFIG="$saved_ac_cv_path_PKG_CONFIG"
20392 fi
20393
20394 fi
20395 if test "x$build_doxy" = "xyes"; then
20396 BUILD_DOXYXML_TRUE=
20397 BUILD_DOXYXML_FALSE='#'
20398 else
20399 BUILD_DOXYXML_TRUE='#'
20400 BUILD_DOXYXML_FALSE=
20401 fi
20402
20403
20404 # checks for libnozzle
20405 if test "x$enable_libnozzle" = xyes; then
20406 case $host_os in
20407 *linux*)
20408
20409 pkg_failed=no
20410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnl-3.0" >&5
20411 printf %s "checking for libnl-3.0... " >&6; }
20412
20413 if test -n "$libnl_CFLAGS"; then
20414 pkg_cv_libnl_CFLAGS="$libnl_CFLAGS"
20415 elif test -n "$PKG_CONFIG"; then
20416 if test -n "$PKG_CONFIG" && \
20417 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0\""; } >&5
20418 ($PKG_CONFIG --exists --print-errors "libnl-3.0") 2>&5
20419 ac_status=$?
20420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20421 test $ac_status = 0; }; then
20422 pkg_cv_libnl_CFLAGS=`$PKG_CONFIG --cflags "libnl-3.0" 2>/dev/null`
20423 test "x$?" != "x0" && pkg_failed=yes
20424 else
20425 pkg_failed=yes
20426 fi
20427 else
20428 pkg_failed=untried
20429 fi
20430 if test -n "$libnl_LIBS"; then
20431 pkg_cv_libnl_LIBS="$libnl_LIBS"
20432 elif test -n "$PKG_CONFIG"; then
20433 if test -n "$PKG_CONFIG" && \
20434 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0\""; } >&5
20435 ($PKG_CONFIG --exists --print-errors "libnl-3.0") 2>&5
20436 ac_status=$?
20437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20438 test $ac_status = 0; }; then
20439 pkg_cv_libnl_LIBS=`$PKG_CONFIG --libs "libnl-3.0" 2>/dev/null`
20440 test "x$?" != "x0" && pkg_failed=yes
20441 else
20442 pkg_failed=yes
20443 fi
20444 else
20445 pkg_failed=untried
20446 fi
20447
20448
20449
20450 if test $pkg_failed = yes; then
20451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20452 printf "%s\n" "no" >&6; }
20453
20454 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20455 _pkg_short_errors_supported=yes
20456 else
20457 _pkg_short_errors_supported=no
20458 fi
20459 if test $_pkg_short_errors_supported = yes; then
20460 libnl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-3.0" 2>&1`
20461 else
20462 libnl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-3.0" 2>&1`
20463 fi
20464 # Put the nasty error message in config.log where it belongs
20465 echo "$libnl_PKG_ERRORS" >&5
20466
20467 as_fn_error $? "Package requirements (libnl-3.0) were not met:
20468
20469 $libnl_PKG_ERRORS
20470
20471 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20472 installed software in a non-standard prefix.
20473
20474 Alternatively, you may set the environment variables libnl_CFLAGS
20475 and libnl_LIBS to avoid the need to call pkg-config.
20476 See the pkg-config man page for more details." "$LINENO" 5
20477 elif test $pkg_failed = untried; then
20478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20479 printf "%s\n" "no" >&6; }
20480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20481 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20482 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20483 is in your PATH or set the PKG_CONFIG environment variable to the full
20484 path to pkg-config.
20485
20486 Alternatively, you may set the environment variables libnl_CFLAGS
20487 and libnl_LIBS to avoid the need to call pkg-config.
20488 See the pkg-config man page for more details.
20489
20490 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20491 See 'config.log' for more details" "$LINENO" 5; }
20492 else
20493 libnl_CFLAGS=$pkg_cv_libnl_CFLAGS
20494 libnl_LIBS=$pkg_cv_libnl_LIBS
20495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20496 printf "%s\n" "yes" >&6; }
20497
20498 fi
20499
20500 pkg_failed=no
20501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnl-route-3.0 >= 3.3" >&5
20502 printf %s "checking for libnl-route-3.0 >= 3.3... " >&6; }
20503
20504 if test -n "$libnlroute_CFLAGS"; then
20505 pkg_cv_libnlroute_CFLAGS="$libnlroute_CFLAGS"
20506 elif test -n "$PKG_CONFIG"; then
20507 if test -n "$PKG_CONFIG" && \
20508 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-route-3.0 >= 3.3\""; } >&5
20509 ($PKG_CONFIG --exists --print-errors "libnl-route-3.0 >= 3.3") 2>&5
20510 ac_status=$?
20511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20512 test $ac_status = 0; }; then
20513 pkg_cv_libnlroute_CFLAGS=`$PKG_CONFIG --cflags "libnl-route-3.0 >= 3.3" 2>/dev/null`
20514 test "x$?" != "x0" && pkg_failed=yes
20515 else
20516 pkg_failed=yes
20517 fi
20518 else
20519 pkg_failed=untried
20520 fi
20521 if test -n "$libnlroute_LIBS"; then
20522 pkg_cv_libnlroute_LIBS="$libnlroute_LIBS"
20523 elif test -n "$PKG_CONFIG"; then
20524 if test -n "$PKG_CONFIG" && \
20525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-route-3.0 >= 3.3\""; } >&5
20526 ($PKG_CONFIG --exists --print-errors "libnl-route-3.0 >= 3.3") 2>&5
20527 ac_status=$?
20528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20529 test $ac_status = 0; }; then
20530 pkg_cv_libnlroute_LIBS=`$PKG_CONFIG --libs "libnl-route-3.0 >= 3.3" 2>/dev/null`
20531 test "x$?" != "x0" && pkg_failed=yes
20532 else
20533 pkg_failed=yes
20534 fi
20535 else
20536 pkg_failed=untried
20537 fi
20538
20539
20540
20541 if test $pkg_failed = yes; then
20542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20543 printf "%s\n" "no" >&6; }
20544
20545 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20546 _pkg_short_errors_supported=yes
20547 else
20548 _pkg_short_errors_supported=no
20549 fi
20550 if test $_pkg_short_errors_supported = yes; then
20551 libnlroute_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-route-3.0 >= 3.3" 2>&1`
20552 else
20553 libnlroute_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-route-3.0 >= 3.3" 2>&1`
20554 fi
20555 # Put the nasty error message in config.log where it belongs
20556 echo "$libnlroute_PKG_ERRORS" >&5
20557
20558
20559 pkg_failed=no
20560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnl-route-3.0 < 3.3" >&5
20561 printf %s "checking for libnl-route-3.0 < 3.3... " >&6; }
20562
20563 if test -n "$libnlroute_CFLAGS"; then
20564 pkg_cv_libnlroute_CFLAGS="$libnlroute_CFLAGS"
20565 elif test -n "$PKG_CONFIG"; then
20566 if test -n "$PKG_CONFIG" && \
20567 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-route-3.0 < 3.3\""; } >&5
20568 ($PKG_CONFIG --exists --print-errors "libnl-route-3.0 < 3.3") 2>&5
20569 ac_status=$?
20570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20571 test $ac_status = 0; }; then
20572 pkg_cv_libnlroute_CFLAGS=`$PKG_CONFIG --cflags "libnl-route-3.0 < 3.3" 2>/dev/null`
20573 test "x$?" != "x0" && pkg_failed=yes
20574 else
20575 pkg_failed=yes
20576 fi
20577 else
20578 pkg_failed=untried
20579 fi
20580 if test -n "$libnlroute_LIBS"; then
20581 pkg_cv_libnlroute_LIBS="$libnlroute_LIBS"
20582 elif test -n "$PKG_CONFIG"; then
20583 if test -n "$PKG_CONFIG" && \
20584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-route-3.0 < 3.3\""; } >&5
20585 ($PKG_CONFIG --exists --print-errors "libnl-route-3.0 < 3.3") 2>&5
20586 ac_status=$?
20587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20588 test $ac_status = 0; }; then
20589 pkg_cv_libnlroute_LIBS=`$PKG_CONFIG --libs "libnl-route-3.0 < 3.3" 2>/dev/null`
20590 test "x$?" != "x0" && pkg_failed=yes
20591 else
20592 pkg_failed=yes
20593 fi
20594 else
20595 pkg_failed=untried
20596 fi
20597
20598
20599
20600 if test $pkg_failed = yes; then
20601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20602 printf "%s\n" "no" >&6; }
20603
20604 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20605 _pkg_short_errors_supported=yes
20606 else
20607 _pkg_short_errors_supported=no
20608 fi
20609 if test $_pkg_short_errors_supported = yes; then
20610 libnlroute_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-route-3.0 < 3.3" 2>&1`
20611 else
20612 libnlroute_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-route-3.0 < 3.3" 2>&1`
20613 fi
20614 # Put the nasty error message in config.log where it belongs
20615 echo "$libnlroute_PKG_ERRORS" >&5
20616
20617 as_fn_error $? "Package requirements (libnl-route-3.0 < 3.3) were not met:
20618
20619 $libnlroute_PKG_ERRORS
20620
20621 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20622 installed software in a non-standard prefix.
20623
20624 Alternatively, you may set the environment variables libnlroute_CFLAGS
20625 and libnlroute_LIBS to avoid the need to call pkg-config.
20626 See the pkg-config man page for more details." "$LINENO" 5
20627 elif test $pkg_failed = untried; then
20628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20629 printf "%s\n" "no" >&6; }
20630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20631 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20632 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20633 is in your PATH or set the PKG_CONFIG environment variable to the full
20634 path to pkg-config.
20635
20636 Alternatively, you may set the environment variables libnlroute_CFLAGS
20637 and libnlroute_LIBS to avoid the need to call pkg-config.
20638 See the pkg-config man page for more details.
20639
20640 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20641 See 'config.log' for more details" "$LINENO" 5; }
20642 else
20643 libnlroute_CFLAGS=$pkg_cv_libnlroute_CFLAGS
20644 libnlroute_LIBS=$pkg_cv_libnlroute_LIBS
20645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20646 printf "%s\n" "yes" >&6; }
20647
20648 printf "%s\n" "#define LIBNL3_WORKAROUND 1" >>confdefs.h
20649
20650 fi
20651 elif test $pkg_failed = untried; then
20652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20653 printf "%s\n" "no" >&6; }
20654
20655 pkg_failed=no
20656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnl-route-3.0 < 3.3" >&5
20657 printf %s "checking for libnl-route-3.0 < 3.3... " >&6; }
20658
20659 if test -n "$libnlroute_CFLAGS"; then
20660 pkg_cv_libnlroute_CFLAGS="$libnlroute_CFLAGS"
20661 elif test -n "$PKG_CONFIG"; then
20662 if test -n "$PKG_CONFIG" && \
20663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-route-3.0 < 3.3\""; } >&5
20664 ($PKG_CONFIG --exists --print-errors "libnl-route-3.0 < 3.3") 2>&5
20665 ac_status=$?
20666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20667 test $ac_status = 0; }; then
20668 pkg_cv_libnlroute_CFLAGS=`$PKG_CONFIG --cflags "libnl-route-3.0 < 3.3" 2>/dev/null`
20669 test "x$?" != "x0" && pkg_failed=yes
20670 else
20671 pkg_failed=yes
20672 fi
20673 else
20674 pkg_failed=untried
20675 fi
20676 if test -n "$libnlroute_LIBS"; then
20677 pkg_cv_libnlroute_LIBS="$libnlroute_LIBS"
20678 elif test -n "$PKG_CONFIG"; then
20679 if test -n "$PKG_CONFIG" && \
20680 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-route-3.0 < 3.3\""; } >&5
20681 ($PKG_CONFIG --exists --print-errors "libnl-route-3.0 < 3.3") 2>&5
20682 ac_status=$?
20683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20684 test $ac_status = 0; }; then
20685 pkg_cv_libnlroute_LIBS=`$PKG_CONFIG --libs "libnl-route-3.0 < 3.3" 2>/dev/null`
20686 test "x$?" != "x0" && pkg_failed=yes
20687 else
20688 pkg_failed=yes
20689 fi
20690 else
20691 pkg_failed=untried
20692 fi
20693
20694
20695
20696 if test $pkg_failed = yes; then
20697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20698 printf "%s\n" "no" >&6; }
20699
20700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20701 _pkg_short_errors_supported=yes
20702 else
20703 _pkg_short_errors_supported=no
20704 fi
20705 if test $_pkg_short_errors_supported = yes; then
20706 libnlroute_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-route-3.0 < 3.3" 2>&1`
20707 else
20708 libnlroute_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-route-3.0 < 3.3" 2>&1`
20709 fi
20710 # Put the nasty error message in config.log where it belongs
20711 echo "$libnlroute_PKG_ERRORS" >&5
20712
20713 as_fn_error $? "Package requirements (libnl-route-3.0 < 3.3) were not met:
20714
20715 $libnlroute_PKG_ERRORS
20716
20717 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20718 installed software in a non-standard prefix.
20719
20720 Alternatively, you may set the environment variables libnlroute_CFLAGS
20721 and libnlroute_LIBS to avoid the need to call pkg-config.
20722 See the pkg-config man page for more details." "$LINENO" 5
20723 elif test $pkg_failed = untried; then
20724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20725 printf "%s\n" "no" >&6; }
20726 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20727 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20728 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20729 is in your PATH or set the PKG_CONFIG environment variable to the full
20730 path to pkg-config.
20731
20732 Alternatively, you may set the environment variables libnlroute_CFLAGS
20733 and libnlroute_LIBS to avoid the need to call pkg-config.
20734 See the pkg-config man page for more details.
20735
20736 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20737 See 'config.log' for more details" "$LINENO" 5; }
20738 else
20739 libnlroute_CFLAGS=$pkg_cv_libnlroute_CFLAGS
20740 libnlroute_LIBS=$pkg_cv_libnlroute_LIBS
20741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20742 printf "%s\n" "yes" >&6; }
20743
20744 printf "%s\n" "#define LIBNL3_WORKAROUND 1" >>confdefs.h
20745
20746 fi
20747 else
20748 libnlroute_CFLAGS=$pkg_cv_libnlroute_CFLAGS
20749 libnlroute_LIBS=$pkg_cv_libnlroute_LIBS
20750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20751 printf "%s\n" "yes" >&6; }
20752
20753 fi
20754 ;;
20755 *solaris*)
20756 saved_LIBS="$LIBS"
20757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlpi_open" >&5
20758 printf %s "checking for library containing dlpi_open... " >&6; }
20759 if test ${ac_cv_search_dlpi_open+y}
20760 then :
20761 printf %s "(cached) " >&6
20762 else case e in #(
20763 e) ac_func_search_save_LIBS=$LIBS
20764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765 /* end confdefs.h. */
20766
20767 /* Override any GCC internal prototype to avoid an error.
20768 Use char because int might match the return type of a GCC
20769 builtin and then its argument prototype would still apply.
20770 The 'extern "C"' is for builds by C++ compilers;
20771 although this is not generally supported in C code supporting it here
20772 has little cost and some practical benefit (sr 110532). */
20773 #ifdef __cplusplus
20774 extern "C"
20775 #endif
20776 char dlpi_open (void);
20777 int
20778 main (void)
20779 {
20780 return dlpi_open ();
20781 ;
20782 return 0;
20783 }
20784 _ACEOF
20785 for ac_lib in '' dlpi
20786 do
20787 if test -z "$ac_lib"; then
20788 ac_res="none required"
20789 else
20790 ac_res=-l$ac_lib
20791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20792 fi
20793 if ac_fn_c_try_link "$LINENO"
20794 then :
20795 ac_cv_search_dlpi_open=$ac_res
20796 fi
20797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20798 conftest$ac_exeext
20799 if test ${ac_cv_search_dlpi_open+y}
20800 then :
20801 break
20802 fi
20803 done
20804 if test ${ac_cv_search_dlpi_open+y}
20805 then :
20806
20807 else case e in #(
20808 e) ac_cv_search_dlpi_open=no ;;
20809 esac
20810 fi
20811 rm conftest.$ac_ext
20812 LIBS=$ac_func_search_save_LIBS ;;
20813 esac
20814 fi
20815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlpi_open" >&5
20816 printf "%s\n" "$ac_cv_search_dlpi_open" >&6; }
20817 ac_res=$ac_cv_search_dlpi_open
20818 if test "$ac_res" != no
20819 then :
20820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20821
20822 else case e in #(
20823 e) as_fn_error $? "dlpi_open not found" "$LINENO" 5 ;;
20824 esac
20825 fi
20826
20827 dlpi_LIBS=$LIBS
20828
20829 LIBS="$saved_LIBS"
20830 for ac_header in net/if_tun.h
20831 do :
20832 ac_fn_c_check_header_compile "$LINENO" "net/if_tun.h" "ac_cv_header_net_if_tun_h" "$ac_includes_default"
20833 if test "x$ac_cv_header_net_if_tun_h" = xyes
20834 then :
20835 printf "%s\n" "#define HAVE_NET_IF_TUN_H 1" >>confdefs.h
20836
20837 else case e in #(
20838 e) as_fn_error $? "net/if_tun.h not found" "$LINENO" 5 ;;
20839 esac
20840 fi
20841
20842 done
20843 ;;
20844 *)
20845 ;;
20846 esac
20847 fi
20848
20849 # local options
20850 # Check whether --enable-debug was given.
20851 if test ${enable_debug+y}
20852 then :
20853 enableval=$enable_debug;
20854 fi
20855
20856
20857 # Check whether --enable-hardening was given.
20858 if test ${enable_hardening+y}
20859 then :
20860 enableval=$enable_hardening;
20861 else case e in #(
20862 e) enable_hardening="yes" ;;
20863 esac
20864 fi
20865
20866
20867
20868 # Check whether --with-testdir was given.
20869 if test ${with_testdir+y}
20870 then :
20871 withval=$with_testdir; TESTDIR="$withval"
20872 else case e in #(
20873 e) TESTDIR="$libdir/kronosnet/tests" ;;
20874 esac
20875 fi
20876
20877
20878 ## do subst
20879
20880
20881
20882 # debug build stuff
20883 if test "x${enable_debug}" = xyes; then
20884
20885 printf "%s\n" "#define DEBUG 1" >>confdefs.h
20886
20887 OPT_CFLAGS="-O0"
20888 else
20889 OPT_CFLAGS="-O3"
20890 fi
20891
20892 # check flags for CMSG_SPACE()
20893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CMSG_SPACE() requiring _XOPEN_SOURCE" >&5
20894 printf %s "checking for CMSG_SPACE() requiring _XOPEN_SOURCE... " >&6; }
20895 if test ${ac_cv_macro_xopen_source+y}
20896 then :
20897 printf %s "(cached) " >&6
20898 else case e in #(
20899 e)
20900 ac_cv_macro_xopen_source=yes
20901 saveCPPFLAGS="$CPPFLAGS"
20902 CPPFLAGS="-Werror $CPPFLAGS"
20903 # First, try to link with strdup() using standard flags
20904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20905 /* end confdefs.h. */
20906
20907 #include <sys/socket.h>
20908
20909 int
20910 main (void)
20911 {
20912
20913 unsigned char c = CMSG_SPACE(1);
20914
20915 ;
20916 return 0;
20917 }
20918 _ACEOF
20919 if ac_fn_c_try_compile "$LINENO"
20920 then :
20921 ac_cv_macro_xopen_source=no
20922 else case e in #(
20923 e)
20924 # Failure, try again with -D_XOPEN_SOURCE
20925 XOPEN_CPPFLAGS="-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
20926 CPPFLAGS="$CPPFLAGS $XOPEN_CPPFLAGS"
20927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20928 /* end confdefs.h. */
20929
20930 #include <sys/socket.h>
20931
20932 int
20933 main (void)
20934 {
20935
20936 unsigned char c = CMSG_SPACE(1);
20937
20938 ;
20939 return 0;
20940 }
20941 _ACEOF
20942 if ac_fn_c_try_compile "$LINENO"
20943 then :
20944
20945 fi
20946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20947 ;;
20948 esac
20949 fi
20950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20951 CPPFLAGS="$saveCPPFLAGS"
20952 ;;
20953 esac
20954 fi
20955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_macro_xopen_source" >&5
20956 printf "%s\n" "$ac_cv_macro_xopen_source" >&6; }
20957
20958
20959
20960 # Check for availablility of hardening options
20961
20962 annocheck=no
20963
20964 if test "x${enable_hardening}" = xyes; then
20965 # support only gcc for now
20966 if echo $CC | grep -q gcc; then
20967 ANNOPLUGIN="-fplugin=annobin"
20968 annocheck=yes
20969 fi
20970
20971 FORTIFY_CFLAGS=""
20972 if test "x${enable_debug}" != xyes; then
20973 for j in 3 2; do
20974 FORTIFY_CFLAGS_TEMP="-D_FORTIFY_SOURCE=$j"
20975 if cc_supports_flag "$OPT_CFLAGS $FORTIFY_CFLAGS_TEMP"; then
20976 FORTIFY_CFLAGS="$FORTIFY_CFLAGS_TEMP"
20977 break
20978 fi
20979 done
20980 fi
20981
20982 HARDENING_CFLAGS_ANNOCHECK="$ANNOPLUGIN -fPIC -DPIC"
20983 case "$host_os" in
20984 solaris*)
20985 # no support for -pie when linking, but supported during compile
20986 ;;
20987 *)
20988 HARDENING_CFLAGS_ANNOCHECK="$HARDENING_CFLAGS_ANNOCHECK -pie"
20989 ;;
20990 esac
20991 HARDENING_CFLAGS_ANNOCHECK="$HARDENING_CFLAGS_ANNOCHECK -fstack-protector-strong -fexceptions -D_GLIBCXX_ASSERTIONS -Wl,-z,now"
20992 HARDENING_CFLAGS="-fstack-clash-protection -fcf-protection=full -mcet -mstackrealign"
20993 EXTRA_HARDENING_CFLAGS=""
20994
20995 # check for annobin required cflags/ldflags
20996 for j in $HARDENING_CFLAGS_ANNOCHECK; do
20997 if cc_supports_flag $j; then
20998 EXTRA_HARDENING_CFLAGS="$EXTRA_HARDENING_CFLAGS $j"
20999 else
21000 annocheck=no
21001 fi
21002 done
21003
21004 # check for other hardening cflags/ldflags
21005 for j in $HARDENING_CFLAGS; do
21006 if cc_supports_flag $j; then
21007 EXTRA_HARDENING_CFLAGS="$EXTRA_HARDENING_CFLAGS $j"
21008 fi
21009 done
21010
21011 EXTRA_HARDENING_CFLAGS="$EXTRA_HARDENING_CFLAGS $FORTIFY_CFLAGS"
21012
21013 # check if annocheck binary is available
21014 if test "x${annocheck}" = xyes; then
21015 for ac_prog in annocheck
21016 do
21017 # Extract the first word of "$ac_prog", so it can be a program name with args.
21018 set dummy $ac_prog; ac_word=$2
21019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21020 printf %s "checking for $ac_word... " >&6; }
21021 if test ${ac_cv_prog_ANNOCHECK_EXEC+y}
21022 then :
21023 printf %s "(cached) " >&6
21024 else case e in #(
21025 e) if test -n "$ANNOCHECK_EXEC"; then
21026 ac_cv_prog_ANNOCHECK_EXEC="$ANNOCHECK_EXEC" # Let the user override the test.
21027 else
21028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21029 for as_dir in $PATH
21030 do
21031 IFS=$as_save_IFS
21032 case $as_dir in #(((
21033 '') as_dir=./ ;;
21034 */) ;;
21035 *) as_dir=$as_dir/ ;;
21036 esac
21037 for ac_exec_ext in '' $ac_executable_extensions; do
21038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21039 ac_cv_prog_ANNOCHECK_EXEC="$ac_prog"
21040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21041 break 2
21042 fi
21043 done
21044 done
21045 IFS=$as_save_IFS
21046
21047 fi ;;
21048 esac
21049 fi
21050 ANNOCHECK_EXEC=$ac_cv_prog_ANNOCHECK_EXEC
21051 if test -n "$ANNOCHECK_EXEC"; then
21052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ANNOCHECK_EXEC" >&5
21053 printf "%s\n" "$ANNOCHECK_EXEC" >&6; }
21054 else
21055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21056 printf "%s\n" "no" >&6; }
21057 fi
21058
21059
21060 test -n "$ANNOCHECK_EXEC" && break
21061 done
21062
21063 if test "x${ANNOCHECK_EXEC}" = x; then
21064 annocheck=no
21065 fi
21066 fi
21067
21068 AM_LDFLAGS="$AM_LDFLAGS $EXTRA_HARDENING_CFLAGS"
21069 fi
21070
21071 if test "x${enable_debug}" = xyes; then
21072 annocheck=no
21073 fi
21074
21075 if test "x$annocheck" = "xyes"; then
21076 HAS_ANNOCHECK_TRUE=
21077 HAS_ANNOCHECK_FALSE='#'
21078 else
21079 HAS_ANNOCHECK_TRUE='#'
21080 HAS_ANNOCHECK_FALSE=
21081 fi
21082
21083
21084 # gdb flags
21085 if test "x${GCC}" = xyes; then
21086 GDB_CFLAGS="-ggdb3"
21087 else
21088 GDB_CFLAGS="-g"
21089 fi
21090
21091 DEFAULT_CFLAGS="-Werror -Wall -Wextra"
21092
21093 # manual overrides
21094 # generates too much noise for stub APIs
21095 UNWANTED_CFLAGS="-Wno-unused-parameter -Wno-gnu-folding-constant"
21096
21097 # check for character index warning
21098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wchar-subscripts warns for int8_t" >&5
21099 printf %s "checking if -Wchar-subscripts warns for int8_t... " >&6; }
21100 if test ${ac_cv_int8_t_warn+y}
21101 then :
21102 printf %s "(cached) " >&6
21103 else case e in #(
21104 e)
21105 saveCFLAGS="$CFLAGS"
21106 CFLAGS="-Werror -Wchar-subscripts"
21107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21108 /* end confdefs.h. */
21109 #include <stdint.h>
21110 int
21111 main (void)
21112 {
21113
21114 char arr256;
21115 uint8_t i = 200;
21116 arri = 'J';
21117 return 0;
21118
21119 ;
21120 return 0;
21121 }
21122 _ACEOF
21123 if ac_fn_c_try_compile "$LINENO"
21124 then :
21125 ac_cv_int8_t_warn=no
21126 else case e in #(
21127 e) ac_cv_int8_t_warn=yes ;;
21128 esac
21129 fi
21130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21131 CFLAGS="$saveCFLAGS"
21132 ;;
21133 esac
21134 fi
21135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int8_t_warn" >&5
21136 printf "%s\n" "$ac_cv_int8_t_warn" >&6; }
21137 if test "x$ac_cv_int8_t_warn" = xyes; then
21138 UNWANTED_CFLAGS="$UNWANTED_CFLAGS -Wno-char-subscripts"
21139 fi
21140
21141 AM_CFLAGS="$OPT_CFLAGS $GDB_CFLAGS $DEFAULT_CFLAGS $EXTRA_HARDENING_CFLAGS $UNWANTED_CFLAGS"
21142
21143
21144
21145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU date" >&5
21146 printf %s "checking for GNU date... " >&6; }
21147 if test ${ax_cv_prog_date_gnu+y}
21148 then :
21149 printf %s "(cached) " >&6
21150 else case e in #(
21151 e)
21152 ax_cv_prog_date_gnu=no
21153 if date --version 2>/dev/null | head -1 | grep -q "\(GNU\|uutils\)"
21154 then
21155 ax_cv_prog_date_gnu=yes
21156 fi
21157 ;;
21158 esac
21159 fi
21160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_date_gnu" >&5
21161 printf "%s\n" "$ax_cv_prog_date_gnu" >&6; }
21162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD date" >&5
21163 printf %s "checking for BSD date... " >&6; }
21164 if test ${ax_cv_prog_date_bsd+y}
21165 then :
21166 printf %s "(cached) " >&6
21167 else case e in #(
21168 e)
21169 ax_cv_prog_date_bsd=no
21170 if date -v 1d > /dev/null 2>&1
21171 then
21172 ax_cv_prog_date_bsd=yes
21173 fi
21174 ;;
21175 esac
21176 fi
21177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_date_bsd" >&5
21178 printf "%s\n" "$ax_cv_prog_date_bsd" >&6; }
21179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for date type" >&5
21180 printf %s "checking for date type... " >&6; }
21181 if test ${ax_cv_prog_date_type+y}
21182 then :
21183 printf %s "(cached) " >&6
21184 else case e in #(
21185 e)
21186 ax_cv_prog_date_type=unknown
21187 if test "x${ax_cv_prog_date_gnu}" = "xyes"
21188 then
21189 ax_cv_prog_date_type=gnu
21190 elif test "x${ax_cv_prog_date_bsd}" = "xyes"
21191 then
21192 ax_cv_prog_date_type=bsd
21193 fi
21194 ;;
21195 esac
21196 fi
21197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_date_type" >&5
21198 printf "%s\n" "$ax_cv_prog_date_type" >&6; }
21199 if test "x$ax_cv_prog_date_gnu" = xyes
21200 then :
21201
21202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GNU date supports --date" >&5
21203 printf %s "checking whether GNU date supports --date... " >&6; }
21204 if test ${ax_cv_prog_date_gnu_date+y}
21205 then :
21206 printf %s "(cached) " >&6
21207 else case e in #(
21208 e)
21209 ax_cv_prog_date_gnu_date=no
21210 if date --date=@1512031231 > /dev/null 2>&1
21211 then
21212 ax_cv_prog_date_gnu_date=yes
21213 fi
21214 ;;
21215 esac
21216 fi
21217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_date_gnu_date" >&5
21218 printf "%s\n" "$ax_cv_prog_date_gnu_date" >&6; }
21219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GNU date supports --utc" >&5
21220 printf %s "checking whether GNU date supports --utc... " >&6; }
21221 if test ${ax_cv_prog_date_gnu_utc+y}
21222 then :
21223 printf %s "(cached) " >&6
21224 else case e in #(
21225 e)
21226 ax_cv_prog_date_gnu_utc=no
21227 if date --utc > /dev/null 2>&1
21228 then
21229 ax_cv_prog_date_gnu_utc=yes
21230 fi
21231 ;;
21232 esac
21233 fi
21234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_date_gnu_utc" >&5
21235 printf "%s\n" "$ax_cv_prog_date_gnu_utc" >&6; }
21236
21237 fi
21238 if test "x$ax_cv_prog_date_bsd" = xyes
21239 then :
21240
21241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether BSD date supports -r" >&5
21242 printf %s "checking whether BSD date supports -r... " >&6; }
21243 if test ${ax_cv_prog_date_bsd_date+y}
21244 then :
21245 printf %s "(cached) " >&6
21246 else case e in #(
21247 e)
21248 ax_cv_prog_date_bsd_date=no
21249 if date -r 1512031231 > /dev/null 2>&1
21250 then
21251 ax_cv_prog_date_bsd_date=yes
21252 fi
21253 ;;
21254 esac
21255 fi
21256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_date_bsd_date" >&5
21257 printf "%s\n" "$ax_cv_prog_date_bsd_date" >&6; }
21258
21259 fi
21260 if test "x$ax_cv_prog_date_bsd" = xyes
21261 then :
21262
21263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether BSD date supports -v" >&5
21264 printf %s "checking whether BSD date supports -v... " >&6; }
21265 if test ${ax_cv_prog_date_bsd_adjust+y}
21266 then :
21267 printf %s "(cached) " >&6
21268 else case e in #(
21269 e)
21270 ax_cv_prog_date_bsd_adjust=no
21271 if date -v 1d > /dev/null 2>&1
21272 then
21273 ax_cv_prog_date_bsd_adjust=yes
21274 fi
21275 ;;
21276 esac
21277 fi
21278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_date_bsd_adjust" >&5
21279 printf "%s\n" "$ax_cv_prog_date_bsd_adjust" >&6; }
21280
21281 fi
21282
21283 if test "$ax_cv_prog_date_gnu_date:$ax_cv_prog_date_gnu_utc" = yes:yes
21284 then :
21285 UTC_DATE_AT="date -u -d@"
21286 else case e in #(
21287 e) if test "x$ax_cv_prog_date_bsd_date" = xyes
21288 then :
21289 UTC_DATE_AT="date -u -r"
21290 else case e in #(
21291 e) as_fn_error $? "date utility unable to convert epoch to UTC" "$LINENO" 5 ;;
21292 esac
21293 fi ;;
21294 esac
21295 fi
21296
21297
21298
21299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying to determine source epoch" >&5
21300 printf "%s\n" "$as_me: trying to determine source epoch" >&6;}
21301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for source epoch in \$SOURCE_EPOCH" >&5
21302 printf %s "checking for source epoch in \$SOURCE_EPOCH... " >&6; }
21303 if test -n "$SOURCE_EPOCH"
21304 then :
21305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21306 printf "%s\n" "yes" >&6; }
21307 else case e in #(
21308 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21309 printf "%s\n" "no" >&6; }
21310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for source epoch in source_epoch file" >&5
21311 printf %s "checking for source epoch in source_epoch file... " >&6; }
21312 if test -e "$srcdir/source_epoch"
21313 then :
21314 read SOURCE_EPOCH <"$srcdir/source_epoch"
21315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21316 printf "%s\n" "yes" >&6; }
21317 else case e in #(
21318 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21319 printf "%s\n" "no" >&6; }
21320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for source epoch baked in by gitattributes export-subst" >&5
21321 printf %s "checking for source epoch baked in by gitattributes export-subst... " >&6; }
21322 SOURCE_EPOCH='$Format:%at$' # template for rewriting by git-archive
21323 case $SOURCE_EPOCH in #(
21324 ?Format:*) :
21325 # was not rewritten
21326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21327 printf "%s\n" "no" >&6; }
21328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for source epoch in \$SOURCE_DATE_EPOCH" >&5
21329 printf %s "checking for source epoch in \$SOURCE_DATE_EPOCH... " >&6; }
21330 if test "x$SOURCE_DATE_EPOCH" != x
21331 then :
21332 SOURCE_EPOCH="$SOURCE_DATE_EPOCH"
21333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21334 printf "%s\n" "yes" >&6; }
21335 else case e in #(
21336 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21337 printf "%s\n" "no" >&6; }
21338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether git log can provide a source epoch" >&5
21339 printf %s "checking whether git log can provide a source epoch... " >&6; }
21340 SOURCE_EPOCH=f${SOURCE_EPOCH#\$F} # convert into git log --pretty format
21341 SOURCE_EPOCH=$(cd "$srcdir" && git log -1 --pretty=${SOURCE_EPOCH%$} 2>/dev/null)
21342 if test -n "$SOURCE_EPOCH"
21343 then :
21344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21345 printf "%s\n" "yes" >&6; }
21346 else case e in #(
21347 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using current time and breaking reproducibility" >&5
21348 printf "%s\n" "no, using current time and breaking reproducibility" >&6; }
21349 SOURCE_EPOCH=$(date +%s) ;;
21350 esac
21351 fi ;;
21352 esac
21353 fi ;; #(
21354 *) :
21355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21356 printf "%s\n" "yes" >&6; }
21357 ;;
21358 esac ;;
21359 esac
21360 fi
21361 ;;
21362 esac
21363 fi
21364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using source epoch $($UTC_DATE_AT$SOURCE_EPOCH +'%F %T %Z')" >&5
21365 printf "%s\n" "$as_me: using source epoch $($UTC_DATE_AT$SOURCE_EPOCH +'%F %T %Z')" >&6;}
21366
21367 ac_config_files="$ac_config_files Makefile libnozzle/Makefile libnozzle/libnozzle.pc libnozzle/tests/Makefile libknet/Makefile libknet/libknet.pc libknet/tests/Makefile man/Makefile man/Doxyfile-knet man/Doxyfile-nozzle"
21368
21369
21370 if test "x$VERSION" = "xUNKNOWN"; then
21371 as_fn_error $? "
21372 configure was unable to determine the source tree's current version. This
21373 generally happens when using git archive (or the github download button)
21374 generated tarball/zip file. In order to workaround this issue, either use
21375 git clone https://github.com/kronosnet/kronosnet.git or use an official
21376 release tarball, available at https://kronosnet.org/releases/.
21377 Alternatively you can add a compatible version in a .tarball-version file
21378 at the top of the source tree, wipe your autom4te.cache dir and generated
21379 configure, and rerun autogen.sh." "$LINENO" 5
21380 fi
21381
21382 cat >confcache <<\_ACEOF
21383 # This file is a shell script that caches the results of configure
21384 # tests run on this system so they can be shared between configure
21385 # scripts and configure runs, see configure's option --config-cache.
21386 # It is not useful on other systems. If it contains results you don't
21387 # want to keep, you may remove or edit it.
21388 #
21389 # config.status only pays attention to the cache file if you give it
21390 # the --recheck option to rerun configure.
21391 #
21392 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
21393 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
21394 # following values.
21395
21396 _ACEOF
21397
21398 # The following way of writing the cache mishandles newlines in values,
21399 # but we know of no workaround that is simple, portable, and efficient.
21400 # So, we kill variables containing newlines.
21401 # Ultrix sh set writes to stderr and can't be redirected directly,
21402 # and sets the high bit in the cache file unless we assign to the vars.
21403 (
21404 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21405 eval ac_val=\$$ac_var
21406 case $ac_val in #(
21407 *${as_nl}*)
21408 case $ac_var in #(
21409 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21410 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21411 esac
21412 case $ac_var in #(
21413 _ | IFS | as_nl) ;; #(
21414 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21415 *) { eval $ac_var=; unset $ac_var;} ;;
21416 esac ;;
21417 esac
21418 done
21419
21420 (set) 2>&1 |
21421 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21422 *${as_nl}ac_space=\ *)
21423 # 'set' does not quote correctly, so add quotes: double-quote
21424 # substitution turns \\\\ into \\, and sed turns \\ into \.
21425 sed -n \
21426 "s/'/'\\\\''/g;
21427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21428 ;; #(
21429 *)
21430 # 'set' quotes correctly as required by POSIX, so do not add quotes.
21431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21432 ;;
21433 esac |
21434 sort
21435 ) |
21436 sed '
21437 /^ac_cv_env_/b end
21438 t clear
21439 :clear
21440 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21441 t end
21442 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21443 :end' >>confcache
21444 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21445 if test -w "$cache_file"; then
21446 if test "x$cache_file" != "x/dev/null"; then
21447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21448 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21449 if test ! -f "$cache_file" || test -h "$cache_file"; then
21450 cat confcache >"$cache_file"
21451 else
21452 case $cache_file in #(
21453 */* | ?:*)
21454 mv -f confcache "$cache_file"$$ &&
21455 mv -f "$cache_file"$$ "$cache_file" ;; #(
21456 *)
21457 mv -f confcache "$cache_file" ;;
21458 esac
21459 fi
21460 fi
21461 else
21462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21463 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21464 fi
21465 fi
21466 rm -f confcache
21467
21468 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21469 # Let make expand exec_prefix.
21470 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21471
21472 DEFS=-DHAVE_CONFIG_H
21473
21474 ac_libobjs=
21475 ac_ltlibobjs=
21476 U=
21477 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21478 # 1. Remove the extension, and $U if already installed.
21479 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21480 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21481 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21482 # will be set to the directory where LIBOBJS objects are built.
21483 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21484 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21485 done
21486 LIBOBJS=$ac_libobjs
21487
21488 LTLIBOBJS=$ac_ltlibobjs
21489
21490
21491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21492 printf %s "checking that generated files are newer than configure... " >&6; }
21493 if test -n "$am_sleep_pid"; then
21494 # Hide warnings about reused PIDs.
21495 wait $am_sleep_pid 2>/dev/null
21496 fi
21497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21498 printf "%s\n" "done" >&6; }
21499 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21500 as_fn_error $? "conditional \"AMDEP\" was never defined.
21501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21502 fi
21503 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21504 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21506 fi
21507 case $enable_silent_rules in # (((
21508 yes) AM_DEFAULT_VERBOSITY=0;;
21509 no) AM_DEFAULT_VERBOSITY=1;;
21510 esac
21511 if test $am_cv_make_support_nested_variables = yes; then
21512 AM_V='$(V)'
21513 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21514 else
21515 AM_V=$AM_DEFAULT_VERBOSITY
21516 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21517 fi
21518
21519 if test -n "$EXEEXT"; then
21520 am__EXEEXT_TRUE=
21521 am__EXEEXT_FALSE='#'
21522 else
21523 am__EXEEXT_TRUE='#'
21524 am__EXEEXT_FALSE=
21525 fi
21526
21527 if test -z "${HAS_VALGRIND_TRUE}" && test -z "${HAS_VALGRIND_FALSE}"; then
21528 as_fn_error $? "conditional \"HAS_VALGRIND\" was never defined.
21529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21530 fi
21531 if test -z "${HAS_COVBUILD_TRUE}" && test -z "${HAS_COVBUILD_FALSE}"; then
21532 as_fn_error $? "conditional \"HAS_COVBUILD\" was never defined.
21533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21534 fi
21535 if test -z "${HAS_COVANALYZE_TRUE}" && test -z "${HAS_COVANALYZE_FALSE}"; then
21536 as_fn_error $? "conditional \"HAS_COVANALYZE\" was never defined.
21537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21538 fi
21539 if test -z "${HAS_COVFORMATERRORS_TRUE}" && test -z "${HAS_COVFORMATERRORS_FALSE}"; then
21540 as_fn_error $? "conditional \"HAS_COVFORMATERRORS\" was never defined.
21541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21542 fi
21543 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
21544 as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
21545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21546 fi
21547 if test -z "${BUILD_SCTP_TRUE}" && test -z "${BUILD_SCTP_FALSE}"; then
21548 as_fn_error $? "conditional \"BUILD_SCTP\" was never defined.
21549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21550 fi
21551 if test -z "${RUN_FUN_TESTS_TRUE}" && test -z "${RUN_FUN_TESTS_FALSE}"; then
21552 as_fn_error $? "conditional \"RUN_FUN_TESTS\" was never defined.
21553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21554 fi
21555 if test -z "${BUILD_CRYPTO_NSS_TRUE}" && test -z "${BUILD_CRYPTO_NSS_FALSE}"; then
21556 as_fn_error $? "conditional \"BUILD_CRYPTO_NSS\" was never defined.
21557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21558 fi
21559 if test -z "${BUILD_CRYPTO_OPENSSL_TRUE}" && test -z "${BUILD_CRYPTO_OPENSSL_FALSE}"; then
21560 as_fn_error $? "conditional \"BUILD_CRYPTO_OPENSSL\" was never defined.
21561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21562 fi
21563 if test -z "${BUILD_COMPRESS_ZSTD_TRUE}" && test -z "${BUILD_COMPRESS_ZSTD_FALSE}"; then
21564 as_fn_error $? "conditional \"BUILD_COMPRESS_ZSTD\" was never defined.
21565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21566 fi
21567 if test -z "${BUILD_COMPRESS_ZLIB_TRUE}" && test -z "${BUILD_COMPRESS_ZLIB_FALSE}"; then
21568 as_fn_error $? "conditional \"BUILD_COMPRESS_ZLIB\" was never defined.
21569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21570 fi
21571 if test -z "${BUILD_COMPRESS_LZ4_TRUE}" && test -z "${BUILD_COMPRESS_LZ4_FALSE}"; then
21572 as_fn_error $? "conditional \"BUILD_COMPRESS_LZ4\" was never defined.
21573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21574 fi
21575 if test -z "${BUILD_COMPRESS_LZO2_TRUE}" && test -z "${BUILD_COMPRESS_LZO2_FALSE}"; then
21576 as_fn_error $? "conditional \"BUILD_COMPRESS_LZO2\" was never defined.
21577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21578 fi
21579 if test -z "${BUILD_COMPRESS_LZMA_TRUE}" && test -z "${BUILD_COMPRESS_LZMA_FALSE}"; then
21580 as_fn_error $? "conditional \"BUILD_COMPRESS_LZMA\" was never defined.
21581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21582 fi
21583 if test -z "${BUILD_COMPRESS_BZIP2_TRUE}" && test -z "${BUILD_COMPRESS_BZIP2_FALSE}"; then
21584 as_fn_error $? "conditional \"BUILD_COMPRESS_BZIP2\" was never defined.
21585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21586 fi
21587 if test -z "${INSTALL_TESTS_TRUE}" && test -z "${INSTALL_TESTS_FALSE}"; then
21588 as_fn_error $? "conditional \"INSTALL_TESTS\" was never defined.
21589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21590 fi
21591 if test -z "${BUILD_RUNAUTOGEN_TRUE}" && test -z "${BUILD_RUNAUTOGEN_FALSE}"; then
21592 as_fn_error $? "conditional \"BUILD_RUNAUTOGEN\" was never defined.
21593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21594 fi
21595 if test -z "${BUILD_RPM_DEBUGINFO_TRUE}" && test -z "${BUILD_RPM_DEBUGINFO_FALSE}"; then
21596 as_fn_error $? "conditional \"BUILD_RPM_DEBUGINFO\" was never defined.
21597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21598 fi
21599 if test -z "${OVERRIDE_RPM_DEBUGINFO_TRUE}" && test -z "${OVERRIDE_RPM_DEBUGINFO_FALSE}"; then
21600 as_fn_error $? "conditional \"OVERRIDE_RPM_DEBUGINFO\" was never defined.
21601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21602 fi
21603 if test -z "${BUILD_LIBNOZZLE_TRUE}" && test -z "${BUILD_LIBNOZZLE_FALSE}"; then
21604 as_fn_error $? "conditional \"BUILD_LIBNOZZLE\" was never defined.
21605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21606 fi
21607 if test -z "${BUILD_FOR_SOLARIS_TRUE}" && test -z "${BUILD_FOR_SOLARIS_FALSE}"; then
21608 as_fn_error $? "conditional \"BUILD_FOR_SOLARIS\" was never defined.
21609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21610 fi
21611 if test -z "${BUILD_DOXYXML_TRUE}" && test -z "${BUILD_DOXYXML_FALSE}"; then
21612 as_fn_error $? "conditional \"BUILD_DOXYXML\" was never defined.
21613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21614 fi
21615 if test -z "${HAS_ANNOCHECK_TRUE}" && test -z "${HAS_ANNOCHECK_FALSE}"; then
21616 as_fn_error $? "conditional \"HAS_ANNOCHECK\" was never defined.
21617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21618 fi
21619
21620 : "${CONFIG_STATUS=./config.status}"
21621 ac_write_fail=0
21622 ac_clean_files_save=$ac_clean_files
21623 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21625 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21626 as_write_fail=0
21627 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21628 #! $SHELL
21629 # Generated by $as_me.
21630 # Run this file to recreate the current configuration.
21631 # Compiler output produced by configure, useful for debugging
21632 # configure, is in config.log if it exists.
21633
21634 debug=false
21635 ac_cs_recheck=false
21636 ac_cs_silent=false
21637
21638 SHELL=\${CONFIG_SHELL-$SHELL}
21639 export SHELL
21640 _ASEOF
21641 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21642 ## -------------------- ##
21643 ## M4sh Initialization. ##
21644 ## -------------------- ##
21645
21646 # Be more Bourne compatible
21647 DUALCASE=1; export DUALCASE # for MKS sh
21648 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21649 then :
21650 emulate sh
21651 NULLCMD=:
21652 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21653 # is contrary to our usage. Disable this feature.
21654 alias -g '${1+"$@"}'='"$@"'
21655 setopt NO_GLOB_SUBST
21656 else case e in #(
21657 e) case `(set -o) 2>/dev/null` in #(
21658 *posix*) :
21659 set -o posix ;; #(
21660 *) :
21661 ;;
21662 esac ;;
21663 esac
21664 fi
21665
21666
21667
21668 # Reset variables that may have inherited troublesome values from
21669 # the environment.
21670
21671 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21672 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21673 # side effect of setting IFS to empty, thus disabling word splitting.)
21674 # Quoting is to prevent editors from complaining about space-tab.
21675 as_nl='
21676 '
21677 export as_nl
21678 IFS=" "" $as_nl"
21679
21680 PS1='$ '
21681 PS2='> '
21682 PS4='+ '
21683
21684 # Ensure predictable behavior from utilities with locale-dependent output.
21685 LC_ALL=C
21686 export LC_ALL
21687 LANGUAGE=C
21688 export LANGUAGE
21689
21690 # We cannot yet rely on "unset" to work, but we need these variables
21691 # to be unset--not just set to an empty or harmless value--now, to
21692 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21693 # also avoids known problems related to "unset" and subshell syntax
21694 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21695 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21696 do eval test \${$as_var+y} \
21697 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21698 done
21699
21700 # Ensure that fds 0, 1, and 2 are open.
21701 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21702 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21703 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21704
21705 # The user is always right.
21706 if ${PATH_SEPARATOR+false} :; then
21707 PATH_SEPARATOR=:
21708 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21709 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21710 PATH_SEPARATOR=';'
21711 }
21712 fi
21713
21714
21715 # Find who we are. Look in the path if we contain no directory separator.
21716 as_myself=
21717 case $0 in #((
21718 *[\\/]* ) as_myself=$0 ;;
21719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21720 for as_dir in $PATH
21721 do
21722 IFS=$as_save_IFS
21723 case $as_dir in #(((
21724 '') as_dir=./ ;;
21725 */) ;;
21726 *) as_dir=$as_dir/ ;;
21727 esac
21728 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21729 done
21730 IFS=$as_save_IFS
21731
21732 ;;
21733 esac
21734 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21735 # in which case we are not to be found in the path.
21736 if test "x$as_myself" = x; then
21737 as_myself=$0
21738 fi
21739 if test ! -f "$as_myself"; then
21740 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21741 exit 1
21742 fi
21743
21744
21745
21746 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21747 # ----------------------------------------
21748 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21749 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21750 # script with STATUS, using 1 if that was 0.
21751 as_fn_error ()
21752 {
21753 as_status=$1; test $as_status -eq 0 && as_status=1
21754 if test "$4"; then
21755 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21757 fi
21758 printf "%s\n" "$as_me: error: $2" >&2
21759 as_fn_exit $as_status
21760 } # as_fn_error
21761
21762
21763 # as_fn_set_status STATUS
21764 # -----------------------
21765 # Set $? to STATUS, without forking.
21766 as_fn_set_status ()
21767 {
21768 return $1
21769 } # as_fn_set_status
21770
21771 # as_fn_exit STATUS
21772 # -----------------
21773 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21774 as_fn_exit ()
21775 {
21776 set +e
21777 as_fn_set_status $1
21778 exit $1
21779 } # as_fn_exit
21780
21781 # as_fn_unset VAR
21782 # ---------------
21783 # Portably unset VAR.
21784 as_fn_unset ()
21785 {
21786 { eval $1=; unset $1;}
21787 }
21788 as_unset=as_fn_unset
21789
21790 # as_fn_append VAR VALUE
21791 # ----------------------
21792 # Append the text in VALUE to the end of the definition contained in VAR. Take
21793 # advantage of any shell optimizations that allow amortized linear growth over
21794 # repeated appends, instead of the typical quadratic growth present in naive
21795 # implementations.
21796 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21797 then :
21798 eval 'as_fn_append ()
21799 {
21800 eval $1+=\$2
21801 }'
21802 else case e in #(
21803 e) as_fn_append ()
21804 {
21805 eval $1=\$$1\$2
21806 } ;;
21807 esac
21808 fi # as_fn_append
21809
21810 # as_fn_arith ARG...
21811 # ------------------
21812 # Perform arithmetic evaluation on the ARGs, and store the result in the
21813 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21814 # must be portable across $(()) and expr.
21815 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21816 then :
21817 eval 'as_fn_arith ()
21818 {
21819 as_val=$(( $* ))
21820 }'
21821 else case e in #(
21822 e) as_fn_arith ()
21823 {
21824 as_val=`expr "$@" || test $? -eq 1`
21825 } ;;
21826 esac
21827 fi # as_fn_arith
21828
21829
21830 if expr a : '\(a\)' >/dev/null 2>&1 &&
21831 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21832 as_expr=expr
21833 else
21834 as_expr=false
21835 fi
21836
21837 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21838 as_basename=basename
21839 else
21840 as_basename=false
21841 fi
21842
21843 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21844 as_dirname=dirname
21845 else
21846 as_dirname=false
21847 fi
21848
21849 as_me=`$as_basename -- "$0" ||
21850 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21851 X"$0" : 'X\(//\)$' \| \
21852 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21853 printf "%s\n" X/"$0" |
21854 sed '/^.*\/\([^/][^/]*\)\/*$/{
21855 s//\1/
21856 q
21857 }
21858 /^X\/\(\/\/\)$/{
21859 s//\1/
21860 q
21861 }
21862 /^X\/\(\/\).*/{
21863 s//\1/
21864 q
21865 }
21866 s/.*/./; q'`
21867
21868 # Avoid depending upon Character Ranges.
21869 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21870 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21871 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21872 as_cr_digits='0123456789'
21873 as_cr_alnum=$as_cr_Letters$as_cr_digits
21874
21875
21876 # Determine whether it's possible to make 'echo' print without a newline.
21877 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21878 # for compatibility with existing Makefiles.
21879 ECHO_C= ECHO_N= ECHO_T=
21880 case `echo -n x` in #(((((
21881 -n*)
21882 case `echo 'xy\c'` in
21883 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21884 xy) ECHO_C='\c';;
21885 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21886 ECHO_T=' ';;
21887 esac;;
21888 *)
21889 ECHO_N='-n';;
21890 esac
21891
21892 # For backward compatibility with old third-party macros, we provide
21893 # the shell variables $as_echo and $as_echo_n. New code should use
21894 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21895 as_echo='printf %s\n'
21896 as_echo_n='printf %s'
21897
21898 rm -f conf$$ conf$$.exe conf$$.file
21899 if test -d conf$$.dir; then
21900 rm -f conf$$.dir/conf$$.file
21901 else
21902 rm -f conf$$.dir
21903 mkdir conf$$.dir 2>/dev/null
21904 fi
21905 if (echo >conf$$.file) 2>/dev/null; then
21906 if ln -s conf$$.file conf$$ 2>/dev/null; then
21907 as_ln_s='ln -s'
21908 # ... but there are two gotchas:
21909 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21910 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21911 # In both cases, we have to default to 'cp -pR'.
21912 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21913 as_ln_s='cp -pR'
21914 elif ln conf$$.file conf$$ 2>/dev/null; then
21915 as_ln_s=ln
21916 else
21917 as_ln_s='cp -pR'
21918 fi
21919 else
21920 as_ln_s='cp -pR'
21921 fi
21922 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21923 rmdir conf$$.dir 2>/dev/null
21924
21925
21926 # as_fn_mkdir_p
21927 # -------------
21928 # Create "$as_dir" as a directory, including parents if necessary.
21929 as_fn_mkdir_p ()
21930 {
21931
21932 case $as_dir in #(
21933 -*) as_dir=./$as_dir;;
21934 esac
21935 test -d "$as_dir" || eval $as_mkdir_p || {
21936 as_dirs=
21937 while :; do
21938 case $as_dir in #(
21939 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21940 *) as_qdir=$as_dir;;
21941 esac
21942 as_dirs="'$as_qdir' $as_dirs"
21943 as_dir=`$as_dirname -- "$as_dir" ||
21944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21945 X"$as_dir" : 'X\(//\)[^/]' \| \
21946 X"$as_dir" : 'X\(//\)$' \| \
21947 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21948 printf "%s\n" X"$as_dir" |
21949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21950 s//\1/
21951 q
21952 }
21953 /^X\(\/\/\)[^/].*/{
21954 s//\1/
21955 q
21956 }
21957 /^X\(\/\/\)$/{
21958 s//\1/
21959 q
21960 }
21961 /^X\(\/\).*/{
21962 s//\1/
21963 q
21964 }
21965 s/.*/./; q'`
21966 test -d "$as_dir" && break
21967 done
21968 test -z "$as_dirs" || eval "mkdir $as_dirs"
21969 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21970
21971
21972 } # as_fn_mkdir_p
21973 if mkdir -p . 2>/dev/null; then
21974 as_mkdir_p='mkdir -p "$as_dir"'
21975 else
21976 test -d ./-p && rmdir ./-p
21977 as_mkdir_p=false
21978 fi
21979
21980
21981 # as_fn_executable_p FILE
21982 # -----------------------
21983 # Test if FILE is an executable regular file.
21984 as_fn_executable_p ()
21985 {
21986 test -f "$1" && test -x "$1"
21987 } # as_fn_executable_p
21988 as_test_x='test -x'
21989 as_executable_p=as_fn_executable_p
21990
21991 # Sed expression to map a string onto a valid CPP name.
21992 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21993 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21994
21995 # Sed expression to map a string onto a valid variable name.
21996 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21997 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21998
21999
22000 exec 6>&1
22001 ## ----------------------------------- ##
22002 ## Main body of $CONFIG_STATUS script. ##
22003 ## ----------------------------------- ##
22004 _ASEOF
22005 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22006
22007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22008 # Save the log message, to keep $0 and so on meaningful, and to
22009 # report actual input values of CONFIG_FILES etc. instead of their
22010 # values after options handling.
22011 ac_log="
22012 This file was extended by kronosnet $as_me 1.33, which was
22013 generated by GNU Autoconf 2.72. Invocation command line was
22014
22015 CONFIG_FILES = $CONFIG_FILES
22016 CONFIG_HEADERS = $CONFIG_HEADERS
22017 CONFIG_LINKS = $CONFIG_LINKS
22018 CONFIG_COMMANDS = $CONFIG_COMMANDS
22019 $ $0 $@
22020
22021 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22022 "
22023
22024 _ACEOF
22025
22026 case $ac_config_files in *"
22027 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22028 esac
22029
22030 case $ac_config_headers in *"
22031 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22032 esac
22033
22034
22035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22036 # Files that config.status was made for.
22037 config_files="$ac_config_files"
22038 config_headers="$ac_config_headers"
22039 config_commands="$ac_config_commands"
22040
22041 _ACEOF
22042
22043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22044 ac_cs_usage="\
22045 '$as_me' instantiates files and other configuration actions
22046 from templates according to the current configuration. Unless the files
22047 and actions are specified as TAGs, all are instantiated by default.
22048
22049 Usage: $0 [OPTION]... [TAG]...
22050
22051 -h, --help print this help, then exit
22052 -V, --version print version number and configuration settings, then exit
22053 --config print configuration, then exit
22054 -q, --quiet, --silent
22055 do not print progress messages
22056 -d, --debug don't remove temporary files
22057 --recheck update $as_me by reconfiguring in the same conditions
22058 --file=FILE[:TEMPLATE]
22059 instantiate the configuration file FILE
22060 --header=FILE[:TEMPLATE]
22061 instantiate the configuration header FILE
22062
22063 Configuration files:
22064 $config_files
22065
22066 Configuration headers:
22067 $config_headers
22068
22069 Configuration commands:
22070 $config_commands
22071
22072 Report bugs to <[email protected]>."
22073
22074 _ACEOF
22075 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22076 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22078 ac_cs_config='$ac_cs_config_escaped'
22079 ac_cs_version="\\
22080 kronosnet config.status 1.33
22081 configured by $0, generated by GNU Autoconf 2.72,
22082 with options \\"\$ac_cs_config\\"
22083
22084 Copyright (C) 2023 Free Software Foundation, Inc.
22085 This config.status script is free software; the Free Software Foundation
22086 gives unlimited permission to copy, distribute and modify it."
22087
22088 ac_pwd='$ac_pwd'
22089 srcdir='$srcdir'
22090 INSTALL='$INSTALL'
22091 MKDIR_P='$MKDIR_P'
22092 AWK='$AWK'
22093 test -n "\$AWK" || AWK=awk
22094 _ACEOF
22095
22096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22097 # The default lists apply if the user does not specify any file.
22098 ac_need_defaults=:
22099 while test $# != 0
22100 do
22101 case $1 in
22102 --*=?*)
22103 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22104 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22105 ac_shift=:
22106 ;;
22107 --*=)
22108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22109 ac_optarg=
22110 ac_shift=:
22111 ;;
22112 *)
22113 ac_option=$1
22114 ac_optarg=$2
22115 ac_shift=shift
22116 ;;
22117 esac
22118
22119 case $ac_option in
22120 # Handling of the options.
22121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22122 ac_cs_recheck=: ;;
22123 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22124 printf "%s\n" "$ac_cs_version"; exit ;;
22125 --config | --confi | --conf | --con | --co | --c )
22126 printf "%s\n" "$ac_cs_config"; exit ;;
22127 --debug | --debu | --deb | --de | --d | -d )
22128 debug=: ;;
22129 --file | --fil | --fi | --f )
22130 $ac_shift
22131 case $ac_optarg in
22132 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22133 '') as_fn_error $? "missing file argument" ;;
22134 esac
22135 as_fn_append CONFIG_FILES " '$ac_optarg'"
22136 ac_need_defaults=false;;
22137 --header | --heade | --head | --hea )
22138 $ac_shift
22139 case $ac_optarg in
22140 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22141 esac
22142 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22143 ac_need_defaults=false;;
22144 --he | --h)
22145 # Conflict between --help and --header
22146 as_fn_error $? "ambiguous option: '$1'
22147 Try '$0 --help' for more information.";;
22148 --help | --hel | -h )
22149 printf "%s\n" "$ac_cs_usage"; exit ;;
22150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22151 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22152 ac_cs_silent=: ;;
22153
22154 # This is an error.
22155 -*) as_fn_error $? "unrecognized option: '$1'
22156 Try '$0 --help' for more information." ;;
22157
22158 *) as_fn_append ac_config_targets " $1"
22159 ac_need_defaults=false ;;
22160
22161 esac
22162 shift
22163 done
22164
22165 ac_configure_extra_args=
22166
22167 if $ac_cs_silent; then
22168 exec 6>/dev/null
22169 ac_configure_extra_args="$ac_configure_extra_args --silent"
22170 fi
22171
22172 _ACEOF
22173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22174 if \$ac_cs_recheck; then
22175 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22176 shift
22177 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22178 CONFIG_SHELL='$SHELL'
22179 export CONFIG_SHELL
22180 exec "\$@"
22181 fi
22182
22183 _ACEOF
22184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22185 exec 5>>config.log
22186 {
22187 echo
22188 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22189 ## Running $as_me. ##
22190 _ASBOX
22191 printf "%s\n" "$ac_log"
22192 } >&5
22193
22194 _ACEOF
22195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22196 #
22197 # INIT-COMMANDS
22198 #
22199 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22200
22201
22202 # The HP-UX ksh and POSIX shell print the target directory to stdout
22203 # if CDPATH is set.
22204 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22205
22206 sed_quote_subst='$sed_quote_subst'
22207 double_quote_subst='$double_quote_subst'
22208 delay_variable_subst='$delay_variable_subst'
22209 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22210 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22211 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22212 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22213 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22214 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22215 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22216 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22217 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22218 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22219 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22220 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22221 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22222 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22223 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22224 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22225 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22226 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22227 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22228 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22229 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22230 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22231 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22232 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22233 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22234 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22235 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22236 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22237 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22238 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22239 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22240 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22241 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22242 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22243 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
22244 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22245 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22246 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22247 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22248 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22249 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22250 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22251 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22252 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22253 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22254 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22255 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22256 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22257 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22258 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22259 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22260 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22261 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22262 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22263 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22264 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22265 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22266 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22267 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22268 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22269 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"`'
22270 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22271 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22272 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22273 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22274 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22275 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22276 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22277 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22278 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22279 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22280 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22281 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22282 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22283 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22284 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22285 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22286 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22287 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22288 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22289 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22290 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22291 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22292 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22293 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22294 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22295 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22296 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22297 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22298 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22299 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22300 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22301 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22302 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22303 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22304 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22305 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22306 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22307 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22308 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22309 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22310 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22311 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22312 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22313 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22314 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22315 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22316 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22317 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22318 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22319 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22320 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22321 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22322 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22323 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22324 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22325 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22326 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22327 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22328 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22329 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22330 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22331 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22332 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22333 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22334 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22335 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22336 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22337 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22338 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22339 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22340 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22341 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22342 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22343 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22344 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22345 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22346
22347 LTCC='$LTCC'
22348 LTCFLAGS='$LTCFLAGS'
22349 compiler='$compiler_DEFAULT'
22350
22351 # A function that is used when there is no print builtin or printf.
22352 func_fallback_echo ()
22353 {
22354 eval 'cat <<_LTECHO_EOF
22355 \$1
22356 _LTECHO_EOF'
22357 }
22358
22359 # Quote evaled strings.
22360 for var in SHELL \
22361 ECHO \
22362 PATH_SEPARATOR \
22363 SED \
22364 GREP \
22365 EGREP \
22366 FGREP \
22367 LD \
22368 NM \
22369 LN_S \
22370 lt_SP2NL \
22371 lt_NL2SP \
22372 reload_flag \
22373 FILECMD \
22374 OBJDUMP \
22375 deplibs_check_method \
22376 file_magic_cmd \
22377 file_magic_glob \
22378 want_nocaseglob \
22379 DLLTOOL \
22380 sharedlib_from_linklib_cmd \
22381 AR \
22382 archiver_list_spec \
22383 STRIP \
22384 RANLIB \
22385 CC \
22386 CFLAGS \
22387 compiler \
22388 lt_cv_sys_global_symbol_pipe \
22389 lt_cv_sys_global_symbol_to_cdecl \
22390 lt_cv_sys_global_symbol_to_import \
22391 lt_cv_sys_global_symbol_to_c_name_address \
22392 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22393 lt_cv_nm_interface \
22394 nm_file_list_spec \
22395 lt_cv_truncate_bin \
22396 lt_prog_compiler_no_builtin_flag \
22397 lt_prog_compiler_pic \
22398 lt_prog_compiler_wl \
22399 lt_prog_compiler_static \
22400 lt_cv_prog_compiler_c_o \
22401 need_locks \
22402 MANIFEST_TOOL \
22403 DSYMUTIL \
22404 NMEDIT \
22405 LIPO \
22406 OTOOL \
22407 OTOOL64 \
22408 shrext_cmds \
22409 export_dynamic_flag_spec \
22410 whole_archive_flag_spec \
22411 compiler_needs_object \
22412 with_gnu_ld \
22413 allow_undefined_flag \
22414 no_undefined_flag \
22415 hardcode_libdir_flag_spec \
22416 hardcode_libdir_separator \
22417 exclude_expsyms \
22418 include_expsyms \
22419 file_list_spec \
22420 variables_saved_for_relink \
22421 libname_spec \
22422 library_names_spec \
22423 soname_spec \
22424 install_override_mode \
22425 finish_eval \
22426 old_striplib \
22427 striplib; do
22428 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22429 *[\\\\\\\`\\"\\\$]*)
22430 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22431 ;;
22432 *)
22433 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22434 ;;
22435 esac
22436 done
22437
22438 # Double-quote double-evaled strings.
22439 for var in reload_cmds \
22440 old_postinstall_cmds \
22441 old_postuninstall_cmds \
22442 old_archive_cmds \
22443 extract_expsyms_cmds \
22444 old_archive_from_new_cmds \
22445 old_archive_from_expsyms_cmds \
22446 archive_cmds \
22447 archive_expsym_cmds \
22448 module_cmds \
22449 module_expsym_cmds \
22450 export_symbols_cmds \
22451 prelink_cmds \
22452 postlink_cmds \
22453 postinstall_cmds \
22454 postuninstall_cmds \
22455 finish_cmds \
22456 sys_lib_search_path_spec \
22457 configure_time_dlsearch_path \
22458 configure_time_lt_sys_library_path; do
22459 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22460 *[\\\\\\\`\\"\\\$]*)
22461 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22462 ;;
22463 *)
22464 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22465 ;;
22466 esac
22467 done
22468
22469 ac_aux_dir='$ac_aux_dir'
22470
22471 # See if we are running on zsh, and set the options that allow our
22472 # commands through without removal of \ escapes INIT.
22473 if test -n "\${ZSH_VERSION+set}"; then
22474 setopt NO_GLOB_SUBST
22475 fi
22476
22477
22478 PACKAGE='$PACKAGE'
22479 VERSION='$VERSION'
22480 RM='$RM'
22481 ofile='$ofile'
22482
22483
22484
22485
22486 _ACEOF
22487
22488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22489
22490 # Handling of arguments.
22491 for ac_config_target in $ac_config_targets
22492 do
22493 case $ac_config_target in
22494 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22495 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22496 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22497 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22498 "libnozzle/Makefile") CONFIG_FILES="$CONFIG_FILES libnozzle/Makefile" ;;
22499 "libnozzle/libnozzle.pc") CONFIG_FILES="$CONFIG_FILES libnozzle/libnozzle.pc" ;;
22500 "libnozzle/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libnozzle/tests/Makefile" ;;
22501 "libknet/Makefile") CONFIG_FILES="$CONFIG_FILES libknet/Makefile" ;;
22502 "libknet/libknet.pc") CONFIG_FILES="$CONFIG_FILES libknet/libknet.pc" ;;
22503 "libknet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libknet/tests/Makefile" ;;
22504 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22505 "man/Doxyfile-knet") CONFIG_FILES="$CONFIG_FILES man/Doxyfile-knet" ;;
22506 "man/Doxyfile-nozzle") CONFIG_FILES="$CONFIG_FILES man/Doxyfile-nozzle" ;;
22507
22508 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22509 esac
22510 done
22511
22512
22513 # If the user did not use the arguments to specify the items to instantiate,
22514 # then the envvar interface is used. Set only those that are not.
22515 # We use the long form for the default assignment because of an extremely
22516 # bizarre bug on SunOS 4.1.3.
22517 if $ac_need_defaults; then
22518 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22519 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22520 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22521 fi
22522
22523 # Have a temporary directory for convenience. Make it in the build tree
22524 # simply because there is no reason against having it here, and in addition,
22525 # creating and moving files from /tmp can sometimes cause problems.
22526 # Hook for its removal unless debugging.
22527 # Note that there is a small window in which the directory will not be cleaned:
22528 # after its creation but before its name has been assigned to '$tmp'.
22529 $debug ||
22530 {
22531 tmp= ac_tmp=
22532 trap 'exit_status=$?
22533 : "${ac_tmp:=$tmp}"
22534 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22535 ' 0
22536 trap 'as_fn_exit 1' 1 2 13 15
22537 }
22538 # Create a (secure) tmp directory for tmp files.
22539
22540 {
22541 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22542 test -d "$tmp"
22543 } ||
22544 {
22545 tmp=./conf$$-$RANDOM
22546 (umask 077 && mkdir "$tmp")
22547 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22548 ac_tmp=$tmp
22549
22550 # Set up the scripts for CONFIG_FILES section.
22551 # No need to generate them if there are no CONFIG_FILES.
22552 # This happens for instance with './config.status config.h'.
22553 if test -n "$CONFIG_FILES"; then
22554
22555
22556 ac_cr=`echo X | tr X '\015'`
22557 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22558 # But we know of no other shell where ac_cr would be empty at this
22559 # point, so we can use a bashism as a fallback.
22560 if test "x$ac_cr" = x; then
22561 eval ac_cr=\$\'\\r\'
22562 fi
22563 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22564 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22565 ac_cs_awk_cr='\\r'
22566 else
22567 ac_cs_awk_cr=$ac_cr
22568 fi
22569
22570 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22571 _ACEOF
22572
22573
22574 {
22575 echo "cat >conf$$subs.awk <<_ACEOF" &&
22576 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22577 echo "_ACEOF"
22578 } >conf$$subs.sh ||
22579 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22580 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22581 ac_delim='%!_!# '
22582 for ac_last_try in false false false false false :; do
22583 . ./conf$$subs.sh ||
22584 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22585
22586 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22587 if test $ac_delim_n = $ac_delim_num; then
22588 break
22589 elif $ac_last_try; then
22590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22591 else
22592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22593 fi
22594 done
22595 rm -f conf$$subs.sh
22596
22597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22598 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22599 _ACEOF
22600 sed -n '
22601 h
22602 s/^/S["/; s/!.*/"]=/
22603 p
22604 g
22605 s/^[^!]*!//
22606 :repl
22607 t repl
22608 s/'"$ac_delim"'$//
22609 t delim
22610 :nl
22611 h
22612 s/\(.\{148\}\)..*/\1/
22613 t more1
22614 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22615 p
22616 n
22617 b repl
22618 :more1
22619 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22620 p
22621 g
22622 s/.\{148\}//
22623 t nl
22624 :delim
22625 h
22626 s/\(.\{148\}\)..*/\1/
22627 t more2
22628 s/["\\]/\\&/g; s/^/"/; s/$/"/
22629 p
22630 b
22631 :more2
22632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22633 p
22634 g
22635 s/.\{148\}//
22636 t delim
22637 ' <conf$$subs.awk | sed '
22638 /^[^""]/{
22639 N
22640 s/\n//
22641 }
22642 ' >>$CONFIG_STATUS || ac_write_fail=1
22643 rm -f conf$$subs.awk
22644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22645 _ACAWK
22646 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22647 for (key in S) S_is_set[key] = 1
22648 FS = ""
22649
22650 }
22651 {
22652 line = $ 0
22653 nfields = split(line, field, "@")
22654 substed = 0
22655 len = length(field[1])
22656 for (i = 2; i < nfields; i++) {
22657 key = field[i]
22658 keylen = length(key)
22659 if (S_is_set[key]) {
22660 value = S[key]
22661 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22662 len += length(value) + length(field[++i])
22663 substed = 1
22664 } else
22665 len += 1 + keylen
22666 }
22667
22668 print line
22669 }
22670
22671 _ACAWK
22672 _ACEOF
22673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22674 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22675 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22676 else
22677 cat
22678 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22679 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22680 _ACEOF
22681
22682 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22683 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22684 # trailing colons and then remove the whole line if VPATH becomes empty
22685 # (actually we leave an empty line to preserve line numbers).
22686 if test "x$srcdir" = x.; then
22687 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22688 h
22689 s///
22690 s/^/:/
22691 s/[ ]*$/:/
22692 s/:\$(srcdir):/:/g
22693 s/:\${srcdir}:/:/g
22694 s/:@srcdir@:/:/g
22695 s/^:*//
22696 s/:*$//
22697 x
22698 s/\(=[ ]*\).*/\1/
22699 G
22700 s/\n//
22701 s/^[^=]*=[ ]*$//
22702 }'
22703 fi
22704
22705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22706 fi # test -n "$CONFIG_FILES"
22707
22708 # Set up the scripts for CONFIG_HEADERS section.
22709 # No need to generate them if there are no CONFIG_HEADERS.
22710 # This happens for instance with './config.status Makefile'.
22711 if test -n "$CONFIG_HEADERS"; then
22712 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22713 BEGIN {
22714 _ACEOF
22715
22716 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22717 # here-document in config.status, that substitutes the proper values into
22718 # config.h.in to produce config.h.
22719
22720 # Create a delimiter string that does not exist in confdefs.h, to ease
22721 # handling of long lines.
22722 ac_delim='%!_!# '
22723 for ac_last_try in false false :; do
22724 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22725 if test -z "$ac_tt"; then
22726 break
22727 elif $ac_last_try; then
22728 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22729 else
22730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22731 fi
22732 done
22733
22734 # For the awk script, D is an array of macro values keyed by name,
22735 # likewise P contains macro parameters if any. Preserve backslash
22736 # newline sequences.
22737
22738 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22739 sed -n '
22740 s/.\{148\}/&'"$ac_delim"'/g
22741 t rset
22742 :rset
22743 s/^[ ]*#[ ]*define[ ][ ]*/ /
22744 t def
22745 d
22746 :def
22747 s/\\$//
22748 t bsnl
22749 s/["\\]/\\&/g
22750 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22751 D["\1"]=" \3"/p
22752 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22753 d
22754 :bsnl
22755 s/["\\]/\\&/g
22756 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22757 D["\1"]=" \3\\\\\\n"\\/p
22758 t cont
22759 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22760 t cont
22761 d
22762 :cont
22763 n
22764 s/.\{148\}/&'"$ac_delim"'/g
22765 t clear
22766 :clear
22767 s/\\$//
22768 t bsnlc
22769 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22770 d
22771 :bsnlc
22772 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22773 b cont
22774 ' <confdefs.h | sed '
22775 s/'"$ac_delim"'/"\\\
22776 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22777
22778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22779 for (key in D) D_is_set[key] = 1
22780 FS = ""
22781 }
22782 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22783 line = \$ 0
22784 split(line, arg, " ")
22785 if (arg[1] == "#") {
22786 defundef = arg[2]
22787 mac1 = arg[3]
22788 } else {
22789 defundef = substr(arg[1], 2)
22790 mac1 = arg[2]
22791 }
22792 split(mac1, mac2, "(") #)
22793 macro = mac2[1]
22794 prefix = substr(line, 1, index(line, defundef) - 1)
22795 if (D_is_set[macro]) {
22796 # Preserve the white space surrounding the "#".
22797 print prefix "define", macro P[macro] D[macro]
22798 next
22799 } else {
22800 # Replace #undef with comments. This is necessary, for example,
22801 # in the case of _POSIX_SOURCE, which is predefined and required
22802 # on some systems where configure will not decide to define it.
22803 if (defundef == "undef") {
22804 print "/*", prefix defundef, macro, "*/"
22805 next
22806 }
22807 }
22808 }
22809 { print }
22810 _ACAWK
22811 _ACEOF
22812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22813 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22814 fi # test -n "$CONFIG_HEADERS"
22815
22816
22817 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22818 shift
22819 for ac_tag
22820 do
22821 case $ac_tag in
22822 :[FHLC]) ac_mode=$ac_tag; continue;;
22823 esac
22824 case $ac_mode$ac_tag in
22825 :[FHL]*:*);;
22826 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22827 :[FH]-) ac_tag=-:-;;
22828 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22829 esac
22830 ac_save_IFS=$IFS
22831 IFS=:
22832 set x $ac_tag
22833 IFS=$ac_save_IFS
22834 shift
22835 ac_file=$1
22836 shift
22837
22838 case $ac_mode in
22839 :L) ac_source=$1;;
22840 :[FH])
22841 ac_file_inputs=
22842 for ac_f
22843 do
22844 case $ac_f in
22845 -) ac_f="$ac_tmp/stdin";;
22846 *) # Look for the file first in the build tree, then in the source tree
22847 # (if the path is not absolute). The absolute path cannot be DOS-style,
22848 # because $ac_f cannot contain ':'.
22849 test -f "$ac_f" ||
22850 case $ac_f in
22851 [\\/$]*) false;;
22852 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22853 esac ||
22854 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22855 esac
22856 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22857 as_fn_append ac_file_inputs " '$ac_f'"
22858 done
22859
22860 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22861 # use $as_me), people would be surprised to read:
22862 # /* config.h. Generated by config.status. */
22863 configure_input='Generated from '`
22864 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22865 `' by configure.'
22866 if test x"$ac_file" != x-; then
22867 configure_input="$ac_file. $configure_input"
22868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22869 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22870 fi
22871 # Neutralize special characters interpreted by sed in replacement strings.
22872 case $configure_input in #(
22873 *\&* | *\|* | *\\* )
22874 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22875 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22876 *) ac_sed_conf_input=$configure_input;;
22877 esac
22878
22879 case $ac_tag in
22880 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22882 esac
22883 ;;
22884 esac
22885
22886 ac_dir=`$as_dirname -- "$ac_file" ||
22887 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22888 X"$ac_file" : 'X\(//\)[^/]' \| \
22889 X"$ac_file" : 'X\(//\)$' \| \
22890 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22891 printf "%s\n" X"$ac_file" |
22892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22893 s//\1/
22894 q
22895 }
22896 /^X\(\/\/\)[^/].*/{
22897 s//\1/
22898 q
22899 }
22900 /^X\(\/\/\)$/{
22901 s//\1/
22902 q
22903 }
22904 /^X\(\/\).*/{
22905 s//\1/
22906 q
22907 }
22908 s/.*/./; q'`
22909 as_dir="$ac_dir"; as_fn_mkdir_p
22910 ac_builddir=.
22911
22912 case "$ac_dir" in
22913 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22914 *)
22915 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22916 # A ".." for each directory in $ac_dir_suffix.
22917 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22918 case $ac_top_builddir_sub in
22919 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22920 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22921 esac ;;
22922 esac
22923 ac_abs_top_builddir=$ac_pwd
22924 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22925 # for backward compatibility:
22926 ac_top_builddir=$ac_top_build_prefix
22927
22928 case $srcdir in
22929 .) # We are building in place.
22930 ac_srcdir=.
22931 ac_top_srcdir=$ac_top_builddir_sub
22932 ac_abs_top_srcdir=$ac_pwd ;;
22933 [\\/]* | ?:[\\/]* ) # Absolute name.
22934 ac_srcdir=$srcdir$ac_dir_suffix;
22935 ac_top_srcdir=$srcdir
22936 ac_abs_top_srcdir=$srcdir ;;
22937 *) # Relative name.
22938 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22939 ac_top_srcdir=$ac_top_build_prefix$srcdir
22940 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22941 esac
22942 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22943
22944
22945 case $ac_mode in
22946 :F)
22947 #
22948 # CONFIG_FILE
22949 #
22950
22951 case $INSTALL in
22952 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22953 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22954 esac
22955 ac_MKDIR_P=$MKDIR_P
22956 case $MKDIR_P in
22957 [\\/$]* | ?:[\\/]* ) ;;
22958 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22959 esac
22960 _ACEOF
22961
22962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22963 # If the template does not know about datarootdir, expand it.
22964 # FIXME: This hack should be removed a few years after 2.60.
22965 ac_datarootdir_hack=; ac_datarootdir_seen=
22966 ac_sed_dataroot='
22967 /datarootdir/ {
22968 p
22969 q
22970 }
22971 /@datadir@/p
22972 /@docdir@/p
22973 /@infodir@/p
22974 /@localedir@/p
22975 /@mandir@/p'
22976 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22977 *datarootdir*) ac_datarootdir_seen=yes;;
22978 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22980 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22981 _ACEOF
22982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22983 ac_datarootdir_hack='
22984 s&@datadir@&$datadir&g
22985 s&@docdir@&$docdir&g
22986 s&@infodir@&$infodir&g
22987 s&@localedir@&$localedir&g
22988 s&@mandir@&$mandir&g
22989 s&\\\${datarootdir}&$datarootdir&g' ;;
22990 esac
22991 _ACEOF
22992
22993 # Neutralize VPATH when '$srcdir' = '.'.
22994 # Shell code in configure.ac might set extrasub.
22995 # FIXME: do we really want to maintain this feature?
22996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22997 ac_sed_extra="$ac_vpsub
22998 $extrasub
22999 _ACEOF
23000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23001 :t
23002 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23003 s|@configure_input@|$ac_sed_conf_input|;t t
23004 s&@top_builddir@&$ac_top_builddir_sub&;t t
23005 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23006 s&@srcdir@&$ac_srcdir&;t t
23007 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23008 s&@top_srcdir@&$ac_top_srcdir&;t t
23009 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23010 s&@builddir@&$ac_builddir&;t t
23011 s&@abs_builddir@&$ac_abs_builddir&;t t
23012 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23013 s&@INSTALL@&$ac_INSTALL&;t t
23014 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23015 $ac_datarootdir_hack
23016 "
23017 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23018 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23019
23020 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23021 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23022 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23023 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
23025 which seems to be undefined. Please make sure it is defined" >&5
23026 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
23027 which seems to be undefined. Please make sure it is defined" >&2;}
23028
23029 rm -f "$ac_tmp/stdin"
23030 case $ac_file in
23031 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23032 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23033 esac \
23034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23035 ;;
23036 :H)
23037 #
23038 # CONFIG_HEADER
23039 #
23040 if test x"$ac_file" != x-; then
23041 {
23042 printf "%s\n" "/* $configure_input */" >&1 \
23043 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23044 } >"$ac_tmp/config.h" \
23045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23046 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23048 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
23049 else
23050 rm -f "$ac_file"
23051 mv "$ac_tmp/config.h" "$ac_file" \
23052 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23053 fi
23054 else
23055 printf "%s\n" "/* $configure_input */" >&1 \
23056 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23057 || as_fn_error $? "could not create -" "$LINENO" 5
23058 fi
23059 # Compute "$ac_file"'s index in $config_headers.
23060 _am_arg="$ac_file"
23061 _am_stamp_count=1
23062 for _am_header in $config_headers :; do
23063 case $_am_header in
23064 $_am_arg | $_am_arg:* )
23065 break ;;
23066 * )
23067 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23068 esac
23069 done
23070 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23071 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23072 X"$_am_arg" : 'X\(//\)[^/]' \| \
23073 X"$_am_arg" : 'X\(//\)$' \| \
23074 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23075 printf "%s\n" X"$_am_arg" |
23076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23077 s//\1/
23078 q
23079 }
23080 /^X\(\/\/\)[^/].*/{
23081 s//\1/
23082 q
23083 }
23084 /^X\(\/\/\)$/{
23085 s//\1/
23086 q
23087 }
23088 /^X\(\/\).*/{
23089 s//\1/
23090 q
23091 }
23092 s/.*/./; q'`/stamp-h$_am_stamp_count
23093 ;;
23094
23095 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23096 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23097 ;;
23098 esac
23099
23100
23101 case $ac_file$ac_mode in
23102 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23103 # Older Autoconf quotes --file arguments for eval, but not when files
23104 # are listed without --file. Let's play safe and only enable the eval
23105 # if we detect the quoting.
23106 # TODO: see whether this extra hack can be removed once we start
23107 # requiring Autoconf 2.70 or later.
23108 case $CONFIG_FILES in #(
23109 *\'*) :
23110 eval set x "$CONFIG_FILES" ;; #(
23111 *) :
23112 set x $CONFIG_FILES ;; #(
23113 *) :
23114 ;;
23115 esac
23116 shift
23117 # Used to flag and report bootstrapping failures.
23118 am_rc=0
23119 for am_mf
23120 do
23121 # Strip MF so we end up with the name of the file.
23122 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23123 # Check whether this is an Automake generated Makefile which includes
23124 # dependency-tracking related rules and includes.
23125 # Grep'ing the whole file directly is not great: AIX grep has a line
23126 # limit of 2048, but all sed's we know have understand at least 4000.
23127 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23128 || continue
23129 am_dirpart=`$as_dirname -- "$am_mf" ||
23130 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23131 X"$am_mf" : 'X\(//\)[^/]' \| \
23132 X"$am_mf" : 'X\(//\)$' \| \
23133 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23134 printf "%s\n" X"$am_mf" |
23135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23136 s//\1/
23137 q
23138 }
23139 /^X\(\/\/\)[^/].*/{
23140 s//\1/
23141 q
23142 }
23143 /^X\(\/\/\)$/{
23144 s//\1/
23145 q
23146 }
23147 /^X\(\/\).*/{
23148 s//\1/
23149 q
23150 }
23151 s/.*/./; q'`
23152 am_filepart=`$as_basename -- "$am_mf" ||
23153 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23154 X"$am_mf" : 'X\(//\)$' \| \
23155 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23156 printf "%s\n" X/"$am_mf" |
23157 sed '/^.*\/\([^/][^/]*\)\/*$/{
23158 s//\1/
23159 q
23160 }
23161 /^X\/\(\/\/\)$/{
23162 s//\1/
23163 q
23164 }
23165 /^X\/\(\/\).*/{
23166 s//\1/
23167 q
23168 }
23169 s/.*/./; q'`
23170 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23171 && sed -e '/# am--include-marker/d' "$am_filepart" \
23172 | $MAKE -f - am--depfiles" >&5
23173 (cd "$am_dirpart" \
23174 && sed -e '/# am--include-marker/d' "$am_filepart" \
23175 | $MAKE -f - am--depfiles) >&5 2>&5
23176 ac_status=$?
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } || am_rc=$?
23179 done
23180 if test $am_rc -ne 0; then
23181 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23182 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23183 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23184 for automatic dependency tracking. If GNU make was not used, consider
23185 re-running the configure script with MAKE=\"gmake\" (or whatever is
23186 necessary). You can also try re-running configure with the
23187 '--disable-dependency-tracking' option to at least be able to build
23188 the package (albeit without support for automatic dependency tracking).
23189 See 'config.log' for more details" "$LINENO" 5; }
23190 fi
23191 { am_dirpart=; unset am_dirpart;}
23192 { am_filepart=; unset am_filepart;}
23193 { am_mf=; unset am_mf;}
23194 { am_rc=; unset am_rc;}
23195 rm -f conftest-deps.mk
23196 }
23197 ;;
23198 "libtool":C)
23199
23200 # See if we are running on zsh, and set the options that allow our
23201 # commands through without removal of \ escapes.
23202 if test -n "${ZSH_VERSION+set}"; then
23203 setopt NO_GLOB_SUBST
23204 fi
23205
23206 cfgfile=${ofile}T
23207 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23208 $RM "$cfgfile"
23209
23210 cat <<_LT_EOF >> "$cfgfile"
23211 #! $SHELL
23212 # Generated automatically by $as_me ($PACKAGE) $VERSION
23213 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23214
23215 # Provide generalized library-building support services.
23216 # Written by Gordon Matzigkeit, 1996
23217
23218 # Copyright (C) 2024 Free Software Foundation, Inc.
23219 # This is free software; see the source for copying conditions. There is NO
23220 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23221
23222 # GNU Libtool is free software; you can redistribute it and/or modify
23223 # it under the terms of the GNU General Public License as published by
23224 # the Free Software Foundation; either version 2 of the License, or
23225 # (at your option) any later version.
23226 #
23227 # As a special exception to the GNU General Public License, if you
23228 # distribute this file as part of a program or library that is built
23229 # using GNU Libtool, you may include this file under the same
23230 # distribution terms that you use for the rest of that program.
23231 #
23232 # GNU Libtool is distributed in the hope that it will be useful, but
23233 # WITHOUT ANY WARRANTY; without even the implied warranty of
23234 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23235 # GNU General Public License for more details.
23236 #
23237 # You should have received a copy of the GNU General Public License
23238 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23239
23240
23241 # The names of the tagged configurations supported by this script.
23242 available_tags=''
23243
23244 # Configured defaults for sys_lib_dlsearch_path munging.
23245 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23246
23247 # ### BEGIN LIBTOOL CONFIG
23248
23249 # Which release of libtool.m4 was used?
23250 macro_version=$macro_version
23251 macro_revision=$macro_revision
23252
23253 # Whether or not to build shared libraries.
23254 build_libtool_libs=$enable_shared
23255
23256 # Whether or not to build static libraries.
23257 build_old_libs=$enable_static
23258
23259 # What type of objects to build.
23260 pic_mode=$pic_mode
23261
23262 # Whether or not to optimize for fast installation.
23263 fast_install=$enable_fast_install
23264
23265 # Shared archive member basename,for filename based shared library versioning on AIX.
23266 shared_archive_member_spec=$shared_archive_member_spec
23267
23268 # Shell to use when invoking shell scripts.
23269 SHELL=$lt_SHELL
23270
23271 # An echo program that protects backslashes.
23272 ECHO=$lt_ECHO
23273
23274 # The PATH separator for the build system.
23275 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23276
23277 # The host system.
23278 host_alias=$host_alias
23279 host=$host
23280 host_os=$host_os
23281
23282 # The build system.
23283 build_alias=$build_alias
23284 build=$build
23285 build_os=$build_os
23286
23287 # A sed program that does not truncate output.
23288 SED=$lt_SED
23289
23290 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23291 Xsed="\$SED -e 1s/^X//"
23292
23293 # A grep program that handles long lines.
23294 GREP=$lt_GREP
23295
23296 # An ERE matcher.
23297 EGREP=$lt_EGREP
23298
23299 # A literal string matcher.
23300 FGREP=$lt_FGREP
23301
23302 # A BSD- or MS-compatible name lister.
23303 NM=$lt_NM
23304
23305 # Whether we need soft or hard links.
23306 LN_S=$lt_LN_S
23307
23308 # What is the maximum length of a command?
23309 max_cmd_len=$max_cmd_len
23310
23311 # Object file suffix (normally "o").
23312 objext=$ac_objext
23313
23314 # Executable file suffix (normally "").
23315 exeext=$exeext
23316
23317 # whether the shell understands "unset".
23318 lt_unset=$lt_unset
23319
23320 # turn spaces into newlines.
23321 SP2NL=$lt_lt_SP2NL
23322
23323 # turn newlines into spaces.
23324 NL2SP=$lt_lt_NL2SP
23325
23326 # convert \$build file names to \$host format.
23327 to_host_file_cmd=$lt_cv_to_host_file_cmd
23328
23329 # convert \$build files to toolchain format.
23330 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23331
23332 # A file(cmd) program that detects file types.
23333 FILECMD=$lt_FILECMD
23334
23335 # An object symbol dumper.
23336 OBJDUMP=$lt_OBJDUMP
23337
23338 # Method to check whether dependent libraries are shared objects.
23339 deplibs_check_method=$lt_deplibs_check_method
23340
23341 # Command to use when deplibs_check_method = "file_magic".
23342 file_magic_cmd=$lt_file_magic_cmd
23343
23344 # How to find potential files when deplibs_check_method = "file_magic".
23345 file_magic_glob=$lt_file_magic_glob
23346
23347 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23348 want_nocaseglob=$lt_want_nocaseglob
23349
23350 # DLL creation program.
23351 DLLTOOL=$lt_DLLTOOL
23352
23353 # Command to associate shared and link libraries.
23354 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23355
23356 # The archiver.
23357 AR=$lt_AR
23358
23359 # Flags to create an archive (by configure).
23360 lt_ar_flags=$lt_ar_flags
23361
23362 # Flags to create an archive.
23363 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23364
23365 # How to feed a file listing to the archiver.
23366 archiver_list_spec=$lt_archiver_list_spec
23367
23368 # A symbol stripping program.
23369 STRIP=$lt_STRIP
23370
23371 # Commands used to install an old-style archive.
23372 RANLIB=$lt_RANLIB
23373 old_postinstall_cmds=$lt_old_postinstall_cmds
23374 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23375
23376 # Whether to use a lock for old archive extraction.
23377 lock_old_archive_extraction=$lock_old_archive_extraction
23378
23379 # A C compiler.
23380 LTCC=$lt_CC
23381
23382 # LTCC compiler flags.
23383 LTCFLAGS=$lt_CFLAGS
23384
23385 # Take the output of nm and produce a listing of raw symbols and C names.
23386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23387
23388 # Transform the output of nm in a proper C declaration.
23389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23390
23391 # Transform the output of nm into a list of symbols to manually relocate.
23392 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23393
23394 # Transform the output of nm in a C name address pair.
23395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23396
23397 # Transform the output of nm in a C name address pair when lib prefix is needed.
23398 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23399
23400 # The name lister interface.
23401 nm_interface=$lt_lt_cv_nm_interface
23402
23403 # Specify filename containing input files for \$NM.
23404 nm_file_list_spec=$lt_nm_file_list_spec
23405
23406 # The root where to search for dependent libraries,and where our libraries should be installed.
23407 lt_sysroot=$lt_sysroot
23408
23409 # Command to truncate a binary pipe.
23410 lt_truncate_bin=$lt_lt_cv_truncate_bin
23411
23412 # The name of the directory that contains temporary libtool files.
23413 objdir=$objdir
23414
23415 # Used to examine libraries when file_magic_cmd begins with "file".
23416 MAGIC_CMD=$MAGIC_CMD
23417
23418 # Must we lock files when doing compilation?
23419 need_locks=$lt_need_locks
23420
23421 # Manifest tool.
23422 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23423
23424 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23425 DSYMUTIL=$lt_DSYMUTIL
23426
23427 # Tool to change global to local symbols on Mac OS X.
23428 NMEDIT=$lt_NMEDIT
23429
23430 # Tool to manipulate fat objects and archives on Mac OS X.
23431 LIPO=$lt_LIPO
23432
23433 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23434 OTOOL=$lt_OTOOL
23435
23436 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23437 OTOOL64=$lt_OTOOL64
23438
23439 # Old archive suffix (normally "a").
23440 libext=$libext
23441
23442 # Shared library suffix (normally ".so").
23443 shrext_cmds=$lt_shrext_cmds
23444
23445 # The commands to extract the exported symbol list from a shared archive.
23446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23447
23448 # Variables whose values should be saved in libtool wrapper scripts and
23449 # restored at link time.
23450 variables_saved_for_relink=$lt_variables_saved_for_relink
23451
23452 # Do we need the "lib" prefix for modules?
23453 need_lib_prefix=$need_lib_prefix
23454
23455 # Do we need a version for libraries?
23456 need_version=$need_version
23457
23458 # Library versioning type.
23459 version_type=$version_type
23460
23461 # Shared library runtime path variable.
23462 runpath_var=$runpath_var
23463
23464 # Shared library path variable.
23465 shlibpath_var=$shlibpath_var
23466
23467 # Is shlibpath searched before the hard-coded library search path?
23468 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23469
23470 # Format of library name prefix.
23471 libname_spec=$lt_libname_spec
23472
23473 # List of archive names. First name is the real one, the rest are links.
23474 # The last name is the one that the linker finds with -lNAME
23475 library_names_spec=$lt_library_names_spec
23476
23477 # The coded name of the library, if different from the real name.
23478 soname_spec=$lt_soname_spec
23479
23480 # Permission mode override for installation of shared libraries.
23481 install_override_mode=$lt_install_override_mode
23482
23483 # Command to use after installation of a shared archive.
23484 postinstall_cmds=$lt_postinstall_cmds
23485
23486 # Command to use after uninstallation of a shared archive.
23487 postuninstall_cmds=$lt_postuninstall_cmds
23488
23489 # Commands used to finish a libtool library installation in a directory.
23490 finish_cmds=$lt_finish_cmds
23491
23492 # As "finish_cmds", except a single script fragment to be evaled but
23493 # not shown.
23494 finish_eval=$lt_finish_eval
23495
23496 # Whether we should hardcode library paths into libraries.
23497 hardcode_into_libs=$hardcode_into_libs
23498
23499 # Compile-time system search path for libraries.
23500 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23501
23502 # Detected run-time system search path for libraries.
23503 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23504
23505 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23506 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23507
23508 # Whether dlopen is supported.
23509 dlopen_support=$enable_dlopen
23510
23511 # Whether dlopen of programs is supported.
23512 dlopen_self=$enable_dlopen_self
23513
23514 # Whether dlopen of statically linked programs is supported.
23515 dlopen_self_static=$enable_dlopen_self_static
23516
23517 # Commands to strip libraries.
23518 old_striplib=$lt_old_striplib
23519 striplib=$lt_striplib
23520
23521
23522 # The linker used to build libraries.
23523 LD=$lt_LD
23524
23525 # How to create reloadable object files.
23526 reload_flag=$lt_reload_flag
23527 reload_cmds=$lt_reload_cmds
23528
23529 # Commands used to build an old-style archive.
23530 old_archive_cmds=$lt_old_archive_cmds
23531
23532 # A language specific compiler.
23533 CC=$lt_compiler
23534
23535 # Is the compiler the GNU compiler?
23536 with_gcc=$GCC
23537
23538 # Compiler flag to turn off builtin functions.
23539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23540
23541 # Additional compiler flags for building library objects.
23542 pic_flag=$lt_lt_prog_compiler_pic
23543
23544 # How to pass a linker flag through the compiler.
23545 wl=$lt_lt_prog_compiler_wl
23546
23547 # Compiler flag to prevent dynamic linking.
23548 link_static_flag=$lt_lt_prog_compiler_static
23549
23550 # Does compiler simultaneously support -c and -o options?
23551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23552
23553 # Whether or not to add -lc for building shared libraries.
23554 build_libtool_need_lc=$archive_cmds_need_lc
23555
23556 # Whether or not to disallow shared libs when runtime libs are static.
23557 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23558
23559 # Compiler flag to allow reflexive dlopens.
23560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23561
23562 # Compiler flag to generate shared objects directly from archives.
23563 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23564
23565 # Whether the compiler copes with passing no objects directly.
23566 compiler_needs_object=$lt_compiler_needs_object
23567
23568 # Create an old-style archive from a shared archive.
23569 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23570
23571 # Create a temporary old-style archive to link instead of a shared archive.
23572 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23573
23574 # Commands used to build a shared archive.
23575 archive_cmds=$lt_archive_cmds
23576 archive_expsym_cmds=$lt_archive_expsym_cmds
23577
23578 # Commands used to build a loadable module if different from building
23579 # a shared archive.
23580 module_cmds=$lt_module_cmds
23581 module_expsym_cmds=$lt_module_expsym_cmds
23582
23583 # Whether we are building with GNU ld or not.
23584 with_gnu_ld=$lt_with_gnu_ld
23585
23586 # Flag that allows shared libraries with undefined symbols to be built.
23587 allow_undefined_flag=$lt_allow_undefined_flag
23588
23589 # Flag that enforces no undefined symbols.
23590 no_undefined_flag=$lt_no_undefined_flag
23591
23592 # Flag to hardcode \$libdir into a binary during linking.
23593 # This must work even if \$libdir does not exist
23594 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23595
23596 # Whether we need a single "-rpath" flag with a separated argument.
23597 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23598
23599 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23600 # DIR into the resulting binary.
23601 hardcode_direct=$hardcode_direct
23602
23603 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23604 # DIR into the resulting binary and the resulting library dependency is
23605 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23606 # library is relocated.
23607 hardcode_direct_absolute=$hardcode_direct_absolute
23608
23609 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23610 # into the resulting binary.
23611 hardcode_minus_L=$hardcode_minus_L
23612
23613 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23614 # into the resulting binary.
23615 hardcode_shlibpath_var=$hardcode_shlibpath_var
23616
23617 # Set to "yes" if building a shared library automatically hardcodes DIR
23618 # into the library and all subsequent libraries and executables linked
23619 # against it.
23620 hardcode_automatic=$hardcode_automatic
23621
23622 # Set to yes if linker adds runtime paths of dependent libraries
23623 # to runtime path list.
23624 inherit_rpath=$inherit_rpath
23625
23626 # Whether libtool must link a program against all its dependency libraries.
23627 link_all_deplibs=$link_all_deplibs
23628
23629 # Set to "yes" if exported symbols are required.
23630 always_export_symbols=$always_export_symbols
23631
23632 # The commands to list exported symbols.
23633 export_symbols_cmds=$lt_export_symbols_cmds
23634
23635 # Symbols that should not be listed in the preloaded symbols.
23636 exclude_expsyms=$lt_exclude_expsyms
23637
23638 # Symbols that must always be exported.
23639 include_expsyms=$lt_include_expsyms
23640
23641 # Commands necessary for linking programs (against libraries) with templates.
23642 prelink_cmds=$lt_prelink_cmds
23643
23644 # Commands necessary for finishing linking programs.
23645 postlink_cmds=$lt_postlink_cmds
23646
23647 # Specify filename containing input files.
23648 file_list_spec=$lt_file_list_spec
23649
23650 # How to hardcode a shared library path into an executable.
23651 hardcode_action=$hardcode_action
23652
23653 # ### END LIBTOOL CONFIG
23654
23655 _LT_EOF
23656
23657 cat <<'_LT_EOF' >> "$cfgfile"
23658
23659 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23660
23661 # func_munge_path_list VARIABLE PATH
23662 # -----------------------------------
23663 # VARIABLE is name of variable containing _space_ separated list of
23664 # directories to be munged by the contents of PATH, which is string
23665 # having a format:
23666 # "DIR[:DIR]:"
23667 # string "DIR[ DIR]" will be prepended to VARIABLE
23668 # ":DIR[:DIR]"
23669 # string "DIR[ DIR]" will be appended to VARIABLE
23670 # "DIRP[:DIRP]::[DIRA:]DIRA"
23671 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23672 # "DIRA[ DIRA]" will be appended to VARIABLE
23673 # "DIR[:DIR]"
23674 # VARIABLE will be replaced by "DIR[ DIR]"
23675 func_munge_path_list ()
23676 {
23677 case x$2 in
23678 x)
23679 ;;
23680 *:)
23681 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23682 ;;
23683 x:*)
23684 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23685 ;;
23686 *::*)
23687 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23688 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23689 ;;
23690 *)
23691 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23692 ;;
23693 esac
23694 }
23695
23696
23697 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23698 func_cc_basename ()
23699 {
23700 for cc_temp in $*""; do
23701 case $cc_temp in
23702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23704 \-*) ;;
23705 *) break;;
23706 esac
23707 done
23708 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23709 }
23710
23711
23712 # ### END FUNCTIONS SHARED WITH CONFIGURE
23713
23714 _LT_EOF
23715
23716 case $host_os in
23717 aix3*)
23718 cat <<\_LT_EOF >> "$cfgfile"
23719 # AIX sometimes has problems with the GCC collect2 program. For some
23720 # reason, if we set the COLLECT_NAMES environment variable, the problems
23721 # vanish in a puff of smoke.
23722 if test set != "${COLLECT_NAMES+set}"; then
23723 COLLECT_NAMES=
23724 export COLLECT_NAMES
23725 fi
23726 _LT_EOF
23727 ;;
23728 esac
23729
23730
23731
23732 ltmain=$ac_aux_dir/ltmain.sh
23733
23734
23735 # We use sed instead of cat because bash on DJGPP gets confused if
23736 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23737 # text mode, it properly converts lines to CR/LF. This bash problem
23738 # is reportedly fixed, but why not run on old versions too?
23739 $SED '$q' "$ltmain" >> "$cfgfile" \
23740 || (rm -f "$cfgfile"; exit 1)
23741
23742 mv -f "$cfgfile" "$ofile" ||
23743 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23744 chmod +x "$ofile"
23745
23746 ;;
23747
23748 esac
23749 done # for ac_tag
23750
23751
23752 as_fn_exit 0
23753 _ACEOF
23754 ac_clean_files=$ac_clean_files_save
23755
23756 test $ac_write_fail = 0 ||
23757 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23758
23759
23760 # configure is writing to config.log, and then calls config.status.
23761 # config.status does its own redirection, appending to config.log.
23762 # Unfortunately, on DOS this fails, as config.log is still kept open
23763 # by configure, so config.status won't be able to write to it; its
23764 # output is simply discarded. So we exec the FD to /dev/null,
23765 # effectively closing config.log, so it can be properly (re)opened and
23766 # appended to by config.status. When coming back to configure, we
23767 # need to make the FD available again.
23768 if test "$no_create" != yes; then
23769 ac_cs_success=:
23770 ac_config_status_args=
23771 test "$silent" = yes &&
23772 ac_config_status_args="$ac_config_status_args --quiet"
23773 exec 5>/dev/null
23774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23775 exec 5>>config.log
23776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23777 # would make configure fail if this is the last instruction.
23778 $ac_cs_success || as_fn_exit 1
23779 fi
23780 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23782 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23783 fi
23784
23785