Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for libedit 3.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # contradicts POSIX and common usage. Disable this.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 case $# in # ((
133 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
134 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
135 esac
136 # Admittedly, this is quite paranoid, since all the known shells bail
137 # out after a failed 'exec'.
138 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
139 exit 255
140 fi
141 # We don't want this to propagate to other subprocesses.
142 { _as_can_reexec=; unset _as_can_reexec;}
143 if test "x$CONFIG_SHELL" = x; then
144 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # contradicts POSIX and common usage. Disable this.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else case e in #(
153 e) case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac ;;
159 esac
160 fi
161 "
162 as_required="as_fn_return () { (exit \$1); }
163 as_fn_success () { as_fn_return 0; }
164 as_fn_failure () { as_fn_return 1; }
165 as_fn_ret_success () { return 0; }
166 as_fn_ret_failure () { return 1; }
167
168 exitcode=0
169 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
170 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
171 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
172 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
173 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 then :
175
176 else case e in #(
177 e) exitcode=1; echo positional parameters were not saved. ;;
178 esac
179 fi
180 test x\$exitcode = x0 || exit 1
181 blah=\$(echo \$(echo blah))
182 test x\"\$blah\" = xblah || exit 1
183 test -x / || exit 1"
184 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
185 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
186 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
187 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
196 test \$(( 1 + 1 )) = 2 || exit 1"
197 if (eval "$as_required") 2>/dev/null
198 then :
199 as_have_required=yes
200 else case e in #(
201 e) as_have_required=no ;;
202 esac
203 fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 then :
206
207 else case e in #(
208 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 case $as_dir in #(((
214 '') as_dir=./ ;;
215 */) ;;
216 *) as_dir=$as_dir/ ;;
217 esac
218 as_found=:
219 case $as_dir in #(
220 /*)
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
226 then :
227 CONFIG_SHELL=$as_shell as_have_required=yes
228 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
229 then :
230 break 2
231 fi
232 fi
233 done;;
234 esac
235 as_found=false
236 done
237 IFS=$as_save_IFS
238 if $as_found
239 then :
240
241 else case e in #(
242 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
244 then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi ;;
247 esac
248 fi
249
250
251 if test "x$CONFIG_SHELL" != x
252 then :
253 export CONFIG_SHELL
254 # We cannot yet assume a decent shell, so we have to provide a
255 # neutralization value for shells without unset; and this also
256 # works around shells that cannot unset nonexistent variables.
257 # Preserve -v and -x to the replacement shell.
258 BASH_ENV=/dev/null
259 ENV=/dev/null
260 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
261 case $- in # ((((
262 *v*x* | *x*v* ) as_opts=-vx ;;
263 *v* ) as_opts=-v ;;
264 *x* ) as_opts=-x ;;
265 * ) as_opts= ;;
266 esac
267 case $# in # ((
268 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
269 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
270 esac
271 # Admittedly, this is quite paranoid, since all the known shells bail
272 # out after a failed 'exec'.
273 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
274 exit 255
275 fi
276
277 if test x$as_have_required = xno
278 then :
279 printf '%s\n' "$0: This script requires a shell more modern than all"
280 printf '%s\n' "$0: the shells that I found on your system."
281 if test ${ZSH_VERSION+y} ; then
282 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should"
283 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later."
284 else
285 printf '%s\n' "$0: Please tell [email protected] about your system,
286 $0: including any error possibly output before this
287 $0: message. Then install a modern shell, or manually run
288 $0: the script under such a shell if you do have one."
289 fi
290 exit 1
291 fi ;;
292 esac
293 fi
294 fi
295 SHELL=${CONFIG_SHELL-/bin/sh}
296 export SHELL
297 # Unset more variables known to interfere with behavior of common tools.
298 CLICOLOR_FORCE= GREP_OPTIONS=
299 unset CLICOLOR_FORCE GREP_OPTIONS
300
301 ## --------------------- ##
302 ## M4sh Shell Functions. ##
303 ## --------------------- ##
304 # as_fn_unset VAR
305 # ---------------
306 # Portably unset VAR.
307 as_fn_unset ()
308 {
309 { eval $1=; unset $1;}
310 }
311 as_unset=as_fn_unset
312
313
314 # as_fn_set_status STATUS
315 # -----------------------
316 # Set $? to STATUS, without forking.
317 as_fn_set_status ()
318 {
319 return $1
320 } # as_fn_set_status
321
322 # as_fn_exit STATUS
323 # -----------------
324 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 as_fn_exit ()
326 {
327 set +e
328 as_fn_set_status $1
329 exit $1
330 } # as_fn_exit
331
332 # as_fn_mkdir_p
333 # -------------
334 # Create "$as_dir" as a directory, including parents if necessary.
335 as_fn_mkdir_p ()
336 {
337
338 case $as_dir in #(
339 -*) as_dir=./$as_dir;;
340 esac
341 test -d "$as_dir" || eval $as_mkdir_p || {
342 as_dirs=
343 while :; do
344 case $as_dir in #(
345 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
346 *) as_qdir=$as_dir;;
347 esac
348 as_dirs="'$as_qdir' $as_dirs"
349 as_dir=`$as_dirname -- "$as_dir" ||
350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
351 X"$as_dir" : 'X\(//\)[^/]' \| \
352 X"$as_dir" : 'X\(//\)$' \| \
353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
354 printf '%s\n' X"$as_dir" |
355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\/\)[^/].*/{
360 s//\1/
361 q
362 }
363 /^X\(\/\/\)$/{
364 s//\1/
365 q
366 }
367 /^X\(\/\).*/{
368 s//\1/
369 q
370 }
371 s/.*/./; q'`
372 test -d "$as_dir" && break
373 done
374 test -z "$as_dirs" || eval "mkdir $as_dirs"
375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
376
377
378 } # as_fn_mkdir_p
379
380 # as_fn_executable_p FILE
381 # -----------------------
382 # Test if FILE is an executable regular file.
383 as_fn_executable_p ()
384 {
385 test -f "$1" && test -x "$1"
386 } # as_fn_executable_p
387 # as_fn_append VAR VALUE
388 # ----------------------
389 # Append the text in VALUE to the end of the definition contained in VAR. Take
390 # advantage of any shell optimizations that allow amortized linear growth over
391 # repeated appends, instead of the typical quadratic growth present in naive
392 # implementations.
393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
394 then :
395 eval 'as_fn_append ()
396 {
397 eval $1+=\$2
398 }'
399 else case e in #(
400 e) as_fn_append ()
401 {
402 eval $1=\$$1\$2
403 } ;;
404 esac
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else case e in #(
419 e) as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 } ;;
423 esac
424 fi # as_fn_arith
425
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf '%s\n' "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf '%s\n' X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 t clear
500 :clear
501 s/[$]LINENO.*/&-/
502 t lineno
503 b
504 :lineno
505 N
506 :loop
507 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
508 t loop
509 s/-\n.*//
510 ' >$as_me.lineno &&
511 chmod +x "$as_me.lineno" ||
512 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
513
514 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
515 # already done that, so ensure we don't try to do so again and fall
516 # in an infinite loop. This has already happened in practice.
517 _as_can_reexec=no; export _as_can_reexec
518 # Don't try to exec as it changes $[0], causing all sort of problems
519 # (the dirname of $[0] is not the place where we might find the
520 # original and so on. Autoconf is especially sensitive to this).
521 . "./$as_me.lineno"
522 # Exit status is that of the last command.
523 exit
524 }
525
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529 else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532 fi
533 if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
539 # In both cases, we have to default to 'cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547 else
548 as_ln_s='cp -pR'
549 fi
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
552
553 if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555 else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558 fi
559
560 as_test_x='test -x'
561 as_executable_p=as_fn_executable_p
562
563 # Sed expression to map a string onto a valid CPP name.
564 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
565 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
566
567 # Sed expression to map a string onto a valid variable name.
568 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
569 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
570
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573
574 test -n "$DJDIR" || exec 7<&0 </dev/null
575 exec 6>&1
576
577 # Name of the host.
578 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
579 # so uname gets run too.
580 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582 #
583 # Initializations.
584 #
585 ac_default_prefix=/usr/local
586 ac_clean_CONFIG_STATUS=
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594
595 # Identity of this package.
596 PACKAGE_NAME='libedit'
597 PACKAGE_TARNAME='libedit-20260512'
598 PACKAGE_VERSION='3.1'
599 PACKAGE_STRING='libedit 3.1'
600 PACKAGE_BUGREPORT=''
601 PACKAGE_URL=''
602
603 ac_unique_file="src/strlcat.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stddef.h>
607 #ifdef HAVE_STDIO_H
608 # include <stdio.h>
609 #endif
610 #ifdef HAVE_STDLIB_H
611 # include <stdlib.h>
612 #endif
613 #ifdef HAVE_STRING_H
614 # include <string.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_SYS_TYPES_H
626 # include <sys/types.h>
627 #endif
628 #ifdef HAVE_SYS_STAT_H
629 # include <sys/stat.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_c_list=
636 ac_func_c_list=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 HAVE_UNVIS_FALSE
641 HAVE_UNVIS_TRUE
642 HAVE_VIS_FALSE
643 HAVE_VIS_TRUE
644 HAVE_GETLINE_FALSE
645 HAVE_GETLINE_TRUE
646 HAVE_STRLCAT_FALSE
647 HAVE_STRLCAT_TRUE
648 HAVE_STRLCPY_FALSE
649 HAVE_STRLCPY_TRUE
650 LIBOBJS
651 ENABLE_EXAMPLES_FALSE
652 ENABLE_EXAMPLES_TRUE
653 MANTYPE
654 NROFF
655 LT_VERSION
656 LT_SYS_LIBRARY_PATH
657 OTOOL64
658 OTOOL
659 LIPO
660 NMEDIT
661 DSYMUTIL
662 MANIFEST_TOOL
663 RANLIB
664 ac_ct_AR
665 AR
666 DLLTOOL
667 OBJDUMP
668 FILECMD
669 LN_S
670 NM
671 ac_ct_DUMPBIN
672 DUMPBIN
673 LD
674 FGREP
675 EGREP
676 GREP
677 SED
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 LIBTOOL
687 am__xargs_n
688 am__rm_f_notfound
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 CSCOPE
694 ETAGS
695 CTAGS
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__include
704 DEPDIR
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 OBJEXT
729 EXEEXT
730 ac_ct_CC
731 CPPFLAGS
732 LDFLAGS
733 CFLAGS
734 CC
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 runstatedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL
774 am__quote'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 enable_dependency_tracking
779 enable_silent_rules
780 enable_shared
781 enable_static
782 enable_pic
783 with_pic
784 enable_fast_install
785 enable_aix_soname
786 with_aix_soname
787 with_gnu_ld
788 with_sysroot
789 enable_libtool_lock
790 enable_widec
791 enable_examples
792 '
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 LT_SYS_LIBRARY_PATH'
802
803
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 ac_unrecognized_opts=
808 ac_unrecognized_sep=
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
811 cache_file=/dev/null
812 exec_prefix=NONE
813 no_create=
814 no_recursion=
815 prefix=NONE
816 program_prefix=NONE
817 program_suffix=NONE
818 program_transform_name=s,x,x,
819 silent=
820 site=
821 srcdir=
822 verbose=
823 x_includes=NONE
824 x_libraries=NONE
825
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 runstatedir='${localstatedir}/run'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
852
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
862 fi
863
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
869
870 case $ac_dashdash$ac_option in
871 --)
872 ac_dashdash=yes ;;
873
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
878
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
883
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
890
891 --config-cache | -C)
892 cache_file=config.cache ;;
893
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
898
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
905
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: '$ac_useropt'"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
921
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
926
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
931
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: '$ac_useropt'"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -runstatedir | --runstatedir | --runstatedi | --runstated \
1092 | --runstate | --runstat | --runsta | --runst | --runs \
1093 | --run | --ru | --r)
1094 ac_prev=runstatedir ;;
1095 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1096 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1097 | --run=* | --ru=* | --r=*)
1098 runstatedir=$ac_optarg ;;
1099
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1105
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1116
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1121
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1126
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1133
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1138
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1141
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1144
1145 -with-* | --with-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: '$ac_useropt'"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=\$ac_optarg ;;
1160
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: '$ac_useropt'"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=no ;;
1176
1177 --x)
1178 # Obsolete; use --with-x.
1179 with_x=yes ;;
1180
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1187
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1194
1195 -*) as_fn_error $? "unrecognized option: '$ac_option'
1196 Try '$0 --help' for more information"
1197 ;;
1198
1199 *=*)
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1205 esac
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1208
1209 *)
1210 # FIXME: should be removed in autoconf 3.0.
1211 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 ;;
1216
1217 esac
1218 done
1219
1220 if test -n "$ac_prev"; then
1221 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1222 as_fn_error $? "missing argument to $ac_option"
1223 fi
1224
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1227 no) ;;
1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 esac
1231 fi
1232
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir runstatedir
1238 do
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1241 case $ac_val in
1242 */ )
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1245 esac
1246 # Be sure to have absolute directory names.
1247 case $ac_val in
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 esac
1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1253
1254 # There might be people who depend on the old broken behavior: '$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1260
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 elif test "x$build_alias" != "x$host_alias"; then
1266 cross_compiling=yes
1267 fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error $? "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error $? "pwd does not report name of working directory"
1282
1283
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 printf '%s\n' X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)[^/].*/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\).*/{
1307 s//\1/
1308 q
1309 }
1310 s/.*/./; q'`
1311 srcdir=$ac_confdir
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 srcdir=..
1314 fi
1315 else
1316 ac_srcdir_defaulted=no
1317 fi
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321 fi
1322 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325 pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 srcdir=.
1329 fi
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1342
1343 #
1344 # Report the --help message.
1345 #
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF
1350 'configure' configures libedit 3.1 to adapt to many kinds of systems.
1351
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1356
1357 Defaults for the options are specified in brackets.
1358
1359 Configuration:
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print 'checking ...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for '--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or '..']
1369
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 [PREFIX]
1375
1376 By default, 'make install' will install all the files in
1377 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than '$ac_default_prefix' using '--prefix',
1379 for instance '--prefix=\$HOME'.
1380
1381 For better control, use the options below.
1382
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root
1400 [DATAROOTDIR/doc/libedit-20260512]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405 _ACEOF
1406
1407 cat <<\_ACEOF
1408
1409 Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413
1414 System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 _ACEOF
1418 fi
1419
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of libedit 3.1:";;
1423 esac
1424 cat <<\_ACEOF
1425
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-dependency-tracking
1431 do not reject slow dependency extractors
1432 --disable-dependency-tracking
1433 speeds up one-time build
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
1436 --enable-shared[=PKGS] build shared libraries [default=yes]
1437 --enable-static[=PKGS] build static libraries [default=yes]
1438 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1439 both]
1440 --enable-fast-install[=PKGS]
1441 optimize for fast installation [default=yes]
1442 --enable-aix-soname=aix|svr4|both
1443 shared library versioning (aka "SONAME") variant to
1444 provide on AIX, [default=aix].
1445 --disable-libtool-lock avoid locking (might break parallel builds)
1446 --enable-widec deprecated, wide-character/UTF-8 is always enabled
1447 --enable-examples build the example programs [default=yes]
1448
1449 Optional Packages:
1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1453 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1454 compiler's sysroot if not specified).
1455
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 LT_SYS_LIBRARY_PATH
1465 User-defined run-time library search path.
1466
1467 Use these variables to override the choices made by 'configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1469
1470 Report bugs to the package provider.
1471 _ACEOF
1472 ac_status=$?
1473 fi
1474
1475 if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" ||
1479 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1480 continue
1481 ac_builddir=.
1482
1483 case "$ac_dir" in
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *)
1486 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 esac ;;
1493 esac
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1498
1499 case $srcdir in
1500 .) # We are building in place.
1501 ac_srcdir=.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1508 *) # Relative name.
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 esac
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for configure.gnu first; this name is used for a wrapper for
1517 # Metaconfig's "Configure" on case-insensitive file systems.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1524 else
1525 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1528 done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533 cat <<\_ACEOF
1534 libedit configure 3.1
1535 generated by GNU Autoconf 2.73
1536
1537 Copyright (C) 2026 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540 _ACEOF
1541 exit
1542 fi
1543
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1547
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1552 {
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext conftest.beam
1555 if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 printf '%s\n' "$ac_try_echo"; } >&5
1562 (eval "$ac_compile") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1568 fi
1569 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest.$ac_objext
1574 then :
1575 ac_retval=0
1576 else case e in #(
1577 e) printf '%s\n' "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1579
1580 ac_retval=1 ;;
1581 esac
1582 fi
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_compile
1587
1588 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1589 # -------------------------------------------------------
1590 # Tests whether HEADER exists and can be compiled using the include files in
1591 # INCLUDES, setting the cache variable VAR accordingly.
1592 ac_fn_c_check_header_compile ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596 printf %s "checking for $2... " >&6; }
1597 if eval test \${$3+y}
1598 then :
1599 printf %s "(cached) " >&6
1600 else case e in #(
1601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h. */
1603 $4
1604 #include <$2>
1605 _ACEOF
1606 if ac_fn_c_try_compile "$LINENO"
1607 then :
1608 eval "$3=yes"
1609 else case e in #(
1610 e) eval "$3=no" ;;
1611 esac
1612 fi
1613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1614 esac
1615 fi
1616 eval ac_res=\$$3
1617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 printf '%s\n' "$ac_res" >&6; }
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620
1621 } # ac_fn_c_check_header_compile
1622
1623 # ac_fn_c_try_link LINENO
1624 # -----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_link ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1630 if { { ac_try="$ac_link"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 printf '%s\n' "$ac_try_echo"; } >&5
1637 (eval "$ac_link") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest$ac_exeext && {
1649 test "$cross_compiling" = yes ||
1650 test -x conftest$ac_exeext
1651 }
1652 then :
1653 ac_retval=0
1654 else case e in #(
1655 e) printf '%s\n' "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1 ;;
1659 esac
1660 fi
1661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1662 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1663 # interfere with the next link command; also delete a directory that is
1664 # left behind by Apple's compiler. We do this before executing the actions.
1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_link
1670
1671 # ac_fn_c_check_func LINENO FUNC VAR
1672 # ----------------------------------
1673 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1674 ac_fn_c_check_func ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 printf %s "checking for $2... " >&6; }
1679 if eval test \${$3+y}
1680 then :
1681 printf %s "(cached) " >&6
1682 else case e in #(
1683 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1685 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1687 #define $2 innocuous_$2
1688
1689 /* System header to define __stub macros and hopefully few prototypes,
1690 which can conflict with char $2 (void); below. */
1691
1692 #include <limits.h>
1693 #undef $2
1694
1695 /* Override any GCC internal prototype to avoid an error.
1696 Use char because int might match the return type of a GCC
1697 builtin and then its argument prototype would still apply. */
1698 #ifdef __cplusplus
1699 extern "C"
1700 #endif
1701 char $2 (void);
1702 /* The GNU C library defines this for functions which it implements
1703 to always fail with ENOSYS. Some functions are actually named
1704 something starting with __ and the normal name is an alias. */
1705 #if defined __stub_$2 || defined __stub___$2
1706 choke me
1707 #endif
1708
1709 int
1710 main (void)
1711 {
1712 return $2 ();
1713 ;
1714 return 0;
1715 }
1716 _ACEOF
1717 if ac_fn_c_try_link "$LINENO"
1718 then :
1719 eval "$3=yes"
1720 else case e in #(
1721 e) eval "$3=no" ;;
1722 esac
1723 fi
1724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1725 conftest$ac_exeext conftest.$ac_ext ;;
1726 esac
1727 fi
1728 eval ac_res=\$$3
1729 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 printf '%s\n' "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733 } # ac_fn_c_check_func
1734
1735 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1736 # ----------------------------------------------------
1737 # Tries to find if the field MEMBER exists in type AGGR, after including
1738 # INCLUDES, setting cache variable VAR accordingly.
1739 ac_fn_c_check_member ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1743 printf %s "checking for $2.$3... " >&6; }
1744 if eval test \${$4+y}
1745 then :
1746 printf %s "(cached) " >&6
1747 else case e in #(
1748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 $5
1751 int
1752 main (void)
1753 {
1754 static $2 ac_aggr;
1755 if (ac_aggr.$3)
1756 return 0;
1757 ;
1758 return 0;
1759 }
1760 _ACEOF
1761 if ac_fn_c_try_compile "$LINENO"
1762 then :
1763 eval "$4=yes"
1764 else case e in #(
1765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 $5
1768 int
1769 main (void)
1770 {
1771 static $2 ac_aggr;
1772 if (sizeof ac_aggr.$3)
1773 return 0;
1774 ;
1775 return 0;
1776 }
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"
1779 then :
1780 eval "$4=yes"
1781 else case e in #(
1782 e) eval "$4=no" ;;
1783 esac
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1786 esac
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1789 esac
1790 fi
1791 eval ac_res=\$$4
1792 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 printf '%s\n' "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_member
1797
1798 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1799 # -------------------------------------------
1800 # Tests whether TYPE exists after having included INCLUDES, setting cache
1801 # variable VAR accordingly.
1802 ac_fn_c_check_type ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 printf %s "checking for $2... " >&6; }
1807 if eval test \${$3+y}
1808 then :
1809 printf %s "(cached) " >&6
1810 else case e in #(
1811 e) eval "$3=no"
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1814 $4
1815 int
1816 main (void)
1817 {
1818 if (sizeof ($2))
1819 return 0;
1820 ;
1821 return 0;
1822 }
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"
1825 then :
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 $4
1829 int
1830 main (void)
1831 {
1832 if (sizeof (($2)))
1833 return 0;
1834 ;
1835 return 0;
1836 }
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"
1839 then :
1840
1841 else case e in #(
1842 e) eval "$3=yes" ;;
1843 esac
1844 fi
1845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1846 fi
1847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1848 esac
1849 fi
1850 eval ac_res=\$$3
1851 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 printf '%s\n' "$ac_res" >&6; }
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855 } # ac_fn_c_check_type
1856
1857 # ac_fn_c_try_run LINENO
1858 # ----------------------
1859 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1860 # executables *can* be run.
1861 ac_fn_c_try_run ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_link"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 printf '%s\n' "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>&5
1872 ac_status=$?
1873 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1875 { { case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 printf '%s\n' "$ac_try_echo"; } >&5
1881 (eval "$ac_try") 2>&5
1882 ac_status=$?
1883 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; }; }
1885 then :
1886 ac_retval=0
1887 else case e in #(
1888 e) printf '%s\n' "$as_me: program exited with status $ac_status" >&5
1889 printf '%s\n' "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 ac_retval=$ac_status ;;
1893 esac
1894 fi
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1898
1899 } # ac_fn_c_try_run
1900 ac_configure_args_raw=
1901 for ac_arg
1902 do
1903 case $ac_arg in
1904 *\'*)
1905 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 esac
1907 as_fn_append ac_configure_args_raw " '$ac_arg'"
1908 done
1909
1910 case $ac_configure_args_raw in
1911 *$as_nl*)
1912 ac_safe_unquote= ;;
1913 *)
1914 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1915 ac_unsafe_a="$ac_unsafe_z#~"
1916 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1917 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1918 esac
1919
1920 cat >config.log <<_ACEOF
1921 This file contains any messages produced by compilers while
1922 running configure, to aid debugging if configure makes a mistake.
1923
1924 It was created by libedit $as_me 3.1, which was
1925 generated by GNU Autoconf 2.73. Invocation command line was
1926
1927 $ $0$ac_configure_args_raw
1928
1929 _ACEOF
1930 exec 5>>config.log
1931 {
1932 cat <<_ASUNAME
1933 ## --------- ##
1934 ## Platform. ##
1935 ## --------- ##
1936
1937 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1938 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1939 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1940 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1941 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942
1943 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1944 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1945
1946 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1947 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1948 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1949 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1950 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1951 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1952 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1953
1954 _ASUNAME
1955
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1958 do
1959 IFS=$as_save_IFS
1960 case $as_dir in #(((
1961 '') as_dir=./ ;;
1962 */) ;;
1963 *) as_dir=$as_dir/ ;;
1964 esac
1965 printf '%s\n' "PATH: $as_dir"
1966 done
1967 IFS=$as_save_IFS
1968
1969 } >&5
1970
1971 cat >&5 <<_ACEOF
1972
1973
1974 ## ----------- ##
1975 ## Core tests. ##
1976 ## ----------- ##
1977
1978 _ACEOF
1979
1980
1981 # Keep a trace of the command line.
1982 # Strip out --no-create and --no-recursion so they do not pile up.
1983 # Strip out --silent because we don't want to record it for future runs.
1984 # Also quote any args containing shell meta-characters.
1985 # Make two passes to allow for proper duplicate-argument suppression.
1986 ac_configure_args=
1987 ac_configure_args0=
1988 ac_configure_args1=
1989 ac_must_keep_next=false
1990 for ac_pass in 1 2
1991 do
1992 for ac_arg
1993 do
1994 case $ac_arg in
1995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1997 | -silent | --silent | --silen | --sile | --sil)
1998 continue ;;
1999 *\'*)
2000 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 esac
2002 case $ac_pass in
2003 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2004 2)
2005 as_fn_append ac_configure_args1 " '$ac_arg'"
2006 if test $ac_must_keep_next = true; then
2007 ac_must_keep_next=false # Got value, back to normal.
2008 else
2009 case $ac_arg in
2010 *=* | --config-cache | -C | -disable-* | --disable-* \
2011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2013 | -with-* | --with-* | -without-* | --without-* | --x)
2014 case "$ac_configure_args0 " in
2015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2016 esac
2017 ;;
2018 -* ) ac_must_keep_next=true ;;
2019 esac
2020 fi
2021 as_fn_append ac_configure_args " '$ac_arg'"
2022 ;;
2023 esac
2024 done
2025 done
2026 { ac_configure_args0=; unset ac_configure_args0;}
2027 { ac_configure_args1=; unset ac_configure_args1;}
2028
2029 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
2030 ac_cache_dump ()
2031 {
2032 # The following way of writing the cache mishandles newlines in values,
2033 # but we know of no workaround that is simple, portable, and efficient.
2034 # So, we kill variables containing newlines.
2035 # Ultrix sh set writes to stderr and can't be redirected directly,
2036 # and sets the high bit in the cache file unless we assign to the vars.
2037 (
2038 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2039 eval ac_val=\$$ac_var
2040 case $ac_val in #(
2041 *${as_nl}*)
2042 case $ac_var in #(
2043 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2044 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2045 esac
2046 case $ac_var in #(
2047 _ | IFS | as_nl) ;; #(
2048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2049 *) { eval $ac_var=; unset $ac_var;} ;;
2050 esac ;;
2051 esac
2052 done
2053
2054 (set) 2>&1 |
2055 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2056 *${as_nl}ac_space=\ *)
2057 # 'set' does not quote correctly, so add quotes: double-quote
2058 # substitution turns \\\\ into \\, and sed turns \\ into \.
2059 sed -n \
2060 "s/'/'\\\\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2062 ;; #(
2063 *)
2064 # 'set' quotes correctly as required by POSIX, so do not add quotes.
2065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2066 ;;
2067 esac |
2068 sort
2069 )
2070 }
2071
2072 # Print debugging info to stdout.
2073 ac_dump_debugging_info ()
2074 {
2075 echo
2076
2077 printf '%s\n' "## ---------------- ##
2078 ## Cache variables. ##
2079 ## ---------------- ##"
2080 echo
2081 ac_cache_dump
2082 echo
2083
2084 printf '%s\n' "## ----------------- ##
2085 ## Output variables. ##
2086 ## ----------------- ##"
2087 echo
2088 for ac_var in $ac_subst_vars
2089 do
2090 eval ac_val=\$$ac_var
2091 case $ac_val in
2092 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2093 esac
2094 printf '%s\n' "$ac_var='$ac_val'"
2095 done | sort
2096 echo
2097
2098 if test -n "$ac_subst_files"; then
2099 printf '%s\n' "## ------------------- ##
2100 ## File substitutions. ##
2101 ## ------------------- ##"
2102 echo
2103 for ac_var in $ac_subst_files
2104 do
2105 eval ac_val=\$$ac_var
2106 case $ac_val in
2107 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2108 esac
2109 printf '%s\n' "$ac_var='$ac_val'"
2110 done | sort
2111 echo
2112 fi
2113
2114 if test -s confdefs.h; then
2115 printf '%s\n' "## ----------- ##
2116 ## confdefs.h. ##
2117 ## ----------- ##"
2118 echo
2119 cat confdefs.h
2120 echo
2121 fi
2122 test "$ac_signal" != 0 &&
2123 printf '%s\n' "$as_me: caught signal $ac_signal"
2124 printf '%s\n' "$as_me: exit $exit_status"
2125 }
2126
2127 # When interrupted or exit'd, cleanup temporary files, and complete
2128 # config.log.
2129 ac_exit_trap ()
2130 {
2131 exit_status=
2132 # Sanitize IFS.
2133 IFS=" "" $as_nl"
2134 # Save into config.log some information that might help in debugging.
2135 ac_dump_debugging_info >&5
2136 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
2137 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2138 exit $exit_status
2139 }
2140
2141 trap 'ac_exit_trap $?' 0
2142 for ac_signal in 1 2 13 15; do
2143 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2144 done
2145 ac_signal=0
2146
2147 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2148 rm -f -r conftest* confdefs.h
2149
2150 printf '%s\n' "/* confdefs.h */" > confdefs.h
2151
2152 # Predefined preprocessor variables.
2153
2154 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2155
2156 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2157
2158 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2159
2160 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2161
2162 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2163
2164 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2165
2166
2167 # Let the site file select an alternate cache file if it wants to.
2168 # Prefer an explicitly selected file to automatically selected ones.
2169 if test -n "$CONFIG_SITE"; then
2170 ac_site_files="$CONFIG_SITE"
2171 elif test "x$prefix" != xNONE; then
2172 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2173 else
2174 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2175 fi
2176
2177 for ac_site_file in $ac_site_files
2178 do
2179 case $ac_site_file in #(
2180 */*) :
2181 ;; #(
2182 *) :
2183 ac_site_file=./$ac_site_file ;;
2184 esac
2185 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2186 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2187 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
2188 sed 's/^/| /' "$ac_site_file" >&5
2189 . "$ac_site_file" \
2190 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2191 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2192 as_fn_error $? "failed to load site script $ac_site_file
2193 See 'config.log' for more details" "$LINENO" 5; }
2194 fi
2195 done
2196
2197 if test -r "$cache_file"; then
2198 # Some versions of bash will fail to source /dev/null (special files
2199 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2200 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2202 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
2203 case $cache_file in
2204 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2205 *) . "./$cache_file";;
2206 esac
2207 fi
2208 else
2209 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2210 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2211 >$cache_file
2212 fi
2213
2214 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2215 # Test code for whether the C compiler supports C23 (global declarations)
2216 ac_c_conftest_c23_globals='
2217 /* Does the compiler advertise conformance to C17 or earlier?
2218 Although GCC 14 does not do that, even with -std=gnu23,
2219 it is close enough, and defines __STDC_VERSION == 202000L. */
2220 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2221 # error "Compiler advertises conformance to C17 or earlier"
2222 #endif
2223
2224 // Check alignas.
2225 char alignas (double) c23_aligned_as_double;
2226 char alignas (0) c23_no_special_alignment;
2227 extern char c23_aligned_as_int;
2228 char alignas (0) alignas (int) c23_aligned_as_int;
2229
2230 // Check alignof.
2231 enum
2232 {
2233 c23_int_alignment = alignof (int),
2234 c23_int_array_alignment = alignof (int[100]),
2235 c23_char_alignment = alignof (char)
2236 };
2237 static_assert (0 < -alignof (int), "alignof is signed");
2238
2239 int function_with_unnamed_parameter (int) { return 0; }
2240
2241 void c23_noreturn ();
2242
2243 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2244 The parens pacify GCC 15. */
2245 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2246
2247 bool check_that_bool_works = true | false | !nullptr;
2248 #if !true
2249 # error "true does not work in #if"
2250 #endif
2251 #if false
2252 #elifdef __STDC_VERSION__
2253 #else
2254 # error "#elifdef does not work"
2255 #endif
2256
2257 #ifndef __has_c_attribute
2258 # error "__has_c_attribute not defined"
2259 #endif
2260
2261 #ifndef __has_include
2262 # error "__has_include not defined"
2263 #endif
2264
2265 #define LPAREN() (
2266 #define FORTY_TWO(x) 42
2267 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2268 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2269
2270 static_assert (0b101010 == 42);
2271 static_assert (0B101010 == 42);
2272 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2273 static_assert (0.500'\''000'\''000 == 0.5);
2274
2275 enum unsignedish : unsigned int { uione = 1 };
2276 static_assert (0 < -uione);
2277
2278 #include <stddef.h>
2279 constexpr nullptr_t null_pointer = nullptr;
2280
2281 static typeof (1 + 1L) two () { return 2; }
2282 static long int three () { return 3; }
2283 '
2284
2285 # Test code for whether the C compiler supports C23 (body of main).
2286 ac_c_conftest_c23_main='
2287 {
2288 label_before_declaration:
2289 int arr[10] = {};
2290 if (arr[0])
2291 goto label_before_declaration;
2292 if (!arr[0])
2293 goto label_at_end_of_block;
2294 label_at_end_of_block:
2295 }
2296 ok |= !null_pointer;
2297 ok |= two != three;
2298 '
2299
2300 # Test code for whether the C compiler supports C23 (complete).
2301 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2302
2303 int
2304 main (int, char **)
2305 {
2306 int ok = 0;
2307 ${ac_c_conftest_c23_main}
2308 return ok;
2309 }
2310 "
2311
2312 # Test code for whether the C compiler supports C89 (global declarations)
2313 ac_c_conftest_c89_globals='
2314 /* Do not test the value of __STDC__, because some compilers define it to 0
2315 or do not define it, while otherwise adequately conforming. */
2316
2317 #include <stddef.h>
2318 #include <stdarg.h>
2319 struct stat;
2320 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2321 struct buf { int x; };
2322 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2323 static char *e (char **p, int i)
2324 {
2325 return p[i];
2326 }
2327 static char *f (char * (*g) (char **, int), char **p, ...)
2328 {
2329 char *s;
2330 va_list v;
2331 va_start (v,p);
2332 s = g (p, va_arg (v,int));
2333 va_end (v);
2334 return s;
2335 }
2336
2337 /* C89 style stringification. */
2338 #define noexpand_stringify(a) #a
2339 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2340
2341 /* C89 style token pasting. Exercises some of the corner cases that
2342 e.g. old MSVC gets wrong, but not very hard. */
2343 #define noexpand_concat(a,b) a##b
2344 #define expand_concat(a,b) noexpand_concat(a,b)
2345 extern int vA;
2346 extern int vbee;
2347 #define aye A
2348 #define bee B
2349 int *pvA = &expand_concat(v,aye);
2350 int *pvbee = &noexpand_concat(v,bee);
2351
2352 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2353 function prototypes and stuff, but not \xHH hex character constants.
2354 These do not provoke an error unfortunately, instead are silently treated
2355 as an "x". The following induces an error, until -std is added to get
2356 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2357 array size at least. It is necessary to write \x00 == 0 to get something
2358 that is true only with -std. */
2359 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2360
2361 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2362 inside strings and character constants. */
2363 #define FOO(x) '\''x'\''
2364 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2365
2366 int test (int i, double x);
2367 struct s1 {int (*f) (int a);};
2368 struct s2 {int (*f) (double a);};
2369 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2370 int, int);'
2371
2372 # Test code for whether the C compiler supports C89 (body of main).
2373 ac_c_conftest_c89_main='
2374 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2375 '
2376
2377 # Test code for whether the C compiler supports C99 (global declarations)
2378 ac_c_conftest_c99_globals='
2379 /* Does the compiler advertise C99 conformance? */
2380 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2381 # error "Compiler does not advertise C99 conformance"
2382 #endif
2383
2384 // See if C++-style comments work.
2385
2386 #include <stdbool.h>
2387 extern int puts (const char *);
2388 extern int printf (const char *, ...);
2389 extern int dprintf (int, const char *, ...);
2390 extern void *malloc (size_t);
2391 extern void free (void *);
2392
2393 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2394 // dprintf is used instead of fprintf to avoid needing to declare
2395 // FILE and stderr, and "aND" is used instead of "and" to work around
2396 // GCC bug 40564 which is irrelevant here.
2397 #define debug(...) dprintf (2, __VA_ARGS__)
2398 #define showlist(...) puts (#__VA_ARGS__)
2399 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2400 static void
2401 test_varargs_macros (void)
2402 {
2403 int x = 1234;
2404 int y = 5678;
2405 debug ("Flag");
2406 debug ("X = %d\n", x);
2407 showlist (The first, second, aND third items.);
2408 report (x>y, "x is %d but y is %d", x, y);
2409 }
2410
2411 // Check long long types.
2412 #define BIG64 18446744073709551615ull
2413 #define BIG32 4294967295ul
2414 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2415 #if !BIG_OK
2416 #error "your preprocessor is broken"
2417 #endif
2418 #if BIG_OK
2419 #else
2420 #error "your preprocessor is broken"
2421 #endif
2422 static long long int bignum = -9223372036854775807LL;
2423 static unsigned long long int ubignum = BIG64;
2424
2425 struct incomplete_array
2426 {
2427 int datasize;
2428 double data[];
2429 };
2430
2431 struct named_init {
2432 int number;
2433 const wchar_t *name;
2434 double average;
2435 };
2436
2437 typedef const char *ccp;
2438
2439 static inline int
2440 test_restrict (ccp restrict text)
2441 {
2442 // Iterate through items via the restricted pointer.
2443 // Also check for declarations in for loops.
2444 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2445 continue;
2446 return 0;
2447 }
2448
2449 // Check varargs and va_copy.
2450 static bool
2451 test_varargs (const char *format, ...)
2452 {
2453 va_list args;
2454 va_start (args, format);
2455 va_list args_copy;
2456 va_copy (args_copy, args);
2457
2458 const char *str = "";
2459 int number = 0;
2460 float fnumber = 0;
2461
2462 while (*format)
2463 {
2464 switch (*format++)
2465 {
2466 case '\''s'\'': // string
2467 str = va_arg (args_copy, const char *);
2468 break;
2469 case '\''d'\'': // int
2470 number = va_arg (args_copy, int);
2471 break;
2472 case '\''f'\'': // float
2473 fnumber = va_arg (args_copy, double);
2474 break;
2475 default:
2476 break;
2477 }
2478 }
2479 va_end (args_copy);
2480 va_end (args);
2481
2482 return *str && number && fnumber;
2483 }
2484 '
2485
2486 # Test code for whether the C compiler supports C99 (body of main).
2487 ac_c_conftest_c99_main='
2488 // Check bool.
2489 _Bool success = false;
2490 success |= (argc != 0);
2491
2492 // Check restrict.
2493 if (test_restrict ("String literal") == 0)
2494 success = true;
2495 const char *restrict newvar = "Another string";
2496
2497 // Check varargs.
2498 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2499 test_varargs_macros ();
2500
2501 // Check flexible array members.
2502 static struct incomplete_array *volatile incomplete_array_pointer;
2503 struct incomplete_array *ia = incomplete_array_pointer;
2504 ia->datasize = 10;
2505 for (int i = 0; i < ia->datasize; ++i)
2506 ia->data[i] = i * 1.234;
2507 // Work around memory leak warnings.
2508 free (ia);
2509
2510 // Check named initializers.
2511 struct named_init ni = {
2512 .number = 34,
2513 .name = L"Test wide string",
2514 .average = 543.34343,
2515 };
2516
2517 ni.number = 58;
2518
2519 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2520 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2521
2522 // work around unused variable warnings
2523 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2524 || ni.number != 58);
2525 '
2526
2527 # Test code for whether the C compiler supports C11 (global declarations)
2528 ac_c_conftest_c11_globals='
2529 /* Does the compiler advertise C11 conformance? */
2530 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2531 # error "Compiler does not advertise C11 conformance"
2532 #endif
2533
2534 // Check _Alignas.
2535 char _Alignas (double) aligned_as_double;
2536 char _Alignas (0) no_special_alignment;
2537 extern char aligned_as_int;
2538 char _Alignas (0) _Alignas (int) aligned_as_int;
2539
2540 // Check _Alignof.
2541 enum
2542 {
2543 int_alignment = _Alignof (int),
2544 int_array_alignment = _Alignof (int[100]),
2545 char_alignment = _Alignof (char)
2546 };
2547 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2548
2549 // Check _Noreturn.
2550 int _Noreturn does_not_return (void) { for (;;) continue; }
2551
2552 // Check _Static_assert.
2553 struct test_static_assert
2554 {
2555 int x;
2556 _Static_assert (sizeof (int) <= sizeof (long int),
2557 "_Static_assert does not work in struct");
2558 long int y;
2559 };
2560
2561 // Check UTF-8 literals.
2562 #define u8 syntax error!
2563 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2564
2565 // Check duplicate typedefs.
2566 typedef long *long_ptr;
2567 typedef long int *long_ptr;
2568 typedef long_ptr long_ptr;
2569
2570 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2571 struct anonymous
2572 {
2573 union {
2574 struct { int i; int j; };
2575 struct { int k; long int l; } w;
2576 };
2577 int m;
2578 } v1;
2579 '
2580
2581 # Test code for whether the C compiler supports C11 (body of main).
2582 ac_c_conftest_c11_main='
2583 _Static_assert ((offsetof (struct anonymous, i)
2584 == offsetof (struct anonymous, w.k)),
2585 "Anonymous union alignment botch");
2586 v1.i = 2;
2587 v1.w.k = 5;
2588 ok |= v1.i != 5;
2589 '
2590
2591 # Test code for whether the C compiler supports C11 (complete).
2592 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2593 ${ac_c_conftest_c99_globals}
2594 ${ac_c_conftest_c11_globals}
2595
2596 int
2597 main (int argc, char **argv)
2598 {
2599 int ok = 0;
2600 ${ac_c_conftest_c89_main}
2601 ${ac_c_conftest_c99_main}
2602 ${ac_c_conftest_c11_main}
2603 return ok;
2604 }
2605 "
2606
2607 # Test code for whether the C compiler supports C99 (complete).
2608 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2609 ${ac_c_conftest_c99_globals}
2610
2611 int
2612 main (int argc, char **argv)
2613 {
2614 int ok = 0;
2615 ${ac_c_conftest_c89_main}
2616 ${ac_c_conftest_c99_main}
2617 return ok;
2618 }
2619 "
2620
2621 # Test code for whether the C compiler supports C89 (complete).
2622 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2623
2624 int
2625 main (int argc, char **argv)
2626 {
2627 int ok = 0;
2628 ${ac_c_conftest_c89_main}
2629 return ok;
2630 }
2631 "
2632
2633 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2634 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2635 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2636 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2637 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2638 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2639 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2640 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2641 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2642 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2643 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2644 as_fn_append ac_func_c_list " fork HAVE_FORK"
2645 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2646
2647 # Auxiliary files required by this configure script.
2648 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2649
2650 # Locations in which to look for auxiliary files.
2651 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2652
2653 # Search for a directory containing all of the required auxiliary files,
2654 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2655 # If we don't find one directory that contains all the files we need,
2656 # we report the set of missing files from the *first* directory in
2657 # $ac_aux_dir_candidates and give up.
2658 ac_missing_aux_files=""
2659 ac_first_candidate=:
2660 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 as_found=false
2663 for as_dir in $ac_aux_dir_candidates
2664 do
2665 IFS=$as_save_IFS
2666 case $as_dir in #(((
2667 '') as_dir=./ ;;
2668 */) ;;
2669 *) as_dir=$as_dir/ ;;
2670 esac
2671 as_found=:
2672
2673 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2674 ac_aux_dir_found=yes
2675 ac_install_sh=
2676 for ac_aux in $ac_aux_files
2677 do
2678 # As a special case, if "install-sh" is required, that requirement
2679 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2680 # and $ac_install_sh is set appropriately for whichever one is found.
2681 if test x"$ac_aux" = x"install-sh"
2682 then
2683 if test -f "${as_dir}install-sh"; then
2684 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2685 ac_install_sh="${as_dir}install-sh -c"
2686 elif test -f "${as_dir}install.sh"; then
2687 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2688 ac_install_sh="${as_dir}install.sh -c"
2689 elif test -f "${as_dir}shtool"; then
2690 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2691 ac_install_sh="${as_dir}shtool install -c"
2692 else
2693 ac_aux_dir_found=no
2694 if $ac_first_candidate; then
2695 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2696 else
2697 break
2698 fi
2699 fi
2700 else
2701 if test -f "${as_dir}${ac_aux}"; then
2702 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2703 else
2704 ac_aux_dir_found=no
2705 if $ac_first_candidate; then
2706 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2707 else
2708 break
2709 fi
2710 fi
2711 fi
2712 done
2713 if test "$ac_aux_dir_found" = yes; then
2714 ac_aux_dir="$as_dir"
2715 break
2716 fi
2717 ac_first_candidate=false
2718
2719 as_found=false
2720 done
2721 IFS=$as_save_IFS
2722 if $as_found
2723 then :
2724
2725 else case e in #(
2726 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2727 esac
2728 fi
2729
2730
2731 # These three variables are undocumented and unsupported,
2732 # and are intended to be withdrawn in a future Autoconf release.
2733 # They can cause serious problems if a builder's source tree is in a directory
2734 # whose full name contains unusual characters.
2735 if test -f "${ac_aux_dir}config.guess"; then
2736 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2737 fi
2738 if test -f "${ac_aux_dir}config.sub"; then
2739 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2740 fi
2741 if test -f "$ac_aux_dir/configure"; then
2742 ac_configure="$SHELL ${ac_aux_dir}configure"
2743 fi
2744
2745 # Check that the precious variables saved in the cache have kept the same
2746 # value.
2747 ac_cache_corrupted=false
2748 for ac_var in $ac_precious_vars; do
2749 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2750 eval ac_new_set=\$ac_env_${ac_var}_set
2751 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2752 eval ac_new_val=\$ac_env_${ac_var}_value
2753 case $ac_old_set,$ac_new_set in
2754 set,)
2755 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2756 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2757 ac_cache_corrupted=: ;;
2758 ,set)
2759 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2760 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2761 ac_cache_corrupted=: ;;
2762 ,);;
2763 *)
2764 if test "x$ac_old_val" != "x$ac_new_val"; then
2765 # differences in whitespace do not lead to failure.
2766 ac_old_val_w=
2767 for ac_val in x $ac_old_val; do
2768 ac_old_val_w="$ac_old_val_w $ac_val"
2769 done
2770 ac_new_val_w=
2771 for ac_val in x $ac_new_val; do
2772 ac_new_val_w="$ac_new_val_w $ac_val"
2773 done
2774 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2775 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2776 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2777 ac_cache_corrupted=:
2778 else
2779 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2780 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2781 eval $ac_var=\$ac_old_val
2782 fi
2783 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2784 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
2785 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2786 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
2787 fi;;
2788 esac
2789 # Pass precious variables to config.status.
2790 if test "$ac_new_set" = set; then
2791 case $ac_new_val in
2792 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2793 *) ac_arg=$ac_var=$ac_new_val ;;
2794 esac
2795 case " $ac_configure_args " in
2796 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2797 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2798 esac
2799 fi
2800 done
2801 if $ac_cache_corrupted; then
2802 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2803 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2804 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2805 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
2806 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2807 and start over" "$LINENO" 5
2808 fi
2809 ## -------------------- ##
2810 ## Main body of script. ##
2811 ## -------------------- ##
2812
2813
2814 # Determine whether it's possible to make 'echo' print without a newline.
2815 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2816 # for compatibility with existing Makefiles.
2817 ECHO_C= ECHO_N= ECHO_T=
2818 case `echo -n x` in #(((((
2819 -n*)
2820 case `echo 'xy\c'` in
2821 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2822 xy) ECHO_C='\c';;
2823 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2824 ECHO_T=' ';;
2825 esac;;
2826 *)
2827 ECHO_N='-n';;
2828 esac
2829
2830 ac_ext=c
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835
2836
2837
2838
2839 ac_config_headers="$ac_config_headers config.h"
2840
2841
2842 # features of Posix that are extensions to C (define _GNU_SOURCE)
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857 # Expand $ac_aux_dir to an absolute path.
2858 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2859
2860 ac_ext=c
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865 if test -n "$ac_tool_prefix"; then
2866 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2867 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869 printf %s "checking for $ac_word... " >&6; }
2870 if test ${ac_cv_prog_CC+y}
2871 then :
2872 printf %s "(cached) " >&6
2873 else case e in #(
2874 e) if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880 IFS=$as_save_IFS
2881 case $as_dir in #(((
2882 '') as_dir=./ ;;
2883 */) ;;
2884 *) as_dir=$as_dir/ ;;
2885 esac
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2889 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi ;;
2897 esac
2898 fi
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 printf '%s\n' "$CC" >&6; }
2903 else
2904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 printf '%s\n' "no" >&6; }
2906 fi
2907
2908
2909 fi
2910 if test -z "$ac_cv_prog_CC"; then
2911 ac_ct_CC=$CC
2912 # Extract the first word of "gcc", so it can be a program name with args.
2913 set dummy gcc; ac_word=$2
2914 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 printf %s "checking for $ac_word... " >&6; }
2916 if test ${ac_cv_prog_ac_ct_CC+y}
2917 then :
2918 printf %s "(cached) " >&6
2919 else case e in #(
2920 e) if test -n "$ac_ct_CC"; then
2921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926 IFS=$as_save_IFS
2927 case $as_dir in #(((
2928 '') as_dir=./ ;;
2929 */) ;;
2930 *) as_dir=$as_dir/ ;;
2931 esac
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_ac_ct_CC="gcc"
2935 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2936 break 2
2937 fi
2938 done
2939 done
2940 IFS=$as_save_IFS
2941
2942 fi ;;
2943 esac
2944 fi
2945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946 if test -n "$ac_ct_CC"; then
2947 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2948 printf '%s\n' "$ac_ct_CC" >&6; }
2949 else
2950 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 printf '%s\n' "no" >&6; }
2952 fi
2953
2954 if test "x$ac_ct_CC" = x; then
2955 CC=""
2956 else
2957 case $cross_compiling:$ac_tool_warned in
2958 yes:)
2959 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2960 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2961 ac_tool_warned=yes ;;
2962 esac
2963 CC=$ac_ct_CC
2964 fi
2965 else
2966 CC="$ac_cv_prog_CC"
2967 fi
2968
2969 if test -z "$CC"; then
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2972 set dummy ${ac_tool_prefix}cc; ac_word=$2
2973 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 printf %s "checking for $ac_word... " >&6; }
2975 if test ${ac_cv_prog_CC+y}
2976 then :
2977 printf %s "(cached) " >&6
2978 else case e in #(
2979 e) if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985 IFS=$as_save_IFS
2986 case $as_dir in #(((
2987 '') as_dir=./ ;;
2988 */) ;;
2989 *) as_dir=$as_dir/ ;;
2990 esac
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_CC="${ac_tool_prefix}cc"
2994 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2995 break 2
2996 fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi ;;
3002 esac
3003 fi
3004 CC=$ac_cv_prog_CC
3005 if test -n "$CC"; then
3006 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007 printf '%s\n' "$CC" >&6; }
3008 else
3009 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 printf '%s\n' "no" >&6; }
3011 fi
3012
3013
3014 fi
3015 fi
3016 if test -z "$CC"; then
3017 # Extract the first word of "cc", so it can be a program name with args.
3018 set dummy cc; ac_word=$2
3019 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 printf %s "checking for $ac_word... " >&6; }
3021 if test ${ac_cv_prog_CC+y}
3022 then :
3023 printf %s "(cached) " >&6
3024 else case e in #(
3025 e) if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 ac_prog_rejected=no
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 case $as_dir in #(((
3034 '') as_dir=./ ;;
3035 */) ;;
3036 *) as_dir=$as_dir/ ;;
3037 esac
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3040 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3041 ac_prog_rejected=yes
3042 continue
3043 fi
3044 ac_cv_prog_CC="cc"
3045 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048 done
3049 done
3050 IFS=$as_save_IFS
3051
3052 if test $ac_prog_rejected = yes; then
3053 # We found a bogon in the path, so make sure we never use it.
3054 set dummy $ac_cv_prog_CC
3055 shift
3056 if test $# != 0; then
3057 # We chose a different compiler from the bogus one.
3058 # However, it has the same basename, so the bogon will be chosen
3059 # first if we set CC to just the basename; use the full file name.
3060 shift
3061 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3062 fi
3063 fi
3064 fi ;;
3065 esac
3066 fi
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 printf '%s\n' "$CC" >&6; }
3071 else
3072 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 printf '%s\n' "no" >&6; }
3074 fi
3075
3076
3077 fi
3078 if test -z "$CC"; then
3079 if test -n "$ac_tool_prefix"; then
3080 for ac_prog in cl.exe
3081 do
3082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 printf %s "checking for $ac_word... " >&6; }
3086 if test ${ac_cv_prog_CC+y}
3087 then :
3088 printf %s "(cached) " >&6
3089 else case e in #(
3090 e) if test -n "$CC"; then
3091 ac_cv_prog_CC="$CC" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096 IFS=$as_save_IFS
3097 case $as_dir in #(((
3098 '') as_dir=./ ;;
3099 */) ;;
3100 *) as_dir=$as_dir/ ;;
3101 esac
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3105 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108 done
3109 done
3110 IFS=$as_save_IFS
3111
3112 fi ;;
3113 esac
3114 fi
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3118 printf '%s\n' "$CC" >&6; }
3119 else
3120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 printf '%s\n' "no" >&6; }
3122 fi
3123
3124
3125 test -n "$CC" && break
3126 done
3127 fi
3128 if test -z "$CC"; then
3129 ac_ct_CC=$CC
3130 for ac_prog in cl.exe
3131 do
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 printf %s "checking for $ac_word... " >&6; }
3136 if test ${ac_cv_prog_ac_ct_CC+y}
3137 then :
3138 printf %s "(cached) " >&6
3139 else case e in #(
3140 e) if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146 IFS=$as_save_IFS
3147 case $as_dir in #(((
3148 '') as_dir=./ ;;
3149 */) ;;
3150 *) as_dir=$as_dir/ ;;
3151 esac
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_ac_ct_CC="$ac_prog"
3155 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi ;;
3163 esac
3164 fi
3165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3166 if test -n "$ac_ct_CC"; then
3167 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3168 printf '%s\n' "$ac_ct_CC" >&6; }
3169 else
3170 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 printf '%s\n' "no" >&6; }
3172 fi
3173
3174
3175 test -n "$ac_ct_CC" && break
3176 done
3177
3178 if test "x$ac_ct_CC" = x; then
3179 CC=""
3180 else
3181 case $cross_compiling:$ac_tool_warned in
3182 yes:)
3183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3184 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3185 ac_tool_warned=yes ;;
3186 esac
3187 CC=$ac_ct_CC
3188 fi
3189 fi
3190
3191 fi
3192 if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3194 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3195 set dummy ${ac_tool_prefix}clang; ac_word=$2
3196 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 printf %s "checking for $ac_word... " >&6; }
3198 if test ${ac_cv_prog_CC+y}
3199 then :
3200 printf %s "(cached) " >&6
3201 else case e in #(
3202 e) if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208 IFS=$as_save_IFS
3209 case $as_dir in #(((
3210 '') as_dir=./ ;;
3211 */) ;;
3212 *) as_dir=$as_dir/ ;;
3213 esac
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_CC="${ac_tool_prefix}clang"
3217 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222 IFS=$as_save_IFS
3223
3224 fi ;;
3225 esac
3226 fi
3227 CC=$ac_cv_prog_CC
3228 if test -n "$CC"; then
3229 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3230 printf '%s\n' "$CC" >&6; }
3231 else
3232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 printf '%s\n' "no" >&6; }
3234 fi
3235
3236
3237 fi
3238 if test -z "$ac_cv_prog_CC"; then
3239 ac_ct_CC=$CC
3240 # Extract the first word of "clang", so it can be a program name with args.
3241 set dummy clang; ac_word=$2
3242 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 printf %s "checking for $ac_word... " >&6; }
3244 if test ${ac_cv_prog_ac_ct_CC+y}
3245 then :
3246 printf %s "(cached) " >&6
3247 else case e in #(
3248 e) if test -n "$ac_ct_CC"; then
3249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254 IFS=$as_save_IFS
3255 case $as_dir in #(((
3256 '') as_dir=./ ;;
3257 */) ;;
3258 *) as_dir=$as_dir/ ;;
3259 esac
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_ac_ct_CC="clang"
3263 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi ;;
3271 esac
3272 fi
3273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3274 if test -n "$ac_ct_CC"; then
3275 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3276 printf '%s\n' "$ac_ct_CC" >&6; }
3277 else
3278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 printf '%s\n' "no" >&6; }
3280 fi
3281
3282 if test "x$ac_ct_CC" = x; then
3283 CC=""
3284 else
3285 case $cross_compiling:$ac_tool_warned in
3286 yes:)
3287 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3288 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3289 ac_tool_warned=yes ;;
3290 esac
3291 CC=$ac_ct_CC
3292 fi
3293 else
3294 CC="$ac_cv_prog_CC"
3295 fi
3296
3297 fi
3298
3299
3300 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3301 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3302 as_fn_error $? "no acceptable C compiler found in \$PATH
3303 See 'config.log' for more details" "$LINENO" 5; }
3304
3305 # Provide some information about the compiler.
3306 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3307 set X $ac_compile
3308 ac_compiler=$2
3309 for ac_option in --version -v -V -qversion -version; do
3310 { { ac_try="$ac_compiler $ac_option >&5"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 printf '%s\n' "$ac_try_echo"; } >&5
3317 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3318 ac_status=$?
3319 if test -s conftest.err; then
3320 sed '10a\
3321 ... rest of stderr output deleted ...
3322 10q' conftest.err >conftest.er1
3323 cat conftest.er1 >&5
3324 fi
3325 rm -f conftest.er1 conftest.err
3326 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }
3328 done
3329
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3332
3333 int
3334 main (void)
3335 {
3336
3337 ;
3338 return 0;
3339 }
3340 _ACEOF
3341 ac_clean_files_save=$ac_clean_files
3342 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3343 # Try to create an executable without -o first, disregard a.out.
3344 # It will help us diagnose broken compilers, and finding out an intuition
3345 # of exeext.
3346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3347 printf %s "checking whether the C compiler works... " >&6; }
3348 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3349
3350 # The possible output files:
3351 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3352
3353 ac_rmfiles=
3354 for ac_file in $ac_files
3355 do
3356 case $ac_file in
3357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3358 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3359 esac
3360 done
3361 rm -f $ac_rmfiles
3362
3363 if { { ac_try="$ac_link_default"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 printf '%s\n' "$ac_try_echo"; } >&5
3370 (eval "$ac_link_default") 2>&5
3371 ac_status=$?
3372 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }
3374 then :
3375 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3376 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3377 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3378 # so that the user can short-circuit this test for compilers unknown to
3379 # Autoconf.
3380 for ac_file in $ac_files ''
3381 do
3382 test -f "$ac_file" || continue
3383 case $ac_file in
3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3385 ;;
3386 [ab].out )
3387 # We found the default executable, but exeext='' is most
3388 # certainly right.
3389 break;;
3390 *.* )
3391 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3392 then :; else
3393 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3394 fi
3395 # We set ac_cv_exeext here because the later test for it is not
3396 # safe: cross compilers may not add the suffix if given an '-o'
3397 # argument, so we may need to know it at that point already.
3398 # Even if this section looks crufty: it has the advantage of
3399 # actually working.
3400 break;;
3401 * )
3402 break;;
3403 esac
3404 done
3405 test "$ac_cv_exeext" = no && ac_cv_exeext=
3406
3407 else case e in #(
3408 e) ac_file='' ;;
3409 esac
3410 fi
3411 if test -z "$ac_file"
3412 then :
3413 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 printf '%s\n' "no" >&6; }
3415 printf '%s\n' "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3419 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3420 as_fn_error 77 "C compiler cannot create executables
3421 See 'config.log' for more details" "$LINENO" 5; }
3422 else case e in #(
3423 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3424 printf '%s\n' "yes" >&6; } ;;
3425 esac
3426 fi
3427 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3428 printf %s "checking for C compiler default output file name... " >&6; }
3429 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3430 printf '%s\n' "$ac_file" >&6; }
3431 ac_exeext=$ac_cv_exeext
3432
3433 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3434 ac_clean_files=$ac_clean_files_save
3435 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3436 printf %s "checking for suffix of executables... " >&6; }
3437 if { { ac_try="$ac_link"
3438 case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 printf '%s\n' "$ac_try_echo"; } >&5
3444 (eval "$ac_link") 2>&5
3445 ac_status=$?
3446 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }
3448 then :
3449 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3450 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3451 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3452 # 'rm'.
3453 for ac_file in conftest.exe conftest conftest.*; do
3454 test -f "$ac_file" || continue
3455 case $ac_file in
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3458 break;;
3459 * ) break;;
3460 esac
3461 done
3462 else case e in #(
3463 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3464 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3465 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3466 See 'config.log' for more details" "$LINENO" 5; } ;;
3467 esac
3468 fi
3469 rm -f conftest conftest$ac_cv_exeext
3470 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3471 printf '%s\n' "$ac_cv_exeext" >&6; }
3472
3473 rm -f conftest.$ac_ext
3474 EXEEXT=$ac_cv_exeext
3475 ac_exeext=$EXEEXT
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3478 #include <stdio.h>
3479 int
3480 main (void)
3481 {
3482 FILE *f = fopen ("conftest.out", "w");
3483 if (!f)
3484 return 1;
3485 return ferror (f) || fclose (f) != 0;
3486
3487 ;
3488 return 0;
3489 }
3490 _ACEOF
3491 ac_clean_files="$ac_clean_files conftest.out"
3492 # Check that the compiler produces executables we can run. If not, either
3493 # the compiler is broken, or we cross compile.
3494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3495 printf %s "checking whether we are cross compiling... " >&6; }
3496 if test "$cross_compiling" != yes; then
3497 { { ac_try="$ac_link"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 printf '%s\n' "$ac_try_echo"; } >&5
3504 (eval "$ac_link") 2>&5
3505 ac_status=$?
3506 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }
3508 if { ac_try='./conftest$ac_cv_exeext'
3509 { { case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514 printf '%s\n' "$ac_try_echo"; } >&5
3515 (eval "$ac_try") 2>&5
3516 ac_status=$?
3517 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518 test $ac_status = 0; }; }; then
3519 cross_compiling=no
3520 else
3521 if test "$cross_compiling" = maybe; then
3522 cross_compiling=yes
3523 else
3524 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3525 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3526 as_fn_error 77 "cannot run C compiled programs.
3527 If you meant to cross compile, use '--host'.
3528 See 'config.log' for more details" "$LINENO" 5; }
3529 fi
3530 fi
3531 fi
3532 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3533 printf '%s\n' "$cross_compiling" >&6; }
3534
3535 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3536 conftest.o conftest.obj conftest.out
3537 ac_clean_files=$ac_clean_files_save
3538 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3539 printf %s "checking for suffix of object files... " >&6; }
3540 if test ${ac_cv_objext+y}
3541 then :
3542 printf %s "(cached) " >&6
3543 else case e in #(
3544 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546
3547 int
3548 main (void)
3549 {
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 rm -f conftest.o conftest.obj
3556 if { { ac_try="$ac_compile"
3557 case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 printf '%s\n' "$ac_try_echo"; } >&5
3563 (eval "$ac_compile") 2>&5
3564 ac_status=$?
3565 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }
3567 then :
3568 for ac_file in conftest.o conftest.obj conftest.*; do
3569 test -f "$ac_file" || continue;
3570 case $ac_file in
3571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3572 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3573 break;;
3574 esac
3575 done
3576 else case e in #(
3577 e) printf '%s\n' "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3581 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3582 as_fn_error $? "cannot compute suffix of object files: cannot compile
3583 See 'config.log' for more details" "$LINENO" 5; } ;;
3584 esac
3585 fi
3586 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3587 esac
3588 fi
3589 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3590 printf '%s\n' "$ac_cv_objext" >&6; }
3591 OBJEXT=$ac_cv_objext
3592 ac_objext=$OBJEXT
3593 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3594 printf %s "checking whether the compiler supports GNU C... " >&6; }
3595 if test ${ac_cv_c_compiler_gnu+y}
3596 then :
3597 printf %s "(cached) " >&6
3598 else case e in #(
3599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601
3602 int
3603 main (void)
3604 {
3605 #ifndef __GNUC__
3606 choke me
3607 #endif
3608
3609 ;
3610 return 0;
3611 }
3612 _ACEOF
3613 if ac_fn_c_try_compile "$LINENO"
3614 then :
3615 ac_compiler_gnu=yes
3616 else case e in #(
3617 e) ac_compiler_gnu=no ;;
3618 esac
3619 fi
3620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3621 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3622 ;;
3623 esac
3624 fi
3625 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3626 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
3629 if test $ac_compiler_gnu = yes; then
3630 GCC=yes
3631 else
3632 GCC=
3633 fi
3634 ac_test_CFLAGS=${CFLAGS+y}
3635 ac_save_CFLAGS=$CFLAGS
3636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3637 printf %s "checking whether $CC accepts -g... " >&6; }
3638 if test ${ac_cv_prog_cc_g+y}
3639 then :
3640 printf %s "(cached) " >&6
3641 else case e in #(
3642 e) ac_save_c_werror_flag=$ac_c_werror_flag
3643 ac_c_werror_flag=yes
3644 ac_cv_prog_cc_g=no
3645 CFLAGS="-g"
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3648
3649 int
3650 main (void)
3651 {
3652
3653 ;
3654 return 0;
3655 }
3656 _ACEOF
3657 if ac_fn_c_try_compile "$LINENO"
3658 then :
3659 ac_cv_prog_cc_g=yes
3660 else case e in #(
3661 e) CFLAGS=""
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664
3665 int
3666 main (void)
3667 {
3668
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 if ac_fn_c_try_compile "$LINENO"
3674 then :
3675
3676 else case e in #(
3677 e) ac_c_werror_flag=$ac_save_c_werror_flag
3678 CFLAGS="-g"
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681
3682 int
3683 main (void)
3684 {
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"
3691 then :
3692 ac_cv_prog_cc_g=yes
3693 fi
3694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3695 esac
3696 fi
3697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3698 esac
3699 fi
3700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3701 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3702 esac
3703 fi
3704 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3705 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
3706 if test $ac_test_CFLAGS; then
3707 CFLAGS=$ac_save_CFLAGS
3708 elif test $ac_cv_prog_cc_g = yes; then
3709 if test "$GCC" = yes; then
3710 CFLAGS="-g -O2"
3711 else
3712 CFLAGS="-g"
3713 fi
3714 else
3715 if test "$GCC" = yes; then
3716 CFLAGS="-O2"
3717 else
3718 CFLAGS=
3719 fi
3720 fi
3721 ac_prog_cc_stdc=no
3722 if test x$ac_prog_cc_stdc = xno
3723 then :
3724 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
3725 printf %s "checking for $CC option to enable C23 features... " >&6; }
3726 if test ${ac_cv_prog_cc_c23+y}
3727 then :
3728 printf %s "(cached) " >&6
3729 else case e in #(
3730 e) ac_cv_prog_cc_c23=no
3731 ac_save_CC=$CC
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734 $ac_c_conftest_c23_program
3735 _ACEOF
3736 for ac_arg in '' -std=gnu23
3737 do
3738 CC="$ac_save_CC $ac_arg"
3739 if ac_fn_c_try_compile "$LINENO"
3740 then :
3741 ac_cv_prog_cc_c23=$ac_arg
3742 fi
3743 rm -f core conftest.err conftest.$ac_objext conftest.beam
3744 test "x$ac_cv_prog_cc_c23" != "xno" && break
3745 done
3746 rm -f conftest.$ac_ext
3747 CC=$ac_save_CC ;;
3748 esac
3749 fi
3750
3751 if test "x$ac_cv_prog_cc_c23" = xno
3752 then :
3753 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3754 printf '%s\n' "unsupported" >&6; }
3755 else case e in #(
3756 e) if test "x$ac_cv_prog_cc_c23" = x
3757 then :
3758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3759 printf '%s\n' "none needed" >&6; }
3760 else case e in #(
3761 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
3762 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
3763 CC="$CC $ac_cv_prog_cc_c23" ;;
3764 esac
3765 fi
3766 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
3767 ac_prog_cc_stdc=c23 ;;
3768 esac
3769 fi
3770 fi
3771 if test x$ac_prog_cc_stdc = xno
3772 then :
3773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3774 printf %s "checking for $CC option to enable C11 features... " >&6; }
3775 if test ${ac_cv_prog_cc_c11+y}
3776 then :
3777 printf %s "(cached) " >&6
3778 else case e in #(
3779 e) ac_cv_prog_cc_c11=no
3780 ac_save_CC=$CC
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783 $ac_c_conftest_c11_program
3784 _ACEOF
3785 for ac_arg in '' -std=gnu11 -std:c11
3786 do
3787 CC="$ac_save_CC $ac_arg"
3788 if ac_fn_c_try_compile "$LINENO"
3789 then :
3790 ac_cv_prog_cc_c11=$ac_arg
3791 fi
3792 rm -f core conftest.err conftest.$ac_objext conftest.beam
3793 test "x$ac_cv_prog_cc_c11" != "xno" && break
3794 done
3795 rm -f conftest.$ac_ext
3796 CC=$ac_save_CC ;;
3797 esac
3798 fi
3799
3800 if test "x$ac_cv_prog_cc_c11" = xno
3801 then :
3802 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3803 printf '%s\n' "unsupported" >&6; }
3804 else case e in #(
3805 e) if test "x$ac_cv_prog_cc_c11" = x
3806 then :
3807 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3808 printf '%s\n' "none needed" >&6; }
3809 else case e in #(
3810 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3811 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
3812 CC="$CC $ac_cv_prog_cc_c11" ;;
3813 esac
3814 fi
3815 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3816 ac_prog_cc_stdc=c11 ;;
3817 esac
3818 fi
3819 fi
3820 if test x$ac_prog_cc_stdc = xno
3821 then :
3822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3823 printf %s "checking for $CC option to enable C99 features... " >&6; }
3824 if test ${ac_cv_prog_cc_c99+y}
3825 then :
3826 printf %s "(cached) " >&6
3827 else case e in #(
3828 e) ac_cv_prog_cc_c99=no
3829 ac_save_CC=$CC
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3832 $ac_c_conftest_c99_program
3833 _ACEOF
3834 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3835 do
3836 CC="$ac_save_CC $ac_arg"
3837 if ac_fn_c_try_compile "$LINENO"
3838 then :
3839 ac_cv_prog_cc_c99=$ac_arg
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext conftest.beam
3842 test "x$ac_cv_prog_cc_c99" != "xno" && break
3843 done
3844 rm -f conftest.$ac_ext
3845 CC=$ac_save_CC ;;
3846 esac
3847 fi
3848
3849 if test "x$ac_cv_prog_cc_c99" = xno
3850 then :
3851 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3852 printf '%s\n' "unsupported" >&6; }
3853 else case e in #(
3854 e) if test "x$ac_cv_prog_cc_c99" = x
3855 then :
3856 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857 printf '%s\n' "none needed" >&6; }
3858 else case e in #(
3859 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3860 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
3861 CC="$CC $ac_cv_prog_cc_c99" ;;
3862 esac
3863 fi
3864 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3865 ac_prog_cc_stdc=c99 ;;
3866 esac
3867 fi
3868 fi
3869 if test x$ac_prog_cc_stdc = xno
3870 then :
3871 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3872 printf %s "checking for $CC option to enable C89 features... " >&6; }
3873 if test ${ac_cv_prog_cc_c89+y}
3874 then :
3875 printf %s "(cached) " >&6
3876 else case e in #(
3877 e) ac_cv_prog_cc_c89=no
3878 ac_save_CC=$CC
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881 $ac_c_conftest_c89_program
3882 _ACEOF
3883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3884 do
3885 CC="$ac_save_CC $ac_arg"
3886 if ac_fn_c_try_compile "$LINENO"
3887 then :
3888 ac_cv_prog_cc_c89=$ac_arg
3889 fi
3890 rm -f core conftest.err conftest.$ac_objext conftest.beam
3891 test "x$ac_cv_prog_cc_c89" != "xno" && break
3892 done
3893 rm -f conftest.$ac_ext
3894 CC=$ac_save_CC ;;
3895 esac
3896 fi
3897
3898 if test "x$ac_cv_prog_cc_c89" = xno
3899 then :
3900 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3901 printf '%s\n' "unsupported" >&6; }
3902 else case e in #(
3903 e) if test "x$ac_cv_prog_cc_c89" = x
3904 then :
3905 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3906 printf '%s\n' "none needed" >&6; }
3907 else case e in #(
3908 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3909 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
3910 CC="$CC $ac_cv_prog_cc_c89" ;;
3911 esac
3912 fi
3913 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3914 ac_prog_cc_stdc=c89 ;;
3915 esac
3916 fi
3917 fi
3918
3919 ac_ext=c
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924
3925
3926 ac_ext=c
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3932 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3933 if test ${am_cv_prog_cc_c_o+y}
3934 then :
3935 printf %s "(cached) " >&6
3936 else case e in #(
3937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3939
3940 int
3941 main (void)
3942 {
3943
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 # Make sure it works both with $CC and with simple cc.
3949 # Following AC_PROG_CC_C_O, we do the test twice because some
3950 # compilers refuse to overwrite an existing .o file with -o,
3951 # though they will create one.
3952 am_cv_prog_cc_c_o=yes
3953 for am_i in 1 2; do
3954 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3955 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } \
3959 && test -f conftest2.$ac_objext; then
3960 : OK
3961 else
3962 am_cv_prog_cc_c_o=no
3963 break
3964 fi
3965 done
3966 # aligned with autoconf, so not including core; see bug#72225.
3967 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
3968 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
3969 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
3970 unset am_i ;;
3971 esac
3972 fi
3973 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3974 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
3975 if test "$am_cv_prog_cc_c_o" != yes; then
3976 # Losing compiler, so override with the script.
3977 # FIXME: It is wrong to rewrite CC.
3978 # But if we don't then we get into trouble of one sort or another.
3979 # A longer-term fix would be to have automake use am__CC in this case,
3980 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3981 CC="$am_aux_dir/compile $CC"
3982 fi
3983 ac_ext=c
3984 ac_cpp='$CPP $CPPFLAGS'
3985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988
3989
3990
3991 ac_header= ac_cache=
3992 for ac_item in $ac_header_c_list
3993 do
3994 if test $ac_cache; then
3995 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3996 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3997 printf '%s\n' "#define $ac_item 1" >> confdefs.h
3998 fi
3999 ac_header= ac_cache=
4000 elif test $ac_header; then
4001 ac_cache=$ac_item
4002 else
4003 ac_header=$ac_item
4004 fi
4005 done
4006
4007
4008
4009
4010
4011
4012
4013
4014 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4015 then :
4016
4017 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
4018
4019 fi
4020
4021
4022
4023
4024
4025
4026 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4027 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4028 if test ${ac_cv_safe_to_define___extensions__+y}
4029 then :
4030 printf %s "(cached) " >&6
4031 else case e in #(
4032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034
4035 # define __EXTENSIONS__ 1
4036 $ac_includes_default
4037 int
4038 main (void)
4039 {
4040
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 if ac_fn_c_try_compile "$LINENO"
4046 then :
4047 ac_cv_safe_to_define___extensions__=yes
4048 else case e in #(
4049 e) ac_cv_safe_to_define___extensions__=no ;;
4050 esac
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4053 esac
4054 fi
4055 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4056 printf '%s\n' "$ac_cv_safe_to_define___extensions__" >&6; }
4057
4058 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4059 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4060 if test ${ac_cv_should_define__xopen_source+y}
4061 then :
4062 printf %s "(cached) " >&6
4063 else case e in #(
4064 e) ac_cv_should_define__xopen_source=no
4065 if test $ac_cv_header_wchar_h = yes
4066 then :
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069
4070 #include <wchar.h>
4071 mbstate_t x;
4072 int
4073 main (void)
4074 {
4075
4076 ;
4077 return 0;
4078 }
4079 _ACEOF
4080 if ac_fn_c_try_compile "$LINENO"
4081 then :
4082
4083 else case e in #(
4084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086
4087 #define _XOPEN_SOURCE 500
4088 #include <wchar.h>
4089 mbstate_t x;
4090 int
4091 main (void)
4092 {
4093
4094 ;
4095 return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"
4099 then :
4100 ac_cv_should_define__xopen_source=yes
4101 fi
4102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4103 esac
4104 fi
4105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4106 fi ;;
4107 esac
4108 fi
4109 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4110 printf '%s\n' "$ac_cv_should_define__xopen_source" >&6; }
4111
4112 printf '%s\n' "#define _ALL_SOURCE 1" >>confdefs.h
4113
4114 printf '%s\n' "#define _COSMO_SOURCE 1" >>confdefs.h
4115
4116 printf '%s\n' "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4117
4118 printf '%s\n' "#define _GNU_SOURCE 1" >>confdefs.h
4119
4120 printf '%s\n' "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4121
4122 printf '%s\n' "#define _NETBSD_SOURCE 1" >>confdefs.h
4123
4124 printf '%s\n' "#define _OPENBSD_SOURCE 1" >>confdefs.h
4125
4126 printf '%s\n' "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4127
4128 printf '%s\n' "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4129
4130 printf '%s\n' "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4131
4132 printf '%s\n' "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4133
4134 printf '%s\n' "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4135
4136 printf '%s\n' "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4137
4138 printf '%s\n' "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4139
4140 printf '%s\n' "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4141
4142 printf '%s\n' "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4143
4144 printf '%s\n' "#define _TANDEM_SOURCE 1" >>confdefs.h
4145
4146 if test $ac_cv_header_minix_config_h = yes
4147 then :
4148 MINIX=yes
4149 printf '%s\n' "#define _MINIX 1" >>confdefs.h
4150
4151 printf '%s\n' "#define _POSIX_SOURCE 1" >>confdefs.h
4152
4153 printf '%s\n' "#define _POSIX_1_SOURCE 2" >>confdefs.h
4154
4155 else case e in #(
4156 e) MINIX= ;;
4157 esac
4158 fi
4159 if test $ac_cv_safe_to_define___extensions__ = yes
4160 then :
4161 printf '%s\n' "#define __EXTENSIONS__ 1" >>confdefs.h
4162
4163 fi
4164 if test $ac_cv_should_define__xopen_source = yes
4165 then :
4166 printf '%s\n' "#define _XOPEN_SOURCE 500" >>confdefs.h
4167
4168 fi
4169
4170
4171 am__api_version='1.18'
4172
4173
4174 # Find a good install program. We prefer a C program (faster),
4175 # so one script is as good as another. But avoid the broken or
4176 # incompatible versions:
4177 # SysV /etc/install, /usr/sbin/install
4178 # SunOS /usr/etc/install
4179 # IRIX /sbin/install
4180 # AIX /bin/install
4181 # AmigaOS /C/install, which installs bootblocks on floppy discs
4182 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4183 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4184 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4185 # OS/2's system install, which has a completely different semantic
4186 # ./install, which can be erroneously created by make from ./install.sh.
4187 # Reject install programs that cannot install multiple files.
4188 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4189 printf %s "checking for a BSD-compatible install... " >&6; }
4190 if test -z "$INSTALL"; then
4191 if test ${ac_cv_path_install+y}
4192 then :
4193 printf %s "(cached) " >&6
4194 else case e in #(
4195 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4197 do
4198 IFS=$as_save_IFS
4199 case $as_dir in #(((
4200 '') as_dir=./ ;;
4201 */) ;;
4202 *) as_dir=$as_dir/ ;;
4203 esac
4204 # Account for fact that we put trailing slashes in our PATH walk.
4205 case $as_dir in #((
4206 ./ | /[cC]/* | \
4207 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4208 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4209 /usr/ucb/* ) ;;
4210 *)
4211 # OSF/1 and SCO ODT 3.0 have their own names for install.
4212 # Don't use installbsd from OSF/1 since it installs stuff as root
4213 # by default.
4214 for ac_prog in ginstall scoinst install; do
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4217 if test $ac_prog = install &&
4218 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4219 # AIX install. It has an incompatible calling convention.
4220 :
4221 elif test $ac_prog = install &&
4222 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4223 # program-specific install script used by HP pwplus--don't use.
4224 :
4225 else
4226 rm -rf conftest.one conftest.two conftest.dir
4227 echo one > conftest.one
4228 echo two > conftest.two
4229 mkdir conftest.dir
4230 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4231 test -s conftest.one && test -s conftest.two &&
4232 test -s conftest.dir/conftest.one &&
4233 test -s conftest.dir/conftest.two
4234 then
4235 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4236 break 3
4237 fi
4238 fi
4239 fi
4240 done
4241 done
4242 ;;
4243 esac
4244
4245 done
4246 IFS=$as_save_IFS
4247
4248 rm -rf conftest.one conftest.two conftest.dir
4249 ;;
4250 esac
4251 fi
4252 if test ${ac_cv_path_install+y}; then
4253 INSTALL=$ac_cv_path_install
4254 else
4255 # As a last resort, use the slow shell script. Don't cache a
4256 # value for INSTALL within a source directory, because that will
4257 # break other packages using the cache if that directory is
4258 # removed, or if the value is a relative name.
4259 INSTALL=$ac_install_sh
4260 fi
4261 fi
4262 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4263 printf '%s\n' "$INSTALL" >&6; }
4264
4265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4266 # It thinks the first close brace ends the variable substitution.
4267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4268
4269 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4270
4271 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4272
4273 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4274 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4275 if test ${am_cv_sleep_fractional_seconds+y}
4276 then :
4277 printf %s "(cached) " >&6
4278 else case e in #(
4279 e) if sleep 0.001 2>/dev/null
4280 then :
4281 am_cv_sleep_fractional_seconds=yes
4282 else case e in #(
4283 e) am_cv_sleep_fractional_seconds=no ;;
4284 esac
4285 fi
4286 ;;
4287 esac
4288 fi
4289 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4290 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
4291
4292 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4293 printf %s "checking filesystem timestamp resolution... " >&6; }
4294 if test ${am_cv_filesystem_timestamp_resolution+y}
4295 then :
4296 printf %s "(cached) " >&6
4297 else case e in #(
4298 e) # Default to the worst case.
4299 am_cv_filesystem_timestamp_resolution=2
4300
4301 # Only try to go finer than 1 sec if sleep can do it.
4302 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4303 # - 1 sec is not much of a win compared to 2 sec, and
4304 # - it takes 2 seconds to perform the test whether 1 sec works.
4305 #
4306 # Instead, just use the default 2s on platforms that have 1s resolution,
4307 # accept the extra 1s delay when using $sleep in the Automake tests, in
4308 # exchange for not incurring the 2s delay for running the test for all
4309 # packages.
4310 #
4311 am_try_resolutions=
4312 if test "$am_cv_sleep_fractional_seconds" = yes; then
4313 # Even a millisecond often causes a bunch of false positives,
4314 # so just try a hundredth of a second. The time saved between .001 and
4315 # .01 is not terribly consequential.
4316 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4317 fi
4318
4319 # In order to catch current-generation FAT out, we must *modify* files
4320 # that already exist; the *creation* timestamp is finer. Use names
4321 # that make ls -t sort them differently when they have equal
4322 # timestamps than when they have distinct timestamps, keeping
4323 # in mind that ls -t prints the *newest* file first.
4324 rm -f conftest.ts?
4325 : > conftest.ts1
4326 : > conftest.ts2
4327 : > conftest.ts3
4328
4329 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4330 # clobber the current shell's arguments. (Outer-level square brackets
4331 # are removed by m4; they're present so that m4 does not expand
4332 # <dollar><star>; be careful, easy to get confused.)
4333 if (
4334 set X `ls -t conftest.ts[12]` &&
4335 {
4336 test "$*" != "X conftest.ts1 conftest.ts2" ||
4337 test "$*" != "X conftest.ts2 conftest.ts1";
4338 }
4339 ); then :; else
4340 # If neither matched, then we have a broken ls. This can happen
4341 # if, for instance, CONFIG_SHELL is bash and it inherits a
4342 # broken ls alias from the environment. This has actually
4343 # happened. Such a system could not be considered "sane".
4344 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4345 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4346 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4347 as_fn_error $? "ls -t produces unexpected output.
4348 Make sure there is not a broken ls alias in your environment.
4349 See 'config.log' for more details" "$LINENO" 5; }
4350 fi
4351
4352 for am_try_res in $am_try_resolutions; do
4353 # Any one fine-grained sleep might happen to cross the boundary
4354 # between two values of a coarser actual resolution, but if we do
4355 # two fine-grained sleeps in a row, at least one of them will fall
4356 # entirely within a coarse interval.
4357 echo alpha > conftest.ts1
4358 sleep $am_try_res
4359 echo beta > conftest.ts2
4360 sleep $am_try_res
4361 echo gamma > conftest.ts3
4362
4363 # We assume that 'ls -t' will make use of high-resolution
4364 # timestamps if the operating system supports them at all.
4365 if (set X `ls -t conftest.ts?` &&
4366 test "$2" = conftest.ts3 &&
4367 test "$3" = conftest.ts2 &&
4368 test "$4" = conftest.ts1); then
4369 #
4370 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4371 # because we don't need to test make.
4372 make_ok=true
4373 if test $am_try_res != 1; then
4374 # But if we've succeeded so far with a subsecond resolution, we
4375 # have one more thing to check: make. It can happen that
4376 # everything else supports the subsecond mtimes, but make doesn't;
4377 # notably on macOS, which ships make 3.81 from 2006 (the last one
4378 # released under GPLv2). https://bugs.gnu.org/68808
4379 #
4380 # We test $MAKE if it is defined in the environment, else "make".
4381 # It might get overridden later, but our hope is that in practice
4382 # it does not matter: it is the system "make" which is (by far)
4383 # the most likely to be broken, whereas if the user overrides it,
4384 # probably they did so with a better, or at least not worse, make.
4385 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4386 #
4387 # Create a Makefile (real tab character here):
4388 rm -f conftest.mk
4389 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4390 echo ' touch conftest.ts2' >>conftest.mk
4391 #
4392 # Now, running
4393 # touch conftest.ts1; touch conftest.ts2; make
4394 # should touch ts1 because ts2 is newer. This could happen by luck,
4395 # but most often, it will fail if make's support is insufficient. So
4396 # test for several consecutive successes.
4397 #
4398 # (We reuse conftest.ts[12] because we still want to modify existing
4399 # files, not create new ones, per above.)
4400 n=0
4401 make=${MAKE-make}
4402 until test $n -eq 3; do
4403 echo one > conftest.ts1
4404 sleep $am_try_res
4405 echo two > conftest.ts2 # ts2 should now be newer than ts1
4406 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4407 make_ok=false
4408 break # out of $n loop
4409 fi
4410 n=`expr $n + 1`
4411 done
4412 fi
4413 #
4414 if $make_ok; then
4415 # Everything we know to check worked out, so call this resolution good.
4416 am_cv_filesystem_timestamp_resolution=$am_try_res
4417 break # out of $am_try_res loop
4418 fi
4419 # Otherwise, we'll go on to check the next resolution.
4420 fi
4421 done
4422 rm -f conftest.ts?
4423 # (end _am_filesystem_timestamp_resolution)
4424 ;;
4425 esac
4426 fi
4427 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4428 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
4429
4430 # This check should not be cached, as it may vary across builds of
4431 # different projects.
4432 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4433 printf %s "checking whether build environment is sane... " >&6; }
4434 # Reject unsafe characters in $srcdir or the absolute working directory
4435 # name. Accept space and tab only in the latter.
4436 am_lf='
4437 '
4438 case `pwd` in
4439 *[\\\"\#\$\&\'\`$am_lf]*)
4440 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 printf '%s\n' "no" >&6; }
4442 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4443 esac
4444 case $srcdir in
4445 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4446 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 printf '%s\n' "no" >&6; }
4448 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4449 esac
4450
4451 # Do 'set' in a subshell so we don't clobber the current shell's
4452 # arguments. Must try -L first in case configure is actually a
4453 # symlink; some systems play weird games with the mod time of symlinks
4454 # (eg FreeBSD returns the mod time of the symlink's containing
4455 # directory).
4456 am_build_env_is_sane=no
4457 am_has_slept=no
4458 rm -f conftest.file
4459 for am_try in 1 2; do
4460 echo "timestamp, slept: $am_has_slept" > conftest.file
4461 if (
4462 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4463 if test "$*" = "X"; then
4464 # -L didn't work.
4465 set X `ls -t "$srcdir/configure" conftest.file`
4466 fi
4467 test "$2" = conftest.file
4468 ); then
4469 am_build_env_is_sane=yes
4470 break
4471 fi
4472 # Just in case.
4473 sleep "$am_cv_filesystem_timestamp_resolution"
4474 am_has_slept=yes
4475 done
4476
4477 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4478 printf '%s\n' "$am_build_env_is_sane" >&6; }
4479 if test "$am_build_env_is_sane" = no; then
4480 as_fn_error $? "newly created file is older than distributed files!
4481 Check your system clock" "$LINENO" 5
4482 fi
4483
4484 # If we didn't sleep, we still need to ensure time stamps of config.status and
4485 # generated files are strictly newer.
4486 am_sleep_pid=
4487 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4488 then :
4489
4490 else case e in #(
4491 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4492 am_sleep_pid=$!
4493 ;;
4494 esac
4495 fi
4496
4497 rm -f conftest.file
4498
4499 test "$program_prefix" != NONE &&
4500 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4501 # Use a double $ so make ignores it.
4502 test "$program_suffix" != NONE &&
4503 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4504 # Double any \ or $.
4505 # By default was 's,x,x', remove it if useless.
4506 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4507 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
4508
4509
4510 if test x"${MISSING+set}" != xset; then
4511 MISSING="\${SHELL} '$am_aux_dir/missing'"
4512 fi
4513 # Use eval to expand $SHELL
4514 if eval "$MISSING --is-lightweight"; then
4515 am_missing_run="$MISSING "
4516 else
4517 am_missing_run=
4518 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4519 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4520 fi
4521
4522 if test x"${install_sh+set}" != xset; then
4523 case $am_aux_dir in
4524 *\ * | *\ *)
4525 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4526 *)
4527 install_sh="\${SHELL} $am_aux_dir/install-sh"
4528 esac
4529 fi
4530
4531 # Installed binaries are usually stripped using 'strip' when the user
4532 # run "make install-strip". However 'strip' might not be the right
4533 # tool to use in cross-compilation environments, therefore Automake
4534 # will honor the 'STRIP' environment variable to overrule this program.
4535 if test "$cross_compiling" != no; then
4536 if test -n "$ac_tool_prefix"; then
4537 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4538 set dummy ${ac_tool_prefix}strip; ac_word=$2
4539 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540 printf %s "checking for $ac_word... " >&6; }
4541 if test ${ac_cv_prog_STRIP+y}
4542 then :
4543 printf %s "(cached) " >&6
4544 else case e in #(
4545 e) if test -n "$STRIP"; then
4546 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551 IFS=$as_save_IFS
4552 case $as_dir in #(((
4553 '') as_dir=./ ;;
4554 */) ;;
4555 *) as_dir=$as_dir/ ;;
4556 esac
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4559 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4560 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563 done
4564 done
4565 IFS=$as_save_IFS
4566
4567 fi ;;
4568 esac
4569 fi
4570 STRIP=$ac_cv_prog_STRIP
4571 if test -n "$STRIP"; then
4572 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4573 printf '%s\n' "$STRIP" >&6; }
4574 else
4575 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 printf '%s\n' "no" >&6; }
4577 fi
4578
4579
4580 fi
4581 if test -z "$ac_cv_prog_STRIP"; then
4582 ac_ct_STRIP=$STRIP
4583 # Extract the first word of "strip", so it can be a program name with args.
4584 set dummy strip; ac_word=$2
4585 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 printf %s "checking for $ac_word... " >&6; }
4587 if test ${ac_cv_prog_ac_ct_STRIP+y}
4588 then :
4589 printf %s "(cached) " >&6
4590 else case e in #(
4591 e) if test -n "$ac_ct_STRIP"; then
4592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4596 do
4597 IFS=$as_save_IFS
4598 case $as_dir in #(((
4599 '') as_dir=./ ;;
4600 */) ;;
4601 *) as_dir=$as_dir/ ;;
4602 esac
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4605 ac_cv_prog_ac_ct_STRIP="strip"
4606 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4607 break 2
4608 fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 fi ;;
4614 esac
4615 fi
4616 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4617 if test -n "$ac_ct_STRIP"; then
4618 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4619 printf '%s\n' "$ac_ct_STRIP" >&6; }
4620 else
4621 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 printf '%s\n' "no" >&6; }
4623 fi
4624
4625 if test "x$ac_ct_STRIP" = x; then
4626 STRIP=":"
4627 else
4628 case $cross_compiling:$ac_tool_warned in
4629 yes:)
4630 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4631 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4632 ac_tool_warned=yes ;;
4633 esac
4634 STRIP=$ac_ct_STRIP
4635 fi
4636 else
4637 STRIP="$ac_cv_prog_STRIP"
4638 fi
4639
4640 fi
4641 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4642
4643
4644 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4645 printf %s "checking for a race-free mkdir -p... " >&6; }
4646 if test -z "$MKDIR_P"; then
4647 if test ${ac_cv_path_mkdir+y}
4648 then :
4649 printf %s "(cached) " >&6
4650 else case e in #(
4651 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4653 do
4654 IFS=$as_save_IFS
4655 case $as_dir in #(((
4656 '') as_dir=./ ;;
4657 */) ;;
4658 *) as_dir=$as_dir/ ;;
4659 esac
4660 for ac_prog in mkdir gmkdir; do
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4663 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4664 'mkdir ('*'coreutils) '* | \
4665 *'BusyBox '* | \
4666 'mkdir (fileutils) '4.1*)
4667 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4668 break 3;;
4669 esac
4670 done
4671 done
4672 done
4673 IFS=$as_save_IFS
4674 ;;
4675 esac
4676 fi
4677
4678 test -d ./--version && rmdir ./--version
4679 if test ${ac_cv_path_mkdir+y}; then
4680 MKDIR_P="$ac_cv_path_mkdir -p"
4681 else
4682 # As a last resort, use plain mkdir -p,
4683 # in the hope it doesn't have the bugs of ancient mkdir.
4684 MKDIR_P='mkdir -p'
4685 fi
4686 fi
4687 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4688 printf '%s\n' "$MKDIR_P" >&6; }
4689
4690 for ac_prog in gawk mawk nawk awk 'busybox awk'
4691 do
4692 # Extract the first word of "$ac_prog", so it can be a program name with args.
4693 set dummy $ac_prog; ac_word=$2
4694 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 printf %s "checking for $ac_word... " >&6; }
4696 if test ${ac_cv_prog_AWK+y}
4697 then :
4698 printf %s "(cached) " >&6
4699 else case e in #(
4700 e) if test -n "$AWK"; then
4701 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706 IFS=$as_save_IFS
4707 case $as_dir in #(((
4708 '') as_dir=./ ;;
4709 */) ;;
4710 *) as_dir=$as_dir/ ;;
4711 esac
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4714 ac_cv_prog_AWK="$ac_prog"
4715 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi ;;
4723 esac
4724 fi
4725 AWK=$ac_cv_prog_AWK
4726 if test -n "$AWK"; then
4727 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4728 printf '%s\n' "$AWK" >&6; }
4729 else
4730 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731 printf '%s\n' "no" >&6; }
4732 fi
4733
4734
4735 test -n "$AWK" && break
4736 done
4737
4738 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4739 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4740 set x ${MAKE-make}
4741 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4742 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4743 then :
4744 printf %s "(cached) " >&6
4745 else case e in #(
4746 e) cat >conftest.make <<\_ACEOF
4747 SHELL = /bin/sh
4748 all:
4749 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
4750 _ACEOF
4751 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4752 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4753 *@@@%%%=?*=@@@%%%*)
4754 eval ac_cv_prog_make_${ac_make}_set=yes;;
4755 *)
4756 eval ac_cv_prog_make_${ac_make}_set=no;;
4757 esac
4758 rm -f conftest.make ;;
4759 esac
4760 fi
4761 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4762 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4763 printf '%s\n' "yes" >&6; }
4764 SET_MAKE=
4765 else
4766 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 printf '%s\n' "no" >&6; }
4768 SET_MAKE="MAKE=${MAKE-make}"
4769 fi
4770
4771 rm -rf .tst 2>/dev/null
4772 mkdir .tst 2>/dev/null
4773 if test -d .tst; then
4774 am__leading_dot=.
4775 else
4776 am__leading_dot=_
4777 fi
4778 rmdir .tst 2>/dev/null
4779
4780 DEPDIR="${am__leading_dot}deps"
4781
4782 ac_config_commands="$ac_config_commands depfiles"
4783
4784 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4785 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4786 cat > confinc.mk << 'END'
4787 am__doit:
4788 @echo this is the am__doit target >confinc.out
4789 .PHONY: am__doit
4790 END
4791 am__include="#"
4792 am__quote=
4793 # BSD make does it like this.
4794 echo '.include "confinc.mk" # ignored' > confmf.BSD
4795 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4796 echo 'include confinc.mk # ignored' > confmf.GNU
4797 _am_result=no
4798 for s in GNU BSD; do
4799 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4800 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }
4804 case $?:`cat confinc.out 2>/dev/null` in #(
4805 '0:this is the am__doit target') :
4806 case $s in #(
4807 BSD) :
4808 am__include='.include' am__quote='"' ;; #(
4809 *) :
4810 am__include='include' am__quote='' ;;
4811 esac ;; #(
4812 *) :
4813 ;;
4814 esac
4815 if test "$am__include" != "#"; then
4816 _am_result="yes ($s style)"
4817 break
4818 fi
4819 done
4820 rm -f confinc.* confmf.*
4821 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4822 printf '%s\n' "${_am_result}" >&6; }
4823
4824 # Check whether --enable-dependency-tracking was given.
4825 if test ${enable_dependency_tracking+y}
4826 then :
4827 enableval=$enable_dependency_tracking;
4828 fi
4829
4830 if test "x$enable_dependency_tracking" != xno; then
4831 am_depcomp="$ac_aux_dir/depcomp"
4832 AMDEPBACKSLASH='\'
4833 am__nodep='_no'
4834 fi
4835 if test "x$enable_dependency_tracking" != xno; then
4836 AMDEP_TRUE=
4837 AMDEP_FALSE='#'
4838 else
4839 AMDEP_TRUE='#'
4840 AMDEP_FALSE=
4841 fi
4842
4843
4844 AM_DEFAULT_VERBOSITY=1
4845 # Check whether --enable-silent-rules was given.
4846 if test ${enable_silent_rules+y}
4847 then :
4848 enableval=$enable_silent_rules;
4849 fi
4850
4851 am_make=${MAKE-make}
4852 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4853 printf %s "checking whether $am_make supports nested variables... " >&6; }
4854 if test ${am_cv_make_support_nested_variables+y}
4855 then :
4856 printf %s "(cached) " >&6
4857 else case e in #(
4858 e) if printf '%s\n' 'TRUE=$(BAR$(V))
4859 BAR0=false
4860 BAR1=true
4861 V=1
4862 am__doit:
4863 @$(TRUE)
4864 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4865 am_cv_make_support_nested_variables=yes
4866 else
4867 am_cv_make_support_nested_variables=no
4868 fi ;;
4869 esac
4870 fi
4871 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4872 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
4873 AM_BACKSLASH='\'
4874
4875 am__rm_f_notfound=
4876 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4877 then :
4878
4879 else case e in #(
4880 e) am__rm_f_notfound='""' ;;
4881 esac
4882 fi
4883
4884
4885 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4886 printf %s "checking xargs -n works... " >&6; }
4887 if test ${am_cv_xargs_n_works+y}
4888 then :
4889 printf %s "(cached) " >&6
4890 else case e in #(
4891 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4892 3"
4893 then :
4894 am_cv_xargs_n_works=yes
4895 else case e in #(
4896 e) am_cv_xargs_n_works=no ;;
4897 esac
4898 fi ;;
4899 esac
4900 fi
4901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4902 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
4903 if test "$am_cv_xargs_n_works" = yes
4904 then :
4905 am__xargs_n='xargs -n'
4906 else case e in #(
4907 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4908 ;;
4909 esac
4910 fi
4911
4912 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4913 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4914 # is not polluted with repeated "-I."
4915 am__isrc=' -I$(srcdir)'
4916 # test to see if srcdir already configured
4917 if test -f $srcdir/config.status; then
4918 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4919 fi
4920 fi
4921
4922 # test whether we have cygpath
4923 if test -z "$CYGPATH_W"; then
4924 if (cygpath --version) >/dev/null 2>/dev/null; then
4925 CYGPATH_W='cygpath -w'
4926 else
4927 CYGPATH_W=echo
4928 fi
4929 fi
4930
4931
4932 # Define the identity of the package.
4933 PACKAGE='libedit-20260512'
4934 VERSION='3.1'
4935
4936
4937 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4938
4939
4940 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
4941
4942 # Some tools Automake needs.
4943
4944 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4945
4946
4947 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4948
4949
4950 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4951
4952
4953 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4954
4955
4956 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4957
4958 # For better backward compatibility. To be removed once Automake 1.9.x
4959 # dies out for good. For more background, see:
4960 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4961 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4962 mkdir_p='$(MKDIR_P)'
4963
4964 # We need awk for the "check" target (and possibly the TAP driver). The
4965 # system "awk" is bad on some platforms.
4966 # Always define AMTAR for backward compatibility. Yes, it's still used
4967 # in the wild :-( We should find a proper way to deprecate it ...
4968 AMTAR='$${TAR-tar}'
4969
4970
4971 # We'll loop over all known methods to create a tar archive until one works.
4972 _am_tools='gnutar plaintar pax cpio none'
4973
4974 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4975 # There is notably a 21 bits limit for the UID and the GID. In fact,
4976 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4977 # and bug#13588).
4978 am_max_uid=2097151 # 2^21 - 1
4979 am_max_gid=$am_max_uid
4980 # The $UID and $GID variables are not portable, so we need to resort
4981 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4982 # below are definitely unexpected, so allow the users to see them
4983 # (that is, avoid stderr redirection).
4984 am_uid=`id -u || echo unknown`
4985 am_gid=`id -g || echo unknown`
4986 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4987 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4988 if test x$am_uid = xunknown; then
4989 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4990 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4991 elif test $am_uid -le $am_max_uid; then
4992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4993 printf '%s\n' "yes" >&6; }
4994 else
4995 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 printf '%s\n' "no" >&6; }
4997 _am_tools=none
4998 fi
4999 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
5000 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
5001 if test x$gm_gid = xunknown; then
5002 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
5003 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
5004 elif test $am_gid -le $am_max_gid; then
5005 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5006 printf '%s\n' "yes" >&6; }
5007 else
5008 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 printf '%s\n' "no" >&6; }
5010 _am_tools=none
5011 fi
5012
5013 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
5014 printf %s "checking how to create a ustar tar archive... " >&6; }
5015
5016 # Go ahead even if we have the value already cached. We do so because we
5017 # need to set the values for the 'am__tar' and 'am__untar' variables.
5018 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
5019
5020 for _am_tool in $_am_tools; do
5021 case $_am_tool in
5022 gnutar)
5023 for _am_tar in tar gnutar gtar; do
5024 { echo "$as_me:$LINENO: $_am_tar --version" >&5
5025 ($_am_tar --version) >&5 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } && break
5029 done
5030 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
5031 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
5032 am__untar="$_am_tar -xf -"
5033 ;;
5034 plaintar)
5035 # Must skip GNU tar: if it does not support --format= it doesn't create
5036 # ustar tarball either.
5037 (tar --version) >/dev/null 2>&1 && continue
5038 am__tar='tar chf - "$$tardir"'
5039 am__tar_='tar chf - "$tardir"'
5040 am__untar='tar xf -'
5041 ;;
5042 pax)
5043 am__tar='pax -L -x ustar -w "$$tardir"'
5044 am__tar_='pax -L -x ustar -w "$tardir"'
5045 am__untar='pax -r'
5046 ;;
5047 cpio)
5048 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
5049 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
5050 am__untar='cpio -i -H ustar -d'
5051 ;;
5052 none)
5053 am__tar=false
5054 am__tar_=false
5055 am__untar=false
5056 ;;
5057 esac
5058
5059 # If the value was cached, stop now. We just wanted to have am__tar
5060 # and am__untar set.
5061 test -n "${am_cv_prog_tar_ustar}" && break
5062
5063 # tar/untar a dummy directory, and stop if the command works.
5064 rm -rf conftest.dir
5065 mkdir conftest.dir
5066 echo GrepMe > conftest.dir/file
5067 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
5068 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }
5072 rm -rf conftest.dir
5073 if test -s conftest.tar; then
5074 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
5075 ($am__untar <conftest.tar) >&5 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }
5079 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
5080 (cat conftest.dir/file) >&5 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }
5084 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
5085 fi
5086 done
5087 rm -rf conftest.dir
5088
5089 if test ${am_cv_prog_tar_ustar+y}
5090 then :
5091 printf %s "(cached) " >&6
5092 else case e in #(
5093 e) am_cv_prog_tar_ustar=$_am_tool ;;
5094 esac
5095 fi
5096
5097 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
5098 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
5099
5100
5101
5102
5103
5104 depcc="$CC" am_compiler_list=
5105
5106 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5107 printf %s "checking dependency style of $depcc... " >&6; }
5108 if test ${am_cv_CC_dependencies_compiler_type+y}
5109 then :
5110 printf %s "(cached) " >&6
5111 else case e in #(
5112 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5113 # We make a subdir and do the tests there. Otherwise we can end up
5114 # making bogus files that we don't know about and never remove. For
5115 # instance it was reported that on HP-UX the gcc test will end up
5116 # making a dummy file named 'D' -- because '-MD' means "put the output
5117 # in D".
5118 rm -rf conftest.dir
5119 mkdir conftest.dir
5120 # Copy depcomp to subdir because otherwise we won't find it if we're
5121 # using a relative directory.
5122 cp "$am_depcomp" conftest.dir
5123 cd conftest.dir
5124 # We will build objects and dependencies in a subdirectory because
5125 # it helps to detect inapplicable dependency modes. For instance
5126 # both Tru64's cc and ICC support -MD to output dependencies as a
5127 # side effect of compilation, but ICC will put the dependencies in
5128 # the current directory while Tru64 will put them in the object
5129 # directory.
5130 mkdir sub
5131
5132 am_cv_CC_dependencies_compiler_type=none
5133 if test "$am_compiler_list" = ""; then
5134 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5135 fi
5136 am__universal=false
5137 case " $depcc " in #(
5138 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5139 esac
5140
5141 for depmode in $am_compiler_list; do
5142 # Setup a source with many dependencies, because some compilers
5143 # like to wrap large dependency lists on column 80 (with \), and
5144 # we should not choose a depcomp mode which is confused by this.
5145 #
5146 # We need to recreate these files for each test, as the compiler may
5147 # overwrite some of them when testing with obscure command lines.
5148 # This happens at least with the AIX C compiler.
5149 : > sub/conftest.c
5150 for i in 1 2 3 4 5 6; do
5151 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5152 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5153 # Solaris 10 /bin/sh.
5154 echo '/* dummy */' > sub/conftst$i.h
5155 done
5156 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5157
5158 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5159 # mode. It turns out that the SunPro C++ compiler does not properly
5160 # handle '-M -o', and we need to detect this. Also, some Intel
5161 # versions had trouble with output in subdirs.
5162 am__obj=sub/conftest.${OBJEXT-o}
5163 am__minus_obj="-o $am__obj"
5164 case $depmode in
5165 gcc)
5166 # This depmode causes a compiler race in universal mode.
5167 test "$am__universal" = false || continue
5168 ;;
5169 nosideeffect)
5170 # After this tag, mechanisms are not by side-effect, so they'll
5171 # only be used when explicitly requested.
5172 if test "x$enable_dependency_tracking" = xyes; then
5173 continue
5174 else
5175 break
5176 fi
5177 ;;
5178 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5179 # This compiler won't grok '-c -o', but also, the minuso test has
5180 # not run yet. These depmodes are late enough in the game, and
5181 # so weak that their functioning should not be impacted.
5182 am__obj=conftest.${OBJEXT-o}
5183 am__minus_obj=
5184 ;;
5185 none) break ;;
5186 esac
5187 if depmode=$depmode \
5188 source=sub/conftest.c object=$am__obj \
5189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5190 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5191 >/dev/null 2>conftest.err &&
5192 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5193 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5194 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5195 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5196 # icc doesn't choke on unknown options, it will just issue warnings
5197 # or remarks (even with -Werror). So we grep stderr for any message
5198 # that says an option was ignored or not supported.
5199 # When given -MP, icc 7.0 and 7.1 complain thus:
5200 # icc: Command line warning: ignoring option '-M'; no argument required
5201 # The diagnosis changed in icc 8.0:
5202 # icc: Command line remark: option '-MP' not supported
5203 if (grep 'ignoring option' conftest.err ||
5204 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5205 am_cv_CC_dependencies_compiler_type=$depmode
5206 break
5207 fi
5208 fi
5209 done
5210
5211 cd ..
5212 rm -rf conftest.dir
5213 else
5214 am_cv_CC_dependencies_compiler_type=none
5215 fi
5216 ;;
5217 esac
5218 fi
5219 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5220 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
5221 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5222
5223 if
5224 test "x$enable_dependency_tracking" != xno \
5225 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5226 am__fastdepCC_TRUE=
5227 am__fastdepCC_FALSE='#'
5228 else
5229 am__fastdepCC_TRUE='#'
5230 am__fastdepCC_FALSE=
5231 fi
5232
5233
5234 # Variables for tags utilities; see am/tags.am
5235 if test -z "$CTAGS"; then
5236 CTAGS=ctags
5237 fi
5238
5239 if test -z "$ETAGS"; then
5240 ETAGS=etags
5241 fi
5242
5243 if test -z "$CSCOPE"; then
5244 CSCOPE=cscope
5245 fi
5246
5247
5248
5249
5250
5251
5252
5253 case `pwd` in
5254 *\ * | *\ *)
5255 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5256 printf '%s\n' "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5257 esac
5258
5259
5260
5261 macro_version='2.5.4'
5262 macro_revision='2.5.4'
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277 ltmain=$ac_aux_dir/ltmain.sh
5278
5279
5280
5281 # Make sure we can run config.sub.
5282 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5283 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5284
5285 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5286 printf %s "checking build system type... " >&6; }
5287 if test ${ac_cv_build+y}
5288 then :
5289 printf %s "(cached) " >&6
5290 else case e in #(
5291 e) ac_build_alias=$build_alias
5292 test "x$ac_build_alias" = x &&
5293 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5294 test "x$ac_build_alias" = x &&
5295 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5296 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5297 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5298 ;;
5299 esac
5300 fi
5301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5302 printf '%s\n' "$ac_cv_build" >&6; }
5303 case $ac_cv_build in
5304 *-*-*) ;;
5305 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5306 esac
5307 build=$ac_cv_build
5308 ac_save_IFS=$IFS; IFS='-'
5309 set x $ac_cv_build
5310 shift
5311 build_cpu=$1
5312 build_vendor=$2
5313 shift; shift
5314 # Remember, the first character of IFS is used to create $*,
5315 # except with old shells:
5316 build_os=$*
5317 IFS=$ac_save_IFS
5318 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
5319
5320
5321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5322 printf %s "checking host system type... " >&6; }
5323 if test ${ac_cv_host+y}
5324 then :
5325 printf %s "(cached) " >&6
5326 else case e in #(
5327 e) if test "x$host_alias" = x; then
5328 ac_cv_host=$ac_cv_build
5329 else
5330 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5331 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5332 fi
5333 ;;
5334 esac
5335 fi
5336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5337 printf '%s\n' "$ac_cv_host" >&6; }
5338 case $ac_cv_host in
5339 *-*-*) ;;
5340 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5341 esac
5342 host=$ac_cv_host
5343 ac_save_IFS=$IFS; IFS='-'
5344 set x $ac_cv_host
5345 shift
5346 host_cpu=$1
5347 host_vendor=$2
5348 shift; shift
5349 # Remember, the first character of IFS is used to create $*,
5350 # except with old shells:
5351 host_os=$*
5352 IFS=$ac_save_IFS
5353 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
5354
5355
5356 # Backslashify metacharacters that are still active within
5357 # double-quoted strings.
5358 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5359
5360 # Same as above, but do not quote variable references.
5361 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5362
5363 # Sed substitution to delay expansion of an escaped shell variable in a
5364 # double_quote_subst'ed string.
5365 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5366
5367 # Sed substitution to delay expansion of an escaped single quote.
5368 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5369
5370 # Sed substitution to avoid accidental globbing in evaled expressions
5371 no_glob_subst='s/\*/\\\*/g'
5372
5373 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5374 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5375 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5376
5377 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5378 printf %s "checking how to print strings... " >&6; }
5379 # Test print first, because it will be a builtin if present.
5380 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5381 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5382 ECHO='print -r --'
5383 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5384 ECHO='printf %s\n'
5385 else
5386 # Use this function as a fallback that always works.
5387 func_fallback_echo ()
5388 {
5389 eval 'cat <<_LTECHO_EOF
5390 $1
5391 _LTECHO_EOF'
5392 }
5393 ECHO='func_fallback_echo'
5394 fi
5395
5396 # func_echo_all arg...
5397 # Invoke $ECHO with all args, space-separated.
5398 func_echo_all ()
5399 {
5400 $ECHO ""
5401 }
5402
5403 case $ECHO in
5404 printf*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5405 printf '%s\n' "printf" >&6; } ;;
5406 print*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5407 printf '%s\n' "print -r" >&6; } ;;
5408 *) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5409 printf '%s\n' "cat" >&6; } ;;
5410 esac
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5426 printf %s "checking for a sed that does not truncate output... " >&6; }
5427 if test ${ac_cv_path_SED+y}
5428 then :
5429 printf %s "(cached) " >&6
5430 else case e in #(
5431 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5432 for ac_i in 1 2 3 4 5 6 7; do
5433 ac_script="$ac_script$as_nl$ac_script"
5434 done
5435 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5436 { ac_script=; unset ac_script;}
5437 if test -z "$SED"; then
5438 ac_path_SED_found=false
5439 # Loop through the user's path and test for each of PROGNAME-LIST
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443 IFS=$as_save_IFS
5444 case $as_dir in #(((
5445 '') as_dir=./ ;;
5446 */) ;;
5447 *) as_dir=$as_dir/ ;;
5448 esac
5449 for ac_prog in sed gsed
5450 do
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5453 as_fn_executable_p "$ac_path_SED" || continue
5454 # Check for GNU ac_path_SED and select it if it is found.
5455 # Check for GNU $ac_path_SED
5456 case `"$ac_path_SED" --version 2>&1` in #(
5457 *GNU*)
5458 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5459 #(
5460 *)
5461 ac_count=0
5462 printf %s 0123456789 >"conftest.in"
5463 while :
5464 do
5465 cat "conftest.in" "conftest.in" >"conftest.tmp"
5466 mv "conftest.tmp" "conftest.in"
5467 cp "conftest.in" "conftest.nl"
5468 printf '%s\n' '' >> "conftest.nl"
5469 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5471 as_fn_arith $ac_count + 1 && ac_count=$as_val
5472 if test $ac_count -gt ${ac_path_SED_max-0}; then
5473 # Best one so far, save it but keep looking for a better one
5474 ac_cv_path_SED="$ac_path_SED"
5475 ac_path_SED_max=$ac_count
5476 fi
5477 # 10*(2^10) chars as input seems more than enough
5478 test $ac_count -gt 10 && break
5479 done
5480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5481 esac
5482
5483 $ac_path_SED_found && break 3
5484 done
5485 done
5486 done
5487 IFS=$as_save_IFS
5488 if test -z "$ac_cv_path_SED"; then
5489 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5490 fi
5491 else
5492 ac_cv_path_SED=$SED
5493 fi
5494 ;;
5495 esac
5496 fi
5497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5498 printf '%s\n' "$ac_cv_path_SED" >&6; }
5499 SED="$ac_cv_path_SED"
5500 rm -f conftest.sed
5501
5502 test -z "$SED" && SED=sed
5503 Xsed="$SED -e 1s/^X//"
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5516 printf %s "checking for grep that handles long lines and -e... " >&6; }
5517 if test ${ac_cv_path_GREP+y}
5518 then :
5519 printf %s "(cached) " >&6
5520 else case e in #(
5521 e) if test -z "$GREP"; then
5522 ac_path_GREP_found=false
5523 # Loop through the user's path and test for each of PROGNAME-LIST
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5526 do
5527 IFS=$as_save_IFS
5528 case $as_dir in #(((
5529 '') as_dir=./ ;;
5530 */) ;;
5531 *) as_dir=$as_dir/ ;;
5532 esac
5533 for ac_prog in grep ggrep
5534 do
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5537 as_fn_executable_p "$ac_path_GREP" || continue
5538 # Check for GNU ac_path_GREP and select it if it is found.
5539 # Check for GNU $ac_path_GREP
5540 case `"$ac_path_GREP" --version 2>&1` in #(
5541 *GNU*)
5542 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5543 #(
5544 *)
5545 ac_count=0
5546 printf %s 0123456789 >"conftest.in"
5547 while :
5548 do
5549 cat "conftest.in" "conftest.in" >"conftest.tmp"
5550 mv "conftest.tmp" "conftest.in"
5551 cp "conftest.in" "conftest.nl"
5552 printf '%s\n' 'GREP' >> "conftest.nl"
5553 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5555 as_fn_arith $ac_count + 1 && ac_count=$as_val
5556 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5557 # Best one so far, save it but keep looking for a better one
5558 ac_cv_path_GREP="$ac_path_GREP"
5559 ac_path_GREP_max=$ac_count
5560 fi
5561 # 10*(2^10) chars as input seems more than enough
5562 test $ac_count -gt 10 && break
5563 done
5564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5565 esac
5566
5567 $ac_path_GREP_found && break 3
5568 done
5569 done
5570 done
5571 IFS=$as_save_IFS
5572 if test -z "$ac_cv_path_GREP"; then
5573 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5574 fi
5575 else
5576 ac_cv_path_GREP=$GREP
5577 fi
5578 ;;
5579 esac
5580 fi
5581 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5582 printf '%s\n' "$ac_cv_path_GREP" >&6; }
5583 GREP="$ac_cv_path_GREP"
5584
5585
5586 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5587 printf %s "checking for egrep... " >&6; }
5588 if test ${ac_cv_path_EGREP+y}
5589 then :
5590 printf %s "(cached) " >&6
5591 else case e in #(
5592 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5593 then ac_cv_path_EGREP="$GREP -E"
5594 else
5595 if test -z "$EGREP"; then
5596 ac_path_EGREP_found=false
5597 # Loop through the user's path and test for each of PROGNAME-LIST
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5600 do
5601 IFS=$as_save_IFS
5602 case $as_dir in #(((
5603 '') as_dir=./ ;;
5604 */) ;;
5605 *) as_dir=$as_dir/ ;;
5606 esac
5607 for ac_prog in egrep
5608 do
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5611 as_fn_executable_p "$ac_path_EGREP" || continue
5612 # Check for GNU ac_path_EGREP and select it if it is found.
5613 # Check for GNU $ac_path_EGREP
5614 case `"$ac_path_EGREP" --version 2>&1` in #(
5615 *GNU*)
5616 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5617 #(
5618 *)
5619 ac_count=0
5620 printf %s 0123456789 >"conftest.in"
5621 while :
5622 do
5623 cat "conftest.in" "conftest.in" >"conftest.tmp"
5624 mv "conftest.tmp" "conftest.in"
5625 cp "conftest.in" "conftest.nl"
5626 printf '%s\n' 'EGREP' >> "conftest.nl"
5627 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5629 as_fn_arith $ac_count + 1 && ac_count=$as_val
5630 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5631 # Best one so far, save it but keep looking for a better one
5632 ac_cv_path_EGREP="$ac_path_EGREP"
5633 ac_path_EGREP_max=$ac_count
5634 fi
5635 # 10*(2^10) chars as input seems more than enough
5636 test $ac_count -gt 10 && break
5637 done
5638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5639 esac
5640
5641 $ac_path_EGREP_found && break 3
5642 done
5643 done
5644 done
5645 IFS=$as_save_IFS
5646 if test -z "$ac_cv_path_EGREP"; then
5647 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5648 fi
5649 else
5650 ac_cv_path_EGREP=$EGREP
5651 fi
5652
5653 fi ;;
5654 esac
5655 fi
5656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5657 printf '%s\n' "$ac_cv_path_EGREP" >&6; }
5658 EGREP="$ac_cv_path_EGREP"
5659
5660 EGREP_TRADITIONAL=$EGREP
5661 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5662
5663 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5664 printf %s "checking for fgrep... " >&6; }
5665 if test ${ac_cv_path_FGREP+y}
5666 then :
5667 printf %s "(cached) " >&6
5668 else case e in #(
5669 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5670 then ac_cv_path_FGREP="$GREP -F"
5671 else
5672 if test -z "$FGREP"; then
5673 ac_path_FGREP_found=false
5674 # Loop through the user's path and test for each of PROGNAME-LIST
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5677 do
5678 IFS=$as_save_IFS
5679 case $as_dir in #(((
5680 '') as_dir=./ ;;
5681 */) ;;
5682 *) as_dir=$as_dir/ ;;
5683 esac
5684 for ac_prog in fgrep
5685 do
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5688 as_fn_executable_p "$ac_path_FGREP" || continue
5689 # Check for GNU ac_path_FGREP and select it if it is found.
5690 # Check for GNU $ac_path_FGREP
5691 case `"$ac_path_FGREP" --version 2>&1` in #(
5692 *GNU*)
5693 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5694 #(
5695 *)
5696 ac_count=0
5697 printf %s 0123456789 >"conftest.in"
5698 while :
5699 do
5700 cat "conftest.in" "conftest.in" >"conftest.tmp"
5701 mv "conftest.tmp" "conftest.in"
5702 cp "conftest.in" "conftest.nl"
5703 printf '%s\n' 'FGREP' >> "conftest.nl"
5704 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5706 as_fn_arith $ac_count + 1 && ac_count=$as_val
5707 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5708 # Best one so far, save it but keep looking for a better one
5709 ac_cv_path_FGREP="$ac_path_FGREP"
5710 ac_path_FGREP_max=$ac_count
5711 fi
5712 # 10*(2^10) chars as input seems more than enough
5713 test $ac_count -gt 10 && break
5714 done
5715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5716 esac
5717
5718 $ac_path_FGREP_found && break 3
5719 done
5720 done
5721 done
5722 IFS=$as_save_IFS
5723 if test -z "$ac_cv_path_FGREP"; then
5724 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5725 fi
5726 else
5727 ac_cv_path_FGREP=$FGREP
5728 fi
5729
5730 fi ;;
5731 esac
5732 fi
5733 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5734 printf '%s\n' "$ac_cv_path_FGREP" >&6; }
5735 FGREP="$ac_cv_path_FGREP"
5736
5737
5738 test -z "$GREP" && GREP=grep
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758 # Check whether --with-gnu-ld was given.
5759 if test ${with_gnu_ld+y}
5760 then :
5761 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5762 else case e in #(
5763 e) with_gnu_ld=no ;;
5764 esac
5765 fi
5766
5767 ac_prog=ld
5768 if test yes = "$GCC"; then
5769 # Check if gcc -print-prog-name=ld gives a path.
5770 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5771 printf %s "checking for ld used by $CC... " >&6; }
5772 case $host in
5773 *-*-mingw* | *-*-windows*)
5774 # gcc leaves a trailing carriage return, which upsets mingw
5775 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5776 *)
5777 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5778 esac
5779 case $ac_prog in
5780 # Accept absolute paths.
5781 [\\/]* | ?:[\\/]*)
5782 re_direlt='/[^/][^/]*/\.\./'
5783 # Canonicalize the pathname of ld
5784 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5785 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5786 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5787 done
5788 test -z "$LD" && LD=$ac_prog
5789 ;;
5790 "")
5791 # If it fails, then pretend we aren't using GCC.
5792 ac_prog=ld
5793 ;;
5794 *)
5795 # If it is relative, then search for the first ld in PATH.
5796 with_gnu_ld=unknown
5797 ;;
5798 esac
5799 elif test yes = "$with_gnu_ld"; then
5800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5801 printf %s "checking for GNU ld... " >&6; }
5802 else
5803 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5804 printf %s "checking for non-GNU ld... " >&6; }
5805 fi
5806 if test ${lt_cv_path_LD+y}
5807 then :
5808 printf %s "(cached) " >&6
5809 else case e in #(
5810 e) if test -z "$LD"; then
5811 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5812 for ac_dir in $PATH; do
5813 IFS=$lt_save_ifs
5814 test -z "$ac_dir" && ac_dir=.
5815 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5816 lt_cv_path_LD=$ac_dir/$ac_prog
5817 # Check to see if the program is GNU ld. I'd rather use --version,
5818 # but apparently some variants of GNU ld only accept -v.
5819 # Break only if it was the GNU/non-GNU ld that we prefer.
5820 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5821 *GNU* | *'with BFD'*)
5822 test no != "$with_gnu_ld" && break
5823 ;;
5824 *)
5825 test yes != "$with_gnu_ld" && break
5826 ;;
5827 esac
5828 fi
5829 done
5830 IFS=$lt_save_ifs
5831 else
5832 lt_cv_path_LD=$LD # Let the user override the test with a path.
5833 fi ;;
5834 esac
5835 fi
5836
5837 LD=$lt_cv_path_LD
5838 if test -n "$LD"; then
5839 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5840 printf '%s\n' "$LD" >&6; }
5841 else
5842 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 printf '%s\n' "no" >&6; }
5844 fi
5845 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5846 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5847 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5848 if test ${lt_cv_prog_gnu_ld+y}
5849 then :
5850 printf %s "(cached) " >&6
5851 else case e in #(
5852 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5853 case `$LD -v 2>&1 </dev/null` in
5854 *GNU* | *'with BFD'*)
5855 lt_cv_prog_gnu_ld=yes
5856 ;;
5857 *)
5858 lt_cv_prog_gnu_ld=no
5859 ;;
5860 esac ;;
5861 esac
5862 fi
5863 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5864 printf '%s\n' "$lt_cv_prog_gnu_ld" >&6; }
5865 with_gnu_ld=$lt_cv_prog_gnu_ld
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5876 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5877 if test ${lt_cv_path_NM+y}
5878 then :
5879 printf %s "(cached) " >&6
5880 else case e in #(
5881 e) if test -n "$NM"; then
5882 # Let the user override the test.
5883 lt_cv_path_NM=$NM
5884 else
5885 lt_nm_to_check=${ac_tool_prefix}nm
5886 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5887 lt_nm_to_check="$lt_nm_to_check nm"
5888 fi
5889 for lt_tmp_nm in $lt_nm_to_check; do
5890 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5891 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5892 IFS=$lt_save_ifs
5893 test -z "$ac_dir" && ac_dir=.
5894 tmp_nm=$ac_dir/$lt_tmp_nm
5895 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5896 # Check to see if the nm accepts a BSD-compat flag.
5897 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5898 # nm: unknown option "B" ignored
5899 # Tru64's nm complains that /dev/null is an invalid object file
5900 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5901 case $build_os in
5902 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5903 *) lt_bad_file=/dev/null ;;
5904 esac
5905 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5906 *$lt_bad_file* | *'Invalid file or object type'*)
5907 lt_cv_path_NM="$tmp_nm -B"
5908 break 2
5909 ;;
5910 *)
5911 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5912 */dev/null*)
5913 lt_cv_path_NM="$tmp_nm -p"
5914 break 2
5915 ;;
5916 *)
5917 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5918 continue # so that we can try to find one that supports BSD flags
5919 ;;
5920 esac
5921 ;;
5922 esac
5923 fi
5924 done
5925 IFS=$lt_save_ifs
5926 done
5927 : ${lt_cv_path_NM=no}
5928 fi ;;
5929 esac
5930 fi
5931 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5932 printf '%s\n' "$lt_cv_path_NM" >&6; }
5933 if test no != "$lt_cv_path_NM"; then
5934 NM=$lt_cv_path_NM
5935 else
5936 # Didn't find any BSD compatible name lister, look for dumpbin.
5937 if test -n "$DUMPBIN"; then :
5938 # Let the user override the test.
5939 else
5940 if test -n "$ac_tool_prefix"; then
5941 for ac_prog in dumpbin "link -dump"
5942 do
5943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5945 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 printf %s "checking for $ac_word... " >&6; }
5947 if test ${ac_cv_prog_DUMPBIN+y}
5948 then :
5949 printf %s "(cached) " >&6
5950 else case e in #(
5951 e) if test -n "$DUMPBIN"; then
5952 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957 IFS=$as_save_IFS
5958 case $as_dir in #(((
5959 '') as_dir=./ ;;
5960 */) ;;
5961 *) as_dir=$as_dir/ ;;
5962 esac
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5965 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5966 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969 done
5970 done
5971 IFS=$as_save_IFS
5972
5973 fi ;;
5974 esac
5975 fi
5976 DUMPBIN=$ac_cv_prog_DUMPBIN
5977 if test -n "$DUMPBIN"; then
5978 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5979 printf '%s\n' "$DUMPBIN" >&6; }
5980 else
5981 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 printf '%s\n' "no" >&6; }
5983 fi
5984
5985
5986 test -n "$DUMPBIN" && break
5987 done
5988 fi
5989 if test -z "$DUMPBIN"; then
5990 ac_ct_DUMPBIN=$DUMPBIN
5991 for ac_prog in dumpbin "link -dump"
5992 do
5993 # Extract the first word of "$ac_prog", so it can be a program name with args.
5994 set dummy $ac_prog; ac_word=$2
5995 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 printf %s "checking for $ac_word... " >&6; }
5997 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5998 then :
5999 printf %s "(cached) " >&6
6000 else case e in #(
6001 e) if test -n "$ac_ct_DUMPBIN"; then
6002 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007 IFS=$as_save_IFS
6008 case $as_dir in #(((
6009 '') as_dir=./ ;;
6010 */) ;;
6011 *) as_dir=$as_dir/ ;;
6012 esac
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6015 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6016 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6017 break 2
6018 fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023 fi ;;
6024 esac
6025 fi
6026 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6027 if test -n "$ac_ct_DUMPBIN"; then
6028 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6029 printf '%s\n' "$ac_ct_DUMPBIN" >&6; }
6030 else
6031 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 printf '%s\n' "no" >&6; }
6033 fi
6034
6035
6036 test -n "$ac_ct_DUMPBIN" && break
6037 done
6038
6039 if test "x$ac_ct_DUMPBIN" = x; then
6040 DUMPBIN=":"
6041 else
6042 case $cross_compiling:$ac_tool_warned in
6043 yes:)
6044 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046 ac_tool_warned=yes ;;
6047 esac
6048 DUMPBIN=$ac_ct_DUMPBIN
6049 fi
6050 fi
6051
6052 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6053 *COFF*)
6054 DUMPBIN="$DUMPBIN -symbols -headers"
6055 ;;
6056 *)
6057 DUMPBIN=:
6058 ;;
6059 esac
6060 fi
6061
6062 if test : != "$DUMPBIN"; then
6063 NM=$DUMPBIN
6064 fi
6065 fi
6066 test -z "$NM" && NM=nm
6067
6068
6069
6070
6071
6072
6073 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6074 printf %s "checking the name lister ($NM) interface... " >&6; }
6075 if test ${lt_cv_nm_interface+y}
6076 then :
6077 printf %s "(cached) " >&6
6078 else case e in #(
6079 e) lt_cv_nm_interface="BSD nm"
6080 echo "int some_variable = 0;" > conftest.$ac_ext
6081 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6082 (eval "$ac_compile" 2>conftest.err)
6083 cat conftest.err >&5
6084 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6085 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6086 cat conftest.err >&5
6087 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6088 cat conftest.out >&5
6089 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6090 lt_cv_nm_interface="MS dumpbin"
6091 fi
6092 rm -f conftest* ;;
6093 esac
6094 fi
6095 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6096 printf '%s\n' "$lt_cv_nm_interface" >&6; }
6097
6098 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6099 printf %s "checking whether ln -s works... " >&6; }
6100 LN_S=$as_ln_s
6101 if test "$LN_S" = "ln -s"; then
6102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6103 printf '%s\n' "yes" >&6; }
6104 else
6105 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6106 printf '%s\n' "no, using $LN_S" >&6; }
6107 fi
6108
6109 # find the maximum length of command line arguments
6110 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6111 printf %s "checking the maximum length of command line arguments... " >&6; }
6112 if test ${lt_cv_sys_max_cmd_len+y}
6113 then :
6114 printf %s "(cached) " >&6
6115 else case e in #(
6116 e) i=0
6117 teststring=ABCD
6118
6119 case $build_os in
6120 msdosdjgpp*)
6121 # On DJGPP, this test can blow up pretty badly due to problems in libc
6122 # (any single argument exceeding 2000 bytes causes a buffer overrun
6123 # during glob expansion). Even if it were fixed, the result of this
6124 # check would be larger than it should be.
6125 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6126 ;;
6127
6128 gnu* | ironclad*)
6129 # Under GNU Hurd and Ironclad, this test is not required because there
6130 # is no limit to the length of command line arguments.
6131 # Libtool will interpret -1 as no limit whatsoever
6132 lt_cv_sys_max_cmd_len=-1;
6133 ;;
6134
6135 cygwin* | mingw* | windows* | cegcc*)
6136 # On Win9x/ME, this test blows up -- it succeeds, but takes
6137 # about 5 minutes as the teststring grows exponentially.
6138 # Worse, since 9x/ME are not pre-emptively multitasking,
6139 # you end up with a "frozen" computer, even though with patience
6140 # the test eventually succeeds (with a max line length of 256k).
6141 # Instead, let's just punt: use the minimum linelength reported by
6142 # all of the supported platforms: 8192 (on NT/2K/XP).
6143 lt_cv_sys_max_cmd_len=8192;
6144 ;;
6145
6146 mint*)
6147 # On MiNT this can take a long time and run out of memory.
6148 lt_cv_sys_max_cmd_len=8192;
6149 ;;
6150
6151 amigaos*)
6152 # On AmigaOS with pdksh, this test takes hours, literally.
6153 # So we just punt and use a minimum line length of 8192.
6154 lt_cv_sys_max_cmd_len=8192;
6155 ;;
6156
6157 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6158 # This has been around since 386BSD, at least. Likely further.
6159 if test -x /sbin/sysctl; then
6160 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6161 elif test -x /usr/sbin/sysctl; then
6162 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6163 else
6164 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6165 fi
6166 # And add a safety zone
6167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6169 ;;
6170
6171 interix*)
6172 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6173 lt_cv_sys_max_cmd_len=196608
6174 ;;
6175
6176 os2*)
6177 # The test takes a long time on OS/2.
6178 lt_cv_sys_max_cmd_len=8192
6179 ;;
6180
6181 osf*)
6182 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6183 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6184 # nice to cause kernel panics so lets avoid the loop below.
6185 # First set a reasonable default.
6186 lt_cv_sys_max_cmd_len=16384
6187 #
6188 if test -x /sbin/sysconfig; then
6189 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6190 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6191 esac
6192 fi
6193 ;;
6194 sco3.2v5*)
6195 lt_cv_sys_max_cmd_len=102400
6196 ;;
6197 sysv5* | sco5v6* | sysv4.2uw2*)
6198 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6199 if test -n "$kargmax"; then
6200 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6201 else
6202 lt_cv_sys_max_cmd_len=32768
6203 fi
6204 ;;
6205 *)
6206 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6207 if test -n "$lt_cv_sys_max_cmd_len" && \
6208 test undefined != "$lt_cv_sys_max_cmd_len"; then
6209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6211 else
6212 # Make teststring a little bigger before we do anything with it.
6213 # a 1K string should be a reasonable start.
6214 for i in 1 2 3 4 5 6 7 8; do
6215 teststring=$teststring$teststring
6216 done
6217 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6218 # If test is not a shell built-in, we'll probably end up computing a
6219 # maximum length that is only half of the actual maximum length, but
6220 # we can't tell.
6221 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6222 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6223 test 17 != "$i" # 1/2 MB should be enough
6224 do
6225 i=`expr $i + 1`
6226 teststring=$teststring$teststring
6227 done
6228 # Only check the string length outside the loop.
6229 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6230 teststring=
6231 # Add a significant safety factor because C++ compilers can tack on
6232 # massive amounts of additional arguments before passing them to the
6233 # linker. It appears as though 1/2 is a usable value.
6234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6235 fi
6236 ;;
6237 esac
6238 ;;
6239 esac
6240 fi
6241
6242 if test -n "$lt_cv_sys_max_cmd_len"; then
6243 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6244 printf '%s\n' "$lt_cv_sys_max_cmd_len" >&6; }
6245 else
6246 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none" >&5
6247 printf '%s\n' "none" >&6; }
6248 fi
6249 max_cmd_len=$lt_cv_sys_max_cmd_len
6250
6251
6252
6253
6254
6255
6256 : ${CP="cp -f"}
6257 : ${MV="mv -f"}
6258 : ${RM="rm -f"}
6259
6260 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6261 lt_unset=unset
6262 else
6263 lt_unset=false
6264 fi
6265
6266
6267
6268
6269
6270 # test EBCDIC or ASCII
6271 case `echo X|tr X '\101'` in
6272 A) # ASCII based system
6273 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6274 lt_SP2NL='tr \040 \012'
6275 lt_NL2SP='tr \015\012 \040\040'
6276 ;;
6277 *) # EBCDIC based system
6278 lt_SP2NL='tr \100 \n'
6279 lt_NL2SP='tr \r\n \100\100'
6280 ;;
6281 esac
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6292 printf %s "checking how to convert $build file names to $host format... " >&6; }
6293 if test ${lt_cv_to_host_file_cmd+y}
6294 then :
6295 printf %s "(cached) " >&6
6296 else case e in #(
6297 e) case $host in
6298 *-*-mingw* )
6299 case $build in
6300 *-*-mingw* | *-*-windows* ) # actually msys
6301 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6302 ;;
6303 *-*-cygwin* )
6304 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6305 ;;
6306 * ) # otherwise, assume *nix
6307 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6308 ;;
6309 esac
6310 ;;
6311 *-*-cygwin* )
6312 case $build in
6313 *-*-mingw* | *-*-windows* ) # actually msys
6314 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6315 ;;
6316 *-*-cygwin* )
6317 lt_cv_to_host_file_cmd=func_convert_file_noop
6318 ;;
6319 * ) # otherwise, assume *nix
6320 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6321 ;;
6322 esac
6323 ;;
6324 * ) # unhandled hosts (and "normal" native builds)
6325 lt_cv_to_host_file_cmd=func_convert_file_noop
6326 ;;
6327 esac
6328 ;;
6329 esac
6330 fi
6331
6332 to_host_file_cmd=$lt_cv_to_host_file_cmd
6333 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6334 printf '%s\n' "$lt_cv_to_host_file_cmd" >&6; }
6335
6336
6337
6338
6339
6340 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6341 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6342 if test ${lt_cv_to_tool_file_cmd+y}
6343 then :
6344 printf %s "(cached) " >&6
6345 else case e in #(
6346 e) #assume ordinary cross tools, or native build.
6347 lt_cv_to_tool_file_cmd=func_convert_file_noop
6348 case $host in
6349 *-*-mingw* | *-*-windows* )
6350 case $build in
6351 *-*-mingw* | *-*-windows* ) # actually msys
6352 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6353 ;;
6354 esac
6355 ;;
6356 esac
6357 ;;
6358 esac
6359 fi
6360
6361 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6362 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6363 printf '%s\n' "$lt_cv_to_tool_file_cmd" >&6; }
6364
6365
6366
6367
6368
6369 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6370 printf %s "checking for $LD option to reload object files... " >&6; }
6371 if test ${lt_cv_ld_reload_flag+y}
6372 then :
6373 printf %s "(cached) " >&6
6374 else case e in #(
6375 e) lt_cv_ld_reload_flag='-r' ;;
6376 esac
6377 fi
6378 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6379 printf '%s\n' "$lt_cv_ld_reload_flag" >&6; }
6380 reload_flag=$lt_cv_ld_reload_flag
6381 case $reload_flag in
6382 "" | " "*) ;;
6383 *) reload_flag=" $reload_flag" ;;
6384 esac
6385 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6386 case $host_os in
6387 cygwin* | mingw* | windows* | pw32* | cegcc*)
6388 if test yes != "$GCC"; then
6389 reload_cmds=false
6390 fi
6391 ;;
6392 darwin*)
6393 if test yes = "$GCC"; then
6394 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6395 else
6396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6397 fi
6398 ;;
6399 esac
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409 # Extract the first word of "file", so it can be a program name with args.
6410 set dummy file; ac_word=$2
6411 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 printf %s "checking for $ac_word... " >&6; }
6413 if test ${ac_cv_prog_FILECMD+y}
6414 then :
6415 printf %s "(cached) " >&6
6416 else case e in #(
6417 e) if test -n "$FILECMD"; then
6418 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423 IFS=$as_save_IFS
6424 case $as_dir in #(((
6425 '') as_dir=./ ;;
6426 */) ;;
6427 *) as_dir=$as_dir/ ;;
6428 esac
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_FILECMD="file"
6432 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435 done
6436 done
6437 IFS=$as_save_IFS
6438
6439 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6440 fi ;;
6441 esac
6442 fi
6443 FILECMD=$ac_cv_prog_FILECMD
6444 if test -n "$FILECMD"; then
6445 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6446 printf '%s\n' "$FILECMD" >&6; }
6447 else
6448 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 printf '%s\n' "no" >&6; }
6450 fi
6451
6452
6453
6454
6455
6456
6457
6458
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6462 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 printf %s "checking for $ac_word... " >&6; }
6464 if test ${ac_cv_prog_OBJDUMP+y}
6465 then :
6466 printf %s "(cached) " >&6
6467 else case e in #(
6468 e) if test -n "$OBJDUMP"; then
6469 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6470 else
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474 IFS=$as_save_IFS
6475 case $as_dir in #(((
6476 '') as_dir=./ ;;
6477 */) ;;
6478 *) as_dir=$as_dir/ ;;
6479 esac
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6482 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6483 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6484 break 2
6485 fi
6486 done
6487 done
6488 IFS=$as_save_IFS
6489
6490 fi ;;
6491 esac
6492 fi
6493 OBJDUMP=$ac_cv_prog_OBJDUMP
6494 if test -n "$OBJDUMP"; then
6495 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6496 printf '%s\n' "$OBJDUMP" >&6; }
6497 else
6498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499 printf '%s\n' "no" >&6; }
6500 fi
6501
6502
6503 fi
6504 if test -z "$ac_cv_prog_OBJDUMP"; then
6505 ac_ct_OBJDUMP=$OBJDUMP
6506 # Extract the first word of "objdump", so it can be a program name with args.
6507 set dummy objdump; ac_word=$2
6508 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509 printf %s "checking for $ac_word... " >&6; }
6510 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6511 then :
6512 printf %s "(cached) " >&6
6513 else case e in #(
6514 e) if test -n "$ac_ct_OBJDUMP"; then
6515 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520 IFS=$as_save_IFS
6521 case $as_dir in #(((
6522 '') as_dir=./ ;;
6523 */) ;;
6524 *) as_dir=$as_dir/ ;;
6525 esac
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6528 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6529 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536 fi ;;
6537 esac
6538 fi
6539 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6540 if test -n "$ac_ct_OBJDUMP"; then
6541 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6542 printf '%s\n' "$ac_ct_OBJDUMP" >&6; }
6543 else
6544 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 printf '%s\n' "no" >&6; }
6546 fi
6547
6548 if test "x$ac_ct_OBJDUMP" = x; then
6549 OBJDUMP="false"
6550 else
6551 case $cross_compiling:$ac_tool_warned in
6552 yes:)
6553 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6556 esac
6557 OBJDUMP=$ac_ct_OBJDUMP
6558 fi
6559 else
6560 OBJDUMP="$ac_cv_prog_OBJDUMP"
6561 fi
6562
6563 test -z "$OBJDUMP" && OBJDUMP=objdump
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6574 printf %s "checking how to recognize dependent libraries... " >&6; }
6575 if test ${lt_cv_deplibs_check_method+y}
6576 then :
6577 printf %s "(cached) " >&6
6578 else case e in #(
6579 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6580 lt_cv_file_magic_test_file=
6581 lt_cv_deplibs_check_method='unknown'
6582 # Need to set the preceding variable on all platforms that support
6583 # interlibrary dependencies.
6584 # 'none' -- dependencies not supported.
6585 # 'unknown' -- same as none, but documents that we really don't know.
6586 # 'pass_all' -- all dependencies passed with no checks.
6587 # 'file_magic [[regex]]' -- check by looking for files in library path
6588 # that responds to the $file_magic_cmd with a given extended regex.
6589 # If you have 'file' or equivalent on your system and you're not sure
6590 # whether 'pass_all' will *always* work, you probably want this one.
6591
6592 case $host_os in
6593 aix[4-9]*)
6594 lt_cv_deplibs_check_method=pass_all
6595 ;;
6596
6597 beos*)
6598 lt_cv_deplibs_check_method=pass_all
6599 ;;
6600
6601 bsdi[45]*)
6602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6603 lt_cv_file_magic_cmd='$FILECMD -L'
6604 lt_cv_file_magic_test_file=/shlib/libc.so
6605 ;;
6606
6607 cygwin*)
6608 # func_win32_libid is a shell function defined in ltmain.sh
6609 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6610 lt_cv_file_magic_cmd='func_win32_libid'
6611 ;;
6612
6613 mingw* | windows* | pw32*)
6614 # Base MSYS/MinGW do not provide the 'file' command needed by
6615 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6616 # unless we find 'file', for example because we are cross-compiling.
6617 if ( file / ) >/dev/null 2>&1; then
6618 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6619 lt_cv_file_magic_cmd='func_win32_libid'
6620 else
6621 # Keep this pattern in sync with the one in func_win32_libid.
6622 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6623 lt_cv_file_magic_cmd='$OBJDUMP -f'
6624 fi
6625 ;;
6626
6627 cegcc*)
6628 # use the weaker test based on 'objdump'. See mingw*.
6629 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6630 lt_cv_file_magic_cmd='$OBJDUMP -f'
6631 ;;
6632
6633 darwin* | rhapsody*)
6634 lt_cv_deplibs_check_method=pass_all
6635 ;;
6636
6637 freebsd* | dragonfly* | midnightbsd*)
6638 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6639 case $host_cpu in
6640 i*86 )
6641 # Not sure whether the presence of OpenBSD here was a mistake.
6642 # Let's accept both of them until this is cleared up.
6643 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6644 lt_cv_file_magic_cmd=$FILECMD
6645 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6646 ;;
6647 esac
6648 else
6649 lt_cv_deplibs_check_method=pass_all
6650 fi
6651 ;;
6652
6653 haiku*)
6654 lt_cv_deplibs_check_method=pass_all
6655 ;;
6656
6657 hpux10.20* | hpux11*)
6658 lt_cv_file_magic_cmd=$FILECMD
6659 case $host_cpu in
6660 ia64*)
6661 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6662 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6663 ;;
6664 hppa*64*)
6665 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]'
6666 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6667 ;;
6668 *)
6669 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6670 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6671 ;;
6672 esac
6673 ;;
6674
6675 interix[3-9]*)
6676 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6678 ;;
6679
6680 irix5* | irix6* | nonstopux*)
6681 case $LD in
6682 *-32|*"-32 ") libmagic=32-bit;;
6683 *-n32|*"-n32 ") libmagic=N32;;
6684 *-64|*"-64 ") libmagic=64-bit;;
6685 *) libmagic=never-match;;
6686 esac
6687 lt_cv_deplibs_check_method=pass_all
6688 ;;
6689
6690 # This must be glibc/ELF.
6691 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6692 lt_cv_deplibs_check_method=pass_all
6693 ;;
6694
6695 *-mlibc)
6696 lt_cv_deplibs_check_method=pass_all
6697 ;;
6698
6699 netbsd* | netbsdelf*-gnu)
6700 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6702 else
6703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6704 fi
6705 ;;
6706
6707 newos6*)
6708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6709 lt_cv_file_magic_cmd=$FILECMD
6710 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6711 ;;
6712
6713 *nto* | *qnx*)
6714 lt_cv_deplibs_check_method=pass_all
6715 ;;
6716
6717 openbsd*)
6718 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6720 else
6721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6722 fi
6723 ;;
6724
6725 osf3* | osf4* | osf5*)
6726 lt_cv_deplibs_check_method=pass_all
6727 ;;
6728
6729 rdos*)
6730 lt_cv_deplibs_check_method=pass_all
6731 ;;
6732
6733 serenity*)
6734 lt_cv_deplibs_check_method=pass_all
6735 ;;
6736
6737 solaris*)
6738 lt_cv_deplibs_check_method=pass_all
6739 ;;
6740
6741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6742 lt_cv_deplibs_check_method=pass_all
6743 ;;
6744
6745 sysv4 | sysv4.3*)
6746 case $host_vendor in
6747 motorola)
6748 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]'
6749 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6750 ;;
6751 ncr)
6752 lt_cv_deplibs_check_method=pass_all
6753 ;;
6754 sequent)
6755 lt_cv_file_magic_cmd='/bin/file'
6756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6757 ;;
6758 sni)
6759 lt_cv_file_magic_cmd='/bin/file'
6760 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6761 lt_cv_file_magic_test_file=/lib/libc.so
6762 ;;
6763 siemens)
6764 lt_cv_deplibs_check_method=pass_all
6765 ;;
6766 pc)
6767 lt_cv_deplibs_check_method=pass_all
6768 ;;
6769 esac
6770 ;;
6771
6772 tpf*)
6773 lt_cv_deplibs_check_method=pass_all
6774 ;;
6775 os2*)
6776 lt_cv_deplibs_check_method=pass_all
6777 ;;
6778 esac
6779 ;;
6780 esac
6781 fi
6782 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6783 printf '%s\n' "$lt_cv_deplibs_check_method" >&6; }
6784
6785 file_magic_glob=
6786 want_nocaseglob=no
6787 if test "$build" = "$host"; then
6788 case $host_os in
6789 mingw* | windows* | pw32*)
6790 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6791 want_nocaseglob=yes
6792 else
6793 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6794 fi
6795 ;;
6796 esac
6797 fi
6798
6799 file_magic_cmd=$lt_cv_file_magic_cmd
6800 deplibs_check_method=$lt_cv_deplibs_check_method
6801 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824 if test -n "$ac_tool_prefix"; then
6825 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6827 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 printf %s "checking for $ac_word... " >&6; }
6829 if test ${ac_cv_prog_DLLTOOL+y}
6830 then :
6831 printf %s "(cached) " >&6
6832 else case e in #(
6833 e) if test -n "$DLLTOOL"; then
6834 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839 IFS=$as_save_IFS
6840 case $as_dir in #(((
6841 '') as_dir=./ ;;
6842 */) ;;
6843 *) as_dir=$as_dir/ ;;
6844 esac
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6848 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855 fi ;;
6856 esac
6857 fi
6858 DLLTOOL=$ac_cv_prog_DLLTOOL
6859 if test -n "$DLLTOOL"; then
6860 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6861 printf '%s\n' "$DLLTOOL" >&6; }
6862 else
6863 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 printf '%s\n' "no" >&6; }
6865 fi
6866
6867
6868 fi
6869 if test -z "$ac_cv_prog_DLLTOOL"; then
6870 ac_ct_DLLTOOL=$DLLTOOL
6871 # Extract the first word of "dlltool", so it can be a program name with args.
6872 set dummy dlltool; ac_word=$2
6873 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 printf %s "checking for $ac_word... " >&6; }
6875 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6876 then :
6877 printf %s "(cached) " >&6
6878 else case e in #(
6879 e) if test -n "$ac_ct_DLLTOOL"; then
6880 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885 IFS=$as_save_IFS
6886 case $as_dir in #(((
6887 '') as_dir=./ ;;
6888 */) ;;
6889 *) as_dir=$as_dir/ ;;
6890 esac
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6893 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6894 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897 done
6898 done
6899 IFS=$as_save_IFS
6900
6901 fi ;;
6902 esac
6903 fi
6904 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6905 if test -n "$ac_ct_DLLTOOL"; then
6906 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6907 printf '%s\n' "$ac_ct_DLLTOOL" >&6; }
6908 else
6909 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 printf '%s\n' "no" >&6; }
6911 fi
6912
6913 if test "x$ac_ct_DLLTOOL" = x; then
6914 DLLTOOL="false"
6915 else
6916 case $cross_compiling:$ac_tool_warned in
6917 yes:)
6918 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6919 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6920 ac_tool_warned=yes ;;
6921 esac
6922 DLLTOOL=$ac_ct_DLLTOOL
6923 fi
6924 else
6925 DLLTOOL="$ac_cv_prog_DLLTOOL"
6926 fi
6927
6928 test -z "$DLLTOOL" && DLLTOOL=dlltool
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6940 printf %s "checking how to associate runtime and link libraries... " >&6; }
6941 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6942 then :
6943 printf %s "(cached) " >&6
6944 else case e in #(
6945 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6946
6947 case $host_os in
6948 cygwin* | mingw* | windows* | pw32* | cegcc*)
6949 # two different shell functions defined in ltmain.sh;
6950 # decide which one to use based on capabilities of $DLLTOOL
6951 case `$DLLTOOL --help 2>&1` in
6952 *--identify-strict*)
6953 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6954 ;;
6955 *)
6956 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6957 ;;
6958 esac
6959 ;;
6960 *)
6961 # fallback: assume linklib IS sharedlib
6962 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6963 ;;
6964 esac
6965 ;;
6966 esac
6967 fi
6968 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6969 printf '%s\n' "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6970 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6971 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6972
6973
6974
6975
6976
6977
6978
6979 if test -n "$ac_tool_prefix"; then
6980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6982 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 printf %s "checking for $ac_word... " >&6; }
6984 if test ${ac_cv_prog_RANLIB+y}
6985 then :
6986 printf %s "(cached) " >&6
6987 else case e in #(
6988 e) if test -n "$RANLIB"; then
6989 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994 IFS=$as_save_IFS
6995 case $as_dir in #(((
6996 '') as_dir=./ ;;
6997 */) ;;
6998 *) as_dir=$as_dir/ ;;
6999 esac
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7003 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010 fi ;;
7011 esac
7012 fi
7013 RANLIB=$ac_cv_prog_RANLIB
7014 if test -n "$RANLIB"; then
7015 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7016 printf '%s\n' "$RANLIB" >&6; }
7017 else
7018 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 printf '%s\n' "no" >&6; }
7020 fi
7021
7022
7023 fi
7024 if test -z "$ac_cv_prog_RANLIB"; then
7025 ac_ct_RANLIB=$RANLIB
7026 # Extract the first word of "ranlib", so it can be a program name with args.
7027 set dummy ranlib; ac_word=$2
7028 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 printf %s "checking for $ac_word... " >&6; }
7030 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7031 then :
7032 printf %s "(cached) " >&6
7033 else case e in #(
7034 e) if test -n "$ac_ct_RANLIB"; then
7035 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040 IFS=$as_save_IFS
7041 case $as_dir in #(((
7042 '') as_dir=./ ;;
7043 */) ;;
7044 *) as_dir=$as_dir/ ;;
7045 esac
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7048 ac_cv_prog_ac_ct_RANLIB="ranlib"
7049 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7050 break 2
7051 fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056 fi ;;
7057 esac
7058 fi
7059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7060 if test -n "$ac_ct_RANLIB"; then
7061 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7062 printf '%s\n' "$ac_ct_RANLIB" >&6; }
7063 else
7064 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 printf '%s\n' "no" >&6; }
7066 fi
7067
7068 if test "x$ac_ct_RANLIB" = x; then
7069 RANLIB=":"
7070 else
7071 case $cross_compiling:$ac_tool_warned in
7072 yes:)
7073 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077 RANLIB=$ac_ct_RANLIB
7078 fi
7079 else
7080 RANLIB="$ac_cv_prog_RANLIB"
7081 fi
7082
7083 if test -n "$ac_tool_prefix"; then
7084 for ac_prog in ar
7085 do
7086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7088 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 printf %s "checking for $ac_word... " >&6; }
7090 if test ${ac_cv_prog_AR+y}
7091 then :
7092 printf %s "(cached) " >&6
7093 else case e in #(
7094 e) if test -n "$AR"; then
7095 ac_cv_prog_AR="$AR" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100 IFS=$as_save_IFS
7101 case $as_dir in #(((
7102 '') as_dir=./ ;;
7103 */) ;;
7104 *) as_dir=$as_dir/ ;;
7105 esac
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7109 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7110 break 2
7111 fi
7112 done
7113 done
7114 IFS=$as_save_IFS
7115
7116 fi ;;
7117 esac
7118 fi
7119 AR=$ac_cv_prog_AR
7120 if test -n "$AR"; then
7121 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7122 printf '%s\n' "$AR" >&6; }
7123 else
7124 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 printf '%s\n' "no" >&6; }
7126 fi
7127
7128
7129 test -n "$AR" && break
7130 done
7131 fi
7132 if test -z "$AR"; then
7133 ac_ct_AR=$AR
7134 for ac_prog in ar
7135 do
7136 # Extract the first word of "$ac_prog", so it can be a program name with args.
7137 set dummy $ac_prog; ac_word=$2
7138 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 printf %s "checking for $ac_word... " >&6; }
7140 if test ${ac_cv_prog_ac_ct_AR+y}
7141 then :
7142 printf %s "(cached) " >&6
7143 else case e in #(
7144 e) if test -n "$ac_ct_AR"; then
7145 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150 IFS=$as_save_IFS
7151 case $as_dir in #(((
7152 '') as_dir=./ ;;
7153 */) ;;
7154 *) as_dir=$as_dir/ ;;
7155 esac
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7158 ac_cv_prog_ac_ct_AR="$ac_prog"
7159 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7160 break 2
7161 fi
7162 done
7163 done
7164 IFS=$as_save_IFS
7165
7166 fi ;;
7167 esac
7168 fi
7169 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7170 if test -n "$ac_ct_AR"; then
7171 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7172 printf '%s\n' "$ac_ct_AR" >&6; }
7173 else
7174 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 printf '%s\n' "no" >&6; }
7176 fi
7177
7178
7179 test -n "$ac_ct_AR" && break
7180 done
7181
7182 if test "x$ac_ct_AR" = x; then
7183 AR="false"
7184 else
7185 case $cross_compiling:$ac_tool_warned in
7186 yes:)
7187 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7188 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7189 ac_tool_warned=yes ;;
7190 esac
7191 AR=$ac_ct_AR
7192 fi
7193 fi
7194
7195 : ${AR=ar}
7196
7197
7198
7199
7200
7201
7202 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7203 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7204 # higher priority because that's what people were doing historically (setting
7205 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7206 # variable obsoleted/removed.
7207
7208 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7209 lt_ar_flags=$AR_FLAGS
7210
7211
7212
7213
7214
7215
7216 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7217 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7218
7219
7220
7221
7222
7223
7224 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7225 printf %s "checking for archiver @FILE support... " >&6; }
7226 if test ${lt_cv_ar_at_file+y}
7227 then :
7228 printf %s "(cached) " >&6
7229 else case e in #(
7230 e) lt_cv_ar_at_file=no
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233
7234 int
7235 main (void)
7236 {
7237
7238 ;
7239 return 0;
7240 }
7241 _ACEOF
7242 if ac_fn_c_try_compile "$LINENO"
7243 then :
7244 echo conftest.$ac_objext > conftest.lst
7245 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7247 (eval $lt_ar_try) 2>&5
7248 ac_status=$?
7249 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250 test $ac_status = 0; }
7251 if test 0 -eq "$ac_status"; then
7252 # Ensure the archiver fails upon bogus file names.
7253 rm -f conftest.$ac_objext libconftest.a
7254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7255 (eval $lt_ar_try) 2>&5
7256 ac_status=$?
7257 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7258 test $ac_status = 0; }
7259 if test 0 -ne "$ac_status"; then
7260 lt_cv_ar_at_file=@
7261 fi
7262 fi
7263 rm -f conftest.* libconftest.a
7264
7265 fi
7266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7267 ;;
7268 esac
7269 fi
7270 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7271 printf '%s\n' "$lt_cv_ar_at_file" >&6; }
7272
7273 if test no = "$lt_cv_ar_at_file"; then
7274 archiver_list_spec=
7275 else
7276 archiver_list_spec=$lt_cv_ar_at_file
7277 fi
7278
7279
7280
7281
7282
7283
7284
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}strip; ac_word=$2
7288 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 printf %s "checking for $ac_word... " >&6; }
7290 if test ${ac_cv_prog_STRIP+y}
7291 then :
7292 printf %s "(cached) " >&6
7293 else case e in #(
7294 e) if test -n "$STRIP"; then
7295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300 IFS=$as_save_IFS
7301 case $as_dir in #(((
7302 '') as_dir=./ ;;
7303 */) ;;
7304 *) as_dir=$as_dir/ ;;
7305 esac
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7309 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7310 break 2
7311 fi
7312 done
7313 done
7314 IFS=$as_save_IFS
7315
7316 fi ;;
7317 esac
7318 fi
7319 STRIP=$ac_cv_prog_STRIP
7320 if test -n "$STRIP"; then
7321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7322 printf '%s\n' "$STRIP" >&6; }
7323 else
7324 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 printf '%s\n' "no" >&6; }
7326 fi
7327
7328
7329 fi
7330 if test -z "$ac_cv_prog_STRIP"; then
7331 ac_ct_STRIP=$STRIP
7332 # Extract the first word of "strip", so it can be a program name with args.
7333 set dummy strip; ac_word=$2
7334 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 printf %s "checking for $ac_word... " >&6; }
7336 if test ${ac_cv_prog_ac_ct_STRIP+y}
7337 then :
7338 printf %s "(cached) " >&6
7339 else case e in #(
7340 e) if test -n "$ac_ct_STRIP"; then
7341 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346 IFS=$as_save_IFS
7347 case $as_dir in #(((
7348 '') as_dir=./ ;;
7349 */) ;;
7350 *) as_dir=$as_dir/ ;;
7351 esac
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7354 ac_cv_prog_ac_ct_STRIP="strip"
7355 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7356 break 2
7357 fi
7358 done
7359 done
7360 IFS=$as_save_IFS
7361
7362 fi ;;
7363 esac
7364 fi
7365 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7366 if test -n "$ac_ct_STRIP"; then
7367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7368 printf '%s\n' "$ac_ct_STRIP" >&6; }
7369 else
7370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 printf '%s\n' "no" >&6; }
7372 fi
7373
7374 if test "x$ac_ct_STRIP" = x; then
7375 STRIP=":"
7376 else
7377 case $cross_compiling:$ac_tool_warned in
7378 yes:)
7379 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381 ac_tool_warned=yes ;;
7382 esac
7383 STRIP=$ac_ct_STRIP
7384 fi
7385 else
7386 STRIP="$ac_cv_prog_STRIP"
7387 fi
7388
7389 test -z "$STRIP" && STRIP=:
7390
7391
7392
7393
7394
7395
7396
7397 test -z "$RANLIB" && RANLIB=:
7398
7399
7400
7401
7402
7403
7404 # Determine commands to create old-style static archives.
7405 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7406 old_postinstall_cmds='chmod 644 $oldlib'
7407 old_postuninstall_cmds=
7408
7409 if test -n "$RANLIB"; then
7410 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7411 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7412 fi
7413
7414 case $host_os in
7415 darwin*)
7416 lock_old_archive_extraction=yes ;;
7417 *)
7418 lock_old_archive_extraction=no ;;
7419 esac
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459 # If no C compiler was specified, use CC.
7460 LTCC=${LTCC-"$CC"}
7461
7462 # If no C compiler flags were specified, use CFLAGS.
7463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7464
7465 # Allow CC to be a program name with arguments.
7466 compiler=$CC
7467
7468
7469 # Check for command to grab the raw symbol name followed by C symbol from nm.
7470 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7471 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7472 if test ${lt_cv_sys_global_symbol_pipe+y}
7473 then :
7474 printf %s "(cached) " >&6
7475 else case e in #(
7476 e)
7477 # These are sane defaults that work on at least a few old systems.
7478 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7479
7480 # Character class describing NM global symbol codes.
7481 symcode='[BCDEGRST]'
7482
7483 # Regexp to match symbols that can be accessed directly from C.
7484 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7485
7486 # Define system-specific variables.
7487 case $host_os in
7488 aix*)
7489 symcode='[BCDT]'
7490 ;;
7491 cygwin* | mingw* | windows* | pw32* | cegcc*)
7492 symcode='[ABCDGISTW]'
7493 ;;
7494 hpux*)
7495 if test ia64 = "$host_cpu"; then
7496 symcode='[ABCDEGRST]'
7497 fi
7498 ;;
7499 irix* | nonstopux*)
7500 symcode='[BCDEGRST]'
7501 ;;
7502 osf*)
7503 symcode='[BCDEGQRST]'
7504 ;;
7505 solaris*)
7506 symcode='[BCDRT]'
7507 ;;
7508 sco3.2v5*)
7509 symcode='[DT]'
7510 ;;
7511 sysv4.2uw2*)
7512 symcode='[DT]'
7513 ;;
7514 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7515 symcode='[ABDT]'
7516 ;;
7517 sysv4)
7518 symcode='[DFNSTU]'
7519 ;;
7520 esac
7521
7522 # If we're using GNU nm, then use its standard symbol codes.
7523 case `$NM -V 2>&1` in
7524 *GNU* | *'with BFD'*)
7525 symcode='[ABCDGIRSTW]' ;;
7526 esac
7527
7528 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7529 # Gets list of data symbols to import.
7530 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7531 # Adjust the below global symbol transforms to fixup imported variables.
7532 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7533 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7534 lt_c_name_lib_hook="\
7535 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7536 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7537 else
7538 # Disable hooks by default.
7539 lt_cv_sys_global_symbol_to_import=
7540 lt_cdecl_hook=
7541 lt_c_name_hook=
7542 lt_c_name_lib_hook=
7543 fi
7544
7545 # Transform an extracted symbol line into a proper C declaration.
7546 # Some systems (esp. on ia64) link data and code symbols differently,
7547 # so use this general approach.
7548 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7549 $lt_cdecl_hook\
7550 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7551 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7552
7553 # Transform an extracted symbol line into symbol name and symbol address
7554 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7555 $lt_c_name_hook\
7556 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7557 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7558
7559 # Transform an extracted symbol line into symbol name with lib prefix and
7560 # symbol address.
7561 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7562 $lt_c_name_lib_hook\
7563 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7564 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7565 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7566
7567 # Handle CRLF in mingw tool chain
7568 opt_cr=
7569 case $build_os in
7570 mingw* | windows*)
7571 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7572 ;;
7573 esac
7574
7575 # Try without a prefix underscore, then with it.
7576 for ac_symprfx in "" "_"; do
7577
7578 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7579 symxfrm="\\1 $ac_symprfx\\2 \\2"
7580
7581 # Write the raw and C identifiers.
7582 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7583 # Fake it for dumpbin and say T for any non-static function,
7584 # D for any global variable and I for any imported variable.
7585 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7586 # which start with @ or ?.
7587 lt_cv_sys_global_symbol_pipe="$AWK '"\
7588 " {last_section=section; section=\$ 3};"\
7589 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7590 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7591 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7592 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7593 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7594 " \$ 0!~/External *\|/{next};"\
7595 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7596 " {if(hide[section]) next};"\
7597 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7598 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7599 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7600 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7601 " ' prfx=^$ac_symprfx"
7602 else
7603 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7604 fi
7605 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7606
7607 # Check to see that the pipe works correctly.
7608 pipe_works=no
7609
7610 rm -f conftest*
7611 cat > conftest.$ac_ext <<_LT_EOF
7612 #ifdef __cplusplus
7613 extern "C" {
7614 #endif
7615 char nm_test_var;
7616 void nm_test_func(void);
7617 void nm_test_func(void){}
7618 #ifdef __cplusplus
7619 }
7620 #endif
7621 int main(void){nm_test_var='a';nm_test_func();return(0);}
7622 _LT_EOF
7623
7624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7625 (eval $ac_compile) 2>&5
7626 ac_status=$?
7627 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628 test $ac_status = 0; }; then
7629 # Now try to grab the symbols.
7630 nlist=conftest.nm
7631 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7632 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7633 # Try sorting and uniquifying the output.
7634 if sort "$nlist" | uniq > "$nlist"T; then
7635 mv -f "$nlist"T "$nlist"
7636 else
7637 rm -f "$nlist"T
7638 fi
7639
7640 # Make sure that we snagged all the symbols we need.
7641 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7642 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7643 cat <<_LT_EOF > conftest.$ac_ext
7644 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7645 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7646 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7647 relocations are performed -- see ld's documentation on pseudo-relocs. */
7648 # define LT_DLSYM_CONST
7649 #elif defined __osf__
7650 /* This system does not cope well with relocations in const data. */
7651 # define LT_DLSYM_CONST
7652 #else
7653 # define LT_DLSYM_CONST const
7654 #endif
7655
7656 #ifdef __cplusplus
7657 extern "C" {
7658 #endif
7659
7660 _LT_EOF
7661 # Now generate the symbol file.
7662 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7663
7664 cat <<_LT_EOF >> conftest.$ac_ext
7665
7666 /* The mapping between symbol names and symbols. */
7667 LT_DLSYM_CONST struct {
7668 const char *name;
7669 void *address;
7670 }
7671 lt__PROGRAM__LTX_preloaded_symbols[] =
7672 {
7673 { "@PROGRAM@", (void *) 0 },
7674 _LT_EOF
7675 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7676 cat <<\_LT_EOF >> conftest.$ac_ext
7677 {0, (void *) 0}
7678 };
7679
7680 /* This works around a problem in FreeBSD linker */
7681 #ifdef FREEBSD_WORKAROUND
7682 static const void *lt_preloaded_setup() {
7683 return lt__PROGRAM__LTX_preloaded_symbols;
7684 }
7685 #endif
7686
7687 #ifdef __cplusplus
7688 }
7689 #endif
7690 _LT_EOF
7691 # Now try linking the two files.
7692 mv conftest.$ac_objext conftstm.$ac_objext
7693 lt_globsym_save_LIBS=$LIBS
7694 lt_globsym_save_CFLAGS=$CFLAGS
7695 LIBS=conftstm.$ac_objext
7696 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7698 (eval $ac_link) 2>&5
7699 ac_status=$?
7700 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7701 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7702 pipe_works=yes
7703 fi
7704 LIBS=$lt_globsym_save_LIBS
7705 CFLAGS=$lt_globsym_save_CFLAGS
7706 else
7707 echo "cannot find nm_test_func in $nlist" >&5
7708 fi
7709 else
7710 echo "cannot find nm_test_var in $nlist" >&5
7711 fi
7712 else
7713 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7714 fi
7715 else
7716 echo "$progname: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7718 fi
7719 rm -rf conftest* conftst*
7720
7721 # Do not use the global_symbol_pipe unless it works.
7722 if test yes = "$pipe_works"; then
7723 break
7724 else
7725 lt_cv_sys_global_symbol_pipe=
7726 fi
7727 done
7728 ;;
7729 esac
7730 fi
7731
7732 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7733 lt_cv_sys_global_symbol_to_cdecl=
7734 fi
7735 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7736 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7737 printf '%s\n' "failed" >&6; }
7738 else
7739 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7740 printf '%s\n' "ok" >&6; }
7741 fi
7742
7743 # Response file support.
7744 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7745 nm_file_list_spec='@'
7746 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7747 nm_file_list_spec='@'
7748 fi
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7787 printf %s "checking for sysroot... " >&6; }
7788
7789 # Check whether --with-sysroot was given.
7790 if test ${with_sysroot+y}
7791 then :
7792 withval=$with_sysroot;
7793 else case e in #(
7794 e) with_sysroot=no ;;
7795 esac
7796 fi
7797
7798
7799 lt_sysroot=
7800 case $with_sysroot in #(
7801 yes)
7802 if test yes = "$GCC"; then
7803 # Trim trailing / since we'll always append absolute paths and we want
7804 # to avoid //, if only for less confusing output for the user.
7805 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7806 fi
7807 ;; #(
7808 /*)
7809 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7810 ;; #(
7811 no|'')
7812 ;; #(
7813 *)
7814 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7815 printf '%s\n' "$with_sysroot" >&6; }
7816 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7817 ;;
7818 esac
7819
7820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7821 printf '%s\n' "${lt_sysroot:-no}" >&6; }
7822
7823
7824
7825
7826
7827 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7828 printf %s "checking for a working dd... " >&6; }
7829 if test ${ac_cv_path_lt_DD+y}
7830 then :
7831 printf %s "(cached) " >&6
7832 else case e in #(
7833 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7834 cat conftest.i conftest.i >conftest2.i
7835 : ${lt_DD:=$DD}
7836 if test -z "$lt_DD"; then
7837 ac_path_lt_DD_found=false
7838 # Loop through the user's path and test for each of PROGNAME-LIST
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842 IFS=$as_save_IFS
7843 case $as_dir in #(((
7844 '') as_dir=./ ;;
7845 */) ;;
7846 *) as_dir=$as_dir/ ;;
7847 esac
7848 for ac_prog in dd
7849 do
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7852 as_fn_executable_p "$ac_path_lt_DD" || continue
7853 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7854 cmp -s conftest.i conftest.out \
7855 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7856 fi
7857 $ac_path_lt_DD_found && break 3
7858 done
7859 done
7860 done
7861 IFS=$as_save_IFS
7862 if test -z "$ac_cv_path_lt_DD"; then
7863 :
7864 fi
7865 else
7866 ac_cv_path_lt_DD=$lt_DD
7867 fi
7868
7869 rm -f conftest.i conftest2.i conftest.out ;;
7870 esac
7871 fi
7872 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7873 printf '%s\n' "$ac_cv_path_lt_DD" >&6; }
7874
7875
7876 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7877 printf %s "checking how to truncate binary pipes... " >&6; }
7878 if test ${lt_cv_truncate_bin+y}
7879 then :
7880 printf %s "(cached) " >&6
7881 else case e in #(
7882 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7883 cat conftest.i conftest.i >conftest2.i
7884 lt_cv_truncate_bin=
7885 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7886 cmp -s conftest.i conftest.out \
7887 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7888 fi
7889 rm -f conftest.i conftest2.i conftest.out
7890 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7891 esac
7892 fi
7893 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7894 printf '%s\n' "$lt_cv_truncate_bin" >&6; }
7895
7896
7897
7898
7899
7900
7901
7902 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7903 func_cc_basename ()
7904 {
7905 for cc_temp in $*""; do
7906 case $cc_temp in
7907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7909 \-*) ;;
7910 *) break;;
7911 esac
7912 done
7913 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7914 }
7915
7916 # Check whether --enable-libtool-lock was given.
7917 if test ${enable_libtool_lock+y}
7918 then :
7919 enableval=$enable_libtool_lock;
7920 fi
7921
7922 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7923
7924 # Some flags need to be propagated to the compiler or linker for good
7925 # libtool support.
7926 case $host in
7927 ia64-*-hpux*)
7928 # Find out what ABI is being produced by ac_compile, and set mode
7929 # options accordingly.
7930 echo 'int i;' > conftest.$ac_ext
7931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7932 (eval $ac_compile) 2>&5
7933 ac_status=$?
7934 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7935 test $ac_status = 0; }; then
7936 case `$FILECMD conftest.$ac_objext` in
7937 *ELF-32*)
7938 HPUX_IA64_MODE=32
7939 ;;
7940 *ELF-64*)
7941 HPUX_IA64_MODE=64
7942 ;;
7943 esac
7944 fi
7945 rm -rf conftest*
7946 ;;
7947 *-*-irix6*)
7948 # Find out what ABI is being produced by ac_compile, and set linker
7949 # options accordingly.
7950 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7952 (eval $ac_compile) 2>&5
7953 ac_status=$?
7954 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7955 test $ac_status = 0; }; then
7956 if test yes = "$lt_cv_prog_gnu_ld"; then
7957 case `$FILECMD conftest.$ac_objext` in
7958 *32-bit*)
7959 LD="${LD-ld} -melf32bsmip"
7960 ;;
7961 *N32*)
7962 LD="${LD-ld} -melf32bmipn32"
7963 ;;
7964 *64-bit*)
7965 LD="${LD-ld} -melf64bmip"
7966 ;;
7967 esac
7968 else
7969 case `$FILECMD conftest.$ac_objext` in
7970 *32-bit*)
7971 LD="${LD-ld} -32"
7972 ;;
7973 *N32*)
7974 LD="${LD-ld} -n32"
7975 ;;
7976 *64-bit*)
7977 LD="${LD-ld} -64"
7978 ;;
7979 esac
7980 fi
7981 fi
7982 rm -rf conftest*
7983 ;;
7984
7985 mips64*-*linux*)
7986 # Find out what ABI is being produced by ac_compile, and set linker
7987 # options accordingly.
7988 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7990 (eval $ac_compile) 2>&5
7991 ac_status=$?
7992 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7993 test $ac_status = 0; }; then
7994 emul=elf
7995 case `$FILECMD conftest.$ac_objext` in
7996 *32-bit*)
7997 emul="${emul}32"
7998 ;;
7999 *64-bit*)
8000 emul="${emul}64"
8001 ;;
8002 esac
8003 case `$FILECMD conftest.$ac_objext` in
8004 *MSB*)
8005 emul="${emul}btsmip"
8006 ;;
8007 *LSB*)
8008 emul="${emul}ltsmip"
8009 ;;
8010 esac
8011 case `$FILECMD conftest.$ac_objext` in
8012 *N32*)
8013 emul="${emul}n32"
8014 ;;
8015 esac
8016 LD="${LD-ld} -m $emul"
8017 fi
8018 rm -rf conftest*
8019 ;;
8020
8021 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8022 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8023 # Find out what ABI is being produced by ac_compile, and set linker
8024 # options accordingly. Note that the listed cases only cover the
8025 # situations where additional linker options are needed (such as when
8026 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8027 # vice versa); the common cases where no linker options are needed do
8028 # not appear in the list.
8029 echo 'int i;' > conftest.$ac_ext
8030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8031 (eval $ac_compile) 2>&5
8032 ac_status=$?
8033 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8034 test $ac_status = 0; }; then
8035 case `$FILECMD conftest.o` in
8036 *32-bit*)
8037 case $host in
8038 x86_64-*kfreebsd*-gnu)
8039 LD="${LD-ld} -m elf_i386_fbsd"
8040 ;;
8041 x86_64-*linux*|x86_64-gnu*)
8042 case `$FILECMD conftest.o` in
8043 *x86-64*)
8044 LD="${LD-ld} -m elf32_x86_64"
8045 ;;
8046 *)
8047 LD="${LD-ld} -m elf_i386"
8048 ;;
8049 esac
8050 ;;
8051 powerpc64le-*linux*)
8052 LD="${LD-ld} -m elf32lppclinux"
8053 ;;
8054 powerpc64-*linux*)
8055 LD="${LD-ld} -m elf32ppclinux"
8056 ;;
8057 s390x-*linux*)
8058 LD="${LD-ld} -m elf_s390"
8059 ;;
8060 sparc64-*linux*)
8061 LD="${LD-ld} -m elf32_sparc"
8062 ;;
8063 esac
8064 ;;
8065 *64-bit*)
8066 case $host in
8067 x86_64-*kfreebsd*-gnu)
8068 LD="${LD-ld} -m elf_x86_64_fbsd"
8069 ;;
8070 x86_64-*linux*|x86_64-gnu*)
8071 LD="${LD-ld} -m elf_x86_64"
8072 ;;
8073 powerpcle-*linux*)
8074 LD="${LD-ld} -m elf64lppc"
8075 ;;
8076 powerpc-*linux*)
8077 LD="${LD-ld} -m elf64ppc"
8078 ;;
8079 s390*-*linux*|s390*-*tpf*)
8080 LD="${LD-ld} -m elf64_s390"
8081 ;;
8082 sparc*-*linux*)
8083 LD="${LD-ld} -m elf64_sparc"
8084 ;;
8085 esac
8086 ;;
8087 esac
8088 fi
8089 rm -rf conftest*
8090 ;;
8091
8092 *-*-sco3.2v5*)
8093 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8094 SAVE_CFLAGS=$CFLAGS
8095 CFLAGS="$CFLAGS -belf"
8096 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8097 printf %s "checking whether the C compiler needs -belf... " >&6; }
8098 if test ${lt_cv_cc_needs_belf+y}
8099 then :
8100 printf %s "(cached) " >&6
8101 else case e in #(
8102 e) ac_ext=c
8103 ac_cpp='$CPP $CPPFLAGS'
8104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8107
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110
8111 int
8112 main (void)
8113 {
8114
8115 ;
8116 return 0;
8117 }
8118 _ACEOF
8119 if ac_fn_c_try_link "$LINENO"
8120 then :
8121 lt_cv_cc_needs_belf=yes
8122 else case e in #(
8123 e) lt_cv_cc_needs_belf=no ;;
8124 esac
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8127 conftest$ac_exeext conftest.$ac_ext
8128 ac_ext=c
8129 ac_cpp='$CPP $CPPFLAGS'
8130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8133 ;;
8134 esac
8135 fi
8136 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8137 printf '%s\n' "$lt_cv_cc_needs_belf" >&6; }
8138 if test yes != "$lt_cv_cc_needs_belf"; then
8139 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8140 CFLAGS=$SAVE_CFLAGS
8141 fi
8142 ;;
8143 *-*solaris*)
8144 # Find out what ABI is being produced by ac_compile, and set linker
8145 # options accordingly.
8146 echo 'int i;' > conftest.$ac_ext
8147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8148 (eval $ac_compile) 2>&5
8149 ac_status=$?
8150 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8151 test $ac_status = 0; }; then
8152 case `$FILECMD conftest.o` in
8153 *64-bit*)
8154 case $lt_cv_prog_gnu_ld in
8155 yes*)
8156 case $host in
8157 i?86-*-solaris*|x86_64-*-solaris*)
8158 LD="${LD-ld} -m elf_x86_64"
8159 ;;
8160 sparc*-*-solaris*)
8161 LD="${LD-ld} -m elf64_sparc"
8162 ;;
8163 esac
8164 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8165 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8166 LD=${LD-ld}_sol2
8167 fi
8168 ;;
8169 *)
8170 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8171 LD="${LD-ld} -64"
8172 fi
8173 ;;
8174 esac
8175 ;;
8176 esac
8177 fi
8178 rm -rf conftest*
8179 ;;
8180 esac
8181
8182 need_locks=$enable_libtool_lock
8183
8184 if test -n "$ac_tool_prefix"; then
8185 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8186 set dummy ${ac_tool_prefix}mt; ac_word=$2
8187 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8188 printf %s "checking for $ac_word... " >&6; }
8189 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8190 then :
8191 printf %s "(cached) " >&6
8192 else case e in #(
8193 e) if test -n "$MANIFEST_TOOL"; then
8194 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8195 else
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 for as_dir in $PATH
8198 do
8199 IFS=$as_save_IFS
8200 case $as_dir in #(((
8201 '') as_dir=./ ;;
8202 */) ;;
8203 *) as_dir=$as_dir/ ;;
8204 esac
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8207 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8208 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8209 break 2
8210 fi
8211 done
8212 done
8213 IFS=$as_save_IFS
8214
8215 fi ;;
8216 esac
8217 fi
8218 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8219 if test -n "$MANIFEST_TOOL"; then
8220 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8221 printf '%s\n' "$MANIFEST_TOOL" >&6; }
8222 else
8223 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 printf '%s\n' "no" >&6; }
8225 fi
8226
8227
8228 fi
8229 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8230 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8231 # Extract the first word of "mt", so it can be a program name with args.
8232 set dummy mt; ac_word=$2
8233 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 printf %s "checking for $ac_word... " >&6; }
8235 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8236 then :
8237 printf %s "(cached) " >&6
8238 else case e in #(
8239 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8240 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8244 do
8245 IFS=$as_save_IFS
8246 case $as_dir in #(((
8247 '') as_dir=./ ;;
8248 */) ;;
8249 *) as_dir=$as_dir/ ;;
8250 esac
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8253 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8254 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8255 break 2
8256 fi
8257 done
8258 done
8259 IFS=$as_save_IFS
8260
8261 fi ;;
8262 esac
8263 fi
8264 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8265 if test -n "$ac_ct_MANIFEST_TOOL"; then
8266 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8267 printf '%s\n' "$ac_ct_MANIFEST_TOOL" >&6; }
8268 else
8269 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 printf '%s\n' "no" >&6; }
8271 fi
8272
8273 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8274 MANIFEST_TOOL=":"
8275 else
8276 case $cross_compiling:$ac_tool_warned in
8277 yes:)
8278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8279 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8280 ac_tool_warned=yes ;;
8281 esac
8282 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8283 fi
8284 else
8285 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8286 fi
8287
8288 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8289 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8290 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8291 if test ${lt_cv_path_manifest_tool+y}
8292 then :
8293 printf %s "(cached) " >&6
8294 else case e in #(
8295 e) lt_cv_path_manifest_tool=no
8296 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8297 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8298 cat conftest.err >&5
8299 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8300 lt_cv_path_manifest_tool=yes
8301 fi
8302 rm -f conftest* ;;
8303 esac
8304 fi
8305 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8306 printf '%s\n' "$lt_cv_path_manifest_tool" >&6; }
8307 if test yes != "$lt_cv_path_manifest_tool"; then
8308 MANIFEST_TOOL=:
8309 fi
8310
8311
8312
8313
8314
8315
8316 case $host_os in
8317 rhapsody* | darwin*)
8318 if test -n "$ac_tool_prefix"; then
8319 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8320 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 printf %s "checking for $ac_word... " >&6; }
8323 if test ${ac_cv_prog_DSYMUTIL+y}
8324 then :
8325 printf %s "(cached) " >&6
8326 else case e in #(
8327 e) if test -n "$DSYMUTIL"; then
8328 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8329 else
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333 IFS=$as_save_IFS
8334 case $as_dir in #(((
8335 '') as_dir=./ ;;
8336 */) ;;
8337 *) as_dir=$as_dir/ ;;
8338 esac
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8341 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8342 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8343 break 2
8344 fi
8345 done
8346 done
8347 IFS=$as_save_IFS
8348
8349 fi ;;
8350 esac
8351 fi
8352 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8353 if test -n "$DSYMUTIL"; then
8354 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8355 printf '%s\n' "$DSYMUTIL" >&6; }
8356 else
8357 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 printf '%s\n' "no" >&6; }
8359 fi
8360
8361
8362 fi
8363 if test -z "$ac_cv_prog_DSYMUTIL"; then
8364 ac_ct_DSYMUTIL=$DSYMUTIL
8365 # Extract the first word of "dsymutil", so it can be a program name with args.
8366 set dummy dsymutil; ac_word=$2
8367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 printf %s "checking for $ac_word... " >&6; }
8369 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8370 then :
8371 printf %s "(cached) " >&6
8372 else case e in #(
8373 e) if test -n "$ac_ct_DSYMUTIL"; then
8374 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8375 else
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8378 do
8379 IFS=$as_save_IFS
8380 case $as_dir in #(((
8381 '') as_dir=./ ;;
8382 */) ;;
8383 *) as_dir=$as_dir/ ;;
8384 esac
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8387 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8388 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8389 break 2
8390 fi
8391 done
8392 done
8393 IFS=$as_save_IFS
8394
8395 fi ;;
8396 esac
8397 fi
8398 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8399 if test -n "$ac_ct_DSYMUTIL"; then
8400 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8401 printf '%s\n' "$ac_ct_DSYMUTIL" >&6; }
8402 else
8403 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 printf '%s\n' "no" >&6; }
8405 fi
8406
8407 if test "x$ac_ct_DSYMUTIL" = x; then
8408 DSYMUTIL=":"
8409 else
8410 case $cross_compiling:$ac_tool_warned in
8411 yes:)
8412 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414 ac_tool_warned=yes ;;
8415 esac
8416 DSYMUTIL=$ac_ct_DSYMUTIL
8417 fi
8418 else
8419 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8420 fi
8421
8422 if test -n "$ac_tool_prefix"; then
8423 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8424 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8425 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 printf %s "checking for $ac_word... " >&6; }
8427 if test ${ac_cv_prog_NMEDIT+y}
8428 then :
8429 printf %s "(cached) " >&6
8430 else case e in #(
8431 e) if test -n "$NMEDIT"; then
8432 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8433 else
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 for as_dir in $PATH
8436 do
8437 IFS=$as_save_IFS
8438 case $as_dir in #(((
8439 '') as_dir=./ ;;
8440 */) ;;
8441 *) as_dir=$as_dir/ ;;
8442 esac
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8446 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449 done
8450 done
8451 IFS=$as_save_IFS
8452
8453 fi ;;
8454 esac
8455 fi
8456 NMEDIT=$ac_cv_prog_NMEDIT
8457 if test -n "$NMEDIT"; then
8458 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8459 printf '%s\n' "$NMEDIT" >&6; }
8460 else
8461 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 printf '%s\n' "no" >&6; }
8463 fi
8464
8465
8466 fi
8467 if test -z "$ac_cv_prog_NMEDIT"; then
8468 ac_ct_NMEDIT=$NMEDIT
8469 # Extract the first word of "nmedit", so it can be a program name with args.
8470 set dummy nmedit; ac_word=$2
8471 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 printf %s "checking for $ac_word... " >&6; }
8473 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8474 then :
8475 printf %s "(cached) " >&6
8476 else case e in #(
8477 e) if test -n "$ac_ct_NMEDIT"; then
8478 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8479 else
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 for as_dir in $PATH
8482 do
8483 IFS=$as_save_IFS
8484 case $as_dir in #(((
8485 '') as_dir=./ ;;
8486 */) ;;
8487 *) as_dir=$as_dir/ ;;
8488 esac
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8491 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8492 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8493 break 2
8494 fi
8495 done
8496 done
8497 IFS=$as_save_IFS
8498
8499 fi ;;
8500 esac
8501 fi
8502 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8503 if test -n "$ac_ct_NMEDIT"; then
8504 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8505 printf '%s\n' "$ac_ct_NMEDIT" >&6; }
8506 else
8507 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 printf '%s\n' "no" >&6; }
8509 fi
8510
8511 if test "x$ac_ct_NMEDIT" = x; then
8512 NMEDIT=":"
8513 else
8514 case $cross_compiling:$ac_tool_warned in
8515 yes:)
8516 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8517 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8518 ac_tool_warned=yes ;;
8519 esac
8520 NMEDIT=$ac_ct_NMEDIT
8521 fi
8522 else
8523 NMEDIT="$ac_cv_prog_NMEDIT"
8524 fi
8525
8526 if test -n "$ac_tool_prefix"; then
8527 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8528 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8529 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 printf %s "checking for $ac_word... " >&6; }
8531 if test ${ac_cv_prog_LIPO+y}
8532 then :
8533 printf %s "(cached) " >&6
8534 else case e in #(
8535 e) if test -n "$LIPO"; then
8536 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8537 else
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 for as_dir in $PATH
8540 do
8541 IFS=$as_save_IFS
8542 case $as_dir in #(((
8543 '') as_dir=./ ;;
8544 */) ;;
8545 *) as_dir=$as_dir/ ;;
8546 esac
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8549 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8550 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8551 break 2
8552 fi
8553 done
8554 done
8555 IFS=$as_save_IFS
8556
8557 fi ;;
8558 esac
8559 fi
8560 LIPO=$ac_cv_prog_LIPO
8561 if test -n "$LIPO"; then
8562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8563 printf '%s\n' "$LIPO" >&6; }
8564 else
8565 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 printf '%s\n' "no" >&6; }
8567 fi
8568
8569
8570 fi
8571 if test -z "$ac_cv_prog_LIPO"; then
8572 ac_ct_LIPO=$LIPO
8573 # Extract the first word of "lipo", so it can be a program name with args.
8574 set dummy lipo; ac_word=$2
8575 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 printf %s "checking for $ac_word... " >&6; }
8577 if test ${ac_cv_prog_ac_ct_LIPO+y}
8578 then :
8579 printf %s "(cached) " >&6
8580 else case e in #(
8581 e) if test -n "$ac_ct_LIPO"; then
8582 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8583 else
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8586 do
8587 IFS=$as_save_IFS
8588 case $as_dir in #(((
8589 '') as_dir=./ ;;
8590 */) ;;
8591 *) as_dir=$as_dir/ ;;
8592 esac
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8595 ac_cv_prog_ac_ct_LIPO="lipo"
8596 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8597 break 2
8598 fi
8599 done
8600 done
8601 IFS=$as_save_IFS
8602
8603 fi ;;
8604 esac
8605 fi
8606 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8607 if test -n "$ac_ct_LIPO"; then
8608 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8609 printf '%s\n' "$ac_ct_LIPO" >&6; }
8610 else
8611 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 printf '%s\n' "no" >&6; }
8613 fi
8614
8615 if test "x$ac_ct_LIPO" = x; then
8616 LIPO=":"
8617 else
8618 case $cross_compiling:$ac_tool_warned in
8619 yes:)
8620 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8621 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8622 ac_tool_warned=yes ;;
8623 esac
8624 LIPO=$ac_ct_LIPO
8625 fi
8626 else
8627 LIPO="$ac_cv_prog_LIPO"
8628 fi
8629
8630 if test -n "$ac_tool_prefix"; then
8631 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8632 set dummy ${ac_tool_prefix}otool; ac_word=$2
8633 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634 printf %s "checking for $ac_word... " >&6; }
8635 if test ${ac_cv_prog_OTOOL+y}
8636 then :
8637 printf %s "(cached) " >&6
8638 else case e in #(
8639 e) if test -n "$OTOOL"; then
8640 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8641 else
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 for as_dir in $PATH
8644 do
8645 IFS=$as_save_IFS
8646 case $as_dir in #(((
8647 '') as_dir=./ ;;
8648 */) ;;
8649 *) as_dir=$as_dir/ ;;
8650 esac
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8653 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8654 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8655 break 2
8656 fi
8657 done
8658 done
8659 IFS=$as_save_IFS
8660
8661 fi ;;
8662 esac
8663 fi
8664 OTOOL=$ac_cv_prog_OTOOL
8665 if test -n "$OTOOL"; then
8666 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8667 printf '%s\n' "$OTOOL" >&6; }
8668 else
8669 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 printf '%s\n' "no" >&6; }
8671 fi
8672
8673
8674 fi
8675 if test -z "$ac_cv_prog_OTOOL"; then
8676 ac_ct_OTOOL=$OTOOL
8677 # Extract the first word of "otool", so it can be a program name with args.
8678 set dummy otool; ac_word=$2
8679 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 printf %s "checking for $ac_word... " >&6; }
8681 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8682 then :
8683 printf %s "(cached) " >&6
8684 else case e in #(
8685 e) if test -n "$ac_ct_OTOOL"; then
8686 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8687 else
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 for as_dir in $PATH
8690 do
8691 IFS=$as_save_IFS
8692 case $as_dir in #(((
8693 '') as_dir=./ ;;
8694 */) ;;
8695 *) as_dir=$as_dir/ ;;
8696 esac
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8699 ac_cv_prog_ac_ct_OTOOL="otool"
8700 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8701 break 2
8702 fi
8703 done
8704 done
8705 IFS=$as_save_IFS
8706
8707 fi ;;
8708 esac
8709 fi
8710 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8711 if test -n "$ac_ct_OTOOL"; then
8712 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8713 printf '%s\n' "$ac_ct_OTOOL" >&6; }
8714 else
8715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716 printf '%s\n' "no" >&6; }
8717 fi
8718
8719 if test "x$ac_ct_OTOOL" = x; then
8720 OTOOL=":"
8721 else
8722 case $cross_compiling:$ac_tool_warned in
8723 yes:)
8724 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8725 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8726 ac_tool_warned=yes ;;
8727 esac
8728 OTOOL=$ac_ct_OTOOL
8729 fi
8730 else
8731 OTOOL="$ac_cv_prog_OTOOL"
8732 fi
8733
8734 if test -n "$ac_tool_prefix"; then
8735 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8736 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8737 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738 printf %s "checking for $ac_word... " >&6; }
8739 if test ${ac_cv_prog_OTOOL64+y}
8740 then :
8741 printf %s "(cached) " >&6
8742 else case e in #(
8743 e) if test -n "$OTOOL64"; then
8744 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8745 else
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 for as_dir in $PATH
8748 do
8749 IFS=$as_save_IFS
8750 case $as_dir in #(((
8751 '') as_dir=./ ;;
8752 */) ;;
8753 *) as_dir=$as_dir/ ;;
8754 esac
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8757 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8758 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8759 break 2
8760 fi
8761 done
8762 done
8763 IFS=$as_save_IFS
8764
8765 fi ;;
8766 esac
8767 fi
8768 OTOOL64=$ac_cv_prog_OTOOL64
8769 if test -n "$OTOOL64"; then
8770 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8771 printf '%s\n' "$OTOOL64" >&6; }
8772 else
8773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 printf '%s\n' "no" >&6; }
8775 fi
8776
8777
8778 fi
8779 if test -z "$ac_cv_prog_OTOOL64"; then
8780 ac_ct_OTOOL64=$OTOOL64
8781 # Extract the first word of "otool64", so it can be a program name with args.
8782 set dummy otool64; ac_word=$2
8783 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784 printf %s "checking for $ac_word... " >&6; }
8785 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8786 then :
8787 printf %s "(cached) " >&6
8788 else case e in #(
8789 e) if test -n "$ac_ct_OTOOL64"; then
8790 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8794 do
8795 IFS=$as_save_IFS
8796 case $as_dir in #(((
8797 '') as_dir=./ ;;
8798 */) ;;
8799 *) as_dir=$as_dir/ ;;
8800 esac
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8803 ac_cv_prog_ac_ct_OTOOL64="otool64"
8804 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8805 break 2
8806 fi
8807 done
8808 done
8809 IFS=$as_save_IFS
8810
8811 fi ;;
8812 esac
8813 fi
8814 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8815 if test -n "$ac_ct_OTOOL64"; then
8816 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8817 printf '%s\n' "$ac_ct_OTOOL64" >&6; }
8818 else
8819 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 printf '%s\n' "no" >&6; }
8821 fi
8822
8823 if test "x$ac_ct_OTOOL64" = x; then
8824 OTOOL64=":"
8825 else
8826 case $cross_compiling:$ac_tool_warned in
8827 yes:)
8828 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8829 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8830 ac_tool_warned=yes ;;
8831 esac
8832 OTOOL64=$ac_ct_OTOOL64
8833 fi
8834 else
8835 OTOOL64="$ac_cv_prog_OTOOL64"
8836 fi
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8865 printf %s "checking for -single_module linker flag... " >&6; }
8866 if test ${lt_cv_apple_cc_single_mod+y}
8867 then :
8868 printf %s "(cached) " >&6
8869 else case e in #(
8870 e) lt_cv_apple_cc_single_mod=no
8871 if test -z "$LT_MULTI_MODULE"; then
8872 # By default we will add the -single_module flag. You can override
8873 # by either setting the environment variable LT_MULTI_MODULE
8874 # non-empty at configure time, or by adding -multi_module to the
8875 # link flags.
8876 rm -rf libconftest.dylib*
8877 echo "int foo(void){return 1;}" > conftest.c
8878 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8879 -dynamiclib -Wl,-single_module conftest.c" >&5
8880 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8881 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8882 _lt_result=$?
8883 # If there is a non-empty error log, and "single_module"
8884 # appears in it, assume the flag caused a linker warning
8885 if test -s conftest.err && $GREP single_module conftest.err; then
8886 cat conftest.err >&5
8887 # Otherwise, if the output was created with a 0 exit code from
8888 # the compiler, it worked.
8889 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8890 lt_cv_apple_cc_single_mod=yes
8891 else
8892 cat conftest.err >&5
8893 fi
8894 rm -rf libconftest.dylib*
8895 rm -f conftest.*
8896 fi ;;
8897 esac
8898 fi
8899 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8900 printf '%s\n' "$lt_cv_apple_cc_single_mod" >&6; }
8901
8902 # Feature test to disable chained fixups since it is not
8903 # compatible with '-undefined dynamic_lookup'
8904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8905 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8906 if test ${lt_cv_support_no_fixup_chains+y}
8907 then :
8908 printf %s "(cached) " >&6
8909 else case e in #(
8910 e) save_LDFLAGS=$LDFLAGS
8911 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914
8915 int
8916 main (void)
8917 {
8918
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"
8924 then :
8925 lt_cv_support_no_fixup_chains=yes
8926 else case e in #(
8927 e) lt_cv_support_no_fixup_chains=no
8928 ;;
8929 esac
8930 fi
8931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8932 conftest$ac_exeext conftest.$ac_ext
8933 LDFLAGS=$save_LDFLAGS
8934
8935 ;;
8936 esac
8937 fi
8938 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8939 printf '%s\n' "$lt_cv_support_no_fixup_chains" >&6; }
8940
8941 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8942 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8943 if test ${lt_cv_ld_exported_symbols_list+y}
8944 then :
8945 printf %s "(cached) " >&6
8946 else case e in #(
8947 e) lt_cv_ld_exported_symbols_list=no
8948 save_LDFLAGS=$LDFLAGS
8949 echo "_main" > conftest.sym
8950 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8953
8954 int
8955 main (void)
8956 {
8957
8958 ;
8959 return 0;
8960 }
8961 _ACEOF
8962 if ac_fn_c_try_link "$LINENO"
8963 then :
8964 lt_cv_ld_exported_symbols_list=yes
8965 else case e in #(
8966 e) lt_cv_ld_exported_symbols_list=no ;;
8967 esac
8968 fi
8969 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8970 conftest$ac_exeext conftest.$ac_ext
8971 LDFLAGS=$save_LDFLAGS
8972 ;;
8973 esac
8974 fi
8975 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8976 printf '%s\n' "$lt_cv_ld_exported_symbols_list" >&6; }
8977
8978 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8979 printf %s "checking for -force_load linker flag... " >&6; }
8980 if test ${lt_cv_ld_force_load+y}
8981 then :
8982 printf %s "(cached) " >&6
8983 else case e in #(
8984 e) lt_cv_ld_force_load=no
8985 cat > conftest.c << _LT_EOF
8986 int forced_loaded() { return 2;}
8987 _LT_EOF
8988 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8989 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8990 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8991 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8992 echo "$RANLIB libconftest.a" >&5
8993 $RANLIB libconftest.a 2>&5
8994 cat > conftest.c << _LT_EOF
8995 int main(void) { return 0;}
8996 _LT_EOF
8997 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8998 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8999 _lt_result=$?
9000 if test -s conftest.err && $GREP force_load conftest.err; then
9001 cat conftest.err >&5
9002 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9003 lt_cv_ld_force_load=yes
9004 else
9005 cat conftest.err >&5
9006 fi
9007 rm -f conftest.err libconftest.a conftest conftest.c
9008 rm -rf conftest.dSYM
9009 ;;
9010 esac
9011 fi
9012 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9013 printf '%s\n' "$lt_cv_ld_force_load" >&6; }
9014 case $host_os in
9015 rhapsody* | darwin1.[012])
9016 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9017 darwin1.*)
9018 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9019 darwin*)
9020 case $MACOSX_DEPLOYMENT_TARGET,$host in
9021 10.[012],*|,*powerpc*-darwin[5-8]*)
9022 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9023 *)
9024 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9025 if test yes = "$lt_cv_support_no_fixup_chains"; then
9026 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9027 fi
9028 ;;
9029 esac
9030 ;;
9031 esac
9032 if test yes = "$lt_cv_apple_cc_single_mod"; then
9033 _lt_dar_single_mod='$single_module'
9034 fi
9035 _lt_dar_needs_single_mod=no
9036 case $host_os in
9037 rhapsody* | darwin1.*)
9038 _lt_dar_needs_single_mod=yes ;;
9039 darwin*)
9040 # When targeting Mac OS X 10.4 (darwin 8) or later,
9041 # -single_module is the default and -multi_module is unsupported.
9042 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9043 # target any OS version that needs -single_module.
9044 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9045 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9046 _lt_dar_needs_single_mod=yes ;;
9047 esac
9048 ;;
9049 esac
9050 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9051 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9052 else
9053 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9054 fi
9055 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9056 _lt_dsymutil='~$DSYMUTIL $lib || :'
9057 else
9058 _lt_dsymutil=
9059 fi
9060 ;;
9061 esac
9062
9063 # func_munge_path_list VARIABLE PATH
9064 # -----------------------------------
9065 # VARIABLE is name of variable containing _space_ separated list of
9066 # directories to be munged by the contents of PATH, which is string
9067 # having a format:
9068 # "DIR[:DIR]:"
9069 # string "DIR[ DIR]" will be prepended to VARIABLE
9070 # ":DIR[:DIR]"
9071 # string "DIR[ DIR]" will be appended to VARIABLE
9072 # "DIRP[:DIRP]::[DIRA:]DIRA"
9073 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9074 # "DIRA[ DIRA]" will be appended to VARIABLE
9075 # "DIR[:DIR]"
9076 # VARIABLE will be replaced by "DIR[ DIR]"
9077 func_munge_path_list ()
9078 {
9079 case x$2 in
9080 x)
9081 ;;
9082 *:)
9083 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9084 ;;
9085 x:*)
9086 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9087 ;;
9088 *::*)
9089 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9090 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9091 ;;
9092 *)
9093 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9094 ;;
9095 esac
9096 }
9097
9098 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9099 "
9100 if test "x$ac_cv_header_dlfcn_h" = xyes
9101 then :
9102 printf '%s\n' "#define HAVE_DLFCN_H 1" >>confdefs.h
9103
9104 fi
9105
9106
9107
9108
9109
9110 # Set options
9111
9112
9113
9114 enable_dlopen=no
9115
9116
9117 enable_win32_dll=no
9118
9119
9120 # Check whether --enable-shared was given.
9121 if test ${enable_shared+y}
9122 then :
9123 enableval=$enable_shared; p=${PACKAGE-default}
9124 case $enableval in
9125 yes) enable_shared=yes ;;
9126 no) enable_shared=no ;;
9127 *)
9128 enable_shared=no
9129 # Look at the argument we got. We use all the common list separators.
9130 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9131 for pkg in $enableval; do
9132 IFS=$lt_save_ifs
9133 if test "X$pkg" = "X$p"; then
9134 enable_shared=yes
9135 fi
9136 done
9137 IFS=$lt_save_ifs
9138 ;;
9139 esac
9140 else case e in #(
9141 e) enable_shared=yes ;;
9142 esac
9143 fi
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153 # Check whether --enable-static was given.
9154 if test ${enable_static+y}
9155 then :
9156 enableval=$enable_static; p=${PACKAGE-default}
9157 case $enableval in
9158 yes) enable_static=yes ;;
9159 no) enable_static=no ;;
9160 *)
9161 enable_static=no
9162 # Look at the argument we got. We use all the common list separators.
9163 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9164 for pkg in $enableval; do
9165 IFS=$lt_save_ifs
9166 if test "X$pkg" = "X$p"; then
9167 enable_static=yes
9168 fi
9169 done
9170 IFS=$lt_save_ifs
9171 ;;
9172 esac
9173 else case e in #(
9174 e) enable_static=yes ;;
9175 esac
9176 fi
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186 # Check whether --enable-pic was given.
9187 if test ${enable_pic+y}
9188 then :
9189 enableval=$enable_pic; lt_p=${PACKAGE-default}
9190 case $enableval in
9191 yes|no) pic_mode=$enableval ;;
9192 *)
9193 pic_mode=default
9194 # Look at the argument we got. We use all the common list separators.
9195 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9196 for lt_pkg in $enableval; do
9197 IFS=$lt_save_ifs
9198 if test "X$lt_pkg" = "X$lt_p"; then
9199 pic_mode=yes
9200 fi
9201 done
9202 IFS=$lt_save_ifs
9203 ;;
9204 esac
9205 else case e in #(
9206 e) # Check whether --with-pic was given.
9207 if test ${with_pic+y}
9208 then :
9209 withval=$with_pic; lt_p=${PACKAGE-default}
9210 case $withval in
9211 yes|no) pic_mode=$withval ;;
9212 *)
9213 pic_mode=default
9214 # Look at the argument we got. We use all the common list separators.
9215 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9216 for lt_pkg in $withval; do
9217 IFS=$lt_save_ifs
9218 if test "X$lt_pkg" = "X$lt_p"; then
9219 pic_mode=yes
9220 fi
9221 done
9222 IFS=$lt_save_ifs
9223 ;;
9224 esac
9225 else case e in #(
9226 e) pic_mode=default ;;
9227 esac
9228 fi
9229
9230 ;;
9231 esac
9232 fi
9233
9234
9235
9236
9237
9238
9239
9240
9241 # Check whether --enable-fast-install was given.
9242 if test ${enable_fast_install+y}
9243 then :
9244 enableval=$enable_fast_install; p=${PACKAGE-default}
9245 case $enableval in
9246 yes) enable_fast_install=yes ;;
9247 no) enable_fast_install=no ;;
9248 *)
9249 enable_fast_install=no
9250 # Look at the argument we got. We use all the common list separators.
9251 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9252 for pkg in $enableval; do
9253 IFS=$lt_save_ifs
9254 if test "X$pkg" = "X$p"; then
9255 enable_fast_install=yes
9256 fi
9257 done
9258 IFS=$lt_save_ifs
9259 ;;
9260 esac
9261 else case e in #(
9262 e) enable_fast_install=yes ;;
9263 esac
9264 fi
9265
9266
9267
9268
9269
9270
9271
9272
9273 shared_archive_member_spec=
9274 case $host,$enable_shared in
9275 power*-*-aix[5-9]*,yes)
9276 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9277 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9278 # Check whether --enable-aix-soname was given.
9279 if test ${enable_aix_soname+y}
9280 then :
9281 enableval=$enable_aix_soname; case $enableval in
9282 aix|svr4|both)
9283 ;;
9284 *)
9285 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9286 ;;
9287 esac
9288 lt_cv_with_aix_soname=$enable_aix_soname
9289 else case e in #(
9290 e) # Check whether --with-aix-soname was given.
9291 if test ${with_aix_soname+y}
9292 then :
9293 withval=$with_aix_soname; case $withval in
9294 aix|svr4|both)
9295 ;;
9296 *)
9297 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9298 ;;
9299 esac
9300 lt_cv_with_aix_soname=$with_aix_soname
9301 else case e in #(
9302 e) if test ${lt_cv_with_aix_soname+y}
9303 then :
9304 printf %s "(cached) " >&6
9305 else case e in #(
9306 e) lt_cv_with_aix_soname=aix ;;
9307 esac
9308 fi
9309 ;;
9310 esac
9311 fi
9312
9313 enable_aix_soname=$lt_cv_with_aix_soname ;;
9314 esac
9315 fi
9316
9317 with_aix_soname=$enable_aix_soname
9318 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9319 printf '%s\n' "$with_aix_soname" >&6; }
9320 if test aix != "$with_aix_soname"; then
9321 # For the AIX way of multilib, we name the shared archive member
9322 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9323 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9324 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9325 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9326 if test 64 = "${OBJECT_MODE-32}"; then
9327 shared_archive_member_spec=shr_64
9328 else
9329 shared_archive_member_spec=shr
9330 fi
9331 fi
9332 ;;
9333 *)
9334 with_aix_soname=aix
9335 ;;
9336 esac
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347 # This can be used to rebuild libtool when needed
9348 LIBTOOL_DEPS=$ltmain
9349
9350 # Always use our own libtool.
9351 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382 test -z "$LN_S" && LN_S="ln -s"
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397 if test -n "${ZSH_VERSION+set}"; then
9398 setopt NO_GLOB_SUBST
9399 fi
9400
9401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9402 printf %s "checking for objdir... " >&6; }
9403 if test ${lt_cv_objdir+y}
9404 then :
9405 printf %s "(cached) " >&6
9406 else case e in #(
9407 e) rm -f .libs 2>/dev/null
9408 mkdir .libs 2>/dev/null
9409 if test -d .libs; then
9410 lt_cv_objdir=.libs
9411 else
9412 # MS-DOS does not allow filenames that begin with a dot.
9413 lt_cv_objdir=_libs
9414 fi
9415 rmdir .libs 2>/dev/null ;;
9416 esac
9417 fi
9418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9419 printf '%s\n' "$lt_cv_objdir" >&6; }
9420 objdir=$lt_cv_objdir
9421
9422
9423
9424
9425
9426 printf '%s\n' "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9427
9428
9429
9430
9431 case $host_os in
9432 aix3*)
9433 # AIX sometimes has problems with the GCC collect2 program. For some
9434 # reason, if we set the COLLECT_NAMES environment variable, the problems
9435 # vanish in a puff of smoke.
9436 if test set != "${COLLECT_NAMES+set}"; then
9437 COLLECT_NAMES=
9438 export COLLECT_NAMES
9439 fi
9440 ;;
9441 esac
9442
9443 # Global variables:
9444 ofile=libtool
9445 can_build_shared=yes
9446
9447 # All known linkers require a '.a' archive for static linking (except MSVC and
9448 # ICC, which need '.lib').
9449 libext=a
9450
9451 with_gnu_ld=$lt_cv_prog_gnu_ld
9452
9453 old_CC=$CC
9454 old_CFLAGS=$CFLAGS
9455
9456 # Set sane defaults for various variables
9457 test -z "$CC" && CC=cc
9458 test -z "$LTCC" && LTCC=$CC
9459 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9460 test -z "$LD" && LD=ld
9461 test -z "$ac_objext" && ac_objext=o
9462
9463 func_cc_basename $compiler
9464 cc_basename=$func_cc_basename_result
9465
9466
9467 # Only perform the check for file, if the check method requires it
9468 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9469 case $deplibs_check_method in
9470 file_magic*)
9471 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9472 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9473 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9474 if test ${lt_cv_path_MAGIC_CMD+y}
9475 then :
9476 printf %s "(cached) " >&6
9477 else case e in #(
9478 e) case $MAGIC_CMD in
9479 [\\/*] | ?:[\\/]*)
9480 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9481 ;;
9482 *)
9483 lt_save_MAGIC_CMD=$MAGIC_CMD
9484 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9485 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9486 for ac_dir in $ac_dummy; do
9487 IFS=$lt_save_ifs
9488 test -z "$ac_dir" && ac_dir=.
9489 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9490 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9491 if test -n "$file_magic_test_file"; then
9492 case $deplibs_check_method in
9493 "file_magic "*)
9494 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9495 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9496 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9497 $EGREP "$file_magic_regex" > /dev/null; then
9498 :
9499 else
9500 cat <<_LT_EOF 1>&2
9501
9502 *** Warning: the command libtool uses to detect shared libraries,
9503 *** $file_magic_cmd, produces output that libtool cannot recognize.
9504 *** The result is that libtool may fail to recognize shared libraries
9505 *** as such. This will affect the creation of libtool libraries that
9506 *** depend on shared libraries, but programs linked with such libtool
9507 *** libraries will work regardless of this problem. Nevertheless, you
9508 *** may want to report the problem to your system manager and/or to
9509 *** [email protected]
9510
9511 _LT_EOF
9512 fi ;;
9513 esac
9514 fi
9515 break
9516 fi
9517 done
9518 IFS=$lt_save_ifs
9519 MAGIC_CMD=$lt_save_MAGIC_CMD
9520 ;;
9521 esac ;;
9522 esac
9523 fi
9524
9525 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9526 if test -n "$MAGIC_CMD"; then
9527 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9528 printf '%s\n' "$MAGIC_CMD" >&6; }
9529 else
9530 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531 printf '%s\n' "no" >&6; }
9532 fi
9533
9534
9535
9536
9537
9538 if test -z "$lt_cv_path_MAGIC_CMD"; then
9539 if test -n "$ac_tool_prefix"; then
9540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9541 printf %s "checking for file... " >&6; }
9542 if test ${lt_cv_path_MAGIC_CMD+y}
9543 then :
9544 printf %s "(cached) " >&6
9545 else case e in #(
9546 e) case $MAGIC_CMD in
9547 [\\/*] | ?:[\\/]*)
9548 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9549 ;;
9550 *)
9551 lt_save_MAGIC_CMD=$MAGIC_CMD
9552 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9553 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9554 for ac_dir in $ac_dummy; do
9555 IFS=$lt_save_ifs
9556 test -z "$ac_dir" && ac_dir=.
9557 if test -f "$ac_dir/file"; then
9558 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9559 if test -n "$file_magic_test_file"; then
9560 case $deplibs_check_method in
9561 "file_magic "*)
9562 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9563 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9564 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9565 $EGREP "$file_magic_regex" > /dev/null; then
9566 :
9567 else
9568 cat <<_LT_EOF 1>&2
9569
9570 *** Warning: the command libtool uses to detect shared libraries,
9571 *** $file_magic_cmd, produces output that libtool cannot recognize.
9572 *** The result is that libtool may fail to recognize shared libraries
9573 *** as such. This will affect the creation of libtool libraries that
9574 *** depend on shared libraries, but programs linked with such libtool
9575 *** libraries will work regardless of this problem. Nevertheless, you
9576 *** may want to report the problem to your system manager and/or to
9577 *** [email protected]
9578
9579 _LT_EOF
9580 fi ;;
9581 esac
9582 fi
9583 break
9584 fi
9585 done
9586 IFS=$lt_save_ifs
9587 MAGIC_CMD=$lt_save_MAGIC_CMD
9588 ;;
9589 esac ;;
9590 esac
9591 fi
9592
9593 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9594 if test -n "$MAGIC_CMD"; then
9595 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9596 printf '%s\n' "$MAGIC_CMD" >&6; }
9597 else
9598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 printf '%s\n' "no" >&6; }
9600 fi
9601
9602
9603 else
9604 MAGIC_CMD=:
9605 fi
9606 fi
9607
9608 fi
9609 ;;
9610 esac
9611
9612 # Use C for the default configuration in the libtool script
9613
9614 lt_save_CC=$CC
9615 ac_ext=c
9616 ac_cpp='$CPP $CPPFLAGS'
9617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9620
9621
9622 # Source file extension for C test sources.
9623 ac_ext=c
9624
9625 # Object file extension for compiled C test sources.
9626 objext=o
9627 objext=$objext
9628
9629 # Code to be used in simple compile tests
9630 lt_simple_compile_test_code="int some_variable = 0;"
9631
9632 # Code to be used in simple link tests
9633 lt_simple_link_test_code='int main(void){return(0);}'
9634
9635
9636
9637
9638
9639
9640
9641 # If no C compiler was specified, use CC.
9642 LTCC=${LTCC-"$CC"}
9643
9644 # If no C compiler flags were specified, use CFLAGS.
9645 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9646
9647 # Allow CC to be a program name with arguments.
9648 compiler=$CC
9649
9650 # Save the default compiler, since it gets overwritten when the other
9651 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9652 compiler_DEFAULT=$CC
9653
9654 # save warnings/boilerplate of simple test code
9655 ac_outfile=conftest.$ac_objext
9656 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9657 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9658 _lt_compiler_boilerplate=`cat conftest.err`
9659 $RM conftest*
9660
9661 ac_outfile=conftest.$ac_objext
9662 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9663 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9664 _lt_linker_boilerplate=`cat conftest.err`
9665 $RM -r conftest*
9666
9667
9668 ## CAVEAT EMPTOR:
9669 ## There is no encapsulation within the following macros, do not change
9670 ## the running order or otherwise move them around unless you know exactly
9671 ## what you are doing...
9672 if test -n "$compiler"; then
9673
9674 lt_prog_compiler_no_builtin_flag=
9675
9676 if test yes = "$GCC"; then
9677 case $cc_basename in
9678 nvcc*)
9679 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9680 *)
9681 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9682 esac
9683
9684 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9685 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9686 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9687 then :
9688 printf %s "(cached) " >&6
9689 else case e in #(
9690 e) lt_cv_prog_compiler_rtti_exceptions=no
9691 ac_outfile=conftest.$ac_objext
9692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9693 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9694 # Insert the option either (1) after the last *FLAGS variable, or
9695 # (2) before a word containing "conftest.", or (3) at the end.
9696 # Note that $ac_compile itself does not contain backslashes and begins
9697 # with a dollar sign (not a hyphen), so the echo should work correctly.
9698 # The option is referenced via a variable to avoid confusing sed.
9699 lt_compile=`echo "$ac_compile" | $SED \
9700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9702 -e 's:$: $lt_compiler_flag:'`
9703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9704 (eval "$lt_compile" 2>conftest.err)
9705 ac_status=$?
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 if (exit $ac_status) && test -s "$ac_outfile"; then
9709 # The compiler can only warn and ignore the option if not recognized
9710 # So say no if there are warnings other than the usual output.
9711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9714 lt_cv_prog_compiler_rtti_exceptions=yes
9715 fi
9716 fi
9717 $RM conftest*
9718 ;;
9719 esac
9720 fi
9721 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9722 printf '%s\n' "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9723
9724 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9725 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9726 else
9727 :
9728 fi
9729
9730 fi
9731
9732
9733
9734
9735
9736
9737 lt_prog_compiler_wl=
9738 lt_prog_compiler_pic=
9739 lt_prog_compiler_static=
9740
9741
9742 if test yes = "$GCC"; then
9743 lt_prog_compiler_wl='-Wl,'
9744 lt_prog_compiler_static='-static'
9745
9746 case $host_os in
9747 aix*)
9748 # All AIX code is PIC.
9749 if test ia64 = "$host_cpu"; then
9750 # AIX 5 now supports IA64 processor
9751 lt_prog_compiler_static='-Bstatic'
9752 fi
9753 lt_prog_compiler_pic='-fPIC'
9754 ;;
9755
9756 amigaos*)
9757 case $host_cpu in
9758 powerpc)
9759 # see comment about AmigaOS4 .so support
9760 lt_prog_compiler_pic='-fPIC'
9761 ;;
9762 m68k)
9763 # FIXME: we need at least 68020 code to build shared libraries, but
9764 # adding the '-m68020' flag to GCC prevents building anything better,
9765 # like '-m68040'.
9766 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9767 ;;
9768 esac
9769 ;;
9770
9771 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9772 # PIC is the default for these OSes.
9773 ;;
9774
9775 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9776 # This hack is so that the source file can tell whether it is being
9777 # built for inclusion in a dll (and should export symbols for example).
9778 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9779 # (--disable-auto-import) libraries
9780 lt_prog_compiler_pic='-DDLL_EXPORT'
9781 case $host_os in
9782 os2*)
9783 lt_prog_compiler_static='$wl-static'
9784 ;;
9785 esac
9786 ;;
9787
9788 darwin* | rhapsody*)
9789 # PIC is the default on this platform
9790 # Common symbols not allowed in MH_DYLIB files
9791 lt_prog_compiler_pic='-fno-common'
9792 ;;
9793
9794 haiku*)
9795 # PIC is the default for Haiku.
9796 # The "-static" flag exists, but is broken.
9797 lt_prog_compiler_static=
9798 ;;
9799
9800 hpux*)
9801 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9802 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9803 # sets the default TLS model and affects inlining.
9804 case $host_cpu in
9805 hppa*64*)
9806 # +Z the default
9807 ;;
9808 *)
9809 lt_prog_compiler_pic='-fPIC'
9810 ;;
9811 esac
9812 ;;
9813
9814 interix[3-9]*)
9815 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9816 # Instead, we relocate shared libraries at runtime.
9817 ;;
9818
9819 msdosdjgpp*)
9820 # Just because we use GCC doesn't mean we suddenly get shared libraries
9821 # on systems that don't support them.
9822 lt_prog_compiler_can_build_shared=no
9823 enable_shared=no
9824 ;;
9825
9826 *nto* | *qnx*)
9827 # QNX uses GNU C++, but need to define -shared option too, otherwise
9828 # it will coredump.
9829 lt_prog_compiler_pic='-fPIC -shared'
9830 ;;
9831
9832 sysv4*MP*)
9833 if test -d /usr/nec; then
9834 lt_prog_compiler_pic=-Kconform_pic
9835 fi
9836 ;;
9837
9838 *)
9839 lt_prog_compiler_pic='-fPIC'
9840 ;;
9841 esac
9842
9843 case $cc_basename in
9844 nvcc*) # Cuda Compiler Driver 2.2
9845 lt_prog_compiler_wl='-Xlinker '
9846 if test -n "$lt_prog_compiler_pic"; then
9847 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9848 fi
9849 ;;
9850 esac
9851 else
9852 # PORTME Check for flag to pass linker flags through the system compiler.
9853 case $host_os in
9854 aix*)
9855 lt_prog_compiler_wl='-Wl,'
9856 if test ia64 = "$host_cpu"; then
9857 # AIX 5 now supports IA64 processor
9858 lt_prog_compiler_static='-Bstatic'
9859 else
9860 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9861 fi
9862 ;;
9863
9864 darwin* | rhapsody*)
9865 # PIC is the default on this platform
9866 # Common symbols not allowed in MH_DYLIB files
9867 lt_prog_compiler_pic='-fno-common'
9868 case $cc_basename in
9869 nagfor*)
9870 # NAG Fortran compiler
9871 lt_prog_compiler_wl='-Wl,-Wl,,'
9872 lt_prog_compiler_pic='-PIC'
9873 lt_prog_compiler_static='-Bstatic'
9874 ;;
9875 esac
9876 ;;
9877
9878 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9879 # This hack is so that the source file can tell whether it is being
9880 # built for inclusion in a dll (and should export symbols for example).
9881 lt_prog_compiler_pic='-DDLL_EXPORT'
9882 case $host_os in
9883 os2*)
9884 lt_prog_compiler_static='$wl-static'
9885 ;;
9886 esac
9887 ;;
9888
9889 hpux9* | hpux10* | hpux11*)
9890 lt_prog_compiler_wl='-Wl,'
9891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9892 # not for PA HP-UX.
9893 case $host_cpu in
9894 hppa*64*|ia64*)
9895 # +Z the default
9896 ;;
9897 *)
9898 lt_prog_compiler_pic='+Z'
9899 ;;
9900 esac
9901 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9902 lt_prog_compiler_static='$wl-a ${wl}archive'
9903 ;;
9904
9905 irix5* | irix6* | nonstopux*)
9906 lt_prog_compiler_wl='-Wl,'
9907 # PIC (with -KPIC) is the default.
9908 lt_prog_compiler_static='-non_shared'
9909 ;;
9910
9911 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9912 case $cc_basename in
9913 # old Intel for x86_64, which still supported -KPIC.
9914 ecc*)
9915 lt_prog_compiler_wl='-Wl,'
9916 lt_prog_compiler_pic='-KPIC'
9917 lt_prog_compiler_static='-static'
9918 ;;
9919 *flang* | ftn | f18* | f95*)
9920 # Flang compiler.
9921 lt_prog_compiler_wl='-Wl,'
9922 lt_prog_compiler_pic='-fPIC'
9923 lt_prog_compiler_static='-static'
9924 ;;
9925 # icc used to be incompatible with GCC.
9926 # ICC 10 doesn't accept -KPIC any more.
9927 icc* | ifort*)
9928 lt_prog_compiler_wl='-Wl,'
9929 lt_prog_compiler_pic='-fPIC'
9930 lt_prog_compiler_static='-static'
9931 ;;
9932 # Lahey Fortran 8.1.
9933 lf95*)
9934 lt_prog_compiler_wl='-Wl,'
9935 lt_prog_compiler_pic='--shared'
9936 lt_prog_compiler_static='--static'
9937 ;;
9938 nagfor*)
9939 # NAG Fortran compiler
9940 lt_prog_compiler_wl='-Wl,-Wl,,'
9941 lt_prog_compiler_pic='-PIC'
9942 lt_prog_compiler_static='-Bstatic'
9943 ;;
9944 tcc*)
9945 # Fabrice Bellard et al's Tiny C Compiler
9946 lt_prog_compiler_wl='-Wl,'
9947 lt_prog_compiler_pic='-fPIC'
9948 lt_prog_compiler_static='-static'
9949 ;;
9950 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9951 # Portland Group compilers (*not* the Pentium gcc compiler,
9952 # which looks to be a dead project)
9953 lt_prog_compiler_wl='-Wl,'
9954 lt_prog_compiler_pic='-fpic'
9955 lt_prog_compiler_static='-Bstatic'
9956 ;;
9957 ccc*)
9958 lt_prog_compiler_wl='-Wl,'
9959 # All Alpha code is PIC.
9960 lt_prog_compiler_static='-non_shared'
9961 ;;
9962 xl* | bgxl* | bgf* | mpixl*)
9963 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9964 lt_prog_compiler_wl='-Wl,'
9965 lt_prog_compiler_pic='-qpic'
9966 lt_prog_compiler_static='-qstaticlink'
9967 ;;
9968 *)
9969 case `$CC -V 2>&1 | $SED 5q` in
9970 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9971 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9972 lt_prog_compiler_pic='-KPIC'
9973 lt_prog_compiler_static='-Bstatic'
9974 lt_prog_compiler_wl=''
9975 ;;
9976 *Sun\ F* | *Sun*Fortran*)
9977 lt_prog_compiler_pic='-KPIC'
9978 lt_prog_compiler_static='-Bstatic'
9979 lt_prog_compiler_wl='-Qoption ld '
9980 ;;
9981 *Sun\ C*)
9982 # Sun C 5.9
9983 lt_prog_compiler_pic='-KPIC'
9984 lt_prog_compiler_static='-Bstatic'
9985 lt_prog_compiler_wl='-Wl,'
9986 ;;
9987 *Intel*\ [CF]*Compiler*)
9988 lt_prog_compiler_wl='-Wl,'
9989 lt_prog_compiler_pic='-fPIC'
9990 lt_prog_compiler_static='-static'
9991 ;;
9992 *Portland\ Group*)
9993 lt_prog_compiler_wl='-Wl,'
9994 lt_prog_compiler_pic='-fpic'
9995 lt_prog_compiler_static='-Bstatic'
9996 ;;
9997 esac
9998 ;;
9999 esac
10000 ;;
10001
10002 newsos6)
10003 lt_prog_compiler_pic='-KPIC'
10004 lt_prog_compiler_static='-Bstatic'
10005 ;;
10006
10007 *-mlibc)
10008 lt_prog_compiler_wl='-Wl,'
10009 lt_prog_compiler_pic='-fPIC'
10010 lt_prog_compiler_static='-static'
10011 ;;
10012
10013 *nto* | *qnx*)
10014 # QNX uses GNU C++, but need to define -shared option too, otherwise
10015 # it will coredump.
10016 lt_prog_compiler_pic='-fPIC -shared'
10017 ;;
10018
10019 osf3* | osf4* | osf5*)
10020 lt_prog_compiler_wl='-Wl,'
10021 # All OSF/1 code is PIC.
10022 lt_prog_compiler_static='-non_shared'
10023 ;;
10024
10025 rdos*)
10026 lt_prog_compiler_static='-non_shared'
10027 ;;
10028
10029 serenity*)
10030 ;;
10031
10032 solaris*)
10033 lt_prog_compiler_pic='-KPIC'
10034 lt_prog_compiler_static='-Bstatic'
10035 case $cc_basename in
10036 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10037 lt_prog_compiler_wl='-Qoption ld ';;
10038 *)
10039 lt_prog_compiler_wl='-Wl,';;
10040 esac
10041 ;;
10042
10043 sunos4*)
10044 lt_prog_compiler_wl='-Qoption ld '
10045 lt_prog_compiler_pic='-PIC'
10046 lt_prog_compiler_static='-Bstatic'
10047 ;;
10048
10049 sysv4 | sysv4.2uw2* | sysv4.3*)
10050 lt_prog_compiler_wl='-Wl,'
10051 lt_prog_compiler_pic='-KPIC'
10052 lt_prog_compiler_static='-Bstatic'
10053 ;;
10054
10055 sysv4*MP*)
10056 if test -d /usr/nec; then
10057 lt_prog_compiler_pic='-Kconform_pic'
10058 lt_prog_compiler_static='-Bstatic'
10059 fi
10060 ;;
10061
10062 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10063 lt_prog_compiler_wl='-Wl,'
10064 lt_prog_compiler_pic='-KPIC'
10065 lt_prog_compiler_static='-Bstatic'
10066 ;;
10067
10068 unicos*)
10069 lt_prog_compiler_wl='-Wl,'
10070 lt_prog_compiler_can_build_shared=no
10071 ;;
10072
10073 uts4*)
10074 lt_prog_compiler_pic='-pic'
10075 lt_prog_compiler_static='-Bstatic'
10076 ;;
10077
10078 *)
10079 lt_prog_compiler_can_build_shared=no
10080 ;;
10081 esac
10082 fi
10083
10084 case $host_os in
10085 # For platforms that do not support PIC, -DPIC is meaningless:
10086 *djgpp*)
10087 lt_prog_compiler_pic=
10088 ;;
10089 *)
10090 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10091 ;;
10092 esac
10093
10094 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10095 printf %s "checking for $compiler option to produce PIC... " >&6; }
10096 if test ${lt_cv_prog_compiler_pic+y}
10097 then :
10098 printf %s "(cached) " >&6
10099 else case e in #(
10100 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10101 esac
10102 fi
10103 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10104 printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; }
10105 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10106
10107 #
10108 # Check to make sure the PIC flag actually works.
10109 #
10110 if test -n "$lt_prog_compiler_pic"; then
10111 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10112 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10113 if test ${lt_cv_prog_compiler_pic_works+y}
10114 then :
10115 printf %s "(cached) " >&6
10116 else case e in #(
10117 e) lt_cv_prog_compiler_pic_works=no
10118 ac_outfile=conftest.$ac_objext
10119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10120 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10121 # Insert the option either (1) after the last *FLAGS variable, or
10122 # (2) before a word containing "conftest.", or (3) at the end.
10123 # Note that $ac_compile itself does not contain backslashes and begins
10124 # with a dollar sign (not a hyphen), so the echo should work correctly.
10125 # The option is referenced via a variable to avoid confusing sed.
10126 lt_compile=`echo "$ac_compile" | $SED \
10127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10129 -e 's:$: $lt_compiler_flag:'`
10130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10131 (eval "$lt_compile" 2>conftest.err)
10132 ac_status=$?
10133 cat conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 if (exit $ac_status) && test -s "$ac_outfile"; then
10136 # The compiler can only warn and ignore the option if not recognized
10137 # So say no if there are warnings other than the usual output.
10138 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10140 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10141 lt_cv_prog_compiler_pic_works=yes
10142 fi
10143 fi
10144 $RM conftest*
10145 ;;
10146 esac
10147 fi
10148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10149 printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; }
10150
10151 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10152 case $lt_prog_compiler_pic in
10153 "" | " "*) ;;
10154 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10155 esac
10156 else
10157 lt_prog_compiler_pic=
10158 lt_prog_compiler_can_build_shared=no
10159 fi
10160
10161 fi
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173 #
10174 # Check to make sure the static flag actually works.
10175 #
10176 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10177 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10178 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10179 if test ${lt_cv_prog_compiler_static_works+y}
10180 then :
10181 printf %s "(cached) " >&6
10182 else case e in #(
10183 e) lt_cv_prog_compiler_static_works=no
10184 save_LDFLAGS=$LDFLAGS
10185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10186 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10188 # The linker can only warn and ignore the option if not recognized
10189 # So say no if there are warnings
10190 if test -s conftest.err; then
10191 # Append any errors to the config.log.
10192 cat conftest.err 1>&5
10193 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10195 if diff conftest.exp conftest.er2 >/dev/null; then
10196 lt_cv_prog_compiler_static_works=yes
10197 fi
10198 else
10199 lt_cv_prog_compiler_static_works=yes
10200 fi
10201 fi
10202 $RM -r conftest*
10203 LDFLAGS=$save_LDFLAGS
10204 ;;
10205 esac
10206 fi
10207 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10208 printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; }
10209
10210 if test yes = "$lt_cv_prog_compiler_static_works"; then
10211 :
10212 else
10213 lt_prog_compiler_static=
10214 fi
10215
10216
10217
10218
10219
10220
10221
10222 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10223 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10224 if test ${lt_cv_prog_compiler_c_o+y}
10225 then :
10226 printf %s "(cached) " >&6
10227 else case e in #(
10228 e) lt_cv_prog_compiler_c_o=no
10229 $RM -r conftest 2>/dev/null
10230 mkdir conftest
10231 cd conftest
10232 mkdir out
10233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10234
10235 lt_compiler_flag="-o out/conftest2.$ac_objext"
10236 # Insert the option either (1) after the last *FLAGS variable, or
10237 # (2) before a word containing "conftest.", or (3) at the end.
10238 # Note that $ac_compile itself does not contain backslashes and begins
10239 # with a dollar sign (not a hyphen), so the echo should work correctly.
10240 lt_compile=`echo "$ac_compile" | $SED \
10241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10243 -e 's:$: $lt_compiler_flag:'`
10244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10245 (eval "$lt_compile" 2>out/conftest.err)
10246 ac_status=$?
10247 cat out/conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10250 then
10251 # The compiler can only warn and ignore the option if not recognized
10252 # So say no if there are warnings
10253 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10254 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10255 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10256 lt_cv_prog_compiler_c_o=yes
10257 fi
10258 fi
10259 chmod u+w . 2>&5
10260 $RM conftest*
10261 # SGI C++ compiler will create directory out/ii_files/ for
10262 # template instantiation
10263 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10264 $RM out/* && rmdir out
10265 cd ..
10266 $RM -r conftest
10267 $RM conftest*
10268 ;;
10269 esac
10270 fi
10271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10272 printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; }
10273
10274
10275
10276
10277
10278
10279 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10280 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10281 if test ${lt_cv_prog_compiler_c_o+y}
10282 then :
10283 printf %s "(cached) " >&6
10284 else case e in #(
10285 e) lt_cv_prog_compiler_c_o=no
10286 $RM -r conftest 2>/dev/null
10287 mkdir conftest
10288 cd conftest
10289 mkdir out
10290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10291
10292 lt_compiler_flag="-o out/conftest2.$ac_objext"
10293 # Insert the option either (1) after the last *FLAGS variable, or
10294 # (2) before a word containing "conftest.", or (3) at the end.
10295 # Note that $ac_compile itself does not contain backslashes and begins
10296 # with a dollar sign (not a hyphen), so the echo should work correctly.
10297 lt_compile=`echo "$ac_compile" | $SED \
10298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10300 -e 's:$: $lt_compiler_flag:'`
10301 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10302 (eval "$lt_compile" 2>out/conftest.err)
10303 ac_status=$?
10304 cat out/conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10307 then
10308 # The compiler can only warn and ignore the option if not recognized
10309 # So say no if there are warnings
10310 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10311 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10312 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10313 lt_cv_prog_compiler_c_o=yes
10314 fi
10315 fi
10316 chmod u+w . 2>&5
10317 $RM conftest*
10318 # SGI C++ compiler will create directory out/ii_files/ for
10319 # template instantiation
10320 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10321 $RM out/* && rmdir out
10322 cd ..
10323 $RM -r conftest
10324 $RM conftest*
10325 ;;
10326 esac
10327 fi
10328 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10329 printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; }
10330
10331
10332
10333
10334 hard_links=nottested
10335 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10336 # do not overwrite the value of need_locks provided by the user
10337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10338 printf %s "checking if we can lock with hard links... " >&6; }
10339 hard_links=yes
10340 $RM conftest*
10341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10342 touch conftest.a
10343 ln conftest.a conftest.b 2>&5 || hard_links=no
10344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10345 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10346 printf '%s\n' "$hard_links" >&6; }
10347 if test no = "$hard_links"; then
10348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10349 printf '%s\n' "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10350 need_locks=warn
10351 fi
10352 else
10353 need_locks=no
10354 fi
10355
10356
10357
10358
10359
10360
10361 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10362 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10363
10364 runpath_var=
10365 allow_undefined_flag=
10366 always_export_symbols=no
10367 archive_cmds=
10368 archive_expsym_cmds=
10369 compiler_needs_object=no
10370 enable_shared_with_static_runtimes=no
10371 export_dynamic_flag_spec=
10372 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10373 hardcode_automatic=no
10374 hardcode_direct=no
10375 hardcode_direct_absolute=no
10376 hardcode_libdir_flag_spec=
10377 hardcode_libdir_separator=
10378 hardcode_minus_L=no
10379 hardcode_shlibpath_var=unsupported
10380 inherit_rpath=no
10381 link_all_deplibs=unknown
10382 module_cmds=
10383 module_expsym_cmds=
10384 old_archive_from_new_cmds=
10385 old_archive_from_expsyms_cmds=
10386 thread_safe_flag_spec=
10387 whole_archive_flag_spec=
10388 # include_expsyms should be a list of space-separated symbols to be *always*
10389 # included in the symbol list
10390 include_expsyms=
10391 # exclude_expsyms can be an extended regexp of symbols to exclude
10392 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10393 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10394 # as well as any symbol that contains 'd'.
10395 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10396 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10397 # platforms (ab)use it in PIC code, but their linkers get confused if
10398 # the symbol is explicitly referenced. Since portable code cannot
10399 # rely on this symbol name, it's probably fine to never include it in
10400 # preloaded symbol tables.
10401 # Exclude shared library initialization/finalization symbols.
10402 extract_expsyms_cmds=
10403
10404 case $host_os in
10405 cygwin* | mingw* | windows* | pw32* | cegcc*)
10406 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10407 # When not using gcc, we currently assume that we are using
10408 # Microsoft Visual C++ or Intel C++ Compiler.
10409 if test yes != "$GCC"; then
10410 with_gnu_ld=no
10411 fi
10412 ;;
10413 interix*)
10414 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10415 with_gnu_ld=yes
10416 ;;
10417 esac
10418
10419 ld_shlibs=yes
10420
10421 # On some targets, GNU ld is compatible enough with the native linker
10422 # that we're better off using the native interface for both.
10423 lt_use_gnu_ld_interface=no
10424 if test yes = "$with_gnu_ld"; then
10425 case $host_os in
10426 aix*)
10427 # The AIX port of GNU ld has always aspired to compatibility
10428 # with the native linker. However, as the warning in the GNU ld
10429 # block says, versions before 2.19.5* couldn't really create working
10430 # shared libraries, regardless of the interface used.
10431 case `$LD -v 2>&1` in
10432 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10433 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10434 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10435 *)
10436 lt_use_gnu_ld_interface=yes
10437 ;;
10438 esac
10439 ;;
10440 *)
10441 lt_use_gnu_ld_interface=yes
10442 ;;
10443 esac
10444 fi
10445
10446 if test yes = "$lt_use_gnu_ld_interface"; then
10447 # If archive_cmds runs LD, not CC, wlarc should be empty
10448 wlarc='$wl'
10449
10450 # Set some defaults for GNU ld with shared library support. These
10451 # are reset later if shared libraries are not supported. Putting them
10452 # here allows them to be overridden if necessary.
10453 runpath_var=LD_RUN_PATH
10454 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10455 export_dynamic_flag_spec='$wl--export-dynamic'
10456 # ancient GNU ld didn't support --whole-archive et. al.
10457 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10458 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10459 else
10460 whole_archive_flag_spec=
10461 fi
10462 supports_anon_versioning=no
10463 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10464 *GNU\ gold*) supports_anon_versioning=yes ;;
10465 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10466 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10467 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10468 *\ 2.11.*) ;; # other 2.11 versions
10469 *) supports_anon_versioning=yes ;;
10470 esac
10471
10472 # See if GNU ld supports shared libraries.
10473 case $host_os in
10474 aix[3-9]*)
10475 # On AIX/PPC, the GNU linker is very broken
10476 if test ia64 != "$host_cpu"; then
10477 ld_shlibs=no
10478 cat <<_LT_EOF 1>&2
10479
10480 *** Warning: the GNU linker, at least up to release 2.19, is reported
10481 *** to be unable to reliably create shared libraries on AIX.
10482 *** Therefore, libtool is disabling shared libraries support. If you
10483 *** really care for shared libraries, you may want to install binutils
10484 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10485 *** You will then need to restart the configuration process.
10486
10487 _LT_EOF
10488 fi
10489 ;;
10490
10491 amigaos*)
10492 case $host_cpu in
10493 powerpc)
10494 # see comment about AmigaOS4 .so support
10495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10496 archive_expsym_cmds=''
10497 ;;
10498 m68k)
10499 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)'
10500 hardcode_libdir_flag_spec='-L$libdir'
10501 hardcode_minus_L=yes
10502 ;;
10503 esac
10504 ;;
10505
10506 beos*)
10507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10508 allow_undefined_flag=unsupported
10509 # Joseph Beckenbach <[email protected]> says some releases of gcc
10510 # support --undefined. This deserves some investigation. FIXME
10511 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10512 else
10513 ld_shlibs=no
10514 fi
10515 ;;
10516
10517 cygwin* | mingw* | windows* | pw32* | cegcc*)
10518 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10519 # as there is no search path for DLLs.
10520 hardcode_libdir_flag_spec='-L$libdir'
10521 export_dynamic_flag_spec='$wl--export-all-symbols'
10522 allow_undefined_flag=unsupported
10523 always_export_symbols=no
10524 enable_shared_with_static_runtimes=yes
10525 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'
10526 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10527 file_list_spec='@'
10528
10529 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10531 # If the export-symbols file already is a .def file, use it as
10532 # is; otherwise, prepend EXPORTS...
10533 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10534 cp $export_symbols $output_objdir/$soname.def;
10535 else
10536 echo EXPORTS > $output_objdir/$soname.def;
10537 cat $export_symbols >> $output_objdir/$soname.def;
10538 fi~
10539 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10540 else
10541 ld_shlibs=no
10542 fi
10543 ;;
10544
10545 haiku*)
10546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10547 link_all_deplibs=no
10548 ;;
10549
10550 os2*)
10551 hardcode_libdir_flag_spec='-L$libdir'
10552 hardcode_minus_L=yes
10553 allow_undefined_flag=unsupported
10554 shrext_cmds=.dll
10555 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10556 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10557 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10558 $ECHO EXPORTS >> $output_objdir/$libname.def~
10559 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10560 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10561 emximp -o $lib $output_objdir/$libname.def'
10562 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10563 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10564 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10565 $ECHO EXPORTS >> $output_objdir/$libname.def~
10566 prefix_cmds="$SED"~
10567 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10568 prefix_cmds="$prefix_cmds -e 1d";
10569 fi~
10570 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10571 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10572 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10573 emximp -o $lib $output_objdir/$libname.def'
10574 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10575 enable_shared_with_static_runtimes=yes
10576 file_list_spec='@'
10577 ;;
10578
10579 interix[3-9]*)
10580 hardcode_direct=no
10581 hardcode_shlibpath_var=no
10582 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10583 export_dynamic_flag_spec='$wl-E'
10584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10585 # Instead, shared libraries are loaded at an image base (0x10000000 by
10586 # default) and relocated if they conflict, which is a slow very memory
10587 # consuming and fragmenting process. To avoid this, we pick a random,
10588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10591 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'
10592 ;;
10593
10594 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10595 tmp_diet=no
10596 if test linux-dietlibc = "$host_os"; then
10597 case $cc_basename in
10598 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10599 esac
10600 fi
10601 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10602 && test no = "$tmp_diet"
10603 then
10604 tmp_addflag=' $pic_flag'
10605 tmp_sharedflag='-shared'
10606 case $cc_basename,$host_cpu in
10607 pgcc*) # Portland Group C compiler
10608 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'
10609 tmp_addflag=' $pic_flag'
10610 ;;
10611 pgf77* | pgf90* | pgf95* | pgfortran*)
10612 # Portland Group f77 and f90 compilers
10613 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'
10614 tmp_addflag=' $pic_flag -Mnomain' ;;
10615 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10616 tmp_addflag=' -i_dynamic' ;;
10617 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10618 tmp_addflag=' -i_dynamic -nofor_main' ;;
10619 ifc* | ifort*) # Intel Fortran compiler
10620 tmp_addflag=' -nofor_main' ;;
10621 lf95*) # Lahey Fortran 8.1
10622 whole_archive_flag_spec=
10623 tmp_sharedflag='--shared' ;;
10624 nagfor*) # NAGFOR 5.3
10625 tmp_sharedflag='-Wl,-shared' ;;
10626 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10627 tmp_sharedflag='-qmkshrobj'
10628 tmp_addflag= ;;
10629 nvcc*) # Cuda Compiler Driver 2.2
10630 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'
10631 compiler_needs_object=yes
10632 ;;
10633 esac
10634 case `$CC -V 2>&1 | $SED 5q` in
10635 *Sun\ C*) # Sun C 5.9
10636 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'
10637 compiler_needs_object=yes
10638 tmp_sharedflag='-G' ;;
10639 *Sun\ F*) # Sun Fortran 8.3
10640 tmp_sharedflag='-G' ;;
10641 esac
10642 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10643
10644 if test yes = "$supports_anon_versioning"; then
10645 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10646 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10647 echo "local: *; };" >> $output_objdir/$libname.ver~
10648 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10649 fi
10650
10651 case $cc_basename in
10652 tcc*)
10653 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10654 export_dynamic_flag_spec='-rdynamic'
10655 ;;
10656 xlf* | bgf* | bgxlf* | mpixlf*)
10657 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10658 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10659 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10660 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10661 if test yes = "$supports_anon_versioning"; then
10662 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10663 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10664 echo "local: *; };" >> $output_objdir/$libname.ver~
10665 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10666 fi
10667 ;;
10668 esac
10669 else
10670 ld_shlibs=no
10671 fi
10672 ;;
10673
10674 *-mlibc)
10675 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10676 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10677 ;;
10678
10679 netbsd* | netbsdelf*-gnu)
10680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10681 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10682 wlarc=
10683 else
10684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10685 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10686 fi
10687 ;;
10688
10689 solaris*)
10690 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10691 ld_shlibs=no
10692 cat <<_LT_EOF 1>&2
10693
10694 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10695 *** create shared libraries on Solaris systems. Therefore, libtool
10696 *** is disabling shared libraries support. We urge you to upgrade GNU
10697 *** binutils to release 2.9.1 or newer. Another option is to modify
10698 *** your PATH or compiler configuration so that the native linker is
10699 *** used, and then restart.
10700
10701 _LT_EOF
10702 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10703 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10704 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10705 else
10706 ld_shlibs=no
10707 fi
10708 ;;
10709
10710 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10711 case `$LD -v 2>&1` in
10712 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10713 ld_shlibs=no
10714 cat <<_LT_EOF 1>&2
10715
10716 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10717 *** reliably create shared libraries on SCO systems. Therefore, libtool
10718 *** is disabling shared libraries support. We urge you to upgrade GNU
10719 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10720 *** your PATH or compiler configuration so that the native linker is
10721 *** used, and then restart.
10722
10723 _LT_EOF
10724 ;;
10725 *)
10726 # For security reasons, it is highly recommended that you always
10727 # use absolute paths for naming shared libraries, and exclude the
10728 # DT_RUNPATH tag from executables and libraries. But doing so
10729 # requires that you compile everything twice, which is a pain.
10730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10731 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10734 else
10735 ld_shlibs=no
10736 fi
10737 ;;
10738 esac
10739 ;;
10740
10741 sunos4*)
10742 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10743 wlarc=
10744 hardcode_direct=yes
10745 hardcode_shlibpath_var=no
10746 ;;
10747
10748 *)
10749 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10750 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10751 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10752 else
10753 ld_shlibs=no
10754 fi
10755 ;;
10756 esac
10757
10758 if test no = "$ld_shlibs"; then
10759 runpath_var=
10760 hardcode_libdir_flag_spec=
10761 export_dynamic_flag_spec=
10762 whole_archive_flag_spec=
10763 fi
10764 else
10765 # PORTME fill in a description of your system's linker (not GNU ld)
10766 case $host_os in
10767 aix3*)
10768 allow_undefined_flag=unsupported
10769 always_export_symbols=yes
10770 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'
10771 # Note: this linker hardcodes the directories in LIBPATH if there
10772 # are no directories specified by -L.
10773 hardcode_minus_L=yes
10774 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10775 # Neither direct hardcoding nor static linking is supported with a
10776 # broken collect2.
10777 hardcode_direct=unsupported
10778 fi
10779 ;;
10780
10781 aix[4-9]*)
10782 if test ia64 = "$host_cpu"; then
10783 # On IA64, the linker does run time linking by default, so we don't
10784 # have to do anything special.
10785 aix_use_runtimelinking=no
10786 exp_sym_flag='-Bexport'
10787 no_entry_flag=
10788 else
10789 # If we're using GNU nm, then we don't want the "-C" option.
10790 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10791 # Without the "-l" option, or with the "-B" option, AIX nm treats
10792 # weak defined symbols like other global defined symbols, whereas
10793 # GNU nm marks them as "W".
10794 # While the 'weak' keyword is ignored in the Export File, we need
10795 # it in the Import File for the 'aix-soname' feature, so we have
10796 # to replace the "-B" option with "-P" for AIX nm.
10797 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10798 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'
10799 else
10800 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'
10801 fi
10802 aix_use_runtimelinking=no
10803
10804 # Test if we are trying to use run time linking or normal
10805 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10806 # have runtime linking enabled, and use it for executables.
10807 # For shared libraries, we enable/disable runtime linking
10808 # depending on the kind of the shared library created -
10809 # when "with_aix_soname,aix_use_runtimelinking" is:
10810 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10811 # "aix,yes" lib.so shared, rtl:yes, for executables
10812 # lib.a static archive
10813 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10814 # lib.a(lib.so.V) shared, rtl:no, for executables
10815 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10816 # lib.a(lib.so.V) shared, rtl:no
10817 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10818 # lib.a static archive
10819 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10820 for ld_flag in $LDFLAGS; do
10821 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10822 aix_use_runtimelinking=yes
10823 break
10824 fi
10825 done
10826 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10827 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10828 # so we don't have lib.a shared libs to link our executables.
10829 # We have to force runtime linking in this case.
10830 aix_use_runtimelinking=yes
10831 LDFLAGS="$LDFLAGS -Wl,-brtl"
10832 fi
10833 ;;
10834 esac
10835
10836 exp_sym_flag='-bexport'
10837 no_entry_flag='-bnoentry'
10838 fi
10839
10840 # When large executables or shared objects are built, AIX ld can
10841 # have problems creating the table of contents. If linking a library
10842 # or program results in "error TOC overflow" add -mminimal-toc to
10843 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10844 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10845
10846 archive_cmds=''
10847 hardcode_direct=yes
10848 hardcode_direct_absolute=yes
10849 hardcode_libdir_separator=':'
10850 link_all_deplibs=yes
10851 file_list_spec='$wl-f,'
10852 case $with_aix_soname,$aix_use_runtimelinking in
10853 aix,*) ;; # traditional, no import file
10854 svr4,* | *,yes) # use import file
10855 # The Import File defines what to hardcode.
10856 hardcode_direct=no
10857 hardcode_direct_absolute=no
10858 ;;
10859 esac
10860
10861 if test yes = "$GCC"; then
10862 case $host_os in aix4.[012]|aix4.[012].*)
10863 # We only want to do this on AIX 4.2 and lower, the check
10864 # below for broken collect2 doesn't work under 4.3+
10865 collect2name=`$CC -print-prog-name=collect2`
10866 if test -f "$collect2name" &&
10867 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10868 then
10869 # We have reworked collect2
10870 :
10871 else
10872 # We have old collect2
10873 hardcode_direct=unsupported
10874 # It fails to find uninstalled libraries when the uninstalled
10875 # path is not listed in the libpath. Setting hardcode_minus_L
10876 # to unsupported forces relinking
10877 hardcode_minus_L=yes
10878 hardcode_libdir_flag_spec='-L$libdir'
10879 hardcode_libdir_separator=
10880 fi
10881 ;;
10882 esac
10883 shared_flag='-shared'
10884 if test yes = "$aix_use_runtimelinking"; then
10885 shared_flag="$shared_flag "'$wl-G'
10886 fi
10887 # Need to ensure runtime linking is disabled for the traditional
10888 # shared library, or the linker may eventually find shared libraries
10889 # /with/ Import File - we do not want to mix them.
10890 shared_flag_aix='-shared'
10891 shared_flag_svr4='-shared $wl-G'
10892 else
10893 # not using gcc
10894 if test ia64 = "$host_cpu"; then
10895 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10896 # chokes on -Wl,-G. The following line is correct:
10897 shared_flag='-G'
10898 else
10899 if test yes = "$aix_use_runtimelinking"; then
10900 shared_flag='$wl-G'
10901 else
10902 shared_flag='$wl-bM:SRE'
10903 fi
10904 shared_flag_aix='$wl-bM:SRE'
10905 shared_flag_svr4='$wl-G'
10906 fi
10907 fi
10908
10909 export_dynamic_flag_spec='$wl-bexpall'
10910 # It seems that -bexpall does not export symbols beginning with
10911 # underscore (_), so it is better to generate a list of symbols to export.
10912 always_export_symbols=yes
10913 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10914 # Warning - without using the other runtime loading flags (-brtl),
10915 # -berok will link without error, but may produce a broken library.
10916 allow_undefined_flag='-berok'
10917 # Determine the default libpath from the value encoded in an
10918 # empty executable.
10919 if test set = "${lt_cv_aix_libpath+set}"; then
10920 aix_libpath=$lt_cv_aix_libpath
10921 else
10922 if test ${lt_cv_aix_libpath_+y}
10923 then :
10924 printf %s "(cached) " >&6
10925 else case e in #(
10926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10928
10929 int
10930 main (void)
10931 {
10932
10933 ;
10934 return 0;
10935 }
10936 _ACEOF
10937 if ac_fn_c_try_link "$LINENO"
10938 then :
10939
10940 lt_aix_libpath_sed='
10941 /Import File Strings/,/^$/ {
10942 /^0/ {
10943 s/^0 *\([^ ]*\) *$/\1/
10944 p
10945 }
10946 }'
10947 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10948 # Check for a 64-bit object if we didn't find anything.
10949 if test -z "$lt_cv_aix_libpath_"; then
10950 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10951 fi
10952 fi
10953 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10954 conftest$ac_exeext conftest.$ac_ext
10955 if test -z "$lt_cv_aix_libpath_"; then
10956 lt_cv_aix_libpath_=/usr/lib:/lib
10957 fi
10958 ;;
10959 esac
10960 fi
10961
10962 aix_libpath=$lt_cv_aix_libpath_
10963 fi
10964
10965 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10966 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
10967 else
10968 if test ia64 = "$host_cpu"; then
10969 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10970 allow_undefined_flag="-z nodefs"
10971 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"
10972 else
10973 # Determine the default libpath from the value encoded in an
10974 # empty executable.
10975 if test set = "${lt_cv_aix_libpath+set}"; then
10976 aix_libpath=$lt_cv_aix_libpath
10977 else
10978 if test ${lt_cv_aix_libpath_+y}
10979 then :
10980 printf %s "(cached) " >&6
10981 else case e in #(
10982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10984
10985 int
10986 main (void)
10987 {
10988
10989 ;
10990 return 0;
10991 }
10992 _ACEOF
10993 if ac_fn_c_try_link "$LINENO"
10994 then :
10995
10996 lt_aix_libpath_sed='
10997 /Import File Strings/,/^$/ {
10998 /^0/ {
10999 s/^0 *\([^ ]*\) *$/\1/
11000 p
11001 }
11002 }'
11003 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11004 # Check for a 64-bit object if we didn't find anything.
11005 if test -z "$lt_cv_aix_libpath_"; then
11006 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11007 fi
11008 fi
11009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11010 conftest$ac_exeext conftest.$ac_ext
11011 if test -z "$lt_cv_aix_libpath_"; then
11012 lt_cv_aix_libpath_=/usr/lib:/lib
11013 fi
11014 ;;
11015 esac
11016 fi
11017
11018 aix_libpath=$lt_cv_aix_libpath_
11019 fi
11020
11021 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11022 # Warning - without using the other run time loading flags,
11023 # -berok will link without error, but may produce a broken library.
11024 no_undefined_flag=' $wl-bernotok'
11025 allow_undefined_flag=' $wl-berok'
11026 if test yes = "$with_gnu_ld"; then
11027 # We only use this code for GNU lds that support --whole-archive.
11028 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11029 else
11030 # Exported symbols can be pulled into shared objects from archives
11031 whole_archive_flag_spec='$convenience'
11032 fi
11033 archive_cmds_need_lc=yes
11034 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11035 # -brtl affects multiple linker settings, -berok does not and is overridden later
11036 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11037 if test svr4 != "$with_aix_soname"; then
11038 # This is similar to how AIX traditionally builds its shared libraries.
11039 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'
11040 fi
11041 if test aix != "$with_aix_soname"; then
11042 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'
11043 else
11044 # used by -dlpreopen to get the symbols
11045 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11046 fi
11047 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11048 fi
11049 fi
11050 ;;
11051
11052 amigaos*)
11053 case $host_cpu in
11054 powerpc)
11055 # see comment about AmigaOS4 .so support
11056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11057 archive_expsym_cmds=''
11058 ;;
11059 m68k)
11060 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)'
11061 hardcode_libdir_flag_spec='-L$libdir'
11062 hardcode_minus_L=yes
11063 ;;
11064 esac
11065 ;;
11066
11067 bsdi[45]*)
11068 export_dynamic_flag_spec=-rdynamic
11069 ;;
11070
11071 cygwin* | mingw* | windows* | pw32* | cegcc*)
11072 # When not using gcc, we currently assume that we are using
11073 # Microsoft Visual C++ or Intel C++ Compiler.
11074 # hardcode_libdir_flag_spec is actually meaningless, as there is
11075 # no search path for DLLs.
11076 case $cc_basename in
11077 cl* | icl*)
11078 # Native MSVC or ICC
11079 hardcode_libdir_flag_spec=' '
11080 allow_undefined_flag=unsupported
11081 always_export_symbols=yes
11082 file_list_spec='@'
11083 # Tell ltmain to make .lib files, not .a files.
11084 libext=lib
11085 # Tell ltmain to make .dll files, not .so files.
11086 shrext_cmds=.dll
11087 # FIXME: Setting linknames here is a bad hack.
11088 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11089 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11090 cp "$export_symbols" "$output_objdir/$soname.def";
11091 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11092 else
11093 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11094 fi~
11095 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11096 linknames='
11097 # The linker will not automatically build a static lib if we build a DLL.
11098 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11099 enable_shared_with_static_runtimes=yes
11100 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11101 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11102 # Don't use ranlib
11103 old_postinstall_cmds='chmod 644 $oldlib'
11104 postlink_cmds='lt_outputfile="@OUTPUT@"~
11105 lt_tool_outputfile="@TOOL_OUTPUT@"~
11106 case $lt_outputfile in
11107 *.exe|*.EXE) ;;
11108 *)
11109 lt_outputfile=$lt_outputfile.exe
11110 lt_tool_outputfile=$lt_tool_outputfile.exe
11111 ;;
11112 esac~
11113 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11114 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11115 $RM "$lt_outputfile.manifest";
11116 fi'
11117 ;;
11118 *)
11119 # Assume MSVC and ICC wrapper
11120 hardcode_libdir_flag_spec=' '
11121 allow_undefined_flag=unsupported
11122 # Tell ltmain to make .lib files, not .a files.
11123 libext=lib
11124 # Tell ltmain to make .dll files, not .so files.
11125 shrext_cmds=.dll
11126 # FIXME: Setting linknames here is a bad hack.
11127 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11128 # The linker will automatically build a .lib file if we build a DLL.
11129 old_archive_from_new_cmds='true'
11130 # FIXME: Should let the user specify the lib program.
11131 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11132 enable_shared_with_static_runtimes=yes
11133 ;;
11134 esac
11135 ;;
11136
11137 darwin* | rhapsody*)
11138
11139
11140 archive_cmds_need_lc=no
11141 hardcode_direct=no
11142 hardcode_automatic=yes
11143 hardcode_shlibpath_var=unsupported
11144 if test yes = "$lt_cv_ld_force_load"; then
11145 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\"`'
11146
11147 else
11148 whole_archive_flag_spec=''
11149 fi
11150 link_all_deplibs=yes
11151 allow_undefined_flag=$_lt_dar_allow_undefined
11152 case $cc_basename in
11153 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11154 *) _lt_dar_can_shared=$GCC ;;
11155 esac
11156 if test yes = "$_lt_dar_can_shared"; then
11157 output_verbose_link_cmd=func_echo_all
11158 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11159 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11160 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"
11161 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"
11162
11163 else
11164 ld_shlibs=no
11165 fi
11166
11167 ;;
11168
11169 dgux*)
11170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11171 hardcode_libdir_flag_spec='-L$libdir'
11172 hardcode_shlibpath_var=no
11173 ;;
11174
11175 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11176 # support. Future versions do this automatically, but an explicit c++rt0.o
11177 # does not break anything, and helps significantly (at the cost of a little
11178 # extra space).
11179 freebsd2.2*)
11180 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11181 hardcode_libdir_flag_spec='-R$libdir'
11182 hardcode_direct=yes
11183 hardcode_shlibpath_var=no
11184 ;;
11185
11186 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11187 freebsd2.*)
11188 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11189 hardcode_direct=yes
11190 hardcode_minus_L=yes
11191 hardcode_shlibpath_var=no
11192 ;;
11193
11194 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11195 freebsd* | dragonfly* | midnightbsd*)
11196 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11197 hardcode_libdir_flag_spec='-R$libdir'
11198 hardcode_direct=yes
11199 hardcode_shlibpath_var=no
11200 ;;
11201
11202 hpux9*)
11203 if test yes = "$GCC"; then
11204 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'
11205 else
11206 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'
11207 fi
11208 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11209 hardcode_libdir_separator=:
11210 hardcode_direct=yes
11211
11212 # hardcode_minus_L: Not really in the search PATH,
11213 # but as the default location of the library.
11214 hardcode_minus_L=yes
11215 export_dynamic_flag_spec='$wl-E'
11216 ;;
11217
11218 hpux10*)
11219 if test yes,no = "$GCC,$with_gnu_ld"; then
11220 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11221 else
11222 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11223 fi
11224 if test no = "$with_gnu_ld"; then
11225 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11226 hardcode_libdir_separator=:
11227 hardcode_direct=yes
11228 hardcode_direct_absolute=yes
11229 export_dynamic_flag_spec='$wl-E'
11230 # hardcode_minus_L: Not really in the search PATH,
11231 # but as the default location of the library.
11232 hardcode_minus_L=yes
11233 fi
11234 ;;
11235
11236 hpux11*)
11237 if test yes,no = "$GCC,$with_gnu_ld"; then
11238 case $host_cpu in
11239 hppa*64*)
11240 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11241 ;;
11242 ia64*)
11243 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11244 ;;
11245 *)
11246 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11247 ;;
11248 esac
11249 else
11250 case $host_cpu in
11251 hppa*64*)
11252 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11253 ;;
11254 ia64*)
11255 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11256 ;;
11257 *)
11258
11259 # Older versions of the 11.00 compiler do not understand -b yet
11260 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11261 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11262 printf %s "checking if $CC understands -b... " >&6; }
11263 if test ${lt_cv_prog_compiler__b+y}
11264 then :
11265 printf %s "(cached) " >&6
11266 else case e in #(
11267 e) lt_cv_prog_compiler__b=no
11268 save_LDFLAGS=$LDFLAGS
11269 LDFLAGS="$LDFLAGS -b"
11270 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11271 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11272 # The linker can only warn and ignore the option if not recognized
11273 # So say no if there are warnings
11274 if test -s conftest.err; then
11275 # Append any errors to the config.log.
11276 cat conftest.err 1>&5
11277 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11279 if diff conftest.exp conftest.er2 >/dev/null; then
11280 lt_cv_prog_compiler__b=yes
11281 fi
11282 else
11283 lt_cv_prog_compiler__b=yes
11284 fi
11285 fi
11286 $RM -r conftest*
11287 LDFLAGS=$save_LDFLAGS
11288 ;;
11289 esac
11290 fi
11291 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11292 printf '%s\n' "$lt_cv_prog_compiler__b" >&6; }
11293
11294 if test yes = "$lt_cv_prog_compiler__b"; then
11295 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11296 else
11297 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11298 fi
11299
11300 ;;
11301 esac
11302 fi
11303 if test no = "$with_gnu_ld"; then
11304 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11305 hardcode_libdir_separator=:
11306
11307 case $host_cpu in
11308 hppa*64*|ia64*)
11309 hardcode_direct=no
11310 hardcode_shlibpath_var=no
11311 ;;
11312 *)
11313 hardcode_direct=yes
11314 hardcode_direct_absolute=yes
11315 export_dynamic_flag_spec='$wl-E'
11316
11317 # hardcode_minus_L: Not really in the search PATH,
11318 # but as the default location of the library.
11319 hardcode_minus_L=yes
11320 ;;
11321 esac
11322 fi
11323 ;;
11324
11325 irix5* | irix6* | nonstopux*)
11326 if test yes = "$GCC"; then
11327 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'
11328 # Try to use the -exported_symbol ld option, if it does not
11329 # work, assume that -exports_file does not work either and
11330 # implicitly export all symbols.
11331 # This should be the same for all languages, so no per-tag cache variable.
11332 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11333 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11334 if test ${lt_cv_irix_exported_symbol+y}
11335 then :
11336 printf %s "(cached) " >&6
11337 else case e in #(
11338 e) save_LDFLAGS=$LDFLAGS
11339 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h. */
11342 int foo (void) { return 0; }
11343 _ACEOF
11344 if ac_fn_c_try_link "$LINENO"
11345 then :
11346 lt_cv_irix_exported_symbol=yes
11347 else case e in #(
11348 e) lt_cv_irix_exported_symbol=no ;;
11349 esac
11350 fi
11351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11352 conftest$ac_exeext conftest.$ac_ext
11353 LDFLAGS=$save_LDFLAGS ;;
11354 esac
11355 fi
11356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11357 printf '%s\n' "$lt_cv_irix_exported_symbol" >&6; }
11358 if test yes = "$lt_cv_irix_exported_symbol"; then
11359 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'
11360 fi
11361 else
11362 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'
11363 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'
11364 fi
11365 archive_cmds_need_lc='no'
11366 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11367 hardcode_libdir_separator=:
11368 inherit_rpath=yes
11369 link_all_deplibs=yes
11370 ;;
11371
11372 linux*)
11373 case $cc_basename in
11374 tcc*)
11375 # Fabrice Bellard et al's Tiny C Compiler
11376 ld_shlibs=yes
11377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11378 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11379 ;;
11380 esac
11381 ;;
11382
11383 *-mlibc)
11384 ;;
11385
11386 netbsd* | netbsdelf*-gnu)
11387 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11389 else
11390 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11391 fi
11392 hardcode_libdir_flag_spec='-R$libdir'
11393 hardcode_direct=yes
11394 hardcode_shlibpath_var=no
11395 ;;
11396
11397 newsos6)
11398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11399 hardcode_direct=yes
11400 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11401 hardcode_libdir_separator=:
11402 hardcode_shlibpath_var=no
11403 ;;
11404
11405 *nto* | *qnx*)
11406 ;;
11407
11408 openbsd*)
11409 if test -f /usr/libexec/ld.so; then
11410 hardcode_direct=yes
11411 hardcode_shlibpath_var=no
11412 hardcode_direct_absolute=yes
11413 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11415 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11416 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11417 export_dynamic_flag_spec='$wl-E'
11418 else
11419 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11420 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11421 fi
11422 else
11423 ld_shlibs=no
11424 fi
11425 ;;
11426
11427 os2*)
11428 hardcode_libdir_flag_spec='-L$libdir'
11429 hardcode_minus_L=yes
11430 allow_undefined_flag=unsupported
11431 shrext_cmds=.dll
11432 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11433 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11434 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11435 $ECHO EXPORTS >> $output_objdir/$libname.def~
11436 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11437 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11438 emximp -o $lib $output_objdir/$libname.def'
11439 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11440 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11441 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11442 $ECHO EXPORTS >> $output_objdir/$libname.def~
11443 prefix_cmds="$SED"~
11444 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11445 prefix_cmds="$prefix_cmds -e 1d";
11446 fi~
11447 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11448 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11449 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11450 emximp -o $lib $output_objdir/$libname.def'
11451 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11452 enable_shared_with_static_runtimes=yes
11453 file_list_spec='@'
11454 ;;
11455
11456 osf3*)
11457 if test yes = "$GCC"; then
11458 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11459 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'
11460 else
11461 allow_undefined_flag=' -expect_unresolved \*'
11462 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'
11463 fi
11464 archive_cmds_need_lc='no'
11465 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11466 hardcode_libdir_separator=:
11467 ;;
11468
11469 osf4* | osf5*) # as osf3* with the addition of -msym flag
11470 if test yes = "$GCC"; then
11471 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11472 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'
11473 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11474 else
11475 allow_undefined_flag=' -expect_unresolved \*'
11476 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'
11477 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~
11478 $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'
11479
11480 # Both c and cxx compiler support -rpath directly
11481 hardcode_libdir_flag_spec='-rpath $libdir'
11482 fi
11483 archive_cmds_need_lc='no'
11484 hardcode_libdir_separator=:
11485 ;;
11486
11487 serenity*)
11488 ;;
11489
11490 solaris*)
11491 no_undefined_flag=' -z defs'
11492 if test yes = "$GCC"; then
11493 wlarc='$wl'
11494 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11495 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11496 $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'
11497 else
11498 case `$CC -V 2>&1` in
11499 *"Compilers 5.0"*)
11500 wlarc=''
11501 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11502 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11503 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11504 ;;
11505 *)
11506 wlarc='$wl'
11507 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11508 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11509 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11510 ;;
11511 esac
11512 fi
11513 hardcode_libdir_flag_spec='-R$libdir'
11514 hardcode_shlibpath_var=no
11515 case $host_os in
11516 solaris2.[0-5] | solaris2.[0-5].*) ;;
11517 *)
11518 # The compiler driver will combine and reorder linker options,
11519 # but understands '-z linker_flag'. GCC discards it without '$wl',
11520 # but is careful enough not to reorder.
11521 # Supported since Solaris 2.6 (maybe 2.5.1?)
11522 if test yes = "$GCC"; then
11523 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11524 else
11525 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11526 fi
11527 ;;
11528 esac
11529 link_all_deplibs=yes
11530 ;;
11531
11532 sunos4*)
11533 if test sequent = "$host_vendor"; then
11534 # Use $CC to link under sequent, because it throws in some extra .o
11535 # files that make .init and .fini sections work.
11536 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11537 else
11538 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11539 fi
11540 hardcode_libdir_flag_spec='-L$libdir'
11541 hardcode_direct=yes
11542 hardcode_minus_L=yes
11543 hardcode_shlibpath_var=no
11544 ;;
11545
11546 sysv4)
11547 case $host_vendor in
11548 sni)
11549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11550 hardcode_direct=yes # is this really true???
11551 ;;
11552 siemens)
11553 ## LD is ld it makes a PLAMLIB
11554 ## CC just makes a GrossModule.
11555 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11556 reload_cmds='$CC -r -o $output$reload_objs'
11557 hardcode_direct=no
11558 ;;
11559 motorola)
11560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11561 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11562 ;;
11563 esac
11564 runpath_var='LD_RUN_PATH'
11565 hardcode_shlibpath_var=no
11566 ;;
11567
11568 sysv4.3*)
11569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11570 hardcode_shlibpath_var=no
11571 export_dynamic_flag_spec='-Bexport'
11572 ;;
11573
11574 sysv4*MP*)
11575 if test -d /usr/nec; then
11576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11577 hardcode_shlibpath_var=no
11578 runpath_var=LD_RUN_PATH
11579 hardcode_runpath_var=yes
11580 ld_shlibs=yes
11581 fi
11582 ;;
11583
11584 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11585 no_undefined_flag='$wl-z,text'
11586 archive_cmds_need_lc=no
11587 hardcode_shlibpath_var=no
11588 runpath_var='LD_RUN_PATH'
11589
11590 if test yes = "$GCC"; then
11591 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11592 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11593 else
11594 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11595 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11596 fi
11597 ;;
11598
11599 sysv5* | sco3.2v5* | sco5v6*)
11600 # Note: We CANNOT use -z defs as we might desire, because we do not
11601 # link with -lc, and that would cause any symbols used from libc to
11602 # always be unresolved, which means just about no library would
11603 # ever link correctly. If we're not using GNU ld we use -z text
11604 # though, which does catch some bad symbols but isn't as heavy-handed
11605 # as -z defs.
11606 no_undefined_flag='$wl-z,text'
11607 allow_undefined_flag='$wl-z,nodefs'
11608 archive_cmds_need_lc=no
11609 hardcode_shlibpath_var=no
11610 hardcode_libdir_flag_spec='$wl-R,$libdir'
11611 hardcode_libdir_separator=':'
11612 link_all_deplibs=yes
11613 export_dynamic_flag_spec='$wl-Bexport'
11614 runpath_var='LD_RUN_PATH'
11615
11616 if test yes = "$GCC"; then
11617 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11618 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11619 else
11620 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11621 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11622 fi
11623 ;;
11624
11625 uts4*)
11626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11627 hardcode_libdir_flag_spec='-L$libdir'
11628 hardcode_shlibpath_var=no
11629 ;;
11630
11631 *)
11632 ld_shlibs=no
11633 ;;
11634 esac
11635
11636 if test sni = "$host_vendor"; then
11637 case $host in
11638 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11639 export_dynamic_flag_spec='$wl-Blargedynsym'
11640 ;;
11641 esac
11642 fi
11643 fi
11644
11645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11646 printf '%s\n' "$ld_shlibs" >&6; }
11647 test no = "$ld_shlibs" && can_build_shared=no
11648
11649 with_gnu_ld=$with_gnu_ld
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665 #
11666 # Do we need to explicitly link libc?
11667 #
11668 case "x$archive_cmds_need_lc" in
11669 x|xyes)
11670 # Assume -lc should be added
11671 archive_cmds_need_lc=yes
11672
11673 if test yes,yes = "$GCC,$enable_shared"; then
11674 case $archive_cmds in
11675 *'~'*)
11676 # FIXME: we may have to deal with multi-command sequences.
11677 ;;
11678 '$CC '*)
11679 # Test whether the compiler implicitly links with -lc since on some
11680 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11681 # to ld, don't add -lc before -lgcc.
11682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11683 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11684 if test ${lt_cv_archive_cmds_need_lc+y}
11685 then :
11686 printf %s "(cached) " >&6
11687 else case e in #(
11688 e) $RM conftest*
11689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11690
11691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11692 (eval $ac_compile) 2>&5
11693 ac_status=$?
11694 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695 test $ac_status = 0; } 2>conftest.err; then
11696 soname=conftest
11697 lib=conftest
11698 libobjs=conftest.$ac_objext
11699 deplibs=
11700 wl=$lt_prog_compiler_wl
11701 pic_flag=$lt_prog_compiler_pic
11702 compiler_flags=-v
11703 linker_flags=-v
11704 verstring=
11705 output_objdir=.
11706 libname=conftest
11707 lt_save_allow_undefined_flag=$allow_undefined_flag
11708 allow_undefined_flag=
11709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11710 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11711 ac_status=$?
11712 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11713 test $ac_status = 0; }
11714 then
11715 lt_cv_archive_cmds_need_lc=no
11716 else
11717 lt_cv_archive_cmds_need_lc=yes
11718 fi
11719 allow_undefined_flag=$lt_save_allow_undefined_flag
11720 else
11721 cat conftest.err 1>&5
11722 fi
11723 $RM conftest*
11724 ;;
11725 esac
11726 fi
11727 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11728 printf '%s\n' "$lt_cv_archive_cmds_need_lc" >&6; }
11729 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11730 ;;
11731 esac
11732 fi
11733 ;;
11734 esac
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11888 printf %s "checking dynamic linker characteristics... " >&6; }
11889
11890 if test yes = "$GCC"; then
11891 case $host_os in
11892 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11893 *) lt_awk_arg='/^libraries:/' ;;
11894 esac
11895 case $host_os in
11896 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11897 *) lt_sed_strip_eq='s|=/|/|g' ;;
11898 esac
11899 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11900 case $lt_search_path_spec in
11901 *\;*)
11902 # if the path contains ";" then we assume it to be the separator
11903 # otherwise default to the standard path separator (i.e. ":") - it is
11904 # assumed that no part of a normal pathname contains ";" but that should
11905 # okay in the real world where ";" in dirpaths is itself problematic.
11906 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11907 ;;
11908 *)
11909 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11910 ;;
11911 esac
11912 # Ok, now we have the path, separated by spaces, we can step through it
11913 # and add multilib dir if necessary...
11914 lt_tmp_lt_search_path_spec=
11915 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11916 # ...but if some path component already ends with the multilib dir we assume
11917 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11918 case "$lt_multi_os_dir; $lt_search_path_spec " in
11919 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11920 lt_multi_os_dir=
11921 ;;
11922 esac
11923 for lt_sys_path in $lt_search_path_spec; do
11924 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11925 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11926 elif test -n "$lt_multi_os_dir"; then
11927 test -d "$lt_sys_path" && \
11928 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11929 fi
11930 done
11931 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11932 BEGIN {RS = " "; FS = "/|\n";} {
11933 lt_foo = "";
11934 lt_count = 0;
11935 for (lt_i = NF; lt_i > 0; lt_i--) {
11936 if ($lt_i != "" && $lt_i != ".") {
11937 if ($lt_i == "..") {
11938 lt_count++;
11939 } else {
11940 if (lt_count == 0) {
11941 lt_foo = "/" $lt_i lt_foo;
11942 } else {
11943 lt_count--;
11944 }
11945 }
11946 }
11947 }
11948 if (lt_foo != "") { lt_freq[lt_foo]++; }
11949 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11950 }'`
11951 # AWK program above erroneously prepends '/' to C:/dos/paths
11952 # for these hosts.
11953 case $host_os in
11954 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11955 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11956 esac
11957 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11958 else
11959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11960 fi
11961 library_names_spec=
11962 libname_spec='lib$name'
11963 soname_spec=
11964 shrext_cmds=.so
11965 postinstall_cmds=
11966 postuninstall_cmds=
11967 finish_cmds=
11968 finish_eval=
11969 shlibpath_var=
11970 shlibpath_overrides_runpath=unknown
11971 version_type=none
11972 dynamic_linker="$host_os ld.so"
11973 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11974 need_lib_prefix=unknown
11975 hardcode_into_libs=no
11976
11977 # when you set need_version to no, make sure it does not cause -set_version
11978 # flags to be left without arguments
11979 need_version=unknown
11980
11981
11982
11983 case $host_os in
11984 aix3*)
11985 version_type=linux # correct to gnu/linux during the next big refactor
11986 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11987 shlibpath_var=LIBPATH
11988
11989 # AIX 3 has no versioning support, so we append a major version to the name.
11990 soname_spec='$libname$release$shared_ext$major'
11991 ;;
11992
11993 aix[4-9]*)
11994 version_type=linux # correct to gnu/linux during the next big refactor
11995 need_lib_prefix=no
11996 need_version=no
11997 hardcode_into_libs=yes
11998 if test ia64 = "$host_cpu"; then
11999 # AIX 5 supports IA64
12000 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12001 shlibpath_var=LD_LIBRARY_PATH
12002 else
12003 # With GCC up to 2.95.x, collect2 would create an import file
12004 # for dependence libraries. The import file would start with
12005 # the line '#! .'. This would cause the generated library to
12006 # depend on '.', always an invalid library. This was fixed in
12007 # development snapshots of GCC prior to 3.0.
12008 case $host_os in
12009 aix4 | aix4.[01] | aix4.[01].*)
12010 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12011 echo ' yes '
12012 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12013 :
12014 else
12015 can_build_shared=no
12016 fi
12017 ;;
12018 esac
12019 # Using Import Files as archive members, it is possible to support
12020 # filename-based versioning of shared library archives on AIX. While
12021 # this would work for both with and without runtime linking, it will
12022 # prevent static linking of such archives. So we do filename-based
12023 # shared library versioning with .so extension only, which is used
12024 # when both runtime linking and shared linking is enabled.
12025 # Unfortunately, runtime linking may impact performance, so we do
12026 # not want this to be the default eventually. Also, we use the
12027 # versioned .so libs for executables only if there is the -brtl
12028 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12029 # To allow for filename-based versioning support, we need to create
12030 # libNAME.so.V as an archive file, containing:
12031 # *) an Import File, referring to the versioned filename of the
12032 # archive as well as the shared archive member, telling the
12033 # bitwidth (32 or 64) of that shared object, and providing the
12034 # list of exported symbols of that shared object, eventually
12035 # decorated with the 'weak' keyword
12036 # *) the shared object with the F_LOADONLY flag set, to really avoid
12037 # it being seen by the linker.
12038 # At run time we better use the real file rather than another symlink,
12039 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12040
12041 case $with_aix_soname,$aix_use_runtimelinking in
12042 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12043 # soname into executable. Probably we can add versioning support to
12044 # collect2, so additional links can be useful in future.
12045 aix,yes) # traditional libtool
12046 dynamic_linker='AIX unversionable lib.so'
12047 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12048 # instead of lib<name>.a to let people know that these are not
12049 # typical AIX shared libraries.
12050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12051 ;;
12052 aix,no) # traditional AIX only
12053 dynamic_linker='AIX lib.a(lib.so.V)'
12054 # We preserve .a as extension for shared libraries through AIX4.2
12055 # and later when we are not doing run time linking.
12056 library_names_spec='$libname$release.a $libname.a'
12057 soname_spec='$libname$release$shared_ext$major'
12058 ;;
12059 svr4,*) # full svr4 only
12060 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12061 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12062 # We do not specify a path in Import Files, so LIBPATH fires.
12063 shlibpath_overrides_runpath=yes
12064 ;;
12065 *,yes) # both, prefer svr4
12066 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12067 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12068 # unpreferred sharedlib libNAME.a needs extra handling
12069 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"'
12070 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"'
12071 # We do not specify a path in Import Files, so LIBPATH fires.
12072 shlibpath_overrides_runpath=yes
12073 ;;
12074 *,no) # both, prefer aix
12075 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12076 library_names_spec='$libname$release.a $libname.a'
12077 soname_spec='$libname$release$shared_ext$major'
12078 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12079 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)'
12080 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"'
12081 ;;
12082 esac
12083 shlibpath_var=LIBPATH
12084 fi
12085 ;;
12086
12087 amigaos*)
12088 case $host_cpu in
12089 powerpc)
12090 # Since July 2007 AmigaOS4 officially supports .so libraries.
12091 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12093 ;;
12094 m68k)
12095 library_names_spec='$libname.ixlibrary $libname.a'
12096 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12097 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'
12098 ;;
12099 esac
12100 ;;
12101
12102 beos*)
12103 library_names_spec='$libname$shared_ext'
12104 dynamic_linker="$host_os ld.so"
12105 shlibpath_var=LIBRARY_PATH
12106 ;;
12107
12108 bsdi[45]*)
12109 version_type=linux # correct to gnu/linux during the next big refactor
12110 need_version=no
12111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12112 soname_spec='$libname$release$shared_ext$major'
12113 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12114 shlibpath_var=LD_LIBRARY_PATH
12115 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12116 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12117 # the default ld.so.conf also contains /usr/contrib/lib and
12118 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12119 # libtool to hard-code these into programs
12120 ;;
12121
12122 cygwin* | mingw* | windows* | pw32* | cegcc*)
12123 version_type=windows
12124 shrext_cmds=.dll
12125 need_version=no
12126 need_lib_prefix=no
12127
12128 case $GCC,$cc_basename in
12129 yes,*)
12130 # gcc
12131 library_names_spec='$libname.dll.a'
12132 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12133 # If user builds GCC with multilib enabled,
12134 # it should just install on $(libdir)
12135 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12136 if test xyes = x"$multilib"; then
12137 postinstall_cmds='base_file=`basename \$file`~
12138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12139 dldir=$destdir/`dirname \$dlpath`~
12140 $install_prog $dir/$dlname $destdir/$dlname~
12141 chmod a+x $destdir/$dlname~
12142 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12143 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12144 fi'
12145 else
12146 postinstall_cmds='base_file=`basename \$file`~
12147 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12148 dldir=$destdir/`dirname \$dlpath`~
12149 test -d \$dldir || mkdir -p \$dldir~
12150 $install_prog $dir/$dlname \$dldir/$dlname~
12151 chmod a+x \$dldir/$dlname~
12152 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12153 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12154 fi'
12155 fi
12156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12157 dlpath=$dir/\$dldll~
12158 $RM \$dlpath'
12159 shlibpath_overrides_runpath=yes
12160
12161 case $host_os in
12162 cygwin*)
12163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12164 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12165
12166 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12167 ;;
12168 mingw* | windows* | cegcc*)
12169 # MinGW DLLs use traditional 'lib' prefix
12170 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12171 ;;
12172 pw32*)
12173 # pw32 DLLs use 'pw' prefix rather than 'lib'
12174 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12175 ;;
12176 esac
12177 dynamic_linker='Win32 ld.exe'
12178 ;;
12179
12180 *,cl* | *,icl*)
12181 # Native MSVC or ICC
12182 libname_spec='$name'
12183 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12184 library_names_spec='$libname.dll.lib'
12185
12186 case $build_os in
12187 mingw* | windows*)
12188 sys_lib_search_path_spec=
12189 lt_save_ifs=$IFS
12190 IFS=';'
12191 for lt_path in $LIB
12192 do
12193 IFS=$lt_save_ifs
12194 # Let DOS variable expansion print the short 8.3 style file name.
12195 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12196 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12197 done
12198 IFS=$lt_save_ifs
12199 # Convert to MSYS style.
12200 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12201 ;;
12202 cygwin*)
12203 # Convert to unix form, then to dos form, then back to unix form
12204 # but this time dos style (no spaces!) so that the unix form looks
12205 # like /cygdrive/c/PROGRA~1:/cygdr...
12206 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12207 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12208 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12209 ;;
12210 *)
12211 sys_lib_search_path_spec=$LIB
12212 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12213 # It is most probably a Windows format PATH.
12214 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12215 else
12216 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12217 fi
12218 # FIXME: find the short name or the path components, as spaces are
12219 # common. (e.g. "Program Files" -> "PROGRA~1")
12220 ;;
12221 esac
12222
12223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12224 postinstall_cmds='base_file=`basename \$file`~
12225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12226 dldir=$destdir/`dirname \$dlpath`~
12227 test -d \$dldir || mkdir -p \$dldir~
12228 $install_prog $dir/$dlname \$dldir/$dlname'
12229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12230 dlpath=$dir/\$dldll~
12231 $RM \$dlpath'
12232 shlibpath_overrides_runpath=yes
12233 dynamic_linker='Win32 link.exe'
12234 ;;
12235
12236 *)
12237 # Assume MSVC and ICC wrapper
12238 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12239 dynamic_linker='Win32 ld.exe'
12240 ;;
12241 esac
12242 # FIXME: first we should search . and the directory the executable is in
12243 shlibpath_var=PATH
12244 ;;
12245
12246 darwin* | rhapsody*)
12247 dynamic_linker="$host_os dyld"
12248 version_type=darwin
12249 need_lib_prefix=no
12250 need_version=no
12251 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12252 soname_spec='$libname$release$major$shared_ext'
12253 shlibpath_overrides_runpath=yes
12254 shlibpath_var=DYLD_LIBRARY_PATH
12255 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12256
12257 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12259 ;;
12260
12261 dgux*)
12262 version_type=linux # correct to gnu/linux during the next big refactor
12263 need_lib_prefix=no
12264 need_version=no
12265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12266 soname_spec='$libname$release$shared_ext$major'
12267 shlibpath_var=LD_LIBRARY_PATH
12268 ;;
12269
12270 freebsd* | dragonfly* | midnightbsd*)
12271 # DragonFly does not have aout. When/if they implement a new
12272 # versioning mechanism, adjust this.
12273 if test -x /usr/bin/objformat; then
12274 objformat=`/usr/bin/objformat`
12275 else
12276 case $host_os in
12277 freebsd[23].*) objformat=aout ;;
12278 *) objformat=elf ;;
12279 esac
12280 fi
12281 version_type=freebsd-$objformat
12282 case $version_type in
12283 freebsd-elf*)
12284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12285 soname_spec='$libname$release$shared_ext$major'
12286 need_version=no
12287 need_lib_prefix=no
12288 ;;
12289 freebsd-*)
12290 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12291 need_version=yes
12292 ;;
12293 esac
12294 case $host_cpu in
12295 powerpc64)
12296 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12297 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300 int test_pointer_size[sizeof (void *) - 5];
12301
12302 _ACEOF
12303 if ac_fn_c_try_compile "$LINENO"
12304 then :
12305 shlibpath_var=LD_LIBRARY_PATH
12306 else case e in #(
12307 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12308 esac
12309 fi
12310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12311 ;;
12312 *)
12313 shlibpath_var=LD_LIBRARY_PATH
12314 ;;
12315 esac
12316 case $host_os in
12317 freebsd2.*)
12318 shlibpath_overrides_runpath=yes
12319 ;;
12320 freebsd3.[01]* | freebsdelf3.[01]*)
12321 shlibpath_overrides_runpath=yes
12322 hardcode_into_libs=yes
12323 ;;
12324 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12325 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12326 shlibpath_overrides_runpath=no
12327 hardcode_into_libs=yes
12328 ;;
12329 *) # from 4.6 on, and DragonFly
12330 shlibpath_overrides_runpath=yes
12331 hardcode_into_libs=yes
12332 ;;
12333 esac
12334 ;;
12335
12336 haiku*)
12337 version_type=linux # correct to gnu/linux during the next big refactor
12338 need_lib_prefix=no
12339 need_version=no
12340 dynamic_linker="$host_os runtime_loader"
12341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12342 soname_spec='$libname$release$shared_ext$major'
12343 shlibpath_var=LIBRARY_PATH
12344 shlibpath_overrides_runpath=no
12345 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12346 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12347 hardcode_into_libs=no
12348 ;;
12349
12350 hpux9* | hpux10* | hpux11*)
12351 # Give a soname corresponding to the major version so that dld.sl refuses to
12352 # link against other versions.
12353 version_type=sunos
12354 need_lib_prefix=no
12355 need_version=no
12356 case $host_cpu in
12357 ia64*)
12358 shrext_cmds='.so'
12359 hardcode_into_libs=yes
12360 dynamic_linker="$host_os dld.so"
12361 shlibpath_var=LD_LIBRARY_PATH
12362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12364 soname_spec='$libname$release$shared_ext$major'
12365 if test 32 = "$HPUX_IA64_MODE"; then
12366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12367 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12368 else
12369 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12370 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12371 fi
12372 ;;
12373 hppa*64*)
12374 shrext_cmds='.sl'
12375 hardcode_into_libs=yes
12376 dynamic_linker="$host_os dld.sl"
12377 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12380 soname_spec='$libname$release$shared_ext$major'
12381 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12383 ;;
12384 *)
12385 shrext_cmds='.sl'
12386 dynamic_linker="$host_os dld.sl"
12387 shlibpath_var=SHLIB_PATH
12388 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12390 soname_spec='$libname$release$shared_ext$major'
12391 ;;
12392 esac
12393 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12394 postinstall_cmds='chmod 555 $lib'
12395 # or fails outright, so override atomically:
12396 install_override_mode=555
12397 ;;
12398
12399 interix[3-9]*)
12400 version_type=linux # correct to gnu/linux during the next big refactor
12401 need_lib_prefix=no
12402 need_version=no
12403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12404 soname_spec='$libname$release$shared_ext$major'
12405 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12406 shlibpath_var=LD_LIBRARY_PATH
12407 shlibpath_overrides_runpath=no
12408 hardcode_into_libs=yes
12409 ;;
12410
12411 irix5* | irix6* | nonstopux*)
12412 case $host_os in
12413 nonstopux*) version_type=nonstopux ;;
12414 *)
12415 if test yes = "$lt_cv_prog_gnu_ld"; then
12416 version_type=linux # correct to gnu/linux during the next big refactor
12417 else
12418 version_type=irix
12419 fi ;;
12420 esac
12421 need_lib_prefix=no
12422 need_version=no
12423 soname_spec='$libname$release$shared_ext$major'
12424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12425 case $host_os in
12426 irix5* | nonstopux*)
12427 libsuff= shlibsuff=
12428 ;;
12429 *)
12430 case $LD in # libtool.m4 will add one of these switches to LD
12431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12432 libsuff= shlibsuff= libmagic=32-bit;;
12433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12434 libsuff=32 shlibsuff=N32 libmagic=N32;;
12435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12436 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12437 *) libsuff= shlibsuff= libmagic=never-match;;
12438 esac
12439 ;;
12440 esac
12441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12442 shlibpath_overrides_runpath=no
12443 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12444 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12445 hardcode_into_libs=yes
12446 ;;
12447
12448 # No shared lib support for Linux oldld, aout, or coff.
12449 linux*oldld* | linux*aout* | linux*coff*)
12450 dynamic_linker=no
12451 ;;
12452
12453 linux*android*)
12454 version_type=none # Android doesn't support versioned libraries.
12455 need_lib_prefix=no
12456 need_version=no
12457 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12458 soname_spec='$libname$release$shared_ext'
12459 finish_cmds=
12460 shlibpath_var=LD_LIBRARY_PATH
12461 shlibpath_overrides_runpath=yes
12462
12463 # This implies no fast_install, which is unacceptable.
12464 # Some rework will be needed to allow for fast_install
12465 # before this can be enabled.
12466 hardcode_into_libs=yes
12467
12468 dynamic_linker='Android linker'
12469 # -rpath works at least for libraries that are not overridden by
12470 # libraries installed in system locations.
12471 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12472 ;;
12473
12474 # This must be glibc/ELF.
12475 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12476 version_type=linux # correct to gnu/linux during the next big refactor
12477 need_lib_prefix=no
12478 need_version=no
12479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12480 soname_spec='$libname$release$shared_ext$major'
12481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12482 shlibpath_var=LD_LIBRARY_PATH
12483 shlibpath_overrides_runpath=no
12484
12485 # Some binutils ld are patched to set DT_RUNPATH
12486 if test ${lt_cv_shlibpath_overrides_runpath+y}
12487 then :
12488 printf %s "(cached) " >&6
12489 else case e in #(
12490 e) lt_cv_shlibpath_overrides_runpath=no
12491 save_LDFLAGS=$LDFLAGS
12492 save_libdir=$libdir
12493 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12494 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12497
12498 int
12499 main (void)
12500 {
12501
12502 ;
12503 return 0;
12504 }
12505 _ACEOF
12506 if ac_fn_c_try_link "$LINENO"
12507 then :
12508 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12509 then :
12510 lt_cv_shlibpath_overrides_runpath=yes
12511 fi
12512 fi
12513 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12514 conftest$ac_exeext conftest.$ac_ext
12515 LDFLAGS=$save_LDFLAGS
12516 libdir=$save_libdir
12517 ;;
12518 esac
12519 fi
12520
12521 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12522
12523 # This implies no fast_install, which is unacceptable.
12524 # Some rework will be needed to allow for fast_install
12525 # before this can be enabled.
12526 hardcode_into_libs=yes
12527
12528 # Ideally, we could use ldconfig to report *all* directories which are
12529 # searched for libraries, however this is still not possible. Aside from not
12530 # being certain /sbin/ldconfig is available, command
12531 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12532 # even though it is searched at run-time. Try to do the best guess by
12533 # appending ld.so.conf contents (and includes) to the search path.
12534 if test -f /etc/ld.so.conf; then
12535 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' ' '`
12536 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12537 fi
12538
12539 # We used to test for /lib/ld.so.1 and disable shared libraries on
12540 # powerpc, because MkLinux only supported shared libraries with the
12541 # GNU dynamic linker. Since this was broken with cross compilers,
12542 # most powerpc-linux boxes support dynamic linking these days and
12543 # people can always --disable-shared, the test was removed, and we
12544 # assume the GNU/Linux dynamic linker is in use.
12545 dynamic_linker='GNU/Linux ld.so'
12546 ;;
12547
12548 netbsdelf*-gnu)
12549 version_type=linux
12550 need_lib_prefix=no
12551 need_version=no
12552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12553 soname_spec='$libname$release$shared_ext$major'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 shlibpath_overrides_runpath=no
12556 hardcode_into_libs=yes
12557 dynamic_linker='NetBSD ld.elf_so'
12558 ;;
12559
12560 netbsd*)
12561 version_type=sunos
12562 need_lib_prefix=no
12563 need_version=no
12564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12565 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12567 dynamic_linker='NetBSD (a.out) ld.so'
12568 else
12569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12570 soname_spec='$libname$release$shared_ext$major'
12571 dynamic_linker='NetBSD ld.elf_so'
12572 fi
12573 shlibpath_var=LD_LIBRARY_PATH
12574 shlibpath_overrides_runpath=yes
12575 hardcode_into_libs=yes
12576 ;;
12577
12578 *-mlibc)
12579 version_type=linux # correct to gnu/linux during the next big refactor
12580 need_lib_prefix=no
12581 need_version=no
12582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12583 soname_spec='$libname$release$shared_ext$major'
12584 dynamic_linker='mlibc ld.so'
12585 shlibpath_var=LD_LIBRARY_PATH
12586 shlibpath_overrides_runpath=no
12587 hardcode_into_libs=yes
12588 ;;
12589
12590 newsos6)
12591 version_type=linux # correct to gnu/linux during the next big refactor
12592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12593 shlibpath_var=LD_LIBRARY_PATH
12594 shlibpath_overrides_runpath=yes
12595 ;;
12596
12597 *nto* | *qnx*)
12598 version_type=qnx
12599 need_lib_prefix=no
12600 need_version=no
12601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12602 soname_spec='$libname$release$shared_ext$major'
12603 shlibpath_var=LD_LIBRARY_PATH
12604 shlibpath_overrides_runpath=no
12605 hardcode_into_libs=yes
12606 dynamic_linker='ldqnx.so'
12607 ;;
12608
12609 openbsd*)
12610 version_type=sunos
12611 sys_lib_dlsearch_path_spec=/usr/lib
12612 need_lib_prefix=no
12613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12614 need_version=no
12615 else
12616 need_version=yes
12617 fi
12618 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12620 shlibpath_var=LD_LIBRARY_PATH
12621 shlibpath_overrides_runpath=yes
12622 ;;
12623
12624 os2*)
12625 libname_spec='$name'
12626 version_type=windows
12627 shrext_cmds=.dll
12628 need_version=no
12629 need_lib_prefix=no
12630 # OS/2 can only load a DLL with a base name of 8 characters or less.
12631 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12632 v=$($ECHO $release$versuffix | tr -d .-);
12633 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12634 $ECHO $n$v`$shared_ext'
12635 library_names_spec='${libname}_dll.$libext'
12636 dynamic_linker='OS/2 ld.exe'
12637 shlibpath_var=BEGINLIBPATH
12638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12640 postinstall_cmds='base_file=`basename \$file`~
12641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12642 dldir=$destdir/`dirname \$dlpath`~
12643 test -d \$dldir || mkdir -p \$dldir~
12644 $install_prog $dir/$dlname \$dldir/$dlname~
12645 chmod a+x \$dldir/$dlname~
12646 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12647 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12648 fi'
12649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12650 dlpath=$dir/\$dldll~
12651 $RM \$dlpath'
12652 ;;
12653
12654 osf3* | osf4* | osf5*)
12655 version_type=osf
12656 need_lib_prefix=no
12657 need_version=no
12658 soname_spec='$libname$release$shared_ext$major'
12659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12660 shlibpath_var=LD_LIBRARY_PATH
12661 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12663 ;;
12664
12665 rdos*)
12666 dynamic_linker=no
12667 ;;
12668
12669 serenity*)
12670 version_type=linux # correct to gnu/linux during the next big refactor
12671 need_lib_prefix=no
12672 need_version=no
12673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12674 soname_spec='$libname$release$shared_ext$major'
12675 shlibpath_var=LD_LIBRARY_PATH
12676 shlibpath_overrides_runpath=no
12677 dynamic_linker='SerenityOS LibELF'
12678 ;;
12679
12680 solaris*)
12681 version_type=linux # correct to gnu/linux during the next big refactor
12682 need_lib_prefix=no
12683 need_version=no
12684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12685 soname_spec='$libname$release$shared_ext$major'
12686 shlibpath_var=LD_LIBRARY_PATH
12687 shlibpath_overrides_runpath=yes
12688 hardcode_into_libs=yes
12689 # ldd complains unless libraries are executable
12690 postinstall_cmds='chmod +x $lib'
12691 ;;
12692
12693 sunos4*)
12694 version_type=sunos
12695 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12696 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12697 shlibpath_var=LD_LIBRARY_PATH
12698 shlibpath_overrides_runpath=yes
12699 if test yes = "$with_gnu_ld"; then
12700 need_lib_prefix=no
12701 fi
12702 need_version=yes
12703 ;;
12704
12705 sysv4 | sysv4.3*)
12706 version_type=linux # correct to gnu/linux during the next big refactor
12707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12708 soname_spec='$libname$release$shared_ext$major'
12709 shlibpath_var=LD_LIBRARY_PATH
12710 case $host_vendor in
12711 sni)
12712 shlibpath_overrides_runpath=no
12713 need_lib_prefix=no
12714 runpath_var=LD_RUN_PATH
12715 ;;
12716 siemens)
12717 need_lib_prefix=no
12718 ;;
12719 motorola)
12720 need_lib_prefix=no
12721 need_version=no
12722 shlibpath_overrides_runpath=no
12723 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12724 ;;
12725 esac
12726 ;;
12727
12728 sysv4*MP*)
12729 if test -d /usr/nec; then
12730 version_type=linux # correct to gnu/linux during the next big refactor
12731 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12732 soname_spec='$libname$shared_ext.$major'
12733 shlibpath_var=LD_LIBRARY_PATH
12734 fi
12735 ;;
12736
12737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12738 version_type=sco
12739 need_lib_prefix=no
12740 need_version=no
12741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12742 soname_spec='$libname$release$shared_ext$major'
12743 shlibpath_var=LD_LIBRARY_PATH
12744 shlibpath_overrides_runpath=yes
12745 hardcode_into_libs=yes
12746 if test yes = "$with_gnu_ld"; then
12747 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12748 else
12749 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12750 case $host_os in
12751 sco3.2v5*)
12752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12753 ;;
12754 esac
12755 fi
12756 sys_lib_dlsearch_path_spec='/usr/lib'
12757 ;;
12758
12759 tpf*)
12760 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12761 version_type=linux # correct to gnu/linux during the next big refactor
12762 need_lib_prefix=no
12763 need_version=no
12764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12765 shlibpath_var=LD_LIBRARY_PATH
12766 shlibpath_overrides_runpath=no
12767 hardcode_into_libs=yes
12768 ;;
12769
12770 uts4*)
12771 version_type=linux # correct to gnu/linux during the next big refactor
12772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12773 soname_spec='$libname$release$shared_ext$major'
12774 shlibpath_var=LD_LIBRARY_PATH
12775 ;;
12776
12777 emscripten*)
12778 version_type=none
12779 need_lib_prefix=no
12780 need_version=no
12781 library_names_spec='$libname$release$shared_ext'
12782 soname_spec='$libname$release$shared_ext'
12783 finish_cmds=
12784 dynamic_linker="Emscripten linker"
12785 lt_prog_compiler_wl=
12786 lt_prog_compiler_pic=
12787 lt_prog_compiler_static=
12788
12789
12790 if test yes = "$GCC"; then
12791 lt_prog_compiler_wl='-Wl,'
12792 lt_prog_compiler_static='-static'
12793
12794 case $host_os in
12795 aix*)
12796 # All AIX code is PIC.
12797 if test ia64 = "$host_cpu"; then
12798 # AIX 5 now supports IA64 processor
12799 lt_prog_compiler_static='-Bstatic'
12800 fi
12801 lt_prog_compiler_pic='-fPIC'
12802 ;;
12803
12804 amigaos*)
12805 case $host_cpu in
12806 powerpc)
12807 # see comment about AmigaOS4 .so support
12808 lt_prog_compiler_pic='-fPIC'
12809 ;;
12810 m68k)
12811 # FIXME: we need at least 68020 code to build shared libraries, but
12812 # adding the '-m68020' flag to GCC prevents building anything better,
12813 # like '-m68040'.
12814 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12815 ;;
12816 esac
12817 ;;
12818
12819 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12820 # PIC is the default for these OSes.
12821 ;;
12822
12823 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12824 # This hack is so that the source file can tell whether it is being
12825 # built for inclusion in a dll (and should export symbols for example).
12826 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12827 # (--disable-auto-import) libraries
12828 lt_prog_compiler_pic='-DDLL_EXPORT'
12829 case $host_os in
12830 os2*)
12831 lt_prog_compiler_static='$wl-static'
12832 ;;
12833 esac
12834 ;;
12835
12836 darwin* | rhapsody*)
12837 # PIC is the default on this platform
12838 # Common symbols not allowed in MH_DYLIB files
12839 lt_prog_compiler_pic='-fno-common'
12840 ;;
12841
12842 haiku*)
12843 # PIC is the default for Haiku.
12844 # The "-static" flag exists, but is broken.
12845 lt_prog_compiler_static=
12846 ;;
12847
12848 hpux*)
12849 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12850 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12851 # sets the default TLS model and affects inlining.
12852 case $host_cpu in
12853 hppa*64*)
12854 # +Z the default
12855 ;;
12856 *)
12857 lt_prog_compiler_pic='-fPIC'
12858 ;;
12859 esac
12860 ;;
12861
12862 interix[3-9]*)
12863 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12864 # Instead, we relocate shared libraries at runtime.
12865 ;;
12866
12867 msdosdjgpp*)
12868 # Just because we use GCC doesn't mean we suddenly get shared libraries
12869 # on systems that don't support them.
12870 lt_prog_compiler_can_build_shared=no
12871 enable_shared=no
12872 ;;
12873
12874 *nto* | *qnx*)
12875 # QNX uses GNU C++, but need to define -shared option too, otherwise
12876 # it will coredump.
12877 lt_prog_compiler_pic='-fPIC -shared'
12878 ;;
12879
12880 sysv4*MP*)
12881 if test -d /usr/nec; then
12882 lt_prog_compiler_pic=-Kconform_pic
12883 fi
12884 ;;
12885
12886 *)
12887 lt_prog_compiler_pic='-fPIC'
12888 ;;
12889 esac
12890
12891 case $cc_basename in
12892 nvcc*) # Cuda Compiler Driver 2.2
12893 lt_prog_compiler_wl='-Xlinker '
12894 if test -n "$lt_prog_compiler_pic"; then
12895 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12896 fi
12897 ;;
12898 esac
12899 else
12900 # PORTME Check for flag to pass linker flags through the system compiler.
12901 case $host_os in
12902 aix*)
12903 lt_prog_compiler_wl='-Wl,'
12904 if test ia64 = "$host_cpu"; then
12905 # AIX 5 now supports IA64 processor
12906 lt_prog_compiler_static='-Bstatic'
12907 else
12908 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12909 fi
12910 ;;
12911
12912 darwin* | rhapsody*)
12913 # PIC is the default on this platform
12914 # Common symbols not allowed in MH_DYLIB files
12915 lt_prog_compiler_pic='-fno-common'
12916 case $cc_basename in
12917 nagfor*)
12918 # NAG Fortran compiler
12919 lt_prog_compiler_wl='-Wl,-Wl,,'
12920 lt_prog_compiler_pic='-PIC'
12921 lt_prog_compiler_static='-Bstatic'
12922 ;;
12923 esac
12924 ;;
12925
12926 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12927 # This hack is so that the source file can tell whether it is being
12928 # built for inclusion in a dll (and should export symbols for example).
12929 lt_prog_compiler_pic='-DDLL_EXPORT'
12930 case $host_os in
12931 os2*)
12932 lt_prog_compiler_static='$wl-static'
12933 ;;
12934 esac
12935 ;;
12936
12937 hpux9* | hpux10* | hpux11*)
12938 lt_prog_compiler_wl='-Wl,'
12939 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12940 # not for PA HP-UX.
12941 case $host_cpu in
12942 hppa*64*|ia64*)
12943 # +Z the default
12944 ;;
12945 *)
12946 lt_prog_compiler_pic='+Z'
12947 ;;
12948 esac
12949 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12950 lt_prog_compiler_static='$wl-a ${wl}archive'
12951 ;;
12952
12953 irix5* | irix6* | nonstopux*)
12954 lt_prog_compiler_wl='-Wl,'
12955 # PIC (with -KPIC) is the default.
12956 lt_prog_compiler_static='-non_shared'
12957 ;;
12958
12959 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12960 case $cc_basename in
12961 # old Intel for x86_64, which still supported -KPIC.
12962 ecc*)
12963 lt_prog_compiler_wl='-Wl,'
12964 lt_prog_compiler_pic='-KPIC'
12965 lt_prog_compiler_static='-static'
12966 ;;
12967 *flang* | ftn | f18* | f95*)
12968 # Flang compiler.
12969 lt_prog_compiler_wl='-Wl,'
12970 lt_prog_compiler_pic='-fPIC'
12971 lt_prog_compiler_static='-static'
12972 ;;
12973 # icc used to be incompatible with GCC.
12974 # ICC 10 doesn't accept -KPIC any more.
12975 icc* | ifort*)
12976 lt_prog_compiler_wl='-Wl,'
12977 lt_prog_compiler_pic='-fPIC'
12978 lt_prog_compiler_static='-static'
12979 ;;
12980 # Lahey Fortran 8.1.
12981 lf95*)
12982 lt_prog_compiler_wl='-Wl,'
12983 lt_prog_compiler_pic='--shared'
12984 lt_prog_compiler_static='--static'
12985 ;;
12986 nagfor*)
12987 # NAG Fortran compiler
12988 lt_prog_compiler_wl='-Wl,-Wl,,'
12989 lt_prog_compiler_pic='-PIC'
12990 lt_prog_compiler_static='-Bstatic'
12991 ;;
12992 tcc*)
12993 # Fabrice Bellard et al's Tiny C Compiler
12994 lt_prog_compiler_wl='-Wl,'
12995 lt_prog_compiler_pic='-fPIC'
12996 lt_prog_compiler_static='-static'
12997 ;;
12998 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12999 # Portland Group compilers (*not* the Pentium gcc compiler,
13000 # which looks to be a dead project)
13001 lt_prog_compiler_wl='-Wl,'
13002 lt_prog_compiler_pic='-fpic'
13003 lt_prog_compiler_static='-Bstatic'
13004 ;;
13005 ccc*)
13006 lt_prog_compiler_wl='-Wl,'
13007 # All Alpha code is PIC.
13008 lt_prog_compiler_static='-non_shared'
13009 ;;
13010 xl* | bgxl* | bgf* | mpixl*)
13011 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13012 lt_prog_compiler_wl='-Wl,'
13013 lt_prog_compiler_pic='-qpic'
13014 lt_prog_compiler_static='-qstaticlink'
13015 ;;
13016 *)
13017 case `$CC -V 2>&1 | $SED 5q` in
13018 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13019 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13020 lt_prog_compiler_pic='-KPIC'
13021 lt_prog_compiler_static='-Bstatic'
13022 lt_prog_compiler_wl=''
13023 ;;
13024 *Sun\ F* | *Sun*Fortran*)
13025 lt_prog_compiler_pic='-KPIC'
13026 lt_prog_compiler_static='-Bstatic'
13027 lt_prog_compiler_wl='-Qoption ld '
13028 ;;
13029 *Sun\ C*)
13030 # Sun C 5.9
13031 lt_prog_compiler_pic='-KPIC'
13032 lt_prog_compiler_static='-Bstatic'
13033 lt_prog_compiler_wl='-Wl,'
13034 ;;
13035 *Intel*\ [CF]*Compiler*)
13036 lt_prog_compiler_wl='-Wl,'
13037 lt_prog_compiler_pic='-fPIC'
13038 lt_prog_compiler_static='-static'
13039 ;;
13040 *Portland\ Group*)
13041 lt_prog_compiler_wl='-Wl,'
13042 lt_prog_compiler_pic='-fpic'
13043 lt_prog_compiler_static='-Bstatic'
13044 ;;
13045 esac
13046 ;;
13047 esac
13048 ;;
13049
13050 newsos6)
13051 lt_prog_compiler_pic='-KPIC'
13052 lt_prog_compiler_static='-Bstatic'
13053 ;;
13054
13055 *-mlibc)
13056 lt_prog_compiler_wl='-Wl,'
13057 lt_prog_compiler_pic='-fPIC'
13058 lt_prog_compiler_static='-static'
13059 ;;
13060
13061 *nto* | *qnx*)
13062 # QNX uses GNU C++, but need to define -shared option too, otherwise
13063 # it will coredump.
13064 lt_prog_compiler_pic='-fPIC -shared'
13065 ;;
13066
13067 osf3* | osf4* | osf5*)
13068 lt_prog_compiler_wl='-Wl,'
13069 # All OSF/1 code is PIC.
13070 lt_prog_compiler_static='-non_shared'
13071 ;;
13072
13073 rdos*)
13074 lt_prog_compiler_static='-non_shared'
13075 ;;
13076
13077 serenity*)
13078 ;;
13079
13080 solaris*)
13081 lt_prog_compiler_pic='-KPIC'
13082 lt_prog_compiler_static='-Bstatic'
13083 case $cc_basename in
13084 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13085 lt_prog_compiler_wl='-Qoption ld ';;
13086 *)
13087 lt_prog_compiler_wl='-Wl,';;
13088 esac
13089 ;;
13090
13091 sunos4*)
13092 lt_prog_compiler_wl='-Qoption ld '
13093 lt_prog_compiler_pic='-PIC'
13094 lt_prog_compiler_static='-Bstatic'
13095 ;;
13096
13097 sysv4 | sysv4.2uw2* | sysv4.3*)
13098 lt_prog_compiler_wl='-Wl,'
13099 lt_prog_compiler_pic='-KPIC'
13100 lt_prog_compiler_static='-Bstatic'
13101 ;;
13102
13103 sysv4*MP*)
13104 if test -d /usr/nec; then
13105 lt_prog_compiler_pic='-Kconform_pic'
13106 lt_prog_compiler_static='-Bstatic'
13107 fi
13108 ;;
13109
13110 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13111 lt_prog_compiler_wl='-Wl,'
13112 lt_prog_compiler_pic='-KPIC'
13113 lt_prog_compiler_static='-Bstatic'
13114 ;;
13115
13116 unicos*)
13117 lt_prog_compiler_wl='-Wl,'
13118 lt_prog_compiler_can_build_shared=no
13119 ;;
13120
13121 uts4*)
13122 lt_prog_compiler_pic='-pic'
13123 lt_prog_compiler_static='-Bstatic'
13124 ;;
13125
13126 *)
13127 lt_prog_compiler_can_build_shared=no
13128 ;;
13129 esac
13130 fi
13131
13132 case $host_os in
13133 # For platforms that do not support PIC, -DPIC is meaningless:
13134 *djgpp*)
13135 lt_prog_compiler_pic=
13136 ;;
13137 *)
13138 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13139 ;;
13140 esac
13141
13142 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13143 printf %s "checking for $compiler option to produce PIC... " >&6; }
13144 if test ${lt_cv_prog_compiler_pic+y}
13145 then :
13146 printf %s "(cached) " >&6
13147 else case e in #(
13148 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13149 esac
13150 fi
13151 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13152 printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; }
13153 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13154
13155 #
13156 # Check to make sure the PIC flag actually works.
13157 #
13158 if test -n "$lt_prog_compiler_pic"; then
13159 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13160 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13161 if test ${lt_cv_prog_compiler_pic_works+y}
13162 then :
13163 printf %s "(cached) " >&6
13164 else case e in #(
13165 e) lt_cv_prog_compiler_pic_works=no
13166 ac_outfile=conftest.$ac_objext
13167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13168 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13169 # Insert the option either (1) after the last *FLAGS variable, or
13170 # (2) before a word containing "conftest.", or (3) at the end.
13171 # Note that $ac_compile itself does not contain backslashes and begins
13172 # with a dollar sign (not a hyphen), so the echo should work correctly.
13173 # The option is referenced via a variable to avoid confusing sed.
13174 lt_compile=`echo "$ac_compile" | $SED \
13175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13177 -e 's:$: $lt_compiler_flag:'`
13178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13179 (eval "$lt_compile" 2>conftest.err)
13180 ac_status=$?
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 if (exit $ac_status) && test -s "$ac_outfile"; then
13184 # The compiler can only warn and ignore the option if not recognized
13185 # So say no if there are warnings other than the usual output.
13186 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13188 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13189 lt_cv_prog_compiler_pic_works=yes
13190 fi
13191 fi
13192 $RM conftest*
13193 ;;
13194 esac
13195 fi
13196 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13197 printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; }
13198
13199 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13200 case $lt_prog_compiler_pic in
13201 "" | " "*) ;;
13202 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13203 esac
13204 else
13205 lt_prog_compiler_pic=
13206 lt_prog_compiler_can_build_shared=no
13207 fi
13208
13209 fi
13210
13211
13212
13213
13214
13215 #
13216 # Check to make sure the static flag actually works.
13217 #
13218 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13219 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13220 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13221 if test ${lt_cv_prog_compiler_static_works+y}
13222 then :
13223 printf %s "(cached) " >&6
13224 else case e in #(
13225 e) lt_cv_prog_compiler_static_works=no
13226 save_LDFLAGS=$LDFLAGS
13227 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13228 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13230 # The linker can only warn and ignore the option if not recognized
13231 # So say no if there are warnings
13232 if test -s conftest.err; then
13233 # Append any errors to the config.log.
13234 cat conftest.err 1>&5
13235 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13237 if diff conftest.exp conftest.er2 >/dev/null; then
13238 lt_cv_prog_compiler_static_works=yes
13239 fi
13240 else
13241 lt_cv_prog_compiler_static_works=yes
13242 fi
13243 fi
13244 $RM -r conftest*
13245 LDFLAGS=$save_LDFLAGS
13246 ;;
13247 esac
13248 fi
13249 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13250 printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; }
13251
13252 if test yes = "$lt_cv_prog_compiler_static_works"; then
13253 :
13254 else
13255 lt_prog_compiler_static=
13256 fi
13257
13258
13259
13260 ='-fPIC'
13261 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13262 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'
13263 archive_cmds_need_lc=no
13264 no_undefined_flag=
13265 ;;
13266
13267 *)
13268 dynamic_linker=no
13269 ;;
13270 esac
13271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13272 printf '%s\n' "$dynamic_linker" >&6; }
13273 test no = "$dynamic_linker" && can_build_shared=no
13274
13275 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13276 if test yes = "$GCC"; then
13277 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13278 fi
13279
13280 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13281 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13282 fi
13283
13284 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13285 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13286 fi
13287
13288 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13289 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13290
13291 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13292 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13293
13294 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13295 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13394 printf %s "checking how to hardcode library paths into programs... " >&6; }
13395 hardcode_action=
13396 if test -n "$hardcode_libdir_flag_spec" ||
13397 test -n "$runpath_var" ||
13398 test yes = "$hardcode_automatic"; then
13399
13400 # We can hardcode non-existent directories.
13401 if test no != "$hardcode_direct" &&
13402 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13403 # have to relink, otherwise we might link with an installed library
13404 # when we should be linking with a yet-to-be-installed one
13405 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13406 test no != "$hardcode_minus_L"; then
13407 # Linking always hardcodes the temporary library directory.
13408 hardcode_action=relink
13409 else
13410 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13411 hardcode_action=immediate
13412 fi
13413 else
13414 # We cannot hardcode anything, or else we can only hardcode existing
13415 # directories.
13416 hardcode_action=unsupported
13417 fi
13418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13419 printf '%s\n' "$hardcode_action" >&6; }
13420
13421 if test relink = "$hardcode_action" ||
13422 test yes = "$inherit_rpath"; then
13423 # Fast installation is not supported
13424 enable_fast_install=no
13425 elif test yes = "$shlibpath_overrides_runpath" ||
13426 test no = "$enable_shared"; then
13427 # Fast installation is not necessary
13428 enable_fast_install=needless
13429 fi
13430
13431
13432
13433
13434
13435
13436 if test yes != "$enable_dlopen"; then
13437 enable_dlopen=unknown
13438 enable_dlopen_self=unknown
13439 enable_dlopen_self_static=unknown
13440 else
13441 lt_cv_dlopen=no
13442 lt_cv_dlopen_libs=
13443
13444 case $host_os in
13445 beos*)
13446 lt_cv_dlopen=load_add_on
13447 lt_cv_dlopen_libs=
13448 lt_cv_dlopen_self=yes
13449 ;;
13450
13451 mingw* | windows* | pw32* | cegcc*)
13452 lt_cv_dlopen=LoadLibrary
13453 lt_cv_dlopen_libs=
13454 ;;
13455
13456 cygwin*)
13457 lt_cv_dlopen=dlopen
13458 lt_cv_dlopen_libs=
13459 ;;
13460
13461 darwin*)
13462 # if libdl is installed we need to link against it
13463 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13464 printf %s "checking for dlopen in -ldl... " >&6; }
13465 if test ${ac_cv_lib_dl_dlopen+y}
13466 then :
13467 printf %s "(cached) " >&6
13468 else case e in #(
13469 e) ac_check_lib_save_LIBS=$LIBS
13470 LIBS="-ldl $LIBS"
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h. */
13473
13474 /* Override any GCC internal prototype to avoid an error.
13475 Use char because int might match the return type of a GCC
13476 builtin and then its argument prototype would still apply.
13477 The 'extern "C"' is for builds by C++ compilers;
13478 although this is not generally supported in C code supporting it here
13479 has little cost and some practical benefit (sr 110532). */
13480 #ifdef __cplusplus
13481 extern "C"
13482 #endif
13483 char dlopen (void);
13484 int
13485 main (void)
13486 {
13487 return dlopen ();
13488 ;
13489 return 0;
13490 }
13491 _ACEOF
13492 if ac_fn_c_try_link "$LINENO"
13493 then :
13494 ac_cv_lib_dl_dlopen=yes
13495 else case e in #(
13496 e) ac_cv_lib_dl_dlopen=no ;;
13497 esac
13498 fi
13499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13500 conftest$ac_exeext conftest.$ac_ext
13501 LIBS=$ac_check_lib_save_LIBS ;;
13502 esac
13503 fi
13504 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13505 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
13506 if test "x$ac_cv_lib_dl_dlopen" = xyes
13507 then :
13508 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13509 else case e in #(
13510 e)
13511 lt_cv_dlopen=dyld
13512 lt_cv_dlopen_libs=
13513 lt_cv_dlopen_self=yes
13514 ;;
13515 esac
13516 fi
13517
13518 ;;
13519
13520 tpf*)
13521 # Don't try to run any link tests for TPF. We know it's impossible
13522 # because TPF is a cross-compiler, and we know how we open DSOs.
13523 lt_cv_dlopen=dlopen
13524 lt_cv_dlopen_libs=
13525 lt_cv_dlopen_self=no
13526 ;;
13527
13528 *)
13529 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13530 if test "x$ac_cv_func_shl_load" = xyes
13531 then :
13532 lt_cv_dlopen=shl_load
13533 else case e in #(
13534 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13535 printf %s "checking for shl_load in -ldld... " >&6; }
13536 if test ${ac_cv_lib_dld_shl_load+y}
13537 then :
13538 printf %s "(cached) " >&6
13539 else case e in #(
13540 e) ac_check_lib_save_LIBS=$LIBS
13541 LIBS="-ldld $LIBS"
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544
13545 /* Override any GCC internal prototype to avoid an error.
13546 Use char because int might match the return type of a GCC
13547 builtin and then its argument prototype would still apply.
13548 The 'extern "C"' is for builds by C++ compilers;
13549 although this is not generally supported in C code supporting it here
13550 has little cost and some practical benefit (sr 110532). */
13551 #ifdef __cplusplus
13552 extern "C"
13553 #endif
13554 char shl_load (void);
13555 int
13556 main (void)
13557 {
13558 return shl_load ();
13559 ;
13560 return 0;
13561 }
13562 _ACEOF
13563 if ac_fn_c_try_link "$LINENO"
13564 then :
13565 ac_cv_lib_dld_shl_load=yes
13566 else case e in #(
13567 e) ac_cv_lib_dld_shl_load=no ;;
13568 esac
13569 fi
13570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13571 conftest$ac_exeext conftest.$ac_ext
13572 LIBS=$ac_check_lib_save_LIBS ;;
13573 esac
13574 fi
13575 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13576 printf '%s\n' "$ac_cv_lib_dld_shl_load" >&6; }
13577 if test "x$ac_cv_lib_dld_shl_load" = xyes
13578 then :
13579 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13580 else case e in #(
13581 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13582 if test "x$ac_cv_func_dlopen" = xyes
13583 then :
13584 lt_cv_dlopen=dlopen
13585 else case e in #(
13586 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13587 printf %s "checking for dlopen in -ldl... " >&6; }
13588 if test ${ac_cv_lib_dl_dlopen+y}
13589 then :
13590 printf %s "(cached) " >&6
13591 else case e in #(
13592 e) ac_check_lib_save_LIBS=$LIBS
13593 LIBS="-ldl $LIBS"
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596
13597 /* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply.
13600 The 'extern "C"' is for builds by C++ compilers;
13601 although this is not generally supported in C code supporting it here
13602 has little cost and some practical benefit (sr 110532). */
13603 #ifdef __cplusplus
13604 extern "C"
13605 #endif
13606 char dlopen (void);
13607 int
13608 main (void)
13609 {
13610 return dlopen ();
13611 ;
13612 return 0;
13613 }
13614 _ACEOF
13615 if ac_fn_c_try_link "$LINENO"
13616 then :
13617 ac_cv_lib_dl_dlopen=yes
13618 else case e in #(
13619 e) ac_cv_lib_dl_dlopen=no ;;
13620 esac
13621 fi
13622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13623 conftest$ac_exeext conftest.$ac_ext
13624 LIBS=$ac_check_lib_save_LIBS ;;
13625 esac
13626 fi
13627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13628 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
13629 if test "x$ac_cv_lib_dl_dlopen" = xyes
13630 then :
13631 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13632 else case e in #(
13633 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13634 printf %s "checking for dlopen in -lsvld... " >&6; }
13635 if test ${ac_cv_lib_svld_dlopen+y}
13636 then :
13637 printf %s "(cached) " >&6
13638 else case e in #(
13639 e) ac_check_lib_save_LIBS=$LIBS
13640 LIBS="-lsvld $LIBS"
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13643
13644 /* Override any GCC internal prototype to avoid an error.
13645 Use char because int might match the return type of a GCC
13646 builtin and then its argument prototype would still apply.
13647 The 'extern "C"' is for builds by C++ compilers;
13648 although this is not generally supported in C code supporting it here
13649 has little cost and some practical benefit (sr 110532). */
13650 #ifdef __cplusplus
13651 extern "C"
13652 #endif
13653 char dlopen (void);
13654 int
13655 main (void)
13656 {
13657 return dlopen ();
13658 ;
13659 return 0;
13660 }
13661 _ACEOF
13662 if ac_fn_c_try_link "$LINENO"
13663 then :
13664 ac_cv_lib_svld_dlopen=yes
13665 else case e in #(
13666 e) ac_cv_lib_svld_dlopen=no ;;
13667 esac
13668 fi
13669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13670 conftest$ac_exeext conftest.$ac_ext
13671 LIBS=$ac_check_lib_save_LIBS ;;
13672 esac
13673 fi
13674 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13675 printf '%s\n' "$ac_cv_lib_svld_dlopen" >&6; }
13676 if test "x$ac_cv_lib_svld_dlopen" = xyes
13677 then :
13678 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13679 else case e in #(
13680 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13681 printf %s "checking for dld_link in -ldld... " >&6; }
13682 if test ${ac_cv_lib_dld_dld_link+y}
13683 then :
13684 printf %s "(cached) " >&6
13685 else case e in #(
13686 e) ac_check_lib_save_LIBS=$LIBS
13687 LIBS="-ldld $LIBS"
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13690
13691 /* Override any GCC internal prototype to avoid an error.
13692 Use char because int might match the return type of a GCC
13693 builtin and then its argument prototype would still apply.
13694 The 'extern "C"' is for builds by C++ compilers;
13695 although this is not generally supported in C code supporting it here
13696 has little cost and some practical benefit (sr 110532). */
13697 #ifdef __cplusplus
13698 extern "C"
13699 #endif
13700 char dld_link (void);
13701 int
13702 main (void)
13703 {
13704 return dld_link ();
13705 ;
13706 return 0;
13707 }
13708 _ACEOF
13709 if ac_fn_c_try_link "$LINENO"
13710 then :
13711 ac_cv_lib_dld_dld_link=yes
13712 else case e in #(
13713 e) ac_cv_lib_dld_dld_link=no ;;
13714 esac
13715 fi
13716 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13717 conftest$ac_exeext conftest.$ac_ext
13718 LIBS=$ac_check_lib_save_LIBS ;;
13719 esac
13720 fi
13721 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13722 printf '%s\n' "$ac_cv_lib_dld_dld_link" >&6; }
13723 if test "x$ac_cv_lib_dld_dld_link" = xyes
13724 then :
13725 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13726 fi
13727
13728 ;;
13729 esac
13730 fi
13731
13732 ;;
13733 esac
13734 fi
13735
13736 ;;
13737 esac
13738 fi
13739
13740 ;;
13741 esac
13742 fi
13743
13744 ;;
13745 esac
13746 fi
13747
13748 ;;
13749 esac
13750
13751 if test no = "$lt_cv_dlopen"; then
13752 enable_dlopen=no
13753 else
13754 enable_dlopen=yes
13755 fi
13756
13757 case $lt_cv_dlopen in
13758 dlopen)
13759 save_CPPFLAGS=$CPPFLAGS
13760 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13761
13762 save_LDFLAGS=$LDFLAGS
13763 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13764
13765 save_LIBS=$LIBS
13766 LIBS="$lt_cv_dlopen_libs $LIBS"
13767
13768 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13769 printf %s "checking whether a program can dlopen itself... " >&6; }
13770 if test ${lt_cv_dlopen_self+y}
13771 then :
13772 printf %s "(cached) " >&6
13773 else case e in #(
13774 e) if test yes = "$cross_compiling"; then :
13775 lt_cv_dlopen_self=cross
13776 else
13777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13778 lt_status=$lt_dlunknown
13779 cat > conftest.$ac_ext <<_LT_EOF
13780 #line $LINENO "configure"
13781 #include "confdefs.h"
13782
13783 #if HAVE_DLFCN_H
13784 #include <dlfcn.h>
13785 #endif
13786
13787 #include <stdio.h>
13788
13789 #ifdef RTLD_GLOBAL
13790 # define LT_DLGLOBAL RTLD_GLOBAL
13791 #else
13792 # ifdef DL_GLOBAL
13793 # define LT_DLGLOBAL DL_GLOBAL
13794 # else
13795 # define LT_DLGLOBAL 0
13796 # endif
13797 #endif
13798
13799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13800 find out it does not work in some platform. */
13801 #ifndef LT_DLLAZY_OR_NOW
13802 # ifdef RTLD_LAZY
13803 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13804 # else
13805 # ifdef DL_LAZY
13806 # define LT_DLLAZY_OR_NOW DL_LAZY
13807 # else
13808 # ifdef RTLD_NOW
13809 # define LT_DLLAZY_OR_NOW RTLD_NOW
13810 # else
13811 # ifdef DL_NOW
13812 # define LT_DLLAZY_OR_NOW DL_NOW
13813 # else
13814 # define LT_DLLAZY_OR_NOW 0
13815 # endif
13816 # endif
13817 # endif
13818 # endif
13819 #endif
13820
13821 /* When -fvisibility=hidden is used, assume the code has been annotated
13822 correspondingly for the symbols needed. */
13823 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13824 int fnord (void) __attribute__((visibility("default")));
13825 #endif
13826
13827 int fnord (void) { return 42; }
13828 int main (void)
13829 {
13830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13831 int status = $lt_dlunknown;
13832
13833 if (self)
13834 {
13835 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13836 else
13837 {
13838 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13839 else puts (dlerror ());
13840 }
13841 /* dlclose (self); */
13842 }
13843 else
13844 puts (dlerror ());
13845
13846 return status;
13847 }
13848 _LT_EOF
13849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13850 (eval $ac_link) 2>&5
13851 ac_status=$?
13852 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13853 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13854 (./conftest; exit; ) >&5 2>/dev/null
13855 lt_status=$?
13856 case x$lt_status in
13857 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13858 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13859 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13860 esac
13861 else :
13862 # compilation failed
13863 lt_cv_dlopen_self=no
13864 fi
13865 fi
13866 rm -fr conftest*
13867
13868 ;;
13869 esac
13870 fi
13871 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13872 printf '%s\n' "$lt_cv_dlopen_self" >&6; }
13873
13874 if test yes = "$lt_cv_dlopen_self"; then
13875 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13876 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13877 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13878 if test ${lt_cv_dlopen_self_static+y}
13879 then :
13880 printf %s "(cached) " >&6
13881 else case e in #(
13882 e) if test yes = "$cross_compiling"; then :
13883 lt_cv_dlopen_self_static=cross
13884 else
13885 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13886 lt_status=$lt_dlunknown
13887 cat > conftest.$ac_ext <<_LT_EOF
13888 #line $LINENO "configure"
13889 #include "confdefs.h"
13890
13891 #if HAVE_DLFCN_H
13892 #include <dlfcn.h>
13893 #endif
13894
13895 #include <stdio.h>
13896
13897 #ifdef RTLD_GLOBAL
13898 # define LT_DLGLOBAL RTLD_GLOBAL
13899 #else
13900 # ifdef DL_GLOBAL
13901 # define LT_DLGLOBAL DL_GLOBAL
13902 # else
13903 # define LT_DLGLOBAL 0
13904 # endif
13905 #endif
13906
13907 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13908 find out it does not work in some platform. */
13909 #ifndef LT_DLLAZY_OR_NOW
13910 # ifdef RTLD_LAZY
13911 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13912 # else
13913 # ifdef DL_LAZY
13914 # define LT_DLLAZY_OR_NOW DL_LAZY
13915 # else
13916 # ifdef RTLD_NOW
13917 # define LT_DLLAZY_OR_NOW RTLD_NOW
13918 # else
13919 # ifdef DL_NOW
13920 # define LT_DLLAZY_OR_NOW DL_NOW
13921 # else
13922 # define LT_DLLAZY_OR_NOW 0
13923 # endif
13924 # endif
13925 # endif
13926 # endif
13927 #endif
13928
13929 /* When -fvisibility=hidden is used, assume the code has been annotated
13930 correspondingly for the symbols needed. */
13931 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13932 int fnord (void) __attribute__((visibility("default")));
13933 #endif
13934
13935 int fnord (void) { return 42; }
13936 int main (void)
13937 {
13938 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13939 int status = $lt_dlunknown;
13940
13941 if (self)
13942 {
13943 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13944 else
13945 {
13946 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13947 else puts (dlerror ());
13948 }
13949 /* dlclose (self); */
13950 }
13951 else
13952 puts (dlerror ());
13953
13954 return status;
13955 }
13956 _LT_EOF
13957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13958 (eval $ac_link) 2>&5
13959 ac_status=$?
13960 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13961 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13962 (./conftest; exit; ) >&5 2>/dev/null
13963 lt_status=$?
13964 case x$lt_status in
13965 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13966 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13967 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13968 esac
13969 else :
13970 # compilation failed
13971 lt_cv_dlopen_self_static=no
13972 fi
13973 fi
13974 rm -fr conftest*
13975
13976 ;;
13977 esac
13978 fi
13979 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13980 printf '%s\n' "$lt_cv_dlopen_self_static" >&6; }
13981 fi
13982
13983 CPPFLAGS=$save_CPPFLAGS
13984 LDFLAGS=$save_LDFLAGS
13985 LIBS=$save_LIBS
13986 ;;
13987 esac
13988
13989 case $lt_cv_dlopen_self in
13990 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13991 *) enable_dlopen_self=unknown ;;
13992 esac
13993
13994 case $lt_cv_dlopen_self_static in
13995 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13996 *) enable_dlopen_self_static=unknown ;;
13997 esac
13998 fi
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016 striplib=
14017 old_striplib=
14018 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14019 printf %s "checking whether stripping libraries is possible... " >&6; }
14020 if test -z "$STRIP"; then
14021 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 printf '%s\n' "no" >&6; }
14023 else
14024 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14025 old_striplib="$STRIP --strip-debug"
14026 striplib="$STRIP --strip-unneeded"
14027 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14028 printf '%s\n' "yes" >&6; }
14029 else
14030 case $host_os in
14031 darwin*)
14032 # FIXME - insert some real tests, host_os isn't really good enough
14033 striplib="$STRIP -x"
14034 old_striplib="$STRIP -S"
14035 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14036 printf '%s\n' "yes" >&6; }
14037 ;;
14038 freebsd*)
14039 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14040 old_striplib="$STRIP --strip-debug"
14041 striplib="$STRIP --strip-unneeded"
14042 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14043 printf '%s\n' "yes" >&6; }
14044 else
14045 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 printf '%s\n' "no" >&6; }
14047 fi
14048 ;;
14049 *)
14050 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051 printf '%s\n' "no" >&6; }
14052 ;;
14053 esac
14054 fi
14055 fi
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068 # Report what library types will actually be built
14069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14070 printf %s "checking if libtool supports shared libraries... " >&6; }
14071 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14072 printf '%s\n' "$can_build_shared" >&6; }
14073
14074 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14075 printf %s "checking whether to build shared libraries... " >&6; }
14076 test no = "$can_build_shared" && enable_shared=no
14077
14078 # On AIX, shared libraries and static libraries use the same namespace, and
14079 # are all built from PIC.
14080 case $host_os in
14081 aix3*)
14082 test yes = "$enable_shared" && enable_static=no
14083 if test -n "$RANLIB"; then
14084 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14085 postinstall_cmds='$RANLIB $lib'
14086 fi
14087 ;;
14088
14089 aix[4-9]*)
14090 if test ia64 != "$host_cpu"; then
14091 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14092 yes,aix,yes) ;; # shared object as lib.so file only
14093 yes,svr4,*) ;; # shared object as lib.so archive member only
14094 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14095 esac
14096 fi
14097 ;;
14098 esac
14099 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14100 printf '%s\n' "$enable_shared" >&6; }
14101
14102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14103 printf %s "checking whether to build static libraries... " >&6; }
14104 # Make sure either enable_shared or enable_static is yes.
14105 test yes = "$enable_shared" || enable_static=yes
14106 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14107 printf '%s\n' "$enable_static" >&6; }
14108
14109
14110
14111
14112 fi
14113 ac_ext=c
14114 ac_cpp='$CPP $CPPFLAGS'
14115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14118
14119 CC=$lt_save_CC
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135 ac_config_commands="$ac_config_commands libtool"
14136
14137
14138
14139
14140 # Only expand once:
14141
14142
14143
14144 # libtool -version-info
14145 LT_VERSION=0:78:0
14146
14147
14148
14149 AM_DEFAULT_VERBOSITY=0
14150
14151
14152
14153 # Checks for programs.
14154 ac_ext=c
14155 ac_cpp='$CPP $CPPFLAGS'
14156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14159 if test -n "$ac_tool_prefix"; then
14160 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14161 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14163 printf %s "checking for $ac_word... " >&6; }
14164 if test ${ac_cv_prog_CC+y}
14165 then :
14166 printf %s "(cached) " >&6
14167 else case e in #(
14168 e) if test -n "$CC"; then
14169 ac_cv_prog_CC="$CC" # Let the user override the test.
14170 else
14171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14172 for as_dir in $PATH
14173 do
14174 IFS=$as_save_IFS
14175 case $as_dir in #(((
14176 '') as_dir=./ ;;
14177 */) ;;
14178 *) as_dir=$as_dir/ ;;
14179 esac
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14182 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14183 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14184 break 2
14185 fi
14186 done
14187 done
14188 IFS=$as_save_IFS
14189
14190 fi ;;
14191 esac
14192 fi
14193 CC=$ac_cv_prog_CC
14194 if test -n "$CC"; then
14195 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14196 printf '%s\n' "$CC" >&6; }
14197 else
14198 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 printf '%s\n' "no" >&6; }
14200 fi
14201
14202
14203 fi
14204 if test -z "$ac_cv_prog_CC"; then
14205 ac_ct_CC=$CC
14206 # Extract the first word of "gcc", so it can be a program name with args.
14207 set dummy gcc; ac_word=$2
14208 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14209 printf %s "checking for $ac_word... " >&6; }
14210 if test ${ac_cv_prog_ac_ct_CC+y}
14211 then :
14212 printf %s "(cached) " >&6
14213 else case e in #(
14214 e) if test -n "$ac_ct_CC"; then
14215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14216 else
14217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218 for as_dir in $PATH
14219 do
14220 IFS=$as_save_IFS
14221 case $as_dir in #(((
14222 '') as_dir=./ ;;
14223 */) ;;
14224 *) as_dir=$as_dir/ ;;
14225 esac
14226 for ac_exec_ext in '' $ac_executable_extensions; do
14227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14228 ac_cv_prog_ac_ct_CC="gcc"
14229 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14230 break 2
14231 fi
14232 done
14233 done
14234 IFS=$as_save_IFS
14235
14236 fi ;;
14237 esac
14238 fi
14239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14240 if test -n "$ac_ct_CC"; then
14241 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14242 printf '%s\n' "$ac_ct_CC" >&6; }
14243 else
14244 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14245 printf '%s\n' "no" >&6; }
14246 fi
14247
14248 if test "x$ac_ct_CC" = x; then
14249 CC=""
14250 else
14251 case $cross_compiling:$ac_tool_warned in
14252 yes:)
14253 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14254 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14255 ac_tool_warned=yes ;;
14256 esac
14257 CC=$ac_ct_CC
14258 fi
14259 else
14260 CC="$ac_cv_prog_CC"
14261 fi
14262
14263 if test -z "$CC"; then
14264 if test -n "$ac_tool_prefix"; then
14265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14266 set dummy ${ac_tool_prefix}cc; ac_word=$2
14267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14268 printf %s "checking for $ac_word... " >&6; }
14269 if test ${ac_cv_prog_CC+y}
14270 then :
14271 printf %s "(cached) " >&6
14272 else case e in #(
14273 e) if test -n "$CC"; then
14274 ac_cv_prog_CC="$CC" # Let the user override the test.
14275 else
14276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14277 for as_dir in $PATH
14278 do
14279 IFS=$as_save_IFS
14280 case $as_dir in #(((
14281 '') as_dir=./ ;;
14282 */) ;;
14283 *) as_dir=$as_dir/ ;;
14284 esac
14285 for ac_exec_ext in '' $ac_executable_extensions; do
14286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14287 ac_cv_prog_CC="${ac_tool_prefix}cc"
14288 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14289 break 2
14290 fi
14291 done
14292 done
14293 IFS=$as_save_IFS
14294
14295 fi ;;
14296 esac
14297 fi
14298 CC=$ac_cv_prog_CC
14299 if test -n "$CC"; then
14300 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14301 printf '%s\n' "$CC" >&6; }
14302 else
14303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14304 printf '%s\n' "no" >&6; }
14305 fi
14306
14307
14308 fi
14309 fi
14310 if test -z "$CC"; then
14311 # Extract the first word of "cc", so it can be a program name with args.
14312 set dummy cc; ac_word=$2
14313 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14314 printf %s "checking for $ac_word... " >&6; }
14315 if test ${ac_cv_prog_CC+y}
14316 then :
14317 printf %s "(cached) " >&6
14318 else case e in #(
14319 e) if test -n "$CC"; then
14320 ac_cv_prog_CC="$CC" # Let the user override the test.
14321 else
14322 ac_prog_rejected=no
14323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14325 do
14326 IFS=$as_save_IFS
14327 case $as_dir in #(((
14328 '') as_dir=./ ;;
14329 */) ;;
14330 *) as_dir=$as_dir/ ;;
14331 esac
14332 for ac_exec_ext in '' $ac_executable_extensions; do
14333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14334 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14335 ac_prog_rejected=yes
14336 continue
14337 fi
14338 ac_cv_prog_CC="cc"
14339 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14340 break 2
14341 fi
14342 done
14343 done
14344 IFS=$as_save_IFS
14345
14346 if test $ac_prog_rejected = yes; then
14347 # We found a bogon in the path, so make sure we never use it.
14348 set dummy $ac_cv_prog_CC
14349 shift
14350 if test $# != 0; then
14351 # We chose a different compiler from the bogus one.
14352 # However, it has the same basename, so the bogon will be chosen
14353 # first if we set CC to just the basename; use the full file name.
14354 shift
14355 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14356 fi
14357 fi
14358 fi ;;
14359 esac
14360 fi
14361 CC=$ac_cv_prog_CC
14362 if test -n "$CC"; then
14363 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14364 printf '%s\n' "$CC" >&6; }
14365 else
14366 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367 printf '%s\n' "no" >&6; }
14368 fi
14369
14370
14371 fi
14372 if test -z "$CC"; then
14373 if test -n "$ac_tool_prefix"; then
14374 for ac_prog in cl.exe
14375 do
14376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14378 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14379 printf %s "checking for $ac_word... " >&6; }
14380 if test ${ac_cv_prog_CC+y}
14381 then :
14382 printf %s "(cached) " >&6
14383 else case e in #(
14384 e) if test -n "$CC"; then
14385 ac_cv_prog_CC="$CC" # Let the user override the test.
14386 else
14387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14388 for as_dir in $PATH
14389 do
14390 IFS=$as_save_IFS
14391 case $as_dir in #(((
14392 '') as_dir=./ ;;
14393 */) ;;
14394 *) as_dir=$as_dir/ ;;
14395 esac
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14398 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14399 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14400 break 2
14401 fi
14402 done
14403 done
14404 IFS=$as_save_IFS
14405
14406 fi ;;
14407 esac
14408 fi
14409 CC=$ac_cv_prog_CC
14410 if test -n "$CC"; then
14411 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14412 printf '%s\n' "$CC" >&6; }
14413 else
14414 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14415 printf '%s\n' "no" >&6; }
14416 fi
14417
14418
14419 test -n "$CC" && break
14420 done
14421 fi
14422 if test -z "$CC"; then
14423 ac_ct_CC=$CC
14424 for ac_prog in cl.exe
14425 do
14426 # Extract the first word of "$ac_prog", so it can be a program name with args.
14427 set dummy $ac_prog; ac_word=$2
14428 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14429 printf %s "checking for $ac_word... " >&6; }
14430 if test ${ac_cv_prog_ac_ct_CC+y}
14431 then :
14432 printf %s "(cached) " >&6
14433 else case e in #(
14434 e) if test -n "$ac_ct_CC"; then
14435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14436 else
14437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14438 for as_dir in $PATH
14439 do
14440 IFS=$as_save_IFS
14441 case $as_dir in #(((
14442 '') as_dir=./ ;;
14443 */) ;;
14444 *) as_dir=$as_dir/ ;;
14445 esac
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14448 ac_cv_prog_ac_ct_CC="$ac_prog"
14449 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14450 break 2
14451 fi
14452 done
14453 done
14454 IFS=$as_save_IFS
14455
14456 fi ;;
14457 esac
14458 fi
14459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14460 if test -n "$ac_ct_CC"; then
14461 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14462 printf '%s\n' "$ac_ct_CC" >&6; }
14463 else
14464 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465 printf '%s\n' "no" >&6; }
14466 fi
14467
14468
14469 test -n "$ac_ct_CC" && break
14470 done
14471
14472 if test "x$ac_ct_CC" = x; then
14473 CC=""
14474 else
14475 case $cross_compiling:$ac_tool_warned in
14476 yes:)
14477 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14478 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14479 ac_tool_warned=yes ;;
14480 esac
14481 CC=$ac_ct_CC
14482 fi
14483 fi
14484
14485 fi
14486 if test -z "$CC"; then
14487 if test -n "$ac_tool_prefix"; then
14488 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14489 set dummy ${ac_tool_prefix}clang; ac_word=$2
14490 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14491 printf %s "checking for $ac_word... " >&6; }
14492 if test ${ac_cv_prog_CC+y}
14493 then :
14494 printf %s "(cached) " >&6
14495 else case e in #(
14496 e) if test -n "$CC"; then
14497 ac_cv_prog_CC="$CC" # Let the user override the test.
14498 else
14499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14500 for as_dir in $PATH
14501 do
14502 IFS=$as_save_IFS
14503 case $as_dir in #(((
14504 '') as_dir=./ ;;
14505 */) ;;
14506 *) as_dir=$as_dir/ ;;
14507 esac
14508 for ac_exec_ext in '' $ac_executable_extensions; do
14509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14510 ac_cv_prog_CC="${ac_tool_prefix}clang"
14511 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14512 break 2
14513 fi
14514 done
14515 done
14516 IFS=$as_save_IFS
14517
14518 fi ;;
14519 esac
14520 fi
14521 CC=$ac_cv_prog_CC
14522 if test -n "$CC"; then
14523 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14524 printf '%s\n' "$CC" >&6; }
14525 else
14526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14527 printf '%s\n' "no" >&6; }
14528 fi
14529
14530
14531 fi
14532 if test -z "$ac_cv_prog_CC"; then
14533 ac_ct_CC=$CC
14534 # Extract the first word of "clang", so it can be a program name with args.
14535 set dummy clang; ac_word=$2
14536 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14537 printf %s "checking for $ac_word... " >&6; }
14538 if test ${ac_cv_prog_ac_ct_CC+y}
14539 then :
14540 printf %s "(cached) " >&6
14541 else case e in #(
14542 e) if test -n "$ac_ct_CC"; then
14543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14544 else
14545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14546 for as_dir in $PATH
14547 do
14548 IFS=$as_save_IFS
14549 case $as_dir in #(((
14550 '') as_dir=./ ;;
14551 */) ;;
14552 *) as_dir=$as_dir/ ;;
14553 esac
14554 for ac_exec_ext in '' $ac_executable_extensions; do
14555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14556 ac_cv_prog_ac_ct_CC="clang"
14557 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14558 break 2
14559 fi
14560 done
14561 done
14562 IFS=$as_save_IFS
14563
14564 fi ;;
14565 esac
14566 fi
14567 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14568 if test -n "$ac_ct_CC"; then
14569 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14570 printf '%s\n' "$ac_ct_CC" >&6; }
14571 else
14572 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14573 printf '%s\n' "no" >&6; }
14574 fi
14575
14576 if test "x$ac_ct_CC" = x; then
14577 CC=""
14578 else
14579 case $cross_compiling:$ac_tool_warned in
14580 yes:)
14581 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14582 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14583 ac_tool_warned=yes ;;
14584 esac
14585 CC=$ac_ct_CC
14586 fi
14587 else
14588 CC="$ac_cv_prog_CC"
14589 fi
14590
14591 fi
14592
14593
14594 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14595 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
14596 as_fn_error $? "no acceptable C compiler found in \$PATH
14597 See 'config.log' for more details" "$LINENO" 5; }
14598
14599 # Provide some information about the compiler.
14600 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14601 set X $ac_compile
14602 ac_compiler=$2
14603 for ac_option in --version -v -V -qversion -version; do
14604 { { ac_try="$ac_compiler $ac_option >&5"
14605 case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14608 esac
14609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14610 printf '%s\n' "$ac_try_echo"; } >&5
14611 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14612 ac_status=$?
14613 if test -s conftest.err; then
14614 sed '10a\
14615 ... rest of stderr output deleted ...
14616 10q' conftest.err >conftest.er1
14617 cat conftest.er1 >&5
14618 fi
14619 rm -f conftest.er1 conftest.err
14620 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14621 test $ac_status = 0; }
14622 done
14623
14624 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14625 printf %s "checking whether the compiler supports GNU C... " >&6; }
14626 if test ${ac_cv_c_compiler_gnu+y}
14627 then :
14628 printf %s "(cached) " >&6
14629 else case e in #(
14630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14632
14633 int
14634 main (void)
14635 {
14636 #ifndef __GNUC__
14637 choke me
14638 #endif
14639
14640 ;
14641 return 0;
14642 }
14643 _ACEOF
14644 if ac_fn_c_try_compile "$LINENO"
14645 then :
14646 ac_compiler_gnu=yes
14647 else case e in #(
14648 e) ac_compiler_gnu=no ;;
14649 esac
14650 fi
14651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14652 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14653 ;;
14654 esac
14655 fi
14656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14657 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
14658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14659
14660 if test $ac_compiler_gnu = yes; then
14661 GCC=yes
14662 else
14663 GCC=
14664 fi
14665 ac_test_CFLAGS=${CFLAGS+y}
14666 ac_save_CFLAGS=$CFLAGS
14667 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14668 printf %s "checking whether $CC accepts -g... " >&6; }
14669 if test ${ac_cv_prog_cc_g+y}
14670 then :
14671 printf %s "(cached) " >&6
14672 else case e in #(
14673 e) ac_save_c_werror_flag=$ac_c_werror_flag
14674 ac_c_werror_flag=yes
14675 ac_cv_prog_cc_g=no
14676 CFLAGS="-g"
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14679
14680 int
14681 main (void)
14682 {
14683
14684 ;
14685 return 0;
14686 }
14687 _ACEOF
14688 if ac_fn_c_try_compile "$LINENO"
14689 then :
14690 ac_cv_prog_cc_g=yes
14691 else case e in #(
14692 e) CFLAGS=""
14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14695
14696 int
14697 main (void)
14698 {
14699
14700 ;
14701 return 0;
14702 }
14703 _ACEOF
14704 if ac_fn_c_try_compile "$LINENO"
14705 then :
14706
14707 else case e in #(
14708 e) ac_c_werror_flag=$ac_save_c_werror_flag
14709 CFLAGS="-g"
14710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h. */
14712
14713 int
14714 main (void)
14715 {
14716
14717 ;
14718 return 0;
14719 }
14720 _ACEOF
14721 if ac_fn_c_try_compile "$LINENO"
14722 then :
14723 ac_cv_prog_cc_g=yes
14724 fi
14725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14726 esac
14727 fi
14728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14729 esac
14730 fi
14731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14732 ac_c_werror_flag=$ac_save_c_werror_flag ;;
14733 esac
14734 fi
14735 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14736 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
14737 if test $ac_test_CFLAGS; then
14738 CFLAGS=$ac_save_CFLAGS
14739 elif test $ac_cv_prog_cc_g = yes; then
14740 if test "$GCC" = yes; then
14741 CFLAGS="-g -O2"
14742 else
14743 CFLAGS="-g"
14744 fi
14745 else
14746 if test "$GCC" = yes; then
14747 CFLAGS="-O2"
14748 else
14749 CFLAGS=
14750 fi
14751 fi
14752 ac_prog_cc_stdc=no
14753 if test x$ac_prog_cc_stdc = xno
14754 then :
14755 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
14756 printf %s "checking for $CC option to enable C23 features... " >&6; }
14757 if test ${ac_cv_prog_cc_c23+y}
14758 then :
14759 printf %s "(cached) " >&6
14760 else case e in #(
14761 e) ac_cv_prog_cc_c23=no
14762 ac_save_CC=$CC
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14765 $ac_c_conftest_c23_program
14766 _ACEOF
14767 for ac_arg in '' -std=gnu23
14768 do
14769 CC="$ac_save_CC $ac_arg"
14770 if ac_fn_c_try_compile "$LINENO"
14771 then :
14772 ac_cv_prog_cc_c23=$ac_arg
14773 fi
14774 rm -f core conftest.err conftest.$ac_objext conftest.beam
14775 test "x$ac_cv_prog_cc_c23" != "xno" && break
14776 done
14777 rm -f conftest.$ac_ext
14778 CC=$ac_save_CC ;;
14779 esac
14780 fi
14781
14782 if test "x$ac_cv_prog_cc_c23" = xno
14783 then :
14784 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14785 printf '%s\n' "unsupported" >&6; }
14786 else case e in #(
14787 e) if test "x$ac_cv_prog_cc_c23" = x
14788 then :
14789 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14790 printf '%s\n' "none needed" >&6; }
14791 else case e in #(
14792 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
14793 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
14794 CC="$CC $ac_cv_prog_cc_c23" ;;
14795 esac
14796 fi
14797 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
14798 ac_prog_cc_stdc=c23 ;;
14799 esac
14800 fi
14801 fi
14802 if test x$ac_prog_cc_stdc = xno
14803 then :
14804 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14805 printf %s "checking for $CC option to enable C11 features... " >&6; }
14806 if test ${ac_cv_prog_cc_c11+y}
14807 then :
14808 printf %s "(cached) " >&6
14809 else case e in #(
14810 e) ac_cv_prog_cc_c11=no
14811 ac_save_CC=$CC
14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h. */
14814 $ac_c_conftest_c11_program
14815 _ACEOF
14816 for ac_arg in '' -std=gnu11 -std:c11
14817 do
14818 CC="$ac_save_CC $ac_arg"
14819 if ac_fn_c_try_compile "$LINENO"
14820 then :
14821 ac_cv_prog_cc_c11=$ac_arg
14822 fi
14823 rm -f core conftest.err conftest.$ac_objext conftest.beam
14824 test "x$ac_cv_prog_cc_c11" != "xno" && break
14825 done
14826 rm -f conftest.$ac_ext
14827 CC=$ac_save_CC ;;
14828 esac
14829 fi
14830
14831 if test "x$ac_cv_prog_cc_c11" = xno
14832 then :
14833 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14834 printf '%s\n' "unsupported" >&6; }
14835 else case e in #(
14836 e) if test "x$ac_cv_prog_cc_c11" = x
14837 then :
14838 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14839 printf '%s\n' "none needed" >&6; }
14840 else case e in #(
14841 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14842 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
14843 CC="$CC $ac_cv_prog_cc_c11" ;;
14844 esac
14845 fi
14846 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14847 ac_prog_cc_stdc=c11 ;;
14848 esac
14849 fi
14850 fi
14851 if test x$ac_prog_cc_stdc = xno
14852 then :
14853 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14854 printf %s "checking for $CC option to enable C99 features... " >&6; }
14855 if test ${ac_cv_prog_cc_c99+y}
14856 then :
14857 printf %s "(cached) " >&6
14858 else case e in #(
14859 e) ac_cv_prog_cc_c99=no
14860 ac_save_CC=$CC
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14863 $ac_c_conftest_c99_program
14864 _ACEOF
14865 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14866 do
14867 CC="$ac_save_CC $ac_arg"
14868 if ac_fn_c_try_compile "$LINENO"
14869 then :
14870 ac_cv_prog_cc_c99=$ac_arg
14871 fi
14872 rm -f core conftest.err conftest.$ac_objext conftest.beam
14873 test "x$ac_cv_prog_cc_c99" != "xno" && break
14874 done
14875 rm -f conftest.$ac_ext
14876 CC=$ac_save_CC ;;
14877 esac
14878 fi
14879
14880 if test "x$ac_cv_prog_cc_c99" = xno
14881 then :
14882 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14883 printf '%s\n' "unsupported" >&6; }
14884 else case e in #(
14885 e) if test "x$ac_cv_prog_cc_c99" = x
14886 then :
14887 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14888 printf '%s\n' "none needed" >&6; }
14889 else case e in #(
14890 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14891 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
14892 CC="$CC $ac_cv_prog_cc_c99" ;;
14893 esac
14894 fi
14895 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14896 ac_prog_cc_stdc=c99 ;;
14897 esac
14898 fi
14899 fi
14900 if test x$ac_prog_cc_stdc = xno
14901 then :
14902 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14903 printf %s "checking for $CC option to enable C89 features... " >&6; }
14904 if test ${ac_cv_prog_cc_c89+y}
14905 then :
14906 printf %s "(cached) " >&6
14907 else case e in #(
14908 e) ac_cv_prog_cc_c89=no
14909 ac_save_CC=$CC
14910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14912 $ac_c_conftest_c89_program
14913 _ACEOF
14914 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14915 do
14916 CC="$ac_save_CC $ac_arg"
14917 if ac_fn_c_try_compile "$LINENO"
14918 then :
14919 ac_cv_prog_cc_c89=$ac_arg
14920 fi
14921 rm -f core conftest.err conftest.$ac_objext conftest.beam
14922 test "x$ac_cv_prog_cc_c89" != "xno" && break
14923 done
14924 rm -f conftest.$ac_ext
14925 CC=$ac_save_CC ;;
14926 esac
14927 fi
14928
14929 if test "x$ac_cv_prog_cc_c89" = xno
14930 then :
14931 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14932 printf '%s\n' "unsupported" >&6; }
14933 else case e in #(
14934 e) if test "x$ac_cv_prog_cc_c89" = x
14935 then :
14936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14937 printf '%s\n' "none needed" >&6; }
14938 else case e in #(
14939 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14940 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
14941 CC="$CC $ac_cv_prog_cc_c89" ;;
14942 esac
14943 fi
14944 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14945 ac_prog_cc_stdc=c89 ;;
14946 esac
14947 fi
14948 fi
14949
14950 ac_ext=c
14951 ac_cpp='$CPP $CPPFLAGS'
14952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14955
14956
14957 ac_ext=c
14958 ac_cpp='$CPP $CPPFLAGS'
14959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14962 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14963 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14964 if test ${am_cv_prog_cc_c_o+y}
14965 then :
14966 printf %s "(cached) " >&6
14967 else case e in #(
14968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h. */
14970
14971 int
14972 main (void)
14973 {
14974
14975 ;
14976 return 0;
14977 }
14978 _ACEOF
14979 # Make sure it works both with $CC and with simple cc.
14980 # Following AC_PROG_CC_C_O, we do the test twice because some
14981 # compilers refuse to overwrite an existing .o file with -o,
14982 # though they will create one.
14983 am_cv_prog_cc_c_o=yes
14984 for am_i in 1 2; do
14985 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14986 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14987 ac_status=$?
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } \
14990 && test -f conftest2.$ac_objext; then
14991 : OK
14992 else
14993 am_cv_prog_cc_c_o=no
14994 break
14995 fi
14996 done
14997 # aligned with autoconf, so not including core; see bug#72225.
14998 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
14999 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
15000 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
15001 unset am_i ;;
15002 esac
15003 fi
15004 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
15005 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
15006 if test "$am_cv_prog_cc_c_o" != yes; then
15007 # Losing compiler, so override with the script.
15008 # FIXME: It is wrong to rewrite CC.
15009 # But if we don't then we get into trouble of one sort or another.
15010 # A longer-term fix would be to have automake use am__CC in this case,
15011 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15012 CC="$am_aux_dir/compile $CC"
15013 fi
15014 ac_ext=c
15015 ac_cpp='$CPP $CPPFLAGS'
15016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15019
15020
15021 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15022 printf %s "checking whether ln -s works... " >&6; }
15023 LN_S=$as_ln_s
15024 if test "$LN_S" = "ln -s"; then
15025 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15026 printf '%s\n' "yes" >&6; }
15027 else
15028 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15029 printf '%s\n' "no, using $LN_S" >&6; }
15030 fi
15031
15032 for ac_prog in gawk mawk nawk awk 'busybox awk'
15033 do
15034 # Extract the first word of "$ac_prog", so it can be a program name with args.
15035 set dummy $ac_prog; ac_word=$2
15036 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15037 printf %s "checking for $ac_word... " >&6; }
15038 if test ${ac_cv_prog_AWK+y}
15039 then :
15040 printf %s "(cached) " >&6
15041 else case e in #(
15042 e) if test -n "$AWK"; then
15043 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15044 else
15045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15046 for as_dir in $PATH
15047 do
15048 IFS=$as_save_IFS
15049 case $as_dir in #(((
15050 '') as_dir=./ ;;
15051 */) ;;
15052 *) as_dir=$as_dir/ ;;
15053 esac
15054 for ac_exec_ext in '' $ac_executable_extensions; do
15055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15056 ac_cv_prog_AWK="$ac_prog"
15057 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15058 break 2
15059 fi
15060 done
15061 done
15062 IFS=$as_save_IFS
15063
15064 fi ;;
15065 esac
15066 fi
15067 AWK=$ac_cv_prog_AWK
15068 if test -n "$AWK"; then
15069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15070 printf '%s\n' "$AWK" >&6; }
15071 else
15072 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15073 printf '%s\n' "no" >&6; }
15074 fi
15075
15076
15077 test -n "$AWK" && break
15078 done
15079
15080
15081 MANTYPE=
15082 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15083 for ac_prog in nroff awf
15084 do
15085 # Extract the first word of "$ac_prog", so it can be a program name with args.
15086 set dummy $ac_prog; ac_word=$2
15087 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15088 printf %s "checking for $ac_word... " >&6; }
15089 if test ${ac_cv_path_NROFF+y}
15090 then :
15091 printf %s "(cached) " >&6
15092 else case e in #(
15093 e) case $NROFF in
15094 [\\/]* | ?:[\\/]*)
15095 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15096 ;;
15097 *)
15098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15099 for as_dir in $TestPath
15100 do
15101 IFS=$as_save_IFS
15102 case $as_dir in #(((
15103 '') as_dir=./ ;;
15104 */) ;;
15105 *) as_dir=$as_dir/ ;;
15106 esac
15107 for ac_exec_ext in '' $ac_executable_extensions; do
15108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15109 ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
15110 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15111 break 2
15112 fi
15113 done
15114 done
15115 IFS=$as_save_IFS
15116
15117 ;;
15118 esac ;;
15119 esac
15120 fi
15121 NROFF=$ac_cv_path_NROFF
15122 if test -n "$NROFF"; then
15123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15124 printf '%s\n' "$NROFF" >&6; }
15125 else
15126 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
15127 printf '%s\n' "no" >&6; }
15128 fi
15129
15130
15131 test -n "$NROFF" && break
15132 done
15133 test -n "$NROFF" || NROFF="/bin/false"
15134
15135 if ${NROFF} -mdoc ${srcdir}/doc/editrc.5.roff >/dev/null 2>&1; then
15136 MANTYPE=mdoc
15137 fi
15138
15139
15140
15141 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
15142 printf %s "checking for tgetent in -lncurses... " >&6; }
15143 if test ${ac_cv_lib_ncurses_tgetent+y}
15144 then :
15145 printf %s "(cached) " >&6
15146 else case e in #(
15147 e) ac_check_lib_save_LIBS=$LIBS
15148 LIBS="-lncurses $LIBS"
15149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15150 /* end confdefs.h. */
15151
15152 /* Override any GCC internal prototype to avoid an error.
15153 Use char because int might match the return type of a GCC
15154 builtin and then its argument prototype would still apply.
15155 The 'extern "C"' is for builds by C++ compilers;
15156 although this is not generally supported in C code supporting it here
15157 has little cost and some practical benefit (sr 110532). */
15158 #ifdef __cplusplus
15159 extern "C"
15160 #endif
15161 char tgetent (void);
15162 int
15163 main (void)
15164 {
15165 return tgetent ();
15166 ;
15167 return 0;
15168 }
15169 _ACEOF
15170 if ac_fn_c_try_link "$LINENO"
15171 then :
15172 ac_cv_lib_ncurses_tgetent=yes
15173 else case e in #(
15174 e) ac_cv_lib_ncurses_tgetent=no ;;
15175 esac
15176 fi
15177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15178 conftest$ac_exeext conftest.$ac_ext
15179 LIBS=$ac_check_lib_save_LIBS ;;
15180 esac
15181 fi
15182 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
15183 printf '%s\n' "$ac_cv_lib_ncurses_tgetent" >&6; }
15184 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
15185 then :
15186 printf '%s\n' "#define HAVE_LIBNCURSES 1" >>confdefs.h
15187
15188 LIBS="-lncurses $LIBS"
15189
15190 else case e in #(
15191 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
15192 printf %s "checking for tgetent in -lcurses... " >&6; }
15193 if test ${ac_cv_lib_curses_tgetent+y}
15194 then :
15195 printf %s "(cached) " >&6
15196 else case e in #(
15197 e) ac_check_lib_save_LIBS=$LIBS
15198 LIBS="-lcurses $LIBS"
15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200 /* end confdefs.h. */
15201
15202 /* Override any GCC internal prototype to avoid an error.
15203 Use char because int might match the return type of a GCC
15204 builtin and then its argument prototype would still apply.
15205 The 'extern "C"' is for builds by C++ compilers;
15206 although this is not generally supported in C code supporting it here
15207 has little cost and some practical benefit (sr 110532). */
15208 #ifdef __cplusplus
15209 extern "C"
15210 #endif
15211 char tgetent (void);
15212 int
15213 main (void)
15214 {
15215 return tgetent ();
15216 ;
15217 return 0;
15218 }
15219 _ACEOF
15220 if ac_fn_c_try_link "$LINENO"
15221 then :
15222 ac_cv_lib_curses_tgetent=yes
15223 else case e in #(
15224 e) ac_cv_lib_curses_tgetent=no ;;
15225 esac
15226 fi
15227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15228 conftest$ac_exeext conftest.$ac_ext
15229 LIBS=$ac_check_lib_save_LIBS ;;
15230 esac
15231 fi
15232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
15233 printf '%s\n' "$ac_cv_lib_curses_tgetent" >&6; }
15234 if test "x$ac_cv_lib_curses_tgetent" = xyes
15235 then :
15236 printf '%s\n' "#define HAVE_LIBCURSES 1" >>confdefs.h
15237
15238 LIBS="-lcurses $LIBS"
15239
15240 else case e in #(
15241 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
15242 printf %s "checking for tgetent in -ltermcap... " >&6; }
15243 if test ${ac_cv_lib_termcap_tgetent+y}
15244 then :
15245 printf %s "(cached) " >&6
15246 else case e in #(
15247 e) ac_check_lib_save_LIBS=$LIBS
15248 LIBS="-ltermcap $LIBS"
15249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250 /* end confdefs.h. */
15251
15252 /* Override any GCC internal prototype to avoid an error.
15253 Use char because int might match the return type of a GCC
15254 builtin and then its argument prototype would still apply.
15255 The 'extern "C"' is for builds by C++ compilers;
15256 although this is not generally supported in C code supporting it here
15257 has little cost and some practical benefit (sr 110532). */
15258 #ifdef __cplusplus
15259 extern "C"
15260 #endif
15261 char tgetent (void);
15262 int
15263 main (void)
15264 {
15265 return tgetent ();
15266 ;
15267 return 0;
15268 }
15269 _ACEOF
15270 if ac_fn_c_try_link "$LINENO"
15271 then :
15272 ac_cv_lib_termcap_tgetent=yes
15273 else case e in #(
15274 e) ac_cv_lib_termcap_tgetent=no ;;
15275 esac
15276 fi
15277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15278 conftest$ac_exeext conftest.$ac_ext
15279 LIBS=$ac_check_lib_save_LIBS ;;
15280 esac
15281 fi
15282 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
15283 printf '%s\n' "$ac_cv_lib_termcap_tgetent" >&6; }
15284 if test "x$ac_cv_lib_termcap_tgetent" = xyes
15285 then :
15286 printf '%s\n' "#define HAVE_LIBTERMCAP 1" >>confdefs.h
15287
15288 LIBS="-ltermcap $LIBS"
15289
15290 else case e in #(
15291 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
15292 printf %s "checking for tgetent in -ltinfo... " >&6; }
15293 if test ${ac_cv_lib_tinfo_tgetent+y}
15294 then :
15295 printf %s "(cached) " >&6
15296 else case e in #(
15297 e) ac_check_lib_save_LIBS=$LIBS
15298 LIBS="-ltinfo $LIBS"
15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15301
15302 /* Override any GCC internal prototype to avoid an error.
15303 Use char because int might match the return type of a GCC
15304 builtin and then its argument prototype would still apply.
15305 The 'extern "C"' is for builds by C++ compilers;
15306 although this is not generally supported in C code supporting it here
15307 has little cost and some practical benefit (sr 110532). */
15308 #ifdef __cplusplus
15309 extern "C"
15310 #endif
15311 char tgetent (void);
15312 int
15313 main (void)
15314 {
15315 return tgetent ();
15316 ;
15317 return 0;
15318 }
15319 _ACEOF
15320 if ac_fn_c_try_link "$LINENO"
15321 then :
15322 ac_cv_lib_tinfo_tgetent=yes
15323 else case e in #(
15324 e) ac_cv_lib_tinfo_tgetent=no ;;
15325 esac
15326 fi
15327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15328 conftest$ac_exeext conftest.$ac_ext
15329 LIBS=$ac_check_lib_save_LIBS ;;
15330 esac
15331 fi
15332 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
15333 printf '%s\n' "$ac_cv_lib_tinfo_tgetent" >&6; }
15334 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
15335 then :
15336 printf '%s\n' "#define HAVE_LIBTINFO 1" >>confdefs.h
15337
15338 LIBS="-ltinfo $LIBS"
15339
15340 else case e in #(
15341 e) as_fn_error $? "libncurses, libcurses, libtermcap or libtinfo is required!" "$LINENO" 5
15342 ;;
15343 esac
15344 fi
15345
15346 ;;
15347 esac
15348 fi
15349
15350 ;;
15351 esac
15352 fi
15353
15354 ;;
15355 esac
15356 fi
15357
15358
15359 ### deprecate option --enable-widec to turn on use of wide-character support
15360
15361 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if you want wide-character code" >&5
15362 printf %s "checking if you want wide-character code... " >&6; }
15363 # Check whether --enable-widec was given.
15364 if test ${enable_widec+y}
15365 then :
15366 enableval=$enable_widec; with_widec=$enableval
15367 else case e in #(
15368 e) with_widec=no ;;
15369 esac
15370 fi
15371
15372 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_widec" >&5
15373 printf '%s\n' "$with_widec" >&6; }
15374 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: --enable-widec is deprecated, wide-character/UTF-8 is always enabled" >&5
15375 printf '%s\n' "$as_me: WARNING: --enable-widec is deprecated, wide-character/UTF-8 is always enabled" >&2;}
15376
15377
15378 # Check whether --enable-examples was given.
15379 if test ${enable_examples+y}
15380 then :
15381 enableval=$enable_examples; enable_examples="$enableval"
15382 else case e in #(
15383 e) enable_examples="yes"
15384 ;;
15385 esac
15386 fi
15387
15388
15389 if test "$enable_examples" = "yes"; then
15390 ENABLE_EXAMPLES_TRUE=
15391 ENABLE_EXAMPLES_FALSE='#'
15392 else
15393 ENABLE_EXAMPLES_TRUE='#'
15394 ENABLE_EXAMPLES_FALSE=
15395 fi
15396
15397
15398 # Checks for header files.
15399 ac_header_dirent=no
15400 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15401 as_ac_Header=`printf '%s\n' "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15403 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15404 if eval test \${$as_ac_Header+y}
15405 then :
15406 printf %s "(cached) " >&6
15407 else case e in #(
15408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15410 #include <sys/types.h>
15411 #include <$ac_hdr>
15412
15413 int
15414 main (void)
15415 {
15416 if ((DIR *) 0)
15417 return 0;
15418 ;
15419 return 0;
15420 }
15421 _ACEOF
15422 if ac_fn_c_try_compile "$LINENO"
15423 then :
15424 eval "$as_ac_Header=yes"
15425 else case e in #(
15426 e) eval "$as_ac_Header=no" ;;
15427 esac
15428 fi
15429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15430 esac
15431 fi
15432 eval ac_res=\$$as_ac_Header
15433 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15434 printf '%s\n' "$ac_res" >&6; }
15435 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15436 then :
15437 cat >>confdefs.h <<_ACEOF
15438 #define `printf '%s\n' "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15439 _ACEOF
15440
15441 ac_header_dirent=$ac_hdr; break
15442 fi
15443
15444 done
15445 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15446 if test $ac_header_dirent = dirent.h; then
15447 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15448 printf %s "checking for library containing opendir... " >&6; }
15449 if test ${ac_cv_search_opendir+y}
15450 then :
15451 printf %s "(cached) " >&6
15452 else case e in #(
15453 e) ac_func_search_save_LIBS=$LIBS
15454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15455 /* end confdefs.h. */
15456
15457 /* Override any GCC internal prototype to avoid an error.
15458 Use char because int might match the return type of a GCC
15459 builtin and then its argument prototype would still apply.
15460 The 'extern "C"' is for builds by C++ compilers;
15461 although this is not generally supported in C code supporting it here
15462 has little cost and some practical benefit (sr 110532). */
15463 #ifdef __cplusplus
15464 extern "C"
15465 #endif
15466 char opendir (void);
15467 int
15468 main (void)
15469 {
15470 return opendir ();
15471 ;
15472 return 0;
15473 }
15474 _ACEOF
15475 for ac_lib in '' dir
15476 do
15477 if test -z "$ac_lib"; then
15478 ac_res="none required"
15479 else
15480 ac_res=-l$ac_lib
15481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15482 fi
15483 if ac_fn_c_try_link "$LINENO"
15484 then :
15485 ac_cv_search_opendir=$ac_res
15486 fi
15487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15488 conftest$ac_exeext
15489 if test ${ac_cv_search_opendir+y}
15490 then :
15491 break
15492 fi
15493 done
15494 if test ${ac_cv_search_opendir+y}
15495 then :
15496
15497 else case e in #(
15498 e) ac_cv_search_opendir=no ;;
15499 esac
15500 fi
15501 rm conftest.$ac_ext
15502 LIBS=$ac_func_search_save_LIBS ;;
15503 esac
15504 fi
15505 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15506 printf '%s\n' "$ac_cv_search_opendir" >&6; }
15507 ac_res=$ac_cv_search_opendir
15508 if test "$ac_res" != no
15509 then :
15510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15511
15512 fi
15513
15514 else
15515 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15516 printf %s "checking for library containing opendir... " >&6; }
15517 if test ${ac_cv_search_opendir+y}
15518 then :
15519 printf %s "(cached) " >&6
15520 else case e in #(
15521 e) ac_func_search_save_LIBS=$LIBS
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15524
15525 /* Override any GCC internal prototype to avoid an error.
15526 Use char because int might match the return type of a GCC
15527 builtin and then its argument prototype would still apply.
15528 The 'extern "C"' is for builds by C++ compilers;
15529 although this is not generally supported in C code supporting it here
15530 has little cost and some practical benefit (sr 110532). */
15531 #ifdef __cplusplus
15532 extern "C"
15533 #endif
15534 char opendir (void);
15535 int
15536 main (void)
15537 {
15538 return opendir ();
15539 ;
15540 return 0;
15541 }
15542 _ACEOF
15543 for ac_lib in '' x
15544 do
15545 if test -z "$ac_lib"; then
15546 ac_res="none required"
15547 else
15548 ac_res=-l$ac_lib
15549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15550 fi
15551 if ac_fn_c_try_link "$LINENO"
15552 then :
15553 ac_cv_search_opendir=$ac_res
15554 fi
15555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15556 conftest$ac_exeext
15557 if test ${ac_cv_search_opendir+y}
15558 then :
15559 break
15560 fi
15561 done
15562 if test ${ac_cv_search_opendir+y}
15563 then :
15564
15565 else case e in #(
15566 e) ac_cv_search_opendir=no ;;
15567 esac
15568 fi
15569 rm conftest.$ac_ext
15570 LIBS=$ac_func_search_save_LIBS ;;
15571 esac
15572 fi
15573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15574 printf '%s\n' "$ac_cv_search_opendir" >&6; }
15575 ac_res=$ac_cv_search_opendir
15576 if test "$ac_res" != no
15577 then :
15578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15579
15580 fi
15581
15582 fi
15583
15584
15585 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
15586 printf %s "checking for egrep... " >&6; }
15587 if test ${ac_cv_path_EGREP+y}
15588 then :
15589 printf %s "(cached) " >&6
15590 else case e in #(
15591 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
15592 then ac_cv_path_EGREP="$GREP -E"
15593 else
15594 if test -z "$EGREP"; then
15595 ac_path_EGREP_found=false
15596 # Loop through the user's path and test for each of PROGNAME-LIST
15597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15599 do
15600 IFS=$as_save_IFS
15601 case $as_dir in #(((
15602 '') as_dir=./ ;;
15603 */) ;;
15604 *) as_dir=$as_dir/ ;;
15605 esac
15606 for ac_prog in egrep
15607 do
15608 for ac_exec_ext in '' $ac_executable_extensions; do
15609 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
15610 as_fn_executable_p "$ac_path_EGREP" || continue
15611 # Check for GNU ac_path_EGREP and select it if it is found.
15612 # Check for GNU $ac_path_EGREP
15613 case `"$ac_path_EGREP" --version 2>&1` in #(
15614 *GNU*)
15615 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
15616 #(
15617 *)
15618 ac_count=0
15619 printf %s 0123456789 >"conftest.in"
15620 while :
15621 do
15622 cat "conftest.in" "conftest.in" >"conftest.tmp"
15623 mv "conftest.tmp" "conftest.in"
15624 cp "conftest.in" "conftest.nl"
15625 printf '%s\n' 'EGREP' >> "conftest.nl"
15626 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15627 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15628 as_fn_arith $ac_count + 1 && ac_count=$as_val
15629 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
15630 # Best one so far, save it but keep looking for a better one
15631 ac_cv_path_EGREP="$ac_path_EGREP"
15632 ac_path_EGREP_max=$ac_count
15633 fi
15634 # 10*(2^10) chars as input seems more than enough
15635 test $ac_count -gt 10 && break
15636 done
15637 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15638 esac
15639
15640 $ac_path_EGREP_found && break 3
15641 done
15642 done
15643 done
15644 IFS=$as_save_IFS
15645 if test -z "$ac_cv_path_EGREP"; then
15646 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15647 fi
15648 else
15649 ac_cv_path_EGREP=$EGREP
15650 fi
15651
15652 fi ;;
15653 esac
15654 fi
15655 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
15656 printf '%s\n' "$ac_cv_path_EGREP" >&6; }
15657 EGREP="$ac_cv_path_EGREP"
15658
15659 EGREP_TRADITIONAL=$EGREP
15660 ac_cv_path_EGREP_TRADITIONAL=$EGREP
15661
15662
15663 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15664 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15665 if test ${ac_cv_header_sys_wait_h+y}
15666 then :
15667 printf %s "(cached) " >&6
15668 else case e in #(
15669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671 #include <sys/types.h>
15672 #include <sys/wait.h>
15673 #ifndef WEXITSTATUS
15674 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15675 #endif
15676 #ifndef WIFEXITED
15677 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15678 #endif
15679
15680 int
15681 main (void)
15682 {
15683 int s;
15684 wait (&s);
15685 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15686 ;
15687 return 0;
15688 }
15689 _ACEOF
15690 if ac_fn_c_try_compile "$LINENO"
15691 then :
15692 ac_cv_header_sys_wait_h=yes
15693 else case e in #(
15694 e) ac_cv_header_sys_wait_h=no ;;
15695 esac
15696 fi
15697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15698 esac
15699 fi
15700 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15701 printf '%s\n' "$ac_cv_header_sys_wait_h" >&6; }
15702 if test $ac_cv_header_sys_wait_h = yes; then
15703
15704 printf '%s\n' "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15705
15706 fi
15707
15708 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15709 if test "x$ac_cv_header_fcntl_h" = xyes
15710 then :
15711 printf '%s\n' "#define HAVE_FCNTL_H 1" >>confdefs.h
15712
15713 fi
15714 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15715 if test "x$ac_cv_header_limits_h" = xyes
15716 then :
15717 printf '%s\n' "#define HAVE_LIMITS_H 1" >>confdefs.h
15718
15719 fi
15720 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
15721 if test "x$ac_cv_header_malloc_h" = xyes
15722 then :
15723 printf '%s\n' "#define HAVE_MALLOC_H 1" >>confdefs.h
15724
15725 fi
15726 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15727 if test "x$ac_cv_header_stdlib_h" = xyes
15728 then :
15729 printf '%s\n' "#define HAVE_STDLIB_H 1" >>confdefs.h
15730
15731 fi
15732 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
15733 if test "x$ac_cv_header_string_h" = xyes
15734 then :
15735 printf '%s\n' "#define HAVE_STRING_H 1" >>confdefs.h
15736
15737 fi
15738 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
15739 if test "x$ac_cv_header_sys_ioctl_h" = xyes
15740 then :
15741 printf '%s\n' "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
15742
15743 fi
15744 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15745 if test "x$ac_cv_header_sys_param_h" = xyes
15746 then :
15747 printf '%s\n' "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15748
15749 fi
15750 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15751 if test "x$ac_cv_header_unistd_h" = xyes
15752 then :
15753 printf '%s\n' "#define HAVE_UNISTD_H 1" >>confdefs.h
15754
15755 fi
15756 ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
15757 if test "x$ac_cv_header_curses_h" = xyes
15758 then :
15759 printf '%s\n' "#define HAVE_CURSES_H 1" >>confdefs.h
15760
15761 fi
15762 ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
15763 if test "x$ac_cv_header_ncurses_h" = xyes
15764 then :
15765 printf '%s\n' "#define HAVE_NCURSES_H 1" >>confdefs.h
15766
15767 fi
15768 ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
15769 if test "x$ac_cv_header_sys_cdefs_h" = xyes
15770 then :
15771 printf '%s\n' "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h
15772
15773 fi
15774 ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
15775 if test "x$ac_cv_header_termcap_h" = xyes
15776 then :
15777 printf '%s\n' "#define HAVE_TERMCAP_H 1" >>confdefs.h
15778
15779 fi
15780
15781
15782 ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
15783 if test "x$ac_cv_header_ncurses_h" = xyes
15784 then :
15785
15786 else case e in #(
15787 e) ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
15788 if test "x$ac_cv_header_curses_h" = xyes
15789 then :
15790
15791 else case e in #(
15792 e) ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
15793 if test "x$ac_cv_header_termcap_h" = xyes
15794 then :
15795
15796 else case e in #(
15797 e) as_fn_error $? "ncurses.h, curses.h, or termcap.h is required!" "$LINENO" 5 ;;
15798 esac
15799 fi
15800 ;;
15801 esac
15802 fi
15803 ;;
15804 esac
15805 fi
15806
15807
15808 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
15809 if test "x$ac_cv_header_termios_h" = xyes
15810 then :
15811
15812 else case e in #(
15813 e) as_fn_error $? "termios.h is required!" "$LINENO" 5 ;;
15814 esac
15815 fi
15816
15817
15818 ## include curses.h to prevent "Present But Cannot Be Compiled"
15819 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
15820 # include <curses.h>
15821 #elif HAVE_NCURSES_H
15822 # include <ncurses.h>
15823 #endif
15824
15825 "
15826 if test "x$ac_cv_header_term_h" = xyes
15827 then :
15828 printf '%s\n' "#define HAVE_TERM_H 1" >>confdefs.h
15829
15830 fi
15831
15832
15833 # Check for dirent.d_namlen field explicitly
15834 # (This is a bit more straightforward than, if not quite as portable as,
15835 # the recipe given by the autoconf maintainers.)
15836 ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#if HAVE_DIRENT_H
15837 #include <dirent.h>
15838 #endif
15839
15840 "
15841 if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes
15842 then :
15843
15844 printf '%s\n' "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
15845
15846 fi
15847
15848
15849 # Checks for typedefs, structures, and compiler characteristics.
15850 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15851 printf %s "checking for an ANSI C-conforming const... " >&6; }
15852 if test ${ac_cv_c_const+y}
15853 then :
15854 printf %s "(cached) " >&6
15855 else case e in #(
15856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857 /* end confdefs.h. */
15858
15859 int
15860 main (void)
15861 {
15862
15863 #ifndef __cplusplus
15864 /* Ultrix mips cc rejects this sort of thing. */
15865 typedef int charset[2];
15866 const charset cs = { 0, 0 };
15867 /* SunOS 4.1.1 cc rejects this. */
15868 char const *const *pcpcc;
15869 char **ppc;
15870 /* NEC SVR4.0.2 mips cc rejects this. */
15871 struct point {int x, y;};
15872 static struct point const zero = {0,0};
15873 /* IBM XL C 1.02.0.0 rejects this.
15874 It does not let you subtract one const X* pointer from another in
15875 an arm of an if-expression whose if-part is not a constant
15876 expression */
15877 const char *g = "string";
15878 pcpcc = &g + (g ? g-g : 0);
15879 /* HPUX 7.0 cc rejects these. */
15880 ++pcpcc;
15881 ppc = (char**) pcpcc;
15882 pcpcc = (char const *const *) ppc;
15883 { /* SCO 3.2v4 cc rejects this sort of thing. */
15884 char tx;
15885 char *t = &tx;
15886 char const *s = 0 ? (char *) 0 : (char const *) 0;
15887
15888 *t++ = 0;
15889 if (s) return 0;
15890 }
15891 { /* Derived from code rejected by Sun C 1.0 and similar vintage. */
15892 int x[] = {25, 17};
15893 typedef int const *iptr;
15894 iptr foo = &x[0];
15895 ++foo;
15896 if (!*foo) return 0;
15897 }
15898 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15899 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15900 struct s { int j; const int *ap[3]; } bx;
15901 struct s *b = &bx; b->j = 5;
15902 }
15903 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15904 const int foo = 10;
15905 if (!foo) return 0;
15906 }
15907 return !cs[0] && !zero.x;
15908 #endif
15909
15910 ;
15911 return 0;
15912 }
15913 _ACEOF
15914 if ac_fn_c_try_compile "$LINENO"
15915 then :
15916 ac_cv_c_const=yes
15917 else case e in #(
15918 e) ac_cv_c_const=no ;;
15919 esac
15920 fi
15921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15922 esac
15923 fi
15924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15925 printf '%s\n' "$ac_cv_c_const" >&6; }
15926 if test $ac_cv_c_const = no; then
15927
15928 printf '%s\n' "#define const /**/" >>confdefs.h
15929
15930 fi
15931
15932
15933 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
15934 "
15935 if test "x$ac_cv_type_pid_t" = xyes
15936 then :
15937
15938 else case e in #(
15939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15941
15942 #if defined _WIN64 && !defined __CYGWIN__
15943 LLP64
15944 #endif
15945
15946 int
15947 main (void)
15948 {
15949
15950 ;
15951 return 0;
15952 }
15953
15954 _ACEOF
15955 if ac_fn_c_try_compile "$LINENO"
15956 then :
15957 ac_pid_type='int'
15958 else case e in #(
15959 e) ac_pid_type='__int64' ;;
15960 esac
15961 fi
15962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15963
15964 printf '%s\n' "#define pid_t $ac_pid_type" >>confdefs.h
15965
15966 ;;
15967 esac
15968 fi
15969
15970
15971 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15972 if test "x$ac_cv_type_size_t" = xyes
15973 then :
15974
15975 else case e in #(
15976 e)
15977 printf '%s\n' "#define size_t unsigned int" >>confdefs.h
15978 ;;
15979 esac
15980 fi
15981
15982 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
15983 if test "x$ac_cv_type_u_int32_t" = xyes
15984 then :
15985
15986 printf '%s\n' "#define HAVE_U_INT32_T 1" >>confdefs.h
15987
15988
15989 fi
15990
15991
15992 # Checks for library functions.
15993 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15994 printf %s "checking whether closedir returns void... " >&6; }
15995 if test ${ac_cv_func_closedir_void+y}
15996 then :
15997 printf %s "(cached) " >&6
15998 else case e in #(
15999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000 /* end confdefs.h. */
16001
16002 #include <$ac_header_dirent>
16003
16004 int
16005 main (void)
16006 {
16007
16008 return closedir(0);
16009
16010 ;
16011 return 0;
16012 }
16013 _ACEOF
16014 if ac_fn_c_try_compile "$LINENO"
16015 then :
16016 ac_cv_func_closedir_void=no
16017 else case e in #(
16018 e) ac_cv_func_closedir_void=yes ;;
16019 esac
16020 fi
16021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16022 esac
16023 fi
16024 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
16025 printf '%s\n' "$ac_cv_func_closedir_void" >&6; }
16026 if test $ac_cv_func_closedir_void = yes; then
16027
16028 printf '%s\n' "#define CLOSEDIR_VOID 1" >>confdefs.h
16029
16030 fi
16031
16032
16033 ac_func=
16034 for ac_item in $ac_func_c_list
16035 do
16036 if test $ac_func; then
16037 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
16038 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
16039 echo "#define $ac_item 1" >> confdefs.h
16040 fi
16041 ac_func=
16042 else
16043 ac_func=$ac_item
16044 fi
16045 done
16046
16047
16048
16049 if test "x$ac_cv_func_fork" = xyes; then
16050 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16051 printf %s "checking for working fork... " >&6; }
16052 if test ${ac_cv_func_fork_works+y}
16053 then :
16054 printf %s "(cached) " >&6
16055 else case e in #(
16056 e) if test "$cross_compiling" = yes
16057 then :
16058 ac_cv_func_fork_works=cross
16059 else case e in #(
16060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062 $ac_includes_default
16063 int
16064 main (void)
16065 {
16066
16067 /* By R. Kuhlmann. */
16068 return fork () < 0;
16069
16070 ;
16071 return 0;
16072 }
16073 _ACEOF
16074 if ac_fn_c_try_run "$LINENO"
16075 then :
16076 ac_cv_func_fork_works=yes
16077 else case e in #(
16078 e) ac_cv_func_fork_works=no ;;
16079 esac
16080 fi
16081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16082 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16083 esac
16084 fi
16085 ;;
16086 esac
16087 fi
16088 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16089 printf '%s\n' "$ac_cv_func_fork_works" >&6; }
16090
16091 else
16092 ac_cv_func_fork_works=$ac_cv_func_fork
16093 fi
16094 if test "x$ac_cv_func_fork_works" = xcross; then
16095 case $host in
16096 *-*-amigaos* | *-*-msdosdjgpp*)
16097 # Override, as these systems have only a dummy fork() stub
16098 ac_cv_func_fork_works=no
16099 ;;
16100 *)
16101 ac_cv_func_fork_works=yes
16102 ;;
16103 esac
16104 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16105 printf '%s\n' "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16106 fi
16107 ac_cv_func_vfork_works=$ac_cv_func_vfork
16108 if test "x$ac_cv_func_vfork" = xyes; then
16109 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16110 printf %s "checking for working vfork... " >&6; }
16111 if test ${ac_cv_func_vfork_works+y}
16112 then :
16113 printf %s "(cached) " >&6
16114 else case e in #(
16115 e) if test "$cross_compiling" = yes
16116 then :
16117 ac_cv_func_vfork_works=cross
16118 else case e in #(
16119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16121 /* Thanks to Paul Eggert for this test. */
16122 $ac_includes_default
16123 #include <signal.h>
16124 #include <sys/wait.h>
16125 #ifdef HAVE_VFORK_H
16126 # include <vfork.h>
16127 #endif
16128
16129 static void
16130 do_nothing (int sig)
16131 {
16132 (void) sig;
16133 }
16134
16135 /* On some sparc systems, changes by the child to local and incoming
16136 argument registers are propagated back to the parent. The compiler
16137 is told about this with #include <vfork.h>, but some compilers
16138 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16139 static variable whose address is put into a register that is
16140 clobbered by the vfork. */
16141 static void
16142 sparc_address_test (int arg)
16143 {
16144 static pid_t child;
16145 if (!child) {
16146 child = vfork ();
16147 if (child < 0) {
16148 perror ("vfork");
16149 _exit(2);
16150 }
16151 if (!child) {
16152 arg = getpid();
16153 write(-1, "", 0);
16154 _exit (arg);
16155 }
16156 }
16157 }
16158
16159 int
16160 main (void)
16161 {
16162 pid_t parent = getpid ();
16163 pid_t child;
16164
16165 sparc_address_test (0);
16166
16167 /* On Solaris 2.4, changes by the child to the signal handler
16168 also munge signal handlers in the parent. To detect this,
16169 start by putting the parent's handler in a known state. */
16170 signal (SIGTERM, SIG_DFL);
16171
16172 child = vfork ();
16173
16174 if (child == 0) {
16175 /* Here is another test for sparc vfork register problems. This
16176 test uses lots of local variables, at least as many local
16177 variables as main has allocated so far including compiler
16178 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16179 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16180 reuse the register of parent for one of the local variables,
16181 since it will think that parent can't possibly be used any more
16182 in this routine. Assigning to the local variable will thus
16183 munge parent in the parent process. */
16184 pid_t
16185 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16186 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16187 /* Convince the compiler that p..p7 are live; otherwise, it might
16188 use the same hardware register for all 8 local variables. */
16189 if (p != p1 || p != p2 || p != p3 || p != p4
16190 || p != p5 || p != p6 || p != p7)
16191 _exit(1);
16192
16193 /* Alter the child's signal handler. */
16194 if (signal (SIGTERM, do_nothing) != SIG_DFL)
16195 _exit(1);
16196
16197 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16198 from child file descriptors. If the child closes a descriptor
16199 before it execs or exits, this munges the parent's descriptor
16200 as well. Test for this by closing stdout in the child. */
16201 _exit(close(fileno(stdout)) != 0);
16202 } else {
16203 int status;
16204 struct stat st;
16205
16206 while (wait(&status) != child)
16207 ;
16208 return (
16209 /* Was there some problem with vforking? */
16210 child < 0
16211
16212 /* Did the child munge the parent's signal handler? */
16213 || signal (SIGTERM, SIG_DFL) != SIG_DFL
16214
16215 /* Did the child fail? (This shouldn't happen.) */
16216 || status
16217
16218 /* Did the vfork/compiler bug occur? */
16219 || parent != getpid()
16220
16221 /* Did the file descriptor bug occur? */
16222 || fstat(fileno(stdout), &st) != 0
16223 );
16224 }
16225 }
16226 _ACEOF
16227 if ac_fn_c_try_run "$LINENO"
16228 then :
16229 ac_cv_func_vfork_works=yes
16230 else case e in #(
16231 e) ac_cv_func_vfork_works=no ;;
16232 esac
16233 fi
16234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16235 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16236 esac
16237 fi
16238 ;;
16239 esac
16240 fi
16241 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16242 printf '%s\n' "$ac_cv_func_vfork_works" >&6; }
16243
16244 fi;
16245 if test "x$ac_cv_func_fork_works" = xcross; then
16246 ac_cv_func_vfork_works=$ac_cv_func_vfork
16247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16248 printf '%s\n' "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16249 fi
16250
16251 if test "x$ac_cv_func_vfork_works" = xyes; then
16252
16253 printf '%s\n' "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16254
16255 else
16256
16257 printf '%s\n' "#define vfork fork" >>confdefs.h
16258
16259 fi
16260 if test "x$ac_cv_func_fork_works" = xyes; then
16261
16262 printf '%s\n' "#define HAVE_WORKING_FORK 1" >>confdefs.h
16263
16264 fi
16265
16266 ac_ext=c
16267 ac_cpp='$CPP $CPPFLAGS'
16268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16271 if test -n "$ac_tool_prefix"; then
16272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16274 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16275 printf %s "checking for $ac_word... " >&6; }
16276 if test ${ac_cv_prog_CC+y}
16277 then :
16278 printf %s "(cached) " >&6
16279 else case e in #(
16280 e) if test -n "$CC"; then
16281 ac_cv_prog_CC="$CC" # Let the user override the test.
16282 else
16283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16284 for as_dir in $PATH
16285 do
16286 IFS=$as_save_IFS
16287 case $as_dir in #(((
16288 '') as_dir=./ ;;
16289 */) ;;
16290 *) as_dir=$as_dir/ ;;
16291 esac
16292 for ac_exec_ext in '' $ac_executable_extensions; do
16293 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16294 ac_cv_prog_CC="${ac_tool_prefix}gcc"
16295 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16296 break 2
16297 fi
16298 done
16299 done
16300 IFS=$as_save_IFS
16301
16302 fi ;;
16303 esac
16304 fi
16305 CC=$ac_cv_prog_CC
16306 if test -n "$CC"; then
16307 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16308 printf '%s\n' "$CC" >&6; }
16309 else
16310 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
16311 printf '%s\n' "no" >&6; }
16312 fi
16313
16314
16315 fi
16316 if test -z "$ac_cv_prog_CC"; then
16317 ac_ct_CC=$CC
16318 # Extract the first word of "gcc", so it can be a program name with args.
16319 set dummy gcc; ac_word=$2
16320 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16321 printf %s "checking for $ac_word... " >&6; }
16322 if test ${ac_cv_prog_ac_ct_CC+y}
16323 then :
16324 printf %s "(cached) " >&6
16325 else case e in #(
16326 e) if test -n "$ac_ct_CC"; then
16327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16328 else
16329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16330 for as_dir in $PATH
16331 do
16332 IFS=$as_save_IFS
16333 case $as_dir in #(((
16334 '') as_dir=./ ;;
16335 */) ;;
16336 *) as_dir=$as_dir/ ;;
16337 esac
16338 for ac_exec_ext in '' $ac_executable_extensions; do
16339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16340 ac_cv_prog_ac_ct_CC="gcc"
16341 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16342 break 2
16343 fi
16344 done
16345 done
16346 IFS=$as_save_IFS
16347
16348 fi ;;
16349 esac
16350 fi
16351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16352 if test -n "$ac_ct_CC"; then
16353 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16354 printf '%s\n' "$ac_ct_CC" >&6; }
16355 else
16356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
16357 printf '%s\n' "no" >&6; }
16358 fi
16359
16360 if test "x$ac_ct_CC" = x; then
16361 CC=""
16362 else
16363 case $cross_compiling:$ac_tool_warned in
16364 yes:)
16365 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16366 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16367 ac_tool_warned=yes ;;
16368 esac
16369 CC=$ac_ct_CC
16370 fi
16371 else
16372 CC="$ac_cv_prog_CC"
16373 fi
16374
16375 if test -z "$CC"; then
16376 if test -n "$ac_tool_prefix"; then
16377 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16378 set dummy ${ac_tool_prefix}cc; ac_word=$2
16379 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16380 printf %s "checking for $ac_word... " >&6; }
16381 if test ${ac_cv_prog_CC+y}
16382 then :
16383 printf %s "(cached) " >&6
16384 else case e in #(
16385 e) if test -n "$CC"; then
16386 ac_cv_prog_CC="$CC" # Let the user override the test.
16387 else
16388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16389 for as_dir in $PATH
16390 do
16391 IFS=$as_save_IFS
16392 case $as_dir in #(((
16393 '') as_dir=./ ;;
16394 */) ;;
16395 *) as_dir=$as_dir/ ;;
16396 esac
16397 for ac_exec_ext in '' $ac_executable_extensions; do
16398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16399 ac_cv_prog_CC="${ac_tool_prefix}cc"
16400 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16401 break 2
16402 fi
16403 done
16404 done
16405 IFS=$as_save_IFS
16406
16407 fi ;;
16408 esac
16409 fi
16410 CC=$ac_cv_prog_CC
16411 if test -n "$CC"; then
16412 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16413 printf '%s\n' "$CC" >&6; }
16414 else
16415 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
16416 printf '%s\n' "no" >&6; }
16417 fi
16418
16419
16420 fi
16421 fi
16422 if test -z "$CC"; then
16423 # Extract the first word of "cc", so it can be a program name with args.
16424 set dummy cc; ac_word=$2
16425 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16426 printf %s "checking for $ac_word... " >&6; }
16427 if test ${ac_cv_prog_CC+y}
16428 then :
16429 printf %s "(cached) " >&6
16430 else case e in #(
16431 e) if test -n "$CC"; then
16432 ac_cv_prog_CC="$CC" # Let the user override the test.
16433 else
16434 ac_prog_rejected=no
16435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16436 for as_dir in $PATH
16437 do
16438 IFS=$as_save_IFS
16439 case $as_dir in #(((
16440 '') as_dir=./ ;;
16441 */) ;;
16442 *) as_dir=$as_dir/ ;;
16443 esac
16444 for ac_exec_ext in '' $ac_executable_extensions; do
16445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16446 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16447 ac_prog_rejected=yes
16448 continue
16449 fi
16450 ac_cv_prog_CC="cc"
16451 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16452 break 2
16453 fi
16454 done
16455 done
16456 IFS=$as_save_IFS
16457
16458 if test $ac_prog_rejected = yes; then
16459 # We found a bogon in the path, so make sure we never use it.
16460 set dummy $ac_cv_prog_CC
16461 shift
16462 if test $# != 0; then
16463 # We chose a different compiler from the bogus one.
16464 # However, it has the same basename, so the bogon will be chosen
16465 # first if we set CC to just the basename; use the full file name.
16466 shift
16467 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
16468 fi
16469 fi
16470 fi ;;
16471 esac
16472 fi
16473 CC=$ac_cv_prog_CC
16474 if test -n "$CC"; then
16475 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16476 printf '%s\n' "$CC" >&6; }
16477 else
16478 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
16479 printf '%s\n' "no" >&6; }
16480 fi
16481
16482
16483 fi
16484 if test -z "$CC"; then
16485 if test -n "$ac_tool_prefix"; then
16486 for ac_prog in cl.exe
16487 do
16488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16490 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16491 printf %s "checking for $ac_word... " >&6; }
16492 if test ${ac_cv_prog_CC+y}
16493 then :
16494 printf %s "(cached) " >&6
16495 else case e in #(
16496 e) if test -n "$CC"; then
16497 ac_cv_prog_CC="$CC" # Let the user override the test.
16498 else
16499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16500 for as_dir in $PATH
16501 do
16502 IFS=$as_save_IFS
16503 case $as_dir in #(((
16504 '') as_dir=./ ;;
16505 */) ;;
16506 *) as_dir=$as_dir/ ;;
16507 esac
16508 for ac_exec_ext in '' $ac_executable_extensions; do
16509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16510 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16511 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16512 break 2
16513 fi
16514 done
16515 done
16516 IFS=$as_save_IFS
16517
16518 fi ;;
16519 esac
16520 fi
16521 CC=$ac_cv_prog_CC
16522 if test -n "$CC"; then
16523 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16524 printf '%s\n' "$CC" >&6; }
16525 else
16526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
16527 printf '%s\n' "no" >&6; }
16528 fi
16529
16530
16531 test -n "$CC" && break
16532 done
16533 fi
16534 if test -z "$CC"; then
16535 ac_ct_CC=$CC
16536 for ac_prog in cl.exe
16537 do
16538 # Extract the first word of "$ac_prog", so it can be a program name with args.
16539 set dummy $ac_prog; ac_word=$2
16540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16541 printf %s "checking for $ac_word... " >&6; }
16542 if test ${ac_cv_prog_ac_ct_CC+y}
16543 then :
16544 printf %s "(cached) " >&6
16545 else case e in #(
16546 e) if test -n "$ac_ct_CC"; then
16547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16548 else
16549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16550 for as_dir in $PATH
16551 do
16552 IFS=$as_save_IFS
16553 case $as_dir in #(((
16554 '') as_dir=./ ;;
16555 */) ;;
16556 *) as_dir=$as_dir/ ;;
16557 esac
16558 for ac_exec_ext in '' $ac_executable_extensions; do
16559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16560 ac_cv_prog_ac_ct_CC="$ac_prog"
16561 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16562 break 2
16563 fi
16564 done
16565 done
16566 IFS=$as_save_IFS
16567
16568 fi ;;
16569 esac
16570 fi
16571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16572 if test -n "$ac_ct_CC"; then
16573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16574 printf '%s\n' "$ac_ct_CC" >&6; }
16575 else
16576 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
16577 printf '%s\n' "no" >&6; }
16578 fi
16579
16580
16581 test -n "$ac_ct_CC" && break
16582 done
16583
16584 if test "x$ac_ct_CC" = x; then
16585 CC=""
16586 else
16587 case $cross_compiling:$ac_tool_warned in
16588 yes:)
16589 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16590 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16591 ac_tool_warned=yes ;;
16592 esac
16593 CC=$ac_ct_CC
16594 fi
16595 fi
16596
16597 fi
16598 if test -z "$CC"; then
16599 if test -n "$ac_tool_prefix"; then
16600 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
16601 set dummy ${ac_tool_prefix}clang; ac_word=$2
16602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16603 printf %s "checking for $ac_word... " >&6; }
16604 if test ${ac_cv_prog_CC+y}
16605 then :
16606 printf %s "(cached) " >&6
16607 else case e in #(
16608 e) if test -n "$CC"; then
16609 ac_cv_prog_CC="$CC" # Let the user override the test.
16610 else
16611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16612 for as_dir in $PATH
16613 do
16614 IFS=$as_save_IFS
16615 case $as_dir in #(((
16616 '') as_dir=./ ;;
16617 */) ;;
16618 *) as_dir=$as_dir/ ;;
16619 esac
16620 for ac_exec_ext in '' $ac_executable_extensions; do
16621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16622 ac_cv_prog_CC="${ac_tool_prefix}clang"
16623 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16624 break 2
16625 fi
16626 done
16627 done
16628 IFS=$as_save_IFS
16629
16630 fi ;;
16631 esac
16632 fi
16633 CC=$ac_cv_prog_CC
16634 if test -n "$CC"; then
16635 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16636 printf '%s\n' "$CC" >&6; }
16637 else
16638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
16639 printf '%s\n' "no" >&6; }
16640 fi
16641
16642
16643 fi
16644 if test -z "$ac_cv_prog_CC"; then
16645 ac_ct_CC=$CC
16646 # Extract the first word of "clang", so it can be a program name with args.
16647 set dummy clang; ac_word=$2
16648 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16649 printf %s "checking for $ac_word... " >&6; }
16650 if test ${ac_cv_prog_ac_ct_CC+y}
16651 then :
16652 printf %s "(cached) " >&6
16653 else case e in #(
16654 e) if test -n "$ac_ct_CC"; then
16655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16656 else
16657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16658 for as_dir in $PATH
16659 do
16660 IFS=$as_save_IFS
16661 case $as_dir in #(((
16662 '') as_dir=./ ;;
16663 */) ;;
16664 *) as_dir=$as_dir/ ;;
16665 esac
16666 for ac_exec_ext in '' $ac_executable_extensions; do
16667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16668 ac_cv_prog_ac_ct_CC="clang"
16669 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16670 break 2
16671 fi
16672 done
16673 done
16674 IFS=$as_save_IFS
16675
16676 fi ;;
16677 esac
16678 fi
16679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16680 if test -n "$ac_ct_CC"; then
16681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16682 printf '%s\n' "$ac_ct_CC" >&6; }
16683 else
16684 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
16685 printf '%s\n' "no" >&6; }
16686 fi
16687
16688 if test "x$ac_ct_CC" = x; then
16689 CC=""
16690 else
16691 case $cross_compiling:$ac_tool_warned in
16692 yes:)
16693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16694 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16695 ac_tool_warned=yes ;;
16696 esac
16697 CC=$ac_ct_CC
16698 fi
16699 else
16700 CC="$ac_cv_prog_CC"
16701 fi
16702
16703 fi
16704
16705
16706 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16707 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
16708 as_fn_error $? "no acceptable C compiler found in \$PATH
16709 See 'config.log' for more details" "$LINENO" 5; }
16710
16711 # Provide some information about the compiler.
16712 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16713 set X $ac_compile
16714 ac_compiler=$2
16715 for ac_option in --version -v -V -qversion -version; do
16716 { { ac_try="$ac_compiler $ac_option >&5"
16717 case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720 esac
16721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16722 printf '%s\n' "$ac_try_echo"; } >&5
16723 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16724 ac_status=$?
16725 if test -s conftest.err; then
16726 sed '10a\
16727 ... rest of stderr output deleted ...
16728 10q' conftest.err >conftest.er1
16729 cat conftest.er1 >&5
16730 fi
16731 rm -f conftest.er1 conftest.err
16732 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16733 test $ac_status = 0; }
16734 done
16735
16736 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
16737 printf %s "checking whether the compiler supports GNU C... " >&6; }
16738 if test ${ac_cv_c_compiler_gnu+y}
16739 then :
16740 printf %s "(cached) " >&6
16741 else case e in #(
16742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743 /* end confdefs.h. */
16744
16745 int
16746 main (void)
16747 {
16748 #ifndef __GNUC__
16749 choke me
16750 #endif
16751
16752 ;
16753 return 0;
16754 }
16755 _ACEOF
16756 if ac_fn_c_try_compile "$LINENO"
16757 then :
16758 ac_compiler_gnu=yes
16759 else case e in #(
16760 e) ac_compiler_gnu=no ;;
16761 esac
16762 fi
16763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16765 ;;
16766 esac
16767 fi
16768 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16769 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
16770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16771
16772 if test $ac_compiler_gnu = yes; then
16773 GCC=yes
16774 else
16775 GCC=
16776 fi
16777 ac_test_CFLAGS=${CFLAGS+y}
16778 ac_save_CFLAGS=$CFLAGS
16779 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16780 printf %s "checking whether $CC accepts -g... " >&6; }
16781 if test ${ac_cv_prog_cc_g+y}
16782 then :
16783 printf %s "(cached) " >&6
16784 else case e in #(
16785 e) ac_save_c_werror_flag=$ac_c_werror_flag
16786 ac_c_werror_flag=yes
16787 ac_cv_prog_cc_g=no
16788 CFLAGS="-g"
16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h. */
16791
16792 int
16793 main (void)
16794 {
16795
16796 ;
16797 return 0;
16798 }
16799 _ACEOF
16800 if ac_fn_c_try_compile "$LINENO"
16801 then :
16802 ac_cv_prog_cc_g=yes
16803 else case e in #(
16804 e) CFLAGS=""
16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806 /* end confdefs.h. */
16807
16808 int
16809 main (void)
16810 {
16811
16812 ;
16813 return 0;
16814 }
16815 _ACEOF
16816 if ac_fn_c_try_compile "$LINENO"
16817 then :
16818
16819 else case e in #(
16820 e) ac_c_werror_flag=$ac_save_c_werror_flag
16821 CFLAGS="-g"
16822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16823 /* end confdefs.h. */
16824
16825 int
16826 main (void)
16827 {
16828
16829 ;
16830 return 0;
16831 }
16832 _ACEOF
16833 if ac_fn_c_try_compile "$LINENO"
16834 then :
16835 ac_cv_prog_cc_g=yes
16836 fi
16837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16838 esac
16839 fi
16840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16841 esac
16842 fi
16843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16844 ac_c_werror_flag=$ac_save_c_werror_flag ;;
16845 esac
16846 fi
16847 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16848 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
16849 if test $ac_test_CFLAGS; then
16850 CFLAGS=$ac_save_CFLAGS
16851 elif test $ac_cv_prog_cc_g = yes; then
16852 if test "$GCC" = yes; then
16853 CFLAGS="-g -O2"
16854 else
16855 CFLAGS="-g"
16856 fi
16857 else
16858 if test "$GCC" = yes; then
16859 CFLAGS="-O2"
16860 else
16861 CFLAGS=
16862 fi
16863 fi
16864 ac_prog_cc_stdc=no
16865 if test x$ac_prog_cc_stdc = xno
16866 then :
16867 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
16868 printf %s "checking for $CC option to enable C23 features... " >&6; }
16869 if test ${ac_cv_prog_cc_c23+y}
16870 then :
16871 printf %s "(cached) " >&6
16872 else case e in #(
16873 e) ac_cv_prog_cc_c23=no
16874 ac_save_CC=$CC
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16877 $ac_c_conftest_c23_program
16878 _ACEOF
16879 for ac_arg in '' -std=gnu23
16880 do
16881 CC="$ac_save_CC $ac_arg"
16882 if ac_fn_c_try_compile "$LINENO"
16883 then :
16884 ac_cv_prog_cc_c23=$ac_arg
16885 fi
16886 rm -f core conftest.err conftest.$ac_objext conftest.beam
16887 test "x$ac_cv_prog_cc_c23" != "xno" && break
16888 done
16889 rm -f conftest.$ac_ext
16890 CC=$ac_save_CC ;;
16891 esac
16892 fi
16893
16894 if test "x$ac_cv_prog_cc_c23" = xno
16895 then :
16896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16897 printf '%s\n' "unsupported" >&6; }
16898 else case e in #(
16899 e) if test "x$ac_cv_prog_cc_c23" = x
16900 then :
16901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16902 printf '%s\n' "none needed" >&6; }
16903 else case e in #(
16904 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
16905 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
16906 CC="$CC $ac_cv_prog_cc_c23" ;;
16907 esac
16908 fi
16909 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
16910 ac_prog_cc_stdc=c23 ;;
16911 esac
16912 fi
16913 fi
16914 if test x$ac_prog_cc_stdc = xno
16915 then :
16916 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
16917 printf %s "checking for $CC option to enable C11 features... " >&6; }
16918 if test ${ac_cv_prog_cc_c11+y}
16919 then :
16920 printf %s "(cached) " >&6
16921 else case e in #(
16922 e) ac_cv_prog_cc_c11=no
16923 ac_save_CC=$CC
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16926 $ac_c_conftest_c11_program
16927 _ACEOF
16928 for ac_arg in '' -std=gnu11 -std:c11
16929 do
16930 CC="$ac_save_CC $ac_arg"
16931 if ac_fn_c_try_compile "$LINENO"
16932 then :
16933 ac_cv_prog_cc_c11=$ac_arg
16934 fi
16935 rm -f core conftest.err conftest.$ac_objext conftest.beam
16936 test "x$ac_cv_prog_cc_c11" != "xno" && break
16937 done
16938 rm -f conftest.$ac_ext
16939 CC=$ac_save_CC ;;
16940 esac
16941 fi
16942
16943 if test "x$ac_cv_prog_cc_c11" = xno
16944 then :
16945 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16946 printf '%s\n' "unsupported" >&6; }
16947 else case e in #(
16948 e) if test "x$ac_cv_prog_cc_c11" = x
16949 then :
16950 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16951 printf '%s\n' "none needed" >&6; }
16952 else case e in #(
16953 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
16954 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
16955 CC="$CC $ac_cv_prog_cc_c11" ;;
16956 esac
16957 fi
16958 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
16959 ac_prog_cc_stdc=c11 ;;
16960 esac
16961 fi
16962 fi
16963 if test x$ac_prog_cc_stdc = xno
16964 then :
16965 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
16966 printf %s "checking for $CC option to enable C99 features... " >&6; }
16967 if test ${ac_cv_prog_cc_c99+y}
16968 then :
16969 printf %s "(cached) " >&6
16970 else case e in #(
16971 e) ac_cv_prog_cc_c99=no
16972 ac_save_CC=$CC
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16975 $ac_c_conftest_c99_program
16976 _ACEOF
16977 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
16978 do
16979 CC="$ac_save_CC $ac_arg"
16980 if ac_fn_c_try_compile "$LINENO"
16981 then :
16982 ac_cv_prog_cc_c99=$ac_arg
16983 fi
16984 rm -f core conftest.err conftest.$ac_objext conftest.beam
16985 test "x$ac_cv_prog_cc_c99" != "xno" && break
16986 done
16987 rm -f conftest.$ac_ext
16988 CC=$ac_save_CC ;;
16989 esac
16990 fi
16991
16992 if test "x$ac_cv_prog_cc_c99" = xno
16993 then :
16994 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16995 printf '%s\n' "unsupported" >&6; }
16996 else case e in #(
16997 e) if test "x$ac_cv_prog_cc_c99" = x
16998 then :
16999 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17000 printf '%s\n' "none needed" >&6; }
17001 else case e in #(
17002 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
17003 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
17004 CC="$CC $ac_cv_prog_cc_c99" ;;
17005 esac
17006 fi
17007 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
17008 ac_prog_cc_stdc=c99 ;;
17009 esac
17010 fi
17011 fi
17012 if test x$ac_prog_cc_stdc = xno
17013 then :
17014 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
17015 printf %s "checking for $CC option to enable C89 features... " >&6; }
17016 if test ${ac_cv_prog_cc_c89+y}
17017 then :
17018 printf %s "(cached) " >&6
17019 else case e in #(
17020 e) ac_cv_prog_cc_c89=no
17021 ac_save_CC=$CC
17022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17023 /* end confdefs.h. */
17024 $ac_c_conftest_c89_program
17025 _ACEOF
17026 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17027 do
17028 CC="$ac_save_CC $ac_arg"
17029 if ac_fn_c_try_compile "$LINENO"
17030 then :
17031 ac_cv_prog_cc_c89=$ac_arg
17032 fi
17033 rm -f core conftest.err conftest.$ac_objext conftest.beam
17034 test "x$ac_cv_prog_cc_c89" != "xno" && break
17035 done
17036 rm -f conftest.$ac_ext
17037 CC=$ac_save_CC ;;
17038 esac
17039 fi
17040
17041 if test "x$ac_cv_prog_cc_c89" = xno
17042 then :
17043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17044 printf '%s\n' "unsupported" >&6; }
17045 else case e in #(
17046 e) if test "x$ac_cv_prog_cc_c89" = x
17047 then :
17048 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17049 printf '%s\n' "none needed" >&6; }
17050 else case e in #(
17051 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
17052 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
17053 CC="$CC $ac_cv_prog_cc_c89" ;;
17054 esac
17055 fi
17056 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
17057 ac_prog_cc_stdc=c89 ;;
17058 esac
17059 fi
17060 fi
17061
17062 ac_ext=c
17063 ac_cpp='$CPP $CPPFLAGS'
17064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17067
17068
17069 ac_ext=c
17070 ac_cpp='$CPP $CPPFLAGS'
17071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17074 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
17075 printf %s "checking whether $CC understands -c and -o together... " >&6; }
17076 if test ${am_cv_prog_cc_c_o+y}
17077 then :
17078 printf %s "(cached) " >&6
17079 else case e in #(
17080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17081 /* end confdefs.h. */
17082
17083 int
17084 main (void)
17085 {
17086
17087 ;
17088 return 0;
17089 }
17090 _ACEOF
17091 # Make sure it works both with $CC and with simple cc.
17092 # Following AC_PROG_CC_C_O, we do the test twice because some
17093 # compilers refuse to overwrite an existing .o file with -o,
17094 # though they will create one.
17095 am_cv_prog_cc_c_o=yes
17096 for am_i in 1 2; do
17097 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
17098 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } \
17102 && test -f conftest2.$ac_objext; then
17103 : OK
17104 else
17105 am_cv_prog_cc_c_o=no
17106 break
17107 fi
17108 done
17109 # aligned with autoconf, so not including core; see bug#72225.
17110 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
17111 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
17112 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
17113 unset am_i ;;
17114 esac
17115 fi
17116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
17117 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
17118 if test "$am_cv_prog_cc_c_o" != yes; then
17119 # Losing compiler, so override with the script.
17120 # FIXME: It is wrong to rewrite CC.
17121 # But if we don't then we get into trouble of one sort or another.
17122 # A longer-term fix would be to have automake use am__CC in this case,
17123 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17124 CC="$am_aux_dir/compile $CC"
17125 fi
17126 ac_ext=c
17127 ac_cpp='$CPP $CPPFLAGS'
17128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17131
17132
17133 ## _AIX is offended by rpl_malloc and rpl_realloc
17134 #AC_FUNC_MALLOC
17135 #AC_FUNC_REALLOC
17136 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17137 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
17138 if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
17139 then :
17140 printf %s "(cached) " >&6
17141 else case e in #(
17142 e) rm -f conftest.sym conftest.file
17143 echo >conftest.file
17144 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17145 if test "$cross_compiling" = yes
17146 then :
17147 case "$host_os" in # ((
17148 # Guess yes on glibc systems.
17149 *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
17150 # If we don't know, assume the worst.
17151 *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
17152 esac
17153 else case e in #(
17154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17155 /* end confdefs.h. */
17156 $ac_includes_default
17157 int
17158 main (void)
17159 {
17160 struct stat sbuf;
17161 /* Linux will dereference the symlink and fail, as required by POSIX.
17162 That is better in the sense that it means we will not
17163 have to compile and use the lstat wrapper. */
17164 return lstat ("conftest.sym/", &sbuf) == 0;
17165 ;
17166 return 0;
17167 }
17168 _ACEOF
17169 if ac_fn_c_try_run "$LINENO"
17170 then :
17171 ac_cv_func_lstat_dereferences_slashed_symlink=yes
17172 else case e in #(
17173 e) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
17174 esac
17175 fi
17176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17177 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17178 esac
17179 fi
17180
17181 else
17182 # If the 'ln -s' command failed, then we probably don't even
17183 # have an lstat function.
17184 ac_cv_func_lstat_dereferences_slashed_symlink=no
17185 fi
17186 rm -f conftest.sym conftest.file
17187 ;;
17188 esac
17189 fi
17190 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
17191 printf '%s\n' "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17192
17193 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
17194
17195 printf '%s\n' "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
17196
17197
17198 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
17199 case " $LIBOBJS " in
17200 *" lstat.$ac_objext "* ) ;;
17201 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
17202 ;;
17203 esac
17204
17205 fi
17206
17207 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
17208 printf %s "checking whether stat accepts an empty string... " >&6; }
17209 if test ${ac_cv_func_stat_empty_string_bug+y}
17210 then :
17211 printf %s "(cached) " >&6
17212 else case e in #(
17213 e) if test "$cross_compiling" = yes
17214 then :
17215 ac_cv_func_stat_empty_string_bug=yes
17216 else case e in #(
17217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17218 /* end confdefs.h. */
17219 $ac_includes_default
17220 int
17221 main (void)
17222 {
17223 struct stat sbuf;
17224 return stat ("", &sbuf) == 0;
17225 ;
17226 return 0;
17227 }
17228 _ACEOF
17229 if ac_fn_c_try_run "$LINENO"
17230 then :
17231 ac_cv_func_stat_empty_string_bug=no
17232 else case e in #(
17233 e) ac_cv_func_stat_empty_string_bug=yes ;;
17234 esac
17235 fi
17236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17237 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17238 esac
17239 fi
17240 ;;
17241 esac
17242 fi
17243 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
17244 printf '%s\n' "$ac_cv_func_stat_empty_string_bug" >&6; }
17245 if test $ac_cv_func_stat_empty_string_bug = yes; then
17246 case " $LIBOBJS " in
17247 *" stat.$ac_objext "* ) ;;
17248 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
17249 ;;
17250 esac
17251
17252
17253 printf '%s\n' "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h
17254
17255 fi
17256
17257 ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent"
17258 if test "x$ac_cv_func_endpwent" = xyes
17259 then :
17260 printf '%s\n' "#define HAVE_ENDPWENT 1" >>confdefs.h
17261
17262 fi
17263 ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
17264 if test "x$ac_cv_func_isascii" = xyes
17265 then :
17266 printf '%s\n' "#define HAVE_ISASCII 1" >>confdefs.h
17267
17268 fi
17269 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
17270 if test "x$ac_cv_func_memchr" = xyes
17271 then :
17272 printf '%s\n' "#define HAVE_MEMCHR 1" >>confdefs.h
17273
17274 fi
17275 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
17276 if test "x$ac_cv_func_memset" = xyes
17277 then :
17278 printf '%s\n' "#define HAVE_MEMSET 1" >>confdefs.h
17279
17280 fi
17281 ac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp"
17282 if test "x$ac_cv_func_re_comp" = xyes
17283 then :
17284 printf '%s\n' "#define HAVE_RE_COMP 1" >>confdefs.h
17285
17286 fi
17287 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
17288 if test "x$ac_cv_func_regcomp" = xyes
17289 then :
17290 printf '%s\n' "#define HAVE_REGCOMP 1" >>confdefs.h
17291
17292 fi
17293 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17294 if test "x$ac_cv_func_strcasecmp" = xyes
17295 then :
17296 printf '%s\n' "#define HAVE_STRCASECMP 1" >>confdefs.h
17297
17298 fi
17299 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
17300 if test "x$ac_cv_func_strchr" = xyes
17301 then :
17302 printf '%s\n' "#define HAVE_STRCHR 1" >>confdefs.h
17303
17304 fi
17305 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
17306 if test "x$ac_cv_func_strcspn" = xyes
17307 then :
17308 printf '%s\n' "#define HAVE_STRCSPN 1" >>confdefs.h
17309
17310 fi
17311 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
17312 if test "x$ac_cv_func_strdup" = xyes
17313 then :
17314 printf '%s\n' "#define HAVE_STRDUP 1" >>confdefs.h
17315
17316 fi
17317 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
17318 if test "x$ac_cv_func_strerror" = xyes
17319 then :
17320 printf '%s\n' "#define HAVE_STRERROR 1" >>confdefs.h
17321
17322 fi
17323 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
17324 if test "x$ac_cv_func_strrchr" = xyes
17325 then :
17326 printf '%s\n' "#define HAVE_STRRCHR 1" >>confdefs.h
17327
17328 fi
17329 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
17330 if test "x$ac_cv_func_strstr" = xyes
17331 then :
17332 printf '%s\n' "#define HAVE_STRSTR 1" >>confdefs.h
17333
17334 fi
17335 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
17336 if test "x$ac_cv_func_strtol" = xyes
17337 then :
17338 printf '%s\n' "#define HAVE_STRTOL 1" >>confdefs.h
17339
17340 fi
17341 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
17342 if test "x$ac_cv_func_issetugid" = xyes
17343 then :
17344 printf '%s\n' "#define HAVE_ISSETUGID 1" >>confdefs.h
17345
17346 fi
17347 ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
17348 if test "x$ac_cv_func_wcsdup" = xyes
17349 then :
17350 printf '%s\n' "#define HAVE_WCSDUP 1" >>confdefs.h
17351
17352 fi
17353 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17354 if test "x$ac_cv_func_strlcpy" = xyes
17355 then :
17356 printf '%s\n' "#define HAVE_STRLCPY 1" >>confdefs.h
17357
17358 fi
17359 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17360 if test "x$ac_cv_func_strlcat" = xyes
17361 then :
17362 printf '%s\n' "#define HAVE_STRLCAT 1" >>confdefs.h
17363
17364 fi
17365 ac_fn_c_check_func "$LINENO" "vis" "ac_cv_func_vis"
17366 if test "x$ac_cv_func_vis" = xyes
17367 then :
17368 printf '%s\n' "#define HAVE_VIS 1" >>confdefs.h
17369
17370 fi
17371 ac_fn_c_check_func "$LINENO" "strvis" "ac_cv_func_strvis"
17372 if test "x$ac_cv_func_strvis" = xyes
17373 then :
17374 printf '%s\n' "#define HAVE_STRVIS 1" >>confdefs.h
17375
17376 fi
17377 ac_fn_c_check_func "$LINENO" "strunvis" "ac_cv_func_strunvis"
17378 if test "x$ac_cv_func_strunvis" = xyes
17379 then :
17380 printf '%s\n' "#define HAVE_STRUNVIS 1" >>confdefs.h
17381
17382 fi
17383 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
17384 if test "x$ac_cv_func___secure_getenv" = xyes
17385 then :
17386 printf '%s\n' "#define HAVE___SECURE_GETENV 1" >>confdefs.h
17387
17388 fi
17389 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
17390 if test "x$ac_cv_func_secure_getenv" = xyes
17391 then :
17392 printf '%s\n' "#define HAVE_SECURE_GETENV 1" >>confdefs.h
17393
17394 fi
17395 ac_fn_c_check_func "$LINENO" "reallocarr" "ac_cv_func_reallocarr"
17396 if test "x$ac_cv_func_reallocarr" = xyes
17397 then :
17398 printf '%s\n' "#define HAVE_REALLOCARR 1" >>confdefs.h
17399
17400 fi
17401
17402
17403 # strlcpy
17404 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17405 if test "x$ac_cv_func_strlcpy" = xyes
17406 then :
17407 found_strlcpy=yes
17408 else case e in #(
17409 e) found_strlcpy=no ;;
17410 esac
17411 fi
17412
17413 if test "x$found_strlcpy" = xyes; then
17414 HAVE_STRLCPY_TRUE=
17415 HAVE_STRLCPY_FALSE='#'
17416 else
17417 HAVE_STRLCPY_TRUE='#'
17418 HAVE_STRLCPY_FALSE=
17419 fi
17420
17421
17422 # strlcat
17423 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17424 if test "x$ac_cv_func_strlcat" = xyes
17425 then :
17426 found_strlcat=yes
17427 else case e in #(
17428 e) found_strlcat=no ;;
17429 esac
17430 fi
17431
17432 if test "x$found_strlcat" = xyes; then
17433 HAVE_STRLCAT_TRUE=
17434 HAVE_STRLCAT_FALSE='#'
17435 else
17436 HAVE_STRLCAT_TRUE='#'
17437 HAVE_STRLCAT_FALSE=
17438 fi
17439
17440
17441 # getline
17442 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
17443 if test "x$ac_cv_func_getline" = xyes
17444 then :
17445 found_getline=yes
17446 else case e in #(
17447 e) found_getline=no ;;
17448 esac
17449 fi
17450
17451 if test "x$found_getline" = xyes; then
17452 HAVE_GETLINE_TRUE=
17453 HAVE_GETLINE_FALSE='#'
17454 else
17455 HAVE_GETLINE_TRUE='#'
17456 HAVE_GETLINE_FALSE=
17457 fi
17458
17459
17460 # vis
17461 ac_fn_c_check_func "$LINENO" "vis" "ac_cv_func_vis"
17462 if test "x$ac_cv_func_vis" = xyes
17463 then :
17464 found_vis=yes
17465 else case e in #(
17466 e) found_vis=no ;;
17467 esac
17468 fi
17469
17470 if test "x$found_vis" = xyes; then
17471 HAVE_VIS_TRUE=
17472 HAVE_VIS_FALSE='#'
17473 else
17474 HAVE_VIS_TRUE='#'
17475 HAVE_VIS_FALSE=
17476 fi
17477
17478
17479 # unvis
17480 ac_fn_c_check_func "$LINENO" "unvis" "ac_cv_func_unvis"
17481 if test "x$ac_cv_func_unvis" = xyes
17482 then :
17483 found_unvis=yes
17484 else case e in #(
17485 e) found_unvis=no ;;
17486 esac
17487 fi
17488
17489 if test "x$found_unvis" = xyes; then
17490 HAVE_UNVIS_TRUE=
17491 HAVE_UNVIS_FALSE='#'
17492 else
17493 HAVE_UNVIS_TRUE='#'
17494 HAVE_UNVIS_FALSE=
17495 fi
17496
17497
17498
17499
17500 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix like" >&5
17501 printf %s "checking whether getpwnam_r and getpwuid_r are posix like... " >&6; }
17502 # The prototype for the POSIX version is:
17503 # int getpwnam_r(char *, struct passwd *, char *, size_t, struct passwd **)
17504 # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **);
17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h. */
17507 #include <stdlib.h>
17508 #include <sys/types.h>
17509 #include <pwd.h>
17510 int
17511 main (void)
17512 {
17513 getpwnam_r(NULL, NULL, NULL, (size_t)0, NULL);
17514 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
17515 ;
17516 return 0;
17517 }
17518 _ACEOF
17519 if ac_fn_c_try_link "$LINENO"
17520 then :
17521
17522 printf '%s\n' "#define HAVE_GETPW_R_POSIX 1" >>confdefs.h
17523
17524 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17525 printf '%s\n' "yes" >&6; }
17526 else case e in #(
17527 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17528 printf '%s\n' "no" >&6; } ;;
17529 esac
17530 fi
17531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17532 conftest$ac_exeext conftest.$ac_ext
17533
17534
17535 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix _draft_ like" >&5
17536 printf %s "checking whether getpwnam_r and getpwuid_r are posix _draft_ like... " >&6; }
17537 # The prototype for the POSIX draft version is:
17538 # struct passwd *getpwuid_r(uid_t, struct passwd *, char *, int);
17539 # struct passwd *getpwnam_r(char *, struct passwd *, char *, int);
17540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17541 /* end confdefs.h. */
17542 #include <stdlib.h>
17543 #include <sys/types.h>
17544 #include <pwd.h>
17545 int
17546 main (void)
17547 {
17548 getpwnam_r(NULL, NULL, NULL, (size_t)0);
17549 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0);
17550 ;
17551 return 0;
17552 }
17553 _ACEOF
17554 if ac_fn_c_try_link "$LINENO"
17555 then :
17556
17557 printf '%s\n' "#define HAVE_GETPW_R_DRAFT 1" >>confdefs.h
17558
17559 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17560 printf '%s\n' "yes" >&6; }
17561 else case e in #(
17562 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
17563 printf '%s\n' "no" >&6; } ;;
17564 esac
17565 fi
17566 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17567 conftest$ac_exeext conftest.$ac_ext
17568
17569
17570
17571
17572
17573 ac_config_files="$ac_config_files Makefile libedit.pc src/Makefile doc/Makefile examples/Makefile"
17574
17575 cat >confcache <<\_ACEOF
17576 # This file is a shell script that caches the results of configure
17577 # tests run on this system so they can be shared between configure
17578 # scripts and configure runs, see configure's option --config-cache.
17579 # It is not useful on other systems. If it contains results you don't
17580 # want to keep, you may remove or edit it.
17581 #
17582 # config.status only pays attention to the cache file if you give it
17583 # the --recheck option to rerun configure.
17584 #
17585 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17586 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17587 # following values.
17588
17589 _ACEOF
17590
17591 ac_cache_dump |
17592 sed '
17593 /^ac_cv_env_/b end
17594 t clear
17595 :clear
17596 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17597 t end
17598 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17599 :end' >>confcache
17600 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17601 if test -w "$cache_file"; then
17602 if test "x$cache_file" != "x/dev/null"; then
17603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17604 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
17605 if test ! -f "$cache_file" || test -h "$cache_file"; then
17606 cat confcache >"$cache_file"
17607 else
17608 case $cache_file in #(
17609 */* | ?:*)
17610 mv -f confcache "$cache_file"$$ &&
17611 mv -f "$cache_file"$$ "$cache_file" ;; #(
17612 *)
17613 mv -f confcache "$cache_file" ;;
17614 esac
17615 fi
17616 fi
17617 else
17618 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17619 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
17620 fi
17621 fi
17622 rm -f confcache
17623
17624 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17625 # Let make expand exec_prefix.
17626 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17627
17628 DEFS=-DHAVE_CONFIG_H
17629
17630 ac_libobjs=
17631 ac_ltlibobjs=
17632 U=
17633 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17634 # 1. Remove the extension, and $U if already installed.
17635 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17636 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
17637 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17638 # will be set to the directory where LIBOBJS objects are built.
17639 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17640 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17641 done
17642 LIBOBJS=$ac_libobjs
17643
17644 LTLIBOBJS=$ac_ltlibobjs
17645
17646
17647 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17648 printf %s "checking that generated files are newer than configure... " >&6; }
17649 if test -n "$am_sleep_pid"; then
17650 # Hide warnings about reused PIDs.
17651 wait $am_sleep_pid 2>/dev/null
17652 fi
17653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
17654 printf '%s\n' "done" >&6; }
17655 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17656 as_fn_error $? "conditional \"AMDEP\" was never defined.
17657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17658 fi
17659 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17660 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17662 fi
17663 case $enable_silent_rules in # (((
17664 yes) AM_DEFAULT_VERBOSITY=0;;
17665 no) AM_DEFAULT_VERBOSITY=1;;
17666 esac
17667 if test $am_cv_make_support_nested_variables = yes; then
17668 AM_V='$(V)'
17669 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17670 else
17671 AM_V=$AM_DEFAULT_VERBOSITY
17672 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17673 fi
17674
17675 if test -n "$EXEEXT"; then
17676 am__EXEEXT_TRUE=
17677 am__EXEEXT_FALSE='#'
17678 else
17679 am__EXEEXT_TRUE='#'
17680 am__EXEEXT_FALSE=
17681 fi
17682
17683 if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
17684 as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
17685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17686 fi
17687 if test -z "${HAVE_STRLCPY_TRUE}" && test -z "${HAVE_STRLCPY_FALSE}"; then
17688 as_fn_error $? "conditional \"HAVE_STRLCPY\" was never defined.
17689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17690 fi
17691 if test -z "${HAVE_STRLCAT_TRUE}" && test -z "${HAVE_STRLCAT_FALSE}"; then
17692 as_fn_error $? "conditional \"HAVE_STRLCAT\" was never defined.
17693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17694 fi
17695 if test -z "${HAVE_GETLINE_TRUE}" && test -z "${HAVE_GETLINE_FALSE}"; then
17696 as_fn_error $? "conditional \"HAVE_GETLINE\" was never defined.
17697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17698 fi
17699 if test -z "${HAVE_VIS_TRUE}" && test -z "${HAVE_VIS_FALSE}"; then
17700 as_fn_error $? "conditional \"HAVE_VIS\" was never defined.
17701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17702 fi
17703 if test -z "${HAVE_UNVIS_TRUE}" && test -z "${HAVE_UNVIS_FALSE}"; then
17704 as_fn_error $? "conditional \"HAVE_UNVIS\" was never defined.
17705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17706 fi
17707
17708 : "${CONFIG_STATUS=./config.status}"
17709 case $CONFIG_STATUS in #(
17710 -*) :
17711 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
17712 */*) :
17713 ;; #(
17714 *) :
17715 CONFIG_STATUS=./$CONFIG_STATUS ;;
17716 esac
17717
17718 ac_write_fail=0
17719 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
17720 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17721 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
17722 as_write_fail=0
17723 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
17724 #! $SHELL
17725 # Generated by $as_me.
17726 # Run this file to recreate the current configuration.
17727 # Compiler output produced by configure, useful for debugging
17728 # configure, is in config.log if it exists.
17729
17730 debug=false
17731 ac_cs_recheck=false
17732 ac_cs_silent=false
17733
17734 SHELL=\${CONFIG_SHELL-$SHELL}
17735 export SHELL
17736 _ASEOF
17737 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
17738 ## -------------------- ##
17739 ## M4sh Initialization. ##
17740 ## -------------------- ##
17741
17742 # Be more Bourne compatible
17743 DUALCASE=1; export DUALCASE # for MKS sh
17744 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17745 then :
17746 emulate sh
17747 NULLCMD=:
17748 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17749 # contradicts POSIX and common usage. Disable this.
17750 alias -g '${1+"$@"}'='"$@"'
17751 setopt NO_GLOB_SUBST
17752 else case e in #(
17753 e) case `(set -o) 2>/dev/null` in #(
17754 *posix*) :
17755 set -o posix ;; #(
17756 *) :
17757 ;;
17758 esac ;;
17759 esac
17760 fi
17761
17762
17763
17764 # Reset variables that may have inherited troublesome values from
17765 # the environment.
17766
17767 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17768 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17769 # side effect of setting IFS to empty, thus disabling word splitting.)
17770 # Quoting is to prevent editors from complaining about space-tab.
17771 as_nl='
17772 '
17773 export as_nl
17774 IFS=" "" $as_nl"
17775
17776 PS1='$ '
17777 PS2='> '
17778 PS4='+ '
17779
17780 # Ensure predictable behavior from utilities with locale-dependent output.
17781 LC_ALL=C
17782 export LC_ALL
17783 LANGUAGE=C
17784 export LANGUAGE
17785
17786 # We cannot yet rely on "unset" to work, but we need these variables
17787 # to be unset--not just set to an empty or harmless value--now, to
17788 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17789 # also avoids known problems related to "unset" and subshell syntax
17790 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17791 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17792 do eval test \${$as_var+y} \
17793 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17794 done
17795
17796 # Ensure that fds 0, 1, and 2 are open.
17797 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17798 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17799 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17800
17801 # The user is always right.
17802 if ${PATH_SEPARATOR+false} :; then
17803 PATH_SEPARATOR=:
17804 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17805 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17806 PATH_SEPARATOR=';'
17807 }
17808 fi
17809
17810
17811 # Find who we are. Look in the path if we contain no directory separator.
17812 as_myself=
17813 case $0 in #((
17814 *[\\/]* ) as_myself=$0 ;;
17815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17816 for as_dir in $PATH
17817 do
17818 IFS=$as_save_IFS
17819 case $as_dir in #(((
17820 '') as_dir=./ ;;
17821 */) ;;
17822 *) as_dir=$as_dir/ ;;
17823 esac
17824 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17825 done
17826 IFS=$as_save_IFS
17827
17828 ;;
17829 esac
17830 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17831 # in which case we are not to be found in the path.
17832 if test "x$as_myself" = x; then
17833 as_myself=$0
17834 fi
17835 if test ! -f "$as_myself"; then
17836 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17837 exit 1
17838 fi
17839
17840
17841
17842 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17843 # ----------------------------------------
17844 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17845 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17846 # script with STATUS, using 1 if that was 0.
17847 as_fn_error ()
17848 {
17849 as_status=$1; test $as_status -eq 0 && as_status=1
17850 if test "$4"; then
17851 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17852 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17853 fi
17854 printf '%s\n' "$as_me: error: $2" >&2
17855 as_fn_exit $as_status
17856 } # as_fn_error
17857
17858
17859 # as_fn_set_status STATUS
17860 # -----------------------
17861 # Set $? to STATUS, without forking.
17862 as_fn_set_status ()
17863 {
17864 return $1
17865 } # as_fn_set_status
17866
17867 # as_fn_exit STATUS
17868 # -----------------
17869 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17870 as_fn_exit ()
17871 {
17872 set +e
17873 as_fn_set_status $1
17874 exit $1
17875 } # as_fn_exit
17876
17877 # as_fn_unset VAR
17878 # ---------------
17879 # Portably unset VAR.
17880 as_fn_unset ()
17881 {
17882 { eval $1=; unset $1;}
17883 }
17884 as_unset=as_fn_unset
17885
17886 # as_fn_append VAR VALUE
17887 # ----------------------
17888 # Append the text in VALUE to the end of the definition contained in VAR. Take
17889 # advantage of any shell optimizations that allow amortized linear growth over
17890 # repeated appends, instead of the typical quadratic growth present in naive
17891 # implementations.
17892 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17893 then :
17894 eval 'as_fn_append ()
17895 {
17896 eval $1+=\$2
17897 }'
17898 else case e in #(
17899 e) as_fn_append ()
17900 {
17901 eval $1=\$$1\$2
17902 } ;;
17903 esac
17904 fi # as_fn_append
17905
17906 # as_fn_arith ARG...
17907 # ------------------
17908 # Perform arithmetic evaluation on the ARGs, and store the result in the
17909 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17910 # must be portable across $(()) and expr.
17911 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17912 then :
17913 eval 'as_fn_arith ()
17914 {
17915 as_val=$(( $* ))
17916 }'
17917 else case e in #(
17918 e) as_fn_arith ()
17919 {
17920 as_val=`expr "$@" || test $? -eq 1`
17921 } ;;
17922 esac
17923 fi # as_fn_arith
17924
17925
17926 if expr a : '\(a\)' >/dev/null 2>&1 &&
17927 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17928 as_expr=expr
17929 else
17930 as_expr=false
17931 fi
17932
17933 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17934 as_basename=basename
17935 else
17936 as_basename=false
17937 fi
17938
17939 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17940 as_dirname=dirname
17941 else
17942 as_dirname=false
17943 fi
17944
17945 as_me=`$as_basename -- "$0" ||
17946 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17947 X"$0" : 'X\(//\)$' \| \
17948 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17949 printf '%s\n' X/"$0" |
17950 sed '/^.*\/\([^/][^/]*\)\/*$/{
17951 s//\1/
17952 q
17953 }
17954 /^X\/\(\/\/\)$/{
17955 s//\1/
17956 q
17957 }
17958 /^X\/\(\/\).*/{
17959 s//\1/
17960 q
17961 }
17962 s/.*/./; q'`
17963
17964 # Avoid depending upon Character Ranges.
17965 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17966 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17967 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17968 as_cr_digits='0123456789'
17969 as_cr_alnum=$as_cr_Letters$as_cr_digits
17970
17971 rm -f conf$$ conf$$.exe conf$$.file
17972 if test -d conf$$.dir; then
17973 rm -f conf$$.dir/conf$$.file
17974 else
17975 rm -f conf$$.dir
17976 mkdir conf$$.dir 2>/dev/null
17977 fi
17978 if (echo >conf$$.file) 2>/dev/null; then
17979 if ln -s conf$$.file conf$$ 2>/dev/null; then
17980 as_ln_s='ln -s'
17981 # ... but there are two gotchas:
17982 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17983 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17984 # In both cases, we have to default to 'cp -pR'.
17985 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17986 as_ln_s='cp -pR'
17987 elif ln conf$$.file conf$$ 2>/dev/null; then
17988 as_ln_s=ln
17989 else
17990 as_ln_s='cp -pR'
17991 fi
17992 else
17993 as_ln_s='cp -pR'
17994 fi
17995 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17996 rmdir conf$$.dir 2>/dev/null
17997
17998
17999 # as_fn_mkdir_p
18000 # -------------
18001 # Create "$as_dir" as a directory, including parents if necessary.
18002 as_fn_mkdir_p ()
18003 {
18004
18005 case $as_dir in #(
18006 -*) as_dir=./$as_dir;;
18007 esac
18008 test -d "$as_dir" || eval $as_mkdir_p || {
18009 as_dirs=
18010 while :; do
18011 case $as_dir in #(
18012 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18013 *) as_qdir=$as_dir;;
18014 esac
18015 as_dirs="'$as_qdir' $as_dirs"
18016 as_dir=`$as_dirname -- "$as_dir" ||
18017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18018 X"$as_dir" : 'X\(//\)[^/]' \| \
18019 X"$as_dir" : 'X\(//\)$' \| \
18020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18021 printf '%s\n' X"$as_dir" |
18022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18023 s//\1/
18024 q
18025 }
18026 /^X\(\/\/\)[^/].*/{
18027 s//\1/
18028 q
18029 }
18030 /^X\(\/\/\)$/{
18031 s//\1/
18032 q
18033 }
18034 /^X\(\/\).*/{
18035 s//\1/
18036 q
18037 }
18038 s/.*/./; q'`
18039 test -d "$as_dir" && break
18040 done
18041 test -z "$as_dirs" || eval "mkdir $as_dirs"
18042 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18043
18044
18045 } # as_fn_mkdir_p
18046 if mkdir -p . 2>/dev/null; then
18047 as_mkdir_p='mkdir -p "$as_dir"'
18048 else
18049 test -d ./-p && rmdir ./-p
18050 as_mkdir_p=false
18051 fi
18052
18053
18054 # as_fn_executable_p FILE
18055 # -----------------------
18056 # Test if FILE is an executable regular file.
18057 as_fn_executable_p ()
18058 {
18059 test -f "$1" && test -x "$1"
18060 } # as_fn_executable_p
18061 as_test_x='test -x'
18062 as_executable_p=as_fn_executable_p
18063
18064 # Sed expression to map a string onto a valid CPP name.
18065 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18066 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
18067
18068 # Sed expression to map a string onto a valid variable name.
18069 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18070 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
18071
18072
18073 exec 6>&1
18074 ## ------------------------------------- ##
18075 ## Main body of "$CONFIG_STATUS" script. ##
18076 ## ------------------------------------- ##
18077 _ASEOF
18078 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
18079
18080 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
18081 # Save the log message, to keep $0 and so on meaningful, and to
18082 # report actual input values of CONFIG_FILES etc. instead of their
18083 # values after options handling.
18084 ac_log="
18085 This file was extended by libedit $as_me 3.1, which was
18086 generated by GNU Autoconf 2.73. Invocation command line was
18087
18088 CONFIG_FILES = $CONFIG_FILES
18089 CONFIG_HEADERS = $CONFIG_HEADERS
18090 CONFIG_LINKS = $CONFIG_LINKS
18091 CONFIG_COMMANDS = $CONFIG_COMMANDS
18092 $ $0 $@
18093
18094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18095 "
18096
18097 _ACEOF
18098
18099 case $ac_config_files in *"
18100 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18101 esac
18102
18103 case $ac_config_headers in *"
18104 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18105 esac
18106
18107
18108 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
18109 # Files that config.status was made for.
18110 config_files="$ac_config_files"
18111 config_headers="$ac_config_headers"
18112 config_commands="$ac_config_commands"
18113
18114 _ACEOF
18115
18116 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
18117 ac_cs_usage="\
18118 '$as_me' instantiates files and other configuration actions
18119 from templates according to the current configuration. Unless the files
18120 and actions are specified as TAGs, all are instantiated by default.
18121
18122 Usage: $0 [OPTION]... [TAG]...
18123
18124 -h, --help print this help, then exit
18125 -V, --version print version number and configuration settings, then exit
18126 --config print configuration, then exit
18127 -q, --quiet, --silent
18128 do not print progress messages
18129 -d, --debug don't remove temporary files
18130 --recheck update $as_me by reconfiguring in the same conditions
18131 --file=FILE[:TEMPLATE]
18132 instantiate the configuration file FILE
18133 --header=FILE[:TEMPLATE]
18134 instantiate the configuration header FILE
18135
18136 Configuration files:
18137 $config_files
18138
18139 Configuration headers:
18140 $config_headers
18141
18142 Configuration commands:
18143 $config_commands
18144
18145 Report bugs to the package provider."
18146
18147 _ACEOF
18148 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
18149 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18150 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
18151 ac_cs_config='$ac_cs_config_escaped'
18152 ac_cs_version="\\
18153 libedit config.status 3.1
18154 configured by $0, generated by GNU Autoconf 2.73,
18155 with options \\"\$ac_cs_config\\"
18156
18157 Copyright (C) 2026 Free Software Foundation, Inc.
18158 This config.status script is free software; the Free Software Foundation
18159 gives unlimited permission to copy, distribute and modify it."
18160
18161 ac_pwd='$ac_pwd'
18162 srcdir='$srcdir'
18163 INSTALL='$INSTALL'
18164 MKDIR_P='$MKDIR_P'
18165 AWK='$AWK'
18166 test -n "\$AWK" || {
18167 awk '' </dev/null ||
18168 as_fn_error \$? "try installing gawk"
18169 AWK=awk
18170 }
18171 _ACEOF
18172
18173 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
18174 # The default lists apply if the user does not specify any file.
18175 ac_need_defaults=:
18176 while test $# != 0
18177 do
18178 case $1 in
18179 --*=?*)
18180 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18181 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18182 ac_shift=:
18183 ;;
18184 --*=)
18185 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18186 ac_optarg=
18187 ac_shift=:
18188 ;;
18189 *)
18190 ac_option=$1
18191 ac_optarg=$2
18192 ac_shift=shift
18193 ;;
18194 esac
18195
18196 case $ac_option in
18197 # Handling of the options.
18198 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18199 ac_cs_recheck=: ;;
18200 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18201 printf '%s\n' "$ac_cs_version"; exit ;;
18202 --config | --confi | --conf | --con | --co | --c )
18203 printf '%s\n' "$ac_cs_config"; exit ;;
18204 --debug | --debu | --deb | --de | --d | -d )
18205 debug=: ;;
18206 --file | --fil | --fi | --f )
18207 $ac_shift
18208 case $ac_optarg in
18209 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18210 '') as_fn_error $? "missing file argument" ;;
18211 esac
18212 as_fn_append CONFIG_FILES " '$ac_optarg'"
18213 ac_need_defaults=false;;
18214 --header | --heade | --head | --hea )
18215 $ac_shift
18216 case $ac_optarg in
18217 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18218 esac
18219 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18220 ac_need_defaults=false;;
18221 --he | --h)
18222 # Conflict between --help and --header
18223 as_fn_error $? "ambiguous option: '$1'
18224 Try '$0 --help' for more information.";;
18225 --help | --hel | -h )
18226 printf '%s\n' "$ac_cs_usage"; exit ;;
18227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18228 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18229 ac_cs_silent=: ;;
18230
18231 # This is an error.
18232 -*) as_fn_error $? "unrecognized option: '$1'
18233 Try '$0 --help' for more information." ;;
18234
18235 *) as_fn_append ac_config_targets " $1"
18236 ac_need_defaults=false ;;
18237
18238 esac
18239 shift
18240 done
18241
18242 ac_configure_extra_args=
18243
18244 if $ac_cs_silent; then
18245 exec 6>/dev/null
18246 ac_configure_extra_args="$ac_configure_extra_args --silent"
18247 fi
18248
18249 _ACEOF
18250 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
18251 if \$ac_cs_recheck; then
18252 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18253 shift
18254 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
18255 CONFIG_SHELL='$SHELL'
18256 export CONFIG_SHELL
18257 exec "\$@"
18258 fi
18259
18260 _ACEOF
18261 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
18262 exec 5>>config.log
18263 {
18264 echo
18265 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18266 ## Running $as_me. ##
18267 _ASBOX
18268 printf '%s\n' "$ac_log"
18269 } >&5
18270
18271 _ACEOF
18272 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
18273 #
18274 # INIT-COMMANDS
18275 #
18276 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18277
18278
18279 # The HP-UX ksh and POSIX shell print the target directory to stdout
18280 # if CDPATH is set.
18281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18282
18283 sed_quote_subst='$sed_quote_subst'
18284 double_quote_subst='$double_quote_subst'
18285 delay_variable_subst='$delay_variable_subst'
18286 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18287 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18288 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18289 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18290 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18291 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18292 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18293 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18294 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18295 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18296 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18297 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18298 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18299 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18300 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18301 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18302 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18303 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18304 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18305 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18306 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18307 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18308 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18309 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18310 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18311 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18312 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18313 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18314 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18315 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18316 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18317 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18318 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18319 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18320 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18321 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18322 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18323 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18324 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18325 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18326 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18327 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18328 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18329 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18330 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18331 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18332 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18333 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18334 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18335 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18336 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18337 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18338 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18339 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18340 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18341 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18342 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18343 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18344 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18345 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18346 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"`'
18347 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18348 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18349 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18350 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18351 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18352 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18353 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18354 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18355 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18356 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18357 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18358 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18359 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18360 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18361 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18362 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18363 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18364 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18365 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18366 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18367 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18368 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18369 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18370 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18371 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18372 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18373 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18374 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18375 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18376 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18377 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18378 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18379 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18380 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18381 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18382 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18383 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18384 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18385 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18386 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18387 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18388 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18389 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18390 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18391 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18392 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18393 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18394 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18395 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18396 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18397 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18398 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18399 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18400 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18401 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18402 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18403 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18404 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18405 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18406 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18407 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18408 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18409 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18410 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18411 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18412 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18413 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18414 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18415 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18416 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18417 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18418 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18419 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18420 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18421 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18422 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18423
18424 LTCC='$LTCC'
18425 LTCFLAGS='$LTCFLAGS'
18426 compiler='$compiler_DEFAULT'
18427
18428 # A function that is used when there is no print builtin or printf.
18429 func_fallback_echo ()
18430 {
18431 eval 'cat <<_LTECHO_EOF
18432 \$1
18433 _LTECHO_EOF'
18434 }
18435
18436 # Quote evaled strings.
18437 for var in SHELL \
18438 ECHO \
18439 PATH_SEPARATOR \
18440 SED \
18441 GREP \
18442 EGREP \
18443 FGREP \
18444 LD \
18445 NM \
18446 LN_S \
18447 lt_SP2NL \
18448 lt_NL2SP \
18449 reload_flag \
18450 FILECMD \
18451 OBJDUMP \
18452 deplibs_check_method \
18453 file_magic_cmd \
18454 file_magic_glob \
18455 want_nocaseglob \
18456 DLLTOOL \
18457 sharedlib_from_linklib_cmd \
18458 AR \
18459 archiver_list_spec \
18460 STRIP \
18461 RANLIB \
18462 CC \
18463 CFLAGS \
18464 compiler \
18465 lt_cv_sys_global_symbol_pipe \
18466 lt_cv_sys_global_symbol_to_cdecl \
18467 lt_cv_sys_global_symbol_to_import \
18468 lt_cv_sys_global_symbol_to_c_name_address \
18469 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18470 lt_cv_nm_interface \
18471 nm_file_list_spec \
18472 lt_cv_truncate_bin \
18473 lt_prog_compiler_no_builtin_flag \
18474 lt_prog_compiler_pic \
18475 lt_prog_compiler_wl \
18476 lt_prog_compiler_static \
18477 lt_cv_prog_compiler_c_o \
18478 need_locks \
18479 MANIFEST_TOOL \
18480 DSYMUTIL \
18481 NMEDIT \
18482 LIPO \
18483 OTOOL \
18484 OTOOL64 \
18485 shrext_cmds \
18486 export_dynamic_flag_spec \
18487 whole_archive_flag_spec \
18488 compiler_needs_object \
18489 with_gnu_ld \
18490 allow_undefined_flag \
18491 no_undefined_flag \
18492 hardcode_libdir_flag_spec \
18493 hardcode_libdir_separator \
18494 exclude_expsyms \
18495 include_expsyms \
18496 file_list_spec \
18497 variables_saved_for_relink \
18498 libname_spec \
18499 library_names_spec \
18500 soname_spec \
18501 install_override_mode \
18502 finish_eval \
18503 old_striplib \
18504 striplib; do
18505 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18506 *[\\\\\\\`\\"\\\$]*)
18507 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18508 ;;
18509 *)
18510 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18511 ;;
18512 esac
18513 done
18514
18515 # Double-quote double-evaled strings.
18516 for var in reload_cmds \
18517 old_postinstall_cmds \
18518 old_postuninstall_cmds \
18519 old_archive_cmds \
18520 extract_expsyms_cmds \
18521 old_archive_from_new_cmds \
18522 old_archive_from_expsyms_cmds \
18523 archive_cmds \
18524 archive_expsym_cmds \
18525 module_cmds \
18526 module_expsym_cmds \
18527 export_symbols_cmds \
18528 prelink_cmds \
18529 postlink_cmds \
18530 postinstall_cmds \
18531 postuninstall_cmds \
18532 finish_cmds \
18533 sys_lib_search_path_spec \
18534 configure_time_dlsearch_path \
18535 configure_time_lt_sys_library_path; do
18536 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18537 *[\\\\\\\`\\"\\\$]*)
18538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18539 ;;
18540 *)
18541 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18542 ;;
18543 esac
18544 done
18545
18546 ac_aux_dir='$ac_aux_dir'
18547
18548 # See if we are running on zsh, and set the options that allow our
18549 # commands through without removal of \ escapes INIT.
18550 if test -n "\${ZSH_VERSION+set}"; then
18551 setopt NO_GLOB_SUBST
18552 fi
18553
18554
18555 PACKAGE='$PACKAGE'
18556 VERSION='$VERSION'
18557 RM='$RM'
18558 ofile='$ofile'
18559
18560
18561
18562
18563 _ACEOF
18564
18565 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
18566
18567 # Handling of arguments.
18568 for ac_config_target in $ac_config_targets
18569 do
18570 case $ac_config_target in
18571 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18572 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18573 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18574 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18575 "libedit.pc") CONFIG_FILES="$CONFIG_FILES libedit.pc" ;;
18576 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18577 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18578 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
18579
18580 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18581 esac
18582 done
18583
18584
18585 # If the user did not use the arguments to specify the items to instantiate,
18586 # then the envvar interface is used. Set only those that are not.
18587 # We use the long form for the default assignment because of an extremely
18588 # bizarre bug on SunOS 4.1.3.
18589 if $ac_need_defaults; then
18590 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18591 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18592 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18593 fi
18594
18595 # Have a temporary directory for convenience. Make it in the build tree
18596 # simply because there is no reason against having it here, and in addition,
18597 # creating and moving files from /tmp can sometimes cause problems.
18598 # Hook for its removal unless debugging.
18599 # Note that there is a small window in which the directory will not be cleaned:
18600 # after its creation but before its name has been assigned to '$tmp'.
18601 $debug ||
18602 {
18603 tmp= ac_tmp=
18604 trap 'exit_status=$?
18605 : "${ac_tmp:=$tmp}"
18606 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18607 ' 0
18608 trap 'as_fn_exit 1' 1 2 13 15
18609 }
18610 # Create a (secure) tmp directory for tmp files.
18611
18612 {
18613 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18614 test -d "$tmp"
18615 } ||
18616 {
18617 tmp=./conf$$-$RANDOM
18618 (umask 077 && mkdir "$tmp")
18619 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18620 ac_tmp=$tmp
18621
18622 # Set up the scripts for CONFIG_FILES section.
18623 # No need to generate them if there are no CONFIG_FILES.
18624 # This happens for instance with './config.status config.h'.
18625 if test -n "$CONFIG_FILES"; then
18626
18627
18628 ac_cr=`echo X | tr X '\015'`
18629 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18630 # But we know of no other shell where ac_cr would be empty at this
18631 # point, so we can use a bashism as a fallback.
18632 if test "x$ac_cr" = x; then
18633 eval ac_cr=\$\'\\r\'
18634 fi
18635 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18636 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18637 ac_cs_awk_cr='\\r'
18638 else
18639 ac_cs_awk_cr=$ac_cr
18640 fi
18641
18642 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18643 _ACEOF
18644
18645
18646 {
18647 echo "cat >conf$$subs.awk <<_ACEOF" &&
18648 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18649 echo "_ACEOF"
18650 } >conf$$subs.sh ||
18651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18652 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
18653 ac_delim='%!_!# '
18654 for ac_last_try in false false false false false :; do
18655 . ./conf$$subs.sh ||
18656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18657
18658 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
18659 if test $ac_delim_n = $ac_delim_num; then
18660 break
18661 elif $ac_last_try; then
18662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18663 else
18664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18665 fi
18666 done
18667 rm -f conf$$subs.sh
18668
18669 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
18670 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18671 _ACEOF
18672 sed -n '
18673 h
18674 s/^/S["/; s/!.*/"]=/
18675 p
18676 g
18677 s/^[^!]*!//
18678 :repl
18679 t repl
18680 s/'"$ac_delim"'$//
18681 t delim
18682 :nl
18683 h
18684 s/\(.\{148\}\)..*/\1/
18685 t more1
18686 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18687 p
18688 n
18689 b repl
18690 :more1
18691 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18692 p
18693 g
18694 s/.\{148\}//
18695 t nl
18696 :delim
18697 h
18698 s/\(.\{148\}\)..*/\1/
18699 t more2
18700 s/["\\]/\\&/g; s/^/"/; s/$/"/
18701 p
18702 b
18703 :more2
18704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18705 p
18706 g
18707 s/.\{148\}//
18708 t delim
18709 ' <conf$$subs.awk | sed '
18710 /^[^""]/{
18711 N
18712 s/\n//
18713 }
18714 ' >>"$CONFIG_STATUS" || ac_write_fail=1
18715 rm -f conf$$subs.awk
18716 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
18717 _ACAWK
18718 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18719 for (key in S) S_is_set[key] = 1
18720 FS = ""
18721
18722 }
18723 {
18724 line = $ 0
18725 nfields = split(line, field, "@")
18726 substed = 0
18727 len = length(field[1])
18728 for (i = 2; i < nfields; i++) {
18729 key = field[i]
18730 keylen = length(key)
18731 if (S_is_set[key]) {
18732 value = S[key]
18733 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18734 len += length(value) + length(field[++i])
18735 substed = 1
18736 } else
18737 len += 1 + keylen
18738 }
18739
18740 print line
18741 }
18742
18743 _ACAWK
18744 _ACEOF
18745 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
18746 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18747 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18748 else
18749 cat
18750 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18751 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18752 _ACEOF
18753
18754 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18755 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18756 # trailing colons and then remove the whole line if VPATH becomes empty
18757 # (actually we leave an empty line to preserve line numbers).
18758 if test "x$srcdir" = x.; then
18759 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18760 h
18761 s///
18762 s/^/:/
18763 s/[ ]*$/:/
18764 s/:\$(srcdir):/:/g
18765 s/:\${srcdir}:/:/g
18766 s/:@srcdir@:/:/g
18767 s/^:*//
18768 s/:*$//
18769 x
18770 s/\(=[ ]*\).*/\1/
18771 G
18772 s/\n//
18773 s/^[^=]*=[ ]*$//
18774 }'
18775 fi
18776
18777 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
18778 fi # test -n "$CONFIG_FILES"
18779
18780 # Set up the scripts for CONFIG_HEADERS section.
18781 # No need to generate them if there are no CONFIG_HEADERS.
18782 # This happens for instance with './config.status Makefile'.
18783 if test -n "$CONFIG_HEADERS"; then
18784 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18785 BEGIN {
18786 _ACEOF
18787
18788 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18789 # here-document in config.status, that substitutes the proper values into
18790 # config.h.in to produce config.h.
18791
18792 # Create a delimiter string that does not exist in confdefs.h, to ease
18793 # handling of long lines.
18794 ac_delim='%!_!# '
18795 for ac_last_try in false false :; do
18796 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18797 if test -z "$ac_tt"; then
18798 break
18799 elif $ac_last_try; then
18800 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18801 else
18802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18803 fi
18804 done
18805
18806 # For the awk script, D is an array of macro values keyed by name,
18807 # likewise P contains macro parameters if any. Preserve backslash
18808 # newline sequences.
18809
18810 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18811 sed -n '
18812 s/.\{148\}/&'"$ac_delim"'/g
18813 t rset
18814 :rset
18815 s/^[ ]*#[ ]*define[ ][ ]*/ /
18816 t def
18817 d
18818 :def
18819 s/\\$//
18820 t bsnl
18821 s/["\\]/\\&/g
18822 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18823 D["\1"]=" \3"/p
18824 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18825 d
18826 :bsnl
18827 s/["\\]/\\&/g
18828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18829 D["\1"]=" \3\\\\\\n"\\/p
18830 t cont
18831 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18832 t cont
18833 d
18834 :cont
18835 n
18836 s/.\{148\}/&'"$ac_delim"'/g
18837 t clear
18838 :clear
18839 s/\\$//
18840 t bsnlc
18841 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18842 d
18843 :bsnlc
18844 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18845 b cont
18846 ' <confdefs.h | sed '
18847 s/'"$ac_delim"'/"\\\
18848 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
18849
18850 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
18851 for (key in D) D_is_set[key] = 1
18852 FS = ""
18853 }
18854 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18855 line = \$ 0
18856 split(line, arg, " ")
18857 if (arg[1] == "#") {
18858 defundef = arg[2]
18859 mac1 = arg[3]
18860 } else {
18861 defundef = substr(arg[1], 2)
18862 mac1 = arg[2]
18863 }
18864 split(mac1, mac2, "(") #)
18865 macro = mac2[1]
18866 prefix = substr(line, 1, index(line, defundef) - 1)
18867 if (D_is_set[macro]) {
18868 suffix = P[macro] D[macro]
18869 while (suffix ~ /[\t ]$/) {
18870 suffix = substr(suffix, 1, length(suffix) - 1)
18871 }
18872 # Preserve the white space surrounding the "#".
18873 print prefix "define", macro suffix
18874 next
18875 } else {
18876 # Replace #undef with comments. This is necessary, for example,
18877 # in the case of _POSIX_SOURCE, which is predefined and required
18878 # on some systems where configure will not decide to define it.
18879 if (defundef == "undef") {
18880 print "/*", prefix defundef, macro, "*/"
18881 next
18882 }
18883 }
18884 }
18885 { print }
18886 _ACAWK
18887 _ACEOF
18888 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
18889 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18890 fi # test -n "$CONFIG_HEADERS"
18891
18892
18893 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18894 shift
18895 for ac_tag
18896 do
18897 case $ac_tag in
18898 :[FHLC]) ac_mode=$ac_tag; continue;;
18899 esac
18900 case $ac_mode$ac_tag in
18901 :[FHL]*:*);;
18902 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18903 :[FH]-) ac_tag=-:-;;
18904 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18905 esac
18906 ac_save_IFS=$IFS
18907 IFS=:
18908 set x $ac_tag
18909 IFS=$ac_save_IFS
18910 shift
18911 ac_file=$1
18912 shift
18913
18914 case $ac_mode in
18915 :L) ac_source=$1;;
18916 :[FH])
18917 ac_file_inputs=
18918 for ac_f
18919 do
18920 case $ac_f in
18921 -) ac_f="$ac_tmp/stdin";;
18922 *) # Look for the file first in the build tree, then in the source tree
18923 # (if the path is not absolute). The absolute path cannot be DOS-style,
18924 # because $ac_f cannot contain ':'.
18925 test -f "$ac_f" ||
18926 case $ac_f in
18927 [\\/$]*) false;;
18928 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18929 esac ||
18930 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18931 esac
18932 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18933 as_fn_append ac_file_inputs " '$ac_f'"
18934 done
18935
18936 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18937 # use $as_me), people would be surprised to read:
18938 # /* config.h. Generated by config.status. */
18939 configure_input='Generated from '`
18940 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18941 `' by configure.'
18942 if test x"$ac_file" != x-; then
18943 configure_input="$ac_file. $configure_input"
18944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18945 printf '%s\n' "$as_me: creating $ac_file" >&6;}
18946 fi
18947 # Neutralize special characters interpreted by sed in replacement strings.
18948 case $configure_input in #(
18949 *\&* | *\|* | *\\* )
18950 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
18951 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18952 *) ac_sed_conf_input=$configure_input;;
18953 esac
18954
18955 case $ac_tag in
18956 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18958 esac
18959 ;;
18960 esac
18961
18962 ac_dir=`$as_dirname -- "$ac_file" ||
18963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18964 X"$ac_file" : 'X\(//\)[^/]' \| \
18965 X"$ac_file" : 'X\(//\)$' \| \
18966 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18967 printf '%s\n' X"$ac_file" |
18968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18969 s//\1/
18970 q
18971 }
18972 /^X\(\/\/\)[^/].*/{
18973 s//\1/
18974 q
18975 }
18976 /^X\(\/\/\)$/{
18977 s//\1/
18978 q
18979 }
18980 /^X\(\/\).*/{
18981 s//\1/
18982 q
18983 }
18984 s/.*/./; q'`
18985 as_dir="$ac_dir"; as_fn_mkdir_p
18986 ac_builddir=.
18987
18988 case "$ac_dir" in
18989 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18990 *)
18991 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
18992 # A ".." for each directory in $ac_dir_suffix.
18993 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18994 case $ac_top_builddir_sub in
18995 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18996 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18997 esac ;;
18998 esac
18999 ac_abs_top_builddir=$ac_pwd
19000 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19001 # for backward compatibility:
19002 ac_top_builddir=$ac_top_build_prefix
19003
19004 case $srcdir in
19005 .) # We are building in place.
19006 ac_srcdir=.
19007 ac_top_srcdir=$ac_top_builddir_sub
19008 ac_abs_top_srcdir=$ac_pwd ;;
19009 [\\/]* | ?:[\\/]* ) # Absolute name.
19010 ac_srcdir=$srcdir$ac_dir_suffix;
19011 ac_top_srcdir=$srcdir
19012 ac_abs_top_srcdir=$srcdir ;;
19013 *) # Relative name.
19014 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19015 ac_top_srcdir=$ac_top_build_prefix$srcdir
19016 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19017 esac
19018 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19019
19020
19021 case $ac_mode in
19022 :F)
19023 #
19024 # CONFIG_FILE
19025 #
19026
19027 case $INSTALL in
19028 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19029 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19030 esac
19031 ac_MKDIR_P=$MKDIR_P
19032 case $MKDIR_P in
19033 [\\/$]* | ?:[\\/]* ) ;;
19034 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19035 esac
19036 _ACEOF
19037
19038 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
19039 # If the template does not know about datarootdir, expand it.
19040 # FIXME: This hack should be removed a few years after 2.60.
19041 ac_datarootdir_hack=; ac_datarootdir_seen=
19042 ac_sed_dataroot='
19043 /datarootdir/ {
19044 p
19045 q
19046 }
19047 /@datadir@/p
19048 /@docdir@/p
19049 /@infodir@/p
19050 /@localedir@/p
19051 /@mandir@/p'
19052 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19053 *datarootdir*) ac_datarootdir_seen=yes;;
19054 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19055 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19056 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19057 _ACEOF
19058 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
19059 ac_datarootdir_hack='
19060 s&@datadir@&$datadir&g
19061 s&@docdir@&$docdir&g
19062 s&@infodir@&$infodir&g
19063 s&@localedir@&$localedir&g
19064 s&@mandir@&$mandir&g
19065 s&\\\${datarootdir}&$datarootdir&g' ;;
19066 esac
19067 _ACEOF
19068
19069 # Neutralize VPATH when '$srcdir' = '.'.
19070 # Shell code in configure.ac might set extrasub.
19071 # FIXME: do we really want to maintain this feature?
19072 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
19073 ac_sed_extra="$ac_vpsub
19074 $extrasub
19075 _ACEOF
19076 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
19077 :t
19078 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19079 s|@configure_input@|$ac_sed_conf_input|;t t
19080 s&@top_builddir@&$ac_top_builddir_sub&;t t
19081 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19082 s&@srcdir@&$ac_srcdir&;t t
19083 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19084 s&@top_srcdir@&$ac_top_srcdir&;t t
19085 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19086 s&@builddir@&$ac_builddir&;t t
19087 s&@abs_builddir@&$ac_abs_builddir&;t t
19088 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19089 s&@INSTALL@&$ac_INSTALL&;t t
19090 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19091 $ac_datarootdir_hack
19092 "
19093 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19094 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19095
19096 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19097 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19098 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19099 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19100 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19101 which seems to be undefined. Please make sure it is defined" >&5
19102 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19103 which seems to be undefined. Please make sure it is defined" >&2;}
19104
19105 rm -f "$ac_tmp/stdin"
19106 case $ac_file in
19107 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19108 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19109 esac \
19110 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19111 ;;
19112 :H)
19113 #
19114 # CONFIG_HEADER
19115 #
19116 if test x"$ac_file" != x-; then
19117 {
19118 printf '%s\n' "/* $configure_input */" >&1 \
19119 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19120 } >"$ac_tmp/config.h" \
19121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19122 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19124 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
19125 else
19126 rm -f "$ac_file"
19127 mv "$ac_tmp/config.h" "$ac_file" \
19128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19129 fi
19130 else
19131 printf '%s\n' "/* $configure_input */" >&1 \
19132 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19133 || as_fn_error $? "could not create -" "$LINENO" 5
19134 fi
19135 # Compute "$ac_file"'s index in $config_headers.
19136 _am_arg="$ac_file"
19137 _am_stamp_count=1
19138 for _am_header in $config_headers :; do
19139 case $_am_header in
19140 $_am_arg | $_am_arg:* )
19141 break ;;
19142 * )
19143 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19144 esac
19145 done
19146 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19147 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19148 X"$_am_arg" : 'X\(//\)[^/]' \| \
19149 X"$_am_arg" : 'X\(//\)$' \| \
19150 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19151 printf '%s\n' X"$_am_arg" |
19152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19153 s//\1/
19154 q
19155 }
19156 /^X\(\/\/\)[^/].*/{
19157 s//\1/
19158 q
19159 }
19160 /^X\(\/\/\)$/{
19161 s//\1/
19162 q
19163 }
19164 /^X\(\/\).*/{
19165 s//\1/
19166 q
19167 }
19168 s/.*/./; q'`/stamp-h$_am_stamp_count
19169 ;;
19170
19171 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19172 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
19173 ;;
19174 esac
19175
19176
19177 case $ac_file$ac_mode in
19178 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19179 # Older Autoconf quotes --file arguments for eval, but not when files
19180 # are listed without --file. Let's play safe and only enable the eval
19181 # if we detect the quoting.
19182 # TODO: see whether this extra hack can be removed once we start
19183 # requiring Autoconf 2.70 or later.
19184 case $CONFIG_FILES in #(
19185 *\'*) :
19186 eval set x "$CONFIG_FILES" ;; #(
19187 *) :
19188 set x $CONFIG_FILES ;; #(
19189 *) :
19190 ;;
19191 esac
19192 shift
19193 # Used to flag and report bootstrapping failures.
19194 am_rc=0
19195 for am_mf
19196 do
19197 # Strip MF so we end up with the name of the file.
19198 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
19199 # Check whether this is an Automake generated Makefile which includes
19200 # dependency-tracking related rules and includes.
19201 # Grep'ing the whole file directly is not great: AIX grep has a line
19202 # limit of 2048, but all sed's we know have understand at least 4000.
19203 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19204 || continue
19205 am_dirpart=`$as_dirname -- "$am_mf" ||
19206 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19207 X"$am_mf" : 'X\(//\)[^/]' \| \
19208 X"$am_mf" : 'X\(//\)$' \| \
19209 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19210 printf '%s\n' X"$am_mf" |
19211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19212 s//\1/
19213 q
19214 }
19215 /^X\(\/\/\)[^/].*/{
19216 s//\1/
19217 q
19218 }
19219 /^X\(\/\/\)$/{
19220 s//\1/
19221 q
19222 }
19223 /^X\(\/\).*/{
19224 s//\1/
19225 q
19226 }
19227 s/.*/./; q'`
19228 am_filepart=`$as_basename -- "$am_mf" ||
19229 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19230 X"$am_mf" : 'X\(//\)$' \| \
19231 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19232 printf '%s\n' X/"$am_mf" |
19233 sed '/^.*\/\([^/][^/]*\)\/*$/{
19234 s//\1/
19235 q
19236 }
19237 /^X\/\(\/\/\)$/{
19238 s//\1/
19239 q
19240 }
19241 /^X\/\(\/\).*/{
19242 s//\1/
19243 q
19244 }
19245 s/.*/./; q'`
19246 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19247 && sed -e '/# am--include-marker/d' "$am_filepart" \
19248 | $MAKE -f - am--depfiles" >&5
19249 (cd "$am_dirpart" \
19250 && sed -e '/# am--include-marker/d' "$am_filepart" \
19251 | $MAKE -f - am--depfiles) >&5 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } || am_rc=$?
19255 done
19256 if test $am_rc -ne 0; then
19257 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19258 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
19259 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19260 for automatic dependency tracking. If GNU make was not used, consider
19261 re-running the configure script with MAKE=\"gmake\" (or whatever is
19262 necessary). You can also try re-running configure with the
19263 '--disable-dependency-tracking' option to at least be able to build
19264 the package (albeit without support for automatic dependency tracking).
19265 See 'config.log' for more details" "$LINENO" 5; }
19266 fi
19267 { am_dirpart=; unset am_dirpart;}
19268 { am_filepart=; unset am_filepart;}
19269 { am_mf=; unset am_mf;}
19270 { am_rc=; unset am_rc;}
19271 rm -f conftest-deps.mk
19272 }
19273 ;;
19274 "libtool":C)
19275
19276 # See if we are running on zsh, and set the options that allow our
19277 # commands through without removal of \ escapes.
19278 if test -n "${ZSH_VERSION+set}"; then
19279 setopt NO_GLOB_SUBST
19280 fi
19281
19282 cfgfile=${ofile}T
19283 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19284 $RM "$cfgfile"
19285
19286 cat <<_LT_EOF >> "$cfgfile"
19287 #! $SHELL
19288 # Generated automatically by $as_me ($PACKAGE) $VERSION
19289 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19290
19291 # Provide generalized library-building support services.
19292 # Written by Gordon Matzigkeit, 1996
19293
19294 # Copyright (C) 2024 Free Software Foundation, Inc.
19295 # This is free software; see the source for copying conditions. There is NO
19296 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19297
19298 # GNU Libtool is free software; you can redistribute it and/or modify
19299 # it under the terms of the GNU General Public License as published by
19300 # the Free Software Foundation; either version 2 of the License, or
19301 # (at your option) any later version.
19302 #
19303 # As a special exception to the GNU General Public License, if you
19304 # distribute this file as part of a program or library that is built
19305 # using GNU Libtool, you may include this file under the same
19306 # distribution terms that you use for the rest of that program.
19307 #
19308 # GNU Libtool is distributed in the hope that it will be useful, but
19309 # WITHOUT ANY WARRANTY; without even the implied warranty of
19310 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19311 # GNU General Public License for more details.
19312 #
19313 # You should have received a copy of the GNU General Public License
19314 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19315
19316
19317 # The names of the tagged configurations supported by this script.
19318 available_tags=''
19319
19320 # Configured defaults for sys_lib_dlsearch_path munging.
19321 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19322
19323 # ### BEGIN LIBTOOL CONFIG
19324
19325 # Which release of libtool.m4 was used?
19326 macro_version=$macro_version
19327 macro_revision=$macro_revision
19328
19329 # Whether or not to build shared libraries.
19330 build_libtool_libs=$enable_shared
19331
19332 # Whether or not to build static libraries.
19333 build_old_libs=$enable_static
19334
19335 # What type of objects to build.
19336 pic_mode=$pic_mode
19337
19338 # Whether or not to optimize for fast installation.
19339 fast_install=$enable_fast_install
19340
19341 # Shared archive member basename,for filename based shared library versioning on AIX.
19342 shared_archive_member_spec=$shared_archive_member_spec
19343
19344 # Shell to use when invoking shell scripts.
19345 SHELL=$lt_SHELL
19346
19347 # An echo program that protects backslashes.
19348 ECHO=$lt_ECHO
19349
19350 # The PATH separator for the build system.
19351 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19352
19353 # The host system.
19354 host_alias=$host_alias
19355 host=$host
19356 host_os=$host_os
19357
19358 # The build system.
19359 build_alias=$build_alias
19360 build=$build
19361 build_os=$build_os
19362
19363 # A sed program that does not truncate output.
19364 SED=$lt_SED
19365
19366 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19367 Xsed="\$SED -e 1s/^X//"
19368
19369 # A grep program that handles long lines.
19370 GREP=$lt_GREP
19371
19372 # An ERE matcher.
19373 EGREP=$lt_EGREP
19374
19375 # A literal string matcher.
19376 FGREP=$lt_FGREP
19377
19378 # A BSD- or MS-compatible name lister.
19379 NM=$lt_NM
19380
19381 # Whether we need soft or hard links.
19382 LN_S=$lt_LN_S
19383
19384 # What is the maximum length of a command?
19385 max_cmd_len=$max_cmd_len
19386
19387 # Object file suffix (normally "o").
19388 objext=$ac_objext
19389
19390 # Executable file suffix (normally "").
19391 exeext=$exeext
19392
19393 # whether the shell understands "unset".
19394 lt_unset=$lt_unset
19395
19396 # turn spaces into newlines.
19397 SP2NL=$lt_lt_SP2NL
19398
19399 # turn newlines into spaces.
19400 NL2SP=$lt_lt_NL2SP
19401
19402 # convert \$build file names to \$host format.
19403 to_host_file_cmd=$lt_cv_to_host_file_cmd
19404
19405 # convert \$build files to toolchain format.
19406 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19407
19408 # A file(cmd) program that detects file types.
19409 FILECMD=$lt_FILECMD
19410
19411 # An object symbol dumper.
19412 OBJDUMP=$lt_OBJDUMP
19413
19414 # Method to check whether dependent libraries are shared objects.
19415 deplibs_check_method=$lt_deplibs_check_method
19416
19417 # Command to use when deplibs_check_method = "file_magic".
19418 file_magic_cmd=$lt_file_magic_cmd
19419
19420 # How to find potential files when deplibs_check_method = "file_magic".
19421 file_magic_glob=$lt_file_magic_glob
19422
19423 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19424 want_nocaseglob=$lt_want_nocaseglob
19425
19426 # DLL creation program.
19427 DLLTOOL=$lt_DLLTOOL
19428
19429 # Command to associate shared and link libraries.
19430 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19431
19432 # The archiver.
19433 AR=$lt_AR
19434
19435 # Flags to create an archive (by configure).
19436 lt_ar_flags=$lt_ar_flags
19437
19438 # Flags to create an archive.
19439 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19440
19441 # How to feed a file listing to the archiver.
19442 archiver_list_spec=$lt_archiver_list_spec
19443
19444 # A symbol stripping program.
19445 STRIP=$lt_STRIP
19446
19447 # Commands used to install an old-style archive.
19448 RANLIB=$lt_RANLIB
19449 old_postinstall_cmds=$lt_old_postinstall_cmds
19450 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19451
19452 # Whether to use a lock for old archive extraction.
19453 lock_old_archive_extraction=$lock_old_archive_extraction
19454
19455 # A C compiler.
19456 LTCC=$lt_CC
19457
19458 # LTCC compiler flags.
19459 LTCFLAGS=$lt_CFLAGS
19460
19461 # Take the output of nm and produce a listing of raw symbols and C names.
19462 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19463
19464 # Transform the output of nm in a proper C declaration.
19465 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19466
19467 # Transform the output of nm into a list of symbols to manually relocate.
19468 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19469
19470 # Transform the output of nm in a C name address pair.
19471 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19472
19473 # Transform the output of nm in a C name address pair when lib prefix is needed.
19474 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19475
19476 # The name lister interface.
19477 nm_interface=$lt_lt_cv_nm_interface
19478
19479 # Specify filename containing input files for \$NM.
19480 nm_file_list_spec=$lt_nm_file_list_spec
19481
19482 # The root where to search for dependent libraries,and where our libraries should be installed.
19483 lt_sysroot=$lt_sysroot
19484
19485 # Command to truncate a binary pipe.
19486 lt_truncate_bin=$lt_lt_cv_truncate_bin
19487
19488 # The name of the directory that contains temporary libtool files.
19489 objdir=$objdir
19490
19491 # Used to examine libraries when file_magic_cmd begins with "file".
19492 MAGIC_CMD=$MAGIC_CMD
19493
19494 # Must we lock files when doing compilation?
19495 need_locks=$lt_need_locks
19496
19497 # Manifest tool.
19498 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19499
19500 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19501 DSYMUTIL=$lt_DSYMUTIL
19502
19503 # Tool to change global to local symbols on Mac OS X.
19504 NMEDIT=$lt_NMEDIT
19505
19506 # Tool to manipulate fat objects and archives on Mac OS X.
19507 LIPO=$lt_LIPO
19508
19509 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19510 OTOOL=$lt_OTOOL
19511
19512 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19513 OTOOL64=$lt_OTOOL64
19514
19515 # Old archive suffix (normally "a").
19516 libext=$libext
19517
19518 # Shared library suffix (normally ".so").
19519 shrext_cmds=$lt_shrext_cmds
19520
19521 # The commands to extract the exported symbol list from a shared archive.
19522 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19523
19524 # Variables whose values should be saved in libtool wrapper scripts and
19525 # restored at link time.
19526 variables_saved_for_relink=$lt_variables_saved_for_relink
19527
19528 # Do we need the "lib" prefix for modules?
19529 need_lib_prefix=$need_lib_prefix
19530
19531 # Do we need a version for libraries?
19532 need_version=$need_version
19533
19534 # Library versioning type.
19535 version_type=$version_type
19536
19537 # Shared library runtime path variable.
19538 runpath_var=$runpath_var
19539
19540 # Shared library path variable.
19541 shlibpath_var=$shlibpath_var
19542
19543 # Is shlibpath searched before the hard-coded library search path?
19544 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19545
19546 # Format of library name prefix.
19547 libname_spec=$lt_libname_spec
19548
19549 # List of archive names. First name is the real one, the rest are links.
19550 # The last name is the one that the linker finds with -lNAME
19551 library_names_spec=$lt_library_names_spec
19552
19553 # The coded name of the library, if different from the real name.
19554 soname_spec=$lt_soname_spec
19555
19556 # Permission mode override for installation of shared libraries.
19557 install_override_mode=$lt_install_override_mode
19558
19559 # Command to use after installation of a shared archive.
19560 postinstall_cmds=$lt_postinstall_cmds
19561
19562 # Command to use after uninstallation of a shared archive.
19563 postuninstall_cmds=$lt_postuninstall_cmds
19564
19565 # Commands used to finish a libtool library installation in a directory.
19566 finish_cmds=$lt_finish_cmds
19567
19568 # As "finish_cmds", except a single script fragment to be evaled but
19569 # not shown.
19570 finish_eval=$lt_finish_eval
19571
19572 # Whether we should hardcode library paths into libraries.
19573 hardcode_into_libs=$hardcode_into_libs
19574
19575 # Compile-time system search path for libraries.
19576 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19577
19578 # Detected run-time system search path for libraries.
19579 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19580
19581 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19582 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19583
19584 # Whether dlopen is supported.
19585 dlopen_support=$enable_dlopen
19586
19587 # Whether dlopen of programs is supported.
19588 dlopen_self=$enable_dlopen_self
19589
19590 # Whether dlopen of statically linked programs is supported.
19591 dlopen_self_static=$enable_dlopen_self_static
19592
19593 # Commands to strip libraries.
19594 old_striplib=$lt_old_striplib
19595 striplib=$lt_striplib
19596
19597
19598 # The linker used to build libraries.
19599 LD=$lt_LD
19600
19601 # How to create reloadable object files.
19602 reload_flag=$lt_reload_flag
19603 reload_cmds=$lt_reload_cmds
19604
19605 # Commands used to build an old-style archive.
19606 old_archive_cmds=$lt_old_archive_cmds
19607
19608 # A language specific compiler.
19609 CC=$lt_compiler
19610
19611 # Is the compiler the GNU compiler?
19612 with_gcc=$GCC
19613
19614 # Compiler flag to turn off builtin functions.
19615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19616
19617 # Additional compiler flags for building library objects.
19618 pic_flag=$lt_lt_prog_compiler_pic
19619
19620 # How to pass a linker flag through the compiler.
19621 wl=$lt_lt_prog_compiler_wl
19622
19623 # Compiler flag to prevent dynamic linking.
19624 link_static_flag=$lt_lt_prog_compiler_static
19625
19626 # Does compiler simultaneously support -c and -o options?
19627 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19628
19629 # Whether or not to add -lc for building shared libraries.
19630 build_libtool_need_lc=$archive_cmds_need_lc
19631
19632 # Whether or not to disallow shared libs when runtime libs are static.
19633 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19634
19635 # Compiler flag to allow reflexive dlopens.
19636 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19637
19638 # Compiler flag to generate shared objects directly from archives.
19639 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19640
19641 # Whether the compiler copes with passing no objects directly.
19642 compiler_needs_object=$lt_compiler_needs_object
19643
19644 # Create an old-style archive from a shared archive.
19645 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19646
19647 # Create a temporary old-style archive to link instead of a shared archive.
19648 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19649
19650 # Commands used to build a shared archive.
19651 archive_cmds=$lt_archive_cmds
19652 archive_expsym_cmds=$lt_archive_expsym_cmds
19653
19654 # Commands used to build a loadable module if different from building
19655 # a shared archive.
19656 module_cmds=$lt_module_cmds
19657 module_expsym_cmds=$lt_module_expsym_cmds
19658
19659 # Whether we are building with GNU ld or not.
19660 with_gnu_ld=$lt_with_gnu_ld
19661
19662 # Flag that allows shared libraries with undefined symbols to be built.
19663 allow_undefined_flag=$lt_allow_undefined_flag
19664
19665 # Flag that enforces no undefined symbols.
19666 no_undefined_flag=$lt_no_undefined_flag
19667
19668 # Flag to hardcode \$libdir into a binary during linking.
19669 # This must work even if \$libdir does not exist
19670 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19671
19672 # Whether we need a single "-rpath" flag with a separated argument.
19673 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19674
19675 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19676 # DIR into the resulting binary.
19677 hardcode_direct=$hardcode_direct
19678
19679 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19680 # DIR into the resulting binary and the resulting library dependency is
19681 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19682 # library is relocated.
19683 hardcode_direct_absolute=$hardcode_direct_absolute
19684
19685 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19686 # into the resulting binary.
19687 hardcode_minus_L=$hardcode_minus_L
19688
19689 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19690 # into the resulting binary.
19691 hardcode_shlibpath_var=$hardcode_shlibpath_var
19692
19693 # Set to "yes" if building a shared library automatically hardcodes DIR
19694 # into the library and all subsequent libraries and executables linked
19695 # against it.
19696 hardcode_automatic=$hardcode_automatic
19697
19698 # Set to yes if linker adds runtime paths of dependent libraries
19699 # to runtime path list.
19700 inherit_rpath=$inherit_rpath
19701
19702 # Whether libtool must link a program against all its dependency libraries.
19703 link_all_deplibs=$link_all_deplibs
19704
19705 # Set to "yes" if exported symbols are required.
19706 always_export_symbols=$always_export_symbols
19707
19708 # The commands to list exported symbols.
19709 export_symbols_cmds=$lt_export_symbols_cmds
19710
19711 # Symbols that should not be listed in the preloaded symbols.
19712 exclude_expsyms=$lt_exclude_expsyms
19713
19714 # Symbols that must always be exported.
19715 include_expsyms=$lt_include_expsyms
19716
19717 # Commands necessary for linking programs (against libraries) with templates.
19718 prelink_cmds=$lt_prelink_cmds
19719
19720 # Commands necessary for finishing linking programs.
19721 postlink_cmds=$lt_postlink_cmds
19722
19723 # Specify filename containing input files.
19724 file_list_spec=$lt_file_list_spec
19725
19726 # How to hardcode a shared library path into an executable.
19727 hardcode_action=$hardcode_action
19728
19729 # ### END LIBTOOL CONFIG
19730
19731 _LT_EOF
19732
19733 cat <<'_LT_EOF' >> "$cfgfile"
19734
19735 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19736
19737 # func_munge_path_list VARIABLE PATH
19738 # -----------------------------------
19739 # VARIABLE is name of variable containing _space_ separated list of
19740 # directories to be munged by the contents of PATH, which is string
19741 # having a format:
19742 # "DIR[:DIR]:"
19743 # string "DIR[ DIR]" will be prepended to VARIABLE
19744 # ":DIR[:DIR]"
19745 # string "DIR[ DIR]" will be appended to VARIABLE
19746 # "DIRP[:DIRP]::[DIRA:]DIRA"
19747 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19748 # "DIRA[ DIRA]" will be appended to VARIABLE
19749 # "DIR[:DIR]"
19750 # VARIABLE will be replaced by "DIR[ DIR]"
19751 func_munge_path_list ()
19752 {
19753 case x$2 in
19754 x)
19755 ;;
19756 *:)
19757 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19758 ;;
19759 x:*)
19760 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19761 ;;
19762 *::*)
19763 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19764 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19765 ;;
19766 *)
19767 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19768 ;;
19769 esac
19770 }
19771
19772
19773 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19774 func_cc_basename ()
19775 {
19776 for cc_temp in $*""; do
19777 case $cc_temp in
19778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19780 \-*) ;;
19781 *) break;;
19782 esac
19783 done
19784 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19785 }
19786
19787
19788 # ### END FUNCTIONS SHARED WITH CONFIGURE
19789
19790 _LT_EOF
19791
19792 case $host_os in
19793 aix3*)
19794 cat <<\_LT_EOF >> "$cfgfile"
19795 # AIX sometimes has problems with the GCC collect2 program. For some
19796 # reason, if we set the COLLECT_NAMES environment variable, the problems
19797 # vanish in a puff of smoke.
19798 if test set != "${COLLECT_NAMES+set}"; then
19799 COLLECT_NAMES=
19800 export COLLECT_NAMES
19801 fi
19802 _LT_EOF
19803 ;;
19804 esac
19805
19806
19807
19808 ltmain=$ac_aux_dir/ltmain.sh
19809
19810
19811 # We use sed instead of cat because bash on DJGPP gets confused if
19812 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19813 # text mode, it properly converts lines to CR/LF. This bash problem
19814 # is reportedly fixed, but why not run on old versions too?
19815 $SED '$q' "$ltmain" >> "$cfgfile" \
19816 || (rm -f "$cfgfile"; exit 1)
19817
19818 mv -f "$cfgfile" "$ofile" ||
19819 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19820 chmod +x "$ofile"
19821
19822 ;;
19823
19824 esac
19825 done # for ac_tag
19826
19827
19828 as_fn_exit 0
19829 _ACEOF
19830 ac_clean_CONFIG_STATUS=
19831
19832 test $ac_write_fail = 0 ||
19833 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19834
19835
19836 # configure is writing to config.log, and then calls config.status.
19837 # config.status does its own redirection, appending to config.log.
19838 # Unfortunately, on DOS this fails, as config.log is still kept open
19839 # by configure, so config.status won't be able to write to it; its
19840 # output is simply discarded. So we exec the FD to /dev/null,
19841 # effectively closing config.log, so it can be properly (re)opened and
19842 # appended to by config.status. When coming back to configure, we
19843 # need to make the FD available again.
19844 if test "$no_create" != yes; then
19845 ac_cs_success=:
19846 case $CONFIG_STATUS in #(
19847 -*) :
19848 ac_no_opts=-- ;; #(
19849 *) :
19850 ac_no_opts= ;;
19851 esac
19852 ac_config_status_args=
19853 test "$silent" = yes &&
19854 ac_config_status_args="$ac_config_status_args --quiet"
19855 exec 5>/dev/null
19856 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
19857 ac_cs_success=false
19858 exec 5>>config.log
19859 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19860 # would make configure fail if this is the last instruction.
19861 $ac_cs_success || as_fn_exit 1
19862 fi
19863 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19864 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19865 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19866 fi
19867
19868