blob: a3f5ce87fdf3f44a8407ddda410f1e0dcf253e86 [file] [log] [blame]
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Douglas Gilbert891844a2022-04-24 18:11:56 +00003# Generated by GNU Autoconf 2.71 for sg3_utils 1.48.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004#
5# Report bugs to <dgilbert@interlog.com>.
6#
7#
Douglas Gilbert891844a2022-04-24 18:11:56 +00008# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
Douglas Gilbert891844a2022-04-24 18:11:56 +000020as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000023 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
Douglas Gilbert891844a2022-04-24 18:11:56 +000029else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000030 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35esac
36fi
37
38
Douglas Gilbert891844a2022-04-24 18:11:56 +000039
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000047as_nl='
48'
49export as_nl
Douglas Gilbert891844a2022-04-24 18:11:56 +000050IFS=" "" $as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000076
77# The user is always right.
Douglas Gilbert891844a2022-04-24 18:11:56 +000078if ${PATH_SEPARATOR+false} :; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000079 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84fi
85
86
Douglas Gilbert366d25e2010-09-21 03:27:01 +000087# Find who we are. Look in the path if we contain no directory separator.
Douglas Gilbertc978e062011-12-06 21:50:07 +000088as_myself=
Douglas Gilbert366d25e2010-09-21 03:27:01 +000089case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +000095 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +0000112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000113 exit 1
114fi
115
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000116
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000117# Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
Douglas Gilbert891844a2022-04-24 18:11:56 +0000137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000142if test "x$CONFIG_SHELL" = x; then
Douglas Gilbert891844a2022-04-24 18:11:56 +0000143 as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
Douglas Gilbert891844a2022-04-24 18:11:56 +0000152else \$as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158esac
159fi
160"
161 as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
Douglas Gilbert891844a2022-04-24 18:11:56 +0000172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000174
Douglas Gilbert891844a2022-04-24 18:11:56 +0000175else \$as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000176 exitcode=1; echo positional parameters were not saved.
177fi
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000178test x\$exitcode = x0 || exit 1
Douglas Gilbert891844a2022-04-24 18:11:56 +0000179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000181test -x / || exit 1"
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Douglas Gilbertc978e062011-12-06 21:50:07 +0000186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000194test \$(( 1 + 1 )) = 2 || exit 1"
Douglas Gilbert891844a2022-04-24 18:11:56 +0000195 if (eval "$as_required") 2>/dev/null
196then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000197 as_have_required=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +0000198else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000199 as_have_required=no
200fi
Douglas Gilbert891844a2022-04-24 18:11:56 +0000201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000203
Douglas Gilbert891844a2022-04-24 18:11:56 +0000204else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +0000210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
Douglas Gilbert891844a2022-04-24 18:11:56 +0000220 as_shell=$as_dir$as_base
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
Douglas Gilbert891844a2022-04-24 18:11:56 +0000222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000224 CONFIG_SHELL=$as_shell as_have_required=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +0000225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000227 break 2
228fi
229fi
230 done;;
231 esac
232 as_found=false
233done
Douglas Gilbert02beb632021-11-05 23:31:50 +0000234IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +0000235if $as_found
236then :
237
238else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000245
246
Douglas Gilbert891844a2022-04-24 18:11:56 +0000247 if test "x$CONFIG_SHELL" != x
248then :
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
Douglas Gilbert891844a2022-04-24 18:11:56 +0000266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000267exit 255
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000268fi
269
Douglas Gilbert891844a2022-04-24 18:11:56 +0000270 if test x$as_have_required = xno
271then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000277 else
Douglas Gilbert891844a2022-04-24 18:11:56 +0000278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000279$0: dgilbert@interlog.com about your system, including any
280$0: error possibly output before this message. Then install
281$0: a modern shell, or manually run the script under such a
282$0: shell if you do have one."
283 fi
284 exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302 { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
Douglas Gilbert891844a2022-04-24 18:11:56 +0000306
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312 return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320 set +e
321 as_fn_set_status $1
322 exit $1
323} # as_fn_exit
Douglas Gilbert891844a2022-04-24 18:11:56 +0000324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329 return $?
330}
331as_nop=as_fn_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
Douglas Gilbert891844a2022-04-24 18:11:56 +0000346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Douglas Gilbert891844a2022-04-24 18:11:56 +0000355printf "%s\n" X"$as_dir" |
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000377
378
379} # as_fn_mkdir_p
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386 test -f "$1" && test -x "$1"
387} # as_fn_executable_p
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
Douglas Gilbert891844a2022-04-24 18:11:56 +0000394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
Douglas Gilbert891844a2022-04-24 18:11:56 +0000400else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405fi # 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.
Douglas Gilbert891844a2022-04-24 18:11:56 +0000412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
Douglas Gilbert891844a2022-04-24 18:11:56 +0000418else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423fi # as_fn_arith
424
Douglas Gilbert891844a2022-04-24 18:11:56 +0000425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430 return $?
431}
432as_nop=as_fn_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000433
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000438# script with STATUS, using 1 if that was 0.
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000439as_fn_error ()
440{
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Douglas Gilbert891844a2022-04-24 18:11:56 +0000444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000445 fi
Douglas Gilbert891844a2022-04-24 18:11:56 +0000446 printf "%s\n" "$as_me: error: $2" >&2
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000447 as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453else
454 as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459else
460 as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465else
466 as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Douglas Gilbert891844a2022-04-24 18:11:56 +0000473printf "%s\n" X/"$0" |
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
Douglas Gilbert891844a2022-04-24 18:11:56 +0000517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000518
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529}
530
Douglas Gilbert891844a2022-04-24 18:11:56 +0000531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544*)
545 ECHO_N='-n';;
546esac
547
Douglas Gilbert891844a2022-04-24 18:11:56 +0000548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n. New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000568 # In both cases, we have to default to `cp -pR'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000570 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000574 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000575 fi
576else
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000577 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587fi
588
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000598SHELL=${CONFIG_SHELL-/bin/sh}
599
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='sg3_utils'
623PACKAGE_TARNAME='sg3_utils'
Douglas Gilbert9e6d5132021-11-15 16:36:13 +0000624PACKAGE_VERSION='1.48'
625PACKAGE_STRING='sg3_utils 1.48'
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000626PACKAGE_BUGREPORT='dgilbert@interlog.com'
627PACKAGE_URL=''
628
629# Factoring default headers for most tests.
630ac_includes_default="\
Douglas Gilbert891844a2022-04-24 18:11:56 +0000631#include <stddef.h>
632#ifdef HAVE_STDIO_H
633# include <stdio.h>
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000634#endif
Douglas Gilbert891844a2022-04-24 18:11:56 +0000635#ifdef HAVE_STDLIB_H
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000636# include <stdlib.h>
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000637#endif
638#ifdef HAVE_STRING_H
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000639# include <string.h>
640#endif
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000641#ifdef HAVE_INTTYPES_H
642# include <inttypes.h>
643#endif
644#ifdef HAVE_STDINT_H
645# include <stdint.h>
646#endif
Douglas Gilbert891844a2022-04-24 18:11:56 +0000647#ifdef HAVE_STRINGS_H
648# include <strings.h>
649#endif
650#ifdef HAVE_SYS_TYPES_H
651# include <sys/types.h>
652#endif
653#ifdef HAVE_SYS_STAT_H
654# include <sys/stat.h>
655#endif
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000656#ifdef HAVE_UNISTD_H
657# include <unistd.h>
658#endif"
659
Douglas Gilbert891844a2022-04-24 18:11:56 +0000660ac_header_c_list=
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000661ac_subst_vars='am__EXEEXT_FALSE
662am__EXEEXT_TRUE
663LTLIBOBJS
664LIBOBJS
Douglas Gilbertbee57c52021-06-11 03:57:05 +0000665PT_DUMMY_FALSE
666PT_DUMMY_TRUE
Douglas Gilbert3ef85502018-06-29 09:46:13 +0000667DEBUG_FALSE
668DEBUG_TRUE
Douglas Gilbert303f8c92021-06-23 18:09:48 +0000669OS_OTHER_FALSE
670OS_OTHER_TRUE
671OS_HAIKU_FALSE
672OS_HAIKU_TRUE
Douglas Gilbertbee57c52021-06-11 03:57:05 +0000673OS_OPENBSD_FALSE
674OS_OPENBSD_TRUE
675OS_NETBSD_FALSE
676OS_NETBSD_TRUE
Douglas Gilbertb29ef852017-12-29 18:23:19 +0000677OS_ANDROID_FALSE
678OS_ANDROID_TRUE
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000679OS_WIN32_CYGWIN_FALSE
680OS_WIN32_CYGWIN_TRUE
681OS_WIN32_MINGW_FALSE
682OS_WIN32_MINGW_TRUE
683OS_SOLARIS_FALSE
684OS_SOLARIS_TRUE
685OS_OSF_FALSE
686OS_OSF_TRUE
687OS_LINUX_FALSE
688OS_LINUX_TRUE
689OS_FREEBSD_FALSE
690OS_FREEBSD_TRUE
Douglas Gilbert303f8c92021-06-23 18:09:48 +0000691os_libs
692os_cflags
Douglas Gilbert891844a2022-04-24 18:11:56 +0000693CPP
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000694GETOPT_O_FILES
Douglas Gilbert3a7e1662018-01-28 06:50:39 +0000695RT_LIB
Douglas Gilberta0df1982018-01-03 05:40:58 +0000696PTHREAD_LIB
Douglas Gilbertd5f841f2016-04-24 03:23:08 +0000697LT_SYS_LIBRARY_PATH
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000698OTOOL64
699OTOOL
700LIPO
701NMEDIT
702DSYMUTIL
Douglas Gilbertc978e062011-12-06 21:50:07 +0000703MANIFEST_TOOL
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000704RANLIB
Douglas Gilbertc978e062011-12-06 21:50:07 +0000705DLLTOOL
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000706OBJDUMP
Douglas Gilbert23beedb2022-08-07 02:22:53 +0000707FILECMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000708LN_S
709NM
710ac_ct_DUMPBIN
711DUMPBIN
712LD
713FGREP
714EGREP
715GREP
716SED
717host_os
718host_vendor
719host_cpu
720host
721build_os
722build_vendor
723build_cpu
724build
725LIBTOOL
Douglas Gilberta0df1982018-01-03 05:40:58 +0000726ac_ct_AR
727AR
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000728am__fastdepCC_FALSE
729am__fastdepCC_TRUE
730CCDEPMODE
Douglas Gilbert63918a92012-09-08 03:20:30 +0000731am__nodep
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000732AMDEPBACKSLASH
733AMDEP_FALSE
734AMDEP_TRUE
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000735am__include
736DEPDIR
737OBJEXT
738EXEEXT
739ac_ct_CC
740CPPFLAGS
741LDFLAGS
742CFLAGS
743CC
744MAINT
745MAINTAINER_MODE_FALSE
746MAINTAINER_MODE_TRUE
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +0000747AM_BACKSLASH
748AM_DEFAULT_VERBOSITY
749AM_DEFAULT_V
750AM_V
Douglas Gilbert02beb632021-11-05 23:31:50 +0000751CSCOPE
752ETAGS
753CTAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000754am__untar
755am__tar
756AMTAR
757am__leading_dot
758SET_MAKE
759AWK
760mkdir_p
761MKDIR_P
762INSTALL_STRIP_PROGRAM
763STRIP
764install_sh
765MAKEINFO
766AUTOHEADER
767AUTOMAKE
768AUTOCONF
769ACLOCAL
770VERSION
771PACKAGE
772CYGPATH_W
773am__isrc
774INSTALL_DATA
775INSTALL_SCRIPT
776INSTALL_PROGRAM
777target_alias
778host_alias
779build_alias
780LIBS
781ECHO_T
782ECHO_N
783ECHO_C
784DEFS
785mandir
786localedir
787libdir
788psdir
789pdfdir
790dvidir
791htmldir
792infodir
793docdir
794oldincludedir
795includedir
Douglas Gilbertb8a9d0f2019-08-29 00:15:08 +0000796runstatedir
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000797localstatedir
798sharedstatedir
799sysconfdir
800datadir
801datarootdir
802libexecdir
803sbindir
804bindir
805program_transform_name
806prefix
807exec_prefix
808PACKAGE_URL
809PACKAGE_BUGREPORT
810PACKAGE_STRING
811PACKAGE_VERSION
812PACKAGE_TARNAME
813PACKAGE_NAME
814PATH_SEPARATOR
Douglas Gilbertc80acc92019-05-15 16:10:59 +0000815SHELL
816am__quote'
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +0000820enable_silent_rules
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000821enable_maintainer_mode
822enable_dependency_tracking
823enable_shared
824enable_static
825with_pic
826enable_fast_install
Douglas Gilbertd5f841f2016-04-24 03:23:08 +0000827with_aix_soname
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000828with_gnu_ld
Douglas Gilbertc978e062011-12-06 21:50:07 +0000829with_sysroot
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000830enable_libtool_lock
Douglas Gilbert3ef85502018-06-29 09:46:13 +0000831enable_debug
Douglas Gilbertbee57c52021-06-11 03:57:05 +0000832enable_pt_dummy
Douglas Gilbert60c487d2012-03-12 17:03:41 +0000833enable_linuxbsg
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000834enable_win32_spt_direct
Douglas Gilbert60c487d2012-03-12 17:03:41 +0000835enable_scsistrings
Douglas Gilbertb29ef852017-12-29 18:23:19 +0000836enable_nvme_supp
Douglas Gilbert760a4bd2018-03-16 09:38:38 +0000837enable_fast_lebe
Douglas Gilbertd906e8c2018-12-13 18:50:10 +0000838enable_linux_sgv4
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000839'
840 ac_precious_vars='build_alias
841host_alias
842target_alias
843CC
844CFLAGS
845LDFLAGS
846LIBS
847CPPFLAGS
Douglas Gilbertd5f841f2016-04-24 03:23:08 +0000848LT_SYS_LIBRARY_PATH
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000849CPP'
850
851
852# Initialize some variables set by options.
853ac_init_help=
854ac_init_version=false
855ac_unrecognized_opts=
856ac_unrecognized_sep=
857# The variables have the same names as the options, with
858# dashes changed to underlines.
859cache_file=/dev/null
860exec_prefix=NONE
861no_create=
862no_recursion=
863prefix=NONE
864program_prefix=NONE
865program_suffix=NONE
866program_transform_name=s,x,x,
867silent=
868site=
869srcdir=
870verbose=
871x_includes=NONE
872x_libraries=NONE
873
874# Installation directory options.
875# These are left unexpanded so users can "make install exec_prefix=/foo"
876# and all the variables that are supposed to be based on exec_prefix
877# by default will actually change.
878# Use braces instead of parens because sh, perl, etc. also accept them.
879# (The list follows the same order as the GNU Coding Standards.)
880bindir='${exec_prefix}/bin'
881sbindir='${exec_prefix}/sbin'
882libexecdir='${exec_prefix}/libexec'
883datarootdir='${prefix}/share'
884datadir='${datarootdir}'
885sysconfdir='${prefix}/etc'
886sharedstatedir='${prefix}/com'
887localstatedir='${prefix}/var'
Douglas Gilbertb8a9d0f2019-08-29 00:15:08 +0000888runstatedir='${localstatedir}/run'
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000889includedir='${prefix}/include'
890oldincludedir='/usr/include'
891docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892infodir='${datarootdir}/info'
893htmldir='${docdir}'
894dvidir='${docdir}'
895pdfdir='${docdir}'
896psdir='${docdir}'
897libdir='${exec_prefix}/lib'
898localedir='${datarootdir}/locale'
899mandir='${datarootdir}/man'
900
901ac_prev=
902ac_dashdash=
903for ac_option
904do
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
910 fi
911
912 case $ac_option in
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000916 esac
917
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert891844a2022-04-24 18:11:56 +0000958 as_fn_error $? "invalid feature name: \`$ac_useropt'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000959 ac_useropt_orig=$ac_useropt
Douglas Gilbert891844a2022-04-24 18:11:56 +0000960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000961 case $ac_user_opts in
962 *"
963"enable_$ac_useropt"
964"*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert891844a2022-04-24 18:11:56 +0000984 as_fn_error $? "invalid feature name: \`$ac_useropt'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000985 ac_useropt_orig=$ac_useropt
Douglas Gilbert891844a2022-04-24 18:11:56 +0000986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000987 case $ac_user_opts in
988 *"
989"enable_$ac_useropt"
990"*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
Douglas Gilbertb8a9d0f2019-08-29 00:15:08 +00001139 -runstatedir | --runstatedir | --runstatedi | --runstated \
1140 | --runstate | --runstat | --runsta | --runst | --runs \
1141 | --run | --ru | --r)
1142 ac_prev=runstatedir ;;
1143 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145 | --run=* | --ru=* | --r=*)
1146 runstatedir=$ac_optarg ;;
1147
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert891844a2022-04-24 18:11:56 +00001197 as_fn_error $? "invalid package name: \`$ac_useropt'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001198 ac_useropt_orig=$ac_useropt
Douglas Gilbert891844a2022-04-24 18:11:56 +00001199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001200 case $ac_user_opts in
1201 *"
1202"with_$ac_useropt"
1203"*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert891844a2022-04-24 18:11:56 +00001213 as_fn_error $? "invalid package name: \`$ac_useropt'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001214 ac_useropt_orig=$ac_useropt
Douglas Gilbert891844a2022-04-24 18:11:56 +00001215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001216 case $ac_user_opts in
1217 *"
1218"with_$ac_useropt"
1219"*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
Douglas Gilbert891844a2022-04-24 18:11:56 +00001259 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert891844a2022-04-24 18:11:56 +00001261 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
Douglas Gilbertc978e062011-12-06 21:50:07 +00001262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001263 ;;
1264
1265 esac
1266done
1267
1268if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001270 as_fn_error $? "missing argument to $ac_option"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001271fi
1272
1273if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Douglas Gilbert891844a2022-04-24 18:11:56 +00001277 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001278 esac
1279fi
1280
1281# Check all directory arguments for consistency.
1282for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Douglas Gilbertb8a9d0f2019-08-29 00:15:08 +00001285 libdir localedir mandir runstatedir
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001286do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001300done
1301
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001327 as_fn_error $? "working directory cannot be determined"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001329 as_fn_error $? "pwd does not report name of working directory"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001330
1331
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
Douglas Gilbert891844a2022-04-24 18:11:56 +00001341printf "%s\n" X"$as_myself" |
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363else
1364 ac_srcdir_defaulted=no
1365fi
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001373 pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
1390
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
Douglas Gilbert9e6d5132021-11-15 16:36:13 +00001398\`configure' configures sg3_utils 1.48 to adapt to many kinds of systems.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001399
1400Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405Defaults for the options are specified in brackets.
1406
1407Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001412 -q, --quiet, --silent do not print \`checking ...' messages
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
1428
1429For better control, use the options below.
1430
1431Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Douglas Gilbertb8a9d0f2019-08-29 00:15:08 +00001438 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/sg3_utils]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452_ACEOF
1453
1454 cat <<\_ACEOF
1455
1456Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460
1461System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464_ACEOF
1465fi
1466
1467if test -n "$ac_init_help"; then
1468 case $ac_init_help in
Douglas Gilbert9e6d5132021-11-15 16:36:13 +00001469 short | recursive ) echo "Configuration of sg3_utils 1.48:";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001470 esac
1471 cat <<\_ACEOF
1472
1473Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00001477 --enable-silent-rules less verbose build output (undo: "make V=1")
1478 --disable-silent-rules verbose build output (undo: "make V=0")
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful (and
1481 sometimes confusing) to the casual installer
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-static[=PKGS] build static libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
Douglas Gilbertbee57c52021-06-11 03:57:05 +00001491 --enable-debug Turn on debugging
1492 --enable-pt_dummy pass-through codes compiles, does nothing
Douglas Gilbertefe11432017-12-07 13:32:05 +00001493 --disable-linuxbsg option ignored, this is placeholder
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001494 --enable-win32-spt-direct
1495 enable Win32 SPT Direct
Douglas Gilbertb29ef852017-12-29 18:23:19 +00001496 --disable-scsistrings Disable full SCSI sense strings and NVMe status
1497 strings
1498 --disable-nvme-supp remove all or most NVMe code
Douglas Gilbert760a4bd2018-03-16 09:38:38 +00001499 --disable-fast-lebe use generic little-endian/big-endian code instead
Douglas Gilbertd906e8c2018-12-13 18:50:10 +00001500 --disable-linux-sgv4 for Linux sg driver avoid v4 interface even if
1501 available
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001502
1503Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Douglas Gilbert63918a92012-09-08 03:20:30 +00001506 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001507 both]
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00001508 --with-aix-soname=aix|svr4|both
1509 shared library versioning (aka "SONAME") variant to
1510 provide on AIX, [default=aix].
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00001512 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1513 compiler's sysroot if not specified).
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001514
1515Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00001523 LT_SYS_LIBRARY_PATH
1524 User-defined run-time library search path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001525 CPP C preprocessor
1526
1527Use these variables to override the choices made by `configure' or to help
1528it to find libraries and programs with nonstandard names/locations.
1529
1530Report bugs to <dgilbert@interlog.com>.
1531_ACEOF
1532ac_status=$?
1533fi
1534
1535if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540 continue
1541 ac_builddir=.
1542
1543case "$ac_dir" in
1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545*)
Douglas Gilbert891844a2022-04-24 18:11:56 +00001546 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001547 # A ".." for each directory in $ac_dir_suffix.
Douglas Gilbert891844a2022-04-24 18:11:56 +00001548 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 esac ;;
1553esac
1554ac_abs_top_builddir=$ac_pwd
1555ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556# for backward compatibility:
1557ac_top_builddir=$ac_top_build_prefix
1558
1559case $srcdir in
1560 .) # We are building in place.
1561 ac_srcdir=.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1568 *) # Relative name.
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572esac
1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575 cd "$ac_dir" || { ac_status=$?; continue; }
Douglas Gilbert891844a2022-04-24 18:11:56 +00001576 # Check for configure.gnu first; this name is used for a wrapper for
1577 # Metaconfig's "Configure" on case-insensitive file systems.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001578 if test -f "$ac_srcdir/configure.gnu"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1584 else
Douglas Gilbert891844a2022-04-24 18:11:56 +00001585 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001586 fi || ac_status=$?
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1588 done
1589fi
1590
1591test -n "$ac_init_help" && exit $ac_status
1592if $ac_init_version; then
1593 cat <<\_ACEOF
Douglas Gilbert9e6d5132021-11-15 16:36:13 +00001594sg3_utils configure 1.48
Douglas Gilbert891844a2022-04-24 18:11:56 +00001595generated by GNU Autoconf 2.71
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001596
Douglas Gilbert891844a2022-04-24 18:11:56 +00001597Copyright (C) 2021 Free Software Foundation, Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001598This configure script is free software; the Free Software Foundation
1599gives unlimited permission to copy, distribute and modify it.
1600_ACEOF
1601 exit
1602fi
1603
1604## ------------------------ ##
1605## Autoconf initialization. ##
1606## ------------------------ ##
1607
1608# ac_fn_c_try_compile LINENO
1609# --------------------------
1610# Try to compile conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_compile ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Douglas Gilbert891844a2022-04-24 18:11:56 +00001614 rm -f conftest.$ac_objext conftest.beam
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001615 if { { ac_try="$ac_compile"
1616case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Douglas Gilbert891844a2022-04-24 18:11:56 +00001621printf "%s\n" "$ac_try_echo"; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001622 (eval "$ac_compile") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00001629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
Douglas Gilbert891844a2022-04-24 18:11:56 +00001633 } && test -s conftest.$ac_objext
1634then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001635 ac_retval=0
Douglas Gilbert891844a2022-04-24 18:11:56 +00001636else $as_nop
1637 printf "%s\n" "$as_me: failed program was:" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00001642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001643 as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_compile
1646
1647# ac_fn_c_try_link LINENO
1648# -----------------------
1649# Try to link conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_link ()
1651{
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Douglas Gilbert891844a2022-04-24 18:11:56 +00001653 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001654 if { { ac_try="$ac_link"
1655case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Douglas Gilbert891844a2022-04-24 18:11:56 +00001660printf "%s\n" "$ac_try_echo"; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001661 (eval "$ac_link") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00001668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001669 test $ac_status = 0; } && {
1670 test -z "$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest$ac_exeext && {
1673 test "$cross_compiling" = yes ||
Douglas Gilbert59d30db2012-12-10 04:59:22 +00001674 test -x conftest$ac_exeext
Douglas Gilbert891844a2022-04-24 18:11:56 +00001675 }
1676then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001677 ac_retval=0
Douglas Gilbert891844a2022-04-24 18:11:56 +00001678else $as_nop
1679 printf "%s\n" "$as_me: failed program was:" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=1
1683fi
1684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686 # interfere with the next link command; also delete a directory that is
1687 # left behind by Apple's compiler. We do this before executing the actions.
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Douglas Gilbertc978e062011-12-06 21:50:07 +00001689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001690 as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_link
1693
1694# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695# -------------------------------------------------------
1696# Tests whether HEADER exists and can be compiled using the include files in
1697# INCLUDES, setting the cache variable VAR accordingly.
1698ac_fn_c_check_header_compile ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Douglas Gilbert891844a2022-04-24 18:11:56 +00001701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702printf %s "checking for $2... " >&6; }
1703if eval test \${$3+y}
1704then :
1705 printf %s "(cached) " >&6
1706else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h. */
1709$4
1710#include <$2>
1711_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +00001712if ac_fn_c_try_compile "$LINENO"
1713then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001714 eval "$3=yes"
Douglas Gilbert891844a2022-04-24 18:11:56 +00001715else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001716 eval "$3=no"
1717fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00001718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001719fi
1720eval ac_res=\$$3
Douglas Gilbert891844a2022-04-24 18:11:56 +00001721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722printf "%s\n" "$ac_res" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001724
1725} # ac_fn_c_check_header_compile
1726
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001727# ac_fn_c_check_func LINENO FUNC VAR
1728# ----------------------------------
1729# Tests whether FUNC exists, setting the cache variable VAR accordingly
1730ac_fn_c_check_func ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Douglas Gilbert891844a2022-04-24 18:11:56 +00001733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734printf %s "checking for $2... " >&6; }
1735if eval test \${$3+y}
1736then :
1737 printf %s "(cached) " >&6
1738else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h. */
1741/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1743#define $2 innocuous_$2
1744
1745/* System header to define __stub macros and hopefully few prototypes,
Douglas Gilbert891844a2022-04-24 18:11:56 +00001746 which can conflict with char $2 (); below. */
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001747
Douglas Gilbert891844a2022-04-24 18:11:56 +00001748#include <limits.h>
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001749#undef $2
1750
1751/* Override any GCC internal prototype to avoid an error.
1752 Use char because int might match the return type of a GCC
1753 builtin and then its argument prototype would still apply. */
1754#ifdef __cplusplus
1755extern "C"
1756#endif
1757char $2 ();
1758/* The GNU C library defines this for functions which it implements
1759 to always fail with ENOSYS. Some functions are actually named
1760 something starting with __ and the normal name is an alias. */
1761#if defined __stub_$2 || defined __stub___$2
1762choke me
1763#endif
1764
1765int
Douglas Gilbert891844a2022-04-24 18:11:56 +00001766main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001767{
1768return $2 ();
1769 ;
1770 return 0;
1771}
1772_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +00001773if ac_fn_c_try_link "$LINENO"
1774then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001775 eval "$3=yes"
Douglas Gilbert891844a2022-04-24 18:11:56 +00001776else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001777 eval "$3=no"
1778fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00001779rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001780 conftest$ac_exeext conftest.$ac_ext
1781fi
1782eval ac_res=\$$3
Douglas Gilbert891844a2022-04-24 18:11:56 +00001783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784printf "%s\n" "$ac_res" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001786
1787} # ac_fn_c_check_func
Douglas Gilbertcad48992017-11-15 06:21:21 +00001788
Douglas Gilbert891844a2022-04-24 18:11:56 +00001789# ac_fn_c_try_cpp LINENO
1790# ----------------------
1791# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1792ac_fn_c_try_cpp ()
Douglas Gilbertcad48992017-11-15 06:21:21 +00001793{
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Douglas Gilbert891844a2022-04-24 18:11:56 +00001795 if { { ac_try="$ac_cpp conftest.$ac_ext"
1796case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
Douglas Gilbert02beb632021-11-05 23:31:50 +00001799esac
Douglas Gilbert891844a2022-04-24 18:11:56 +00001800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801printf "%s\n" "$ac_try_echo"; } >&5
1802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } > conftest.i && {
1811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 }
1814then :
1815 ac_retval=0
1816else $as_nop
1817 printf "%s\n" "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
Douglas Gilbertcad48992017-11-15 06:21:21 +00001821fi
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert891844a2022-04-24 18:11:56 +00001823 as_fn_set_status $ac_retval
Douglas Gilbertcad48992017-11-15 06:21:21 +00001824
Douglas Gilbert891844a2022-04-24 18:11:56 +00001825} # ac_fn_c_try_cpp
1826ac_configure_args_raw=
1827for ac_arg
1828do
1829 case $ac_arg in
1830 *\'*)
1831 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1832 esac
1833 as_fn_append ac_configure_args_raw " '$ac_arg'"
1834done
1835
1836case $ac_configure_args_raw in
1837 *$as_nl*)
1838 ac_safe_unquote= ;;
1839 *)
1840 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1841 ac_unsafe_a="$ac_unsafe_z#~"
1842 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1843 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1844esac
1845
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001846cat >config.log <<_ACEOF
1847This file contains any messages produced by compilers while
1848running configure, to aid debugging if configure makes a mistake.
1849
Douglas Gilbert9e6d5132021-11-15 16:36:13 +00001850It was created by sg3_utils $as_me 1.48, which was
Douglas Gilbert891844a2022-04-24 18:11:56 +00001851generated by GNU Autoconf 2.71. Invocation command line was
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001852
Douglas Gilbert891844a2022-04-24 18:11:56 +00001853 $ $0$ac_configure_args_raw
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001854
1855_ACEOF
1856exec 5>>config.log
1857{
1858cat <<_ASUNAME
1859## --------- ##
1860## Platform. ##
1861## --------- ##
1862
1863hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868
1869/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1871
1872/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1873/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1874/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1876/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1877/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1878/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1879
1880_ASUNAME
1881
1882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883for as_dir in $PATH
1884do
1885 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00001886 case $as_dir in #(((
1887 '') as_dir=./ ;;
1888 */) ;;
1889 *) as_dir=$as_dir/ ;;
1890 esac
1891 printf "%s\n" "PATH: $as_dir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001892 done
1893IFS=$as_save_IFS
1894
1895} >&5
1896
1897cat >&5 <<_ACEOF
1898
1899
1900## ----------- ##
1901## Core tests. ##
1902## ----------- ##
1903
1904_ACEOF
1905
1906
1907# Keep a trace of the command line.
1908# Strip out --no-create and --no-recursion so they do not pile up.
1909# Strip out --silent because we don't want to record it for future runs.
1910# Also quote any args containing shell meta-characters.
1911# Make two passes to allow for proper duplicate-argument suppression.
1912ac_configure_args=
1913ac_configure_args0=
1914ac_configure_args1=
1915ac_must_keep_next=false
1916for ac_pass in 1 2
1917do
1918 for ac_arg
1919 do
1920 case $ac_arg in
1921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923 | -silent | --silent | --silen | --sile | --sil)
1924 continue ;;
1925 *\'*)
Douglas Gilbert891844a2022-04-24 18:11:56 +00001926 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001927 esac
1928 case $ac_pass in
1929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1930 2)
1931 as_fn_append ac_configure_args1 " '$ac_arg'"
1932 if test $ac_must_keep_next = true; then
1933 ac_must_keep_next=false # Got value, back to normal.
1934 else
1935 case $ac_arg in
1936 *=* | --config-cache | -C | -disable-* | --disable-* \
1937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939 | -with-* | --with-* | -without-* | --without-* | --x)
1940 case "$ac_configure_args0 " in
1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942 esac
1943 ;;
1944 -* ) ac_must_keep_next=true ;;
1945 esac
1946 fi
1947 as_fn_append ac_configure_args " '$ac_arg'"
1948 ;;
1949 esac
1950 done
1951done
1952{ ac_configure_args0=; unset ac_configure_args0;}
1953{ ac_configure_args1=; unset ac_configure_args1;}
1954
1955# When interrupted or exit'd, cleanup temporary files, and complete
1956# config.log. We remove comments because anyway the quotes in there
1957# would cause problems or look ugly.
1958# WARNING: Use '\'' to represent an apostrophe within the trap.
1959# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960trap 'exit_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00001961 # Sanitize IFS.
1962 IFS=" "" $as_nl"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001963 # Save into config.log some information that might help in debugging.
1964 {
1965 echo
1966
Douglas Gilbert891844a2022-04-24 18:11:56 +00001967 printf "%s\n" "## ---------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001968## Cache variables. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001969## ---------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001970 echo
1971 # The following way of writing the cache mishandles newlines in values,
1972(
1973 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1974 eval ac_val=\$$ac_var
1975 case $ac_val in #(
1976 *${as_nl}*)
1977 case $ac_var in #(
Douglas Gilbert891844a2022-04-24 18:11:56 +00001978 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1979printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001980 esac
1981 case $ac_var in #(
1982 _ | IFS | as_nl) ;; #(
1983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1984 *) { eval $ac_var=; unset $ac_var;} ;;
1985 esac ;;
1986 esac
1987 done
1988 (set) 2>&1 |
1989 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1990 *${as_nl}ac_space=\ *)
1991 sed -n \
1992 "s/'\''/'\''\\\\'\'''\''/g;
1993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1994 ;; #(
1995 *)
1996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1997 ;;
1998 esac |
1999 sort
2000)
2001 echo
2002
Douglas Gilbert891844a2022-04-24 18:11:56 +00002003 printf "%s\n" "## ----------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002004## Output variables. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002005## ----------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002006 echo
2007 for ac_var in $ac_subst_vars
2008 do
2009 eval ac_val=\$$ac_var
2010 case $ac_val in
Douglas Gilbert891844a2022-04-24 18:11:56 +00002011 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002012 esac
Douglas Gilbert891844a2022-04-24 18:11:56 +00002013 printf "%s\n" "$ac_var='\''$ac_val'\''"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002014 done | sort
2015 echo
2016
2017 if test -n "$ac_subst_files"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00002018 printf "%s\n" "## ------------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002019## File substitutions. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002020## ------------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002021 echo
2022 for ac_var in $ac_subst_files
2023 do
2024 eval ac_val=\$$ac_var
2025 case $ac_val in
Douglas Gilbert891844a2022-04-24 18:11:56 +00002026 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002027 esac
Douglas Gilbert891844a2022-04-24 18:11:56 +00002028 printf "%s\n" "$ac_var='\''$ac_val'\''"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002029 done | sort
2030 echo
2031 fi
2032
2033 if test -s confdefs.h; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00002034 printf "%s\n" "## ----------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002035## confdefs.h. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002036## ----------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002037 echo
2038 cat confdefs.h
2039 echo
2040 fi
2041 test "$ac_signal" != 0 &&
Douglas Gilbert891844a2022-04-24 18:11:56 +00002042 printf "%s\n" "$as_me: caught signal $ac_signal"
2043 printf "%s\n" "$as_me: exit $exit_status"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002044 } >&5
2045 rm -f core *.core core.conftest.* &&
2046 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2047 exit $exit_status
2048' 0
2049for ac_signal in 1 2 13 15; do
2050 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2051done
2052ac_signal=0
2053
2054# confdefs.h avoids OS command line length limits that DEFS can exceed.
2055rm -f -r conftest* confdefs.h
2056
Douglas Gilbert891844a2022-04-24 18:11:56 +00002057printf "%s\n" "/* confdefs.h */" > confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002058
2059# Predefined preprocessor variables.
2060
Douglas Gilbert891844a2022-04-24 18:11:56 +00002061printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002062
Douglas Gilbert891844a2022-04-24 18:11:56 +00002063printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002064
Douglas Gilbert891844a2022-04-24 18:11:56 +00002065printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002066
Douglas Gilbert891844a2022-04-24 18:11:56 +00002067printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002068
Douglas Gilbert891844a2022-04-24 18:11:56 +00002069printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002070
Douglas Gilbert891844a2022-04-24 18:11:56 +00002071printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002072
2073
2074# Let the site file select an alternate cache file if it wants to.
2075# Prefer an explicitly selected file to automatically selected ones.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002076if test -n "$CONFIG_SITE"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00002077 ac_site_files="$CONFIG_SITE"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002078elif test "x$prefix" != xNONE; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00002079 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002080else
Douglas Gilbert891844a2022-04-24 18:11:56 +00002081 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002082fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00002083
2084for ac_site_file in $ac_site_files
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002085do
Douglas Gilbert891844a2022-04-24 18:11:56 +00002086 case $ac_site_file in #(
2087 */*) :
2088 ;; #(
2089 *) :
2090 ac_site_file=./$ac_site_file ;;
2091esac
2092 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2094printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002095 sed 's/^/| /' "$ac_site_file" >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002096 . "$ac_site_file" \
Douglas Gilbert891844a2022-04-24 18:11:56 +00002097 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2098printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002099as_fn_error $? "failed to load site script $ac_site_file
Douglas Gilbertc978e062011-12-06 21:50:07 +00002100See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002101 fi
2102done
2103
2104if test -r "$cache_file"; then
2105 # Some versions of bash will fail to source /dev/null (special files
2106 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2107 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00002108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2109printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002110 case $cache_file in
2111 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112 *) . "./$cache_file";;
2113 esac
2114 fi
2115else
Douglas Gilbert891844a2022-04-24 18:11:56 +00002116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2117printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002118 >$cache_file
2119fi
2120
Douglas Gilbert891844a2022-04-24 18:11:56 +00002121# Test code for whether the C compiler supports C89 (global declarations)
2122ac_c_conftest_c89_globals='
2123/* Does the compiler advertise C89 conformance?
2124 Do not test the value of __STDC__, because some compilers set it to 0
2125 while being otherwise adequately conformant. */
2126#if !defined __STDC__
2127# error "Compiler does not advertise C89 conformance"
2128#endif
2129
2130#include <stddef.h>
2131#include <stdarg.h>
2132struct stat;
2133/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2134struct buf { int x; };
2135struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2136static char *e (p, i)
2137 char **p;
2138 int i;
2139{
2140 return p[i];
2141}
2142static char *f (char * (*g) (char **, int), char **p, ...)
2143{
2144 char *s;
2145 va_list v;
2146 va_start (v,p);
2147 s = g (p, va_arg (v,int));
2148 va_end (v);
2149 return s;
2150}
2151
2152/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2153 function prototypes and stuff, but not \xHH hex character constants.
2154 These do not provoke an error unfortunately, instead are silently treated
2155 as an "x". The following induces an error, until -std is added to get
2156 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2157 array size at least. It is necessary to write \x00 == 0 to get something
2158 that is true only with -std. */
2159int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2160
2161/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2162 inside strings and character constants. */
2163#define FOO(x) '\''x'\''
2164int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2165
2166int test (int i, double x);
2167struct s1 {int (*f) (int a);};
2168struct s2 {int (*f) (double a);};
2169int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2170 int, int);'
2171
2172# Test code for whether the C compiler supports C89 (body of main).
2173ac_c_conftest_c89_main='
2174ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2175'
2176
2177# Test code for whether the C compiler supports C99 (global declarations)
2178ac_c_conftest_c99_globals='
2179// Does the compiler advertise C99 conformance?
2180#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2181# error "Compiler does not advertise C99 conformance"
2182#endif
2183
2184#include <stdbool.h>
2185extern int puts (const char *);
2186extern int printf (const char *, ...);
2187extern int dprintf (int, const char *, ...);
2188extern void *malloc (size_t);
2189
2190// Check varargs macros. These examples are taken from C99 6.10.3.5.
2191// dprintf is used instead of fprintf to avoid needing to declare
2192// FILE and stderr.
2193#define debug(...) dprintf (2, __VA_ARGS__)
2194#define showlist(...) puts (#__VA_ARGS__)
2195#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2196static void
2197test_varargs_macros (void)
2198{
2199 int x = 1234;
2200 int y = 5678;
2201 debug ("Flag");
2202 debug ("X = %d\n", x);
2203 showlist (The first, second, and third items.);
2204 report (x>y, "x is %d but y is %d", x, y);
2205}
2206
2207// Check long long types.
2208#define BIG64 18446744073709551615ull
2209#define BIG32 4294967295ul
2210#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2211#if !BIG_OK
2212 #error "your preprocessor is broken"
2213#endif
2214#if BIG_OK
2215#else
2216 #error "your preprocessor is broken"
2217#endif
2218static long long int bignum = -9223372036854775807LL;
2219static unsigned long long int ubignum = BIG64;
2220
2221struct incomplete_array
2222{
2223 int datasize;
2224 double data[];
2225};
2226
2227struct named_init {
2228 int number;
2229 const wchar_t *name;
2230 double average;
2231};
2232
2233typedef const char *ccp;
2234
2235static inline int
2236test_restrict (ccp restrict text)
2237{
2238 // See if C++-style comments work.
2239 // Iterate through items via the restricted pointer.
2240 // Also check for declarations in for loops.
2241 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2242 continue;
2243 return 0;
2244}
2245
2246// Check varargs and va_copy.
2247static bool
2248test_varargs (const char *format, ...)
2249{
2250 va_list args;
2251 va_start (args, format);
2252 va_list args_copy;
2253 va_copy (args_copy, args);
2254
2255 const char *str = "";
2256 int number = 0;
2257 float fnumber = 0;
2258
2259 while (*format)
2260 {
2261 switch (*format++)
2262 {
2263 case '\''s'\'': // string
2264 str = va_arg (args_copy, const char *);
2265 break;
2266 case '\''d'\'': // int
2267 number = va_arg (args_copy, int);
2268 break;
2269 case '\''f'\'': // float
2270 fnumber = va_arg (args_copy, double);
2271 break;
2272 default:
2273 break;
2274 }
2275 }
2276 va_end (args_copy);
2277 va_end (args);
2278
2279 return *str && number && fnumber;
2280}
2281'
2282
2283# Test code for whether the C compiler supports C99 (body of main).
2284ac_c_conftest_c99_main='
2285 // Check bool.
2286 _Bool success = false;
2287 success |= (argc != 0);
2288
2289 // Check restrict.
2290 if (test_restrict ("String literal") == 0)
2291 success = true;
2292 char *restrict newvar = "Another string";
2293
2294 // Check varargs.
2295 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2296 test_varargs_macros ();
2297
2298 // Check flexible array members.
2299 struct incomplete_array *ia =
2300 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2301 ia->datasize = 10;
2302 for (int i = 0; i < ia->datasize; ++i)
2303 ia->data[i] = i * 1.234;
2304
2305 // Check named initializers.
2306 struct named_init ni = {
2307 .number = 34,
2308 .name = L"Test wide string",
2309 .average = 543.34343,
2310 };
2311
2312 ni.number = 58;
2313
2314 int dynamic_array[ni.number];
2315 dynamic_array[0] = argv[0][0];
2316 dynamic_array[ni.number - 1] = 543;
2317
2318 // work around unused variable warnings
2319 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2320 || dynamic_array[ni.number - 1] != 543);
2321'
2322
2323# Test code for whether the C compiler supports C11 (global declarations)
2324ac_c_conftest_c11_globals='
2325// Does the compiler advertise C11 conformance?
2326#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2327# error "Compiler does not advertise C11 conformance"
2328#endif
2329
2330// Check _Alignas.
2331char _Alignas (double) aligned_as_double;
2332char _Alignas (0) no_special_alignment;
2333extern char aligned_as_int;
2334char _Alignas (0) _Alignas (int) aligned_as_int;
2335
2336// Check _Alignof.
2337enum
2338{
2339 int_alignment = _Alignof (int),
2340 int_array_alignment = _Alignof (int[100]),
2341 char_alignment = _Alignof (char)
2342};
2343_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2344
2345// Check _Noreturn.
2346int _Noreturn does_not_return (void) { for (;;) continue; }
2347
2348// Check _Static_assert.
2349struct test_static_assert
2350{
2351 int x;
2352 _Static_assert (sizeof (int) <= sizeof (long int),
2353 "_Static_assert does not work in struct");
2354 long int y;
2355};
2356
2357// Check UTF-8 literals.
2358#define u8 syntax error!
2359char const utf8_literal[] = u8"happens to be ASCII" "another string";
2360
2361// Check duplicate typedefs.
2362typedef long *long_ptr;
2363typedef long int *long_ptr;
2364typedef long_ptr long_ptr;
2365
2366// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2367struct anonymous
2368{
2369 union {
2370 struct { int i; int j; };
2371 struct { int k; long int l; } w;
2372 };
2373 int m;
2374} v1;
2375'
2376
2377# Test code for whether the C compiler supports C11 (body of main).
2378ac_c_conftest_c11_main='
2379 _Static_assert ((offsetof (struct anonymous, i)
2380 == offsetof (struct anonymous, w.k)),
2381 "Anonymous union alignment botch");
2382 v1.i = 2;
2383 v1.w.k = 5;
2384 ok |= v1.i != 5;
2385'
2386
2387# Test code for whether the C compiler supports C11 (complete).
2388ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2389${ac_c_conftest_c99_globals}
2390${ac_c_conftest_c11_globals}
2391
2392int
2393main (int argc, char **argv)
2394{
2395 int ok = 0;
2396 ${ac_c_conftest_c89_main}
2397 ${ac_c_conftest_c99_main}
2398 ${ac_c_conftest_c11_main}
2399 return ok;
2400}
2401"
2402
2403# Test code for whether the C compiler supports C99 (complete).
2404ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2405${ac_c_conftest_c99_globals}
2406
2407int
2408main (int argc, char **argv)
2409{
2410 int ok = 0;
2411 ${ac_c_conftest_c89_main}
2412 ${ac_c_conftest_c99_main}
2413 return ok;
2414}
2415"
2416
2417# Test code for whether the C compiler supports C89 (complete).
2418ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2419
2420int
2421main (int argc, char **argv)
2422{
2423 int ok = 0;
2424 ${ac_c_conftest_c89_main}
2425 return ok;
2426}
2427"
2428
2429as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2430as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2431as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2432as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2433as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2434as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2435as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2436as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2437as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2438
2439# Auxiliary files required by this configure script.
2440ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2441
2442# Locations in which to look for auxiliary files.
2443ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2444
2445# Search for a directory containing all of the required auxiliary files,
2446# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2447# If we don't find one directory that contains all the files we need,
2448# we report the set of missing files from the *first* directory in
2449# $ac_aux_dir_candidates and give up.
2450ac_missing_aux_files=""
2451ac_first_candidate=:
2452printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454as_found=false
2455for as_dir in $ac_aux_dir_candidates
2456do
2457 IFS=$as_save_IFS
2458 case $as_dir in #(((
2459 '') as_dir=./ ;;
2460 */) ;;
2461 *) as_dir=$as_dir/ ;;
2462 esac
2463 as_found=:
2464
2465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2466 ac_aux_dir_found=yes
2467 ac_install_sh=
2468 for ac_aux in $ac_aux_files
2469 do
2470 # As a special case, if "install-sh" is required, that requirement
2471 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2472 # and $ac_install_sh is set appropriately for whichever one is found.
2473 if test x"$ac_aux" = x"install-sh"
2474 then
2475 if test -f "${as_dir}install-sh"; then
2476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2477 ac_install_sh="${as_dir}install-sh -c"
2478 elif test -f "${as_dir}install.sh"; then
2479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2480 ac_install_sh="${as_dir}install.sh -c"
2481 elif test -f "${as_dir}shtool"; then
2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2483 ac_install_sh="${as_dir}shtool install -c"
2484 else
2485 ac_aux_dir_found=no
2486 if $ac_first_candidate; then
2487 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2488 else
2489 break
2490 fi
2491 fi
2492 else
2493 if test -f "${as_dir}${ac_aux}"; then
2494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2495 else
2496 ac_aux_dir_found=no
2497 if $ac_first_candidate; then
2498 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2499 else
2500 break
2501 fi
2502 fi
2503 fi
2504 done
2505 if test "$ac_aux_dir_found" = yes; then
2506 ac_aux_dir="$as_dir"
2507 break
2508 fi
2509 ac_first_candidate=false
2510
2511 as_found=false
2512done
2513IFS=$as_save_IFS
2514if $as_found
2515then :
2516
2517else $as_nop
2518 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2519fi
2520
2521
2522# These three variables are undocumented and unsupported,
2523# and are intended to be withdrawn in a future Autoconf release.
2524# They can cause serious problems if a builder's source tree is in a directory
2525# whose full name contains unusual characters.
2526if test -f "${ac_aux_dir}config.guess"; then
2527 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2528fi
2529if test -f "${ac_aux_dir}config.sub"; then
2530 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2531fi
2532if test -f "$ac_aux_dir/configure"; then
2533 ac_configure="$SHELL ${ac_aux_dir}configure"
2534fi
2535
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002536# Check that the precious variables saved in the cache have kept the same
2537# value.
2538ac_cache_corrupted=false
2539for ac_var in $ac_precious_vars; do
2540 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2541 eval ac_new_set=\$ac_env_${ac_var}_set
2542 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2543 eval ac_new_val=\$ac_env_${ac_var}_value
2544 case $ac_old_set,$ac_new_set in
2545 set,)
Douglas Gilbert891844a2022-04-24 18:11:56 +00002546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2547printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002548 ac_cache_corrupted=: ;;
2549 ,set)
Douglas Gilbert891844a2022-04-24 18:11:56 +00002550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2551printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002552 ac_cache_corrupted=: ;;
2553 ,);;
2554 *)
2555 if test "x$ac_old_val" != "x$ac_new_val"; then
2556 # differences in whitespace do not lead to failure.
2557 ac_old_val_w=`echo x $ac_old_val`
2558 ac_new_val_w=`echo x $ac_new_val`
2559 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00002560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2561printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002562 ac_cache_corrupted=:
2563 else
Douglas Gilbert891844a2022-04-24 18:11:56 +00002564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2565printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002566 eval $ac_var=\$ac_old_val
2567 fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00002568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2569printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2571printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002572 fi;;
2573 esac
2574 # Pass precious variables to config.status.
2575 if test "$ac_new_set" = set; then
2576 case $ac_new_val in
Douglas Gilbert891844a2022-04-24 18:11:56 +00002577 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002578 *) ac_arg=$ac_var=$ac_new_val ;;
2579 esac
2580 case " $ac_configure_args " in
2581 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2582 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2583 esac
2584 fi
2585done
2586if $ac_cache_corrupted; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00002587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2588printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2590printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2591 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2592 and start over" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002593fi
2594## -------------------- ##
2595## Main body of script. ##
2596## -------------------- ##
2597
2598ac_ext=c
2599ac_cpp='$CPP $CPPFLAGS'
2600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603
2604
2605
Douglas Gilbertc80acc92019-05-15 16:10:59 +00002606am__api_version='1.16'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002607
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002608
2609
Douglas Gilbert891844a2022-04-24 18:11:56 +00002610 # Find a good install program. We prefer a C program (faster),
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002611# so one script is as good as another. But avoid the broken or
2612# incompatible versions:
2613# SysV /etc/install, /usr/sbin/install
2614# SunOS /usr/etc/install
2615# IRIX /sbin/install
2616# AIX /bin/install
2617# AmigaOS /C/install, which installs bootblocks on floppy discs
2618# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2619# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2620# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2621# OS/2's system install, which has a completely different semantic
2622# ./install, which can be erroneously created by make from ./install.sh.
2623# Reject install programs that cannot install multiple files.
Douglas Gilbert891844a2022-04-24 18:11:56 +00002624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2625printf %s "checking for a BSD-compatible install... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002626if test -z "$INSTALL"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00002627if test ${ac_cv_path_install+y}
2628then :
2629 printf %s "(cached) " >&6
2630else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00002635 case $as_dir in #(((
2636 '') as_dir=./ ;;
2637 */) ;;
2638 *) as_dir=$as_dir/ ;;
2639 esac
2640 # Account for fact that we put trailing slashes in our PATH walk.
2641case $as_dir in #((
2642 ./ | /[cC]/* | \
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002643 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2644 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2645 /usr/ucb/* ) ;;
2646 *)
2647 # OSF1 and SCO ODT 3.0 have their own names for install.
2648 # Don't use installbsd from OSF since it installs stuff as root
2649 # by default.
2650 for ac_prog in ginstall scoinst install; do
2651 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00002652 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002653 if test $ac_prog = install &&
Douglas Gilbert891844a2022-04-24 18:11:56 +00002654 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002655 # AIX install. It has an incompatible calling convention.
2656 :
2657 elif test $ac_prog = install &&
Douglas Gilbert891844a2022-04-24 18:11:56 +00002658 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002659 # program-specific install script used by HP pwplus--don't use.
2660 :
2661 else
2662 rm -rf conftest.one conftest.two conftest.dir
2663 echo one > conftest.one
2664 echo two > conftest.two
2665 mkdir conftest.dir
Douglas Gilbert891844a2022-04-24 18:11:56 +00002666 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002667 test -s conftest.one && test -s conftest.two &&
2668 test -s conftest.dir/conftest.one &&
2669 test -s conftest.dir/conftest.two
2670 then
Douglas Gilbert891844a2022-04-24 18:11:56 +00002671 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002672 break 3
2673 fi
2674 fi
2675 fi
2676 done
2677 done
2678 ;;
2679esac
2680
2681 done
2682IFS=$as_save_IFS
2683
2684rm -rf conftest.one conftest.two conftest.dir
2685
2686fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00002687 if test ${ac_cv_path_install+y}; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002688 INSTALL=$ac_cv_path_install
2689 else
2690 # As a last resort, use the slow shell script. Don't cache a
2691 # value for INSTALL within a source directory, because that will
2692 # break other packages using the cache if that directory is
2693 # removed, or if the value is a relative name.
2694 INSTALL=$ac_install_sh
2695 fi
2696fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00002697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2698printf "%s\n" "$INSTALL" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002699
2700# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2701# It thinks the first close brace ends the variable substitution.
2702test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2703
2704test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2705
2706test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2707
Douglas Gilbert891844a2022-04-24 18:11:56 +00002708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2709printf %s "checking whether build environment is sane... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002710# Reject unsafe characters in $srcdir or the absolute working directory
2711# name. Accept space and tab only in the latter.
2712am_lf='
2713'
2714case `pwd` in
2715 *[\\\"\#\$\&\'\`$am_lf]*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00002716 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002717esac
2718case $srcdir in
2719 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002720 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002721esac
2722
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002723# Do 'set' in a subshell so we don't clobber the current shell's
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002724# arguments. Must try -L first in case configure is actually a
2725# symlink; some systems play weird games with the mod time of symlinks
2726# (eg FreeBSD returns the mod time of the symlink's containing
2727# directory).
2728if (
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002729 am_has_slept=no
2730 for am_try in 1 2; do
2731 echo "timestamp, slept: $am_has_slept" > conftest.file
2732 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2733 if test "$*" = "X"; then
2734 # -L didn't work.
2735 set X `ls -t "$srcdir/configure" conftest.file`
2736 fi
2737 if test "$*" != "X $srcdir/configure conftest.file" \
2738 && test "$*" != "X conftest.file $srcdir/configure"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002739
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002740 # If neither matched, then we have a broken ls. This can happen
2741 # if, for instance, CONFIG_SHELL is bash and it inherits a
2742 # broken ls alias from the environment. This has actually
2743 # happened. Such a system could not be considered "sane".
2744 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2745 alias in your environment" "$LINENO" 5
2746 fi
2747 if test "$2" = conftest.file || test $am_try -eq 2; then
2748 break
2749 fi
2750 # Just in case.
2751 sleep 1
2752 am_has_slept=yes
2753 done
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002754 test "$2" = conftest.file
2755 )
2756then
2757 # Ok.
2758 :
2759else
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002760 as_fn_error $? "newly created file is older than distributed files!
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002761Check your system clock" "$LINENO" 5
2762fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00002763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2764printf "%s\n" "yes" >&6; }
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002765# If we didn't sleep, we still need to ensure time stamps of config.status and
2766# generated files are strictly newer.
2767am_sleep_pid=
2768if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2769 ( sleep 1 ) &
2770 am_sleep_pid=$!
2771fi
2772
2773rm -f conftest.file
2774
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002775test "$program_prefix" != NONE &&
2776 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2777# Use a double $ so make ignores it.
2778test "$program_suffix" != NONE &&
2779 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2780# Double any \ or $.
2781# By default was `s,x,x', remove it if useless.
2782ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
Douglas Gilbert891844a2022-04-24 18:11:56 +00002783program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2784
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002785
Douglas Gilbert0c259172015-12-01 21:03:58 +00002786# Expand $ac_aux_dir to an absolute path.
2787am_aux_dir=`cd "$ac_aux_dir" && pwd`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002788
Douglas Gilbert891844a2022-04-24 18:11:56 +00002789
2790 if test x"${MISSING+set}" != xset; then
Douglas Gilbert02beb632021-11-05 23:31:50 +00002791 MISSING="\${SHELL} '$am_aux_dir/missing'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002792fi
2793# Use eval to expand $SHELL
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002794if eval "$MISSING --is-lightweight"; then
2795 am_missing_run="$MISSING "
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002796else
2797 am_missing_run=
Douglas Gilbert891844a2022-04-24 18:11:56 +00002798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2799printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002800fi
2801
Douglas Gilbert0c259172015-12-01 21:03:58 +00002802if test x"${install_sh+set}" != xset; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002803 case $am_aux_dir in
2804 *\ * | *\ *)
2805 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2806 *)
2807 install_sh="\${SHELL} $am_aux_dir/install-sh"
2808 esac
2809fi
2810
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002811# Installed binaries are usually stripped using 'strip' when the user
2812# run "make install-strip". However 'strip' might not be the right
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002813# tool to use in cross-compilation environments, therefore Automake
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002814# will honor the 'STRIP' environment variable to overrule this program.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002815if test "$cross_compiling" != no; then
2816 if test -n "$ac_tool_prefix"; then
2817 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2818set dummy ${ac_tool_prefix}strip; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00002819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820printf %s "checking for $ac_word... " >&6; }
2821if test ${ac_cv_prog_STRIP+y}
2822then :
2823 printf %s "(cached) " >&6
2824else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002825 if test -n "$STRIP"; then
2826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00002832 case $as_dir in #(((
2833 '') as_dir=./ ;;
2834 */) ;;
2835 *) as_dir=$as_dir/ ;;
2836 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002837 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00002838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Douglas Gilbert891844a2022-04-24 18:11:56 +00002840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002841 break 2
2842 fi
2843done
2844 done
2845IFS=$as_save_IFS
2846
2847fi
2848fi
2849STRIP=$ac_cv_prog_STRIP
2850if test -n "$STRIP"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00002851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2852printf "%s\n" "$STRIP" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002853else
Douglas Gilbert891844a2022-04-24 18:11:56 +00002854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002856fi
2857
2858
2859fi
2860if test -z "$ac_cv_prog_STRIP"; then
2861 ac_ct_STRIP=$STRIP
2862 # Extract the first word of "strip", so it can be a program name with args.
2863set dummy strip; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00002864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865printf %s "checking for $ac_word... " >&6; }
2866if test ${ac_cv_prog_ac_ct_STRIP+y}
2867then :
2868 printf %s "(cached) " >&6
2869else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002870 if test -n "$ac_ct_STRIP"; then
2871 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00002877 case $as_dir in #(((
2878 '') as_dir=./ ;;
2879 */) ;;
2880 *) as_dir=$as_dir/ ;;
2881 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002882 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00002883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002884 ac_cv_prog_ac_ct_STRIP="strip"
Douglas Gilbert891844a2022-04-24 18:11:56 +00002885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002886 break 2
2887 fi
2888done
2889 done
2890IFS=$as_save_IFS
2891
2892fi
2893fi
2894ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2895if test -n "$ac_ct_STRIP"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00002896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2897printf "%s\n" "$ac_ct_STRIP" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002898else
Douglas Gilbert891844a2022-04-24 18:11:56 +00002899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002901fi
2902
2903 if test "x$ac_ct_STRIP" = x; then
2904 STRIP=":"
2905 else
2906 case $cross_compiling:$ac_tool_warned in
2907yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00002908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2909printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002910ac_tool_warned=yes ;;
2911esac
2912 STRIP=$ac_ct_STRIP
2913 fi
2914else
2915 STRIP="$ac_cv_prog_STRIP"
2916fi
2917
2918fi
2919INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2920
Douglas Gilbert891844a2022-04-24 18:11:56 +00002921
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2923printf %s "checking for a race-free mkdir -p... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002924if test -z "$MKDIR_P"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00002925 if test ${ac_cv_path_mkdir+y}
2926then :
2927 printf %s "(cached) " >&6
2928else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2931do
2932 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00002933 case $as_dir in #(((
2934 '') as_dir=./ ;;
2935 */) ;;
2936 *) as_dir=$as_dir/ ;;
2937 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002938 for ac_prog in mkdir gmkdir; do
2939 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00002940 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2941 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2942 'mkdir ('*'coreutils) '* | \
2943 'BusyBox '* | \
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002944 'mkdir (fileutils) '4.1*)
Douglas Gilbert891844a2022-04-24 18:11:56 +00002945 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002946 break 3;;
2947 esac
2948 done
2949 done
2950 done
2951IFS=$as_save_IFS
2952
2953fi
2954
2955 test -d ./--version && rmdir ./--version
Douglas Gilbert891844a2022-04-24 18:11:56 +00002956 if test ${ac_cv_path_mkdir+y}; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002957 MKDIR_P="$ac_cv_path_mkdir -p"
2958 else
2959 # As a last resort, use the slow shell script. Don't cache a
2960 # value for MKDIR_P within a source directory, because that will
2961 # break other packages using the cache if that directory is
2962 # removed, or if the value is a relative name.
2963 MKDIR_P="$ac_install_sh -d"
2964 fi
2965fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00002966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2967printf "%s\n" "$MKDIR_P" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002968
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002969for ac_prog in gawk mawk nawk awk
2970do
2971 # Extract the first word of "$ac_prog", so it can be a program name with args.
2972set dummy $ac_prog; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00002973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974printf %s "checking for $ac_word... " >&6; }
2975if test ${ac_cv_prog_AWK+y}
2976then :
2977 printf %s "(cached) " >&6
2978else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002979 if test -n "$AWK"; then
2980 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00002986 case $as_dir in #(((
2987 '') as_dir=./ ;;
2988 */) ;;
2989 *) as_dir=$as_dir/ ;;
2990 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002991 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00002992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002993 ac_cv_prog_AWK="$ac_prog"
Douglas Gilbert891844a2022-04-24 18:11:56 +00002994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002995 break 2
2996 fi
2997done
2998 done
2999IFS=$as_save_IFS
3000
3001fi
3002fi
3003AWK=$ac_cv_prog_AWK
3004if test -n "$AWK"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00003005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3006printf "%s\n" "$AWK" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003007else
Douglas Gilbert891844a2022-04-24 18:11:56 +00003008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003010fi
3011
3012
3013 test -n "$AWK" && break
3014done
3015
Douglas Gilbert891844a2022-04-24 18:11:56 +00003016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3017printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003018set x ${MAKE-make}
Douglas Gilbert891844a2022-04-24 18:11:56 +00003019ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3020if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3021then :
3022 printf %s "(cached) " >&6
3023else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003024 cat >conftest.make <<\_ACEOF
3025SHELL = /bin/sh
3026all:
3027 @echo '@@@%%%=$(MAKE)=@@@%%%'
3028_ACEOF
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003029# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003030case `${MAKE-make} -f conftest.make 2>/dev/null` in
3031 *@@@%%%=?*=@@@%%%*)
3032 eval ac_cv_prog_make_${ac_make}_set=yes;;
3033 *)
3034 eval ac_cv_prog_make_${ac_make}_set=no;;
3035esac
3036rm -f conftest.make
3037fi
3038if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00003039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3040printf "%s\n" "yes" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003041 SET_MAKE=
3042else
Douglas Gilbert891844a2022-04-24 18:11:56 +00003043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003045 SET_MAKE="MAKE=${MAKE-make}"
3046fi
3047
3048rm -rf .tst 2>/dev/null
3049mkdir .tst 2>/dev/null
3050if test -d .tst; then
3051 am__leading_dot=.
3052else
3053 am__leading_dot=_
3054fi
3055rmdir .tst 2>/dev/null
3056
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003057# Check whether --enable-silent-rules was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +00003058if test ${enable_silent_rules+y}
3059then :
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003060 enableval=$enable_silent_rules;
3061fi
3062
3063case $enable_silent_rules in # (((
3064 yes) AM_DEFAULT_VERBOSITY=0;;
3065 no) AM_DEFAULT_VERBOSITY=1;;
3066 *) AM_DEFAULT_VERBOSITY=1;;
3067esac
3068am_make=${MAKE-make}
Douglas Gilbert891844a2022-04-24 18:11:56 +00003069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3070printf %s "checking whether $am_make supports nested variables... " >&6; }
3071if test ${am_cv_make_support_nested_variables+y}
3072then :
3073 printf %s "(cached) " >&6
3074else $as_nop
3075 if printf "%s\n" 'TRUE=$(BAR$(V))
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003076BAR0=false
3077BAR1=true
3078V=1
3079am__doit:
3080 @$(TRUE)
3081.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3082 am_cv_make_support_nested_variables=yes
3083else
3084 am_cv_make_support_nested_variables=no
3085fi
3086fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00003087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3088printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003089if test $am_cv_make_support_nested_variables = yes; then
3090 AM_V='$(V)'
3091 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3092else
3093 AM_V=$AM_DEFAULT_VERBOSITY
3094 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3095fi
3096AM_BACKSLASH='\'
3097
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003098if test "`cd $srcdir && pwd`" != "`pwd`"; then
3099 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3100 # is not polluted with repeated "-I."
3101 am__isrc=' -I$(srcdir)'
3102 # test to see if srcdir already configured
3103 if test -f $srcdir/config.status; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003104 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003105 fi
3106fi
3107
3108# test whether we have cygpath
3109if test -z "$CYGPATH_W"; then
3110 if (cygpath --version) >/dev/null 2>/dev/null; then
3111 CYGPATH_W='cygpath -w'
3112 else
3113 CYGPATH_W=echo
3114 fi
3115fi
3116
3117
3118# Define the identity of the package.
3119 PACKAGE='sg3_utils'
Douglas Gilbert9e6d5132021-11-15 16:36:13 +00003120 VERSION='1.48'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003121
3122
Douglas Gilbert891844a2022-04-24 18:11:56 +00003123printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003124
3125
Douglas Gilbert891844a2022-04-24 18:11:56 +00003126printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003127
3128# Some tools Automake needs.
3129
3130ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3131
3132
3133AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3134
3135
3136AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3137
3138
3139AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3140
3141
3142MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3143
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003144# For better backward compatibility. To be removed once Automake 1.9.x
3145# dies out for good. For more background, see:
Douglas Gilbertc80acc92019-05-15 16:10:59 +00003146# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3147# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003148mkdir_p='$(MKDIR_P)'
3149
Douglas Gilbert0c259172015-12-01 21:03:58 +00003150# We need awk for the "check" target (and possibly the TAP driver). The
3151# system "awk" is bad on some platforms.
Douglas Gilbert63918a92012-09-08 03:20:30 +00003152# Always define AMTAR for backward compatibility. Yes, it's still used
3153# in the wild :-( We should find a proper way to deprecate it ...
3154AMTAR='$${TAR-tar}'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003155
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003156
3157# We'll loop over all known methods to create a tar archive until one works.
3158_am_tools='gnutar pax cpio none'
3159
Douglas Gilbert63918a92012-09-08 03:20:30 +00003160am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003161
3162
3163
3164
3165
Douglas Gilbert02beb632021-11-05 23:31:50 +00003166# Variables for tags utilities; see am/tags.am
3167if test -z "$CTAGS"; then
3168 CTAGS=ctags
3169fi
3170
3171if test -z "$ETAGS"; then
3172 ETAGS=etags
3173fi
3174
3175if test -z "$CSCOPE"; then
3176 CSCOPE=cscope
3177fi
3178
3179
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003180
Douglas Gilbert8f710092014-05-15 15:54:06 +00003181# POSIX will say in a future version that running "rm -f" with no argument
3182# is OK; and we want to be able to make that assumption in our Makefile
3183# recipes. So use an aggressive probe to check that the usage we want is
3184# actually supported "in the wild" to an acceptable degree.
3185# See automake bug#10828.
3186# To make any issue more visible, cause the running configure to be aborted
3187# by default if the 'rm' program in use doesn't match our expectations; the
3188# user can still override this though.
3189if rm -f && rm -fr && rm -rf; then : OK; else
3190 cat >&2 <<'END'
3191Oops!
3192
3193Your 'rm' program seems unable to run without file operands specified
3194on the command line, even when the '-f' option is present. This is contrary
3195to the behaviour of most rm programs out there, and not conforming with
3196the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3197
3198Please tell bug-automake@gnu.org about your system, including the value
3199of your $PATH and any error possibly output before this message. This
3200can help us improve future automake versions.
3201
3202END
3203 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3204 echo 'Configuration will proceed anyway, since you have set the' >&2
3205 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3206 echo >&2
3207 else
3208 cat >&2 <<'END'
3209Aborting the configuration process, to ensure you take notice of the issue.
3210
3211You can download and install GNU coreutils to get an 'rm' implementation
Douglas Gilbertc80acc92019-05-15 16:10:59 +00003212that behaves properly: <https://www.gnu.org/software/coreutils/>.
Douglas Gilbert8f710092014-05-15 15:54:06 +00003213
3214If you want to complete the configuration process using your problematic
3215'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3216to "yes", and re-run configure.
3217
3218END
3219 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3220 fi
3221fi
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003222
Douglas Gilbert0c259172015-12-01 21:03:58 +00003223
Douglas Gilbert891844a2022-04-24 18:11:56 +00003224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3225printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003226 # Check whether --enable-maintainer-mode was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +00003227if test ${enable_maintainer_mode+y}
3228then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003229 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Douglas Gilbert891844a2022-04-24 18:11:56 +00003230else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003231 USE_MAINTAINER_MODE=no
3232fi
3233
Douglas Gilbert891844a2022-04-24 18:11:56 +00003234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3235printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003236 if test $USE_MAINTAINER_MODE = yes; then
3237 MAINTAINER_MODE_TRUE=
3238 MAINTAINER_MODE_FALSE='#'
3239else
3240 MAINTAINER_MODE_TRUE='#'
3241 MAINTAINER_MODE_FALSE=
3242fi
3243
3244 MAINT=$MAINTAINER_MODE_TRUE
3245
3246
3247ac_config_headers="$ac_config_headers config.h"
3248
3249
Douglas Gilbert891844a2022-04-24 18:11:56 +00003250
3251
3252
3253
3254
3255
3256
3257
3258
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003259ac_ext=c
3260ac_cpp='$CPP $CPPFLAGS'
3261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264if test -n "$ac_tool_prefix"; then
3265 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3266set dummy ${ac_tool_prefix}gcc; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00003267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268printf %s "checking for $ac_word... " >&6; }
3269if test ${ac_cv_prog_CC+y}
3270then :
3271 printf %s "(cached) " >&6
3272else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00003280 case $as_dir in #(((
3281 '') as_dir=./ ;;
3282 */) ;;
3283 *) as_dir=$as_dir/ ;;
3284 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003285 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00003286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003287 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Douglas Gilbert891844a2022-04-24 18:11:56 +00003288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003289 break 2
3290 fi
3291done
3292 done
3293IFS=$as_save_IFS
3294
3295fi
3296fi
3297CC=$ac_cv_prog_CC
3298if test -n "$CC"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00003299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300printf "%s\n" "$CC" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003301else
Douglas Gilbert891844a2022-04-24 18:11:56 +00003302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003304fi
3305
3306
3307fi
3308if test -z "$ac_cv_prog_CC"; then
3309 ac_ct_CC=$CC
3310 # Extract the first word of "gcc", so it can be a program name with args.
3311set dummy gcc; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00003312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313printf %s "checking for $ac_word... " >&6; }
3314if test ${ac_cv_prog_ac_ct_CC+y}
3315then :
3316 printf %s "(cached) " >&6
3317else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00003325 case $as_dir in #(((
3326 '') as_dir=./ ;;
3327 */) ;;
3328 *) as_dir=$as_dir/ ;;
3329 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003330 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00003331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003332 ac_cv_prog_ac_ct_CC="gcc"
Douglas Gilbert891844a2022-04-24 18:11:56 +00003333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003334 break 2
3335 fi
3336done
3337 done
3338IFS=$as_save_IFS
3339
3340fi
3341fi
3342ac_ct_CC=$ac_cv_prog_ac_ct_CC
3343if test -n "$ac_ct_CC"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00003344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3345printf "%s\n" "$ac_ct_CC" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003346else
Douglas Gilbert891844a2022-04-24 18:11:56 +00003347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003349fi
3350
3351 if test "x$ac_ct_CC" = x; then
3352 CC=""
3353 else
3354 case $cross_compiling:$ac_tool_warned in
3355yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00003356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3357printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003358ac_tool_warned=yes ;;
3359esac
3360 CC=$ac_ct_CC
3361 fi
3362else
3363 CC="$ac_cv_prog_CC"
3364fi
3365
3366if test -z "$CC"; then
3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3369set dummy ${ac_tool_prefix}cc; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00003370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371printf %s "checking for $ac_word... " >&6; }
3372if test ${ac_cv_prog_CC+y}
3373then :
3374 printf %s "(cached) " >&6
3375else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003376 if test -n "$CC"; then
3377 ac_cv_prog_CC="$CC" # Let the user override the test.
3378else
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380for as_dir in $PATH
3381do
3382 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00003383 case $as_dir in #(((
3384 '') as_dir=./ ;;
3385 */) ;;
3386 *) as_dir=$as_dir/ ;;
3387 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003388 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00003389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003390 ac_cv_prog_CC="${ac_tool_prefix}cc"
Douglas Gilbert891844a2022-04-24 18:11:56 +00003391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003392 break 2
3393 fi
3394done
3395 done
3396IFS=$as_save_IFS
3397
3398fi
3399fi
3400CC=$ac_cv_prog_CC
3401if test -n "$CC"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00003402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403printf "%s\n" "$CC" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003404else
Douglas Gilbert891844a2022-04-24 18:11:56 +00003405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003407fi
3408
3409
3410 fi
3411fi
3412if test -z "$CC"; then
3413 # Extract the first word of "cc", so it can be a program name with args.
3414set dummy cc; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00003415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416printf %s "checking for $ac_word... " >&6; }
3417if test ${ac_cv_prog_CC+y}
3418then :
3419 printf %s "(cached) " >&6
3420else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003421 if test -n "$CC"; then
3422 ac_cv_prog_CC="$CC" # Let the user override the test.
3423else
3424 ac_prog_rejected=no
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00003429 case $as_dir in #(((
3430 '') as_dir=./ ;;
3431 */) ;;
3432 *) as_dir=$as_dir/ ;;
3433 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003434 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00003435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3436 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003437 ac_prog_rejected=yes
3438 continue
3439 fi
3440 ac_cv_prog_CC="cc"
Douglas Gilbert891844a2022-04-24 18:11:56 +00003441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003442 break 2
3443 fi
3444done
3445 done
3446IFS=$as_save_IFS
3447
3448if test $ac_prog_rejected = yes; then
3449 # We found a bogon in the path, so make sure we never use it.
3450 set dummy $ac_cv_prog_CC
3451 shift
3452 if test $# != 0; then
3453 # We chose a different compiler from the bogus one.
3454 # However, it has the same basename, so the bogon will be chosen
3455 # first if we set CC to just the basename; use the full file name.
3456 shift
Douglas Gilbert891844a2022-04-24 18:11:56 +00003457 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003458 fi
3459fi
3460fi
3461fi
3462CC=$ac_cv_prog_CC
3463if test -n "$CC"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00003464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465printf "%s\n" "$CC" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003466else
Douglas Gilbert891844a2022-04-24 18:11:56 +00003467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003469fi
3470
3471
3472fi
3473if test -z "$CC"; then
3474 if test -n "$ac_tool_prefix"; then
3475 for ac_prog in cl.exe
3476 do
3477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3478set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00003479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480printf %s "checking for $ac_word... " >&6; }
3481if test ${ac_cv_prog_CC+y}
3482then :
3483 printf %s "(cached) " >&6
3484else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003485 if test -n "$CC"; then
3486 ac_cv_prog_CC="$CC" # Let the user override the test.
3487else
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00003492 case $as_dir in #(((
3493 '') as_dir=./ ;;
3494 */) ;;
3495 *) as_dir=$as_dir/ ;;
3496 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003497 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00003498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Douglas Gilbert891844a2022-04-24 18:11:56 +00003500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003501 break 2
3502 fi
3503done
3504 done
3505IFS=$as_save_IFS
3506
3507fi
3508fi
3509CC=$ac_cv_prog_CC
3510if test -n "$CC"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00003511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512printf "%s\n" "$CC" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003513else
Douglas Gilbert891844a2022-04-24 18:11:56 +00003514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003516fi
3517
3518
3519 test -n "$CC" && break
3520 done
3521fi
3522if test -z "$CC"; then
3523 ac_ct_CC=$CC
3524 for ac_prog in cl.exe
3525do
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527set dummy $ac_prog; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00003528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529printf %s "checking for $ac_word... " >&6; }
3530if test ${ac_cv_prog_ac_ct_CC+y}
3531then :
3532 printf %s "(cached) " >&6
3533else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003534 if test -n "$ac_ct_CC"; then
3535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3536else
3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH
3539do
3540 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00003541 case $as_dir in #(((
3542 '') as_dir=./ ;;
3543 */) ;;
3544 *) as_dir=$as_dir/ ;;
3545 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003546 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00003547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003548 ac_cv_prog_ac_ct_CC="$ac_prog"
Douglas Gilbert891844a2022-04-24 18:11:56 +00003549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003550 break 2
3551 fi
3552done
3553 done
3554IFS=$as_save_IFS
3555
3556fi
3557fi
3558ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559if test -n "$ac_ct_CC"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00003560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561printf "%s\n" "$ac_ct_CC" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003562else
Douglas Gilbert891844a2022-04-24 18:11:56 +00003563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003565fi
3566
3567
3568 test -n "$ac_ct_CC" && break
3569done
3570
3571 if test "x$ac_ct_CC" = x; then
3572 CC=""
3573 else
3574 case $cross_compiling:$ac_tool_warned in
3575yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00003576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003578ac_tool_warned=yes ;;
3579esac
3580 CC=$ac_ct_CC
3581 fi
3582fi
3583
3584fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00003585if test -z "$CC"; then
3586 if test -n "$ac_tool_prefix"; then
3587 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3588set dummy ${ac_tool_prefix}clang; ac_word=$2
3589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590printf %s "checking for $ac_word... " >&6; }
3591if test ${ac_cv_prog_CC+y}
3592then :
3593 printf %s "(cached) " >&6
3594else $as_nop
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597else
3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH
3600do
3601 IFS=$as_save_IFS
3602 case $as_dir in #(((
3603 '') as_dir=./ ;;
3604 */) ;;
3605 *) as_dir=$as_dir/ ;;
3606 esac
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_CC="${ac_tool_prefix}clang"
3610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3611 break 2
3612 fi
3613done
3614 done
3615IFS=$as_save_IFS
3616
3617fi
3618fi
3619CC=$ac_cv_prog_CC
3620if test -n "$CC"; then
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622printf "%s\n" "$CC" >&6; }
3623else
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625printf "%s\n" "no" >&6; }
3626fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003627
3628
Douglas Gilbert891844a2022-04-24 18:11:56 +00003629fi
3630if test -z "$ac_cv_prog_CC"; then
3631 ac_ct_CC=$CC
3632 # Extract the first word of "clang", so it can be a program name with args.
3633set dummy clang; ac_word=$2
3634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635printf %s "checking for $ac_word... " >&6; }
3636if test ${ac_cv_prog_ac_ct_CC+y}
3637then :
3638 printf %s "(cached) " >&6
3639else $as_nop
3640 if test -n "$ac_ct_CC"; then
3641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3642else
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646 IFS=$as_save_IFS
3647 case $as_dir in #(((
3648 '') as_dir=./ ;;
3649 */) ;;
3650 *) as_dir=$as_dir/ ;;
3651 esac
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3654 ac_cv_prog_ac_ct_CC="clang"
3655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3656 break 2
3657 fi
3658done
3659 done
3660IFS=$as_save_IFS
3661
3662fi
3663fi
3664ac_ct_CC=$ac_cv_prog_ac_ct_CC
3665if test -n "$ac_ct_CC"; then
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3667printf "%s\n" "$ac_ct_CC" >&6; }
3668else
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670printf "%s\n" "no" >&6; }
3671fi
3672
3673 if test "x$ac_ct_CC" = x; then
3674 CC=""
3675 else
3676 case $cross_compiling:$ac_tool_warned in
3677yes:)
3678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3679printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3680ac_tool_warned=yes ;;
3681esac
3682 CC=$ac_ct_CC
3683 fi
3684else
3685 CC="$ac_cv_prog_CC"
3686fi
3687
3688fi
3689
3690
3691test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003693as_fn_error $? "no acceptable C compiler found in \$PATH
Douglas Gilbertc978e062011-12-06 21:50:07 +00003694See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003695
3696# Provide some information about the compiler.
Douglas Gilbert891844a2022-04-24 18:11:56 +00003697printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003698set X $ac_compile
3699ac_compiler=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00003700for ac_option in --version -v -V -qversion -version; do
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003701 { { ac_try="$ac_compiler $ac_option >&5"
3702case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705esac
3706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Douglas Gilbert891844a2022-04-24 18:11:56 +00003707printf "%s\n" "$ac_try_echo"; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003708 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3709 ac_status=$?
3710 if test -s conftest.err; then
3711 sed '10a\
3712... rest of stderr output deleted ...
3713 10q' conftest.err >conftest.er1
3714 cat conftest.er1 >&5
3715 fi
3716 rm -f conftest.er1 conftest.err
Douglas Gilbert891844a2022-04-24 18:11:56 +00003717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003718 test $ac_status = 0; }
3719done
3720
3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h. */
3723
3724int
Douglas Gilbert891844a2022-04-24 18:11:56 +00003725main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003726{
3727
3728 ;
3729 return 0;
3730}
3731_ACEOF
3732ac_clean_files_save=$ac_clean_files
3733ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3734# Try to create an executable without -o first, disregard a.out.
3735# It will help us diagnose broken compilers, and finding out an intuition
3736# of exeext.
Douglas Gilbert891844a2022-04-24 18:11:56 +00003737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3738printf %s "checking whether the C compiler works... " >&6; }
3739ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003740
3741# The possible output files:
3742ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3743
3744ac_rmfiles=
3745for ac_file in $ac_files
3746do
3747 case $ac_file in
3748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3749 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3750 esac
3751done
3752rm -f $ac_rmfiles
3753
3754if { { ac_try="$ac_link_default"
3755case "(($ac_try" in
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3758esac
3759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Douglas Gilbert891844a2022-04-24 18:11:56 +00003760printf "%s\n" "$ac_try_echo"; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003761 (eval "$ac_link_default") 2>&5
3762 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00003763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764 test $ac_status = 0; }
3765then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003766 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3767# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3768# in a Makefile. We should not override ac_cv_exeext if it was cached,
3769# so that the user can short-circuit this test for compilers unknown to
3770# Autoconf.
3771for ac_file in $ac_files ''
3772do
3773 test -f "$ac_file" || continue
3774 case $ac_file in
3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3776 ;;
3777 [ab].out )
3778 # We found the default executable, but exeext='' is most
3779 # certainly right.
3780 break;;
3781 *.* )
Douglas Gilbert891844a2022-04-24 18:11:56 +00003782 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003783 then :; else
3784 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3785 fi
3786 # We set ac_cv_exeext here because the later test for it is not
3787 # safe: cross compilers may not add the suffix if given an `-o'
3788 # argument, so we may need to know it at that point already.
3789 # Even if this section looks crufty: it has the advantage of
3790 # actually working.
3791 break;;
3792 * )
3793 break;;
3794 esac
3795done
3796test "$ac_cv_exeext" = no && ac_cv_exeext=
3797
Douglas Gilbert891844a2022-04-24 18:11:56 +00003798else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003799 ac_file=''
3800fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00003801if test -z "$ac_file"
3802then :
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804printf "%s\n" "no" >&6; }
3805printf "%s\n" "$as_me: failed program was:" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003806sed 's/^/| /' conftest.$ac_ext >&5
3807
Douglas Gilbert891844a2022-04-24 18:11:56 +00003808{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3809printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003810as_fn_error 77 "C compiler cannot create executables
Douglas Gilbertc978e062011-12-06 21:50:07 +00003811See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert891844a2022-04-24 18:11:56 +00003812else $as_nop
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3814printf "%s\n" "yes" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003815fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00003816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3817printf %s "checking for C compiler default output file name... " >&6; }
3818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3819printf "%s\n" "$ac_file" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003820ac_exeext=$ac_cv_exeext
3821
3822rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3823ac_clean_files=$ac_clean_files_save
Douglas Gilbert891844a2022-04-24 18:11:56 +00003824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3825printf %s "checking for suffix of executables... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003826if { { ac_try="$ac_link"
3827case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830esac
3831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Douglas Gilbert891844a2022-04-24 18:11:56 +00003832printf "%s\n" "$ac_try_echo"; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003833 (eval "$ac_link") 2>&5
3834 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00003835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836 test $ac_status = 0; }
3837then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003838 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3839# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3840# work properly (i.e., refer to `conftest.exe'), while it won't with
3841# `rm'.
3842for ac_file in conftest.exe conftest conftest.*; do
3843 test -f "$ac_file" || continue
3844 case $ac_file in
3845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3846 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3847 break;;
3848 * ) break;;
3849 esac
3850done
Douglas Gilbert891844a2022-04-24 18:11:56 +00003851else $as_nop
3852 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003854as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Douglas Gilbertc978e062011-12-06 21:50:07 +00003855See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003856fi
3857rm -f conftest conftest$ac_cv_exeext
Douglas Gilbert891844a2022-04-24 18:11:56 +00003858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3859printf "%s\n" "$ac_cv_exeext" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003860
3861rm -f conftest.$ac_ext
3862EXEEXT=$ac_cv_exeext
3863ac_exeext=$EXEEXT
3864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865/* end confdefs.h. */
3866#include <stdio.h>
3867int
Douglas Gilbert891844a2022-04-24 18:11:56 +00003868main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003869{
3870FILE *f = fopen ("conftest.out", "w");
3871 return ferror (f) || fclose (f) != 0;
3872
3873 ;
3874 return 0;
3875}
3876_ACEOF
3877ac_clean_files="$ac_clean_files conftest.out"
3878# Check that the compiler produces executables we can run. If not, either
3879# the compiler is broken, or we cross compile.
Douglas Gilbert891844a2022-04-24 18:11:56 +00003880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3881printf %s "checking whether we are cross compiling... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003882if test "$cross_compiling" != yes; then
3883 { { ac_try="$ac_link"
3884case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887esac
3888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Douglas Gilbert891844a2022-04-24 18:11:56 +00003889printf "%s\n" "$ac_try_echo"; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003890 (eval "$ac_link") 2>&5
3891 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00003892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003893 test $ac_status = 0; }
3894 if { ac_try='./conftest$ac_cv_exeext'
3895 { { case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898esac
3899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Douglas Gilbert891844a2022-04-24 18:11:56 +00003900printf "%s\n" "$ac_try_echo"; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003901 (eval "$ac_try") 2>&5
3902 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00003903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003904 test $ac_status = 0; }; }; then
3905 cross_compiling=no
3906 else
3907 if test "$cross_compiling" = maybe; then
3908 cross_compiling=yes
3909 else
Douglas Gilbert891844a2022-04-24 18:11:56 +00003910 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3912as_fn_error 77 "cannot run C compiled programs.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003913If you meant to cross compile, use \`--host'.
Douglas Gilbertc978e062011-12-06 21:50:07 +00003914See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003915 fi
3916 fi
3917fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00003918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3919printf "%s\n" "$cross_compiling" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003920
3921rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3922ac_clean_files=$ac_clean_files_save
Douglas Gilbert891844a2022-04-24 18:11:56 +00003923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3924printf %s "checking for suffix of object files... " >&6; }
3925if test ${ac_cv_objext+y}
3926then :
3927 printf %s "(cached) " >&6
3928else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930/* end confdefs.h. */
3931
3932int
Douglas Gilbert891844a2022-04-24 18:11:56 +00003933main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003934{
3935
3936 ;
3937 return 0;
3938}
3939_ACEOF
3940rm -f conftest.o conftest.obj
3941if { { ac_try="$ac_compile"
3942case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945esac
3946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Douglas Gilbert891844a2022-04-24 18:11:56 +00003947printf "%s\n" "$ac_try_echo"; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003948 (eval "$ac_compile") 2>&5
3949 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00003950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951 test $ac_status = 0; }
3952then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003953 for ac_file in conftest.o conftest.obj conftest.*; do
3954 test -f "$ac_file" || continue;
3955 case $ac_file in
3956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3957 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3958 break;;
3959 esac
3960done
Douglas Gilbert891844a2022-04-24 18:11:56 +00003961else $as_nop
3962 printf "%s\n" "$as_me: failed program was:" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003963sed 's/^/| /' conftest.$ac_ext >&5
3964
Douglas Gilbert891844a2022-04-24 18:11:56 +00003965{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003967as_fn_error $? "cannot compute suffix of object files: cannot compile
Douglas Gilbertc978e062011-12-06 21:50:07 +00003968See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003969fi
3970rm -f conftest.$ac_cv_objext conftest.$ac_ext
3971fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00003972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3973printf "%s\n" "$ac_cv_objext" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003974OBJEXT=$ac_cv_objext
3975ac_objext=$OBJEXT
Douglas Gilbert891844a2022-04-24 18:11:56 +00003976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3977printf %s "checking whether the compiler supports GNU C... " >&6; }
3978if test ${ac_cv_c_compiler_gnu+y}
3979then :
3980 printf %s "(cached) " >&6
3981else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983/* end confdefs.h. */
3984
3985int
Douglas Gilbert891844a2022-04-24 18:11:56 +00003986main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003987{
3988#ifndef __GNUC__
3989 choke me
3990#endif
3991
3992 ;
3993 return 0;
3994}
3995_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +00003996if ac_fn_c_try_compile "$LINENO"
3997then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003998 ac_compiler_gnu=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +00003999else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004000 ac_compiler_gnu=no
4001fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004003ac_cv_c_compiler_gnu=$ac_compiler_gnu
4004
4005fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4007printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4008ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004010if test $ac_compiler_gnu = yes; then
4011 GCC=yes
4012else
4013 GCC=
4014fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004015ac_test_CFLAGS=${CFLAGS+y}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004016ac_save_CFLAGS=$CFLAGS
Douglas Gilbert891844a2022-04-24 18:11:56 +00004017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4018printf %s "checking whether $CC accepts -g... " >&6; }
4019if test ${ac_cv_prog_cc_g+y}
4020then :
4021 printf %s "(cached) " >&6
4022else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004023 ac_save_c_werror_flag=$ac_c_werror_flag
4024 ac_c_werror_flag=yes
4025 ac_cv_prog_cc_g=no
4026 CFLAGS="-g"
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h. */
4029
4030int
Douglas Gilbert891844a2022-04-24 18:11:56 +00004031main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004032{
4033
4034 ;
4035 return 0;
4036}
4037_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +00004038if ac_fn_c_try_compile "$LINENO"
4039then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004040 ac_cv_prog_cc_g=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +00004041else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004042 CFLAGS=""
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044/* end confdefs.h. */
4045
4046int
Douglas Gilbert891844a2022-04-24 18:11:56 +00004047main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004048{
4049
4050 ;
4051 return 0;
4052}
4053_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +00004054if ac_fn_c_try_compile "$LINENO"
4055then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004056
Douglas Gilbert891844a2022-04-24 18:11:56 +00004057else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004058 ac_c_werror_flag=$ac_save_c_werror_flag
4059 CFLAGS="-g"
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061/* end confdefs.h. */
4062
4063int
Douglas Gilbert891844a2022-04-24 18:11:56 +00004064main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004065{
4066
4067 ;
4068 return 0;
4069}
4070_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +00004071if ac_fn_c_try_compile "$LINENO"
4072then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004073 ac_cv_prog_cc_g=yes
4074fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004076fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004078fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004080 ac_c_werror_flag=$ac_save_c_werror_flag
4081fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4083printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4084if test $ac_test_CFLAGS; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004085 CFLAGS=$ac_save_CFLAGS
4086elif test $ac_cv_prog_cc_g = yes; then
4087 if test "$GCC" = yes; then
4088 CFLAGS="-g -O2"
4089 else
4090 CFLAGS="-g"
4091 fi
4092else
4093 if test "$GCC" = yes; then
4094 CFLAGS="-O2"
4095 else
4096 CFLAGS=
4097 fi
4098fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004099ac_prog_cc_stdc=no
4100if test x$ac_prog_cc_stdc = xno
4101then :
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4103printf %s "checking for $CC option to enable C11 features... " >&6; }
4104if test ${ac_cv_prog_cc_c11+y}
4105then :
4106 printf %s "(cached) " >&6
4107else $as_nop
4108 ac_cv_prog_cc_c11=no
4109ac_save_CC=$CC
4110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h. */
4112$ac_c_conftest_c11_program
4113_ACEOF
4114for ac_arg in '' -std=gnu11
4115do
4116 CC="$ac_save_CC $ac_arg"
4117 if ac_fn_c_try_compile "$LINENO"
4118then :
4119 ac_cv_prog_cc_c11=$ac_arg
4120fi
4121rm -f core conftest.err conftest.$ac_objext conftest.beam
4122 test "x$ac_cv_prog_cc_c11" != "xno" && break
4123done
4124rm -f conftest.$ac_ext
4125CC=$ac_save_CC
4126fi
4127
4128if test "x$ac_cv_prog_cc_c11" = xno
4129then :
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4131printf "%s\n" "unsupported" >&6; }
4132else $as_nop
4133 if test "x$ac_cv_prog_cc_c11" = x
4134then :
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4136printf "%s\n" "none needed" >&6; }
4137else $as_nop
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4139printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4140 CC="$CC $ac_cv_prog_cc_c11"
4141fi
4142 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4143 ac_prog_cc_stdc=c11
4144fi
4145fi
4146if test x$ac_prog_cc_stdc = xno
4147then :
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4149printf %s "checking for $CC option to enable C99 features... " >&6; }
4150if test ${ac_cv_prog_cc_c99+y}
4151then :
4152 printf %s "(cached) " >&6
4153else $as_nop
4154 ac_cv_prog_cc_c99=no
4155ac_save_CC=$CC
4156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h. */
4158$ac_c_conftest_c99_program
4159_ACEOF
4160for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4161do
4162 CC="$ac_save_CC $ac_arg"
4163 if ac_fn_c_try_compile "$LINENO"
4164then :
4165 ac_cv_prog_cc_c99=$ac_arg
4166fi
4167rm -f core conftest.err conftest.$ac_objext conftest.beam
4168 test "x$ac_cv_prog_cc_c99" != "xno" && break
4169done
4170rm -f conftest.$ac_ext
4171CC=$ac_save_CC
4172fi
4173
4174if test "x$ac_cv_prog_cc_c99" = xno
4175then :
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177printf "%s\n" "unsupported" >&6; }
4178else $as_nop
4179 if test "x$ac_cv_prog_cc_c99" = x
4180then :
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4182printf "%s\n" "none needed" >&6; }
4183else $as_nop
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4185printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4186 CC="$CC $ac_cv_prog_cc_c99"
4187fi
4188 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4189 ac_prog_cc_stdc=c99
4190fi
4191fi
4192if test x$ac_prog_cc_stdc = xno
4193then :
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4195printf %s "checking for $CC option to enable C89 features... " >&6; }
4196if test ${ac_cv_prog_cc_c89+y}
4197then :
4198 printf %s "(cached) " >&6
4199else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004200 ac_cv_prog_cc_c89=no
4201ac_save_CC=$CC
4202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h. */
Douglas Gilbert891844a2022-04-24 18:11:56 +00004204$ac_c_conftest_c89_program
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004205_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +00004206for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004207do
4208 CC="$ac_save_CC $ac_arg"
Douglas Gilbert891844a2022-04-24 18:11:56 +00004209 if ac_fn_c_try_compile "$LINENO"
4210then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004211 ac_cv_prog_cc_c89=$ac_arg
4212fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004213rm -f core conftest.err conftest.$ac_objext conftest.beam
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004214 test "x$ac_cv_prog_cc_c89" != "xno" && break
4215done
4216rm -f conftest.$ac_ext
4217CC=$ac_save_CC
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004218fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004219
Douglas Gilbert891844a2022-04-24 18:11:56 +00004220if test "x$ac_cv_prog_cc_c89" = xno
4221then :
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4223printf "%s\n" "unsupported" >&6; }
4224else $as_nop
4225 if test "x$ac_cv_prog_cc_c89" = x
4226then :
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4228printf "%s\n" "none needed" >&6; }
4229else $as_nop
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4231printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4232 CC="$CC $ac_cv_prog_cc_c89"
4233fi
4234 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4235 ac_prog_cc_stdc=c89
4236fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004237fi
4238
4239ac_ext=c
4240ac_cpp='$CPP $CPPFLAGS'
4241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4243ac_compiler_gnu=$ac_cv_c_compiler_gnu
Douglas Gilbert8f710092014-05-15 15:54:06 +00004244
Douglas Gilbert891844a2022-04-24 18:11:56 +00004245
4246 ac_ext=c
Douglas Gilbert8f710092014-05-15 15:54:06 +00004247ac_cpp='$CPP $CPPFLAGS'
4248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250ac_compiler_gnu=$ac_cv_c_compiler_gnu
Douglas Gilbert891844a2022-04-24 18:11:56 +00004251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4252printf %s "checking whether $CC understands -c and -o together... " >&6; }
4253if test ${am_cv_prog_cc_c_o+y}
4254then :
4255 printf %s "(cached) " >&6
4256else $as_nop
Douglas Gilbert8f710092014-05-15 15:54:06 +00004257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h. */
4259
4260int
Douglas Gilbert891844a2022-04-24 18:11:56 +00004261main (void)
Douglas Gilbert8f710092014-05-15 15:54:06 +00004262{
4263
4264 ;
4265 return 0;
4266}
4267_ACEOF
4268 # Make sure it works both with $CC and with simple cc.
4269 # Following AC_PROG_CC_C_O, we do the test twice because some
4270 # compilers refuse to overwrite an existing .o file with -o,
4271 # though they will create one.
4272 am_cv_prog_cc_c_o=yes
4273 for am_i in 1 2; do
4274 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4275 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } \
4279 && test -f conftest2.$ac_objext; then
4280 : OK
4281 else
4282 am_cv_prog_cc_c_o=no
4283 break
4284 fi
4285 done
4286 rm -f core conftest*
4287 unset am_i
4288fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4290printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
Douglas Gilbert8f710092014-05-15 15:54:06 +00004291if test "$am_cv_prog_cc_c_o" != yes; then
4292 # Losing compiler, so override with the script.
4293 # FIXME: It is wrong to rewrite CC.
4294 # But if we don't then we get into trouble of one sort or another.
4295 # A longer-term fix would be to have automake use am__CC in this case,
4296 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4297 CC="$am_aux_dir/compile $CC"
4298fi
4299ac_ext=c
4300ac_cpp='$CPP $CPPFLAGS'
4301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004305DEPDIR="${am__leading_dot}deps"
4306
4307ac_config_commands="$ac_config_commands depfiles"
4308
Douglas Gilbert891844a2022-04-24 18:11:56 +00004309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4310printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
Douglas Gilbertc80acc92019-05-15 16:10:59 +00004311cat > confinc.mk << 'END'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004312am__doit:
Douglas Gilbertc80acc92019-05-15 16:10:59 +00004313 @echo this is the am__doit target >confinc.out
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004314.PHONY: am__doit
4315END
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004316am__include="#"
4317am__quote=
Douglas Gilbertc80acc92019-05-15 16:10:59 +00004318# BSD make does it like this.
4319echo '.include "confinc.mk" # ignored' > confmf.BSD
4320# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4321echo 'include confinc.mk # ignored' > confmf.GNU
4322_am_result=no
4323for s in GNU BSD; do
4324 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4325 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }
4329 case $?:`cat confinc.out 2>/dev/null` in #(
4330 '0:this is the am__doit target') :
4331 case $s in #(
4332 BSD) :
4333 am__include='.include' am__quote='"' ;; #(
4334 *) :
4335 am__include='include' am__quote='' ;;
4336esac ;; #(
4337 *) :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004338 ;;
Douglas Gilbertc80acc92019-05-15 16:10:59 +00004339esac
4340 if test "$am__include" != "#"; then
4341 _am_result="yes ($s style)"
4342 break
4343 fi
4344done
4345rm -f confinc.* confmf.*
Douglas Gilbert891844a2022-04-24 18:11:56 +00004346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4347printf "%s\n" "${_am_result}" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004348
4349# Check whether --enable-dependency-tracking was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +00004350if test ${enable_dependency_tracking+y}
4351then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004352 enableval=$enable_dependency_tracking;
4353fi
4354
4355if test "x$enable_dependency_tracking" != xno; then
4356 am_depcomp="$ac_aux_dir/depcomp"
4357 AMDEPBACKSLASH='\'
Douglas Gilbert63918a92012-09-08 03:20:30 +00004358 am__nodep='_no'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004359fi
4360 if test "x$enable_dependency_tracking" != xno; then
4361 AMDEP_TRUE=
4362 AMDEP_FALSE='#'
4363else
4364 AMDEP_TRUE='#'
4365 AMDEP_FALSE=
4366fi
4367
4368
4369
4370depcc="$CC" am_compiler_list=
4371
Douglas Gilbert891844a2022-04-24 18:11:56 +00004372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4373printf %s "checking dependency style of $depcc... " >&6; }
4374if test ${am_cv_CC_dependencies_compiler_type+y}
4375then :
4376 printf %s "(cached) " >&6
4377else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004378 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4379 # We make a subdir and do the tests there. Otherwise we can end up
4380 # making bogus files that we don't know about and never remove. For
4381 # instance it was reported that on HP-UX the gcc test will end up
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00004382 # making a dummy file named 'D' -- because '-MD' means "put the output
4383 # in D".
Douglas Gilbert63918a92012-09-08 03:20:30 +00004384 rm -rf conftest.dir
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004385 mkdir conftest.dir
4386 # Copy depcomp to subdir because otherwise we won't find it if we're
4387 # using a relative directory.
4388 cp "$am_depcomp" conftest.dir
4389 cd conftest.dir
4390 # We will build objects and dependencies in a subdirectory because
4391 # it helps to detect inapplicable dependency modes. For instance
4392 # both Tru64's cc and ICC support -MD to output dependencies as a
4393 # side effect of compilation, but ICC will put the dependencies in
4394 # the current directory while Tru64 will put them in the object
4395 # directory.
4396 mkdir sub
4397
4398 am_cv_CC_dependencies_compiler_type=none
4399 if test "$am_compiler_list" = ""; then
4400 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4401 fi
4402 am__universal=false
4403 case " $depcc " in #(
4404 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4405 esac
4406
4407 for depmode in $am_compiler_list; do
4408 # Setup a source with many dependencies, because some compilers
4409 # like to wrap large dependency lists on column 80 (with \), and
4410 # we should not choose a depcomp mode which is confused by this.
4411 #
4412 # We need to recreate these files for each test, as the compiler may
4413 # overwrite some of them when testing with obscure command lines.
4414 # This happens at least with the AIX C compiler.
4415 : > sub/conftest.c
4416 for i in 1 2 3 4 5 6; do
4417 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00004418 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4419 # Solaris 10 /bin/sh.
4420 echo '/* dummy */' > sub/conftst$i.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004421 done
4422 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4423
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00004424 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004425 # mode. It turns out that the SunPro C++ compiler does not properly
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00004426 # handle '-M -o', and we need to detect this. Also, some Intel
4427 # versions had trouble with output in subdirs.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004428 am__obj=sub/conftest.${OBJEXT-o}
4429 am__minus_obj="-o $am__obj"
4430 case $depmode in
4431 gcc)
4432 # This depmode causes a compiler race in universal mode.
4433 test "$am__universal" = false || continue
4434 ;;
4435 nosideeffect)
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00004436 # After this tag, mechanisms are not by side-effect, so they'll
4437 # only be used when explicitly requested.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004438 if test "x$enable_dependency_tracking" = xyes; then
4439 continue
4440 else
4441 break
4442 fi
4443 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00004444 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00004445 # This compiler won't grok '-c -o', but also, the minuso test has
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004446 # not run yet. These depmodes are late enough in the game, and
4447 # so weak that their functioning should not be impacted.
4448 am__obj=conftest.${OBJEXT-o}
4449 am__minus_obj=
4450 ;;
4451 none) break ;;
4452 esac
4453 if depmode=$depmode \
4454 source=sub/conftest.c object=$am__obj \
4455 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4456 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4457 >/dev/null 2>conftest.err &&
4458 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4459 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4460 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4461 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4462 # icc doesn't choke on unknown options, it will just issue warnings
4463 # or remarks (even with -Werror). So we grep stderr for any message
4464 # that says an option was ignored or not supported.
4465 # When given -MP, icc 7.0 and 7.1 complain thusly:
4466 # icc: Command line warning: ignoring option '-M'; no argument required
4467 # The diagnosis changed in icc 8.0:
4468 # icc: Command line remark: option '-MP' not supported
4469 if (grep 'ignoring option' conftest.err ||
4470 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4471 am_cv_CC_dependencies_compiler_type=$depmode
4472 break
4473 fi
4474 fi
4475 done
4476
4477 cd ..
4478 rm -rf conftest.dir
4479else
4480 am_cv_CC_dependencies_compiler_type=none
4481fi
4482
4483fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4485printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004486CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4487
4488 if
4489 test "x$enable_dependency_tracking" != xno \
4490 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4491 am__fastdepCC_TRUE=
4492 am__fastdepCC_FALSE='#'
4493else
4494 am__fastdepCC_TRUE='#'
4495 am__fastdepCC_FALSE=
4496fi
4497
4498
4499# AC_PROG_CXX
4500
4501
Douglas Gilberta0df1982018-01-03 05:40:58 +00004502# AM_PROG_AR is supported and needed since automake v1.12+
4503
Douglas Gilbert891844a2022-04-24 18:11:56 +00004504
4505 if test -n "$ac_tool_prefix"; then
Douglas Gilberta0df1982018-01-03 05:40:58 +00004506 for ac_prog in ar lib "link -lib"
4507 do
4508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4509set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00004510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511printf %s "checking for $ac_word... " >&6; }
4512if test ${ac_cv_prog_AR+y}
4513then :
4514 printf %s "(cached) " >&6
4515else $as_nop
Douglas Gilberta0df1982018-01-03 05:40:58 +00004516 if test -n "$AR"; then
4517 ac_cv_prog_AR="$AR" # Let the user override the test.
4518else
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00004523 case $as_dir in #(((
4524 '') as_dir=./ ;;
4525 */) ;;
4526 *) as_dir=$as_dir/ ;;
4527 esac
Douglas Gilberta0df1982018-01-03 05:40:58 +00004528 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00004529 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilberta0df1982018-01-03 05:40:58 +00004530 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Douglas Gilbert891844a2022-04-24 18:11:56 +00004531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilberta0df1982018-01-03 05:40:58 +00004532 break 2
4533 fi
4534done
4535 done
4536IFS=$as_save_IFS
4537
4538fi
4539fi
4540AR=$ac_cv_prog_AR
4541if test -n "$AR"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00004542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4543printf "%s\n" "$AR" >&6; }
Douglas Gilberta0df1982018-01-03 05:40:58 +00004544else
Douglas Gilbert891844a2022-04-24 18:11:56 +00004545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546printf "%s\n" "no" >&6; }
Douglas Gilberta0df1982018-01-03 05:40:58 +00004547fi
4548
4549
4550 test -n "$AR" && break
4551 done
4552fi
4553if test -z "$AR"; then
4554 ac_ct_AR=$AR
4555 for ac_prog in ar lib "link -lib"
4556do
4557 # Extract the first word of "$ac_prog", so it can be a program name with args.
4558set dummy $ac_prog; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00004559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560printf %s "checking for $ac_word... " >&6; }
4561if test ${ac_cv_prog_ac_ct_AR+y}
4562then :
4563 printf %s "(cached) " >&6
4564else $as_nop
Douglas Gilberta0df1982018-01-03 05:40:58 +00004565 if test -n "$ac_ct_AR"; then
4566 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4567else
4568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00004572 case $as_dir in #(((
4573 '') as_dir=./ ;;
4574 */) ;;
4575 *) as_dir=$as_dir/ ;;
4576 esac
Douglas Gilberta0df1982018-01-03 05:40:58 +00004577 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00004578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilberta0df1982018-01-03 05:40:58 +00004579 ac_cv_prog_ac_ct_AR="$ac_prog"
Douglas Gilbert891844a2022-04-24 18:11:56 +00004580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilberta0df1982018-01-03 05:40:58 +00004581 break 2
4582 fi
4583done
4584 done
4585IFS=$as_save_IFS
4586
4587fi
4588fi
4589ac_ct_AR=$ac_cv_prog_ac_ct_AR
4590if test -n "$ac_ct_AR"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00004591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4592printf "%s\n" "$ac_ct_AR" >&6; }
Douglas Gilberta0df1982018-01-03 05:40:58 +00004593else
Douglas Gilbert891844a2022-04-24 18:11:56 +00004594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595printf "%s\n" "no" >&6; }
Douglas Gilberta0df1982018-01-03 05:40:58 +00004596fi
4597
4598
4599 test -n "$ac_ct_AR" && break
4600done
4601
4602 if test "x$ac_ct_AR" = x; then
4603 AR="false"
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00004607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilberta0df1982018-01-03 05:40:58 +00004609ac_tool_warned=yes ;;
4610esac
4611 AR=$ac_ct_AR
4612 fi
4613fi
4614
4615: ${AR=ar}
4616
Douglas Gilbert891844a2022-04-24 18:11:56 +00004617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4618printf %s "checking the archiver ($AR) interface... " >&6; }
4619if test ${am_cv_ar_interface+y}
4620then :
4621 printf %s "(cached) " >&6
4622else $as_nop
Douglas Gilberta0df1982018-01-03 05:40:58 +00004623 ac_ext=c
4624ac_cpp='$CPP $CPPFLAGS'
4625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628
4629 am_cv_ar_interface=ar
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h. */
4632int some_variable = 0;
4633_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +00004634if ac_fn_c_try_compile "$LINENO"
4635then :
Douglas Gilberta0df1982018-01-03 05:40:58 +00004636 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4638 (eval $am_ar_try) 2>&5
4639 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00004640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilberta0df1982018-01-03 05:40:58 +00004641 test $ac_status = 0; }
4642 if test "$ac_status" -eq 0; then
4643 am_cv_ar_interface=ar
4644 else
4645 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4647 (eval $am_ar_try) 2>&5
4648 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00004649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilberta0df1982018-01-03 05:40:58 +00004650 test $ac_status = 0; }
4651 if test "$ac_status" -eq 0; then
4652 am_cv_ar_interface=lib
4653 else
4654 am_cv_ar_interface=unknown
4655 fi
4656 fi
4657 rm -f conftest.lib libconftest.a
4658
4659fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
Douglas Gilberta0df1982018-01-03 05:40:58 +00004661 ac_ext=c
4662ac_cpp='$CPP $CPPFLAGS'
4663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666
4667fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4669printf "%s\n" "$am_cv_ar_interface" >&6; }
Douglas Gilberta0df1982018-01-03 05:40:58 +00004670
4671case $am_cv_ar_interface in
4672ar)
4673 ;;
4674lib)
4675 # Microsoft lib, so override with the ar-lib wrapper script.
4676 # FIXME: It is wrong to rewrite AR.
4677 # But if we don't then we get into trouble of one sort or another.
4678 # A longer-term fix would be to have automake use am__AR in this case,
4679 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4680 # similar.
4681 AR="$am_aux_dir/ar-lib $AR"
4682 ;;
4683unknown)
4684 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4685 ;;
4686esac
4687
4688
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004689# Adding libtools to the build seems to bring in C++ environment
4690case `pwd` in
4691 *\ * | *\ *)
Douglas Gilbert891844a2022-04-24 18:11:56 +00004692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4693printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004694esac
4695
4696
4697
Douglas Gilbert23beedb2022-08-07 02:22:53 +00004698macro_version='2.4.7'
4699macro_revision='2.4.7'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
Douglas Gilbert891844a2022-04-24 18:11:56 +00004713
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004714ltmain=$ac_aux_dir/ltmain.sh
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004715
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004716
Douglas Gilbert891844a2022-04-24 18:11:56 +00004717
4718 # Make sure we can run config.sub.
4719$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4720 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4721
4722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4723printf %s "checking build system type... " >&6; }
4724if test ${ac_cv_build+y}
4725then :
4726 printf %s "(cached) " >&6
4727else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004728 ac_build_alias=$build_alias
4729test "x$ac_build_alias" = x &&
Douglas Gilbert891844a2022-04-24 18:11:56 +00004730 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004731test "x$ac_build_alias" = x &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004732 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Douglas Gilbert891844a2022-04-24 18:11:56 +00004733ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4734 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004735
4736fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4738printf "%s\n" "$ac_cv_build" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004739case $ac_cv_build in
4740*-*-*) ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00004741*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004742esac
4743build=$ac_cv_build
4744ac_save_IFS=$IFS; IFS='-'
4745set x $ac_cv_build
4746shift
4747build_cpu=$1
4748build_vendor=$2
4749shift; shift
4750# Remember, the first character of IFS is used to create $*,
4751# except with old shells:
4752build_os=$*
4753IFS=$ac_save_IFS
4754case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4755
4756
Douglas Gilbert891844a2022-04-24 18:11:56 +00004757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4758printf %s "checking host system type... " >&6; }
4759if test ${ac_cv_host+y}
4760then :
4761 printf %s "(cached) " >&6
4762else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004763 if test "x$host_alias" = x; then
4764 ac_cv_host=$ac_cv_build
4765else
Douglas Gilbert891844a2022-04-24 18:11:56 +00004766 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4767 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004768fi
4769
4770fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4772printf "%s\n" "$ac_cv_host" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004773case $ac_cv_host in
4774*-*-*) ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00004775*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004776esac
4777host=$ac_cv_host
4778ac_save_IFS=$IFS; IFS='-'
4779set x $ac_cv_host
4780shift
4781host_cpu=$1
4782host_vendor=$2
4783shift; shift
4784# Remember, the first character of IFS is used to create $*,
4785# except with old shells:
4786host_os=$*
4787IFS=$ac_save_IFS
4788case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4789
4790
Douglas Gilbertc978e062011-12-06 21:50:07 +00004791# Backslashify metacharacters that are still active within
4792# double-quoted strings.
4793sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4794
4795# Same as above, but do not quote variable references.
4796double_quote_subst='s/\(["`\\]\)/\\\1/g'
4797
4798# Sed substitution to delay expansion of an escaped shell variable in a
4799# double_quote_subst'ed string.
4800delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4801
4802# Sed substitution to delay expansion of an escaped single quote.
4803delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4804
4805# Sed substitution to avoid accidental globbing in evaled expressions
4806no_glob_subst='s/\*/\\\*/g'
4807
4808ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4809ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4810ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4811
Douglas Gilbert891844a2022-04-24 18:11:56 +00004812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4813printf %s "checking how to print strings... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004814# Test print first, because it will be a builtin if present.
4815if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4816 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4817 ECHO='print -r --'
4818elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4819 ECHO='printf %s\n'
4820else
4821 # Use this function as a fallback that always works.
4822 func_fallback_echo ()
4823 {
4824 eval 'cat <<_LTECHO_EOF
4825$1
4826_LTECHO_EOF'
4827 }
4828 ECHO='func_fallback_echo'
4829fi
4830
4831# func_echo_all arg...
4832# Invoke $ECHO with all args, space-separated.
4833func_echo_all ()
4834{
4835 $ECHO ""
4836}
4837
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004838case $ECHO in
Douglas Gilbert891844a2022-04-24 18:11:56 +00004839 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4840printf "%s\n" "printf" >&6; } ;;
4841 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4842printf "%s\n" "print -r" >&6; } ;;
4843 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4844printf "%s\n" "cat" >&6; } ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00004845esac
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
Douglas Gilbert891844a2022-04-24 18:11:56 +00004860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4861printf %s "checking for a sed that does not truncate output... " >&6; }
4862if test ${ac_cv_path_SED+y}
4863then :
4864 printf %s "(cached) " >&6
4865else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004866 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4867 for ac_i in 1 2 3 4 5 6 7; do
4868 ac_script="$ac_script$as_nl$ac_script"
4869 done
4870 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4871 { ac_script=; unset ac_script;}
4872 if test -z "$SED"; then
4873 ac_path_SED_found=false
4874 # Loop through the user's path and test for each of PROGNAME-LIST
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH
4877do
4878 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00004879 case $as_dir in #(((
4880 '') as_dir=./ ;;
4881 */) ;;
4882 *) as_dir=$as_dir/ ;;
4883 esac
4884 for ac_prog in sed gsed
4885 do
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004886 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00004887 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004888 as_fn_executable_p "$ac_path_SED" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004889# Check for GNU ac_path_SED and select it if it is found.
4890 # Check for GNU $ac_path_SED
4891case `"$ac_path_SED" --version 2>&1` in
4892*GNU*)
4893 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4894*)
4895 ac_count=0
Douglas Gilbert891844a2022-04-24 18:11:56 +00004896 printf %s 0123456789 >"conftest.in"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004897 while :
4898 do
4899 cat "conftest.in" "conftest.in" >"conftest.tmp"
4900 mv "conftest.tmp" "conftest.in"
4901 cp "conftest.in" "conftest.nl"
Douglas Gilbert891844a2022-04-24 18:11:56 +00004902 printf "%s\n" '' >> "conftest.nl"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004903 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905 as_fn_arith $ac_count + 1 && ac_count=$as_val
4906 if test $ac_count -gt ${ac_path_SED_max-0}; then
4907 # Best one so far, save it but keep looking for a better one
4908 ac_cv_path_SED="$ac_path_SED"
4909 ac_path_SED_max=$ac_count
4910 fi
4911 # 10*(2^10) chars as input seems more than enough
4912 test $ac_count -gt 10 && break
4913 done
4914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4915esac
4916
4917 $ac_path_SED_found && break 3
4918 done
4919 done
4920 done
4921IFS=$as_save_IFS
4922 if test -z "$ac_cv_path_SED"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004923 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004924 fi
4925else
4926 ac_cv_path_SED=$SED
4927fi
4928
4929fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00004930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4931printf "%s\n" "$ac_cv_path_SED" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004932 SED="$ac_cv_path_SED"
4933 rm -f conftest.sed
4934
4935test -z "$SED" && SED=sed
4936Xsed="$SED -e 1s/^X//"
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
Douglas Gilbert891844a2022-04-24 18:11:56 +00004948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4949printf %s "checking for grep that handles long lines and -e... " >&6; }
4950if test ${ac_cv_path_GREP+y}
4951then :
4952 printf %s "(cached) " >&6
4953else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004954 if test -z "$GREP"; then
4955 ac_path_GREP_found=false
4956 # Loop through the user's path and test for each of PROGNAME-LIST
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4959do
4960 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00004961 case $as_dir in #(((
4962 '') as_dir=./ ;;
4963 */) ;;
4964 *) as_dir=$as_dir/ ;;
4965 esac
4966 for ac_prog in grep ggrep
4967 do
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004968 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00004969 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004970 as_fn_executable_p "$ac_path_GREP" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004971# Check for GNU ac_path_GREP and select it if it is found.
4972 # Check for GNU $ac_path_GREP
4973case `"$ac_path_GREP" --version 2>&1` in
4974*GNU*)
4975 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4976*)
4977 ac_count=0
Douglas Gilbert891844a2022-04-24 18:11:56 +00004978 printf %s 0123456789 >"conftest.in"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004979 while :
4980 do
4981 cat "conftest.in" "conftest.in" >"conftest.tmp"
4982 mv "conftest.tmp" "conftest.in"
4983 cp "conftest.in" "conftest.nl"
Douglas Gilbert891844a2022-04-24 18:11:56 +00004984 printf "%s\n" 'GREP' >> "conftest.nl"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004985 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4987 as_fn_arith $ac_count + 1 && ac_count=$as_val
4988 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4989 # Best one so far, save it but keep looking for a better one
4990 ac_cv_path_GREP="$ac_path_GREP"
4991 ac_path_GREP_max=$ac_count
4992 fi
4993 # 10*(2^10) chars as input seems more than enough
4994 test $ac_count -gt 10 && break
4995 done
4996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4997esac
4998
4999 $ac_path_GREP_found && break 3
5000 done
5001 done
5002 done
5003IFS=$as_save_IFS
5004 if test -z "$ac_cv_path_GREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00005005 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005006 fi
5007else
5008 ac_cv_path_GREP=$GREP
5009fi
5010
5011fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00005012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5013printf "%s\n" "$ac_cv_path_GREP" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005014 GREP="$ac_cv_path_GREP"
5015
5016
Douglas Gilbert891844a2022-04-24 18:11:56 +00005017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5018printf %s "checking for egrep... " >&6; }
5019if test ${ac_cv_path_EGREP+y}
5020then :
5021 printf %s "(cached) " >&6
5022else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005023 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5024 then ac_cv_path_EGREP="$GREP -E"
5025 else
5026 if test -z "$EGREP"; then
5027 ac_path_EGREP_found=false
5028 # Loop through the user's path and test for each of PROGNAME-LIST
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5031do
5032 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00005033 case $as_dir in #(((
5034 '') as_dir=./ ;;
5035 */) ;;
5036 *) as_dir=$as_dir/ ;;
5037 esac
5038 for ac_prog in egrep
5039 do
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005040 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00005041 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005042 as_fn_executable_p "$ac_path_EGREP" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005043# Check for GNU ac_path_EGREP and select it if it is found.
5044 # Check for GNU $ac_path_EGREP
5045case `"$ac_path_EGREP" --version 2>&1` in
5046*GNU*)
5047 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5048*)
5049 ac_count=0
Douglas Gilbert891844a2022-04-24 18:11:56 +00005050 printf %s 0123456789 >"conftest.in"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005051 while :
5052 do
5053 cat "conftest.in" "conftest.in" >"conftest.tmp"
5054 mv "conftest.tmp" "conftest.in"
5055 cp "conftest.in" "conftest.nl"
Douglas Gilbert891844a2022-04-24 18:11:56 +00005056 printf "%s\n" 'EGREP' >> "conftest.nl"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005057 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
5060 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5061 # Best one so far, save it but keep looking for a better one
5062 ac_cv_path_EGREP="$ac_path_EGREP"
5063 ac_path_EGREP_max=$ac_count
5064 fi
5065 # 10*(2^10) chars as input seems more than enough
5066 test $ac_count -gt 10 && break
5067 done
5068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5069esac
5070
5071 $ac_path_EGREP_found && break 3
5072 done
5073 done
5074 done
5075IFS=$as_save_IFS
5076 if test -z "$ac_cv_path_EGREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00005077 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005078 fi
5079else
5080 ac_cv_path_EGREP=$EGREP
5081fi
5082
5083 fi
5084fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00005085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5086printf "%s\n" "$ac_cv_path_EGREP" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005087 EGREP="$ac_cv_path_EGREP"
5088
5089
Douglas Gilbert891844a2022-04-24 18:11:56 +00005090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5091printf %s "checking for fgrep... " >&6; }
5092if test ${ac_cv_path_FGREP+y}
5093then :
5094 printf %s "(cached) " >&6
5095else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005096 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5097 then ac_cv_path_FGREP="$GREP -F"
5098 else
5099 if test -z "$FGREP"; then
5100 ac_path_FGREP_found=false
5101 # Loop through the user's path and test for each of PROGNAME-LIST
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5104do
5105 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00005106 case $as_dir in #(((
5107 '') as_dir=./ ;;
5108 */) ;;
5109 *) as_dir=$as_dir/ ;;
5110 esac
5111 for ac_prog in fgrep
5112 do
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005113 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00005114 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005115 as_fn_executable_p "$ac_path_FGREP" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005116# Check for GNU ac_path_FGREP and select it if it is found.
5117 # Check for GNU $ac_path_FGREP
5118case `"$ac_path_FGREP" --version 2>&1` in
5119*GNU*)
5120 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5121*)
5122 ac_count=0
Douglas Gilbert891844a2022-04-24 18:11:56 +00005123 printf %s 0123456789 >"conftest.in"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005124 while :
5125 do
5126 cat "conftest.in" "conftest.in" >"conftest.tmp"
5127 mv "conftest.tmp" "conftest.in"
5128 cp "conftest.in" "conftest.nl"
Douglas Gilbert891844a2022-04-24 18:11:56 +00005129 printf "%s\n" 'FGREP' >> "conftest.nl"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005130 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5132 as_fn_arith $ac_count + 1 && ac_count=$as_val
5133 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5134 # Best one so far, save it but keep looking for a better one
5135 ac_cv_path_FGREP="$ac_path_FGREP"
5136 ac_path_FGREP_max=$ac_count
5137 fi
5138 # 10*(2^10) chars as input seems more than enough
5139 test $ac_count -gt 10 && break
5140 done
5141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5142esac
5143
5144 $ac_path_FGREP_found && break 3
5145 done
5146 done
5147 done
5148IFS=$as_save_IFS
5149 if test -z "$ac_cv_path_FGREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00005150 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005151 fi
5152else
5153 ac_cv_path_FGREP=$FGREP
5154fi
5155
5156 fi
5157fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00005158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5159printf "%s\n" "$ac_cv_path_FGREP" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005160 FGREP="$ac_cv_path_FGREP"
5161
5162
5163test -z "$GREP" && GREP=grep
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183# Check whether --with-gnu-ld was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +00005184if test ${with_gnu_ld+y}
5185then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005186 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +00005187else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005188 with_gnu_ld=no
5189fi
5190
5191ac_prog=ld
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005192if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005193 # Check if gcc -print-prog-name=ld gives a path.
Douglas Gilbert891844a2022-04-24 18:11:56 +00005194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5195printf %s "checking for ld used by $CC... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005196 case $host in
5197 *-*-mingw*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005198 # gcc leaves a trailing carriage return, which upsets mingw
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005199 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5200 *)
5201 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5202 esac
5203 case $ac_prog in
5204 # Accept absolute paths.
5205 [\\/]* | ?:[\\/]*)
5206 re_direlt='/[^/][^/]*/\.\./'
5207 # Canonicalize the pathname of ld
5208 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5209 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5210 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5211 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005212 test -z "$LD" && LD=$ac_prog
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005213 ;;
5214 "")
5215 # If it fails, then pretend we aren't using GCC.
5216 ac_prog=ld
5217 ;;
5218 *)
5219 # If it is relative, then search for the first ld in PATH.
5220 with_gnu_ld=unknown
5221 ;;
5222 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005223elif test yes = "$with_gnu_ld"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00005224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5225printf %s "checking for GNU ld... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005226else
Douglas Gilbert891844a2022-04-24 18:11:56 +00005227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5228printf %s "checking for non-GNU ld... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005229fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00005230if test ${lt_cv_path_LD+y}
5231then :
5232 printf %s "(cached) " >&6
5233else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005234 if test -z "$LD"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005235 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005236 for ac_dir in $PATH; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005237 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005238 test -z "$ac_dir" && ac_dir=.
5239 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005240 lt_cv_path_LD=$ac_dir/$ac_prog
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005241 # Check to see if the program is GNU ld. I'd rather use --version,
5242 # but apparently some variants of GNU ld only accept -v.
5243 # Break only if it was the GNU/non-GNU ld that we prefer.
5244 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5245 *GNU* | *'with BFD'*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005246 test no != "$with_gnu_ld" && break
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005247 ;;
5248 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005249 test yes != "$with_gnu_ld" && break
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005250 ;;
5251 esac
5252 fi
5253 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005254 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005255else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005256 lt_cv_path_LD=$LD # Let the user override the test with a path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005257fi
5258fi
5259
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005260LD=$lt_cv_path_LD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005261if test -n "$LD"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00005262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5263printf "%s\n" "$LD" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005264else
Douglas Gilbert891844a2022-04-24 18:11:56 +00005265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005267fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00005268test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Douglas Gilbert891844a2022-04-24 18:11:56 +00005269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5270printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5271if test ${lt_cv_prog_gnu_ld+y}
5272then :
5273 printf %s "(cached) " >&6
5274else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005275 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5276case `$LD -v 2>&1 </dev/null` in
5277*GNU* | *'with BFD'*)
5278 lt_cv_prog_gnu_ld=yes
5279 ;;
5280*)
5281 lt_cv_prog_gnu_ld=no
5282 ;;
5283esac
5284fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00005285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5286printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005287with_gnu_ld=$lt_cv_prog_gnu_ld
5288
5289
5290
5291
5292
5293
5294
5295
5296
Douglas Gilbert891844a2022-04-24 18:11:56 +00005297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5298printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5299if test ${lt_cv_path_NM+y}
5300then :
5301 printf %s "(cached) " >&6
5302else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005303 if test -n "$NM"; then
5304 # Let the user override the test.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005305 lt_cv_path_NM=$NM
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005306else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005307 lt_nm_to_check=${ac_tool_prefix}nm
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005308 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5309 lt_nm_to_check="$lt_nm_to_check nm"
5310 fi
5311 for lt_tmp_nm in $lt_nm_to_check; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005312 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005313 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005314 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005315 test -z "$ac_dir" && ac_dir=.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005316 tmp_nm=$ac_dir/$lt_tmp_nm
5317 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005318 # Check to see if the nm accepts a BSD-compat flag.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005319 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005320 # nm: unknown option "B" ignored
5321 # Tru64's nm complains that /dev/null is an invalid object file
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005322 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5323 case $build_os in
5324 mingw*) lt_bad_file=conftest.nm/nofile ;;
5325 *) lt_bad_file=/dev/null ;;
5326 esac
Douglas Gilbert23beedb2022-08-07 02:22:53 +00005327 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005328 *$lt_bad_file* | *'Invalid file or object type'*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005329 lt_cv_path_NM="$tmp_nm -B"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005330 break 2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005331 ;;
5332 *)
Douglas Gilbert23beedb2022-08-07 02:22:53 +00005333 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005334 */dev/null*)
5335 lt_cv_path_NM="$tmp_nm -p"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005336 break 2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005337 ;;
5338 *)
5339 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5340 continue # so that we can try to find one that supports BSD flags
5341 ;;
5342 esac
5343 ;;
5344 esac
5345 fi
5346 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005347 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005348 done
5349 : ${lt_cv_path_NM=no}
5350fi
5351fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00005352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5353printf "%s\n" "$lt_cv_path_NM" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005354if test no != "$lt_cv_path_NM"; then
5355 NM=$lt_cv_path_NM
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005356else
5357 # Didn't find any BSD compatible name lister, look for dumpbin.
Douglas Gilbertc978e062011-12-06 21:50:07 +00005358 if test -n "$DUMPBIN"; then :
5359 # Let the user override the test.
5360 else
5361 if test -n "$ac_tool_prefix"; then
5362 for ac_prog in dumpbin "link -dump"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005363 do
5364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5365set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00005366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367printf %s "checking for $ac_word... " >&6; }
5368if test ${ac_cv_prog_DUMPBIN+y}
5369then :
5370 printf %s "(cached) " >&6
5371else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005372 if test -n "$DUMPBIN"; then
5373 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5374else
5375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376for as_dir in $PATH
5377do
5378 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00005379 case $as_dir in #(((
5380 '') as_dir=./ ;;
5381 */) ;;
5382 *) as_dir=$as_dir/ ;;
5383 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005384 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00005385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005386 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Douglas Gilbert891844a2022-04-24 18:11:56 +00005387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005388 break 2
5389 fi
5390done
5391 done
5392IFS=$as_save_IFS
5393
5394fi
5395fi
5396DUMPBIN=$ac_cv_prog_DUMPBIN
5397if test -n "$DUMPBIN"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00005398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5399printf "%s\n" "$DUMPBIN" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005400else
Douglas Gilbert891844a2022-04-24 18:11:56 +00005401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005403fi
5404
5405
5406 test -n "$DUMPBIN" && break
5407 done
5408fi
5409if test -z "$DUMPBIN"; then
5410 ac_ct_DUMPBIN=$DUMPBIN
Douglas Gilbertc978e062011-12-06 21:50:07 +00005411 for ac_prog in dumpbin "link -dump"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005412do
5413 # Extract the first word of "$ac_prog", so it can be a program name with args.
5414set dummy $ac_prog; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00005415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416printf %s "checking for $ac_word... " >&6; }
5417if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5418then :
5419 printf %s "(cached) " >&6
5420else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005421 if test -n "$ac_ct_DUMPBIN"; then
5422 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5423else
5424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425for as_dir in $PATH
5426do
5427 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00005428 case $as_dir in #(((
5429 '') as_dir=./ ;;
5430 */) ;;
5431 *) as_dir=$as_dir/ ;;
5432 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005433 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00005434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005435 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Douglas Gilbert891844a2022-04-24 18:11:56 +00005436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005437 break 2
5438 fi
5439done
5440 done
5441IFS=$as_save_IFS
5442
5443fi
5444fi
5445ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5446if test -n "$ac_ct_DUMPBIN"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00005447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5448printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005449else
Douglas Gilbert891844a2022-04-24 18:11:56 +00005450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005452fi
5453
5454
5455 test -n "$ac_ct_DUMPBIN" && break
5456done
5457
5458 if test "x$ac_ct_DUMPBIN" = x; then
5459 DUMPBIN=":"
5460 else
5461 case $cross_compiling:$ac_tool_warned in
5462yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00005463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5464printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005465ac_tool_warned=yes ;;
5466esac
5467 DUMPBIN=$ac_ct_DUMPBIN
5468 fi
5469fi
5470
Douglas Gilbert23beedb2022-08-07 02:22:53 +00005471 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
Douglas Gilbertc978e062011-12-06 21:50:07 +00005472 *COFF*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005473 DUMPBIN="$DUMPBIN -symbols -headers"
Douglas Gilbertc978e062011-12-06 21:50:07 +00005474 ;;
5475 *)
5476 DUMPBIN=:
5477 ;;
5478 esac
5479 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005480
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005481 if test : != "$DUMPBIN"; then
5482 NM=$DUMPBIN
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005483 fi
5484fi
5485test -z "$NM" && NM=nm
5486
5487
5488
5489
5490
5491
Douglas Gilbert891844a2022-04-24 18:11:56 +00005492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5493printf %s "checking the name lister ($NM) interface... " >&6; }
5494if test ${lt_cv_nm_interface+y}
5495then :
5496 printf %s "(cached) " >&6
5497else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005498 lt_cv_nm_interface="BSD nm"
5499 echo "int some_variable = 0;" > conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00005500 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005501 (eval "$ac_compile" 2>conftest.err)
5502 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00005503 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005504 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5505 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00005506 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005507 cat conftest.out >&5
5508 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5509 lt_cv_nm_interface="MS dumpbin"
5510 fi
5511 rm -f conftest*
5512fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00005513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5514printf "%s\n" "$lt_cv_nm_interface" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005515
Douglas Gilbert891844a2022-04-24 18:11:56 +00005516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5517printf %s "checking whether ln -s works... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005518LN_S=$as_ln_s
5519if test "$LN_S" = "ln -s"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00005520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521printf "%s\n" "yes" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005522else
Douglas Gilbert891844a2022-04-24 18:11:56 +00005523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5524printf "%s\n" "no, using $LN_S" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005525fi
5526
5527# find the maximum length of command line arguments
Douglas Gilbert891844a2022-04-24 18:11:56 +00005528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5529printf %s "checking the maximum length of command line arguments... " >&6; }
5530if test ${lt_cv_sys_max_cmd_len+y}
5531then :
5532 printf %s "(cached) " >&6
5533else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005534 i=0
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005535 teststring=ABCD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005536
5537 case $build_os in
5538 msdosdjgpp*)
5539 # On DJGPP, this test can blow up pretty badly due to problems in libc
5540 # (any single argument exceeding 2000 bytes causes a buffer overrun
5541 # during glob expansion). Even if it were fixed, the result of this
5542 # check would be larger than it should be.
5543 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5544 ;;
5545
5546 gnu*)
5547 # Under GNU Hurd, this test is not required because there is
5548 # no limit to the length of command line arguments.
5549 # Libtool will interpret -1 as no limit whatsoever
5550 lt_cv_sys_max_cmd_len=-1;
5551 ;;
5552
5553 cygwin* | mingw* | cegcc*)
5554 # On Win9x/ME, this test blows up -- it succeeds, but takes
5555 # about 5 minutes as the teststring grows exponentially.
5556 # Worse, since 9x/ME are not pre-emptively multitasking,
5557 # you end up with a "frozen" computer, even though with patience
5558 # the test eventually succeeds (with a max line length of 256k).
5559 # Instead, let's just punt: use the minimum linelength reported by
5560 # all of the supported platforms: 8192 (on NT/2K/XP).
5561 lt_cv_sys_max_cmd_len=8192;
5562 ;;
5563
Douglas Gilbertc978e062011-12-06 21:50:07 +00005564 mint*)
5565 # On MiNT this can take a long time and run out of memory.
5566 lt_cv_sys_max_cmd_len=8192;
5567 ;;
5568
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005569 amigaos*)
5570 # On AmigaOS with pdksh, this test takes hours, literally.
5571 # So we just punt and use a minimum line length of 8192.
5572 lt_cv_sys_max_cmd_len=8192;
5573 ;;
5574
Douglas Gilbert23beedb2022-08-07 02:22:53 +00005575 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005576 # This has been around since 386BSD, at least. Likely further.
5577 if test -x /sbin/sysctl; then
5578 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5579 elif test -x /usr/sbin/sysctl; then
5580 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5581 else
5582 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5583 fi
5584 # And add a safety zone
5585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5587 ;;
5588
5589 interix*)
5590 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5591 lt_cv_sys_max_cmd_len=196608
5592 ;;
5593
Douglas Gilbert63918a92012-09-08 03:20:30 +00005594 os2*)
5595 # The test takes a long time on OS/2.
5596 lt_cv_sys_max_cmd_len=8192
5597 ;;
5598
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005599 osf*)
5600 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5601 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5602 # nice to cause kernel panics so lets avoid the loop below.
5603 # First set a reasonable default.
5604 lt_cv_sys_max_cmd_len=16384
5605 #
5606 if test -x /sbin/sysconfig; then
5607 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5608 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5609 esac
5610 fi
5611 ;;
5612 sco3.2v5*)
5613 lt_cv_sys_max_cmd_len=102400
5614 ;;
5615 sysv5* | sco5v6* | sysv4.2uw2*)
5616 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5617 if test -n "$kargmax"; then
Douglas Gilbert23beedb2022-08-07 02:22:53 +00005618 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005619 else
5620 lt_cv_sys_max_cmd_len=32768
5621 fi
5622 ;;
5623 *)
5624 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00005625 if test -n "$lt_cv_sys_max_cmd_len" && \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005626 test undefined != "$lt_cv_sys_max_cmd_len"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5629 else
5630 # Make teststring a little bigger before we do anything with it.
5631 # a 1K string should be a reasonable start.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005632 for i in 1 2 3 4 5 6 7 8; do
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005633 teststring=$teststring$teststring
5634 done
5635 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5636 # If test is not a shell built-in, we'll probably end up computing a
5637 # maximum length that is only half of the actual maximum length, but
5638 # we can't tell.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005639 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Douglas Gilbertc978e062011-12-06 21:50:07 +00005640 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005641 test 17 != "$i" # 1/2 MB should be enough
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005642 do
5643 i=`expr $i + 1`
5644 teststring=$teststring$teststring
5645 done
5646 # Only check the string length outside the loop.
5647 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5648 teststring=
5649 # Add a significant safety factor because C++ compilers can tack on
5650 # massive amounts of additional arguments before passing them to the
5651 # linker. It appears as though 1/2 is a usable value.
5652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5653 fi
5654 ;;
5655 esac
5656
5657fi
5658
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005659if test -n "$lt_cv_sys_max_cmd_len"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00005660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5661printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005662else
Douglas Gilbert891844a2022-04-24 18:11:56 +00005663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5664printf "%s\n" "none" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005665fi
5666max_cmd_len=$lt_cv_sys_max_cmd_len
5667
5668
5669
5670
5671
5672
5673: ${CP="cp -f"}
5674: ${MV="mv -f"}
5675: ${RM="rm -f"}
5676
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005677if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5678 lt_unset=unset
5679else
5680 lt_unset=false
5681fi
5682
5683
5684
5685
5686
5687# test EBCDIC or ASCII
5688case `echo X|tr X '\101'` in
5689 A) # ASCII based system
5690 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5691 lt_SP2NL='tr \040 \012'
5692 lt_NL2SP='tr \015\012 \040\040'
5693 ;;
5694 *) # EBCDIC based system
5695 lt_SP2NL='tr \100 \n'
5696 lt_NL2SP='tr \r\n \100\100'
5697 ;;
5698esac
5699
5700
5701
5702
5703
5704
5705
5706
5707
Douglas Gilbert891844a2022-04-24 18:11:56 +00005708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5709printf %s "checking how to convert $build file names to $host format... " >&6; }
5710if test ${lt_cv_to_host_file_cmd+y}
5711then :
5712 printf %s "(cached) " >&6
5713else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +00005714 case $host in
5715 *-*-mingw* )
5716 case $build in
5717 *-*-mingw* ) # actually msys
5718 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5719 ;;
5720 *-*-cygwin* )
5721 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5722 ;;
5723 * ) # otherwise, assume *nix
5724 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5725 ;;
5726 esac
5727 ;;
5728 *-*-cygwin* )
5729 case $build in
5730 *-*-mingw* ) # actually msys
5731 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5732 ;;
5733 *-*-cygwin* )
5734 lt_cv_to_host_file_cmd=func_convert_file_noop
5735 ;;
5736 * ) # otherwise, assume *nix
5737 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5738 ;;
5739 esac
5740 ;;
5741 * ) # unhandled hosts (and "normal" native builds)
5742 lt_cv_to_host_file_cmd=func_convert_file_noop
5743 ;;
5744esac
5745
5746fi
5747
5748to_host_file_cmd=$lt_cv_to_host_file_cmd
Douglas Gilbert891844a2022-04-24 18:11:56 +00005749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5750printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005751
5752
5753
5754
5755
Douglas Gilbert891844a2022-04-24 18:11:56 +00005756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5757printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5758if test ${lt_cv_to_tool_file_cmd+y}
5759then :
5760 printf %s "(cached) " >&6
5761else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +00005762 #assume ordinary cross tools, or native build.
5763lt_cv_to_tool_file_cmd=func_convert_file_noop
5764case $host in
5765 *-*-mingw* )
5766 case $build in
5767 *-*-mingw* ) # actually msys
5768 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5769 ;;
5770 esac
5771 ;;
5772esac
5773
5774fi
5775
5776to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Douglas Gilbert891844a2022-04-24 18:11:56 +00005777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5778printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005779
5780
5781
5782
5783
Douglas Gilbert891844a2022-04-24 18:11:56 +00005784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5785printf %s "checking for $LD option to reload object files... " >&6; }
5786if test ${lt_cv_ld_reload_flag+y}
5787then :
5788 printf %s "(cached) " >&6
5789else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005790 lt_cv_ld_reload_flag='-r'
5791fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00005792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5793printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005794reload_flag=$lt_cv_ld_reload_flag
5795case $reload_flag in
5796"" | " "*) ;;
5797*) reload_flag=" $reload_flag" ;;
5798esac
5799reload_cmds='$LD$reload_flag -o $output$reload_objs'
5800case $host_os in
Douglas Gilbertc978e062011-12-06 21:50:07 +00005801 cygwin* | mingw* | pw32* | cegcc*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005802 if test yes != "$GCC"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005803 reload_cmds=false
5804 fi
5805 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005806 darwin*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005807 if test yes = "$GCC"; then
5808 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005809 else
5810 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5811 fi
5812 ;;
5813esac
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823if test -n "$ac_tool_prefix"; then
Douglas Gilbert23beedb2022-08-07 02:22:53 +00005824 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5825set dummy ${ac_tool_prefix}file; ac_word=$2
5826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827printf %s "checking for $ac_word... " >&6; }
5828if test ${ac_cv_prog_FILECMD+y}
5829then :
5830 printf %s "(cached) " >&6
5831else $as_nop
5832 if test -n "$FILECMD"; then
5833 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5834else
5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH
5837do
5838 IFS=$as_save_IFS
5839 case $as_dir in #(((
5840 '') as_dir=./ ;;
5841 */) ;;
5842 *) as_dir=$as_dir/ ;;
5843 esac
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5846 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5848 break 2
5849 fi
5850done
5851 done
5852IFS=$as_save_IFS
5853
5854fi
5855fi
5856FILECMD=$ac_cv_prog_FILECMD
5857if test -n "$FILECMD"; then
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5859printf "%s\n" "$FILECMD" >&6; }
5860else
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862printf "%s\n" "no" >&6; }
5863fi
5864
5865
5866fi
5867if test -z "$ac_cv_prog_FILECMD"; then
5868 ac_ct_FILECMD=$FILECMD
5869 # Extract the first word of "file", so it can be a program name with args.
5870set dummy file; ac_word=$2
5871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872printf %s "checking for $ac_word... " >&6; }
5873if test ${ac_cv_prog_ac_ct_FILECMD+y}
5874then :
5875 printf %s "(cached) " >&6
5876else $as_nop
5877 if test -n "$ac_ct_FILECMD"; then
5878 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5879else
5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883 IFS=$as_save_IFS
5884 case $as_dir in #(((
5885 '') as_dir=./ ;;
5886 */) ;;
5887 *) as_dir=$as_dir/ ;;
5888 esac
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_ac_ct_FILECMD="file"
5892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895done
5896 done
5897IFS=$as_save_IFS
5898
5899fi
5900fi
5901ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5902if test -n "$ac_ct_FILECMD"; then
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5904printf "%s\n" "$ac_ct_FILECMD" >&6; }
5905else
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907printf "%s\n" "no" >&6; }
5908fi
5909
5910 if test "x$ac_ct_FILECMD" = x; then
5911 FILECMD=":"
5912 else
5913 case $cross_compiling:$ac_tool_warned in
5914yes:)
5915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5916printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5917ac_tool_warned=yes ;;
5918esac
5919 FILECMD=$ac_ct_FILECMD
5920 fi
5921else
5922 FILECMD="$ac_cv_prog_FILECMD"
5923fi
5924
5925
5926
5927
5928
5929
5930
5931if test -n "$ac_tool_prefix"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005932 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5933set dummy ${ac_tool_prefix}objdump; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00005934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935printf %s "checking for $ac_word... " >&6; }
5936if test ${ac_cv_prog_OBJDUMP+y}
5937then :
5938 printf %s "(cached) " >&6
5939else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005940 if test -n "$OBJDUMP"; then
5941 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00005947 case $as_dir in #(((
5948 '') as_dir=./ ;;
5949 */) ;;
5950 *) as_dir=$as_dir/ ;;
5951 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005952 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00005953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005954 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Douglas Gilbert891844a2022-04-24 18:11:56 +00005955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005956 break 2
5957 fi
5958done
5959 done
5960IFS=$as_save_IFS
5961
5962fi
5963fi
5964OBJDUMP=$ac_cv_prog_OBJDUMP
5965if test -n "$OBJDUMP"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00005966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5967printf "%s\n" "$OBJDUMP" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005968else
Douglas Gilbert891844a2022-04-24 18:11:56 +00005969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005971fi
5972
5973
5974fi
5975if test -z "$ac_cv_prog_OBJDUMP"; then
5976 ac_ct_OBJDUMP=$OBJDUMP
5977 # Extract the first word of "objdump", so it can be a program name with args.
5978set dummy objdump; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00005979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980printf %s "checking for $ac_word... " >&6; }
5981if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5982then :
5983 printf %s "(cached) " >&6
5984else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005985 if test -n "$ac_ct_OBJDUMP"; then
5986 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5987else
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00005992 case $as_dir in #(((
5993 '') as_dir=./ ;;
5994 */) ;;
5995 *) as_dir=$as_dir/ ;;
5996 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005997 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00005998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005999 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Douglas Gilbert891844a2022-04-24 18:11:56 +00006000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006001 break 2
6002 fi
6003done
6004 done
6005IFS=$as_save_IFS
6006
6007fi
6008fi
6009ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6010if test -n "$ac_ct_OBJDUMP"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00006011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6012printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006013else
Douglas Gilbert891844a2022-04-24 18:11:56 +00006014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006016fi
6017
6018 if test "x$ac_ct_OBJDUMP" = x; then
6019 OBJDUMP="false"
6020 else
6021 case $cross_compiling:$ac_tool_warned in
6022yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00006023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006025ac_tool_warned=yes ;;
6026esac
6027 OBJDUMP=$ac_ct_OBJDUMP
6028 fi
6029else
6030 OBJDUMP="$ac_cv_prog_OBJDUMP"
6031fi
6032
6033test -z "$OBJDUMP" && OBJDUMP=objdump
6034
6035
6036
6037
6038
6039
6040
6041
6042
Douglas Gilbert891844a2022-04-24 18:11:56 +00006043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6044printf %s "checking how to recognize dependent libraries... " >&6; }
6045if test ${lt_cv_deplibs_check_method+y}
6046then :
6047 printf %s "(cached) " >&6
6048else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006049 lt_cv_file_magic_cmd='$MAGIC_CMD'
6050lt_cv_file_magic_test_file=
6051lt_cv_deplibs_check_method='unknown'
6052# Need to set the preceding variable on all platforms that support
6053# interlibrary dependencies.
6054# 'none' -- dependencies not supported.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006055# 'unknown' -- same as none, but documents that we really don't know.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006056# 'pass_all' -- all dependencies passed with no checks.
6057# 'test_compile' -- check by making test program.
6058# 'file_magic [[regex]]' -- check by looking for files in library path
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006059# that responds to the $file_magic_cmd with a given extended regex.
6060# If you have 'file' or equivalent on your system and you're not sure
6061# whether 'pass_all' will *always* work, you probably want this one.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006062
6063case $host_os in
6064aix[4-9]*)
6065 lt_cv_deplibs_check_method=pass_all
6066 ;;
6067
6068beos*)
6069 lt_cv_deplibs_check_method=pass_all
6070 ;;
6071
6072bsdi[45]*)
6073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
Douglas Gilbert23beedb2022-08-07 02:22:53 +00006074 lt_cv_file_magic_cmd='$FILECMD -L'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006075 lt_cv_file_magic_test_file=/shlib/libc.so
6076 ;;
6077
6078cygwin*)
6079 # func_win32_libid is a shell function defined in ltmain.sh
6080 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6081 lt_cv_file_magic_cmd='func_win32_libid'
6082 ;;
6083
6084mingw* | pw32*)
6085 # Base MSYS/MinGW do not provide the 'file' command needed by
6086 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6087 # unless we find 'file', for example because we are cross-compiling.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006088 if ( file / ) >/dev/null 2>&1; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006089 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6090 lt_cv_file_magic_cmd='func_win32_libid'
6091 else
Douglas Gilbertc978e062011-12-06 21:50:07 +00006092 # Keep this pattern in sync with the one in func_win32_libid.
6093 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006094 lt_cv_file_magic_cmd='$OBJDUMP -f'
6095 fi
6096 ;;
6097
Douglas Gilbertc978e062011-12-06 21:50:07 +00006098cegcc*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006099 # use the weaker test based on 'objdump'. See mingw*.
6100 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6101 lt_cv_file_magic_cmd='$OBJDUMP -f'
6102 ;;
6103
6104darwin* | rhapsody*)
6105 lt_cv_deplibs_check_method=pass_all
6106 ;;
6107
Douglas Gilbert23beedb2022-08-07 02:22:53 +00006108freebsd* | dragonfly* | midnightbsd*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006109 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6110 case $host_cpu in
6111 i*86 )
6112 # Not sure whether the presence of OpenBSD here was a mistake.
6113 # Let's accept both of them until this is cleared up.
6114 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Douglas Gilbert23beedb2022-08-07 02:22:53 +00006115 lt_cv_file_magic_cmd=$FILECMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006116 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6117 ;;
6118 esac
6119 else
6120 lt_cv_deplibs_check_method=pass_all
6121 fi
6122 ;;
6123
Douglas Gilbertc978e062011-12-06 21:50:07 +00006124haiku*)
6125 lt_cv_deplibs_check_method=pass_all
6126 ;;
6127
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006128hpux10.20* | hpux11*)
Douglas Gilbert23beedb2022-08-07 02:22:53 +00006129 lt_cv_file_magic_cmd=$FILECMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006130 case $host_cpu in
6131 ia64*)
6132 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6133 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6134 ;;
6135 hppa*64*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00006136 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]'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006137 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6138 ;;
6139 *)
Douglas Gilbertc978e062011-12-06 21:50:07 +00006140 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006141 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6142 ;;
6143 esac
6144 ;;
6145
6146interix[3-9]*)
6147 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6149 ;;
6150
6151irix5* | irix6* | nonstopux*)
6152 case $LD in
6153 *-32|*"-32 ") libmagic=32-bit;;
6154 *-n32|*"-n32 ") libmagic=N32;;
6155 *-64|*"-64 ") libmagic=64-bit;;
6156 *) libmagic=never-match;;
6157 esac
6158 lt_cv_deplibs_check_method=pass_all
6159 ;;
6160
Douglas Gilbert63918a92012-09-08 03:20:30 +00006161# This must be glibc/ELF.
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00006162linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006163 lt_cv_deplibs_check_method=pass_all
6164 ;;
6165
Douglas Gilbert6d3bd262022-11-01 23:46:24 +00006166netbsd* | netbsdelf*-gnu)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006167 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6169 else
6170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6171 fi
6172 ;;
6173
6174newos6*)
6175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
Douglas Gilbert23beedb2022-08-07 02:22:53 +00006176 lt_cv_file_magic_cmd=$FILECMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006177 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6178 ;;
6179
6180*nto* | *qnx*)
6181 lt_cv_deplibs_check_method=pass_all
6182 ;;
6183
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006184openbsd* | bitrig*)
6185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6187 else
6188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6189 fi
6190 ;;
6191
6192osf3* | osf4* | osf5*)
6193 lt_cv_deplibs_check_method=pass_all
6194 ;;
6195
6196rdos*)
6197 lt_cv_deplibs_check_method=pass_all
6198 ;;
6199
6200solaris*)
6201 lt_cv_deplibs_check_method=pass_all
6202 ;;
6203
6204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6205 lt_cv_deplibs_check_method=pass_all
6206 ;;
6207
6208sysv4 | sysv4.3*)
6209 case $host_vendor in
6210 motorola)
6211 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]'
6212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6213 ;;
6214 ncr)
6215 lt_cv_deplibs_check_method=pass_all
6216 ;;
6217 sequent)
6218 lt_cv_file_magic_cmd='/bin/file'
6219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6220 ;;
6221 sni)
6222 lt_cv_file_magic_cmd='/bin/file'
6223 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6224 lt_cv_file_magic_test_file=/lib/libc.so
6225 ;;
6226 siemens)
6227 lt_cv_deplibs_check_method=pass_all
6228 ;;
6229 pc)
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232 esac
6233 ;;
6234
6235tpf*)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006238os2*)
6239 lt_cv_deplibs_check_method=pass_all
6240 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006241esac
6242
6243fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00006244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6245printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006246
6247file_magic_glob=
6248want_nocaseglob=no
6249if test "$build" = "$host"; then
6250 case $host_os in
6251 mingw* | pw32*)
6252 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6253 want_nocaseglob=yes
6254 else
6255 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6256 fi
6257 ;;
6258 esac
6259fi
6260
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006261file_magic_cmd=$lt_cv_file_magic_cmd
6262deplibs_check_method=$lt_cv_deplibs_check_method
6263test -z "$deplibs_check_method" && deplibs_check_method=unknown
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
Douglas Gilbertc978e062011-12-06 21:50:07 +00006276
6277
6278
6279
6280
6281
6282
6283
6284
6285
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006286if test -n "$ac_tool_prefix"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006287 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6288set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00006289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290printf %s "checking for $ac_word... " >&6; }
6291if test ${ac_cv_prog_DLLTOOL+y}
6292then :
6293 printf %s "(cached) " >&6
6294else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +00006295 if test -n "$DLLTOOL"; then
6296 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6297else
6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00006302 case $as_dir in #(((
6303 '') as_dir=./ ;;
6304 */) ;;
6305 *) as_dir=$as_dir/ ;;
6306 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +00006307 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00006308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006309 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Douglas Gilbert891844a2022-04-24 18:11:56 +00006310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00006311 break 2
6312 fi
6313done
6314 done
6315IFS=$as_save_IFS
6316
6317fi
6318fi
6319DLLTOOL=$ac_cv_prog_DLLTOOL
6320if test -n "$DLLTOOL"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00006321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6322printf "%s\n" "$DLLTOOL" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006323else
Douglas Gilbert891844a2022-04-24 18:11:56 +00006324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325printf "%s\n" "no" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006326fi
6327
6328
6329fi
6330if test -z "$ac_cv_prog_DLLTOOL"; then
6331 ac_ct_DLLTOOL=$DLLTOOL
6332 # Extract the first word of "dlltool", so it can be a program name with args.
6333set dummy dlltool; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00006334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335printf %s "checking for $ac_word... " >&6; }
6336if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6337then :
6338 printf %s "(cached) " >&6
6339else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +00006340 if test -n "$ac_ct_DLLTOOL"; then
6341 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6342else
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00006347 case $as_dir in #(((
6348 '') as_dir=./ ;;
6349 */) ;;
6350 *) as_dir=$as_dir/ ;;
6351 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +00006352 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00006353 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006354 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Douglas Gilbert891844a2022-04-24 18:11:56 +00006355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00006356 break 2
6357 fi
6358done
6359 done
6360IFS=$as_save_IFS
6361
6362fi
6363fi
6364ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6365if test -n "$ac_ct_DLLTOOL"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00006366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6367printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006368else
Douglas Gilbert891844a2022-04-24 18:11:56 +00006369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370printf "%s\n" "no" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006371fi
6372
6373 if test "x$ac_ct_DLLTOOL" = x; then
6374 DLLTOOL="false"
6375 else
6376 case $cross_compiling:$ac_tool_warned in
6377yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00006378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbertc978e062011-12-06 21:50:07 +00006380ac_tool_warned=yes ;;
6381esac
6382 DLLTOOL=$ac_ct_DLLTOOL
6383 fi
6384else
6385 DLLTOOL="$ac_cv_prog_DLLTOOL"
6386fi
6387
6388test -z "$DLLTOOL" && DLLTOOL=dlltool
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
Douglas Gilbert891844a2022-04-24 18:11:56 +00006399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6400printf %s "checking how to associate runtime and link libraries... " >&6; }
6401if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6402then :
6403 printf %s "(cached) " >&6
6404else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +00006405 lt_cv_sharedlib_from_linklib_cmd='unknown'
6406
6407case $host_os in
6408cygwin* | mingw* | pw32* | cegcc*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006409 # two different shell functions defined in ltmain.sh;
6410 # decide which one to use based on capabilities of $DLLTOOL
Douglas Gilbertc978e062011-12-06 21:50:07 +00006411 case `$DLLTOOL --help 2>&1` in
6412 *--identify-strict*)
6413 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6414 ;;
6415 *)
6416 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6417 ;;
6418 esac
6419 ;;
6420*)
6421 # fallback: assume linklib IS sharedlib
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006422 lt_cv_sharedlib_from_linklib_cmd=$ECHO
Douglas Gilbertc978e062011-12-06 21:50:07 +00006423 ;;
6424esac
6425
6426fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00006427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6428printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006429sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6430test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6431
6432
6433
6434
6435
6436
6437
Douglas Gilbertc978e062011-12-06 21:50:07 +00006438if test -n "$ac_tool_prefix"; then
6439 for ac_prog in ar
6440 do
6441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6442set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00006443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444printf %s "checking for $ac_word... " >&6; }
6445if test ${ac_cv_prog_AR+y}
6446then :
6447 printf %s "(cached) " >&6
6448else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006449 if test -n "$AR"; then
6450 ac_cv_prog_AR="$AR" # Let the user override the test.
6451else
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00006456 case $as_dir in #(((
6457 '') as_dir=./ ;;
6458 */) ;;
6459 *) as_dir=$as_dir/ ;;
6460 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006461 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00006462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006463 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Douglas Gilbert891844a2022-04-24 18:11:56 +00006464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006465 break 2
6466 fi
6467done
6468 done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473AR=$ac_cv_prog_AR
6474if test -n "$AR"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00006475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6476printf "%s\n" "$AR" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006477else
Douglas Gilbert891844a2022-04-24 18:11:56 +00006478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006480fi
6481
6482
Douglas Gilbertc978e062011-12-06 21:50:07 +00006483 test -n "$AR" && break
6484 done
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006485fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00006486if test -z "$AR"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006487 ac_ct_AR=$AR
Douglas Gilbertc978e062011-12-06 21:50:07 +00006488 for ac_prog in ar
6489do
6490 # Extract the first word of "$ac_prog", so it can be a program name with args.
6491set dummy $ac_prog; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00006492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493printf %s "checking for $ac_word... " >&6; }
6494if test ${ac_cv_prog_ac_ct_AR+y}
6495then :
6496 printf %s "(cached) " >&6
6497else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006498 if test -n "$ac_ct_AR"; then
6499 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00006505 case $as_dir in #(((
6506 '') as_dir=./ ;;
6507 */) ;;
6508 *) as_dir=$as_dir/ ;;
6509 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006510 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00006511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006512 ac_cv_prog_ac_ct_AR="$ac_prog"
Douglas Gilbert891844a2022-04-24 18:11:56 +00006513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006514 break 2
6515 fi
6516done
6517 done
6518IFS=$as_save_IFS
6519
6520fi
6521fi
6522ac_ct_AR=$ac_cv_prog_ac_ct_AR
6523if test -n "$ac_ct_AR"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00006524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6525printf "%s\n" "$ac_ct_AR" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006526else
Douglas Gilbert891844a2022-04-24 18:11:56 +00006527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006529fi
6530
Douglas Gilbertc978e062011-12-06 21:50:07 +00006531
6532 test -n "$ac_ct_AR" && break
6533done
6534
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006535 if test "x$ac_ct_AR" = x; then
6536 AR="false"
6537 else
6538 case $cross_compiling:$ac_tool_warned in
6539yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00006540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006542ac_tool_warned=yes ;;
6543esac
6544 AR=$ac_ct_AR
6545 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006546fi
6547
Douglas Gilbertc978e062011-12-06 21:50:07 +00006548: ${AR=ar}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006549
6550
6551
6552
6553
6554
Douglas Gilbert23beedb2022-08-07 02:22:53 +00006555# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6556# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6557# higher priority because thats what people were doing historically (setting
6558# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6559# variable obsoleted/removed.
6560
6561test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6562lt_ar_flags=$AR_FLAGS
6563
6564
6565
6566
6567
6568
6569# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6570# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6571
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006572
6573
6574
6575
6576
Douglas Gilbert891844a2022-04-24 18:11:56 +00006577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6578printf %s "checking for archiver @FILE support... " >&6; }
6579if test ${lt_cv_ar_at_file+y}
6580then :
6581 printf %s "(cached) " >&6
6582else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +00006583 lt_cv_ar_at_file=no
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585/* end confdefs.h. */
6586
6587int
Douglas Gilbert891844a2022-04-24 18:11:56 +00006588main (void)
Douglas Gilbertc978e062011-12-06 21:50:07 +00006589{
6590
6591 ;
6592 return 0;
6593}
6594_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +00006595if ac_fn_c_try_compile "$LINENO"
6596then :
Douglas Gilbertc978e062011-12-06 21:50:07 +00006597 echo conftest.$ac_objext > conftest.lst
6598 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6600 (eval $lt_ar_try) 2>&5
6601 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00006602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00006603 test $ac_status = 0; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006604 if test 0 -eq "$ac_status"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006605 # Ensure the archiver fails upon bogus file names.
6606 rm -f conftest.$ac_objext libconftest.a
6607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6608 (eval $lt_ar_try) 2>&5
6609 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00006610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00006611 test $ac_status = 0; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006612 if test 0 -ne "$ac_status"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006613 lt_cv_ar_at_file=@
6614 fi
6615 fi
6616 rm -f conftest.* libconftest.a
6617
6618fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00006619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00006620
6621fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00006622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6623printf "%s\n" "$lt_cv_ar_at_file" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006624
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006625if test no = "$lt_cv_ar_at_file"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006626 archiver_list_spec=
6627else
6628 archiver_list_spec=$lt_cv_ar_at_file
6629fi
6630
6631
6632
6633
6634
6635
6636
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006637if test -n "$ac_tool_prefix"; then
6638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6639set dummy ${ac_tool_prefix}strip; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00006640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641printf %s "checking for $ac_word... " >&6; }
6642if test ${ac_cv_prog_STRIP+y}
6643then :
6644 printf %s "(cached) " >&6
6645else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006646 if test -n "$STRIP"; then
6647 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6648else
6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00006653 case $as_dir in #(((
6654 '') as_dir=./ ;;
6655 */) ;;
6656 *) as_dir=$as_dir/ ;;
6657 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006658 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00006659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006660 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Douglas Gilbert891844a2022-04-24 18:11:56 +00006661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006662 break 2
6663 fi
6664done
6665 done
6666IFS=$as_save_IFS
6667
6668fi
6669fi
6670STRIP=$ac_cv_prog_STRIP
6671if test -n "$STRIP"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00006672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6673printf "%s\n" "$STRIP" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006674else
Douglas Gilbert891844a2022-04-24 18:11:56 +00006675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006677fi
6678
6679
6680fi
6681if test -z "$ac_cv_prog_STRIP"; then
6682 ac_ct_STRIP=$STRIP
6683 # Extract the first word of "strip", so it can be a program name with args.
6684set dummy strip; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00006685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686printf %s "checking for $ac_word... " >&6; }
6687if test ${ac_cv_prog_ac_ct_STRIP+y}
6688then :
6689 printf %s "(cached) " >&6
6690else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006691 if test -n "$ac_ct_STRIP"; then
6692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6693else
6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00006698 case $as_dir in #(((
6699 '') as_dir=./ ;;
6700 */) ;;
6701 *) as_dir=$as_dir/ ;;
6702 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006703 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00006704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006705 ac_cv_prog_ac_ct_STRIP="strip"
Douglas Gilbert891844a2022-04-24 18:11:56 +00006706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006707 break 2
6708 fi
6709done
6710 done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6716if test -n "$ac_ct_STRIP"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00006717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6718printf "%s\n" "$ac_ct_STRIP" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006719else
Douglas Gilbert891844a2022-04-24 18:11:56 +00006720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006722fi
6723
6724 if test "x$ac_ct_STRIP" = x; then
6725 STRIP=":"
6726 else
6727 case $cross_compiling:$ac_tool_warned in
6728yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00006729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6730printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006731ac_tool_warned=yes ;;
6732esac
6733 STRIP=$ac_ct_STRIP
6734 fi
6735else
6736 STRIP="$ac_cv_prog_STRIP"
6737fi
6738
6739test -z "$STRIP" && STRIP=:
6740
6741
6742
6743
6744
6745
6746if test -n "$ac_tool_prefix"; then
6747 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6748set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00006749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750printf %s "checking for $ac_word... " >&6; }
6751if test ${ac_cv_prog_RANLIB+y}
6752then :
6753 printf %s "(cached) " >&6
6754else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006755 if test -n "$RANLIB"; then
6756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6757else
6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00006762 case $as_dir in #(((
6763 '') as_dir=./ ;;
6764 */) ;;
6765 *) as_dir=$as_dir/ ;;
6766 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006767 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00006768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Douglas Gilbert891844a2022-04-24 18:11:56 +00006770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006771 break 2
6772 fi
6773done
6774 done
6775IFS=$as_save_IFS
6776
6777fi
6778fi
6779RANLIB=$ac_cv_prog_RANLIB
6780if test -n "$RANLIB"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00006781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6782printf "%s\n" "$RANLIB" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006783else
Douglas Gilbert891844a2022-04-24 18:11:56 +00006784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006786fi
6787
6788
6789fi
6790if test -z "$ac_cv_prog_RANLIB"; then
6791 ac_ct_RANLIB=$RANLIB
6792 # Extract the first word of "ranlib", so it can be a program name with args.
6793set dummy ranlib; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00006794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795printf %s "checking for $ac_word... " >&6; }
6796if test ${ac_cv_prog_ac_ct_RANLIB+y}
6797then :
6798 printf %s "(cached) " >&6
6799else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006800 if test -n "$ac_ct_RANLIB"; then
6801 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00006807 case $as_dir in #(((
6808 '') as_dir=./ ;;
6809 */) ;;
6810 *) as_dir=$as_dir/ ;;
6811 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006812 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00006813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006814 ac_cv_prog_ac_ct_RANLIB="ranlib"
Douglas Gilbert891844a2022-04-24 18:11:56 +00006815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006816 break 2
6817 fi
6818done
6819 done
6820IFS=$as_save_IFS
6821
6822fi
6823fi
6824ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6825if test -n "$ac_ct_RANLIB"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00006826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6827printf "%s\n" "$ac_ct_RANLIB" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006828else
Douglas Gilbert891844a2022-04-24 18:11:56 +00006829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006831fi
6832
6833 if test "x$ac_ct_RANLIB" = x; then
6834 RANLIB=":"
6835 else
6836 case $cross_compiling:$ac_tool_warned in
6837yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00006838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006840ac_tool_warned=yes ;;
6841esac
6842 RANLIB=$ac_ct_RANLIB
6843 fi
6844else
6845 RANLIB="$ac_cv_prog_RANLIB"
6846fi
6847
6848test -z "$RANLIB" && RANLIB=:
6849
6850
6851
6852
6853
6854
6855# Determine commands to create old-style static archives.
6856old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6857old_postinstall_cmds='chmod 644 $oldlib'
6858old_postuninstall_cmds=
6859
6860if test -n "$RANLIB"; then
6861 case $host_os in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006862 bitrig* | openbsd*)
Douglas Gilbert63918a92012-09-08 03:20:30 +00006863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006864 ;;
6865 *)
Douglas Gilbert63918a92012-09-08 03:20:30 +00006866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006867 ;;
6868 esac
Douglas Gilbert63918a92012-09-08 03:20:30 +00006869 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006870fi
6871
Douglas Gilbertc978e062011-12-06 21:50:07 +00006872case $host_os in
6873 darwin*)
6874 lock_old_archive_extraction=yes ;;
6875 *)
6876 lock_old_archive_extraction=no ;;
6877esac
6878
6879
6880
6881
6882
6883
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917# If no C compiler was specified, use CC.
6918LTCC=${LTCC-"$CC"}
6919
6920# If no C compiler flags were specified, use CFLAGS.
6921LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6922
6923# Allow CC to be a program name with arguments.
6924compiler=$CC
6925
6926
6927# Check for command to grab the raw symbol name followed by C symbol from nm.
Douglas Gilbert891844a2022-04-24 18:11:56 +00006928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6929printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6930if test ${lt_cv_sys_global_symbol_pipe+y}
6931then :
6932 printf %s "(cached) " >&6
6933else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006934
6935# These are sane defaults that work on at least a few old systems.
6936# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6937
6938# Character class describing NM global symbol codes.
6939symcode='[BCDEGRST]'
6940
6941# Regexp to match symbols that can be accessed directly from C.
6942sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6943
6944# Define system-specific variables.
6945case $host_os in
6946aix*)
6947 symcode='[BCDT]'
6948 ;;
6949cygwin* | mingw* | pw32* | cegcc*)
6950 symcode='[ABCDGISTW]'
6951 ;;
6952hpux*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006953 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006954 symcode='[ABCDEGRST]'
6955 fi
6956 ;;
6957irix* | nonstopux*)
6958 symcode='[BCDEGRST]'
6959 ;;
6960osf*)
6961 symcode='[BCDEGQRST]'
6962 ;;
6963solaris*)
6964 symcode='[BDRT]'
6965 ;;
6966sco3.2v5*)
6967 symcode='[DT]'
6968 ;;
6969sysv4.2uw2*)
6970 symcode='[DT]'
6971 ;;
6972sysv5* | sco5v6* | unixware* | OpenUNIX*)
6973 symcode='[ABDT]'
6974 ;;
6975sysv4)
6976 symcode='[DFNSTU]'
6977 ;;
6978esac
6979
6980# If we're using GNU nm, then use its standard symbol codes.
6981case `$NM -V 2>&1` in
6982*GNU* | *'with BFD'*)
6983 symcode='[ABCDGIRSTW]' ;;
6984esac
6985
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006986if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6987 # Gets list of data symbols to import.
Douglas Gilbert23beedb2022-08-07 02:22:53 +00006988 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006989 # Adjust the below global symbol transforms to fixup imported variables.
6990 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6991 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6992 lt_c_name_lib_hook="\
6993 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6994 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6995else
6996 # Disable hooks by default.
6997 lt_cv_sys_global_symbol_to_import=
6998 lt_cdecl_hook=
6999 lt_c_name_hook=
7000 lt_c_name_lib_hook=
7001fi
7002
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007003# Transform an extracted symbol line into a proper C declaration.
7004# Some systems (esp. on ia64) link data and code symbols differently,
7005# so use this general approach.
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007006lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007007$lt_cdecl_hook\
7008" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7009" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007010
7011# Transform an extracted symbol line into symbol name and symbol address
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007012lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007013$lt_c_name_hook\
7014" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7015" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7016
7017# Transform an extracted symbol line into symbol name with lib prefix and
7018# symbol address.
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007019lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007020$lt_c_name_lib_hook\
7021" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7022" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7023" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007024
7025# Handle CRLF in mingw tool chain
7026opt_cr=
7027case $build_os in
7028mingw*)
7029 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7030 ;;
7031esac
7032
7033# Try without a prefix underscore, then with it.
7034for ac_symprfx in "" "_"; do
7035
7036 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7037 symxfrm="\\1 $ac_symprfx\\2 \\2"
7038
7039 # Write the raw and C identifiers.
7040 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007041 # Fake it for dumpbin and say T for any non-static function,
7042 # D for any global variable and I for any imported variable.
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007043 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007044 # which start with @ or ?.
7045 lt_cv_sys_global_symbol_pipe="$AWK '"\
7046" {last_section=section; section=\$ 3};"\
Douglas Gilbert63918a92012-09-08 03:20:30 +00007047" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007048" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007049" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7050" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7051" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007052" \$ 0!~/External *\|/{next};"\
7053" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7054" {if(hide[section]) next};"\
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007055" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7056" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7057" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7058" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007059" ' prfx=^$ac_symprfx"
7060 else
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007061 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007062 fi
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007063 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007064
7065 # Check to see that the pipe works correctly.
7066 pipe_works=no
7067
7068 rm -f conftest*
7069 cat > conftest.$ac_ext <<_LT_EOF
7070#ifdef __cplusplus
7071extern "C" {
7072#endif
7073char nm_test_var;
7074void nm_test_func(void);
7075void nm_test_func(void){}
7076#ifdef __cplusplus
7077}
7078#endif
7079int main(){nm_test_var='a';nm_test_func();return(0);}
7080_LT_EOF
7081
7082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7083 (eval $ac_compile) 2>&5
7084 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00007085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007086 test $ac_status = 0; }; then
7087 # Now try to grab the symbols.
7088 nlist=conftest.nm
Douglas Gilbert6d3bd262022-11-01 23:46:24 +00007089 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7090 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007091 # Try sorting and uniquifying the output.
7092 if sort "$nlist" | uniq > "$nlist"T; then
7093 mv -f "$nlist"T "$nlist"
7094 else
7095 rm -f "$nlist"T
7096 fi
7097
7098 # Make sure that we snagged all the symbols we need.
7099 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7100 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7101 cat <<_LT_EOF > conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00007102/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007103#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7104/* DATA imports from DLLs on WIN32 can't be const, because runtime
Douglas Gilbertc978e062011-12-06 21:50:07 +00007105 relocations are performed -- see ld's documentation on pseudo-relocs. */
7106# define LT_DLSYM_CONST
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007107#elif defined __osf__
Douglas Gilbertc978e062011-12-06 21:50:07 +00007108/* This system does not cope well with relocations in const data. */
7109# define LT_DLSYM_CONST
7110#else
7111# define LT_DLSYM_CONST const
7112#endif
7113
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007114#ifdef __cplusplus
7115extern "C" {
7116#endif
7117
7118_LT_EOF
7119 # Now generate the symbol file.
7120 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7121
7122 cat <<_LT_EOF >> conftest.$ac_ext
7123
7124/* The mapping between symbol names and symbols. */
Douglas Gilbertc978e062011-12-06 21:50:07 +00007125LT_DLSYM_CONST struct {
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007126 const char *name;
7127 void *address;
7128}
7129lt__PROGRAM__LTX_preloaded_symbols[] =
7130{
7131 { "@PROGRAM@", (void *) 0 },
7132_LT_EOF
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007133 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007134 cat <<\_LT_EOF >> conftest.$ac_ext
7135 {0, (void *) 0}
7136};
7137
7138/* This works around a problem in FreeBSD linker */
7139#ifdef FREEBSD_WORKAROUND
7140static const void *lt_preloaded_setup() {
7141 return lt__PROGRAM__LTX_preloaded_symbols;
7142}
7143#endif
7144
7145#ifdef __cplusplus
7146}
7147#endif
7148_LT_EOF
7149 # Now try linking the two files.
7150 mv conftest.$ac_objext conftstm.$ac_objext
Douglas Gilbertc978e062011-12-06 21:50:07 +00007151 lt_globsym_save_LIBS=$LIBS
7152 lt_globsym_save_CFLAGS=$CFLAGS
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007153 LIBS=conftstm.$ac_objext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007154 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7156 (eval $ac_link) 2>&5
7157 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00007158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007159 test $ac_status = 0; } && test -s conftest$ac_exeext; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007160 pipe_works=yes
7161 fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00007162 LIBS=$lt_globsym_save_LIBS
7163 CFLAGS=$lt_globsym_save_CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007164 else
7165 echo "cannot find nm_test_func in $nlist" >&5
7166 fi
7167 else
7168 echo "cannot find nm_test_var in $nlist" >&5
7169 fi
7170 else
7171 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7172 fi
7173 else
7174 echo "$progname: failed program was:" >&5
7175 cat conftest.$ac_ext >&5
7176 fi
7177 rm -rf conftest* conftst*
7178
7179 # Do not use the global_symbol_pipe unless it works.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007180 if test yes = "$pipe_works"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007181 break
7182 else
7183 lt_cv_sys_global_symbol_pipe=
7184 fi
7185done
7186
7187fi
7188
7189if test -z "$lt_cv_sys_global_symbol_pipe"; then
7190 lt_cv_sys_global_symbol_to_cdecl=
7191fi
7192if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00007193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7194printf "%s\n" "failed" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007195else
Douglas Gilbert891844a2022-04-24 18:11:56 +00007196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7197printf "%s\n" "ok" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007198fi
7199
Douglas Gilbertc978e062011-12-06 21:50:07 +00007200# Response file support.
7201if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7202 nm_file_list_spec='@'
7203elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7204 nm_file_list_spec='@'
7205fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
Douglas Gilbertc978e062011-12-06 21:50:07 +00007228
7229
7230
7231
7232
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007233
7234
7235
7236
7237
7238
7239
7240
7241
7242
Douglas Gilbert891844a2022-04-24 18:11:56 +00007243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7244printf %s "checking for sysroot... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007245
7246# Check whether --with-sysroot was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +00007247if test ${with_sysroot+y}
7248then :
Douglas Gilbertc978e062011-12-06 21:50:07 +00007249 withval=$with_sysroot;
Douglas Gilbert891844a2022-04-24 18:11:56 +00007250else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +00007251 with_sysroot=no
7252fi
7253
7254
7255lt_sysroot=
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007256case $with_sysroot in #(
Douglas Gilbertc978e062011-12-06 21:50:07 +00007257 yes)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007258 if test yes = "$GCC"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00007259 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7260 fi
7261 ;; #(
7262 /*)
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007263 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
Douglas Gilbertc978e062011-12-06 21:50:07 +00007264 ;; #(
7265 no|'')
7266 ;; #(
7267 *)
Douglas Gilbert891844a2022-04-24 18:11:56 +00007268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7269printf "%s\n" "$with_sysroot" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007270 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7271 ;;
7272esac
7273
Douglas Gilbert891844a2022-04-24 18:11:56 +00007274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7275printf "%s\n" "${lt_sysroot:-no}" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007276
7277
7278
7279
7280
Douglas Gilbert891844a2022-04-24 18:11:56 +00007281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7282printf %s "checking for a working dd... " >&6; }
7283if test ${ac_cv_path_lt_DD+y}
7284then :
7285 printf %s "(cached) " >&6
7286else $as_nop
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007287 printf 0123456789abcdef0123456789abcdef >conftest.i
7288cat conftest.i conftest.i >conftest2.i
7289: ${lt_DD:=$DD}
7290if test -z "$lt_DD"; then
7291 ac_path_lt_DD_found=false
7292 # Loop through the user's path and test for each of PROGNAME-LIST
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00007297 case $as_dir in #(((
7298 '') as_dir=./ ;;
7299 */) ;;
7300 *) as_dir=$as_dir/ ;;
7301 esac
7302 for ac_prog in dd
7303 do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007304 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00007305 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007306 as_fn_executable_p "$ac_path_lt_DD" || continue
7307if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7308 cmp -s conftest.i conftest.out \
7309 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7310fi
7311 $ac_path_lt_DD_found && break 3
7312 done
7313 done
7314 done
7315IFS=$as_save_IFS
7316 if test -z "$ac_cv_path_lt_DD"; then
7317 :
7318 fi
7319else
7320 ac_cv_path_lt_DD=$lt_DD
7321fi
7322
7323rm -f conftest.i conftest2.i conftest.out
7324fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00007325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7326printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007327
7328
Douglas Gilbert891844a2022-04-24 18:11:56 +00007329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7330printf %s "checking how to truncate binary pipes... " >&6; }
7331if test ${lt_cv_truncate_bin+y}
7332then :
7333 printf %s "(cached) " >&6
7334else $as_nop
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007335 printf 0123456789abcdef0123456789abcdef >conftest.i
7336cat conftest.i conftest.i >conftest2.i
7337lt_cv_truncate_bin=
7338if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7339 cmp -s conftest.i conftest.out \
7340 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7341fi
7342rm -f conftest.i conftest2.i conftest.out
7343test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7344fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00007345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7346printf "%s\n" "$lt_cv_truncate_bin" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007347
7348
7349
7350
7351
7352
7353
7354# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7355func_cc_basename ()
7356{
7357 for cc_temp in $*""; do
7358 case $cc_temp in
7359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7361 \-*) ;;
7362 *) break;;
7363 esac
7364 done
7365 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7366}
7367
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007368# Check whether --enable-libtool-lock was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +00007369if test ${enable_libtool_lock+y}
7370then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007371 enableval=$enable_libtool_lock;
7372fi
7373
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007374test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007375
7376# Some flags need to be propagated to the compiler or linker for good
7377# libtool support.
7378case $host in
7379ia64-*-hpux*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007380 # Find out what ABI is being produced by ac_compile, and set mode
7381 # options accordingly.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007382 echo 'int i;' > conftest.$ac_ext
7383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7384 (eval $ac_compile) 2>&5
7385 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00007386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007387 test $ac_status = 0; }; then
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007388 case `$FILECMD conftest.$ac_objext` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007389 *ELF-32*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007390 HPUX_IA64_MODE=32
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007391 ;;
7392 *ELF-64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007393 HPUX_IA64_MODE=64
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007394 ;;
7395 esac
7396 fi
7397 rm -rf conftest*
7398 ;;
7399*-*-irix6*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007400 # Find out what ABI is being produced by ac_compile, and set linker
7401 # options accordingly.
Douglas Gilbertc978e062011-12-06 21:50:07 +00007402 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7404 (eval $ac_compile) 2>&5
7405 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00007406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007407 test $ac_status = 0; }; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007408 if test yes = "$lt_cv_prog_gnu_ld"; then
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007409 case `$FILECMD conftest.$ac_objext` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007410 *32-bit*)
7411 LD="${LD-ld} -melf32bsmip"
7412 ;;
7413 *N32*)
7414 LD="${LD-ld} -melf32bmipn32"
7415 ;;
7416 *64-bit*)
7417 LD="${LD-ld} -melf64bmip"
7418 ;;
7419 esac
7420 else
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007421 case `$FILECMD conftest.$ac_objext` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007422 *32-bit*)
7423 LD="${LD-ld} -32"
7424 ;;
7425 *N32*)
7426 LD="${LD-ld} -n32"
7427 ;;
7428 *64-bit*)
7429 LD="${LD-ld} -64"
7430 ;;
7431 esac
7432 fi
7433 fi
7434 rm -rf conftest*
7435 ;;
7436
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007437mips64*-*linux*)
7438 # Find out what ABI is being produced by ac_compile, and set linker
7439 # options accordingly.
7440 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7442 (eval $ac_compile) 2>&5
7443 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00007444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007445 test $ac_status = 0; }; then
7446 emul=elf
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007447 case `$FILECMD conftest.$ac_objext` in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007448 *32-bit*)
7449 emul="${emul}32"
7450 ;;
7451 *64-bit*)
7452 emul="${emul}64"
7453 ;;
7454 esac
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007455 case `$FILECMD conftest.$ac_objext` in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007456 *MSB*)
7457 emul="${emul}btsmip"
7458 ;;
7459 *LSB*)
7460 emul="${emul}ltsmip"
7461 ;;
7462 esac
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007463 case `$FILECMD conftest.$ac_objext` in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007464 *N32*)
7465 emul="${emul}n32"
7466 ;;
7467 esac
7468 LD="${LD-ld} -m $emul"
7469 fi
7470 rm -rf conftest*
7471 ;;
7472
Douglas Gilbert8f710092014-05-15 15:54:06 +00007473x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007474s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007475 # Find out what ABI is being produced by ac_compile, and set linker
7476 # options accordingly. Note that the listed cases only cover the
7477 # situations where additional linker options are needed (such as when
7478 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7479 # vice versa); the common cases where no linker options are needed do
7480 # not appear in the list.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007481 echo 'int i;' > conftest.$ac_ext
7482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7483 (eval $ac_compile) 2>&5
7484 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00007485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007486 test $ac_status = 0; }; then
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007487 case `$FILECMD conftest.o` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007488 *32-bit*)
7489 case $host in
7490 x86_64-*kfreebsd*-gnu)
7491 LD="${LD-ld} -m elf_i386_fbsd"
7492 ;;
7493 x86_64-*linux*)
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007494 case `$FILECMD conftest.o` in
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00007495 *x86-64*)
7496 LD="${LD-ld} -m elf32_x86_64"
7497 ;;
7498 *)
7499 LD="${LD-ld} -m elf_i386"
7500 ;;
7501 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007502 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007503 powerpc64le-*linux*)
Douglas Gilbert8f710092014-05-15 15:54:06 +00007504 LD="${LD-ld} -m elf32lppclinux"
7505 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007506 powerpc64-*linux*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007507 LD="${LD-ld} -m elf32ppclinux"
7508 ;;
7509 s390x-*linux*)
7510 LD="${LD-ld} -m elf_s390"
7511 ;;
7512 sparc64-*linux*)
7513 LD="${LD-ld} -m elf32_sparc"
7514 ;;
7515 esac
7516 ;;
7517 *64-bit*)
7518 case $host in
7519 x86_64-*kfreebsd*-gnu)
7520 LD="${LD-ld} -m elf_x86_64_fbsd"
7521 ;;
7522 x86_64-*linux*)
7523 LD="${LD-ld} -m elf_x86_64"
7524 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007525 powerpcle-*linux*)
Douglas Gilbert8f710092014-05-15 15:54:06 +00007526 LD="${LD-ld} -m elf64lppc"
7527 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007528 powerpc-*linux*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007529 LD="${LD-ld} -m elf64ppc"
7530 ;;
7531 s390*-*linux*|s390*-*tpf*)
7532 LD="${LD-ld} -m elf64_s390"
7533 ;;
7534 sparc*-*linux*)
7535 LD="${LD-ld} -m elf64_sparc"
7536 ;;
7537 esac
7538 ;;
7539 esac
7540 fi
7541 rm -rf conftest*
7542 ;;
7543
7544*-*-sco3.2v5*)
7545 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007546 SAVE_CFLAGS=$CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007547 CFLAGS="$CFLAGS -belf"
Douglas Gilbert891844a2022-04-24 18:11:56 +00007548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7549printf %s "checking whether the C compiler needs -belf... " >&6; }
7550if test ${lt_cv_cc_needs_belf+y}
7551then :
7552 printf %s "(cached) " >&6
7553else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007554 ac_ext=c
7555ac_cpp='$CPP $CPPFLAGS'
7556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561/* end confdefs.h. */
7562
7563int
Douglas Gilbert891844a2022-04-24 18:11:56 +00007564main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007565{
7566
7567 ;
7568 return 0;
7569}
7570_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +00007571if ac_fn_c_try_link "$LINENO"
7572then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007573 lt_cv_cc_needs_belf=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +00007574else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007575 lt_cv_cc_needs_belf=no
7576fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00007577rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007578 conftest$ac_exeext conftest.$ac_ext
7579 ac_ext=c
7580ac_cpp='$CPP $CPPFLAGS'
7581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7583ac_compiler_gnu=$ac_cv_c_compiler_gnu
7584
7585fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00007586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7587printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007588 if test yes != "$lt_cv_cc_needs_belf"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007589 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007590 CFLAGS=$SAVE_CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007591 fi
7592 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00007593*-*solaris*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007594 # Find out what ABI is being produced by ac_compile, and set linker
7595 # options accordingly.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007596 echo 'int i;' > conftest.$ac_ext
7597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7598 (eval $ac_compile) 2>&5
7599 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +00007600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007601 test $ac_status = 0; }; then
Douglas Gilbert23beedb2022-08-07 02:22:53 +00007602 case `$FILECMD conftest.o` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007603 *64-bit*)
7604 case $lt_cv_prog_gnu_ld in
Douglas Gilbert63918a92012-09-08 03:20:30 +00007605 yes*)
7606 case $host in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007607 i?86-*-solaris*|x86_64-*-solaris*)
Douglas Gilbert63918a92012-09-08 03:20:30 +00007608 LD="${LD-ld} -m elf_x86_64"
7609 ;;
7610 sparc*-*-solaris*)
7611 LD="${LD-ld} -m elf64_sparc"
7612 ;;
7613 esac
7614 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7615 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007616 LD=${LD-ld}_sol2
Douglas Gilbert63918a92012-09-08 03:20:30 +00007617 fi
7618 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007619 *)
7620 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7621 LD="${LD-ld} -64"
7622 fi
7623 ;;
7624 esac
7625 ;;
7626 esac
7627 fi
7628 rm -rf conftest*
7629 ;;
7630esac
7631
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007632need_locks=$enable_libtool_lock
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007633
Douglas Gilbertc978e062011-12-06 21:50:07 +00007634if test -n "$ac_tool_prefix"; then
7635 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7636set dummy ${ac_tool_prefix}mt; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00007637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638printf %s "checking for $ac_word... " >&6; }
7639if test ${ac_cv_prog_MANIFEST_TOOL+y}
7640then :
7641 printf %s "(cached) " >&6
7642else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +00007643 if test -n "$MANIFEST_TOOL"; then
7644 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7645else
7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00007650 case $as_dir in #(((
7651 '') as_dir=./ ;;
7652 */) ;;
7653 *) as_dir=$as_dir/ ;;
7654 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +00007655 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00007656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00007657 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
Douglas Gilbert891844a2022-04-24 18:11:56 +00007658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00007659 break 2
7660 fi
7661done
7662 done
7663IFS=$as_save_IFS
7664
7665fi
7666fi
7667MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7668if test -n "$MANIFEST_TOOL"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00007669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7670printf "%s\n" "$MANIFEST_TOOL" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007671else
Douglas Gilbert891844a2022-04-24 18:11:56 +00007672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673printf "%s\n" "no" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007674fi
7675
7676
7677fi
7678if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7679 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7680 # Extract the first word of "mt", so it can be a program name with args.
7681set dummy mt; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00007682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683printf %s "checking for $ac_word... " >&6; }
7684if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7685then :
7686 printf %s "(cached) " >&6
7687else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +00007688 if test -n "$ac_ct_MANIFEST_TOOL"; then
7689 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7690else
7691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692for as_dir in $PATH
7693do
7694 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00007695 case $as_dir in #(((
7696 '') as_dir=./ ;;
7697 */) ;;
7698 *) as_dir=$as_dir/ ;;
7699 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +00007700 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00007701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00007702 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
Douglas Gilbert891844a2022-04-24 18:11:56 +00007703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00007704 break 2
7705 fi
7706done
7707 done
7708IFS=$as_save_IFS
7709
7710fi
7711fi
7712ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7713if test -n "$ac_ct_MANIFEST_TOOL"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00007714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7715printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007716else
Douglas Gilbert891844a2022-04-24 18:11:56 +00007717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718printf "%s\n" "no" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007719fi
7720
7721 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7722 MANIFEST_TOOL=":"
7723 else
7724 case $cross_compiling:$ac_tool_warned in
7725yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00007726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7727printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbertc978e062011-12-06 21:50:07 +00007728ac_tool_warned=yes ;;
7729esac
7730 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7731 fi
7732else
7733 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7734fi
7735
7736test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
Douglas Gilbert891844a2022-04-24 18:11:56 +00007737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7738printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7739if test ${lt_cv_path_mainfest_tool+y}
7740then :
7741 printf %s "(cached) " >&6
7742else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +00007743 lt_cv_path_mainfest_tool=no
7744 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7745 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7746 cat conftest.err >&5
7747 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7748 lt_cv_path_mainfest_tool=yes
7749 fi
7750 rm -f conftest*
7751fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00007752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7753printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007754if test yes != "$lt_cv_path_mainfest_tool"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00007755 MANIFEST_TOOL=:
7756fi
7757
7758
7759
7760
7761
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007762
7763 case $host_os in
7764 rhapsody* | darwin*)
7765 if test -n "$ac_tool_prefix"; then
7766 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7767set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00007768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769printf %s "checking for $ac_word... " >&6; }
7770if test ${ac_cv_prog_DSYMUTIL+y}
7771then :
7772 printf %s "(cached) " >&6
7773else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007774 if test -n "$DSYMUTIL"; then
7775 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7776else
7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00007781 case $as_dir in #(((
7782 '') as_dir=./ ;;
7783 */) ;;
7784 *) as_dir=$as_dir/ ;;
7785 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007786 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00007787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007788 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Douglas Gilbert891844a2022-04-24 18:11:56 +00007789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007790 break 2
7791 fi
7792done
7793 done
7794IFS=$as_save_IFS
7795
7796fi
7797fi
7798DSYMUTIL=$ac_cv_prog_DSYMUTIL
7799if test -n "$DSYMUTIL"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00007800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7801printf "%s\n" "$DSYMUTIL" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007802else
Douglas Gilbert891844a2022-04-24 18:11:56 +00007803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007805fi
7806
7807
7808fi
7809if test -z "$ac_cv_prog_DSYMUTIL"; then
7810 ac_ct_DSYMUTIL=$DSYMUTIL
7811 # Extract the first word of "dsymutil", so it can be a program name with args.
7812set dummy dsymutil; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00007813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814printf %s "checking for $ac_word... " >&6; }
7815if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7816then :
7817 printf %s "(cached) " >&6
7818else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007819 if test -n "$ac_ct_DSYMUTIL"; then
7820 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7821else
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00007826 case $as_dir in #(((
7827 '') as_dir=./ ;;
7828 */) ;;
7829 *) as_dir=$as_dir/ ;;
7830 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007831 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00007832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007833 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Douglas Gilbert891844a2022-04-24 18:11:56 +00007834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007835 break 2
7836 fi
7837done
7838 done
7839IFS=$as_save_IFS
7840
7841fi
7842fi
7843ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7844if test -n "$ac_ct_DSYMUTIL"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00007845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7846printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007847else
Douglas Gilbert891844a2022-04-24 18:11:56 +00007848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007850fi
7851
7852 if test "x$ac_ct_DSYMUTIL" = x; then
7853 DSYMUTIL=":"
7854 else
7855 case $cross_compiling:$ac_tool_warned in
7856yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00007857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007859ac_tool_warned=yes ;;
7860esac
7861 DSYMUTIL=$ac_ct_DSYMUTIL
7862 fi
7863else
7864 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7865fi
7866
7867 if test -n "$ac_tool_prefix"; then
7868 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7869set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00007870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871printf %s "checking for $ac_word... " >&6; }
7872if test ${ac_cv_prog_NMEDIT+y}
7873then :
7874 printf %s "(cached) " >&6
7875else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007876 if test -n "$NMEDIT"; then
7877 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7878else
7879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880for as_dir in $PATH
7881do
7882 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00007883 case $as_dir in #(((
7884 '') as_dir=./ ;;
7885 */) ;;
7886 *) as_dir=$as_dir/ ;;
7887 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007888 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00007889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007890 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Douglas Gilbert891844a2022-04-24 18:11:56 +00007891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007892 break 2
7893 fi
7894done
7895 done
7896IFS=$as_save_IFS
7897
7898fi
7899fi
7900NMEDIT=$ac_cv_prog_NMEDIT
7901if test -n "$NMEDIT"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00007902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7903printf "%s\n" "$NMEDIT" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007904else
Douglas Gilbert891844a2022-04-24 18:11:56 +00007905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007907fi
7908
7909
7910fi
7911if test -z "$ac_cv_prog_NMEDIT"; then
7912 ac_ct_NMEDIT=$NMEDIT
7913 # Extract the first word of "nmedit", so it can be a program name with args.
7914set dummy nmedit; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00007915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916printf %s "checking for $ac_word... " >&6; }
7917if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7918then :
7919 printf %s "(cached) " >&6
7920else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007921 if test -n "$ac_ct_NMEDIT"; then
7922 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7923else
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00007928 case $as_dir in #(((
7929 '') as_dir=./ ;;
7930 */) ;;
7931 *) as_dir=$as_dir/ ;;
7932 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007933 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00007934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007935 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Douglas Gilbert891844a2022-04-24 18:11:56 +00007936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007937 break 2
7938 fi
7939done
7940 done
7941IFS=$as_save_IFS
7942
7943fi
7944fi
7945ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7946if test -n "$ac_ct_NMEDIT"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00007947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7948printf "%s\n" "$ac_ct_NMEDIT" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007949else
Douglas Gilbert891844a2022-04-24 18:11:56 +00007950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007952fi
7953
7954 if test "x$ac_ct_NMEDIT" = x; then
7955 NMEDIT=":"
7956 else
7957 case $cross_compiling:$ac_tool_warned in
7958yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00007959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7960printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007961ac_tool_warned=yes ;;
7962esac
7963 NMEDIT=$ac_ct_NMEDIT
7964 fi
7965else
7966 NMEDIT="$ac_cv_prog_NMEDIT"
7967fi
7968
7969 if test -n "$ac_tool_prefix"; then
7970 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7971set dummy ${ac_tool_prefix}lipo; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00007972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973printf %s "checking for $ac_word... " >&6; }
7974if test ${ac_cv_prog_LIPO+y}
7975then :
7976 printf %s "(cached) " >&6
7977else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007978 if test -n "$LIPO"; then
7979 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7980else
7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00007985 case $as_dir in #(((
7986 '') as_dir=./ ;;
7987 */) ;;
7988 *) as_dir=$as_dir/ ;;
7989 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007990 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00007991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007992 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Douglas Gilbert891844a2022-04-24 18:11:56 +00007993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007994 break 2
7995 fi
7996done
7997 done
7998IFS=$as_save_IFS
7999
8000fi
8001fi
8002LIPO=$ac_cv_prog_LIPO
8003if test -n "$LIPO"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00008004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8005printf "%s\n" "$LIPO" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008006else
Douglas Gilbert891844a2022-04-24 18:11:56 +00008007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008009fi
8010
8011
8012fi
8013if test -z "$ac_cv_prog_LIPO"; then
8014 ac_ct_LIPO=$LIPO
8015 # Extract the first word of "lipo", so it can be a program name with args.
8016set dummy lipo; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00008017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018printf %s "checking for $ac_word... " >&6; }
8019if test ${ac_cv_prog_ac_ct_LIPO+y}
8020then :
8021 printf %s "(cached) " >&6
8022else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008023 if test -n "$ac_ct_LIPO"; then
8024 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00008030 case $as_dir in #(((
8031 '') as_dir=./ ;;
8032 */) ;;
8033 *) as_dir=$as_dir/ ;;
8034 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008035 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00008036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008037 ac_cv_prog_ac_ct_LIPO="lipo"
Douglas Gilbert891844a2022-04-24 18:11:56 +00008038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008039 break 2
8040 fi
8041done
8042 done
8043IFS=$as_save_IFS
8044
8045fi
8046fi
8047ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8048if test -n "$ac_ct_LIPO"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00008049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8050printf "%s\n" "$ac_ct_LIPO" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008051else
Douglas Gilbert891844a2022-04-24 18:11:56 +00008052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008054fi
8055
8056 if test "x$ac_ct_LIPO" = x; then
8057 LIPO=":"
8058 else
8059 case $cross_compiling:$ac_tool_warned in
8060yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00008061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008063ac_tool_warned=yes ;;
8064esac
8065 LIPO=$ac_ct_LIPO
8066 fi
8067else
8068 LIPO="$ac_cv_prog_LIPO"
8069fi
8070
8071 if test -n "$ac_tool_prefix"; then
8072 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8073set dummy ${ac_tool_prefix}otool; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00008074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075printf %s "checking for $ac_word... " >&6; }
8076if test ${ac_cv_prog_OTOOL+y}
8077then :
8078 printf %s "(cached) " >&6
8079else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008080 if test -n "$OTOOL"; then
8081 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8082else
8083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084for as_dir in $PATH
8085do
8086 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00008087 case $as_dir in #(((
8088 '') as_dir=./ ;;
8089 */) ;;
8090 *) as_dir=$as_dir/ ;;
8091 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008092 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00008093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008094 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Douglas Gilbert891844a2022-04-24 18:11:56 +00008095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008096 break 2
8097 fi
8098done
8099 done
8100IFS=$as_save_IFS
8101
8102fi
8103fi
8104OTOOL=$ac_cv_prog_OTOOL
8105if test -n "$OTOOL"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00008106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8107printf "%s\n" "$OTOOL" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008108else
Douglas Gilbert891844a2022-04-24 18:11:56 +00008109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008111fi
8112
8113
8114fi
8115if test -z "$ac_cv_prog_OTOOL"; then
8116 ac_ct_OTOOL=$OTOOL
8117 # Extract the first word of "otool", so it can be a program name with args.
8118set dummy otool; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00008119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120printf %s "checking for $ac_word... " >&6; }
8121if test ${ac_cv_prog_ac_ct_OTOOL+y}
8122then :
8123 printf %s "(cached) " >&6
8124else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008125 if test -n "$ac_ct_OTOOL"; then
8126 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8127else
8128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129for as_dir in $PATH
8130do
8131 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00008132 case $as_dir in #(((
8133 '') as_dir=./ ;;
8134 */) ;;
8135 *) as_dir=$as_dir/ ;;
8136 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008137 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00008138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008139 ac_cv_prog_ac_ct_OTOOL="otool"
Douglas Gilbert891844a2022-04-24 18:11:56 +00008140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008141 break 2
8142 fi
8143done
8144 done
8145IFS=$as_save_IFS
8146
8147fi
8148fi
8149ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8150if test -n "$ac_ct_OTOOL"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00008151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8152printf "%s\n" "$ac_ct_OTOOL" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008153else
Douglas Gilbert891844a2022-04-24 18:11:56 +00008154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008156fi
8157
8158 if test "x$ac_ct_OTOOL" = x; then
8159 OTOOL=":"
8160 else
8161 case $cross_compiling:$ac_tool_warned in
8162yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00008163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8164printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008165ac_tool_warned=yes ;;
8166esac
8167 OTOOL=$ac_ct_OTOOL
8168 fi
8169else
8170 OTOOL="$ac_cv_prog_OTOOL"
8171fi
8172
8173 if test -n "$ac_tool_prefix"; then
8174 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8175set dummy ${ac_tool_prefix}otool64; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00008176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177printf %s "checking for $ac_word... " >&6; }
8178if test ${ac_cv_prog_OTOOL64+y}
8179then :
8180 printf %s "(cached) " >&6
8181else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008182 if test -n "$OTOOL64"; then
8183 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8184else
8185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186for as_dir in $PATH
8187do
8188 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00008189 case $as_dir in #(((
8190 '') as_dir=./ ;;
8191 */) ;;
8192 *) as_dir=$as_dir/ ;;
8193 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008194 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00008195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008196 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Douglas Gilbert891844a2022-04-24 18:11:56 +00008197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008198 break 2
8199 fi
8200done
8201 done
8202IFS=$as_save_IFS
8203
8204fi
8205fi
8206OTOOL64=$ac_cv_prog_OTOOL64
8207if test -n "$OTOOL64"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00008208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8209printf "%s\n" "$OTOOL64" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008210else
Douglas Gilbert891844a2022-04-24 18:11:56 +00008211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008213fi
8214
8215
8216fi
8217if test -z "$ac_cv_prog_OTOOL64"; then
8218 ac_ct_OTOOL64=$OTOOL64
8219 # Extract the first word of "otool64", so it can be a program name with args.
8220set dummy otool64; ac_word=$2
Douglas Gilbert891844a2022-04-24 18:11:56 +00008221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222printf %s "checking for $ac_word... " >&6; }
8223if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8224then :
8225 printf %s "(cached) " >&6
8226else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008227 if test -n "$ac_ct_OTOOL64"; then
8228 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8229else
8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +00008234 case $as_dir in #(((
8235 '') as_dir=./ ;;
8236 */) ;;
8237 *) as_dir=$as_dir/ ;;
8238 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008239 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert891844a2022-04-24 18:11:56 +00008240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008241 ac_cv_prog_ac_ct_OTOOL64="otool64"
Douglas Gilbert891844a2022-04-24 18:11:56 +00008242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008243 break 2
8244 fi
8245done
8246 done
8247IFS=$as_save_IFS
8248
8249fi
8250fi
8251ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8252if test -n "$ac_ct_OTOOL64"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00008253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8254printf "%s\n" "$ac_ct_OTOOL64" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008255else
Douglas Gilbert891844a2022-04-24 18:11:56 +00008256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008258fi
8259
8260 if test "x$ac_ct_OTOOL64" = x; then
8261 OTOOL64=":"
8262 else
8263 case $cross_compiling:$ac_tool_warned in
8264yes:)
Douglas Gilbert891844a2022-04-24 18:11:56 +00008265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8266printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008267ac_tool_warned=yes ;;
8268esac
8269 OTOOL64=$ac_ct_OTOOL64
8270 fi
8271else
8272 OTOOL64="$ac_cv_prog_OTOOL64"
8273fi
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
Douglas Gilbert891844a2022-04-24 18:11:56 +00008301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8302printf %s "checking for -single_module linker flag... " >&6; }
8303if test ${lt_cv_apple_cc_single_mod+y}
8304then :
8305 printf %s "(cached) " >&6
8306else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008307 lt_cv_apple_cc_single_mod=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008308 if test -z "$LT_MULTI_MODULE"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008309 # By default we will add the -single_module flag. You can override
8310 # by either setting the environment variable LT_MULTI_MODULE
8311 # non-empty at configure time, or by adding -multi_module to the
8312 # link flags.
8313 rm -rf libconftest.dylib*
8314 echo "int foo(void){return 1;}" > conftest.c
8315 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8316-dynamiclib -Wl,-single_module conftest.c" >&5
8317 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8318 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8319 _lt_result=$?
Douglas Gilbert63918a92012-09-08 03:20:30 +00008320 # If there is a non-empty error log, and "single_module"
8321 # appears in it, assume the flag caused a linker warning
8322 if test -s conftest.err && $GREP single_module conftest.err; then
8323 cat conftest.err >&5
8324 # Otherwise, if the output was created with a 0 exit code from
8325 # the compiler, it worked.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008326 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008327 lt_cv_apple_cc_single_mod=yes
8328 else
8329 cat conftest.err >&5
8330 fi
8331 rm -rf libconftest.dylib*
8332 rm -f conftest.*
8333 fi
8334fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00008335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8336printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
Douglas Gilbert63918a92012-09-08 03:20:30 +00008337
Douglas Gilbert891844a2022-04-24 18:11:56 +00008338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8339printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8340if test ${lt_cv_ld_exported_symbols_list+y}
8341then :
8342 printf %s "(cached) " >&6
8343else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008344 lt_cv_ld_exported_symbols_list=no
8345 save_LDFLAGS=$LDFLAGS
8346 echo "_main" > conftest.sym
8347 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349/* end confdefs.h. */
8350
8351int
Douglas Gilbert891844a2022-04-24 18:11:56 +00008352main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008353{
8354
8355 ;
8356 return 0;
8357}
8358_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +00008359if ac_fn_c_try_link "$LINENO"
8360then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008361 lt_cv_ld_exported_symbols_list=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +00008362else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008363 lt_cv_ld_exported_symbols_list=no
8364fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00008365rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008366 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008367 LDFLAGS=$save_LDFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008368
8369fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00008370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8371printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
Douglas Gilbert63918a92012-09-08 03:20:30 +00008372
Douglas Gilbert891844a2022-04-24 18:11:56 +00008373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8374printf %s "checking for -force_load linker flag... " >&6; }
8375if test ${lt_cv_ld_force_load+y}
8376then :
8377 printf %s "(cached) " >&6
8378else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +00008379 lt_cv_ld_force_load=no
8380 cat > conftest.c << _LT_EOF
8381int forced_loaded() { return 2;}
8382_LT_EOF
8383 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8384 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
Douglas Gilbert23beedb2022-08-07 02:22:53 +00008385 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8386 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008387 echo "$RANLIB libconftest.a" >&5
8388 $RANLIB libconftest.a 2>&5
8389 cat > conftest.c << _LT_EOF
8390int main() { return 0;}
8391_LT_EOF
8392 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8393 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8394 _lt_result=$?
Douglas Gilbert63918a92012-09-08 03:20:30 +00008395 if test -s conftest.err && $GREP force_load conftest.err; then
8396 cat conftest.err >&5
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008397 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00008398 lt_cv_ld_force_load=yes
8399 else
8400 cat conftest.err >&5
8401 fi
8402 rm -f conftest.err libconftest.a conftest conftest.c
8403 rm -rf conftest.dSYM
8404
8405fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00008406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8407printf "%s\n" "$lt_cv_ld_force_load" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008408 case $host_os in
8409 rhapsody* | darwin1.[012])
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008410 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008411 darwin1.*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008412 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Douglas Gilbert23beedb2022-08-07 02:22:53 +00008413 darwin*)
8414 case $MACOSX_DEPLOYMENT_TARGET,$host in
8415 10.[012],*|,*powerpc*-darwin[5-8]*)
8416 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8417 *)
8418 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008419 esac
8420 ;;
8421 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008422 if test yes = "$lt_cv_apple_cc_single_mod"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008423 _lt_dar_single_mod='$single_module'
8424 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008425 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8426 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008427 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008428 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008429 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008430 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008431 _lt_dsymutil='~$DSYMUTIL $lib || :'
8432 else
8433 _lt_dsymutil=
8434 fi
8435 ;;
8436 esac
8437
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008438# func_munge_path_list VARIABLE PATH
8439# -----------------------------------
8440# VARIABLE is name of variable containing _space_ separated list of
8441# directories to be munged by the contents of PATH, which is string
8442# having a format:
8443# "DIR[:DIR]:"
8444# string "DIR[ DIR]" will be prepended to VARIABLE
8445# ":DIR[:DIR]"
8446# string "DIR[ DIR]" will be appended to VARIABLE
8447# "DIRP[:DIRP]::[DIRA:]DIRA"
8448# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8449# "DIRA[ DIRA]" will be appended to VARIABLE
8450# "DIR[:DIR]"
8451# VARIABLE will be replaced by "DIR[ DIR]"
8452func_munge_path_list ()
8453{
8454 case x$2 in
8455 x)
8456 ;;
8457 *:)
8458 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8459 ;;
8460 x:*)
8461 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8462 ;;
8463 *::*)
8464 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8465 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8466 ;;
8467 *)
8468 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8469 ;;
8470 esac
8471}
8472
Douglas Gilbert891844a2022-04-24 18:11:56 +00008473ac_header= ac_cache=
8474for ac_item in $ac_header_c_list
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008475do
Douglas Gilbert891844a2022-04-24 18:11:56 +00008476 if test $ac_cache; then
8477 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8478 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8479 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8480 fi
8481 ac_header= ac_cache=
8482 elif test $ac_header; then
8483 ac_cache=$ac_item
8484 else
8485 ac_header=$ac_item
8486 fi
Douglas Gilbert02beb632021-11-05 23:31:50 +00008487done
Douglas Gilbert02beb632021-11-05 23:31:50 +00008488
Douglas Gilbert891844a2022-04-24 18:11:56 +00008489
8490
8491
8492
8493
8494
8495
8496if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8497then :
8498
8499printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
Douglas Gilbert02beb632021-11-05 23:31:50 +00008500
8501fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00008502ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
Douglas Gilbert02beb632021-11-05 23:31:50 +00008503"
Douglas Gilbert891844a2022-04-24 18:11:56 +00008504if test "x$ac_cv_header_dlfcn_h" = xyes
8505then :
8506 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
Douglas Gilbert02beb632021-11-05 23:31:50 +00008507
8508fi
8509
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008510
8511
Douglas Gilbertc978e062011-12-06 21:50:07 +00008512
8513
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008514# Set options
8515
8516
8517
8518 enable_dlopen=no
8519
8520
8521 enable_win32_dll=no
8522
8523
8524 # Check whether --enable-shared was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +00008525if test ${enable_shared+y}
8526then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008527 enableval=$enable_shared; p=${PACKAGE-default}
8528 case $enableval in
8529 yes) enable_shared=yes ;;
8530 no) enable_shared=no ;;
8531 *)
8532 enable_shared=no
8533 # Look at the argument we got. We use all the common list separators.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008534 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008535 for pkg in $enableval; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008536 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008537 if test "X$pkg" = "X$p"; then
8538 enable_shared=yes
8539 fi
8540 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008541 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008542 ;;
8543 esac
Douglas Gilbert891844a2022-04-24 18:11:56 +00008544else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008545 enable_shared=yes
8546fi
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556 # Check whether --enable-static was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +00008557if test ${enable_static+y}
8558then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008559 enableval=$enable_static; p=${PACKAGE-default}
8560 case $enableval in
8561 yes) enable_static=yes ;;
8562 no) enable_static=no ;;
8563 *)
8564 enable_static=no
8565 # Look at the argument we got. We use all the common list separators.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008566 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008567 for pkg in $enableval; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008568 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008569 if test "X$pkg" = "X$p"; then
8570 enable_static=yes
8571 fi
8572 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008573 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008574 ;;
8575 esac
Douglas Gilbert891844a2022-04-24 18:11:56 +00008576else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008577 enable_static=yes
8578fi
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589# Check whether --with-pic was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +00008590if test ${with_pic+y}
8591then :
Douglas Gilbert63918a92012-09-08 03:20:30 +00008592 withval=$with_pic; lt_p=${PACKAGE-default}
8593 case $withval in
8594 yes|no) pic_mode=$withval ;;
8595 *)
8596 pic_mode=default
8597 # Look at the argument we got. We use all the common list separators.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008598 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Douglas Gilbert63918a92012-09-08 03:20:30 +00008599 for lt_pkg in $withval; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008600 IFS=$lt_save_ifs
Douglas Gilbert63918a92012-09-08 03:20:30 +00008601 if test "X$lt_pkg" = "X$lt_p"; then
8602 pic_mode=yes
8603 fi
8604 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008605 IFS=$lt_save_ifs
Douglas Gilbert63918a92012-09-08 03:20:30 +00008606 ;;
8607 esac
Douglas Gilbert891844a2022-04-24 18:11:56 +00008608else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008609 pic_mode=default
8610fi
8611
8612
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008613
8614
8615
8616
8617
8618
8619 # Check whether --enable-fast-install was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +00008620if test ${enable_fast_install+y}
8621then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008622 enableval=$enable_fast_install; p=${PACKAGE-default}
8623 case $enableval in
8624 yes) enable_fast_install=yes ;;
8625 no) enable_fast_install=no ;;
8626 *)
8627 enable_fast_install=no
8628 # Look at the argument we got. We use all the common list separators.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008629 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008630 for pkg in $enableval; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008631 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008632 if test "X$pkg" = "X$p"; then
8633 enable_fast_install=yes
8634 fi
8635 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008636 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008637 ;;
8638 esac
Douglas Gilbert891844a2022-04-24 18:11:56 +00008639else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008640 enable_fast_install=yes
8641fi
8642
8643
8644
8645
8646
8647
8648
8649
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008650 shared_archive_member_spec=
8651case $host,$enable_shared in
8652power*-*-aix[5-9]*,yes)
Douglas Gilbert891844a2022-04-24 18:11:56 +00008653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8654printf %s "checking which variant of shared library versioning to provide... " >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008655
8656# Check whether --with-aix-soname was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +00008657if test ${with_aix_soname+y}
8658then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008659 withval=$with_aix_soname; case $withval in
8660 aix|svr4|both)
8661 ;;
8662 *)
8663 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8664 ;;
8665 esac
8666 lt_cv_with_aix_soname=$with_aix_soname
Douglas Gilbert891844a2022-04-24 18:11:56 +00008667else $as_nop
8668 if test ${lt_cv_with_aix_soname+y}
8669then :
8670 printf %s "(cached) " >&6
8671else $as_nop
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008672 lt_cv_with_aix_soname=aix
8673fi
8674
8675 with_aix_soname=$lt_cv_with_aix_soname
8676fi
8677
Douglas Gilbert891844a2022-04-24 18:11:56 +00008678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8679printf "%s\n" "$with_aix_soname" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008680 if test aix != "$with_aix_soname"; then
8681 # For the AIX way of multilib, we name the shared archive member
8682 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8683 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8684 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8685 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8686 if test 64 = "${OBJECT_MODE-32}"; then
8687 shared_archive_member_spec=shr_64
8688 else
8689 shared_archive_member_spec=shr
8690 fi
8691 fi
8692 ;;
8693*)
8694 with_aix_soname=aix
8695 ;;
8696esac
8697
8698
8699
8700
8701
8702
8703
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008704
8705
8706
8707# This can be used to rebuild libtool when needed
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008708LIBTOOL_DEPS=$ltmain
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008709
8710# Always use our own libtool.
8711LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
Douglas Gilbertc978e062011-12-06 21:50:07 +00008737
Douglas Gilbert63918a92012-09-08 03:20:30 +00008738
8739
8740
8741
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008742test -z "$LN_S" && LN_S="ln -s"
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008757if test -n "${ZSH_VERSION+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008758 setopt NO_GLOB_SUBST
8759fi
8760
Douglas Gilbert891844a2022-04-24 18:11:56 +00008761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8762printf %s "checking for objdir... " >&6; }
8763if test ${lt_cv_objdir+y}
8764then :
8765 printf %s "(cached) " >&6
8766else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008767 rm -f .libs 2>/dev/null
8768mkdir .libs 2>/dev/null
8769if test -d .libs; then
8770 lt_cv_objdir=.libs
8771else
8772 # MS-DOS does not allow filenames that begin with a dot.
8773 lt_cv_objdir=_libs
8774fi
8775rmdir .libs 2>/dev/null
8776fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00008777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8778printf "%s\n" "$lt_cv_objdir" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008779objdir=$lt_cv_objdir
8780
8781
8782
8783
8784
Douglas Gilbert891844a2022-04-24 18:11:56 +00008785printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008786
8787
8788
8789
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008790case $host_os in
8791aix3*)
8792 # AIX sometimes has problems with the GCC collect2 program. For some
8793 # reason, if we set the COLLECT_NAMES environment variable, the problems
8794 # vanish in a puff of smoke.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008795 if test set != "${COLLECT_NAMES+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008796 COLLECT_NAMES=
8797 export COLLECT_NAMES
8798 fi
8799 ;;
8800esac
8801
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008802# Global variables:
8803ofile=libtool
8804can_build_shared=yes
8805
Douglas Gilbert23beedb2022-08-07 02:22:53 +00008806# All known linkers require a '.a' archive for static linking (except MSVC and
8807# ICC, which need '.lib').
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008808libext=a
8809
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008810with_gnu_ld=$lt_cv_prog_gnu_ld
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008811
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008812old_CC=$CC
8813old_CFLAGS=$CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008814
8815# Set sane defaults for various variables
8816test -z "$CC" && CC=cc
8817test -z "$LTCC" && LTCC=$CC
8818test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8819test -z "$LD" && LD=ld
8820test -z "$ac_objext" && ac_objext=o
8821
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008822func_cc_basename $compiler
8823cc_basename=$func_cc_basename_result
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008824
8825
8826# Only perform the check for file, if the check method requires it
8827test -z "$MAGIC_CMD" && MAGIC_CMD=file
8828case $deplibs_check_method in
8829file_magic*)
8830 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00008831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8832printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8833if test ${lt_cv_path_MAGIC_CMD+y}
8834then :
8835 printf %s "(cached) " >&6
8836else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008837 case $MAGIC_CMD in
8838[\\/*] | ?:[\\/]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008839 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008840 ;;
8841*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008842 lt_save_MAGIC_CMD=$MAGIC_CMD
8843 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008844 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8845 for ac_dir in $ac_dummy; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008846 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008847 test -z "$ac_dir" && ac_dir=.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008848 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8849 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008850 if test -n "$file_magic_test_file"; then
8851 case $deplibs_check_method in
8852 "file_magic "*)
8853 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008854 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008855 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8856 $EGREP "$file_magic_regex" > /dev/null; then
8857 :
8858 else
8859 cat <<_LT_EOF 1>&2
8860
8861*** Warning: the command libtool uses to detect shared libraries,
8862*** $file_magic_cmd, produces output that libtool cannot recognize.
8863*** The result is that libtool may fail to recognize shared libraries
8864*** as such. This will affect the creation of libtool libraries that
8865*** depend on shared libraries, but programs linked with such libtool
8866*** libraries will work regardless of this problem. Nevertheless, you
8867*** may want to report the problem to your system manager and/or to
8868*** bug-libtool@gnu.org
8869
8870_LT_EOF
8871 fi ;;
8872 esac
8873 fi
8874 break
8875 fi
8876 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008877 IFS=$lt_save_ifs
8878 MAGIC_CMD=$lt_save_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008879 ;;
8880esac
8881fi
8882
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008883MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008884if test -n "$MAGIC_CMD"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00008885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8886printf "%s\n" "$MAGIC_CMD" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008887else
Douglas Gilbert891844a2022-04-24 18:11:56 +00008888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008890fi
8891
8892
8893
8894
8895
8896if test -z "$lt_cv_path_MAGIC_CMD"; then
8897 if test -n "$ac_tool_prefix"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00008898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8899printf %s "checking for file... " >&6; }
8900if test ${lt_cv_path_MAGIC_CMD+y}
8901then :
8902 printf %s "(cached) " >&6
8903else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008904 case $MAGIC_CMD in
8905[\\/*] | ?:[\\/]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008906 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008907 ;;
8908*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008909 lt_save_MAGIC_CMD=$MAGIC_CMD
8910 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008911 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8912 for ac_dir in $ac_dummy; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008913 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008914 test -z "$ac_dir" && ac_dir=.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008915 if test -f "$ac_dir/file"; then
8916 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008917 if test -n "$file_magic_test_file"; then
8918 case $deplibs_check_method in
8919 "file_magic "*)
8920 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008921 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008922 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8923 $EGREP "$file_magic_regex" > /dev/null; then
8924 :
8925 else
8926 cat <<_LT_EOF 1>&2
8927
8928*** Warning: the command libtool uses to detect shared libraries,
8929*** $file_magic_cmd, produces output that libtool cannot recognize.
8930*** The result is that libtool may fail to recognize shared libraries
8931*** as such. This will affect the creation of libtool libraries that
8932*** depend on shared libraries, but programs linked with such libtool
8933*** libraries will work regardless of this problem. Nevertheless, you
8934*** may want to report the problem to your system manager and/or to
8935*** bug-libtool@gnu.org
8936
8937_LT_EOF
8938 fi ;;
8939 esac
8940 fi
8941 break
8942 fi
8943 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008944 IFS=$lt_save_ifs
8945 MAGIC_CMD=$lt_save_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008946 ;;
8947esac
8948fi
8949
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008950MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008951if test -n "$MAGIC_CMD"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00008952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8953printf "%s\n" "$MAGIC_CMD" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008954else
Douglas Gilbert891844a2022-04-24 18:11:56 +00008955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008957fi
8958
8959
8960 else
8961 MAGIC_CMD=:
8962 fi
8963fi
8964
8965 fi
8966 ;;
8967esac
8968
8969# Use C for the default configuration in the libtool script
8970
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008971lt_save_CC=$CC
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008972ac_ext=c
8973ac_cpp='$CPP $CPPFLAGS'
8974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8976ac_compiler_gnu=$ac_cv_c_compiler_gnu
8977
8978
8979# Source file extension for C test sources.
8980ac_ext=c
8981
8982# Object file extension for compiled C test sources.
8983objext=o
8984objext=$objext
8985
8986# Code to be used in simple compile tests
8987lt_simple_compile_test_code="int some_variable = 0;"
8988
8989# Code to be used in simple link tests
8990lt_simple_link_test_code='int main(){return(0);}'
8991
8992
8993
8994
8995
8996
8997
8998# If no C compiler was specified, use CC.
8999LTCC=${LTCC-"$CC"}
9000
9001# If no C compiler flags were specified, use CFLAGS.
9002LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9003
9004# Allow CC to be a program name with arguments.
9005compiler=$CC
9006
9007# Save the default compiler, since it gets overwritten when the other
9008# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9009compiler_DEFAULT=$CC
9010
9011# save warnings/boilerplate of simple test code
9012ac_outfile=conftest.$ac_objext
9013echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9014eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9015_lt_compiler_boilerplate=`cat conftest.err`
9016$RM conftest*
9017
9018ac_outfile=conftest.$ac_objext
9019echo "$lt_simple_link_test_code" >conftest.$ac_ext
9020eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9021_lt_linker_boilerplate=`cat conftest.err`
9022$RM -r conftest*
9023
9024
9025if test -n "$compiler"; then
9026
9027lt_prog_compiler_no_builtin_flag=
9028
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009029if test yes = "$GCC"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009030 case $cc_basename in
9031 nvcc*)
9032 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9033 *)
9034 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9035 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009036
Douglas Gilbert891844a2022-04-24 18:11:56 +00009037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9038printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9039if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9040then :
9041 printf %s "(cached) " >&6
9042else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009043 lt_cv_prog_compiler_rtti_exceptions=no
9044 ac_outfile=conftest.$ac_objext
9045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009046 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009047 # Insert the option either (1) after the last *FLAGS variable, or
9048 # (2) before a word containing "conftest.", or (3) at the end.
9049 # Note that $ac_compile itself does not contain backslashes and begins
9050 # with a dollar sign (not a hyphen), so the echo should work correctly.
9051 # The option is referenced via a variable to avoid confusing sed.
9052 lt_compile=`echo "$ac_compile" | $SED \
9053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9055 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00009056 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009057 (eval "$lt_compile" 2>conftest.err)
9058 ac_status=$?
9059 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00009060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009061 if (exit $ac_status) && test -s "$ac_outfile"; then
9062 # The compiler can only warn and ignore the option if not recognized
9063 # So say no if there are warnings other than the usual output.
Douglas Gilbertc978e062011-12-06 21:50:07 +00009064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9066 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9067 lt_cv_prog_compiler_rtti_exceptions=yes
9068 fi
9069 fi
9070 $RM conftest*
9071
9072fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00009073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9074printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009075
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009076if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009077 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9078else
9079 :
9080fi
9081
9082fi
9083
9084
9085
9086
9087
9088
9089 lt_prog_compiler_wl=
9090lt_prog_compiler_pic=
9091lt_prog_compiler_static=
9092
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009093
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009094 if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009095 lt_prog_compiler_wl='-Wl,'
9096 lt_prog_compiler_static='-static'
9097
9098 case $host_os in
9099 aix*)
9100 # All AIX code is PIC.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009101 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009102 # AIX 5 now supports IA64 processor
9103 lt_prog_compiler_static='-Bstatic'
9104 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009105 lt_prog_compiler_pic='-fPIC'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009106 ;;
9107
9108 amigaos*)
9109 case $host_cpu in
9110 powerpc)
9111 # see comment about AmigaOS4 .so support
9112 lt_prog_compiler_pic='-fPIC'
9113 ;;
9114 m68k)
9115 # FIXME: we need at least 68020 code to build shared libraries, but
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009116 # adding the '-m68020' flag to GCC prevents building anything better,
9117 # like '-m68040'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009118 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9119 ;;
9120 esac
9121 ;;
9122
9123 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9124 # PIC is the default for these OSes.
9125 ;;
9126
9127 mingw* | cygwin* | pw32* | os2* | cegcc*)
9128 # This hack is so that the source file can tell whether it is being
9129 # built for inclusion in a dll (and should export symbols for example).
9130 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9131 # (--disable-auto-import) libraries
9132 lt_prog_compiler_pic='-DDLL_EXPORT'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009133 case $host_os in
9134 os2*)
9135 lt_prog_compiler_static='$wl-static'
9136 ;;
9137 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009138 ;;
9139
9140 darwin* | rhapsody*)
9141 # PIC is the default on this platform
9142 # Common symbols not allowed in MH_DYLIB files
9143 lt_prog_compiler_pic='-fno-common'
9144 ;;
9145
Douglas Gilbertc978e062011-12-06 21:50:07 +00009146 haiku*)
9147 # PIC is the default for Haiku.
9148 # The "-static" flag exists, but is broken.
9149 lt_prog_compiler_static=
9150 ;;
9151
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009152 hpux*)
9153 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9154 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9155 # sets the default TLS model and affects inlining.
9156 case $host_cpu in
9157 hppa*64*)
9158 # +Z the default
9159 ;;
9160 *)
9161 lt_prog_compiler_pic='-fPIC'
9162 ;;
9163 esac
9164 ;;
9165
9166 interix[3-9]*)
9167 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9168 # Instead, we relocate shared libraries at runtime.
9169 ;;
9170
9171 msdosdjgpp*)
9172 # Just because we use GCC doesn't mean we suddenly get shared libraries
9173 # on systems that don't support them.
9174 lt_prog_compiler_can_build_shared=no
9175 enable_shared=no
9176 ;;
9177
9178 *nto* | *qnx*)
9179 # QNX uses GNU C++, but need to define -shared option too, otherwise
9180 # it will coredump.
9181 lt_prog_compiler_pic='-fPIC -shared'
9182 ;;
9183
9184 sysv4*MP*)
9185 if test -d /usr/nec; then
9186 lt_prog_compiler_pic=-Kconform_pic
9187 fi
9188 ;;
9189
9190 *)
9191 lt_prog_compiler_pic='-fPIC'
9192 ;;
9193 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +00009194
9195 case $cc_basename in
9196 nvcc*) # Cuda Compiler Driver 2.2
9197 lt_prog_compiler_wl='-Xlinker '
Douglas Gilbert63918a92012-09-08 03:20:30 +00009198 if test -n "$lt_prog_compiler_pic"; then
9199 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9200 fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00009201 ;;
9202 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009203 else
9204 # PORTME Check for flag to pass linker flags through the system compiler.
9205 case $host_os in
9206 aix*)
9207 lt_prog_compiler_wl='-Wl,'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009208 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009209 # AIX 5 now supports IA64 processor
9210 lt_prog_compiler_static='-Bstatic'
9211 else
9212 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9213 fi
9214 ;;
9215
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009216 darwin* | rhapsody*)
9217 # PIC is the default on this platform
9218 # Common symbols not allowed in MH_DYLIB files
9219 lt_prog_compiler_pic='-fno-common'
9220 case $cc_basename in
9221 nagfor*)
9222 # NAG Fortran compiler
9223 lt_prog_compiler_wl='-Wl,-Wl,,'
9224 lt_prog_compiler_pic='-PIC'
9225 lt_prog_compiler_static='-Bstatic'
9226 ;;
9227 esac
9228 ;;
9229
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009230 mingw* | cygwin* | pw32* | os2* | cegcc*)
9231 # This hack is so that the source file can tell whether it is being
9232 # built for inclusion in a dll (and should export symbols for example).
9233 lt_prog_compiler_pic='-DDLL_EXPORT'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009234 case $host_os in
9235 os2*)
9236 lt_prog_compiler_static='$wl-static'
9237 ;;
9238 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009239 ;;
9240
9241 hpux9* | hpux10* | hpux11*)
9242 lt_prog_compiler_wl='-Wl,'
9243 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9244 # not for PA HP-UX.
9245 case $host_cpu in
9246 hppa*64*|ia64*)
9247 # +Z the default
9248 ;;
9249 *)
9250 lt_prog_compiler_pic='+Z'
9251 ;;
9252 esac
9253 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009254 lt_prog_compiler_static='$wl-a ${wl}archive'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009255 ;;
9256
9257 irix5* | irix6* | nonstopux*)
9258 lt_prog_compiler_wl='-Wl,'
9259 # PIC (with -KPIC) is the default.
9260 lt_prog_compiler_static='-non_shared'
9261 ;;
9262
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00009263 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009264 case $cc_basename in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009265 # old Intel for x86_64, which still supported -KPIC.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009266 ecc*)
9267 lt_prog_compiler_wl='-Wl,'
9268 lt_prog_compiler_pic='-KPIC'
9269 lt_prog_compiler_static='-static'
9270 ;;
Douglas Gilbert6d3bd262022-11-01 23:46:24 +00009271 # flang / f18. f95 an alias for gfortran or flang on Debian
9272 flang* | f18* | f95*)
9273 lt_prog_compiler_wl='-Wl,'
9274 lt_prog_compiler_pic='-fPIC'
9275 lt_prog_compiler_static='-static'
9276 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009277 # icc used to be incompatible with GCC.
9278 # ICC 10 doesn't accept -KPIC any more.
9279 icc* | ifort*)
9280 lt_prog_compiler_wl='-Wl,'
9281 lt_prog_compiler_pic='-fPIC'
9282 lt_prog_compiler_static='-static'
9283 ;;
9284 # Lahey Fortran 8.1.
9285 lf95*)
9286 lt_prog_compiler_wl='-Wl,'
9287 lt_prog_compiler_pic='--shared'
9288 lt_prog_compiler_static='--static'
9289 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009290 nagfor*)
9291 # NAG Fortran compiler
9292 lt_prog_compiler_wl='-Wl,-Wl,,'
9293 lt_prog_compiler_pic='-PIC'
9294 lt_prog_compiler_static='-Bstatic'
9295 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009296 tcc*)
9297 # Fabrice Bellard et al's Tiny C Compiler
9298 lt_prog_compiler_wl='-Wl,'
9299 lt_prog_compiler_pic='-fPIC'
9300 lt_prog_compiler_static='-static'
9301 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009302 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009303 # Portland Group compilers (*not* the Pentium gcc compiler,
9304 # which looks to be a dead project)
9305 lt_prog_compiler_wl='-Wl,'
9306 lt_prog_compiler_pic='-fpic'
9307 lt_prog_compiler_static='-Bstatic'
9308 ;;
9309 ccc*)
9310 lt_prog_compiler_wl='-Wl,'
9311 # All Alpha code is PIC.
9312 lt_prog_compiler_static='-non_shared'
9313 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009314 xl* | bgxl* | bgf* | mpixl*)
9315 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009316 lt_prog_compiler_wl='-Wl,'
9317 lt_prog_compiler_pic='-qpic'
9318 lt_prog_compiler_static='-qstaticlink'
9319 ;;
9320 *)
Douglas Gilbert23beedb2022-08-07 02:22:53 +00009321 case `$CC -V 2>&1 | $SED 5q` in
Douglas Gilbert63918a92012-09-08 03:20:30 +00009322 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00009323 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9324 lt_prog_compiler_pic='-KPIC'
9325 lt_prog_compiler_static='-Bstatic'
9326 lt_prog_compiler_wl=''
9327 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00009328 *Sun\ F* | *Sun*Fortran*)
9329 lt_prog_compiler_pic='-KPIC'
9330 lt_prog_compiler_static='-Bstatic'
9331 lt_prog_compiler_wl='-Qoption ld '
9332 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009333 *Sun\ C*)
9334 # Sun C 5.9
9335 lt_prog_compiler_pic='-KPIC'
9336 lt_prog_compiler_static='-Bstatic'
9337 lt_prog_compiler_wl='-Wl,'
9338 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00009339 *Intel*\ [CF]*Compiler*)
9340 lt_prog_compiler_wl='-Wl,'
9341 lt_prog_compiler_pic='-fPIC'
9342 lt_prog_compiler_static='-static'
9343 ;;
9344 *Portland\ Group*)
9345 lt_prog_compiler_wl='-Wl,'
9346 lt_prog_compiler_pic='-fpic'
9347 lt_prog_compiler_static='-Bstatic'
9348 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009349 esac
9350 ;;
9351 esac
9352 ;;
9353
9354 newsos6)
9355 lt_prog_compiler_pic='-KPIC'
9356 lt_prog_compiler_static='-Bstatic'
9357 ;;
9358
9359 *nto* | *qnx*)
9360 # QNX uses GNU C++, but need to define -shared option too, otherwise
9361 # it will coredump.
9362 lt_prog_compiler_pic='-fPIC -shared'
9363 ;;
9364
9365 osf3* | osf4* | osf5*)
9366 lt_prog_compiler_wl='-Wl,'
9367 # All OSF/1 code is PIC.
9368 lt_prog_compiler_static='-non_shared'
9369 ;;
9370
9371 rdos*)
9372 lt_prog_compiler_static='-non_shared'
9373 ;;
9374
9375 solaris*)
9376 lt_prog_compiler_pic='-KPIC'
9377 lt_prog_compiler_static='-Bstatic'
9378 case $cc_basename in
Douglas Gilbertc978e062011-12-06 21:50:07 +00009379 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009380 lt_prog_compiler_wl='-Qoption ld ';;
9381 *)
9382 lt_prog_compiler_wl='-Wl,';;
9383 esac
9384 ;;
9385
9386 sunos4*)
9387 lt_prog_compiler_wl='-Qoption ld '
9388 lt_prog_compiler_pic='-PIC'
9389 lt_prog_compiler_static='-Bstatic'
9390 ;;
9391
9392 sysv4 | sysv4.2uw2* | sysv4.3*)
9393 lt_prog_compiler_wl='-Wl,'
9394 lt_prog_compiler_pic='-KPIC'
9395 lt_prog_compiler_static='-Bstatic'
9396 ;;
9397
9398 sysv4*MP*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009399 if test -d /usr/nec; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009400 lt_prog_compiler_pic='-Kconform_pic'
9401 lt_prog_compiler_static='-Bstatic'
9402 fi
9403 ;;
9404
9405 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9406 lt_prog_compiler_wl='-Wl,'
9407 lt_prog_compiler_pic='-KPIC'
9408 lt_prog_compiler_static='-Bstatic'
9409 ;;
9410
9411 unicos*)
9412 lt_prog_compiler_wl='-Wl,'
9413 lt_prog_compiler_can_build_shared=no
9414 ;;
9415
9416 uts4*)
9417 lt_prog_compiler_pic='-pic'
9418 lt_prog_compiler_static='-Bstatic'
9419 ;;
9420
9421 *)
9422 lt_prog_compiler_can_build_shared=no
9423 ;;
9424 esac
9425 fi
9426
9427case $host_os in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009428 # For platforms that do not support PIC, -DPIC is meaningless:
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009429 *djgpp*)
9430 lt_prog_compiler_pic=
9431 ;;
9432 *)
9433 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9434 ;;
9435esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009436
Douglas Gilbert891844a2022-04-24 18:11:56 +00009437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9438printf %s "checking for $compiler option to produce PIC... " >&6; }
9439if test ${lt_cv_prog_compiler_pic+y}
9440then :
9441 printf %s "(cached) " >&6
9442else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +00009443 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9444fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00009445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9446printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00009447lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009448
9449#
9450# Check to make sure the PIC flag actually works.
9451#
9452if test -n "$lt_prog_compiler_pic"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00009453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9454printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9455if test ${lt_cv_prog_compiler_pic_works+y}
9456then :
9457 printf %s "(cached) " >&6
9458else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009459 lt_cv_prog_compiler_pic_works=no
9460 ac_outfile=conftest.$ac_objext
9461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009462 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009463 # Insert the option either (1) after the last *FLAGS variable, or
9464 # (2) before a word containing "conftest.", or (3) at the end.
9465 # Note that $ac_compile itself does not contain backslashes and begins
9466 # with a dollar sign (not a hyphen), so the echo should work correctly.
9467 # The option is referenced via a variable to avoid confusing sed.
9468 lt_compile=`echo "$ac_compile" | $SED \
9469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9471 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00009472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009473 (eval "$lt_compile" 2>conftest.err)
9474 ac_status=$?
9475 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00009476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009477 if (exit $ac_status) && test -s "$ac_outfile"; then
9478 # The compiler can only warn and ignore the option if not recognized
9479 # So say no if there are warnings other than the usual output.
Douglas Gilbertc978e062011-12-06 21:50:07 +00009480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9482 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9483 lt_cv_prog_compiler_pic_works=yes
9484 fi
9485 fi
9486 $RM conftest*
9487
9488fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00009489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9490printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009491
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009492if test yes = "$lt_cv_prog_compiler_pic_works"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009493 case $lt_prog_compiler_pic in
9494 "" | " "*) ;;
9495 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9496 esac
9497else
9498 lt_prog_compiler_pic=
9499 lt_prog_compiler_can_build_shared=no
9500fi
9501
9502fi
9503
9504
9505
9506
9507
9508
Douglas Gilbertc978e062011-12-06 21:50:07 +00009509
9510
9511
9512
9513
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009514#
9515# Check to make sure the static flag actually works.
9516#
9517wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Douglas Gilbert891844a2022-04-24 18:11:56 +00009518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9519printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9520if test ${lt_cv_prog_compiler_static_works+y}
9521then :
9522 printf %s "(cached) " >&6
9523else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009524 lt_cv_prog_compiler_static_works=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009525 save_LDFLAGS=$LDFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009526 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9527 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9529 # The linker can only warn and ignore the option if not recognized
9530 # So say no if there are warnings
9531 if test -s conftest.err; then
9532 # Append any errors to the config.log.
9533 cat conftest.err 1>&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00009534 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9536 if diff conftest.exp conftest.er2 >/dev/null; then
9537 lt_cv_prog_compiler_static_works=yes
9538 fi
9539 else
9540 lt_cv_prog_compiler_static_works=yes
9541 fi
9542 fi
9543 $RM -r conftest*
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009544 LDFLAGS=$save_LDFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009545
9546fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00009547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9548printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009549
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009550if test yes = "$lt_cv_prog_compiler_static_works"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009551 :
9552else
9553 lt_prog_compiler_static=
9554fi
9555
9556
9557
9558
9559
9560
9561
Douglas Gilbert891844a2022-04-24 18:11:56 +00009562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9563printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9564if test ${lt_cv_prog_compiler_c_o+y}
9565then :
9566 printf %s "(cached) " >&6
9567else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009568 lt_cv_prog_compiler_c_o=no
9569 $RM -r conftest 2>/dev/null
9570 mkdir conftest
9571 cd conftest
9572 mkdir out
9573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9574
9575 lt_compiler_flag="-o out/conftest2.$ac_objext"
9576 # Insert the option either (1) after the last *FLAGS variable, or
9577 # (2) before a word containing "conftest.", or (3) at the end.
9578 # Note that $ac_compile itself does not contain backslashes and begins
9579 # with a dollar sign (not a hyphen), so the echo should work correctly.
9580 lt_compile=`echo "$ac_compile" | $SED \
9581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9583 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00009584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009585 (eval "$lt_compile" 2>out/conftest.err)
9586 ac_status=$?
9587 cat out/conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00009588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009589 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9590 then
9591 # The compiler can only warn and ignore the option if not recognized
9592 # So say no if there are warnings
Douglas Gilbertc978e062011-12-06 21:50:07 +00009593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009594 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9595 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9596 lt_cv_prog_compiler_c_o=yes
9597 fi
9598 fi
9599 chmod u+w . 2>&5
9600 $RM conftest*
9601 # SGI C++ compiler will create directory out/ii_files/ for
9602 # template instantiation
9603 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9604 $RM out/* && rmdir out
9605 cd ..
9606 $RM -r conftest
9607 $RM conftest*
9608
9609fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00009610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9611printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009612
9613
9614
9615
9616
9617
Douglas Gilbert891844a2022-04-24 18:11:56 +00009618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9619printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9620if test ${lt_cv_prog_compiler_c_o+y}
9621then :
9622 printf %s "(cached) " >&6
9623else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009624 lt_cv_prog_compiler_c_o=no
9625 $RM -r conftest 2>/dev/null
9626 mkdir conftest
9627 cd conftest
9628 mkdir out
9629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9630
9631 lt_compiler_flag="-o out/conftest2.$ac_objext"
9632 # Insert the option either (1) after the last *FLAGS variable, or
9633 # (2) before a word containing "conftest.", or (3) at the end.
9634 # Note that $ac_compile itself does not contain backslashes and begins
9635 # with a dollar sign (not a hyphen), so the echo should work correctly.
9636 lt_compile=`echo "$ac_compile" | $SED \
9637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9639 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00009640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009641 (eval "$lt_compile" 2>out/conftest.err)
9642 ac_status=$?
9643 cat out/conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00009644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009645 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9646 then
9647 # The compiler can only warn and ignore the option if not recognized
9648 # So say no if there are warnings
Douglas Gilbertc978e062011-12-06 21:50:07 +00009649 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9652 lt_cv_prog_compiler_c_o=yes
9653 fi
9654 fi
9655 chmod u+w . 2>&5
9656 $RM conftest*
9657 # SGI C++ compiler will create directory out/ii_files/ for
9658 # template instantiation
9659 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9660 $RM out/* && rmdir out
9661 cd ..
9662 $RM -r conftest
9663 $RM conftest*
9664
9665fi
Douglas Gilbert891844a2022-04-24 18:11:56 +00009666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9667printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009668
9669
9670
9671
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009672hard_links=nottested
9673if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009674 # do not overwrite the value of need_locks provided by the user
Douglas Gilbert891844a2022-04-24 18:11:56 +00009675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9676printf %s "checking if we can lock with hard links... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009677 hard_links=yes
9678 $RM conftest*
9679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9680 touch conftest.a
9681 ln conftest.a conftest.b 2>&5 || hard_links=no
9682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Douglas Gilbert891844a2022-04-24 18:11:56 +00009683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9684printf "%s\n" "$hard_links" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009685 if test no = "$hard_links"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +00009686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9687printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009688 need_locks=warn
9689 fi
9690else
9691 need_locks=no
9692fi
9693
9694
9695
9696
9697
9698
Douglas Gilbert891844a2022-04-24 18:11:56 +00009699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9700printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009701
9702 runpath_var=
9703 allow_undefined_flag=
9704 always_export_symbols=no
9705 archive_cmds=
9706 archive_expsym_cmds=
9707 compiler_needs_object=no
9708 enable_shared_with_static_runtimes=no
9709 export_dynamic_flag_spec=
9710 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9711 hardcode_automatic=no
9712 hardcode_direct=no
9713 hardcode_direct_absolute=no
9714 hardcode_libdir_flag_spec=
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009715 hardcode_libdir_separator=
9716 hardcode_minus_L=no
9717 hardcode_shlibpath_var=unsupported
9718 inherit_rpath=no
9719 link_all_deplibs=unknown
9720 module_cmds=
9721 module_expsym_cmds=
9722 old_archive_from_new_cmds=
9723 old_archive_from_expsyms_cmds=
9724 thread_safe_flag_spec=
9725 whole_archive_flag_spec=
9726 # include_expsyms should be a list of space-separated symbols to be *always*
9727 # included in the symbol list
9728 include_expsyms=
9729 # exclude_expsyms can be an extended regexp of symbols to exclude
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009730 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9731 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9732 # as well as any symbol that contains 'd'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009733 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9734 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9735 # platforms (ab)use it in PIC code, but their linkers get confused if
9736 # the symbol is explicitly referenced. Since portable code cannot
9737 # rely on this symbol name, it's probably fine to never include it in
9738 # preloaded symbol tables.
9739 # Exclude shared library initialization/finalization symbols.
9740 extract_expsyms_cmds=
9741
9742 case $host_os in
9743 cygwin* | mingw* | pw32* | cegcc*)
Douglas Gilbert23beedb2022-08-07 02:22:53 +00009744 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009745 # When not using gcc, we currently assume that we are using
Douglas Gilbert23beedb2022-08-07 02:22:53 +00009746 # Microsoft Visual C++ or Intel C++ Compiler.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009747 if test yes != "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009748 with_gnu_ld=no
9749 fi
9750 ;;
9751 interix*)
Douglas Gilbert23beedb2022-08-07 02:22:53 +00009752 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009753 with_gnu_ld=yes
9754 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009755 openbsd* | bitrig*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009756 with_gnu_ld=no
9757 ;;
Douglas Gilbert6d3bd262022-11-01 23:46:24 +00009758 linux* | k*bsd*-gnu | gnu*)
9759 link_all_deplibs=no
9760 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009761 esac
9762
9763 ld_shlibs=yes
Douglas Gilbertc978e062011-12-06 21:50:07 +00009764
9765 # On some targets, GNU ld is compatible enough with the native linker
9766 # that we're better off using the native interface for both.
9767 lt_use_gnu_ld_interface=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009768 if test yes = "$with_gnu_ld"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009769 case $host_os in
9770 aix*)
9771 # The AIX port of GNU ld has always aspired to compatibility
9772 # with the native linker. However, as the warning in the GNU ld
9773 # block says, versions before 2.19.5* couldn't really create working
9774 # shared libraries, regardless of the interface used.
9775 case `$LD -v 2>&1` in
9776 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9777 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9778 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9779 *)
9780 lt_use_gnu_ld_interface=yes
9781 ;;
9782 esac
9783 ;;
9784 *)
9785 lt_use_gnu_ld_interface=yes
9786 ;;
9787 esac
9788 fi
9789
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009790 if test yes = "$lt_use_gnu_ld_interface"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009791 # If archive_cmds runs LD, not CC, wlarc should be empty
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009792 wlarc='$wl'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009793
9794 # Set some defaults for GNU ld with shared library support. These
9795 # are reset later if shared libraries are not supported. Putting them
9796 # here allows them to be overridden if necessary.
9797 runpath_var=LD_RUN_PATH
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009798 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9799 export_dynamic_flag_spec='$wl--export-dynamic'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009800 # ancient GNU ld didn't support --whole-archive et. al.
9801 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009802 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009803 else
9804 whole_archive_flag_spec=
9805 fi
9806 supports_anon_versioning=no
Douglas Gilbert23beedb2022-08-07 02:22:53 +00009807 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009808 *GNU\ gold*) supports_anon_versioning=yes ;;
9809 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9810 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9811 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9812 *\ 2.11.*) ;; # other 2.11 versions
9813 *) supports_anon_versioning=yes ;;
9814 esac
9815
9816 # See if GNU ld supports shared libraries.
9817 case $host_os in
9818 aix[3-9]*)
9819 # On AIX/PPC, the GNU linker is very broken
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009820 if test ia64 != "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009821 ld_shlibs=no
9822 cat <<_LT_EOF 1>&2
9823
Douglas Gilbertc978e062011-12-06 21:50:07 +00009824*** Warning: the GNU linker, at least up to release 2.19, is reported
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009825*** to be unable to reliably create shared libraries on AIX.
9826*** Therefore, libtool is disabling shared libraries support. If you
Douglas Gilbertc978e062011-12-06 21:50:07 +00009827*** really care for shared libraries, you may want to install binutils
9828*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9829*** You will then need to restart the configuration process.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009830
9831_LT_EOF
9832 fi
9833 ;;
9834
9835 amigaos*)
9836 case $host_cpu in
9837 powerpc)
9838 # see comment about AmigaOS4 .so support
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009840 archive_expsym_cmds=''
9841 ;;
9842 m68k)
9843 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)'
9844 hardcode_libdir_flag_spec='-L$libdir'
9845 hardcode_minus_L=yes
9846 ;;
9847 esac
9848 ;;
9849
9850 beos*)
9851 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9852 allow_undefined_flag=unsupported
9853 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9854 # support --undefined. This deserves some investigation. FIXME
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009855 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009856 else
9857 ld_shlibs=no
9858 fi
9859 ;;
9860
9861 cygwin* | mingw* | pw32* | cegcc*)
9862 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9863 # as there is no search path for DLLs.
9864 hardcode_libdir_flag_spec='-L$libdir'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009865 export_dynamic_flag_spec='$wl--export-all-symbols'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009866 allow_undefined_flag=unsupported
9867 always_export_symbols=no
9868 enable_shared_with_static_runtimes=yes
Douglas Gilbertc978e062011-12-06 21:50:07 +00009869 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'
9870 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009871
9872 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9874 # If the export-symbols file already is a .def file, use it as
9875 # is; otherwise, prepend EXPORTS...
9876 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9877 cp $export_symbols $output_objdir/$soname.def;
9878 else
9879 echo EXPORTS > $output_objdir/$soname.def;
9880 cat $export_symbols >> $output_objdir/$soname.def;
9881 fi~
9882 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009883 else
9884 ld_shlibs=no
9885 fi
9886 ;;
9887
Douglas Gilbertc978e062011-12-06 21:50:07 +00009888 haiku*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009890 link_all_deplibs=yes
9891 ;;
9892
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009893 os2*)
9894 hardcode_libdir_flag_spec='-L$libdir'
9895 hardcode_minus_L=yes
9896 allow_undefined_flag=unsupported
9897 shrext_cmds=.dll
9898 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9899 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9900 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9901 $ECHO EXPORTS >> $output_objdir/$libname.def~
9902 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9903 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9904 emximp -o $lib $output_objdir/$libname.def'
9905 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9906 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9907 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9908 $ECHO EXPORTS >> $output_objdir/$libname.def~
9909 prefix_cmds="$SED"~
9910 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9911 prefix_cmds="$prefix_cmds -e 1d";
9912 fi~
9913 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9914 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9915 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9916 emximp -o $lib $output_objdir/$libname.def'
9917 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9918 enable_shared_with_static_runtimes=yes
Douglas Gilbert23beedb2022-08-07 02:22:53 +00009919 file_list_spec='@'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009920 ;;
9921
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009922 interix[3-9]*)
9923 hardcode_direct=no
9924 hardcode_shlibpath_var=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009925 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9926 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009927 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9928 # Instead, shared libraries are loaded at an image base (0x10000000 by
9929 # default) and relocated if they conflict, which is a slow very memory
9930 # consuming and fragmenting process. To avoid this, we pick a random,
9931 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9932 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Douglas Gilbert23beedb2022-08-07 02:22:53 +00009934 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009935 ;;
9936
9937 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9938 tmp_diet=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009939 if test linux-dietlibc = "$host_os"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009940 case $cc_basename in
9941 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9942 esac
9943 fi
9944 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009945 && test no = "$tmp_diet"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009946 then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009947 tmp_addflag=' $pic_flag'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009948 tmp_sharedflag='-shared'
9949 case $cc_basename,$host_cpu in
9950 pgcc*) # Portland Group C compiler
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009951 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009952 tmp_addflag=' $pic_flag'
9953 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009954 pgf77* | pgf90* | pgf95* | pgfortran*)
9955 # Portland Group f77 and f90 compilers
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009956 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009957 tmp_addflag=' $pic_flag -Mnomain' ;;
9958 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9959 tmp_addflag=' -i_dynamic' ;;
9960 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9961 tmp_addflag=' -i_dynamic -nofor_main' ;;
9962 ifc* | ifort*) # Intel Fortran compiler
9963 tmp_addflag=' -nofor_main' ;;
9964 lf95*) # Lahey Fortran 8.1
9965 whole_archive_flag_spec=
9966 tmp_sharedflag='--shared' ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009967 nagfor*) # NAGFOR 5.3
9968 tmp_sharedflag='-Wl,-shared' ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009969 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009970 tmp_sharedflag='-qmkshrobj'
9971 tmp_addflag= ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009972 nvcc*) # Cuda Compiler Driver 2.2
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009973 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'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009974 compiler_needs_object=yes
9975 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009976 esac
Douglas Gilbert23beedb2022-08-07 02:22:53 +00009977 case `$CC -V 2>&1 | $SED 5q` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009978 *Sun\ C*) # Sun C 5.9
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009979 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009980 compiler_needs_object=yes
9981 tmp_sharedflag='-G' ;;
9982 *Sun\ F*) # Sun Fortran 8.3
9983 tmp_sharedflag='-G' ;;
9984 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009985 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009986
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009987 if test yes = "$supports_anon_versioning"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009988 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Douglas Gilbert23beedb2022-08-07 02:22:53 +00009989 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009990 echo "local: *; };" >> $output_objdir/$libname.ver~
9991 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009992 fi
9993
9994 case $cc_basename in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009995 tcc*)
Douglas Gilbert6d3bd262022-11-01 23:46:24 +00009996 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009997 export_dynamic_flag_spec='-rdynamic'
9998 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009999 xlf* | bgf* | bgxlf* | mpixlf*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010000 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10001 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010002 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010003 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010004 if test yes = "$supports_anon_versioning"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010005 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Douglas Gilbert23beedb2022-08-07 02:22:53 +000010006 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010007 echo "local: *; };" >> $output_objdir/$libname.ver~
10008 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010009 fi
10010 ;;
10011 esac
10012 else
10013 ld_shlibs=no
10014 fi
10015 ;;
10016
Douglas Gilbert6d3bd262022-11-01 23:46:24 +000010017 netbsd* | netbsdelf*-gnu)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010018 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10019 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10020 wlarc=
10021 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10023 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010024 fi
10025 ;;
10026
10027 solaris*)
10028 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10029 ld_shlibs=no
10030 cat <<_LT_EOF 1>&2
10031
10032*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10033*** create shared libraries on Solaris systems. Therefore, libtool
10034*** is disabling shared libraries support. We urge you to upgrade GNU
10035*** binutils to release 2.9.1 or newer. Another option is to modify
10036*** your PATH or compiler configuration so that the native linker is
10037*** used, and then restart.
10038
10039_LT_EOF
10040 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010041 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10042 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010043 else
10044 ld_shlibs=no
10045 fi
10046 ;;
10047
10048 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10049 case `$LD -v 2>&1` in
10050 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10051 ld_shlibs=no
10052 cat <<_LT_EOF 1>&2
10053
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010054*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010055*** reliably create shared libraries on SCO systems. Therefore, libtool
10056*** is disabling shared libraries support. We urge you to upgrade GNU
10057*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10058*** your PATH or compiler configuration so that the native linker is
10059*** used, and then restart.
10060
10061_LT_EOF
10062 ;;
10063 *)
10064 # For security reasons, it is highly recommended that you always
10065 # use absolute paths for naming shared libraries, and exclude the
10066 # DT_RUNPATH tag from executables and libraries. But doing so
10067 # requires that you compile everything twice, which is a pain.
10068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010069 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10071 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010072 else
10073 ld_shlibs=no
10074 fi
10075 ;;
10076 esac
10077 ;;
10078
10079 sunos4*)
10080 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10081 wlarc=
10082 hardcode_direct=yes
10083 hardcode_shlibpath_var=no
10084 ;;
10085
10086 *)
10087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010088 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10089 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010090 else
10091 ld_shlibs=no
10092 fi
10093 ;;
10094 esac
10095
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010096 if test no = "$ld_shlibs"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010097 runpath_var=
10098 hardcode_libdir_flag_spec=
10099 export_dynamic_flag_spec=
10100 whole_archive_flag_spec=
10101 fi
10102 else
10103 # PORTME fill in a description of your system's linker (not GNU ld)
10104 case $host_os in
10105 aix3*)
10106 allow_undefined_flag=unsupported
10107 always_export_symbols=yes
10108 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'
10109 # Note: this linker hardcodes the directories in LIBPATH if there
10110 # are no directories specified by -L.
10111 hardcode_minus_L=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010112 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010113 # Neither direct hardcoding nor static linking is supported with a
10114 # broken collect2.
10115 hardcode_direct=unsupported
10116 fi
10117 ;;
10118
10119 aix[4-9]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010120 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010121 # On IA64, the linker does run time linking by default, so we don't
10122 # have to do anything special.
10123 aix_use_runtimelinking=no
10124 exp_sym_flag='-Bexport'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010125 no_entry_flag=
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010126 else
10127 # If we're using GNU nm, then we don't want the "-C" option.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010128 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10129 # Without the "-l" option, or with the "-B" option, AIX nm treats
10130 # weak defined symbols like other global defined symbols, whereas
10131 # GNU nm marks them as "W".
10132 # While the 'weak' keyword is ignored in the Export File, we need
10133 # it in the Import File for the 'aix-soname' feature, so we have
10134 # to replace the "-B" option with "-P" for AIX nm.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010135 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010136 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010137 else
Douglas Gilbert23beedb2022-08-07 02:22:53 +000010138 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010139 fi
10140 aix_use_runtimelinking=no
10141
10142 # Test if we are trying to use run time linking or normal
10143 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010144 # have runtime linking enabled, and use it for executables.
10145 # For shared libraries, we enable/disable runtime linking
10146 # depending on the kind of the shared library created -
10147 # when "with_aix_soname,aix_use_runtimelinking" is:
10148 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10149 # "aix,yes" lib.so shared, rtl:yes, for executables
10150 # lib.a static archive
10151 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10152 # lib.a(lib.so.V) shared, rtl:no, for executables
10153 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10154 # lib.a(lib.so.V) shared, rtl:no
10155 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10156 # lib.a static archive
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010157 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10158 for ld_flag in $LDFLAGS; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010159 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010160 aix_use_runtimelinking=yes
10161 break
10162 fi
10163 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010164 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10165 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10166 # so we don't have lib.a shared libs to link our executables.
10167 # We have to force runtime linking in this case.
10168 aix_use_runtimelinking=yes
10169 LDFLAGS="$LDFLAGS -Wl,-brtl"
10170 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010171 ;;
10172 esac
10173
10174 exp_sym_flag='-bexport'
10175 no_entry_flag='-bnoentry'
10176 fi
10177
10178 # When large executables or shared objects are built, AIX ld can
10179 # have problems creating the table of contents. If linking a library
10180 # or program results in "error TOC overflow" add -mminimal-toc to
10181 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10182 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10183
10184 archive_cmds=''
10185 hardcode_direct=yes
10186 hardcode_direct_absolute=yes
10187 hardcode_libdir_separator=':'
10188 link_all_deplibs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010189 file_list_spec='$wl-f,'
10190 case $with_aix_soname,$aix_use_runtimelinking in
10191 aix,*) ;; # traditional, no import file
10192 svr4,* | *,yes) # use import file
10193 # The Import File defines what to hardcode.
10194 hardcode_direct=no
10195 hardcode_direct_absolute=no
10196 ;;
10197 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010198
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010199 if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010200 case $host_os in aix4.[012]|aix4.[012].*)
10201 # We only want to do this on AIX 4.2 and lower, the check
10202 # below for broken collect2 doesn't work under 4.3+
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010203 collect2name=`$CC -print-prog-name=collect2`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010204 if test -f "$collect2name" &&
10205 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10206 then
10207 # We have reworked collect2
10208 :
10209 else
10210 # We have old collect2
10211 hardcode_direct=unsupported
10212 # It fails to find uninstalled libraries when the uninstalled
10213 # path is not listed in the libpath. Setting hardcode_minus_L
10214 # to unsupported forces relinking
10215 hardcode_minus_L=yes
10216 hardcode_libdir_flag_spec='-L$libdir'
10217 hardcode_libdir_separator=
10218 fi
10219 ;;
10220 esac
10221 shared_flag='-shared'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010222 if test yes = "$aix_use_runtimelinking"; then
10223 shared_flag="$shared_flag "'$wl-G'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010224 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010225 # Need to ensure runtime linking is disabled for the traditional
10226 # shared library, or the linker may eventually find shared libraries
10227 # /with/ Import File - we do not want to mix them.
10228 shared_flag_aix='-shared'
10229 shared_flag_svr4='-shared $wl-G'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010230 else
10231 # not using gcc
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010232 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010233 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10234 # chokes on -Wl,-G. The following line is correct:
10235 shared_flag='-G'
10236 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010237 if test yes = "$aix_use_runtimelinking"; then
10238 shared_flag='$wl-G'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010239 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010240 shared_flag='$wl-bM:SRE'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010241 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010242 shared_flag_aix='$wl-bM:SRE'
10243 shared_flag_svr4='$wl-G'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010244 fi
10245 fi
10246
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010247 export_dynamic_flag_spec='$wl-bexpall'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010248 # It seems that -bexpall does not export symbols beginning with
10249 # underscore (_), so it is better to generate a list of symbols to export.
10250 always_export_symbols=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010251 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010252 # Warning - without using the other runtime loading flags (-brtl),
10253 # -berok will link without error, but may produce a broken library.
10254 allow_undefined_flag='-berok'
10255 # Determine the default libpath from the value encoded in an
10256 # empty executable.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010257 if test set = "${lt_cv_aix_libpath+set}"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000010258 aix_libpath=$lt_cv_aix_libpath
10259else
Douglas Gilbert891844a2022-04-24 18:11:56 +000010260 if test ${lt_cv_aix_libpath_+y}
10261then :
10262 printf %s "(cached) " >&6
10263else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +000010264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010265/* end confdefs.h. */
10266
10267int
Douglas Gilbert891844a2022-04-24 18:11:56 +000010268main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010269{
10270
10271 ;
10272 return 0;
10273}
10274_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +000010275if ac_fn_c_try_link "$LINENO"
10276then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010277
Douglas Gilbertc978e062011-12-06 21:50:07 +000010278 lt_aix_libpath_sed='
10279 /Import File Strings/,/^$/ {
10280 /^0/ {
10281 s/^0 *\([^ ]*\) *$/\1/
10282 p
10283 }
10284 }'
10285 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10286 # Check for a 64-bit object if we didn't find anything.
10287 if test -z "$lt_cv_aix_libpath_"; then
10288 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10289 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010290fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000010291rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010292 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +000010293 if test -z "$lt_cv_aix_libpath_"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010294 lt_cv_aix_libpath_=/usr/lib:/lib
Douglas Gilbertc978e062011-12-06 21:50:07 +000010295 fi
10296
10297fi
10298
10299 aix_libpath=$lt_cv_aix_libpath_
10300fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010301
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010302 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10303 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
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010304 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010305 if test ia64 = "$host_cpu"; then
10306 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010307 allow_undefined_flag="-z nodefs"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010308 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"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010309 else
10310 # Determine the default libpath from the value encoded in an
10311 # empty executable.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010312 if test set = "${lt_cv_aix_libpath+set}"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000010313 aix_libpath=$lt_cv_aix_libpath
10314else
Douglas Gilbert891844a2022-04-24 18:11:56 +000010315 if test ${lt_cv_aix_libpath_+y}
10316then :
10317 printf %s "(cached) " >&6
10318else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +000010319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010320/* end confdefs.h. */
10321
10322int
Douglas Gilbert891844a2022-04-24 18:11:56 +000010323main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010324{
10325
10326 ;
10327 return 0;
10328}
10329_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +000010330if ac_fn_c_try_link "$LINENO"
10331then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010332
Douglas Gilbertc978e062011-12-06 21:50:07 +000010333 lt_aix_libpath_sed='
10334 /Import File Strings/,/^$/ {
10335 /^0/ {
10336 s/^0 *\([^ ]*\) *$/\1/
10337 p
10338 }
10339 }'
10340 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10341 # Check for a 64-bit object if we didn't find anything.
10342 if test -z "$lt_cv_aix_libpath_"; then
10343 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10344 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010345fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000010346rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010347 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +000010348 if test -z "$lt_cv_aix_libpath_"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010349 lt_cv_aix_libpath_=/usr/lib:/lib
Douglas Gilbertc978e062011-12-06 21:50:07 +000010350 fi
10351
10352fi
10353
10354 aix_libpath=$lt_cv_aix_libpath_
10355fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010356
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010357 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010358 # Warning - without using the other run time loading flags,
10359 # -berok will link without error, but may produce a broken library.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010360 no_undefined_flag=' $wl-bernotok'
10361 allow_undefined_flag=' $wl-berok'
10362 if test yes = "$with_gnu_ld"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000010363 # We only use this code for GNU lds that support --whole-archive.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010364 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010365 else
10366 # Exported symbols can be pulled into shared objects from archives
10367 whole_archive_flag_spec='$convenience'
10368 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010369 archive_cmds_need_lc=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010370 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10371 # -brtl affects multiple linker settings, -berok does not and is overridden later
10372 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10373 if test svr4 != "$with_aix_soname"; then
10374 # This is similar to how AIX traditionally builds its shared libraries.
10375 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'
10376 fi
10377 if test aix != "$with_aix_soname"; then
10378 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'
10379 else
10380 # used by -dlpreopen to get the symbols
10381 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10382 fi
10383 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010384 fi
10385 fi
10386 ;;
10387
10388 amigaos*)
10389 case $host_cpu in
10390 powerpc)
10391 # see comment about AmigaOS4 .so support
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010393 archive_expsym_cmds=''
10394 ;;
10395 m68k)
10396 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)'
10397 hardcode_libdir_flag_spec='-L$libdir'
10398 hardcode_minus_L=yes
10399 ;;
10400 esac
10401 ;;
10402
10403 bsdi[45]*)
10404 export_dynamic_flag_spec=-rdynamic
10405 ;;
10406
10407 cygwin* | mingw* | pw32* | cegcc*)
10408 # When not using gcc, we currently assume that we are using
Douglas Gilbert23beedb2022-08-07 02:22:53 +000010409 # Microsoft Visual C++ or Intel C++ Compiler.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010410 # hardcode_libdir_flag_spec is actually meaningless, as there is
10411 # no search path for DLLs.
Douglas Gilbertc978e062011-12-06 21:50:07 +000010412 case $cc_basename in
Douglas Gilbert23beedb2022-08-07 02:22:53 +000010413 cl* | icl*)
10414 # Native MSVC or ICC
Douglas Gilbertc978e062011-12-06 21:50:07 +000010415 hardcode_libdir_flag_spec=' '
10416 allow_undefined_flag=unsupported
10417 always_export_symbols=yes
10418 file_list_spec='@'
10419 # Tell ltmain to make .lib files, not .a files.
10420 libext=lib
10421 # Tell ltmain to make .dll files, not .so files.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010422 shrext_cmds=.dll
Douglas Gilbertc978e062011-12-06 21:50:07 +000010423 # FIXME: Setting linknames here is a bad hack.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010424 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10425 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10426 cp "$export_symbols" "$output_objdir/$soname.def";
10427 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10428 else
10429 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10430 fi~
10431 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10432 linknames='
Douglas Gilbertc978e062011-12-06 21:50:07 +000010433 # The linker will not automatically build a static lib if we build a DLL.
10434 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10435 enable_shared_with_static_runtimes=yes
Douglas Gilbert63918a92012-09-08 03:20:30 +000010436 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010437 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10438 # Don't use ranlib
10439 old_postinstall_cmds='chmod 644 $oldlib'
10440 postlink_cmds='lt_outputfile="@OUTPUT@"~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010441 lt_tool_outputfile="@TOOL_OUTPUT@"~
10442 case $lt_outputfile in
10443 *.exe|*.EXE) ;;
10444 *)
10445 lt_outputfile=$lt_outputfile.exe
10446 lt_tool_outputfile=$lt_tool_outputfile.exe
10447 ;;
10448 esac~
10449 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10450 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10451 $RM "$lt_outputfile.manifest";
10452 fi'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010453 ;;
10454 *)
Douglas Gilbert23beedb2022-08-07 02:22:53 +000010455 # Assume MSVC and ICC wrapper
Douglas Gilbertc978e062011-12-06 21:50:07 +000010456 hardcode_libdir_flag_spec=' '
10457 allow_undefined_flag=unsupported
10458 # Tell ltmain to make .lib files, not .a files.
10459 libext=lib
10460 # Tell ltmain to make .dll files, not .so files.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010461 shrext_cmds=.dll
Douglas Gilbertc978e062011-12-06 21:50:07 +000010462 # FIXME: Setting linknames here is a bad hack.
10463 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10464 # The linker will automatically build a .lib file if we build a DLL.
10465 old_archive_from_new_cmds='true'
10466 # FIXME: Should let the user specify the lib program.
10467 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10468 enable_shared_with_static_runtimes=yes
10469 ;;
10470 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010471 ;;
10472
10473 darwin* | rhapsody*)
10474
10475
10476 archive_cmds_need_lc=no
10477 hardcode_direct=no
10478 hardcode_automatic=yes
10479 hardcode_shlibpath_var=unsupported
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010480 if test yes = "$lt_cv_ld_force_load"; then
10481 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\"`'
Douglas Gilbert63918a92012-09-08 03:20:30 +000010482
Douglas Gilbertc978e062011-12-06 21:50:07 +000010483 else
10484 whole_archive_flag_spec=''
10485 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010486 link_all_deplibs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010487 allow_undefined_flag=$_lt_dar_allow_undefined
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010488 case $cc_basename in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010489 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010490 *) _lt_dar_can_shared=$GCC ;;
10491 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010492 if test yes = "$_lt_dar_can_shared"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000010493 output_verbose_link_cmd=func_echo_all
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010494 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10495 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
Douglas Gilbert23beedb2022-08-07 02:22:53 +000010496 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"
10497 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"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010498
10499 else
10500 ld_shlibs=no
10501 fi
10502
10503 ;;
10504
10505 dgux*)
10506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10507 hardcode_libdir_flag_spec='-L$libdir'
10508 hardcode_shlibpath_var=no
10509 ;;
10510
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10512 # support. Future versions do this automatically, but an explicit c++rt0.o
10513 # does not break anything, and helps significantly (at the cost of a little
10514 # extra space).
10515 freebsd2.2*)
10516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10517 hardcode_libdir_flag_spec='-R$libdir'
10518 hardcode_direct=yes
10519 hardcode_shlibpath_var=no
10520 ;;
10521
10522 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Douglas Gilbert63918a92012-09-08 03:20:30 +000010523 freebsd2.*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10525 hardcode_direct=yes
10526 hardcode_minus_L=yes
10527 hardcode_shlibpath_var=no
10528 ;;
10529
10530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Douglas Gilbert23beedb2022-08-07 02:22:53 +000010531 freebsd* | dragonfly* | midnightbsd*)
Douglas Gilbertc978e062011-12-06 21:50:07 +000010532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010533 hardcode_libdir_flag_spec='-R$libdir'
10534 hardcode_direct=yes
10535 hardcode_shlibpath_var=no
10536 ;;
10537
10538 hpux9*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010539 if test yes = "$GCC"; then
10540 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010541 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010542 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010543 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010544 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010545 hardcode_libdir_separator=:
10546 hardcode_direct=yes
10547
10548 # hardcode_minus_L: Not really in the search PATH,
10549 # but as the default location of the library.
10550 hardcode_minus_L=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010551 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010552 ;;
10553
10554 hpux10*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010555 if test yes,no = "$GCC,$with_gnu_ld"; then
10556 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010557 else
10558 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10559 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010560 if test no = "$with_gnu_ld"; then
10561 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010562 hardcode_libdir_separator=:
10563 hardcode_direct=yes
10564 hardcode_direct_absolute=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010565 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010566 # hardcode_minus_L: Not really in the search PATH,
10567 # but as the default location of the library.
10568 hardcode_minus_L=yes
10569 fi
10570 ;;
10571
10572 hpux11*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010573 if test yes,no = "$GCC,$with_gnu_ld"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010574 case $host_cpu in
10575 hppa*64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010576 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010577 ;;
10578 ia64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010579 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010580 ;;
10581 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010582 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010583 ;;
10584 esac
10585 else
10586 case $host_cpu in
10587 hppa*64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010588 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010589 ;;
10590 ia64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010591 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010592 ;;
10593 *)
Douglas Gilbertc978e062011-12-06 21:50:07 +000010594
10595 # Older versions of the 11.00 compiler do not understand -b yet
10596 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
Douglas Gilbert891844a2022-04-24 18:11:56 +000010597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10598printf %s "checking if $CC understands -b... " >&6; }
10599if test ${lt_cv_prog_compiler__b+y}
10600then :
10601 printf %s "(cached) " >&6
10602else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +000010603 lt_cv_prog_compiler__b=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010604 save_LDFLAGS=$LDFLAGS
Douglas Gilbertc978e062011-12-06 21:50:07 +000010605 LDFLAGS="$LDFLAGS -b"
10606 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10607 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10608 # The linker can only warn and ignore the option if not recognized
10609 # So say no if there are warnings
10610 if test -s conftest.err; then
10611 # Append any errors to the config.log.
10612 cat conftest.err 1>&5
10613 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10615 if diff conftest.exp conftest.er2 >/dev/null; then
10616 lt_cv_prog_compiler__b=yes
10617 fi
10618 else
10619 lt_cv_prog_compiler__b=yes
10620 fi
10621 fi
10622 $RM -r conftest*
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010623 LDFLAGS=$save_LDFLAGS
Douglas Gilbertc978e062011-12-06 21:50:07 +000010624
10625fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000010626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10627printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010628
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010629if test yes = "$lt_cv_prog_compiler__b"; then
10630 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010631else
10632 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10633fi
10634
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010635 ;;
10636 esac
10637 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010638 if test no = "$with_gnu_ld"; then
10639 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010640 hardcode_libdir_separator=:
10641
10642 case $host_cpu in
10643 hppa*64*|ia64*)
10644 hardcode_direct=no
10645 hardcode_shlibpath_var=no
10646 ;;
10647 *)
10648 hardcode_direct=yes
10649 hardcode_direct_absolute=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010650 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010651
10652 # hardcode_minus_L: Not really in the search PATH,
10653 # but as the default location of the library.
10654 hardcode_minus_L=yes
10655 ;;
10656 esac
10657 fi
10658 ;;
10659
10660 irix5* | irix6* | nonstopux*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010661 if test yes = "$GCC"; then
10662 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010663 # Try to use the -exported_symbol ld option, if it does not
10664 # work, assume that -exports_file does not work either and
10665 # implicitly export all symbols.
Douglas Gilbertc978e062011-12-06 21:50:07 +000010666 # This should be the same for all languages, so no per-tag cache variable.
Douglas Gilbert891844a2022-04-24 18:11:56 +000010667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10668printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10669if test ${lt_cv_irix_exported_symbol+y}
10670then :
10671 printf %s "(cached) " >&6
10672else $as_nop
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010673 save_LDFLAGS=$LDFLAGS
10674 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Douglas Gilbertc978e062011-12-06 21:50:07 +000010675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010676/* end confdefs.h. */
Douglas Gilbertc978e062011-12-06 21:50:07 +000010677int foo (void) { return 0; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010678_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +000010679if ac_fn_c_try_link "$LINENO"
10680then :
Douglas Gilbertc978e062011-12-06 21:50:07 +000010681 lt_cv_irix_exported_symbol=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +000010682else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +000010683 lt_cv_irix_exported_symbol=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010684fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000010685rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010686 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010687 LDFLAGS=$save_LDFLAGS
Douglas Gilbertc978e062011-12-06 21:50:07 +000010688fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000010689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10690printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010691 if test yes = "$lt_cv_irix_exported_symbol"; then
10692 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'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010693 fi
Douglas Gilbert6d3bd262022-11-01 23:46:24 +000010694 link_all_deplibs=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010695 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010696 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'
10697 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010698 fi
10699 archive_cmds_need_lc='no'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010700 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010701 hardcode_libdir_separator=:
10702 inherit_rpath=yes
10703 link_all_deplibs=yes
10704 ;;
10705
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010706 linux*)
10707 case $cc_basename in
10708 tcc*)
10709 # Fabrice Bellard et al's Tiny C Compiler
10710 ld_shlibs=yes
10711 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert6d3bd262022-11-01 23:46:24 +000010712 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010713 ;;
10714 esac
10715 ;;
10716
Douglas Gilbert6d3bd262022-11-01 23:46:24 +000010717 netbsd* | netbsdelf*-gnu)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10720 else
10721 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10722 fi
10723 hardcode_libdir_flag_spec='-R$libdir'
10724 hardcode_direct=yes
10725 hardcode_shlibpath_var=no
10726 ;;
10727
10728 newsos6)
10729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10730 hardcode_direct=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010731 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010732 hardcode_libdir_separator=:
10733 hardcode_shlibpath_var=no
10734 ;;
10735
10736 *nto* | *qnx*)
10737 ;;
10738
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010739 openbsd* | bitrig*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010740 if test -f /usr/libexec/ld.so; then
10741 hardcode_direct=yes
10742 hardcode_shlibpath_var=no
10743 hardcode_direct_absolute=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010745 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010746 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10747 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10748 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010749 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10751 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010752 fi
10753 else
10754 ld_shlibs=no
10755 fi
10756 ;;
10757
10758 os2*)
10759 hardcode_libdir_flag_spec='-L$libdir'
10760 hardcode_minus_L=yes
10761 allow_undefined_flag=unsupported
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010762 shrext_cmds=.dll
10763 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10764 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10765 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10766 $ECHO EXPORTS >> $output_objdir/$libname.def~
10767 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10768 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10769 emximp -o $lib $output_objdir/$libname.def'
10770 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10771 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10772 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10773 $ECHO EXPORTS >> $output_objdir/$libname.def~
10774 prefix_cmds="$SED"~
10775 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10776 prefix_cmds="$prefix_cmds -e 1d";
10777 fi~
10778 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10779 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10780 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10781 emximp -o $lib $output_objdir/$libname.def'
10782 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10783 enable_shared_with_static_runtimes=yes
Douglas Gilbert23beedb2022-08-07 02:22:53 +000010784 file_list_spec='@'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010785 ;;
10786
10787 osf3*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010788 if test yes = "$GCC"; then
10789 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10790 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010791 else
10792 allow_undefined_flag=' -expect_unresolved \*'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010793 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010794 fi
10795 archive_cmds_need_lc='no'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010796 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010797 hardcode_libdir_separator=:
10798 ;;
10799
10800 osf4* | osf5*) # as osf3* with the addition of -msym flag
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010801 if test yes = "$GCC"; then
10802 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10803 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'
10804 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010805 else
10806 allow_undefined_flag=' -expect_unresolved \*'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010807 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010808 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~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010809 $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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010810
10811 # Both c and cxx compiler support -rpath directly
10812 hardcode_libdir_flag_spec='-rpath $libdir'
10813 fi
10814 archive_cmds_need_lc='no'
10815 hardcode_libdir_separator=:
10816 ;;
10817
10818 solaris*)
10819 no_undefined_flag=' -z defs'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010820 if test yes = "$GCC"; then
10821 wlarc='$wl'
10822 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010824 $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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010825 else
10826 case `$CC -V 2>&1` in
10827 *"Compilers 5.0"*)
10828 wlarc=''
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010829 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010831 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010832 ;;
10833 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010834 wlarc='$wl'
10835 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010837 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010838 ;;
10839 esac
10840 fi
10841 hardcode_libdir_flag_spec='-R$libdir'
10842 hardcode_shlibpath_var=no
10843 case $host_os in
10844 solaris2.[0-5] | solaris2.[0-5].*) ;;
10845 *)
10846 # The compiler driver will combine and reorder linker options,
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010847 # but understands '-z linker_flag'. GCC discards it without '$wl',
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010848 # but is careful enough not to reorder.
10849 # Supported since Solaris 2.6 (maybe 2.5.1?)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010850 if test yes = "$GCC"; then
10851 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010852 else
10853 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10854 fi
10855 ;;
10856 esac
10857 link_all_deplibs=yes
10858 ;;
10859
10860 sunos4*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010861 if test sequent = "$host_vendor"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010862 # Use $CC to link under sequent, because it throws in some extra .o
10863 # files that make .init and .fini sections work.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010864 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010865 else
10866 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10867 fi
10868 hardcode_libdir_flag_spec='-L$libdir'
10869 hardcode_direct=yes
10870 hardcode_minus_L=yes
10871 hardcode_shlibpath_var=no
10872 ;;
10873
10874 sysv4)
10875 case $host_vendor in
10876 sni)
10877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10878 hardcode_direct=yes # is this really true???
10879 ;;
10880 siemens)
10881 ## LD is ld it makes a PLAMLIB
10882 ## CC just makes a GrossModule.
10883 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10884 reload_cmds='$CC -r -o $output$reload_objs'
10885 hardcode_direct=no
10886 ;;
10887 motorola)
10888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10889 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10890 ;;
10891 esac
10892 runpath_var='LD_RUN_PATH'
10893 hardcode_shlibpath_var=no
10894 ;;
10895
10896 sysv4.3*)
10897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10898 hardcode_shlibpath_var=no
10899 export_dynamic_flag_spec='-Bexport'
10900 ;;
10901
10902 sysv4*MP*)
10903 if test -d /usr/nec; then
10904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905 hardcode_shlibpath_var=no
10906 runpath_var=LD_RUN_PATH
10907 hardcode_runpath_var=yes
10908 ld_shlibs=yes
10909 fi
10910 ;;
10911
10912 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010913 no_undefined_flag='$wl-z,text'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010914 archive_cmds_need_lc=no
10915 hardcode_shlibpath_var=no
10916 runpath_var='LD_RUN_PATH'
10917
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010918 if test yes = "$GCC"; then
10919 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10920 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010921 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010922 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010924 fi
10925 ;;
10926
10927 sysv5* | sco3.2v5* | sco5v6*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010928 # Note: We CANNOT use -z defs as we might desire, because we do not
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010929 # link with -lc, and that would cause any symbols used from libc to
10930 # always be unresolved, which means just about no library would
10931 # ever link correctly. If we're not using GNU ld we use -z text
10932 # though, which does catch some bad symbols but isn't as heavy-handed
10933 # as -z defs.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010934 no_undefined_flag='$wl-z,text'
10935 allow_undefined_flag='$wl-z,nodefs'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010936 archive_cmds_need_lc=no
10937 hardcode_shlibpath_var=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010938 hardcode_libdir_flag_spec='$wl-R,$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010939 hardcode_libdir_separator=':'
10940 link_all_deplibs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010941 export_dynamic_flag_spec='$wl-Bexport'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010942 runpath_var='LD_RUN_PATH'
10943
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010944 if test yes = "$GCC"; then
10945 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010947 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010948 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010950 fi
10951 ;;
10952
10953 uts4*)
10954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10955 hardcode_libdir_flag_spec='-L$libdir'
10956 hardcode_shlibpath_var=no
10957 ;;
10958
10959 *)
10960 ld_shlibs=no
10961 ;;
10962 esac
10963
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010964 if test sni = "$host_vendor"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010965 case $host in
10966 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010967 export_dynamic_flag_spec='$wl-Blargedynsym'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010968 ;;
10969 esac
10970 fi
10971 fi
10972
Douglas Gilbert891844a2022-04-24 18:11:56 +000010973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10974printf "%s\n" "$ld_shlibs" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010975test no = "$ld_shlibs" && can_build_shared=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010976
10977with_gnu_ld=$with_gnu_ld
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993#
10994# Do we need to explicitly link libc?
10995#
10996case "x$archive_cmds_need_lc" in
10997x|xyes)
10998 # Assume -lc should be added
10999 archive_cmds_need_lc=yes
11000
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011001 if test yes,yes = "$GCC,$enable_shared"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011002 case $archive_cmds in
11003 *'~'*)
11004 # FIXME: we may have to deal with multi-command sequences.
11005 ;;
11006 '$CC '*)
11007 # Test whether the compiler implicitly links with -lc since on some
11008 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11009 # to ld, don't add -lc before -lgcc.
Douglas Gilbert891844a2022-04-24 18:11:56 +000011010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11011printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11012if test ${lt_cv_archive_cmds_need_lc+y}
11013then :
11014 printf %s "(cached) " >&6
11015else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +000011016 $RM conftest*
11017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011018
Douglas Gilbertc978e062011-12-06 21:50:07 +000011019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011020 (eval $ac_compile) 2>&5
11021 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +000011022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011023 test $ac_status = 0; } 2>conftest.err; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000011024 soname=conftest
11025 lib=conftest
11026 libobjs=conftest.$ac_objext
11027 deplibs=
11028 wl=$lt_prog_compiler_wl
11029 pic_flag=$lt_prog_compiler_pic
11030 compiler_flags=-v
11031 linker_flags=-v
11032 verstring=
11033 output_objdir=.
11034 libname=conftest
11035 lt_save_allow_undefined_flag=$allow_undefined_flag
11036 allow_undefined_flag=
11037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011038 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11039 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +000011040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011041 test $ac_status = 0; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011042 then
11043 lt_cv_archive_cmds_need_lc=no
11044 else
11045 lt_cv_archive_cmds_need_lc=yes
11046 fi
11047 allow_undefined_flag=$lt_save_allow_undefined_flag
11048 else
11049 cat conftest.err 1>&5
11050 fi
11051 $RM conftest*
11052
11053fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000011054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11055printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011056 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011057 ;;
11058 esac
11059 fi
11060 ;;
11061esac
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
Douglas Gilbert891844a2022-04-24 18:11:56 +000011214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11215printf %s "checking dynamic linker characteristics... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011216
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011217if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011218 case $host_os in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011219 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11220 *) lt_awk_arg='/^libraries:/' ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011221 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +000011222 case $host_os in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011223 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11224 *) lt_sed_strip_eq='s|=/|/|g' ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +000011225 esac
11226 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11227 case $lt_search_path_spec in
11228 *\;*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011229 # if the path contains ";" then we assume it to be the separator
11230 # otherwise default to the standard path separator (i.e. ":") - it is
11231 # assumed that no part of a normal pathname contains ";" but that should
11232 # okay in the real world where ";" in dirpaths is itself problematic.
Douglas Gilbertc978e062011-12-06 21:50:07 +000011233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11234 ;;
11235 *)
11236 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11237 ;;
11238 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011239 # Ok, now we have the path, separated by spaces, we can step through it
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011240 # and add multilib dir if necessary...
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011241 lt_tmp_lt_search_path_spec=
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011242 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11243 # ...but if some path component already ends with the multilib dir we assume
11244 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11245 case "$lt_multi_os_dir; $lt_search_path_spec " in
11246 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11247 lt_multi_os_dir=
11248 ;;
11249 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011250 for lt_sys_path in $lt_search_path_spec; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011251 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11252 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11253 elif test -n "$lt_multi_os_dir"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011254 test -d "$lt_sys_path" && \
11255 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11256 fi
11257 done
Douglas Gilbertc978e062011-12-06 21:50:07 +000011258 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011259BEGIN {RS = " "; FS = "/|\n";} {
11260 lt_foo = "";
11261 lt_count = 0;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011262 for (lt_i = NF; lt_i > 0; lt_i--) {
11263 if ($lt_i != "" && $lt_i != ".") {
11264 if ($lt_i == "..") {
11265 lt_count++;
11266 } else {
11267 if (lt_count == 0) {
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011268 lt_foo = "/" $lt_i lt_foo;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011269 } else {
11270 lt_count--;
11271 }
11272 }
11273 }
11274 }
11275 if (lt_foo != "") { lt_freq[lt_foo]++; }
11276 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11277}'`
Douglas Gilbertc978e062011-12-06 21:50:07 +000011278 # AWK program above erroneously prepends '/' to C:/dos/paths
11279 # for these hosts.
11280 case $host_os in
11281 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011282 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +000011283 esac
11284 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011285else
11286 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11287fi
11288library_names_spec=
11289libname_spec='lib$name'
11290soname_spec=
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011291shrext_cmds=.so
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011292postinstall_cmds=
11293postuninstall_cmds=
11294finish_cmds=
11295finish_eval=
11296shlibpath_var=
11297shlibpath_overrides_runpath=unknown
11298version_type=none
11299dynamic_linker="$host_os ld.so"
11300sys_lib_dlsearch_path_spec="/lib /usr/lib"
11301need_lib_prefix=unknown
11302hardcode_into_libs=no
11303
11304# when you set need_version to no, make sure it does not cause -set_version
11305# flags to be left without arguments
11306need_version=unknown
11307
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011308
11309
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011310case $host_os in
11311aix3*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011312 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011313 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011314 shlibpath_var=LIBPATH
11315
11316 # AIX 3 has no versioning support, so we append a major version to the name.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011317 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011318 ;;
11319
11320aix[4-9]*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011321 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011322 need_lib_prefix=no
11323 need_version=no
11324 hardcode_into_libs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011325 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011326 # AIX 5 supports IA64
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011327 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011328 shlibpath_var=LD_LIBRARY_PATH
11329 else
11330 # With GCC up to 2.95.x, collect2 would create an import file
11331 # for dependence libraries. The import file would start with
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011332 # the line '#! .'. This would cause the generated library to
11333 # depend on '.', always an invalid library. This was fixed in
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011334 # development snapshots of GCC prior to 3.0.
11335 case $host_os in
11336 aix4 | aix4.[01] | aix4.[01].*)
11337 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11338 echo ' yes '
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011339 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011340 :
11341 else
11342 can_build_shared=no
11343 fi
11344 ;;
11345 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011346 # Using Import Files as archive members, it is possible to support
11347 # filename-based versioning of shared library archives on AIX. While
11348 # this would work for both with and without runtime linking, it will
11349 # prevent static linking of such archives. So we do filename-based
11350 # shared library versioning with .so extension only, which is used
11351 # when both runtime linking and shared linking is enabled.
11352 # Unfortunately, runtime linking may impact performance, so we do
11353 # not want this to be the default eventually. Also, we use the
11354 # versioned .so libs for executables only if there is the -brtl
11355 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11356 # To allow for filename-based versioning support, we need to create
11357 # libNAME.so.V as an archive file, containing:
11358 # *) an Import File, referring to the versioned filename of the
11359 # archive as well as the shared archive member, telling the
11360 # bitwidth (32 or 64) of that shared object, and providing the
11361 # list of exported symbols of that shared object, eventually
11362 # decorated with the 'weak' keyword
11363 # *) the shared object with the F_LOADONLY flag set, to really avoid
11364 # it being seen by the linker.
11365 # At run time we better use the real file rather than another symlink,
11366 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11367
11368 case $with_aix_soname,$aix_use_runtimelinking in
11369 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011370 # soname into executable. Probably we can add versioning support to
11371 # collect2, so additional links can be useful in future.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011372 aix,yes) # traditional libtool
11373 dynamic_linker='AIX unversionable lib.so'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011374 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11375 # instead of lib<name>.a to let people know that these are not
11376 # typical AIX shared libraries.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11378 ;;
11379 aix,no) # traditional AIX only
11380 dynamic_linker='AIX lib.a(lib.so.V)'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011381 # We preserve .a as extension for shared libraries through AIX4.2
11382 # and later when we are not doing run time linking.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011383 library_names_spec='$libname$release.a $libname.a'
11384 soname_spec='$libname$release$shared_ext$major'
11385 ;;
11386 svr4,*) # full svr4 only
11387 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11388 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11389 # We do not specify a path in Import Files, so LIBPATH fires.
11390 shlibpath_overrides_runpath=yes
11391 ;;
11392 *,yes) # both, prefer svr4
11393 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11394 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11395 # unpreferred sharedlib libNAME.a needs extra handling
11396 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"'
11397 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"'
11398 # We do not specify a path in Import Files, so LIBPATH fires.
11399 shlibpath_overrides_runpath=yes
11400 ;;
11401 *,no) # both, prefer aix
11402 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11403 library_names_spec='$libname$release.a $libname.a'
11404 soname_spec='$libname$release$shared_ext$major'
11405 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11406 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)'
11407 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"'
11408 ;;
11409 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011410 shlibpath_var=LIBPATH
11411 fi
11412 ;;
11413
11414amigaos*)
11415 case $host_cpu in
11416 powerpc)
11417 # Since July 2007 AmigaOS4 officially supports .so libraries.
11418 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011420 ;;
11421 m68k)
11422 library_names_spec='$libname.ixlibrary $libname.a'
11423 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011424 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011425 ;;
11426 esac
11427 ;;
11428
11429beos*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011430 library_names_spec='$libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011431 dynamic_linker="$host_os ld.so"
11432 shlibpath_var=LIBRARY_PATH
11433 ;;
11434
11435bsdi[45]*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011436 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011437 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11439 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011440 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11443 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11444 # the default ld.so.conf also contains /usr/contrib/lib and
11445 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11446 # libtool to hard-code these into programs
11447 ;;
11448
11449cygwin* | mingw* | pw32* | cegcc*)
11450 version_type=windows
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011451 shrext_cmds=.dll
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011452 need_version=no
11453 need_lib_prefix=no
11454
Douglas Gilbertc978e062011-12-06 21:50:07 +000011455 case $GCC,$cc_basename in
11456 yes,*)
11457 # gcc
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011458 library_names_spec='$libname.dll.a'
11459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011460 postinstall_cmds='base_file=`basename \$file`~
11461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011462 dldir=$destdir/`dirname \$dlpath`~
11463 test -d \$dldir || mkdir -p \$dldir~
11464 $install_prog $dir/$dlname \$dldir/$dlname~
11465 chmod a+x \$dldir/$dlname~
11466 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11467 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11468 fi'
11469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11470 dlpath=$dir/\$dldll~
11471 $RM \$dlpath'
11472 shlibpath_overrides_runpath=yes
11473
11474 case $host_os in
11475 cygwin*)
11476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Douglas Gilbert23beedb2022-08-07 02:22:53 +000011477 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Douglas Gilbertc978e062011-12-06 21:50:07 +000011478
11479 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011480 ;;
11481 mingw* | cegcc*)
11482 # MinGW DLLs use traditional 'lib' prefix
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011483 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011484 ;;
11485 pw32*)
11486 # pw32 DLLs use 'pw' prefix rather than 'lib'
Douglas Gilbert23beedb2022-08-07 02:22:53 +000011487 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011488 ;;
11489 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +000011490 dynamic_linker='Win32 ld.exe'
11491 ;;
11492
Douglas Gilbert23beedb2022-08-07 02:22:53 +000011493 *,cl* | *,icl*)
11494 # Native MSVC or ICC
Douglas Gilbertc978e062011-12-06 21:50:07 +000011495 libname_spec='$name'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011496 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11497 library_names_spec='$libname.dll.lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +000011498
11499 case $build_os in
11500 mingw*)
11501 sys_lib_search_path_spec=
11502 lt_save_ifs=$IFS
11503 IFS=';'
11504 for lt_path in $LIB
11505 do
11506 IFS=$lt_save_ifs
11507 # Let DOS variable expansion print the short 8.3 style file name.
11508 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11509 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11510 done
11511 IFS=$lt_save_ifs
11512 # Convert to MSYS style.
Douglas Gilbert23beedb2022-08-07 02:22:53 +000011513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
Douglas Gilbertc978e062011-12-06 21:50:07 +000011514 ;;
11515 cygwin*)
11516 # Convert to unix form, then to dos form, then back to unix form
11517 # but this time dos style (no spaces!) so that the unix form looks
11518 # like /cygdrive/c/PROGRA~1:/cygdr...
11519 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11520 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11521 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11522 ;;
11523 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011524 sys_lib_search_path_spec=$LIB
Douglas Gilbertc978e062011-12-06 21:50:07 +000011525 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11526 # It is most probably a Windows format PATH.
11527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11528 else
11529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11530 fi
11531 # FIXME: find the short name or the path components, as spaces are
11532 # common. (e.g. "Program Files" -> "PROGRA~1")
11533 ;;
11534 esac
11535
11536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011537 postinstall_cmds='base_file=`basename \$file`~
11538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Douglas Gilbertc978e062011-12-06 21:50:07 +000011539 dldir=$destdir/`dirname \$dlpath`~
11540 test -d \$dldir || mkdir -p \$dldir~
11541 $install_prog $dir/$dlname \$dldir/$dlname'
11542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11543 dlpath=$dir/\$dldll~
11544 $RM \$dlpath'
11545 shlibpath_overrides_runpath=yes
11546 dynamic_linker='Win32 link.exe'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011547 ;;
11548
11549 *)
Douglas Gilbert23beedb2022-08-07 02:22:53 +000011550 # Assume MSVC and ICC wrapper
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011551 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +000011552 dynamic_linker='Win32 ld.exe'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011553 ;;
11554 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011555 # FIXME: first we should search . and the directory the executable is in
11556 shlibpath_var=PATH
11557 ;;
11558
11559darwin* | rhapsody*)
11560 dynamic_linker="$host_os dyld"
11561 version_type=darwin
11562 need_lib_prefix=no
11563 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011564 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11565 soname_spec='$libname$release$major$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011566 shlibpath_overrides_runpath=yes
11567 shlibpath_var=DYLD_LIBRARY_PATH
11568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11569
11570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11572 ;;
11573
11574dgux*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011575 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011576 need_lib_prefix=no
11577 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11579 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011580 shlibpath_var=LD_LIBRARY_PATH
11581 ;;
11582
Douglas Gilbert23beedb2022-08-07 02:22:53 +000011583freebsd* | dragonfly* | midnightbsd*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011584 # DragonFly does not have aout. When/if they implement a new
11585 # versioning mechanism, adjust this.
11586 if test -x /usr/bin/objformat; then
11587 objformat=`/usr/bin/objformat`
11588 else
11589 case $host_os in
Douglas Gilbert63918a92012-09-08 03:20:30 +000011590 freebsd[23].*) objformat=aout ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011591 *) objformat=elf ;;
11592 esac
11593 fi
11594 version_type=freebsd-$objformat
11595 case $version_type in
11596 freebsd-elf*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11598 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011599 need_version=no
11600 need_lib_prefix=no
11601 ;;
11602 freebsd-*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011603 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011604 need_version=yes
11605 ;;
11606 esac
11607 shlibpath_var=LD_LIBRARY_PATH
11608 case $host_os in
Douglas Gilbert63918a92012-09-08 03:20:30 +000011609 freebsd2.*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011610 shlibpath_overrides_runpath=yes
11611 ;;
11612 freebsd3.[01]* | freebsdelf3.[01]*)
11613 shlibpath_overrides_runpath=yes
11614 hardcode_into_libs=yes
11615 ;;
11616 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11617 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11618 shlibpath_overrides_runpath=no
11619 hardcode_into_libs=yes
11620 ;;
11621 *) # from 4.6 on, and DragonFly
11622 shlibpath_overrides_runpath=yes
11623 hardcode_into_libs=yes
11624 ;;
11625 esac
11626 ;;
11627
Douglas Gilbertc978e062011-12-06 21:50:07 +000011628haiku*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011629 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertc978e062011-12-06 21:50:07 +000011630 need_lib_prefix=no
11631 need_version=no
11632 dynamic_linker="$host_os runtime_loader"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11634 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbertc978e062011-12-06 21:50:07 +000011635 shlibpath_var=LIBRARY_PATH
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011636 shlibpath_overrides_runpath=no
Douglas Gilbertc978e062011-12-06 21:50:07 +000011637 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011638 hardcode_into_libs=yes
11639 ;;
11640
11641hpux9* | hpux10* | hpux11*)
11642 # Give a soname corresponding to the major version so that dld.sl refuses to
11643 # link against other versions.
11644 version_type=sunos
11645 need_lib_prefix=no
11646 need_version=no
11647 case $host_cpu in
11648 ia64*)
11649 shrext_cmds='.so'
11650 hardcode_into_libs=yes
11651 dynamic_linker="$host_os dld.so"
11652 shlibpath_var=LD_LIBRARY_PATH
11653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11655 soname_spec='$libname$release$shared_ext$major'
11656 if test 32 = "$HPUX_IA64_MODE"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011658 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011659 else
11660 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011661 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011662 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011663 ;;
11664 hppa*64*)
11665 shrext_cmds='.sl'
11666 hardcode_into_libs=yes
11667 dynamic_linker="$host_os dld.sl"
11668 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11671 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011672 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11674 ;;
11675 *)
11676 shrext_cmds='.sl'
11677 dynamic_linker="$host_os dld.sl"
11678 shlibpath_var=SHLIB_PATH
11679 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11681 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011682 ;;
11683 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +000011684 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011685 postinstall_cmds='chmod 555 $lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +000011686 # or fails outright, so override atomically:
11687 install_override_mode=555
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011688 ;;
11689
11690interix[3-9]*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011691 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011692 need_lib_prefix=no
11693 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011696 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 shlibpath_overrides_runpath=no
11699 hardcode_into_libs=yes
11700 ;;
11701
11702irix5* | irix6* | nonstopux*)
11703 case $host_os in
11704 nonstopux*) version_type=nonstopux ;;
11705 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011706 if test yes = "$lt_cv_prog_gnu_ld"; then
Douglas Gilbert63918a92012-09-08 03:20:30 +000011707 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011708 else
11709 version_type=irix
11710 fi ;;
11711 esac
11712 need_lib_prefix=no
11713 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011714 soname_spec='$libname$release$shared_ext$major'
11715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011716 case $host_os in
11717 irix5* | nonstopux*)
11718 libsuff= shlibsuff=
11719 ;;
11720 *)
11721 case $LD in # libtool.m4 will add one of these switches to LD
11722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11723 libsuff= shlibsuff= libmagic=32-bit;;
11724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11725 libsuff=32 shlibsuff=N32 libmagic=N32;;
11726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11727 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11728 *) libsuff= shlibsuff= libmagic=never-match;;
11729 esac
11730 ;;
11731 esac
11732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11733 shlibpath_overrides_runpath=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011734 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11735 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011736 hardcode_into_libs=yes
11737 ;;
11738
11739# No shared lib support for Linux oldld, aout, or coff.
11740linux*oldld* | linux*aout* | linux*coff*)
11741 dynamic_linker=no
11742 ;;
11743
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011744linux*android*)
11745 version_type=none # Android doesn't support versioned libraries.
11746 need_lib_prefix=no
11747 need_version=no
11748 library_names_spec='$libname$release$shared_ext'
11749 soname_spec='$libname$release$shared_ext'
11750 finish_cmds=
11751 shlibpath_var=LD_LIBRARY_PATH
11752 shlibpath_overrides_runpath=yes
11753
11754 # This implies no fast_install, which is unacceptable.
11755 # Some rework will be needed to allow for fast_install
11756 # before this can be enabled.
11757 hardcode_into_libs=yes
11758
11759 dynamic_linker='Android linker'
11760 # Don't embed -rpath directories since the linker doesn't support them.
11761 hardcode_libdir_flag_spec='-L$libdir'
11762 ;;
11763
Douglas Gilbert63918a92012-09-08 03:20:30 +000011764# This must be glibc/ELF.
Douglas Gilbertfaeffd02013-05-15 13:35:46 +000011765linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011766 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011767 need_lib_prefix=no
11768 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11770 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11772 shlibpath_var=LD_LIBRARY_PATH
11773 shlibpath_overrides_runpath=no
Douglas Gilbertc978e062011-12-06 21:50:07 +000011774
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011775 # Some binutils ld are patched to set DT_RUNPATH
Douglas Gilbert891844a2022-04-24 18:11:56 +000011776 if test ${lt_cv_shlibpath_overrides_runpath+y}
11777then :
11778 printf %s "(cached) " >&6
11779else $as_nop
Douglas Gilbertc978e062011-12-06 21:50:07 +000011780 lt_cv_shlibpath_overrides_runpath=no
11781 save_LDFLAGS=$LDFLAGS
11782 save_libdir=$libdir
11783 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11784 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011786/* end confdefs.h. */
11787
11788int
Douglas Gilbert891844a2022-04-24 18:11:56 +000011789main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011790{
11791
11792 ;
11793 return 0;
11794}
11795_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +000011796if ac_fn_c_try_link "$LINENO"
11797then :
11798 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11799then :
Douglas Gilbertc978e062011-12-06 21:50:07 +000011800 lt_cv_shlibpath_overrides_runpath=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011801fi
11802fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000011803rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011804 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +000011805 LDFLAGS=$save_LDFLAGS
11806 libdir=$save_libdir
11807
11808fi
11809
11810 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011811
11812 # This implies no fast_install, which is unacceptable.
11813 # Some rework will be needed to allow for fast_install
11814 # before this can be enabled.
11815 hardcode_into_libs=yes
11816
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011817 # Ideally, we could use ldconfig to report *all* directores which are
11818 # searched for libraries, however this is still not possible. Aside from not
11819 # being certain /sbin/ldconfig is available, command
11820 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11821 # even though it is searched at run-time. Try to do the best guess by
11822 # appending ld.so.conf contents (and includes) to the search path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011823 if test -f /etc/ld.so.conf; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000011824 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' ' '`
Douglas Gilbert6d3bd262022-11-01 23:46:24 +000011825 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011826 fi
11827
11828 # We used to test for /lib/ld.so.1 and disable shared libraries on
11829 # powerpc, because MkLinux only supported shared libraries with the
11830 # GNU dynamic linker. Since this was broken with cross compilers,
11831 # most powerpc-linux boxes support dynamic linking these days and
11832 # people can always --disable-shared, the test was removed, and we
11833 # assume the GNU/Linux dynamic linker is in use.
11834 dynamic_linker='GNU/Linux ld.so'
11835 ;;
11836
Douglas Gilbert6d3bd262022-11-01 23:46:24 +000011837netbsdelf*-gnu)
11838 version_type=linux
11839 need_lib_prefix=no
11840 need_version=no
11841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11842 soname_spec='${libname}${release}${shared_ext}$major'
11843 shlibpath_var=LD_LIBRARY_PATH
11844 shlibpath_overrides_runpath=no
11845 hardcode_into_libs=yes
11846 dynamic_linker='NetBSD ld.elf_so'
11847 ;;
11848
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011849netbsd*)
11850 version_type=sunos
11851 need_lib_prefix=no
11852 need_version=no
11853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011854 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11856 dynamic_linker='NetBSD (a.out) ld.so'
11857 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11859 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011860 dynamic_linker='NetBSD ld.elf_so'
11861 fi
11862 shlibpath_var=LD_LIBRARY_PATH
11863 shlibpath_overrides_runpath=yes
11864 hardcode_into_libs=yes
11865 ;;
11866
11867newsos6)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011868 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011870 shlibpath_var=LD_LIBRARY_PATH
11871 shlibpath_overrides_runpath=yes
11872 ;;
11873
11874*nto* | *qnx*)
11875 version_type=qnx
11876 need_lib_prefix=no
11877 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11879 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011880 shlibpath_var=LD_LIBRARY_PATH
11881 shlibpath_overrides_runpath=no
11882 hardcode_into_libs=yes
11883 dynamic_linker='ldqnx.so'
11884 ;;
11885
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011886openbsd* | bitrig*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011887 version_type=sunos
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011888 sys_lib_dlsearch_path_spec=/usr/lib
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011889 need_lib_prefix=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011890 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11891 need_version=no
11892 else
11893 need_version=yes
11894 fi
11895 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11897 shlibpath_var=LD_LIBRARY_PATH
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011898 shlibpath_overrides_runpath=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011899 ;;
11900
11901os2*)
11902 libname_spec='$name'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011903 version_type=windows
11904 shrext_cmds=.dll
11905 need_version=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011906 need_lib_prefix=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011907 # OS/2 can only load a DLL with a base name of 8 characters or less.
11908 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11909 v=$($ECHO $release$versuffix | tr -d .-);
11910 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11911 $ECHO $n$v`$shared_ext'
11912 library_names_spec='${libname}_dll.$libext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011913 dynamic_linker='OS/2 ld.exe'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011914 shlibpath_var=BEGINLIBPATH
11915 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11917 postinstall_cmds='base_file=`basename \$file`~
11918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11919 dldir=$destdir/`dirname \$dlpath`~
11920 test -d \$dldir || mkdir -p \$dldir~
11921 $install_prog $dir/$dlname \$dldir/$dlname~
11922 chmod a+x \$dldir/$dlname~
11923 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11924 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11925 fi'
11926 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11927 dlpath=$dir/\$dldll~
11928 $RM \$dlpath'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011929 ;;
11930
11931osf3* | osf4* | osf5*)
11932 version_type=osf
11933 need_lib_prefix=no
11934 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011935 soname_spec='$libname$release$shared_ext$major'
11936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011937 shlibpath_var=LD_LIBRARY_PATH
11938 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011940 ;;
11941
11942rdos*)
11943 dynamic_linker=no
11944 ;;
11945
11946solaris*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011947 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011948 need_lib_prefix=no
11949 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11951 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011952 shlibpath_var=LD_LIBRARY_PATH
11953 shlibpath_overrides_runpath=yes
11954 hardcode_into_libs=yes
11955 # ldd complains unless libraries are executable
11956 postinstall_cmds='chmod +x $lib'
11957 ;;
11958
11959sunos4*)
11960 version_type=sunos
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011961 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011962 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11963 shlibpath_var=LD_LIBRARY_PATH
11964 shlibpath_overrides_runpath=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011965 if test yes = "$with_gnu_ld"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011966 need_lib_prefix=no
11967 fi
11968 need_version=yes
11969 ;;
11970
11971sysv4 | sysv4.3*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011972 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11974 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011975 shlibpath_var=LD_LIBRARY_PATH
11976 case $host_vendor in
11977 sni)
11978 shlibpath_overrides_runpath=no
11979 need_lib_prefix=no
11980 runpath_var=LD_RUN_PATH
11981 ;;
11982 siemens)
11983 need_lib_prefix=no
11984 ;;
11985 motorola)
11986 need_lib_prefix=no
11987 need_version=no
11988 shlibpath_overrides_runpath=no
11989 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11990 ;;
11991 esac
11992 ;;
11993
11994sysv4*MP*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011995 if test -d /usr/nec; then
Douglas Gilbert63918a92012-09-08 03:20:30 +000011996 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011997 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11998 soname_spec='$libname$shared_ext.$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011999 shlibpath_var=LD_LIBRARY_PATH
12000 fi
12001 ;;
12002
12003sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012004 version_type=sco
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012005 need_lib_prefix=no
12006 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12008 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012009 shlibpath_var=LD_LIBRARY_PATH
12010 shlibpath_overrides_runpath=yes
12011 hardcode_into_libs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012012 if test yes = "$with_gnu_ld"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012013 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12014 else
12015 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12016 case $host_os in
12017 sco3.2v5*)
12018 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12019 ;;
12020 esac
12021 fi
12022 sys_lib_dlsearch_path_spec='/usr/lib'
12023 ;;
12024
12025tpf*)
12026 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Douglas Gilbert63918a92012-09-08 03:20:30 +000012027 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012028 need_lib_prefix=no
12029 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012031 shlibpath_var=LD_LIBRARY_PATH
12032 shlibpath_overrides_runpath=no
12033 hardcode_into_libs=yes
12034 ;;
12035
12036uts4*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000012037 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12039 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012040 shlibpath_var=LD_LIBRARY_PATH
12041 ;;
12042
12043*)
12044 dynamic_linker=no
12045 ;;
12046esac
Douglas Gilbert891844a2022-04-24 18:11:56 +000012047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12048printf "%s\n" "$dynamic_linker" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012049test no = "$dynamic_linker" && can_build_shared=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012050
12051variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012052if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012053 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12054fi
12055
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012056if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12057 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012058fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012059
12060if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12061 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012062fi
12063
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012064# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12065configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12066
12067# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12068func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12069
12070# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12071configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12072
12073
12074
12075
12076
12077
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
Douglas Gilbertc978e062011-12-06 21:50:07 +000012164
12165
12166
12167
12168
Douglas Gilbert891844a2022-04-24 18:11:56 +000012169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12170printf %s "checking how to hardcode library paths into programs... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012171hardcode_action=
12172if test -n "$hardcode_libdir_flag_spec" ||
12173 test -n "$runpath_var" ||
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012174 test yes = "$hardcode_automatic"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012175
12176 # We can hardcode non-existent directories.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012177 if test no != "$hardcode_direct" &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012178 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12179 # have to relink, otherwise we might link with an installed library
12180 # when we should be linking with a yet-to-be-installed one
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012181 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12182 test no != "$hardcode_minus_L"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012183 # Linking always hardcodes the temporary library directory.
12184 hardcode_action=relink
12185 else
12186 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12187 hardcode_action=immediate
12188 fi
12189else
12190 # We cannot hardcode anything, or else we can only hardcode existing
12191 # directories.
12192 hardcode_action=unsupported
12193fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12195printf "%s\n" "$hardcode_action" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012196
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012197if test relink = "$hardcode_action" ||
12198 test yes = "$inherit_rpath"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012199 # Fast installation is not supported
12200 enable_fast_install=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012201elif test yes = "$shlibpath_overrides_runpath" ||
12202 test no = "$enable_shared"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012203 # Fast installation is not necessary
12204 enable_fast_install=needless
12205fi
12206
12207
12208
12209
12210
12211
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012212 if test yes != "$enable_dlopen"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012213 enable_dlopen=unknown
12214 enable_dlopen_self=unknown
12215 enable_dlopen_self_static=unknown
12216else
12217 lt_cv_dlopen=no
12218 lt_cv_dlopen_libs=
12219
12220 case $host_os in
12221 beos*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012222 lt_cv_dlopen=load_add_on
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012223 lt_cv_dlopen_libs=
12224 lt_cv_dlopen_self=yes
12225 ;;
12226
12227 mingw* | pw32* | cegcc*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012228 lt_cv_dlopen=LoadLibrary
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012229 lt_cv_dlopen_libs=
12230 ;;
12231
12232 cygwin*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012233 lt_cv_dlopen=dlopen
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012234 lt_cv_dlopen_libs=
12235 ;;
12236
12237 darwin*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012238 # if libdl is installed we need to link against it
Douglas Gilbert891844a2022-04-24 18:11:56 +000012239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12240printf %s "checking for dlopen in -ldl... " >&6; }
12241if test ${ac_cv_lib_dl_dlopen+y}
12242then :
12243 printf %s "(cached) " >&6
12244else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012245 ac_check_lib_save_LIBS=$LIBS
12246LIBS="-ldl $LIBS"
12247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248/* end confdefs.h. */
12249
12250/* Override any GCC internal prototype to avoid an error.
12251 Use char because int might match the return type of a GCC
12252 builtin and then its argument prototype would still apply. */
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012253char dlopen ();
12254int
Douglas Gilbert891844a2022-04-24 18:11:56 +000012255main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012256{
12257return dlopen ();
12258 ;
12259 return 0;
12260}
12261_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +000012262if ac_fn_c_try_link "$LINENO"
12263then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012264 ac_cv_lib_dl_dlopen=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +000012265else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012266 ac_cv_lib_dl_dlopen=no
12267fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012268rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012269 conftest$ac_exeext conftest.$ac_ext
12270LIBS=$ac_check_lib_save_LIBS
12271fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12273printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12274if test "x$ac_cv_lib_dl_dlopen" = xyes
12275then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012276 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Douglas Gilbert891844a2022-04-24 18:11:56 +000012277else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012278
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012279 lt_cv_dlopen=dyld
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012280 lt_cv_dlopen_libs=
12281 lt_cv_dlopen_self=yes
12282
12283fi
12284
12285 ;;
12286
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012287 tpf*)
12288 # Don't try to run any link tests for TPF. We know it's impossible
12289 # because TPF is a cross-compiler, and we know how we open DSOs.
12290 lt_cv_dlopen=dlopen
12291 lt_cv_dlopen_libs=
12292 lt_cv_dlopen_self=no
12293 ;;
12294
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012295 *)
12296 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Douglas Gilbert891844a2022-04-24 18:11:56 +000012297if test "x$ac_cv_func_shl_load" = xyes
12298then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012299 lt_cv_dlopen=shl_load
Douglas Gilbert891844a2022-04-24 18:11:56 +000012300else $as_nop
12301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12302printf %s "checking for shl_load in -ldld... " >&6; }
12303if test ${ac_cv_lib_dld_shl_load+y}
12304then :
12305 printf %s "(cached) " >&6
12306else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012307 ac_check_lib_save_LIBS=$LIBS
12308LIBS="-ldld $LIBS"
12309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310/* end confdefs.h. */
12311
12312/* Override any GCC internal prototype to avoid an error.
12313 Use char because int might match the return type of a GCC
12314 builtin and then its argument prototype would still apply. */
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012315char shl_load ();
12316int
Douglas Gilbert891844a2022-04-24 18:11:56 +000012317main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012318{
12319return shl_load ();
12320 ;
12321 return 0;
12322}
12323_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +000012324if ac_fn_c_try_link "$LINENO"
12325then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012326 ac_cv_lib_dld_shl_load=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +000012327else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012328 ac_cv_lib_dld_shl_load=no
12329fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012330rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012331 conftest$ac_exeext conftest.$ac_ext
12332LIBS=$ac_check_lib_save_LIBS
12333fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12335printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12336if test "x$ac_cv_lib_dld_shl_load" = xyes
12337then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012338 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
Douglas Gilbert891844a2022-04-24 18:11:56 +000012339else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012340 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Douglas Gilbert891844a2022-04-24 18:11:56 +000012341if test "x$ac_cv_func_dlopen" = xyes
12342then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012343 lt_cv_dlopen=dlopen
Douglas Gilbert891844a2022-04-24 18:11:56 +000012344else $as_nop
12345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12346printf %s "checking for dlopen in -ldl... " >&6; }
12347if test ${ac_cv_lib_dl_dlopen+y}
12348then :
12349 printf %s "(cached) " >&6
12350else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012351 ac_check_lib_save_LIBS=$LIBS
12352LIBS="-ldl $LIBS"
12353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354/* end confdefs.h. */
12355
12356/* Override any GCC internal prototype to avoid an error.
12357 Use char because int might match the return type of a GCC
12358 builtin and then its argument prototype would still apply. */
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012359char dlopen ();
12360int
Douglas Gilbert891844a2022-04-24 18:11:56 +000012361main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012362{
12363return dlopen ();
12364 ;
12365 return 0;
12366}
12367_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +000012368if ac_fn_c_try_link "$LINENO"
12369then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012370 ac_cv_lib_dl_dlopen=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +000012371else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012372 ac_cv_lib_dl_dlopen=no
12373fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012374rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012375 conftest$ac_exeext conftest.$ac_ext
12376LIBS=$ac_check_lib_save_LIBS
12377fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12379printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12380if test "x$ac_cv_lib_dl_dlopen" = xyes
12381then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012382 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Douglas Gilbert891844a2022-04-24 18:11:56 +000012383else $as_nop
12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12385printf %s "checking for dlopen in -lsvld... " >&6; }
12386if test ${ac_cv_lib_svld_dlopen+y}
12387then :
12388 printf %s "(cached) " >&6
12389else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012390 ac_check_lib_save_LIBS=$LIBS
12391LIBS="-lsvld $LIBS"
12392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393/* end confdefs.h. */
12394
12395/* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012398char dlopen ();
12399int
Douglas Gilbert891844a2022-04-24 18:11:56 +000012400main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012401{
12402return dlopen ();
12403 ;
12404 return 0;
12405}
12406_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +000012407if ac_fn_c_try_link "$LINENO"
12408then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012409 ac_cv_lib_svld_dlopen=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +000012410else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012411 ac_cv_lib_svld_dlopen=no
12412fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012413rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012414 conftest$ac_exeext conftest.$ac_ext
12415LIBS=$ac_check_lib_save_LIBS
12416fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12418printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12419if test "x$ac_cv_lib_svld_dlopen" = xyes
12420then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012421 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
Douglas Gilbert891844a2022-04-24 18:11:56 +000012422else $as_nop
12423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12424printf %s "checking for dld_link in -ldld... " >&6; }
12425if test ${ac_cv_lib_dld_dld_link+y}
12426then :
12427 printf %s "(cached) " >&6
12428else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012429 ac_check_lib_save_LIBS=$LIBS
12430LIBS="-ldld $LIBS"
12431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432/* end confdefs.h. */
12433
12434/* Override any GCC internal prototype to avoid an error.
12435 Use char because int might match the return type of a GCC
12436 builtin and then its argument prototype would still apply. */
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012437char dld_link ();
12438int
Douglas Gilbert891844a2022-04-24 18:11:56 +000012439main (void)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012440{
12441return dld_link ();
12442 ;
12443 return 0;
12444}
12445_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +000012446if ac_fn_c_try_link "$LINENO"
12447then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012448 ac_cv_lib_dld_dld_link=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +000012449else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012450 ac_cv_lib_dld_dld_link=no
12451fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012452rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012453 conftest$ac_exeext conftest.$ac_ext
12454LIBS=$ac_check_lib_save_LIBS
12455fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12457printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12458if test "x$ac_cv_lib_dld_dld_link" = xyes
12459then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012460 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012461fi
12462
12463
12464fi
12465
12466
12467fi
12468
12469
12470fi
12471
12472
12473fi
12474
12475
12476fi
12477
12478 ;;
12479 esac
12480
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012481 if test no = "$lt_cv_dlopen"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012482 enable_dlopen=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012483 else
12484 enable_dlopen=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012485 fi
12486
12487 case $lt_cv_dlopen in
12488 dlopen)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012489 save_CPPFLAGS=$CPPFLAGS
12490 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012491
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012492 save_LDFLAGS=$LDFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012493 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12494
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012495 save_LIBS=$LIBS
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012496 LIBS="$lt_cv_dlopen_libs $LIBS"
12497
Douglas Gilbert891844a2022-04-24 18:11:56 +000012498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12499printf %s "checking whether a program can dlopen itself... " >&6; }
12500if test ${lt_cv_dlopen_self+y}
12501then :
12502 printf %s "(cached) " >&6
12503else $as_nop
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012504 if test yes = "$cross_compiling"; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012505 lt_cv_dlopen_self=cross
12506else
12507 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12508 lt_status=$lt_dlunknown
12509 cat > conftest.$ac_ext <<_LT_EOF
Douglas Gilbertc978e062011-12-06 21:50:07 +000012510#line $LINENO "configure"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012511#include "confdefs.h"
12512
12513#if HAVE_DLFCN_H
12514#include <dlfcn.h>
12515#endif
12516
12517#include <stdio.h>
12518
12519#ifdef RTLD_GLOBAL
12520# define LT_DLGLOBAL RTLD_GLOBAL
12521#else
12522# ifdef DL_GLOBAL
12523# define LT_DLGLOBAL DL_GLOBAL
12524# else
12525# define LT_DLGLOBAL 0
12526# endif
12527#endif
12528
12529/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12530 find out it does not work in some platform. */
12531#ifndef LT_DLLAZY_OR_NOW
12532# ifdef RTLD_LAZY
12533# define LT_DLLAZY_OR_NOW RTLD_LAZY
12534# else
12535# ifdef DL_LAZY
12536# define LT_DLLAZY_OR_NOW DL_LAZY
12537# else
12538# ifdef RTLD_NOW
12539# define LT_DLLAZY_OR_NOW RTLD_NOW
12540# else
12541# ifdef DL_NOW
12542# define LT_DLLAZY_OR_NOW DL_NOW
12543# else
12544# define LT_DLLAZY_OR_NOW 0
12545# endif
12546# endif
12547# endif
12548# endif
12549#endif
12550
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012551/* When -fvisibility=hidden is used, assume the code has been annotated
Douglas Gilbertc978e062011-12-06 21:50:07 +000012552 correspondingly for the symbols needed. */
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012553#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Douglas Gilbertc978e062011-12-06 21:50:07 +000012554int fnord () __attribute__((visibility("default")));
12555#endif
12556
12557int fnord () { return 42; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012558int main ()
12559{
12560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12561 int status = $lt_dlunknown;
12562
12563 if (self)
12564 {
12565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Douglas Gilbertc978e062011-12-06 21:50:07 +000012566 else
12567 {
12568 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12569 else puts (dlerror ());
12570 }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012571 /* dlclose (self); */
12572 }
12573 else
12574 puts (dlerror ());
12575
12576 return status;
12577}
12578_LT_EOF
12579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12580 (eval $ac_link) 2>&5
12581 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +000012582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012583 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012584 (./conftest; exit; ) >&5 2>/dev/null
12585 lt_status=$?
12586 case x$lt_status in
12587 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12588 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12589 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12590 esac
12591 else :
12592 # compilation failed
12593 lt_cv_dlopen_self=no
12594 fi
12595fi
12596rm -fr conftest*
12597
12598
12599fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12601printf "%s\n" "$lt_cv_dlopen_self" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012602
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012603 if test yes = "$lt_cv_dlopen_self"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012604 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Douglas Gilbert891844a2022-04-24 18:11:56 +000012605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12606printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12607if test ${lt_cv_dlopen_self_static+y}
12608then :
12609 printf %s "(cached) " >&6
12610else $as_nop
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012611 if test yes = "$cross_compiling"; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012612 lt_cv_dlopen_self_static=cross
12613else
12614 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12615 lt_status=$lt_dlunknown
12616 cat > conftest.$ac_ext <<_LT_EOF
Douglas Gilbertc978e062011-12-06 21:50:07 +000012617#line $LINENO "configure"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012618#include "confdefs.h"
12619
12620#if HAVE_DLFCN_H
12621#include <dlfcn.h>
12622#endif
12623
12624#include <stdio.h>
12625
12626#ifdef RTLD_GLOBAL
12627# define LT_DLGLOBAL RTLD_GLOBAL
12628#else
12629# ifdef DL_GLOBAL
12630# define LT_DLGLOBAL DL_GLOBAL
12631# else
12632# define LT_DLGLOBAL 0
12633# endif
12634#endif
12635
12636/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12637 find out it does not work in some platform. */
12638#ifndef LT_DLLAZY_OR_NOW
12639# ifdef RTLD_LAZY
12640# define LT_DLLAZY_OR_NOW RTLD_LAZY
12641# else
12642# ifdef DL_LAZY
12643# define LT_DLLAZY_OR_NOW DL_LAZY
12644# else
12645# ifdef RTLD_NOW
12646# define LT_DLLAZY_OR_NOW RTLD_NOW
12647# else
12648# ifdef DL_NOW
12649# define LT_DLLAZY_OR_NOW DL_NOW
12650# else
12651# define LT_DLLAZY_OR_NOW 0
12652# endif
12653# endif
12654# endif
12655# endif
12656#endif
12657
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012658/* When -fvisibility=hidden is used, assume the code has been annotated
Douglas Gilbertc978e062011-12-06 21:50:07 +000012659 correspondingly for the symbols needed. */
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012660#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Douglas Gilbertc978e062011-12-06 21:50:07 +000012661int fnord () __attribute__((visibility("default")));
12662#endif
12663
12664int fnord () { return 42; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012665int main ()
12666{
12667 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12668 int status = $lt_dlunknown;
12669
12670 if (self)
12671 {
12672 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Douglas Gilbertc978e062011-12-06 21:50:07 +000012673 else
12674 {
12675 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12676 else puts (dlerror ());
12677 }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012678 /* dlclose (self); */
12679 }
12680 else
12681 puts (dlerror ());
12682
12683 return status;
12684}
12685_LT_EOF
12686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12687 (eval $ac_link) 2>&5
12688 ac_status=$?
Douglas Gilbert891844a2022-04-24 18:11:56 +000012689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012690 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012691 (./conftest; exit; ) >&5 2>/dev/null
12692 lt_status=$?
12693 case x$lt_status in
12694 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12695 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12696 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12697 esac
12698 else :
12699 # compilation failed
12700 lt_cv_dlopen_self_static=no
12701 fi
12702fi
12703rm -fr conftest*
12704
12705
12706fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12708printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012709 fi
12710
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012711 CPPFLAGS=$save_CPPFLAGS
12712 LDFLAGS=$save_LDFLAGS
12713 LIBS=$save_LIBS
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012714 ;;
12715 esac
12716
12717 case $lt_cv_dlopen_self in
12718 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12719 *) enable_dlopen_self=unknown ;;
12720 esac
12721
12722 case $lt_cv_dlopen_self_static in
12723 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12724 *) enable_dlopen_self_static=unknown ;;
12725 esac
12726fi
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744striplib=
12745old_striplib=
Douglas Gilbert891844a2022-04-24 18:11:56 +000012746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12747printf %s "checking whether stripping libraries is possible... " >&6; }
Douglas Gilbert23beedb2022-08-07 02:22:53 +000012748if test -z "$STRIP"; then
12749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750printf "%s\n" "no" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012751else
Douglas Gilbert23beedb2022-08-07 02:22:53 +000012752 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12753 old_striplib="$STRIP --strip-debug"
12754 striplib="$STRIP --strip-unneeded"
12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12756printf "%s\n" "yes" >&6; }
12757 else
12758 case $host_os in
12759 darwin*)
12760 # FIXME - insert some real tests, host_os isn't really good enough
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012761 striplib="$STRIP -x"
12762 old_striplib="$STRIP -S"
Douglas Gilbert891844a2022-04-24 18:11:56 +000012763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12764printf "%s\n" "yes" >&6; }
Douglas Gilbert23beedb2022-08-07 02:22:53 +000012765 ;;
12766 freebsd*)
12767 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12768 old_striplib="$STRIP --strip-debug"
12769 striplib="$STRIP --strip-unneeded"
12770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12771printf "%s\n" "yes" >&6; }
12772 else
12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774printf "%s\n" "no" >&6; }
12775 fi
12776 ;;
12777 *)
Douglas Gilbert891844a2022-04-24 18:11:56 +000012778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779printf "%s\n" "no" >&6; }
Douglas Gilbert23beedb2022-08-07 02:22:53 +000012780 ;;
12781 esac
12782 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012783fi
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012796 # Report what library types will actually be built
Douglas Gilbert891844a2022-04-24 18:11:56 +000012797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12798printf %s "checking if libtool supports shared libraries... " >&6; }
12799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12800printf "%s\n" "$can_build_shared" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012801
Douglas Gilbert891844a2022-04-24 18:11:56 +000012802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12803printf %s "checking whether to build shared libraries... " >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012804 test no = "$can_build_shared" && enable_shared=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012805
12806 # On AIX, shared libraries and static libraries use the same namespace, and
12807 # are all built from PIC.
12808 case $host_os in
12809 aix3*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012810 test yes = "$enable_shared" && enable_static=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012811 if test -n "$RANLIB"; then
12812 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12813 postinstall_cmds='$RANLIB $lib'
12814 fi
12815 ;;
12816
12817 aix[4-9]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012818 if test ia64 != "$host_cpu"; then
12819 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12820 yes,aix,yes) ;; # shared object as lib.so file only
12821 yes,svr4,*) ;; # shared object as lib.so archive member only
12822 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12823 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012824 fi
12825 ;;
12826 esac
Douglas Gilbert891844a2022-04-24 18:11:56 +000012827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12828printf "%s\n" "$enable_shared" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012829
Douglas Gilbert891844a2022-04-24 18:11:56 +000012830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12831printf %s "checking whether to build static libraries... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012832 # Make sure either enable_shared or enable_static is yes.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012833 test yes = "$enable_shared" || enable_static=yes
Douglas Gilbert891844a2022-04-24 18:11:56 +000012834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12835printf "%s\n" "$enable_static" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012836
12837
12838
12839
12840fi
12841ac_ext=c
12842ac_cpp='$CPP $CPPFLAGS'
12843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12845ac_compiler_gnu=$ac_cv_c_compiler_gnu
12846
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012847CC=$lt_save_CC
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
Douglas Gilbert63918a92012-09-08 03:20:30 +000012861
12862
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012863 ac_config_commands="$ac_config_commands libtool"
12864
12865
12866
12867
12868# Only expand once:
12869
12870
12871
12872# check for headers
Douglas Gilbert891844a2022-04-24 18:11:56 +000012873# Autoupdate added the next two lines to ensure that your configure
12874# script's behavior did not change. They are probably safe to remove.
12875
12876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12877printf %s "checking for egrep... " >&6; }
12878if test ${ac_cv_path_EGREP+y}
12879then :
12880 printf %s "(cached) " >&6
12881else $as_nop
12882 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12883 then ac_cv_path_EGREP="$GREP -E"
12884 else
12885 if test -z "$EGREP"; then
12886 ac_path_EGREP_found=false
12887 # Loop through the user's path and test for each of PROGNAME-LIST
12888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12890do
12891 IFS=$as_save_IFS
12892 case $as_dir in #(((
12893 '') as_dir=./ ;;
12894 */) ;;
12895 *) as_dir=$as_dir/ ;;
12896 esac
12897 for ac_prog in egrep
12898 do
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
12901 as_fn_executable_p "$ac_path_EGREP" || continue
12902# Check for GNU ac_path_EGREP and select it if it is found.
12903 # Check for GNU $ac_path_EGREP
12904case `"$ac_path_EGREP" --version 2>&1` in
12905*GNU*)
12906 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12907*)
12908 ac_count=0
12909 printf %s 0123456789 >"conftest.in"
12910 while :
12911 do
12912 cat "conftest.in" "conftest.in" >"conftest.tmp"
12913 mv "conftest.tmp" "conftest.in"
12914 cp "conftest.in" "conftest.nl"
12915 printf "%s\n" 'EGREP' >> "conftest.nl"
12916 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12917 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12918 as_fn_arith $ac_count + 1 && ac_count=$as_val
12919 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12920 # Best one so far, save it but keep looking for a better one
12921 ac_cv_path_EGREP="$ac_path_EGREP"
12922 ac_path_EGREP_max=$ac_count
12923 fi
12924 # 10*(2^10) chars as input seems more than enough
12925 test $ac_count -gt 10 && break
12926 done
12927 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12928esac
12929
12930 $ac_path_EGREP_found && break 3
12931 done
12932 done
12933 done
12934IFS=$as_save_IFS
12935 if test -z "$ac_cv_path_EGREP"; then
12936 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12937 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012938else
Douglas Gilbert891844a2022-04-24 18:11:56 +000012939 ac_cv_path_EGREP=$EGREP
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012940fi
12941
Douglas Gilbert891844a2022-04-24 18:11:56 +000012942 fi
Douglas Gilbert02beb632021-11-05 23:31:50 +000012943fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12945printf "%s\n" "$ac_cv_path_EGREP" >&6; }
12946 EGREP="$ac_cv_path_EGREP"
12947
12948
12949
12950ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
12951if test "x$ac_cv_header_byteswap_h" = xyes
12952then :
12953 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
Douglas Gilbert02beb632021-11-05 23:31:50 +000012954
12955fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000012956ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
12957if test "x$ac_cv_header_stdatomic_h" = xyes
12958then :
12959 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
Douglas Gilbert02beb632021-11-05 23:31:50 +000012960
12961fi
Douglas Gilbert02beb632021-11-05 23:31:50 +000012962
12963
12964# check for functions
Douglas Gilbert891844a2022-04-24 18:11:56 +000012965
12966 for ac_func in getopt_long
Douglas Gilbert02beb632021-11-05 23:31:50 +000012967do :
12968 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
Douglas Gilbert891844a2022-04-24 18:11:56 +000012969if test "x$ac_cv_func_getopt_long" = xyes
12970then :
12971 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
Douglas Gilbert02beb632021-11-05 23:31:50 +000012972 GETOPT_O_FILES=''
Douglas Gilbert891844a2022-04-24 18:11:56 +000012973else $as_nop
Douglas Gilbert02beb632021-11-05 23:31:50 +000012974 GETOPT_O_FILES='getopt_long.o'
12975fi
Douglas Gilbert02beb632021-11-05 23:31:50 +000012976
Douglas Gilbert891844a2022-04-24 18:11:56 +000012977done
12978ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
12979if test "x$ac_cv_func_posix_fadvise" = xyes
12980then :
12981 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012982
12983fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012984
Douglas Gilbert891844a2022-04-24 18:11:56 +000012985ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
12986if test "x$ac_cv_func_posix_memalign" = xyes
12987then :
12988 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
Douglas Gilbert189211a2013-10-14 19:29:37 +000012989
12990fi
Douglas Gilbert189211a2013-10-14 19:29:37 +000012991
Douglas Gilbert891844a2022-04-24 18:11:56 +000012992ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12993if test "x$ac_cv_func_gettimeofday" = xyes
12994then :
12995 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000012996
12997fi
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000012998
Douglas Gilbert891844a2022-04-24 18:11:56 +000012999ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13000if test "x$ac_cv_func_sysconf" = xyes
13001then :
13002 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
Douglas Gilbert189211a2013-10-14 19:29:37 +000013003
13004fi
Douglas Gilbert189211a2013-10-14 19:29:37 +000013005
Douglas Gilbert891844a2022-04-24 18:11:56 +000013006ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13007if test "x$ac_cv_func_lseek64" = xyes
13008then :
13009 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
Douglas Gilbertf51ec512013-01-07 17:54:21 +000013010
13011fi
Douglas Gilbertf51ec512013-01-07 17:54:21 +000013012
Douglas Gilbert891844a2022-04-24 18:11:56 +000013013ac_fn_c_check_func "$LINENO" "srand48_r" "ac_cv_func_srand48_r"
13014if test "x$ac_cv_func_srand48_r" = xyes
13015then :
13016 printf "%s\n" "#define HAVE_SRAND48_R 1" >>confdefs.h
Douglas Gilbert6aa4d332021-09-12 18:12:47 +000013017
13018fi
13019
Douglas Gilberta0df1982018-01-03 05:40:58 +000013020SAVED_LIBS=$LIBS
Douglas Gilbert891844a2022-04-24 18:11:56 +000013021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
13022printf %s "checking for library containing pthread_create... " >&6; }
13023if test ${ac_cv_search_pthread_create+y}
13024then :
13025 printf %s "(cached) " >&6
13026else $as_nop
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013027 ac_func_search_save_LIBS=$LIBS
13028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029/* end confdefs.h. */
13030
13031/* Override any GCC internal prototype to avoid an error.
13032 Use char because int might match the return type of a GCC
13033 builtin and then its argument prototype would still apply. */
Douglas Gilberta0df1982018-01-03 05:40:58 +000013034char pthread_create ();
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013035int
Douglas Gilbert891844a2022-04-24 18:11:56 +000013036main (void)
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013037{
Douglas Gilberta0df1982018-01-03 05:40:58 +000013038return pthread_create ();
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013039 ;
13040 return 0;
13041}
13042_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +000013043for ac_lib in '' pthread
13044do
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013045 if test -z "$ac_lib"; then
13046 ac_res="none required"
13047 else
13048 ac_res=-l$ac_lib
13049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13050 fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000013051 if ac_fn_c_try_link "$LINENO"
13052then :
Douglas Gilberta0df1982018-01-03 05:40:58 +000013053 ac_cv_search_pthread_create=$ac_res
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013054fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000013055rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013056 conftest$ac_exeext
Douglas Gilbert891844a2022-04-24 18:11:56 +000013057 if test ${ac_cv_search_pthread_create+y}
13058then :
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013059 break
13060fi
13061done
Douglas Gilbert891844a2022-04-24 18:11:56 +000013062if test ${ac_cv_search_pthread_create+y}
13063then :
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013064
Douglas Gilbert891844a2022-04-24 18:11:56 +000013065else $as_nop
Douglas Gilberta0df1982018-01-03 05:40:58 +000013066 ac_cv_search_pthread_create=no
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013067fi
13068rm conftest.$ac_ext
13069LIBS=$ac_func_search_save_LIBS
13070fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000013071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
13072printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
Douglas Gilberta0df1982018-01-03 05:40:58 +000013073ac_res=$ac_cv_search_pthread_create
Douglas Gilbert891844a2022-04-24 18:11:56 +000013074if test "$ac_res" != no
13075then :
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13077
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013078fi
13079
Douglas Gilberta0df1982018-01-03 05:40:58 +000013080# AC_SEARCH_LIBS adds libraries at the start of $LIBS so remove $SAVED_LIBS
13081# from the end of $LIBS.
13082pthread_lib=${LIBS%${SAVED_LIBS}}
Douglas Gilbert891844a2022-04-24 18:11:56 +000013083ac_fn_c_check_func "$LINENO" "pthread_cancel" "ac_cv_func_pthread_cancel"
13084if test "x$ac_cv_func_pthread_cancel" = xyes
13085then :
13086 printf "%s\n" "#define HAVE_PTHREAD_CANCEL 1" >>confdefs.h
Douglas Gilberta0df1982018-01-03 05:40:58 +000013087
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013088fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000013089ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
13090if test "x$ac_cv_func_pthread_kill" = xyes
13091then :
13092 printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
13093
13094fi
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013095
Douglas Gilberta0df1982018-01-03 05:40:58 +000013096LIBS=$SAVED_LIBS
13097PTHREAD_LIB=$pthread_lib
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013098
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013099
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013100SAVED_LIBS=$LIBS
Douglas Gilbert891844a2022-04-24 18:11:56 +000013101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13102printf %s "checking for library containing clock_gettime... " >&6; }
13103if test ${ac_cv_search_clock_gettime+y}
13104then :
13105 printf %s "(cached) " >&6
13106else $as_nop
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013107 ac_func_search_save_LIBS=$LIBS
13108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109/* end confdefs.h. */
13110
13111/* Override any GCC internal prototype to avoid an error.
13112 Use char because int might match the return type of a GCC
13113 builtin and then its argument prototype would still apply. */
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013114char clock_gettime ();
13115int
Douglas Gilbert891844a2022-04-24 18:11:56 +000013116main (void)
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013117{
13118return clock_gettime ();
13119 ;
13120 return 0;
13121}
13122_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +000013123for ac_lib in '' rt
13124do
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013125 if test -z "$ac_lib"; then
13126 ac_res="none required"
13127 else
13128 ac_res=-l$ac_lib
13129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13130 fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000013131 if ac_fn_c_try_link "$LINENO"
13132then :
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013133 ac_cv_search_clock_gettime=$ac_res
13134fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000013135rm -f core conftest.err conftest.$ac_objext conftest.beam \
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013136 conftest$ac_exeext
Douglas Gilbert891844a2022-04-24 18:11:56 +000013137 if test ${ac_cv_search_clock_gettime+y}
13138then :
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013139 break
13140fi
13141done
Douglas Gilbert891844a2022-04-24 18:11:56 +000013142if test ${ac_cv_search_clock_gettime+y}
13143then :
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013144
Douglas Gilbert891844a2022-04-24 18:11:56 +000013145else $as_nop
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013146 ac_cv_search_clock_gettime=no
13147fi
13148rm conftest.$ac_ext
13149LIBS=$ac_func_search_save_LIBS
13150fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000013151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13152printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013153ac_res=$ac_cv_search_clock_gettime
Douglas Gilbert891844a2022-04-24 18:11:56 +000013154if test "$ac_res" != no
13155then :
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13157
13158fi
13159
13160rt_lib=${LIBS%${SAVED_LIBS}}
Douglas Gilbert891844a2022-04-24 18:11:56 +000013161ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13162if test "x$ac_cv_func_clock_gettime" = xyes
13163then :
13164 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013165
13166fi
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000013167
13168LIBS=$SAVED_LIBS
13169RT_LIB=$rt_lib
13170
13171
13172
13173
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013174
13175
13176
13177
Douglas Gilbert891844a2022-04-24 18:11:56 +000013178printf "%s\n" "#define SG_LIB_BUILD_HOST \"${host}\"" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013179
13180
Douglas Gilbert9ccb5562021-03-28 00:58:36 +000013181check_for_getrandom() {
Douglas Gilbert891844a2022-04-24 18:11:56 +000013182 for ac_header in sys/random.h
Douglas Gilbert9ccb5562021-03-28 00:58:36 +000013183do :
Douglas Gilbert891844a2022-04-24 18:11:56 +000013184 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
13185if test "x$ac_cv_header_sys_random_h" = xyes
13186then :
13187 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
Douglas Gilbert9ccb5562021-03-28 00:58:36 +000013188
Douglas Gilbert891844a2022-04-24 18:11:56 +000013189printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
Douglas Gilbert9ccb5562021-03-28 00:58:36 +000013190
13191fi
13192
13193done
13194}
13195
Douglas Gilberta0df1982018-01-03 05:40:58 +000013196check_for_linux_nvme_headers() {
Douglas Gilbert891844a2022-04-24 18:11:56 +000013197 for ac_header in linux/nvme_ioctl.h
Douglas Gilberta0df1982018-01-03 05:40:58 +000013198do :
Douglas Gilbert891844a2022-04-24 18:11:56 +000013199 ac_fn_c_check_header_compile "$LINENO" "linux/nvme_ioctl.h" "ac_cv_header_linux_nvme_ioctl_h" "$ac_includes_default"
13200if test "x$ac_cv_header_linux_nvme_ioctl_h" = xyes
13201then :
13202 printf "%s\n" "#define HAVE_LINUX_NVME_IOCTL_H 1" >>confdefs.h
Douglas Gilberta0df1982018-01-03 05:40:58 +000013203
Douglas Gilbert891844a2022-04-24 18:11:56 +000013204printf "%s\n" "#define HAVE_NVME 1" >>confdefs.h
Douglas Gilberta0df1982018-01-03 05:40:58 +000013205
13206fi
13207
13208done
Douglas Gilbert891844a2022-04-24 18:11:56 +000013209 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "#ifdef HAVE_LINUX_TYPES_H
Douglas Gilberta0df1982018-01-03 05:40:58 +000013210 # include <linux/types.h>
13211 #endif
13212
13213"
Douglas Gilbert891844a2022-04-24 18:11:56 +000013214if test "x$ac_cv_header_linux_types_h" = xyes
13215then :
13216 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
Douglas Gilberta0df1982018-01-03 05:40:58 +000013217
13218fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000013219ac_fn_c_check_header_compile "$LINENO" "linux/bsg.h" "ac_cv_header_linux_bsg_h" "#ifdef HAVE_LINUX_TYPES_H
13220 # include <linux/types.h>
13221 #endif
Douglas Gilberta0df1982018-01-03 05:40:58 +000013222
Douglas Gilbert891844a2022-04-24 18:11:56 +000013223"
13224if test "x$ac_cv_header_linux_bsg_h" = xyes
13225then :
13226 printf "%s\n" "#define HAVE_LINUX_BSG_H 1" >>confdefs.h
13227
13228fi
13229ac_fn_c_check_header_compile "$LINENO" "linux/kdev_t.h" "ac_cv_header_linux_kdev_t_h" "#ifdef HAVE_LINUX_TYPES_H
13230 # include <linux/types.h>
13231 #endif
13232
13233"
13234if test "x$ac_cv_header_linux_kdev_t_h" = xyes
13235then :
13236 printf "%s\n" "#define HAVE_LINUX_KDEV_T_H 1" >>confdefs.h
13237
13238fi
Douglas Gilberta0df1982018-01-03 05:40:58 +000013239
13240}
13241
Douglas Gilbert2433a222019-01-11 06:11:25 +000013242check_for_linux_sg_v4_hdr() {
Douglas Gilbert891844a2022-04-24 18:11:56 +000013243 ac_ext=c
13244ac_cpp='$CPP $CPPFLAGS'
13245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13247ac_compiler_gnu=$ac_cv_c_compiler_gnu
13248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13249printf %s "checking how to run the C preprocessor... " >&6; }
13250# On Suns, sometimes $CPP names a directory.
13251if test -n "$CPP" && test -d "$CPP"; then
13252 CPP=
13253fi
13254if test -z "$CPP"; then
13255 if test ${ac_cv_prog_CPP+y}
13256then :
13257 printf %s "(cached) " >&6
13258else $as_nop
13259 # Double quotes because $CC needs to be expanded
13260 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
13261 do
13262 ac_preproc_ok=false
13263for ac_c_preproc_warn_flag in '' yes
13264do
13265 # Use a header file that comes with gcc, so configuring glibc
13266 # with a fresh cross-compiler works.
13267 # On the NeXT, cc -E runs the code through the compiler's parser,
13268 # not just through cpp. "Syntax error" is here to catch this case.
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270/* end confdefs.h. */
13271#include <limits.h>
13272 Syntax error
13273_ACEOF
13274if ac_fn_c_try_cpp "$LINENO"
13275then :
13276
13277else $as_nop
13278 # Broken: fails on valid input.
13279continue
13280fi
13281rm -f conftest.err conftest.i conftest.$ac_ext
13282
13283 # OK, works on sane cases. Now check whether nonexistent headers
13284 # can be detected and how.
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286/* end confdefs.h. */
13287#include <ac_nonexistent.h>
13288_ACEOF
13289if ac_fn_c_try_cpp "$LINENO"
13290then :
13291 # Broken: success on invalid input.
13292continue
13293else $as_nop
13294 # Passes both tests.
13295ac_preproc_ok=:
13296break
13297fi
13298rm -f conftest.err conftest.i conftest.$ac_ext
13299
13300done
13301# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13302rm -f conftest.i conftest.err conftest.$ac_ext
13303if $ac_preproc_ok
13304then :
13305 break
13306fi
13307
13308 done
13309 ac_cv_prog_CPP=$CPP
13310
13311fi
13312 CPP=$ac_cv_prog_CPP
13313else
13314 ac_cv_prog_CPP=$CPP
13315fi
13316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13317printf "%s\n" "$CPP" >&6; }
13318ac_preproc_ok=false
13319for ac_c_preproc_warn_flag in '' yes
13320do
13321 # Use a header file that comes with gcc, so configuring glibc
13322 # with a fresh cross-compiler works.
13323 # On the NeXT, cc -E runs the code through the compiler's parser,
13324 # not just through cpp. "Syntax error" is here to catch this case.
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326/* end confdefs.h. */
13327#include <limits.h>
13328 Syntax error
13329_ACEOF
13330if ac_fn_c_try_cpp "$LINENO"
13331then :
13332
13333else $as_nop
13334 # Broken: fails on valid input.
13335continue
13336fi
13337rm -f conftest.err conftest.i conftest.$ac_ext
13338
13339 # OK, works on sane cases. Now check whether nonexistent headers
13340 # can be detected and how.
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342/* end confdefs.h. */
13343#include <ac_nonexistent.h>
13344_ACEOF
13345if ac_fn_c_try_cpp "$LINENO"
13346then :
13347 # Broken: success on invalid input.
13348continue
13349else $as_nop
13350 # Passes both tests.
13351ac_preproc_ok=:
13352break
13353fi
13354rm -f conftest.err conftest.i conftest.$ac_ext
13355
13356done
13357# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13358rm -f conftest.i conftest.err conftest.$ac_ext
13359if $ac_preproc_ok
13360then :
13361
13362else $as_nop
13363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13364printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13365as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13366See \`config.log' for more details" "$LINENO" 5; }
13367fi
13368
13369ac_ext=c
13370ac_cpp='$CPP $CPPFLAGS'
13371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13373ac_compiler_gnu=$ac_cv_c_compiler_gnu
13374
13375
13376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert2433a222019-01-11 06:11:25 +000013377/* end confdefs.h. */
13378 # include <scsi/sg.h>
13379 #ifdef SG_IOSUBMIT
13380 found
13381 #endif
13382
13383_ACEOF
13384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Douglas Gilbert891844a2022-04-24 18:11:56 +000013385 $EGREP "found" >/dev/null 2>&1
13386then :
Douglas Gilbert2433a222019-01-11 06:11:25 +000013387
Douglas Gilbert891844a2022-04-24 18:11:56 +000013388printf "%s\n" "#define HAVE_LINUX_SG_V4_HDR 1" >>confdefs.h
Douglas Gilbert2433a222019-01-11 06:11:25 +000013389
13390fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000013391rm -rf conftest*
Douglas Gilbert2433a222019-01-11 06:11:25 +000013392
Douglas Gilbert2433a222019-01-11 06:11:25 +000013393}
13394
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013395case "${host}" in
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013396 *-*-android*)
13397
Douglas Gilbert891844a2022-04-24 18:11:56 +000013398printf "%s\n" "#define SG_LIB_ANDROID 1" >>confdefs.h
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013399
13400
Douglas Gilbert891844a2022-04-24 18:11:56 +000013401printf "%s\n" "#define SG_LIB_LINUX 1" >>confdefs.h
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013402
Douglas Gilbert2433a222019-01-11 06:11:25 +000013403 check_for_linux_sg_v4_hdr
Douglas Gilbert9ccb5562021-03-28 00:58:36 +000013404 check_for_getrandom
Douglas Gilberta0df1982018-01-03 05:40:58 +000013405 check_for_linux_nvme_headers;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013406 *-*-freebsd*|*-*-kfreebsd*-gnu*)
13407
Douglas Gilbert891844a2022-04-24 18:11:56 +000013408printf "%s\n" "#define SG_LIB_FREEBSD 1" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013409
Douglas Gilbertcad48992017-11-15 06:21:21 +000013410
Douglas Gilbert891844a2022-04-24 18:11:56 +000013411printf "%s\n" "#define HAVE_NVME 1" >>confdefs.h
Douglas Gilbertcad48992017-11-15 06:21:21 +000013412
Douglas Gilbert9ccb5562021-03-28 00:58:36 +000013413 check_for_getrandom
Douglas Gilberta0df1982018-01-03 05:40:58 +000013414 LIBS="$LIBS -lcam";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013415 *-*-solaris*)
13416
Douglas Gilbert891844a2022-04-24 18:11:56 +000013417printf "%s\n" "#define SG_LIB_SOLARIS 1" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013418;;
Douglas Gilbertbee57c52021-06-11 03:57:05 +000013419 *-*-netbsd*)
13420
Douglas Gilbert891844a2022-04-24 18:11:56 +000013421printf "%s\n" "#define SG_LIB_NETBSD 1" >>confdefs.h
Douglas Gilbertbee57c52021-06-11 03:57:05 +000013422;;
13423 *-*-openbsd*)
13424
Douglas Gilbert891844a2022-04-24 18:11:56 +000013425printf "%s\n" "#define SG_LIB_OPENBSD 1" >>confdefs.h
Douglas Gilbertbee57c52021-06-11 03:57:05 +000013426;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013427 *-*-osf*)
13428
Douglas Gilbert891844a2022-04-24 18:11:56 +000013429printf "%s\n" "#define SG_LIB_OSF1 1" >>confdefs.h
Douglas Gilberta0df1982018-01-03 05:40:58 +000013430;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013431 *-*-cygwin*)
13432
Douglas Gilbert891844a2022-04-24 18:11:56 +000013433printf "%s\n" "#define SG_LIB_WIN32 1" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013434
Douglas Gilbert5bdce502018-02-11 05:01:16 +000013435 # AC_CHECK_HEADERS([nvme.h], [AC_DEFINE_UNQUOTED(HAVE_NVME, 1, [Found NVMe])], [], [])
Douglas Gilbert9fe92182018-02-04 21:44:28 +000013436
Douglas Gilbert891844a2022-04-24 18:11:56 +000013437printf "%s\n" "#define HAVE_NVME 1" >>confdefs.h
Douglas Gilbert9fe92182018-02-04 21:44:28 +000013438
Douglas Gilbert9ccb5562021-03-28 00:58:36 +000013439 check_for_getrandom
Douglas Gilberta0df1982018-01-03 05:40:58 +000013440 CFLAGS="$CFLAGS -Wno-char-subscripts";;
Douglas Gilbert9e6d5132021-11-15 16:36:13 +000013441 *-*-mingw* | *-*-msys*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013442
Douglas Gilbert891844a2022-04-24 18:11:56 +000013443printf "%s\n" "#define SG_LIB_WIN32 1" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013444
13445
Douglas Gilbert891844a2022-04-24 18:11:56 +000013446printf "%s\n" "#define SG_LIB_MINGW 1" >>confdefs.h
Douglas Gilbert400444e2018-01-19 13:08:58 +000013447
Douglas Gilbert5bdce502018-02-11 05:01:16 +000013448 # AC_CHECK_HEADERS([nvme.h], [AC_DEFINE_UNQUOTED(HAVE_NVME, 1, [Found NVMe])], [], [])
Douglas Gilbert9fe92182018-02-04 21:44:28 +000013449
Douglas Gilbert891844a2022-04-24 18:11:56 +000013450printf "%s\n" "#define HAVE_NVME 1" >>confdefs.h
Douglas Gilbert9fe92182018-02-04 21:44:28 +000013451
Douglas Gilbert9ccb5562021-03-28 00:58:36 +000013452 check_for_getrandom
Douglas Gilbert400444e2018-01-19 13:08:58 +000013453 CFLAGS="$CFLAGS -D__USE_MINGW_ANSI_STDIO";;
Douglas Gilbert26be8552021-11-16 18:20:33 +000013454 *-*-linux-gnu* | *-*-linux* | *-*-uclinux-gnu* | *-*-uclinux*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013455
Douglas Gilbert891844a2022-04-24 18:11:56 +000013456printf "%s\n" "#define SG_LIB_LINUX 1" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013457
Douglas Gilbert2433a222019-01-11 06:11:25 +000013458 check_for_linux_sg_v4_hdr
Douglas Gilbert9ccb5562021-03-28 00:58:36 +000013459 check_for_getrandom
Douglas Gilberta0df1982018-01-03 05:40:58 +000013460 check_for_linux_nvme_headers;;
Douglas Gilbert303f8c92021-06-23 18:09:48 +000013461 *-*-haiku*)
13462
Douglas Gilbert891844a2022-04-24 18:11:56 +000013463printf "%s\n" "#define SG_LIB_HAIKU 1" >>confdefs.h
Douglas Gilbert303f8c92021-06-23 18:09:48 +000013464
13465 os_cflags=''
13466
13467 os_libs=''
13468 ;;
13469 *)
13470
Douglas Gilbert891844a2022-04-24 18:11:56 +000013471printf "%s\n" "#define SG_LIB_OTHER 1" >>confdefs.h
Douglas Gilbert303f8c92021-06-23 18:09:48 +000013472
13473 isother=yes;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013474esac
13475
13476# Define platform-specific symbol.
13477 if echo $host_os | grep 'freebsd' > /dev/null; then
13478 OS_FREEBSD_TRUE=
13479 OS_FREEBSD_FALSE='#'
13480else
13481 OS_FREEBSD_TRUE='#'
13482 OS_FREEBSD_FALSE=
13483fi
13484
Douglas Gilbert901931c2021-10-31 01:36:51 +000013485 if echo $host_os | grep -E '^(uc)?linux' > /dev/null; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013486 OS_LINUX_TRUE=
13487 OS_LINUX_FALSE='#'
13488else
13489 OS_LINUX_TRUE='#'
13490 OS_LINUX_FALSE=
13491fi
13492
13493 if echo $host_os | grep '^osf' > /dev/null; then
13494 OS_OSF_TRUE=
13495 OS_OSF_FALSE='#'
13496else
13497 OS_OSF_TRUE='#'
13498 OS_OSF_FALSE=
13499fi
13500
13501 if echo $host_os | grep '^solaris' > /dev/null; then
13502 OS_SOLARIS_TRUE=
13503 OS_SOLARIS_FALSE='#'
13504else
13505 OS_SOLARIS_TRUE='#'
13506 OS_SOLARIS_FALSE=
13507fi
13508
13509 if echo $host_os | grep '^mingw' > /dev/null; then
13510 OS_WIN32_MINGW_TRUE=
13511 OS_WIN32_MINGW_FALSE='#'
13512else
13513 OS_WIN32_MINGW_TRUE='#'
13514 OS_WIN32_MINGW_FALSE=
13515fi
13516
13517 if echo $host_os | grep '^cygwin' > /dev/null; then
13518 OS_WIN32_CYGWIN_TRUE=
13519 OS_WIN32_CYGWIN_FALSE='#'
13520else
13521 OS_WIN32_CYGWIN_TRUE='#'
13522 OS_WIN32_CYGWIN_FALSE=
13523fi
13524
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013525 if echo $host_os | grep 'android' > /dev/null; then
13526 OS_ANDROID_TRUE=
13527 OS_ANDROID_FALSE='#'
13528else
13529 OS_ANDROID_TRUE='#'
13530 OS_ANDROID_FALSE=
13531fi
13532
Douglas Gilbertbee57c52021-06-11 03:57:05 +000013533 if echo $host_os | grep 'netbsd' > /dev/null; then
13534 OS_NETBSD_TRUE=
13535 OS_NETBSD_FALSE='#'
13536else
13537 OS_NETBSD_TRUE='#'
13538 OS_NETBSD_FALSE=
13539fi
13540
13541 if echo $host_os | grep 'openbsd' > /dev/null; then
13542 OS_OPENBSD_TRUE=
13543 OS_OPENBSD_FALSE='#'
13544else
13545 OS_OPENBSD_TRUE='#'
13546 OS_OPENBSD_FALSE=
13547fi
13548
Douglas Gilbert303f8c92021-06-23 18:09:48 +000013549 if echo $host_os | grep '^haiku' > /dev/null; then
13550 OS_HAIKU_TRUE=
13551 OS_HAIKU_FALSE='#'
13552else
13553 OS_HAIKU_TRUE='#'
13554 OS_HAIKU_FALSE=
13555fi
13556
13557 if test "x$isother" = "xyes"; then
13558 OS_OTHER_TRUE=
13559 OS_OTHER_FALSE='#'
13560else
13561 OS_OTHER_TRUE='#'
13562 OS_OTHER_FALSE=
13563fi
13564
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013565
Douglas Gilbert3ef85502018-06-29 09:46:13 +000013566# Check whether --enable-debug was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +000013567if test ${enable_debug+y}
13568then :
Douglas Gilbert3ef85502018-06-29 09:46:13 +000013569 enableval=$enable_debug; case "${enableval}" in
13570 yes) debug=true ;;
13571 no) debug=false ;;
13572 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
13573 esac
Douglas Gilbert891844a2022-04-24 18:11:56 +000013574else $as_nop
Douglas Gilbert3ef85502018-06-29 09:46:13 +000013575 debug=false
13576fi
13577
13578 if test x$debug = xtrue; then
13579 DEBUG_TRUE=
13580 DEBUG_FALSE='#'
13581else
13582 DEBUG_TRUE='#'
13583 DEBUG_FALSE=
13584fi
13585
13586
Douglas Gilbertbee57c52021-06-11 03:57:05 +000013587# Check whether --enable-pt_dummy was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +000013588if test ${enable_pt_dummy+y}
13589then :
Douglas Gilbertbee57c52021-06-11 03:57:05 +000013590 enableval=$enable_pt_dummy; case "${enableval}" in
13591 yes) pt_dummy=true ;;
13592 no) pt_dummy=false ;;
13593 *) as_fn_error $? "bad value ${enableval} for --enable-dummy_pt" "$LINENO" 5 ;;
13594 esac
Douglas Gilbert891844a2022-04-24 18:11:56 +000013595else $as_nop
Douglas Gilbertbee57c52021-06-11 03:57:05 +000013596 pt_dummy=false
13597fi
13598
13599 if test x$pt_dummy = xtrue; then
13600 PT_DUMMY_TRUE=
13601 PT_DUMMY_FALSE='#'
13602else
13603 PT_DUMMY_TRUE='#'
13604 PT_DUMMY_FALSE=
13605fi
13606
13607
Douglas Gilbert60c487d2012-03-12 17:03:41 +000013608# Check whether --enable-linuxbsg was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +000013609if test ${enable_linuxbsg+y}
13610then :
Douglas Gilbert60c487d2012-03-12 17:03:41 +000013611 enableval=$enable_linuxbsg;
Douglas Gilbert891844a2022-04-24 18:11:56 +000013612printf "%s\n" "#define IGNORE_LINUX_BSG 1" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013613
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013614fi
13615
13616
13617# Check whether --enable-win32-spt-direct was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +000013618if test ${enable_win32_spt_direct+y}
13619then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013620 enableval=$enable_win32_spt_direct;
Douglas Gilbert891844a2022-04-24 18:11:56 +000013621printf "%s\n" "#define WIN32_SPT_DIRECT 1" >>confdefs.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013622
13623
13624fi
13625
13626
Douglas Gilbert60c487d2012-03-12 17:03:41 +000013627# Check whether --enable-scsistrings was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +000013628if test ${enable_scsistrings+y}
13629then :
Douglas Gilbert60c487d2012-03-12 17:03:41 +000013630 enableval=$enable_scsistrings;
Douglas Gilbert891844a2022-04-24 18:11:56 +000013631else $as_nop
Douglas Gilbert60c487d2012-03-12 17:03:41 +000013632
Douglas Gilbert891844a2022-04-24 18:11:56 +000013633printf "%s\n" "#define SG_SCSI_STRINGS 1" >>confdefs.h
Douglas Gilbert60c487d2012-03-12 17:03:41 +000013634
13635fi
13636
13637
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013638# Check whether --enable-nvme-supp was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +000013639if test ${enable_nvme_supp+y}
13640then :
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013641 enableval=$enable_nvme_supp;
Douglas Gilbert891844a2022-04-24 18:11:56 +000013642printf "%s\n" "#define IGNORE_NVME 1" >>confdefs.h
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013643
13644fi
13645
13646
Douglas Gilbert760a4bd2018-03-16 09:38:38 +000013647# Check whether --enable-fast-lebe was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +000013648if test ${enable_fast_lebe+y}
13649then :
Douglas Gilbert760a4bd2018-03-16 09:38:38 +000013650 enableval=$enable_fast_lebe;
Douglas Gilbert891844a2022-04-24 18:11:56 +000013651printf "%s\n" "#define IGNORE_FAST_LEBE 1" >>confdefs.h
Douglas Gilbert760a4bd2018-03-16 09:38:38 +000013652
13653fi
13654
13655
Douglas Gilbertd906e8c2018-12-13 18:50:10 +000013656# Check whether --enable-linux-sgv4 was given.
Douglas Gilbert891844a2022-04-24 18:11:56 +000013657if test ${enable_linux_sgv4+y}
13658then :
Douglas Gilbertd906e8c2018-12-13 18:50:10 +000013659 enableval=$enable_linux_sgv4;
Douglas Gilbert891844a2022-04-24 18:11:56 +000013660printf "%s\n" "#define IGNORE_LINUX_SGV4 1" >>confdefs.h
Douglas Gilbertd906e8c2018-12-13 18:50:10 +000013661
13662fi
13663
13664
Douglas Gilbert4a5962a2018-02-08 14:40:26 +000013665
Douglas Gilbertfaeffd02013-05-15 13:35:46 +000013666ac_config_files="$ac_config_files Makefile include/Makefile lib/Makefile src/Makefile doc/Makefile scripts/Makefile"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013667
13668cat >confcache <<\_ACEOF
13669# This file is a shell script that caches the results of configure
13670# tests run on this system so they can be shared between configure
13671# scripts and configure runs, see configure's option --config-cache.
13672# It is not useful on other systems. If it contains results you don't
13673# want to keep, you may remove or edit it.
13674#
13675# config.status only pays attention to the cache file if you give it
13676# the --recheck option to rerun configure.
13677#
13678# `ac_cv_env_foo' variables (set or unset) will be overridden when
13679# loading this file, other *unset* `ac_cv_foo' will be assigned the
13680# following values.
13681
13682_ACEOF
13683
13684# The following way of writing the cache mishandles newlines in values,
13685# but we know of no workaround that is simple, portable, and efficient.
13686# So, we kill variables containing newlines.
13687# Ultrix sh set writes to stderr and can't be redirected directly,
13688# and sets the high bit in the cache file unless we assign to the vars.
13689(
13690 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13691 eval ac_val=\$$ac_var
13692 case $ac_val in #(
13693 *${as_nl}*)
13694 case $ac_var in #(
Douglas Gilbert891844a2022-04-24 18:11:56 +000013695 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13696printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013697 esac
13698 case $ac_var in #(
13699 _ | IFS | as_nl) ;; #(
13700 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13701 *) { eval $ac_var=; unset $ac_var;} ;;
13702 esac ;;
13703 esac
13704 done
13705
13706 (set) 2>&1 |
13707 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13708 *${as_nl}ac_space=\ *)
13709 # `set' does not quote correctly, so add quotes: double-quote
13710 # substitution turns \\\\ into \\, and sed turns \\ into \.
13711 sed -n \
13712 "s/'/'\\\\''/g;
13713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13714 ;; #(
13715 *)
13716 # `set' quotes correctly as required by POSIX, so do not add quotes.
13717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13718 ;;
13719 esac |
13720 sort
13721) |
13722 sed '
13723 /^ac_cv_env_/b end
13724 t clear
13725 :clear
Douglas Gilbert891844a2022-04-24 18:11:56 +000013726 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013727 t end
13728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13729 :end' >>confcache
13730if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13731 if test -w "$cache_file"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000013732 if test "x$cache_file" != "x/dev/null"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +000013733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13734printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
Douglas Gilbertc978e062011-12-06 21:50:07 +000013735 if test ! -f "$cache_file" || test -h "$cache_file"; then
13736 cat confcache >"$cache_file"
13737 else
13738 case $cache_file in #(
13739 */* | ?:*)
13740 mv -f confcache "$cache_file"$$ &&
13741 mv -f "$cache_file"$$ "$cache_file" ;; #(
13742 *)
13743 mv -f confcache "$cache_file" ;;
13744 esac
13745 fi
13746 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013747 else
Douglas Gilbert891844a2022-04-24 18:11:56 +000013748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13749printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013750 fi
13751fi
13752rm -f confcache
13753
13754test "x$prefix" = xNONE && prefix=$ac_default_prefix
13755# Let make expand exec_prefix.
13756test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13757
13758DEFS=-DHAVE_CONFIG_H
13759
13760ac_libobjs=
13761ac_ltlibobjs=
13762for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13763 # 1. Remove the extension, and $U if already installed.
13764 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Douglas Gilbert891844a2022-04-24 18:11:56 +000013765 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013766 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13767 # will be set to the directory where LIBOBJS objects are built.
13768 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13769 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13770done
13771LIBOBJS=$ac_libobjs
13772
13773LTLIBOBJS=$ac_ltlibobjs
13774
13775
Douglas Gilbert891844a2022-04-24 18:11:56 +000013776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13777printf %s "checking that generated files are newer than configure... " >&6; }
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000013778 if test -n "$am_sleep_pid"; then
13779 # Hide warnings about reused PIDs.
13780 wait $am_sleep_pid 2>/dev/null
13781 fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000013782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13783printf "%s\n" "done" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013784 if test -n "$EXEEXT"; then
13785 am__EXEEXT_TRUE=
13786 am__EXEEXT_FALSE='#'
13787else
13788 am__EXEEXT_TRUE='#'
13789 am__EXEEXT_FALSE=
13790fi
13791
13792if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013793 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013794Usually this means the macro was only invoked conditionally." "$LINENO" 5
13795fi
13796if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013797 as_fn_error $? "conditional \"AMDEP\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013798Usually this means the macro was only invoked conditionally." "$LINENO" 5
13799fi
13800if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013801 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013802Usually this means the macro was only invoked conditionally." "$LINENO" 5
13803fi
13804if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013805 as_fn_error $? "conditional \"OS_FREEBSD\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013806Usually this means the macro was only invoked conditionally." "$LINENO" 5
13807fi
13808if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013809 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013810Usually this means the macro was only invoked conditionally." "$LINENO" 5
13811fi
13812if test -z "${OS_OSF_TRUE}" && test -z "${OS_OSF_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013813 as_fn_error $? "conditional \"OS_OSF\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013814Usually this means the macro was only invoked conditionally." "$LINENO" 5
13815fi
13816if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013817 as_fn_error $? "conditional \"OS_SOLARIS\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013818Usually this means the macro was only invoked conditionally." "$LINENO" 5
13819fi
13820if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013821 as_fn_error $? "conditional \"OS_WIN32_MINGW\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013822Usually this means the macro was only invoked conditionally." "$LINENO" 5
13823fi
13824if test -z "${OS_WIN32_CYGWIN_TRUE}" && test -z "${OS_WIN32_CYGWIN_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013825 as_fn_error $? "conditional \"OS_WIN32_CYGWIN\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013826Usually this means the macro was only invoked conditionally." "$LINENO" 5
13827fi
Douglas Gilbertb29ef852017-12-29 18:23:19 +000013828if test -z "${OS_ANDROID_TRUE}" && test -z "${OS_ANDROID_FALSE}"; then
13829 as_fn_error $? "conditional \"OS_ANDROID\" was never defined.
13830Usually this means the macro was only invoked conditionally." "$LINENO" 5
13831fi
Douglas Gilbertbee57c52021-06-11 03:57:05 +000013832if test -z "${OS_NETBSD_TRUE}" && test -z "${OS_NETBSD_FALSE}"; then
13833 as_fn_error $? "conditional \"OS_NETBSD\" was never defined.
13834Usually this means the macro was only invoked conditionally." "$LINENO" 5
13835fi
13836if test -z "${OS_OPENBSD_TRUE}" && test -z "${OS_OPENBSD_FALSE}"; then
13837 as_fn_error $? "conditional \"OS_OPENBSD\" was never defined.
13838Usually this means the macro was only invoked conditionally." "$LINENO" 5
13839fi
Douglas Gilbert303f8c92021-06-23 18:09:48 +000013840if test -z "${OS_HAIKU_TRUE}" && test -z "${OS_HAIKU_FALSE}"; then
13841 as_fn_error $? "conditional \"OS_HAIKU\" was never defined.
13842Usually this means the macro was only invoked conditionally." "$LINENO" 5
13843fi
13844if test -z "${OS_OTHER_TRUE}" && test -z "${OS_OTHER_FALSE}"; then
13845 as_fn_error $? "conditional \"OS_OTHER\" was never defined.
13846Usually this means the macro was only invoked conditionally." "$LINENO" 5
13847fi
Douglas Gilbert3ef85502018-06-29 09:46:13 +000013848if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
13849 as_fn_error $? "conditional \"DEBUG\" was never defined.
13850Usually this means the macro was only invoked conditionally." "$LINENO" 5
13851fi
Douglas Gilbertbee57c52021-06-11 03:57:05 +000013852if test -z "${PT_DUMMY_TRUE}" && test -z "${PT_DUMMY_FALSE}"; then
13853 as_fn_error $? "conditional \"PT_DUMMY\" was never defined.
13854Usually this means the macro was only invoked conditionally." "$LINENO" 5
13855fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013856
Douglas Gilbertc978e062011-12-06 21:50:07 +000013857: "${CONFIG_STATUS=./config.status}"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013858ac_write_fail=0
13859ac_clean_files_save=$ac_clean_files
13860ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Douglas Gilbert891844a2022-04-24 18:11:56 +000013861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13862printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013863as_write_fail=0
13864cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13865#! $SHELL
13866# Generated by $as_me.
13867# Run this file to recreate the current configuration.
13868# Compiler output produced by configure, useful for debugging
13869# configure, is in config.log if it exists.
13870
13871debug=false
13872ac_cs_recheck=false
13873ac_cs_silent=false
13874
13875SHELL=\${CONFIG_SHELL-$SHELL}
13876export SHELL
13877_ASEOF
13878cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13879## -------------------- ##
13880## M4sh Initialization. ##
13881## -------------------- ##
13882
13883# Be more Bourne compatible
13884DUALCASE=1; export DUALCASE # for MKS sh
Douglas Gilbert891844a2022-04-24 18:11:56 +000013885as_nop=:
13886if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13887then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013888 emulate sh
13889 NULLCMD=:
13890 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13891 # is contrary to our usage. Disable this feature.
13892 alias -g '${1+"$@"}'='"$@"'
13893 setopt NO_GLOB_SUBST
Douglas Gilbert891844a2022-04-24 18:11:56 +000013894else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013895 case `(set -o) 2>/dev/null` in #(
13896 *posix*) :
13897 set -o posix ;; #(
13898 *) :
13899 ;;
13900esac
13901fi
13902
13903
Douglas Gilbert891844a2022-04-24 18:11:56 +000013904
13905# Reset variables that may have inherited troublesome values from
13906# the environment.
13907
13908# IFS needs to be set, to space, tab, and newline, in precisely that order.
13909# (If _AS_PATH_WALK were called with IFS unset, it would have the
13910# side effect of setting IFS to empty, thus disabling word splitting.)
13911# Quoting is to prevent editors from complaining about space-tab.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013912as_nl='
13913'
13914export as_nl
Douglas Gilbert891844a2022-04-24 18:11:56 +000013915IFS=" "" $as_nl"
13916
13917PS1='$ '
13918PS2='> '
13919PS4='+ '
13920
13921# Ensure predictable behavior from utilities with locale-dependent output.
13922LC_ALL=C
13923export LC_ALL
13924LANGUAGE=C
13925export LANGUAGE
13926
13927# We cannot yet rely on "unset" to work, but we need these variables
13928# to be unset--not just set to an empty or harmless value--now, to
13929# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
13930# also avoids known problems related to "unset" and subshell syntax
13931# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13932for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13933do eval test \${$as_var+y} \
13934 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13935done
13936
13937# Ensure that fds 0, 1, and 2 are open.
13938if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13939if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13940if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013941
13942# The user is always right.
Douglas Gilbert891844a2022-04-24 18:11:56 +000013943if ${PATH_SEPARATOR+false} :; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013944 PATH_SEPARATOR=:
13945 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13946 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13947 PATH_SEPARATOR=';'
13948 }
13949fi
13950
13951
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013952# Find who we are. Look in the path if we contain no directory separator.
Douglas Gilbertc978e062011-12-06 21:50:07 +000013953as_myself=
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013954case $0 in #((
13955 *[\\/]* ) as_myself=$0 ;;
13956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957for as_dir in $PATH
13958do
13959 IFS=$as_save_IFS
Douglas Gilbert891844a2022-04-24 18:11:56 +000013960 case $as_dir in #(((
13961 '') as_dir=./ ;;
13962 */) ;;
13963 *) as_dir=$as_dir/ ;;
13964 esac
13965 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013966 done
13967IFS=$as_save_IFS
13968
13969 ;;
13970esac
13971# We did not find ourselves, most probably we were run as `sh COMMAND'
13972# in which case we are not to be found in the path.
13973if test "x$as_myself" = x; then
13974 as_myself=$0
13975fi
13976if test ! -f "$as_myself"; then
Douglas Gilbert891844a2022-04-24 18:11:56 +000013977 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013978 exit 1
13979fi
13980
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013981
13982
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013983# as_fn_error STATUS ERROR [LINENO LOG_FD]
13984# ----------------------------------------
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013985# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13986# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013987# script with STATUS, using 1 if that was 0.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013988as_fn_error ()
13989{
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013990 as_status=$1; test $as_status -eq 0 && as_status=1
13991 if test "$4"; then
13992 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Douglas Gilbert891844a2022-04-24 18:11:56 +000013993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013994 fi
Douglas Gilbert891844a2022-04-24 18:11:56 +000013995 printf "%s\n" "$as_me: error: $2" >&2
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013996 as_fn_exit $as_status
13997} # as_fn_error
13998
13999
Douglas Gilbert891844a2022-04-24 18:11:56 +000014000
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014001# as_fn_set_status STATUS
14002# -----------------------
14003# Set $? to STATUS, without forking.
14004as_fn_set_status ()
14005{
14006 return $1
14007} # as_fn_set_status
14008
14009# as_fn_exit STATUS
14010# -----------------
14011# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14012as_fn_exit ()
14013{
14014 set +e
14015 as_fn_set_status $1
14016 exit $1
14017} # as_fn_exit
14018
14019# as_fn_unset VAR
14020# ---------------
14021# Portably unset VAR.
14022as_fn_unset ()
14023{
14024 { eval $1=; unset $1;}
14025}
14026as_unset=as_fn_unset
Douglas Gilbert891844a2022-04-24 18:11:56 +000014027
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014028# as_fn_append VAR VALUE
14029# ----------------------
14030# Append the text in VALUE to the end of the definition contained in VAR. Take
14031# advantage of any shell optimizations that allow amortized linear growth over
14032# repeated appends, instead of the typical quadratic growth present in naive
14033# implementations.
Douglas Gilbert891844a2022-04-24 18:11:56 +000014034if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14035then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014036 eval 'as_fn_append ()
14037 {
14038 eval $1+=\$2
14039 }'
Douglas Gilbert891844a2022-04-24 18:11:56 +000014040else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014041 as_fn_append ()
14042 {
14043 eval $1=\$$1\$2
14044 }
14045fi # as_fn_append
14046
14047# as_fn_arith ARG...
14048# ------------------
14049# Perform arithmetic evaluation on the ARGs, and store the result in the
14050# global $as_val. Take advantage of shells that can avoid forks. The arguments
14051# must be portable across $(()) and expr.
Douglas Gilbert891844a2022-04-24 18:11:56 +000014052if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14053then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014054 eval 'as_fn_arith ()
14055 {
14056 as_val=$(( $* ))
14057 }'
Douglas Gilbert891844a2022-04-24 18:11:56 +000014058else $as_nop
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014059 as_fn_arith ()
14060 {
14061 as_val=`expr "$@" || test $? -eq 1`
14062 }
14063fi # as_fn_arith
14064
14065
14066if expr a : '\(a\)' >/dev/null 2>&1 &&
14067 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14068 as_expr=expr
14069else
14070 as_expr=false
14071fi
14072
14073if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14074 as_basename=basename
14075else
14076 as_basename=false
14077fi
14078
14079if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14080 as_dirname=dirname
14081else
14082 as_dirname=false
14083fi
14084
14085as_me=`$as_basename -- "$0" ||
14086$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14087 X"$0" : 'X\(//\)$' \| \
14088 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Douglas Gilbert891844a2022-04-24 18:11:56 +000014089printf "%s\n" X/"$0" |
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014090 sed '/^.*\/\([^/][^/]*\)\/*$/{
14091 s//\1/
14092 q
14093 }
14094 /^X\/\(\/\/\)$/{
14095 s//\1/
14096 q
14097 }
14098 /^X\/\(\/\).*/{
14099 s//\1/
14100 q
14101 }
14102 s/.*/./; q'`
14103
14104# Avoid depending upon Character Ranges.
14105as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14106as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14107as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14108as_cr_digits='0123456789'
14109as_cr_alnum=$as_cr_Letters$as_cr_digits
14110
Douglas Gilbert891844a2022-04-24 18:11:56 +000014111
14112# Determine whether it's possible to make 'echo' print without a newline.
14113# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14114# for compatibility with existing Makefiles.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014115ECHO_C= ECHO_N= ECHO_T=
14116case `echo -n x` in #(((((
14117-n*)
14118 case `echo 'xy\c'` in
14119 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14120 xy) ECHO_C='\c';;
14121 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14122 ECHO_T=' ';;
14123 esac;;
14124*)
14125 ECHO_N='-n';;
14126esac
14127
Douglas Gilbert891844a2022-04-24 18:11:56 +000014128# For backward compatibility with old third-party macros, we provide
14129# the shell variables $as_echo and $as_echo_n. New code should use
14130# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14131as_echo='printf %s\n'
14132as_echo_n='printf %s'
14133
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014134rm -f conf$$ conf$$.exe conf$$.file
14135if test -d conf$$.dir; then
14136 rm -f conf$$.dir/conf$$.file
14137else
14138 rm -f conf$$.dir
14139 mkdir conf$$.dir 2>/dev/null
14140fi
14141if (echo >conf$$.file) 2>/dev/null; then
14142 if ln -s conf$$.file conf$$ 2>/dev/null; then
14143 as_ln_s='ln -s'
14144 # ... but there are two gotchas:
14145 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14146 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Douglas Gilbert59d30db2012-12-10 04:59:22 +000014147 # In both cases, we have to default to `cp -pR'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014148 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Douglas Gilbert59d30db2012-12-10 04:59:22 +000014149 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014150 elif ln conf$$.file conf$$ 2>/dev/null; then
14151 as_ln_s=ln
14152 else
Douglas Gilbert59d30db2012-12-10 04:59:22 +000014153 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014154 fi
14155else
Douglas Gilbert59d30db2012-12-10 04:59:22 +000014156 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014157fi
14158rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14159rmdir conf$$.dir 2>/dev/null
14160
14161
14162# as_fn_mkdir_p
14163# -------------
14164# Create "$as_dir" as a directory, including parents if necessary.
14165as_fn_mkdir_p ()
14166{
14167
14168 case $as_dir in #(
14169 -*) as_dir=./$as_dir;;
14170 esac
14171 test -d "$as_dir" || eval $as_mkdir_p || {
14172 as_dirs=
14173 while :; do
14174 case $as_dir in #(
Douglas Gilbert891844a2022-04-24 18:11:56 +000014175 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014176 *) as_qdir=$as_dir;;
14177 esac
14178 as_dirs="'$as_qdir' $as_dirs"
14179 as_dir=`$as_dirname -- "$as_dir" ||
14180$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14181 X"$as_dir" : 'X\(//\)[^/]' \| \
14182 X"$as_dir" : 'X\(//\)$' \| \
14183 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Douglas Gilbert891844a2022-04-24 18:11:56 +000014184printf "%s\n" X"$as_dir" |
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14186 s//\1/
14187 q
14188 }
14189 /^X\(\/\/\)[^/].*/{
14190 s//\1/
14191 q
14192 }
14193 /^X\(\/\/\)$/{
14194 s//\1/
14195 q
14196 }
14197 /^X\(\/\).*/{
14198 s//\1/
14199 q
14200 }
14201 s/.*/./; q'`
14202 test -d "$as_dir" && break
14203 done
14204 test -z "$as_dirs" || eval "mkdir $as_dirs"
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014205 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014206
14207
14208} # as_fn_mkdir_p
14209if mkdir -p . 2>/dev/null; then
14210 as_mkdir_p='mkdir -p "$as_dir"'
14211else
14212 test -d ./-p && rmdir ./-p
14213 as_mkdir_p=false
14214fi
14215
Douglas Gilbert59d30db2012-12-10 04:59:22 +000014216
14217# as_fn_executable_p FILE
14218# -----------------------
14219# Test if FILE is an executable regular file.
14220as_fn_executable_p ()
14221{
14222 test -f "$1" && test -x "$1"
14223} # as_fn_executable_p
14224as_test_x='test -x'
14225as_executable_p=as_fn_executable_p
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014226
14227# Sed expression to map a string onto a valid CPP name.
14228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14229
14230# Sed expression to map a string onto a valid variable name.
14231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14232
14233
14234exec 6>&1
14235## ----------------------------------- ##
14236## Main body of $CONFIG_STATUS script. ##
14237## ----------------------------------- ##
14238_ASEOF
14239test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14240
14241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14242# Save the log message, to keep $0 and so on meaningful, and to
14243# report actual input values of CONFIG_FILES etc. instead of their
14244# values after options handling.
14245ac_log="
Douglas Gilbert9e6d5132021-11-15 16:36:13 +000014246This file was extended by sg3_utils $as_me 1.48, which was
Douglas Gilbert891844a2022-04-24 18:11:56 +000014247generated by GNU Autoconf 2.71. Invocation command line was
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014248
14249 CONFIG_FILES = $CONFIG_FILES
14250 CONFIG_HEADERS = $CONFIG_HEADERS
14251 CONFIG_LINKS = $CONFIG_LINKS
14252 CONFIG_COMMANDS = $CONFIG_COMMANDS
14253 $ $0 $@
14254
14255on `(hostname || uname -n) 2>/dev/null | sed 1q`
14256"
14257
14258_ACEOF
14259
14260case $ac_config_files in *"
14261"*) set x $ac_config_files; shift; ac_config_files=$*;;
14262esac
14263
14264case $ac_config_headers in *"
14265"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14266esac
14267
14268
14269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14270# Files that config.status was made for.
14271config_files="$ac_config_files"
14272config_headers="$ac_config_headers"
14273config_commands="$ac_config_commands"
14274
14275_ACEOF
14276
14277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14278ac_cs_usage="\
14279\`$as_me' instantiates files and other configuration actions
14280from templates according to the current configuration. Unless the files
14281and actions are specified as TAGs, all are instantiated by default.
14282
14283Usage: $0 [OPTION]... [TAG]...
14284
14285 -h, --help print this help, then exit
14286 -V, --version print version number and configuration settings, then exit
14287 --config print configuration, then exit
14288 -q, --quiet, --silent
14289 do not print progress messages
14290 -d, --debug don't remove temporary files
14291 --recheck update $as_me by reconfiguring in the same conditions
14292 --file=FILE[:TEMPLATE]
14293 instantiate the configuration file FILE
14294 --header=FILE[:TEMPLATE]
14295 instantiate the configuration header FILE
14296
14297Configuration files:
14298$config_files
14299
14300Configuration headers:
14301$config_headers
14302
14303Configuration commands:
14304$config_commands
14305
14306Report bugs to <dgilbert@interlog.com>."
14307
14308_ACEOF
Douglas Gilbert891844a2022-04-24 18:11:56 +000014309ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14310ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Douglas Gilbert891844a2022-04-24 18:11:56 +000014312ac_cs_config='$ac_cs_config_escaped'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014313ac_cs_version="\\
Douglas Gilbert9e6d5132021-11-15 16:36:13 +000014314sg3_utils config.status 1.48
Douglas Gilbert891844a2022-04-24 18:11:56 +000014315configured by $0, generated by GNU Autoconf 2.71,
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014316 with options \\"\$ac_cs_config\\"
14317
Douglas Gilbert891844a2022-04-24 18:11:56 +000014318Copyright (C) 2021 Free Software Foundation, Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014319This config.status script is free software; the Free Software Foundation
14320gives unlimited permission to copy, distribute and modify it."
14321
14322ac_pwd='$ac_pwd'
14323srcdir='$srcdir'
14324INSTALL='$INSTALL'
14325MKDIR_P='$MKDIR_P'
14326AWK='$AWK'
14327test -n "\$AWK" || AWK=awk
14328_ACEOF
14329
14330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14331# The default lists apply if the user does not specify any file.
14332ac_need_defaults=:
14333while test $# != 0
14334do
14335 case $1 in
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014336 --*=?*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014337 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14338 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14339 ac_shift=:
14340 ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014341 --*=)
14342 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14343 ac_optarg=
14344 ac_shift=:
14345 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014346 *)
14347 ac_option=$1
14348 ac_optarg=$2
14349 ac_shift=shift
14350 ;;
14351 esac
14352
14353 case $ac_option in
14354 # Handling of the options.
14355 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14356 ac_cs_recheck=: ;;
14357 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Douglas Gilbert891844a2022-04-24 18:11:56 +000014358 printf "%s\n" "$ac_cs_version"; exit ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014359 --config | --confi | --conf | --con | --co | --c )
Douglas Gilbert891844a2022-04-24 18:11:56 +000014360 printf "%s\n" "$ac_cs_config"; exit ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014361 --debug | --debu | --deb | --de | --d | -d )
14362 debug=: ;;
14363 --file | --fil | --fi | --f )
14364 $ac_shift
14365 case $ac_optarg in
Douglas Gilbert891844a2022-04-24 18:11:56 +000014366 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014367 '') as_fn_error $? "missing file argument" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014368 esac
14369 as_fn_append CONFIG_FILES " '$ac_optarg'"
14370 ac_need_defaults=false;;
14371 --header | --heade | --head | --hea )
14372 $ac_shift
14373 case $ac_optarg in
Douglas Gilbert891844a2022-04-24 18:11:56 +000014374 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014375 esac
14376 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14377 ac_need_defaults=false;;
14378 --he | --h)
14379 # Conflict between --help and --header
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014380 as_fn_error $? "ambiguous option: \`$1'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014381Try \`$0 --help' for more information.";;
14382 --help | --hel | -h )
Douglas Gilbert891844a2022-04-24 18:11:56 +000014383 printf "%s\n" "$ac_cs_usage"; exit ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14385 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14386 ac_cs_silent=: ;;
14387
14388 # This is an error.
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014389 -*) as_fn_error $? "unrecognized option: \`$1'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014390Try \`$0 --help' for more information." ;;
14391
14392 *) as_fn_append ac_config_targets " $1"
14393 ac_need_defaults=false ;;
14394
14395 esac
14396 shift
14397done
14398
14399ac_configure_extra_args=
14400
14401if $ac_cs_silent; then
14402 exec 6>/dev/null
14403 ac_configure_extra_args="$ac_configure_extra_args --silent"
14404fi
14405
14406_ACEOF
14407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14408if \$ac_cs_recheck; then
Douglas Gilbert59d30db2012-12-10 04:59:22 +000014409 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014410 shift
Douglas Gilbert891844a2022-04-24 18:11:56 +000014411 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014412 CONFIG_SHELL='$SHELL'
14413 export CONFIG_SHELL
14414 exec "\$@"
14415fi
14416
14417_ACEOF
14418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14419exec 5>>config.log
14420{
14421 echo
14422 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14423## Running $as_me. ##
14424_ASBOX
Douglas Gilbert891844a2022-04-24 18:11:56 +000014425 printf "%s\n" "$ac_log"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014426} >&5
14427
14428_ACEOF
14429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14430#
14431# INIT-COMMANDS
14432#
Douglas Gilbertc80acc92019-05-15 16:10:59 +000014433AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014434
14435
14436# The HP-UX ksh and POSIX shell print the target directory to stdout
14437# if CDPATH is set.
14438(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14439
14440sed_quote_subst='$sed_quote_subst'
14441double_quote_subst='$double_quote_subst'
14442delay_variable_subst='$delay_variable_subst'
Douglas Gilbertc978e062011-12-06 21:50:07 +000014443macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14444macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14445enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14446enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14447pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14448enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014449shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000014450SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14451ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Douglas Gilbert63918a92012-09-08 03:20:30 +000014452PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000014453host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14454host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14455host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14456build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14457build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14458build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14459SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14460Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14461GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14462EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14463FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14464LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14465NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14466LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14467max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14468ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14469exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14470lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14471lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14472lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14473lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14474lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14475reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14476reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
Douglas Gilbert23beedb2022-08-07 02:22:53 +000014477FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000014478OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14479deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14480file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14481file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14482want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14483DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14484sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14485AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
Douglas Gilbert23beedb2022-08-07 02:22:53 +000014486lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000014487AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14488archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14489STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14490RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14491old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14492old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14493old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14494lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14495CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14496CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14497compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14498GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14499lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14500lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014501lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000014502lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14503lt_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"`'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014504lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000014505nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14506lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014507lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000014508objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14509MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14510lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14511lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14512lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14513lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14514lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14515need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14516MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14517DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14518NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14519LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14520OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14521OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14522libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14523shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14524extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14525archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14526enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14527export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14528whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14529compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14530old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14531old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14532archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14533archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14534module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14535module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14536with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14537allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14538no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14539hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000014540hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14541hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14542hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14543hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14544hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14545hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14546inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14547link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14548always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14549export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14550exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14551include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14552prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14553postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14554file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14555variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14556need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14557need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14558version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14559runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14560shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14561shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14562libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14563library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14564soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14565install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14566postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14567postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14568finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14569finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14570hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14571sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014572configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14573configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000014574hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14575enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14576enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14577enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14578old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14579striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014580
14581LTCC='$LTCC'
14582LTCFLAGS='$LTCFLAGS'
14583compiler='$compiler_DEFAULT'
14584
Douglas Gilbertc978e062011-12-06 21:50:07 +000014585# A function that is used when there is no print builtin or printf.
14586func_fallback_echo ()
14587{
14588 eval 'cat <<_LTECHO_EOF
14589\$1
14590_LTECHO_EOF'
14591}
14592
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014593# Quote evaled strings.
Douglas Gilbertc978e062011-12-06 21:50:07 +000014594for var in SHELL \
14595ECHO \
Douglas Gilbert63918a92012-09-08 03:20:30 +000014596PATH_SEPARATOR \
Douglas Gilbertc978e062011-12-06 21:50:07 +000014597SED \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014598GREP \
14599EGREP \
14600FGREP \
14601LD \
14602NM \
14603LN_S \
14604lt_SP2NL \
14605lt_NL2SP \
14606reload_flag \
Douglas Gilbert23beedb2022-08-07 02:22:53 +000014607FILECMD \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014608OBJDUMP \
14609deplibs_check_method \
14610file_magic_cmd \
Douglas Gilbertc978e062011-12-06 21:50:07 +000014611file_magic_glob \
14612want_nocaseglob \
14613DLLTOOL \
14614sharedlib_from_linklib_cmd \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014615AR \
Douglas Gilbertc978e062011-12-06 21:50:07 +000014616archiver_list_spec \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014617STRIP \
14618RANLIB \
14619CC \
14620CFLAGS \
14621compiler \
14622lt_cv_sys_global_symbol_pipe \
14623lt_cv_sys_global_symbol_to_cdecl \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014624lt_cv_sys_global_symbol_to_import \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014625lt_cv_sys_global_symbol_to_c_name_address \
14626lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014627lt_cv_nm_interface \
Douglas Gilbertc978e062011-12-06 21:50:07 +000014628nm_file_list_spec \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014629lt_cv_truncate_bin \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014630lt_prog_compiler_no_builtin_flag \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014631lt_prog_compiler_pic \
Douglas Gilbertc978e062011-12-06 21:50:07 +000014632lt_prog_compiler_wl \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014633lt_prog_compiler_static \
14634lt_cv_prog_compiler_c_o \
14635need_locks \
Douglas Gilbertc978e062011-12-06 21:50:07 +000014636MANIFEST_TOOL \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014637DSYMUTIL \
14638NMEDIT \
14639LIPO \
14640OTOOL \
14641OTOOL64 \
14642shrext_cmds \
14643export_dynamic_flag_spec \
14644whole_archive_flag_spec \
14645compiler_needs_object \
14646with_gnu_ld \
14647allow_undefined_flag \
14648no_undefined_flag \
14649hardcode_libdir_flag_spec \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014650hardcode_libdir_separator \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014651exclude_expsyms \
14652include_expsyms \
14653file_list_spec \
14654variables_saved_for_relink \
14655libname_spec \
14656library_names_spec \
14657soname_spec \
Douglas Gilbertc978e062011-12-06 21:50:07 +000014658install_override_mode \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014659finish_eval \
14660old_striplib \
14661striplib; do
Douglas Gilbertc978e062011-12-06 21:50:07 +000014662 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014663 *[\\\\\\\`\\"\\\$]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014664 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014665 ;;
14666 *)
14667 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14668 ;;
14669 esac
14670done
14671
14672# Double-quote double-evaled strings.
14673for var in reload_cmds \
14674old_postinstall_cmds \
14675old_postuninstall_cmds \
14676old_archive_cmds \
14677extract_expsyms_cmds \
14678old_archive_from_new_cmds \
14679old_archive_from_expsyms_cmds \
14680archive_cmds \
14681archive_expsym_cmds \
14682module_cmds \
14683module_expsym_cmds \
14684export_symbols_cmds \
14685prelink_cmds \
Douglas Gilbertc978e062011-12-06 21:50:07 +000014686postlink_cmds \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014687postinstall_cmds \
14688postuninstall_cmds \
14689finish_cmds \
14690sys_lib_search_path_spec \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014691configure_time_dlsearch_path \
14692configure_time_lt_sys_library_path; do
Douglas Gilbertc978e062011-12-06 21:50:07 +000014693 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014694 *[\\\\\\\`\\"\\\$]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014695 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014696 ;;
14697 *)
14698 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14699 ;;
14700 esac
14701done
14702
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014703ac_aux_dir='$ac_aux_dir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014704
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014705# See if we are running on zsh, and set the options that allow our
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014706# commands through without removal of \ escapes INIT.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014707if test -n "\${ZSH_VERSION+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014708 setopt NO_GLOB_SUBST
14709fi
14710
14711
14712 PACKAGE='$PACKAGE'
14713 VERSION='$VERSION'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014714 RM='$RM'
14715 ofile='$ofile'
14716
14717
14718
14719
14720_ACEOF
14721
14722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14723
14724# Handling of arguments.
14725for ac_config_target in $ac_config_targets
14726do
14727 case $ac_config_target in
14728 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14729 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14730 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14731 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14732 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14733 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14734 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14735 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Douglas Gilbertfaeffd02013-05-15 13:35:46 +000014736 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014737
Douglas Gilbertc978e062011-12-06 21:50:07 +000014738 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014739 esac
14740done
14741
14742
14743# If the user did not use the arguments to specify the items to instantiate,
14744# then the envvar interface is used. Set only those that are not.
14745# We use the long form for the default assignment because of an extremely
14746# bizarre bug on SunOS 4.1.3.
14747if $ac_need_defaults; then
Douglas Gilbert891844a2022-04-24 18:11:56 +000014748 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14749 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14750 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014751fi
14752
14753# Have a temporary directory for convenience. Make it in the build tree
14754# simply because there is no reason against having it here, and in addition,
14755# creating and moving files from /tmp can sometimes cause problems.
14756# Hook for its removal unless debugging.
14757# Note that there is a small window in which the directory will not be cleaned:
14758# after its creation but before its name has been assigned to `$tmp'.
14759$debug ||
14760{
Douglas Gilbertc978e062011-12-06 21:50:07 +000014761 tmp= ac_tmp=
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014762 trap 'exit_status=$?
Douglas Gilbertc978e062011-12-06 21:50:07 +000014763 : "${ac_tmp:=$tmp}"
14764 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014765' 0
14766 trap 'as_fn_exit 1' 1 2 13 15
14767}
14768# Create a (secure) tmp directory for tmp files.
14769
14770{
14771 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Douglas Gilbertc978e062011-12-06 21:50:07 +000014772 test -d "$tmp"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014773} ||
14774{
14775 tmp=./conf$$-$RANDOM
14776 (umask 077 && mkdir "$tmp")
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014777} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Douglas Gilbertc978e062011-12-06 21:50:07 +000014778ac_tmp=$tmp
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014779
14780# Set up the scripts for CONFIG_FILES section.
14781# No need to generate them if there are no CONFIG_FILES.
14782# This happens for instance with `./config.status config.h'.
14783if test -n "$CONFIG_FILES"; then
14784
14785
14786ac_cr=`echo X | tr X '\015'`
14787# On cygwin, bash can eat \r inside `` if the user requested igncr.
14788# But we know of no other shell where ac_cr would be empty at this
14789# point, so we can use a bashism as a fallback.
14790if test "x$ac_cr" = x; then
14791 eval ac_cr=\$\'\\r\'
14792fi
14793ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14794if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014795 ac_cs_awk_cr='\\r'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014796else
14797 ac_cs_awk_cr=$ac_cr
14798fi
14799
Douglas Gilbertc978e062011-12-06 21:50:07 +000014800echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014801_ACEOF
14802
14803
14804{
14805 echo "cat >conf$$subs.awk <<_ACEOF" &&
14806 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14807 echo "_ACEOF"
14808} >conf$$subs.sh ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14810ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014811ac_delim='%!_!# '
14812for ac_last_try in false false false false false :; do
14813 . ./conf$$subs.sh ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014814 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014815
14816 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14817 if test $ac_delim_n = $ac_delim_num; then
14818 break
14819 elif $ac_last_try; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014820 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014821 else
14822 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14823 fi
14824done
14825rm -f conf$$subs.sh
14826
14827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Douglas Gilbertc978e062011-12-06 21:50:07 +000014828cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014829_ACEOF
14830sed -n '
14831h
14832s/^/S["/; s/!.*/"]=/
14833p
14834g
14835s/^[^!]*!//
14836:repl
14837t repl
14838s/'"$ac_delim"'$//
14839t delim
14840:nl
14841h
14842s/\(.\{148\}\)..*/\1/
14843t more1
14844s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14845p
14846n
14847b repl
14848:more1
14849s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14850p
14851g
14852s/.\{148\}//
14853t nl
14854:delim
14855h
14856s/\(.\{148\}\)..*/\1/
14857t more2
14858s/["\\]/\\&/g; s/^/"/; s/$/"/
14859p
14860b
14861:more2
14862s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14863p
14864g
14865s/.\{148\}//
14866t delim
14867' <conf$$subs.awk | sed '
14868/^[^""]/{
14869 N
14870 s/\n//
14871}
14872' >>$CONFIG_STATUS || ac_write_fail=1
14873rm -f conf$$subs.awk
14874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14875_ACAWK
Douglas Gilbertc978e062011-12-06 21:50:07 +000014876cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014877 for (key in S) S_is_set[key] = 1
14878 FS = ""
14879
14880}
14881{
14882 line = $ 0
14883 nfields = split(line, field, "@")
14884 substed = 0
14885 len = length(field[1])
14886 for (i = 2; i < nfields; i++) {
14887 key = field[i]
14888 keylen = length(key)
14889 if (S_is_set[key]) {
14890 value = S[key]
14891 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14892 len += length(value) + length(field[++i])
14893 substed = 1
14894 } else
14895 len += 1 + keylen
14896 }
14897
14898 print line
14899}
14900
14901_ACAWK
14902_ACEOF
14903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14904if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14905 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14906else
14907 cat
Douglas Gilbertc978e062011-12-06 21:50:07 +000014908fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014909 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014910_ACEOF
14911
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014912# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14913# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014914# trailing colons and then remove the whole line if VPATH becomes empty
14915# (actually we leave an empty line to preserve line numbers).
14916if test "x$srcdir" = x.; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014917 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14918h
14919s///
14920s/^/:/
14921s/[ ]*$/:/
14922s/:\$(srcdir):/:/g
14923s/:\${srcdir}:/:/g
14924s/:@srcdir@:/:/g
14925s/^:*//
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014926s/:*$//
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014927x
14928s/\(=[ ]*\).*/\1/
14929G
14930s/\n//
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014931s/^[^=]*=[ ]*$//
14932}'
14933fi
14934
14935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14936fi # test -n "$CONFIG_FILES"
14937
14938# Set up the scripts for CONFIG_HEADERS section.
14939# No need to generate them if there are no CONFIG_HEADERS.
14940# This happens for instance with `./config.status Makefile'.
14941if test -n "$CONFIG_HEADERS"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000014942cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014943BEGIN {
14944_ACEOF
14945
14946# Transform confdefs.h into an awk script `defines.awk', embedded as
14947# here-document in config.status, that substitutes the proper values into
14948# config.h.in to produce config.h.
14949
14950# Create a delimiter string that does not exist in confdefs.h, to ease
14951# handling of long lines.
14952ac_delim='%!_!# '
14953for ac_last_try in false false :; do
Douglas Gilbertc978e062011-12-06 21:50:07 +000014954 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14955 if test -z "$ac_tt"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014956 break
14957 elif $ac_last_try; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014958 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014959 else
14960 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14961 fi
14962done
14963
14964# For the awk script, D is an array of macro values keyed by name,
14965# likewise P contains macro parameters if any. Preserve backslash
14966# newline sequences.
14967
14968ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14969sed -n '
14970s/.\{148\}/&'"$ac_delim"'/g
14971t rset
14972:rset
14973s/^[ ]*#[ ]*define[ ][ ]*/ /
14974t def
14975d
14976:def
14977s/\\$//
14978t bsnl
14979s/["\\]/\\&/g
14980s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14981D["\1"]=" \3"/p
14982s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14983d
14984:bsnl
14985s/["\\]/\\&/g
14986s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14987D["\1"]=" \3\\\\\\n"\\/p
14988t cont
14989s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14990t cont
14991d
14992:cont
14993n
14994s/.\{148\}/&'"$ac_delim"'/g
14995t clear
14996:clear
14997s/\\$//
14998t bsnlc
14999s/["\\]/\\&/g; s/^/"/; s/$/"/p
15000d
15001:bsnlc
15002s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15003b cont
15004' <confdefs.h | sed '
15005s/'"$ac_delim"'/"\\\
15006"/g' >>$CONFIG_STATUS || ac_write_fail=1
15007
15008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15009 for (key in D) D_is_set[key] = 1
15010 FS = ""
15011}
15012/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15013 line = \$ 0
15014 split(line, arg, " ")
15015 if (arg[1] == "#") {
15016 defundef = arg[2]
15017 mac1 = arg[3]
15018 } else {
15019 defundef = substr(arg[1], 2)
15020 mac1 = arg[2]
15021 }
15022 split(mac1, mac2, "(") #)
15023 macro = mac2[1]
15024 prefix = substr(line, 1, index(line, defundef) - 1)
15025 if (D_is_set[macro]) {
15026 # Preserve the white space surrounding the "#".
15027 print prefix "define", macro P[macro] D[macro]
15028 next
15029 } else {
15030 # Replace #undef with comments. This is necessary, for example,
15031 # in the case of _POSIX_SOURCE, which is predefined and required
15032 # on some systems where configure will not decide to define it.
15033 if (defundef == "undef") {
15034 print "/*", prefix defundef, macro, "*/"
15035 next
15036 }
15037 }
15038}
15039{ print }
15040_ACAWK
15041_ACEOF
15042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Douglas Gilbert02f2be12010-11-12 16:00:04 +000015043 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015044fi # test -n "$CONFIG_HEADERS"
15045
15046
15047eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15048shift
15049for ac_tag
15050do
15051 case $ac_tag in
15052 :[FHLC]) ac_mode=$ac_tag; continue;;
15053 esac
15054 case $ac_mode$ac_tag in
15055 :[FHL]*:*);;
Douglas Gilbertc978e062011-12-06 21:50:07 +000015056 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015057 :[FH]-) ac_tag=-:-;;
15058 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15059 esac
15060 ac_save_IFS=$IFS
15061 IFS=:
15062 set x $ac_tag
15063 IFS=$ac_save_IFS
15064 shift
15065 ac_file=$1
15066 shift
15067
15068 case $ac_mode in
15069 :L) ac_source=$1;;
15070 :[FH])
15071 ac_file_inputs=
15072 for ac_f
15073 do
15074 case $ac_f in
Douglas Gilbertc978e062011-12-06 21:50:07 +000015075 -) ac_f="$ac_tmp/stdin";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015076 *) # Look for the file first in the build tree, then in the source tree
15077 # (if the path is not absolute). The absolute path cannot be DOS-style,
15078 # because $ac_f cannot contain `:'.
15079 test -f "$ac_f" ||
15080 case $ac_f in
15081 [\\/$]*) false;;
15082 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15083 esac ||
Douglas Gilbertc978e062011-12-06 21:50:07 +000015084 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015085 esac
Douglas Gilbert891844a2022-04-24 18:11:56 +000015086 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015087 as_fn_append ac_file_inputs " '$ac_f'"
15088 done
15089
15090 # Let's still pretend it is `configure' which instantiates (i.e., don't
15091 # use $as_me), people would be surprised to read:
15092 # /* config.h. Generated by config.status. */
15093 configure_input='Generated from '`
Douglas Gilbert891844a2022-04-24 18:11:56 +000015094 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015095 `' by configure.'
15096 if test x"$ac_file" != x-; then
15097 configure_input="$ac_file. $configure_input"
Douglas Gilbert891844a2022-04-24 18:11:56 +000015098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15099printf "%s\n" "$as_me: creating $ac_file" >&6;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015100 fi
15101 # Neutralize special characters interpreted by sed in replacement strings.
15102 case $configure_input in #(
15103 *\&* | *\|* | *\\* )
Douglas Gilbert891844a2022-04-24 18:11:56 +000015104 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015105 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15106 *) ac_sed_conf_input=$configure_input;;
15107 esac
15108
15109 case $ac_tag in
Douglas Gilbertc978e062011-12-06 21:50:07 +000015110 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015112 esac
15113 ;;
15114 esac
15115
15116 ac_dir=`$as_dirname -- "$ac_file" ||
15117$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15118 X"$ac_file" : 'X\(//\)[^/]' \| \
15119 X"$ac_file" : 'X\(//\)$' \| \
15120 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Douglas Gilbert891844a2022-04-24 18:11:56 +000015121printf "%s\n" X"$ac_file" |
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15123 s//\1/
15124 q
15125 }
15126 /^X\(\/\/\)[^/].*/{
15127 s//\1/
15128 q
15129 }
15130 /^X\(\/\/\)$/{
15131 s//\1/
15132 q
15133 }
15134 /^X\(\/\).*/{
15135 s//\1/
15136 q
15137 }
15138 s/.*/./; q'`
15139 as_dir="$ac_dir"; as_fn_mkdir_p
15140 ac_builddir=.
15141
15142case "$ac_dir" in
15143.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15144*)
Douglas Gilbert891844a2022-04-24 18:11:56 +000015145 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015146 # A ".." for each directory in $ac_dir_suffix.
Douglas Gilbert891844a2022-04-24 18:11:56 +000015147 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015148 case $ac_top_builddir_sub in
15149 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15150 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15151 esac ;;
15152esac
15153ac_abs_top_builddir=$ac_pwd
15154ac_abs_builddir=$ac_pwd$ac_dir_suffix
15155# for backward compatibility:
15156ac_top_builddir=$ac_top_build_prefix
15157
15158case $srcdir in
15159 .) # We are building in place.
15160 ac_srcdir=.
15161 ac_top_srcdir=$ac_top_builddir_sub
15162 ac_abs_top_srcdir=$ac_pwd ;;
15163 [\\/]* | ?:[\\/]* ) # Absolute name.
15164 ac_srcdir=$srcdir$ac_dir_suffix;
15165 ac_top_srcdir=$srcdir
15166 ac_abs_top_srcdir=$srcdir ;;
15167 *) # Relative name.
15168 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15169 ac_top_srcdir=$ac_top_build_prefix$srcdir
15170 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15171esac
15172ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15173
15174
15175 case $ac_mode in
15176 :F)
15177 #
15178 # CONFIG_FILE
15179 #
15180
15181 case $INSTALL in
15182 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15183 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15184 esac
15185 ac_MKDIR_P=$MKDIR_P
15186 case $MKDIR_P in
15187 [\\/$]* | ?:[\\/]* ) ;;
15188 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15189 esac
15190_ACEOF
15191
15192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15193# If the template does not know about datarootdir, expand it.
15194# FIXME: This hack should be removed a few years after 2.60.
15195ac_datarootdir_hack=; ac_datarootdir_seen=
15196ac_sed_dataroot='
15197/datarootdir/ {
15198 p
15199 q
15200}
15201/@datadir@/p
15202/@docdir@/p
15203/@infodir@/p
15204/@localedir@/p
15205/@mandir@/p'
15206case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15207*datarootdir*) ac_datarootdir_seen=yes;;
15208*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Douglas Gilbert891844a2022-04-24 18:11:56 +000015209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15210printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015211_ACEOF
15212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15213 ac_datarootdir_hack='
15214 s&@datadir@&$datadir&g
15215 s&@docdir@&$docdir&g
15216 s&@infodir@&$infodir&g
15217 s&@localedir@&$localedir&g
15218 s&@mandir@&$mandir&g
15219 s&\\\${datarootdir}&$datarootdir&g' ;;
15220esac
15221_ACEOF
15222
15223# Neutralize VPATH when `$srcdir' = `.'.
15224# Shell code in configure.ac might set extrasub.
15225# FIXME: do we really want to maintain this feature?
15226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227ac_sed_extra="$ac_vpsub
15228$extrasub
15229_ACEOF
15230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15231:t
15232/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15233s|@configure_input@|$ac_sed_conf_input|;t t
15234s&@top_builddir@&$ac_top_builddir_sub&;t t
15235s&@top_build_prefix@&$ac_top_build_prefix&;t t
15236s&@srcdir@&$ac_srcdir&;t t
15237s&@abs_srcdir@&$ac_abs_srcdir&;t t
15238s&@top_srcdir@&$ac_top_srcdir&;t t
15239s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15240s&@builddir@&$ac_builddir&;t t
15241s&@abs_builddir@&$ac_abs_builddir&;t t
15242s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15243s&@INSTALL@&$ac_INSTALL&;t t
15244s&@MKDIR_P@&$ac_MKDIR_P&;t t
15245$ac_datarootdir_hack
15246"
Douglas Gilbertc978e062011-12-06 21:50:07 +000015247eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15248 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015249
15250test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Douglas Gilbertc978e062011-12-06 21:50:07 +000015251 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15252 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15253 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Douglas Gilbert891844a2022-04-24 18:11:56 +000015254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Douglas Gilbert02f2be12010-11-12 16:00:04 +000015255which seems to be undefined. Please make sure it is defined" >&5
Douglas Gilbert891844a2022-04-24 18:11:56 +000015256printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Douglas Gilbert02f2be12010-11-12 16:00:04 +000015257which seems to be undefined. Please make sure it is defined" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015258
Douglas Gilbertc978e062011-12-06 21:50:07 +000015259 rm -f "$ac_tmp/stdin"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015260 case $ac_file in
Douglas Gilbertc978e062011-12-06 21:50:07 +000015261 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15262 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015263 esac \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000015264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015265 ;;
15266 :H)
15267 #
15268 # CONFIG_HEADER
15269 #
15270 if test x"$ac_file" != x-; then
15271 {
Douglas Gilbert891844a2022-04-24 18:11:56 +000015272 printf "%s\n" "/* $configure_input */" >&1 \
Douglas Gilbertc978e062011-12-06 21:50:07 +000015273 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15274 } >"$ac_tmp/config.h" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000015275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbertc978e062011-12-06 21:50:07 +000015276 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Douglas Gilbert891844a2022-04-24 18:11:56 +000015277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15278printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015279 else
15280 rm -f "$ac_file"
Douglas Gilbertc978e062011-12-06 21:50:07 +000015281 mv "$ac_tmp/config.h" "$ac_file" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000015282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015283 fi
15284 else
Douglas Gilbert891844a2022-04-24 18:11:56 +000015285 printf "%s\n" "/* $configure_input */" >&1 \
Douglas Gilbertc978e062011-12-06 21:50:07 +000015286 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000015287 || as_fn_error $? "could not create -" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015288 fi
15289# Compute "$ac_file"'s index in $config_headers.
15290_am_arg="$ac_file"
15291_am_stamp_count=1
15292for _am_header in $config_headers :; do
15293 case $_am_header in
15294 $_am_arg | $_am_arg:* )
15295 break ;;
15296 * )
15297 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15298 esac
15299done
15300echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15301$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15302 X"$_am_arg" : 'X\(//\)[^/]' \| \
15303 X"$_am_arg" : 'X\(//\)$' \| \
15304 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
Douglas Gilbert891844a2022-04-24 18:11:56 +000015305printf "%s\n" X"$_am_arg" |
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15307 s//\1/
15308 q
15309 }
15310 /^X\(\/\/\)[^/].*/{
15311 s//\1/
15312 q
15313 }
15314 /^X\(\/\/\)$/{
15315 s//\1/
15316 q
15317 }
15318 /^X\(\/\).*/{
15319 s//\1/
15320 q
15321 }
15322 s/.*/./; q'`/stamp-h$_am_stamp_count
15323 ;;
15324
Douglas Gilbert891844a2022-04-24 18:11:56 +000015325 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15326printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015327 ;;
15328 esac
15329
15330
15331 case $ac_file$ac_mode in
15332 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000015333 # Older Autoconf quotes --file arguments for eval, but not when files
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015334 # are listed without --file. Let's play safe and only enable the eval
15335 # if we detect the quoting.
Douglas Gilbertc80acc92019-05-15 16:10:59 +000015336 # TODO: see whether this extra hack can be removed once we start
15337 # requiring Autoconf 2.70 or later.
15338 case $CONFIG_FILES in #(
15339 *\'*) :
15340 eval set x "$CONFIG_FILES" ;; #(
15341 *) :
15342 set x $CONFIG_FILES ;; #(
15343 *) :
15344 ;;
15345esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015346 shift
Douglas Gilbertc80acc92019-05-15 16:10:59 +000015347 # Used to flag and report bootstrapping failures.
15348 am_rc=0
15349 for am_mf
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015350 do
15351 # Strip MF so we end up with the name of the file.
Douglas Gilbert891844a2022-04-24 18:11:56 +000015352 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
Douglas Gilbertc80acc92019-05-15 16:10:59 +000015353 # Check whether this is an Automake generated Makefile which includes
15354 # dependency-tracking related rules and includes.
15355 # Grep'ing the whole file directly is not great: AIX grep has a line
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015356 # limit of 2048, but all sed's we know have understand at least 4000.
Douglas Gilbertc80acc92019-05-15 16:10:59 +000015357 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15358 || continue
15359 am_dirpart=`$as_dirname -- "$am_mf" ||
15360$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15361 X"$am_mf" : 'X\(//\)[^/]' \| \
15362 X"$am_mf" : 'X\(//\)$' \| \
15363 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
Douglas Gilbert891844a2022-04-24 18:11:56 +000015364printf "%s\n" X"$am_mf" |
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15366 s//\1/
15367 q
15368 }
15369 /^X\(\/\/\)[^/].*/{
15370 s//\1/
15371 q
15372 }
15373 /^X\(\/\/\)$/{
15374 s//\1/
15375 q
15376 }
15377 /^X\(\/\).*/{
15378 s//\1/
15379 q
15380 }
15381 s/.*/./; q'`
Douglas Gilbertc80acc92019-05-15 16:10:59 +000015382 am_filepart=`$as_basename -- "$am_mf" ||
15383$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15384 X"$am_mf" : 'X\(//\)$' \| \
15385 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
Douglas Gilbert891844a2022-04-24 18:11:56 +000015386printf "%s\n" X/"$am_mf" |
Douglas Gilbertc80acc92019-05-15 16:10:59 +000015387 sed '/^.*\/\([^/][^/]*\)\/*$/{
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015388 s//\1/
15389 q
15390 }
Douglas Gilbertc80acc92019-05-15 16:10:59 +000015391 /^X\/\(\/\/\)$/{
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015392 s//\1/
15393 q
15394 }
Douglas Gilbertc80acc92019-05-15 16:10:59 +000015395 /^X\/\(\/\).*/{
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015396 s//\1/
15397 q
15398 }
15399 s/.*/./; q'`
Douglas Gilbertc80acc92019-05-15 16:10:59 +000015400 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15401 && sed -e '/# am--include-marker/d' "$am_filepart" \
15402 | $MAKE -f - am--depfiles" >&5
15403 (cd "$am_dirpart" \
15404 && sed -e '/# am--include-marker/d' "$am_filepart" \
15405 | $MAKE -f - am--depfiles) >&5 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } || am_rc=$?
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015409 done
Douglas Gilbertc80acc92019-05-15 16:10:59 +000015410 if test $am_rc -ne 0; then
Douglas Gilbert891844a2022-04-24 18:11:56 +000015411 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15412printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbertc80acc92019-05-15 16:10:59 +000015413as_fn_error $? "Something went wrong bootstrapping makefile fragments
Douglas Gilbert02beb632021-11-05 23:31:50 +000015414 for automatic dependency tracking. If GNU make was not used, consider
15415 re-running the configure script with MAKE=\"gmake\" (or whatever is
15416 necessary). You can also try re-running configure with the
Douglas Gilbertc80acc92019-05-15 16:10:59 +000015417 '--disable-dependency-tracking' option to at least be able to build
15418 the package (albeit without support for automatic dependency tracking).
15419See \`config.log' for more details" "$LINENO" 5; }
15420 fi
15421 { am_dirpart=; unset am_dirpart;}
15422 { am_filepart=; unset am_filepart;}
15423 { am_mf=; unset am_mf;}
15424 { am_rc=; unset am_rc;}
15425 rm -f conftest-deps.mk
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015426}
15427 ;;
15428 "libtool":C)
15429
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015430 # See if we are running on zsh, and set the options that allow our
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015431 # commands through without removal of \ escapes.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015432 if test -n "${ZSH_VERSION+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015433 setopt NO_GLOB_SUBST
15434 fi
15435
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015436 cfgfile=${ofile}T
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015437 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15438 $RM "$cfgfile"
15439
15440 cat <<_LT_EOF >> "$cfgfile"
15441#! $SHELL
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015442# Generated automatically by $as_me ($PACKAGE) $VERSION
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015443# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015444
15445# Provide generalized library-building support services.
15446# Written by Gordon Matzigkeit, 1996
15447
15448# Copyright (C) 2014 Free Software Foundation, Inc.
15449# This is free software; see the source for copying conditions. There is NO
15450# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15451
15452# GNU Libtool is free software; you can redistribute it and/or modify
15453# it under the terms of the GNU General Public License as published by
15454# the Free Software Foundation; either version 2 of of the License, or
15455# (at your option) any later version.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015456#
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015457# As a special exception to the GNU General Public License, if you
15458# distribute this file as part of a program or library that is built
15459# using GNU Libtool, you may include this file under the same
15460# distribution terms that you use for the rest of that program.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015461#
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015462# GNU Libtool is distributed in the hope that it will be useful, but
15463# WITHOUT ANY WARRANTY; without even the implied warranty of
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015464# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15465# GNU General Public License for more details.
15466#
15467# You should have received a copy of the GNU General Public License
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015468# along with this program. If not, see <http://www.gnu.org/licenses/>.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015469
15470
15471# The names of the tagged configurations supported by this script.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015472available_tags=''
15473
15474# Configured defaults for sys_lib_dlsearch_path munging.
15475: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015476
15477# ### BEGIN LIBTOOL CONFIG
15478
15479# Which release of libtool.m4 was used?
15480macro_version=$macro_version
15481macro_revision=$macro_revision
15482
15483# Whether or not to build shared libraries.
15484build_libtool_libs=$enable_shared
15485
15486# Whether or not to build static libraries.
15487build_old_libs=$enable_static
15488
15489# What type of objects to build.
15490pic_mode=$pic_mode
15491
15492# Whether or not to optimize for fast installation.
15493fast_install=$enable_fast_install
15494
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015495# Shared archive member basename,for filename based shared library versioning on AIX.
15496shared_archive_member_spec=$shared_archive_member_spec
15497
Douglas Gilbertc978e062011-12-06 21:50:07 +000015498# Shell to use when invoking shell scripts.
15499SHELL=$lt_SHELL
15500
15501# An echo program that protects backslashes.
15502ECHO=$lt_ECHO
15503
Douglas Gilbert63918a92012-09-08 03:20:30 +000015504# The PATH separator for the build system.
15505PATH_SEPARATOR=$lt_PATH_SEPARATOR
15506
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015507# The host system.
15508host_alias=$host_alias
15509host=$host
15510host_os=$host_os
15511
15512# The build system.
15513build_alias=$build_alias
15514build=$build
15515build_os=$build_os
15516
15517# A sed program that does not truncate output.
15518SED=$lt_SED
15519
15520# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15521Xsed="\$SED -e 1s/^X//"
15522
15523# A grep program that handles long lines.
15524GREP=$lt_GREP
15525
15526# An ERE matcher.
15527EGREP=$lt_EGREP
15528
15529# A literal string matcher.
15530FGREP=$lt_FGREP
15531
15532# A BSD- or MS-compatible name lister.
15533NM=$lt_NM
15534
15535# Whether we need soft or hard links.
15536LN_S=$lt_LN_S
15537
15538# What is the maximum length of a command?
15539max_cmd_len=$max_cmd_len
15540
15541# Object file suffix (normally "o").
15542objext=$ac_objext
15543
15544# Executable file suffix (normally "").
15545exeext=$exeext
15546
15547# whether the shell understands "unset".
15548lt_unset=$lt_unset
15549
15550# turn spaces into newlines.
15551SP2NL=$lt_lt_SP2NL
15552
15553# turn newlines into spaces.
15554NL2SP=$lt_lt_NL2SP
15555
Douglas Gilbertc978e062011-12-06 21:50:07 +000015556# convert \$build file names to \$host format.
15557to_host_file_cmd=$lt_cv_to_host_file_cmd
15558
15559# convert \$build files to toolchain format.
15560to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015561
Douglas Gilbert23beedb2022-08-07 02:22:53 +000015562# A file(cmd) program that detects file types.
15563FILECMD=$lt_FILECMD
15564
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015565# An object symbol dumper.
15566OBJDUMP=$lt_OBJDUMP
15567
15568# Method to check whether dependent libraries are shared objects.
15569deplibs_check_method=$lt_deplibs_check_method
15570
Douglas Gilbertc978e062011-12-06 21:50:07 +000015571# Command to use when deplibs_check_method = "file_magic".
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015572file_magic_cmd=$lt_file_magic_cmd
15573
Douglas Gilbertc978e062011-12-06 21:50:07 +000015574# How to find potential files when deplibs_check_method = "file_magic".
15575file_magic_glob=$lt_file_magic_glob
15576
15577# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15578want_nocaseglob=$lt_want_nocaseglob
15579
15580# DLL creation program.
15581DLLTOOL=$lt_DLLTOOL
15582
15583# Command to associate shared and link libraries.
15584sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15585
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015586# The archiver.
15587AR=$lt_AR
Douglas Gilbertc978e062011-12-06 21:50:07 +000015588
Douglas Gilbert23beedb2022-08-07 02:22:53 +000015589# Flags to create an archive (by configure).
15590lt_ar_flags=$lt_ar_flags
15591
Douglas Gilbertc978e062011-12-06 21:50:07 +000015592# Flags to create an archive.
Douglas Gilbert23beedb2022-08-07 02:22:53 +000015593AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015594
Douglas Gilbertc978e062011-12-06 21:50:07 +000015595# How to feed a file listing to the archiver.
15596archiver_list_spec=$lt_archiver_list_spec
15597
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015598# A symbol stripping program.
15599STRIP=$lt_STRIP
15600
15601# Commands used to install an old-style archive.
15602RANLIB=$lt_RANLIB
15603old_postinstall_cmds=$lt_old_postinstall_cmds
15604old_postuninstall_cmds=$lt_old_postuninstall_cmds
15605
Douglas Gilbertc978e062011-12-06 21:50:07 +000015606# Whether to use a lock for old archive extraction.
15607lock_old_archive_extraction=$lock_old_archive_extraction
15608
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015609# A C compiler.
15610LTCC=$lt_CC
15611
15612# LTCC compiler flags.
15613LTCFLAGS=$lt_CFLAGS
15614
15615# Take the output of nm and produce a listing of raw symbols and C names.
15616global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15617
15618# Transform the output of nm in a proper C declaration.
15619global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15620
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015621# Transform the output of nm into a list of symbols to manually relocate.
15622global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15623
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015624# Transform the output of nm in a C name address pair.
15625global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15626
15627# Transform the output of nm in a C name address pair when lib prefix is needed.
15628global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15629
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015630# The name lister interface.
15631nm_interface=$lt_lt_cv_nm_interface
15632
Douglas Gilbertc978e062011-12-06 21:50:07 +000015633# Specify filename containing input files for \$NM.
15634nm_file_list_spec=$lt_nm_file_list_spec
15635
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015636# The root where to search for dependent libraries,and where our libraries should be installed.
Douglas Gilbertc978e062011-12-06 21:50:07 +000015637lt_sysroot=$lt_sysroot
15638
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015639# Command to truncate a binary pipe.
15640lt_truncate_bin=$lt_lt_cv_truncate_bin
15641
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015642# The name of the directory that contains temporary libtool files.
15643objdir=$objdir
15644
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015645# Used to examine libraries when file_magic_cmd begins with "file".
15646MAGIC_CMD=$MAGIC_CMD
15647
15648# Must we lock files when doing compilation?
15649need_locks=$lt_need_locks
15650
Douglas Gilbertc978e062011-12-06 21:50:07 +000015651# Manifest tool.
15652MANIFEST_TOOL=$lt_MANIFEST_TOOL
15653
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015654# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15655DSYMUTIL=$lt_DSYMUTIL
15656
15657# Tool to change global to local symbols on Mac OS X.
15658NMEDIT=$lt_NMEDIT
15659
15660# Tool to manipulate fat objects and archives on Mac OS X.
15661LIPO=$lt_LIPO
15662
15663# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15664OTOOL=$lt_OTOOL
15665
15666# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15667OTOOL64=$lt_OTOOL64
15668
15669# Old archive suffix (normally "a").
15670libext=$libext
15671
15672# Shared library suffix (normally ".so").
15673shrext_cmds=$lt_shrext_cmds
15674
15675# The commands to extract the exported symbol list from a shared archive.
15676extract_expsyms_cmds=$lt_extract_expsyms_cmds
15677
15678# Variables whose values should be saved in libtool wrapper scripts and
15679# restored at link time.
15680variables_saved_for_relink=$lt_variables_saved_for_relink
15681
15682# Do we need the "lib" prefix for modules?
15683need_lib_prefix=$need_lib_prefix
15684
15685# Do we need a version for libraries?
15686need_version=$need_version
15687
15688# Library versioning type.
15689version_type=$version_type
15690
15691# Shared library runtime path variable.
15692runpath_var=$runpath_var
15693
15694# Shared library path variable.
15695shlibpath_var=$shlibpath_var
15696
15697# Is shlibpath searched before the hard-coded library search path?
15698shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15699
15700# Format of library name prefix.
15701libname_spec=$lt_libname_spec
15702
15703# List of archive names. First name is the real one, the rest are links.
15704# The last name is the one that the linker finds with -lNAME
15705library_names_spec=$lt_library_names_spec
15706
15707# The coded name of the library, if different from the real name.
15708soname_spec=$lt_soname_spec
15709
Douglas Gilbertc978e062011-12-06 21:50:07 +000015710# Permission mode override for installation of shared libraries.
15711install_override_mode=$lt_install_override_mode
15712
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015713# Command to use after installation of a shared archive.
15714postinstall_cmds=$lt_postinstall_cmds
15715
15716# Command to use after uninstallation of a shared archive.
15717postuninstall_cmds=$lt_postuninstall_cmds
15718
15719# Commands used to finish a libtool library installation in a directory.
15720finish_cmds=$lt_finish_cmds
15721
15722# As "finish_cmds", except a single script fragment to be evaled but
15723# not shown.
15724finish_eval=$lt_finish_eval
15725
15726# Whether we should hardcode library paths into libraries.
15727hardcode_into_libs=$hardcode_into_libs
15728
15729# Compile-time system search path for libraries.
15730sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15731
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015732# Detected run-time system search path for libraries.
15733sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15734
15735# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15736configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015737
15738# Whether dlopen is supported.
15739dlopen_support=$enable_dlopen
15740
15741# Whether dlopen of programs is supported.
15742dlopen_self=$enable_dlopen_self
15743
15744# Whether dlopen of statically linked programs is supported.
15745dlopen_self_static=$enable_dlopen_self_static
15746
15747# Commands to strip libraries.
15748old_striplib=$lt_old_striplib
15749striplib=$lt_striplib
15750
15751
15752# The linker used to build libraries.
15753LD=$lt_LD
15754
Douglas Gilbertc978e062011-12-06 21:50:07 +000015755# How to create reloadable object files.
15756reload_flag=$lt_reload_flag
15757reload_cmds=$lt_reload_cmds
15758
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015759# Commands used to build an old-style archive.
15760old_archive_cmds=$lt_old_archive_cmds
15761
15762# A language specific compiler.
15763CC=$lt_compiler
15764
15765# Is the compiler the GNU compiler?
15766with_gcc=$GCC
15767
15768# Compiler flag to turn off builtin functions.
15769no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15770
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015771# Additional compiler flags for building library objects.
15772pic_flag=$lt_lt_prog_compiler_pic
15773
Douglas Gilbertc978e062011-12-06 21:50:07 +000015774# How to pass a linker flag through the compiler.
15775wl=$lt_lt_prog_compiler_wl
15776
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015777# Compiler flag to prevent dynamic linking.
15778link_static_flag=$lt_lt_prog_compiler_static
15779
15780# Does compiler simultaneously support -c and -o options?
15781compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15782
15783# Whether or not to add -lc for building shared libraries.
15784build_libtool_need_lc=$archive_cmds_need_lc
15785
15786# Whether or not to disallow shared libs when runtime libs are static.
15787allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15788
15789# Compiler flag to allow reflexive dlopens.
15790export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15791
15792# Compiler flag to generate shared objects directly from archives.
15793whole_archive_flag_spec=$lt_whole_archive_flag_spec
15794
15795# Whether the compiler copes with passing no objects directly.
15796compiler_needs_object=$lt_compiler_needs_object
15797
15798# Create an old-style archive from a shared archive.
15799old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15800
15801# Create a temporary old-style archive to link instead of a shared archive.
15802old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15803
15804# Commands used to build a shared archive.
15805archive_cmds=$lt_archive_cmds
15806archive_expsym_cmds=$lt_archive_expsym_cmds
15807
15808# Commands used to build a loadable module if different from building
15809# a shared archive.
15810module_cmds=$lt_module_cmds
15811module_expsym_cmds=$lt_module_expsym_cmds
15812
15813# Whether we are building with GNU ld or not.
15814with_gnu_ld=$lt_with_gnu_ld
15815
15816# Flag that allows shared libraries with undefined symbols to be built.
15817allow_undefined_flag=$lt_allow_undefined_flag
15818
15819# Flag that enforces no undefined symbols.
15820no_undefined_flag=$lt_no_undefined_flag
15821
15822# Flag to hardcode \$libdir into a binary during linking.
15823# This must work even if \$libdir does not exist
15824hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15825
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015826# Whether we need a single "-rpath" flag with a separated argument.
15827hardcode_libdir_separator=$lt_hardcode_libdir_separator
15828
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015829# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015830# DIR into the resulting binary.
15831hardcode_direct=$hardcode_direct
15832
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015833# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015834# DIR into the resulting binary and the resulting library dependency is
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015835# "absolute",i.e impossible to change by setting \$shlibpath_var if the
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015836# library is relocated.
15837hardcode_direct_absolute=$hardcode_direct_absolute
15838
15839# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15840# into the resulting binary.
15841hardcode_minus_L=$hardcode_minus_L
15842
15843# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15844# into the resulting binary.
15845hardcode_shlibpath_var=$hardcode_shlibpath_var
15846
15847# Set to "yes" if building a shared library automatically hardcodes DIR
15848# into the library and all subsequent libraries and executables linked
15849# against it.
15850hardcode_automatic=$hardcode_automatic
15851
15852# Set to yes if linker adds runtime paths of dependent libraries
15853# to runtime path list.
15854inherit_rpath=$inherit_rpath
15855
15856# Whether libtool must link a program against all its dependency libraries.
15857link_all_deplibs=$link_all_deplibs
15858
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015859# Set to "yes" if exported symbols are required.
15860always_export_symbols=$always_export_symbols
15861
15862# The commands to list exported symbols.
15863export_symbols_cmds=$lt_export_symbols_cmds
15864
15865# Symbols that should not be listed in the preloaded symbols.
15866exclude_expsyms=$lt_exclude_expsyms
15867
15868# Symbols that must always be exported.
15869include_expsyms=$lt_include_expsyms
15870
15871# Commands necessary for linking programs (against libraries) with templates.
15872prelink_cmds=$lt_prelink_cmds
15873
Douglas Gilbertc978e062011-12-06 21:50:07 +000015874# Commands necessary for finishing linking programs.
15875postlink_cmds=$lt_postlink_cmds
15876
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015877# Specify filename containing input files.
15878file_list_spec=$lt_file_list_spec
15879
15880# How to hardcode a shared library path into an executable.
15881hardcode_action=$hardcode_action
15882
15883# ### END LIBTOOL CONFIG
15884
15885_LT_EOF
15886
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015887 cat <<'_LT_EOF' >> "$cfgfile"
15888
15889# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15890
15891# func_munge_path_list VARIABLE PATH
15892# -----------------------------------
15893# VARIABLE is name of variable containing _space_ separated list of
15894# directories to be munged by the contents of PATH, which is string
15895# having a format:
15896# "DIR[:DIR]:"
15897# string "DIR[ DIR]" will be prepended to VARIABLE
15898# ":DIR[:DIR]"
15899# string "DIR[ DIR]" will be appended to VARIABLE
15900# "DIRP[:DIRP]::[DIRA:]DIRA"
15901# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15902# "DIRA[ DIRA]" will be appended to VARIABLE
15903# "DIR[:DIR]"
15904# VARIABLE will be replaced by "DIR[ DIR]"
15905func_munge_path_list ()
15906{
15907 case x$2 in
15908 x)
15909 ;;
15910 *:)
15911 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15912 ;;
15913 x:*)
15914 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15915 ;;
15916 *::*)
15917 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15918 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15919 ;;
15920 *)
15921 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15922 ;;
15923 esac
15924}
15925
15926
15927# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15928func_cc_basename ()
15929{
15930 for cc_temp in $*""; do
15931 case $cc_temp in
15932 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15933 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15934 \-*) ;;
15935 *) break;;
15936 esac
15937 done
15938 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15939}
15940
15941
15942# ### END FUNCTIONS SHARED WITH CONFIGURE
15943
15944_LT_EOF
15945
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015946 case $host_os in
15947 aix3*)
15948 cat <<\_LT_EOF >> "$cfgfile"
15949# AIX sometimes has problems with the GCC collect2 program. For some
15950# reason, if we set the COLLECT_NAMES environment variable, the problems
15951# vanish in a puff of smoke.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015952if test set != "${COLLECT_NAMES+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015953 COLLECT_NAMES=
15954 export COLLECT_NAMES
15955fi
15956_LT_EOF
15957 ;;
15958 esac
15959
15960
Douglas Gilbert891844a2022-04-24 18:11:56 +000015961
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015962ltmain=$ac_aux_dir/ltmain.sh
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015963
15964
15965 # We use sed instead of cat because bash on DJGPP gets confused if
15966 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15967 # text mode, it properly converts lines to CR/LF. This bash problem
15968 # is reportedly fixed, but why not run on old versions too?
Douglas Gilbert23beedb2022-08-07 02:22:53 +000015969 $SED '$q' "$ltmain" >> "$cfgfile" \
Douglas Gilbertc978e062011-12-06 21:50:07 +000015970 || (rm -f "$cfgfile"; exit 1)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015971
Douglas Gilbertc978e062011-12-06 21:50:07 +000015972 mv -f "$cfgfile" "$ofile" ||
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015973 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15974 chmod +x "$ofile"
15975
15976 ;;
15977
15978 esac
15979done # for ac_tag
15980
15981
15982as_fn_exit 0
15983_ACEOF
15984ac_clean_files=$ac_clean_files_save
15985
15986test $ac_write_fail = 0 ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000015987 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015988
15989
15990# configure is writing to config.log, and then calls config.status.
15991# config.status does its own redirection, appending to config.log.
15992# Unfortunately, on DOS this fails, as config.log is still kept open
15993# by configure, so config.status won't be able to write to it; its
15994# output is simply discarded. So we exec the FD to /dev/null,
15995# effectively closing config.log, so it can be properly (re)opened and
15996# appended to by config.status. When coming back to configure, we
15997# need to make the FD available again.
15998if test "$no_create" != yes; then
15999 ac_cs_success=:
16000 ac_config_status_args=
16001 test "$silent" = yes &&
16002 ac_config_status_args="$ac_config_status_args --quiet"
16003 exec 5>/dev/null
16004 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16005 exec 5>>config.log
16006 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16007 # would make configure fail if this is the last instruction.
Douglas Gilbert02f2be12010-11-12 16:00:04 +000016008 $ac_cs_success || as_fn_exit 1
Douglas Gilbert366d25e2010-09-21 03:27:01 +000016009fi
16010if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Douglas Gilbert891844a2022-04-24 18:11:56 +000016011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16012printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000016013fi
16014
Douglas Gilbert792b75e2018-02-05 23:31:17 +000016015
16016
16017# Borrowed from smartmontools configure.ac
16018# Note: Use `...` here as some shells do not properly parse '$(... case $x in X) ...)'
16019info=`
16020 echo "-----------------------------------------------------------------------------"
16021 echo "${PACKAGE}-${VERSION} configuration:"
16022 echo "host operating system: $host"
Douglas Gilbert4a5962a2018-02-08 14:40:26 +000016023 echo "default C compiler: $CC"
Douglas Gilbert792b75e2018-02-05 23:31:17 +000016024
16025 case "$host_os" in
16026 mingw*)
16027 echo "application manifest: ${os_win32_manifest:-built-in}"
16028 echo "resource compiler: $WINDRES"
16029 echo "message compiler: $WINDMC"
16030 echo "NSIS compiler: $MAKENSIS"
16031 ;;
16032
16033 *)
16034 echo "binary install path: \`eval eval eval echo $bindir\`"
Douglas Gilbert4a5962a2018-02-08 14:40:26 +000016035 echo "scripts install path: \`eval eval eval echo $bindir\`"
Douglas Gilbert792b75e2018-02-05 23:31:17 +000016036 echo "man page install path: \`eval eval eval echo $mandir\`"
Douglas Gilbert792b75e2018-02-05 23:31:17 +000016037 ;;
16038 esac
16039 echo "-----------------------------------------------------------------------------"
16040`
16041
Douglas Gilbert891844a2022-04-24 18:11:56 +000016042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:
Douglas Gilbert792b75e2018-02-05 23:31:17 +000016043$info
16044" >&5
Douglas Gilbert891844a2022-04-24 18:11:56 +000016045printf "%s\n" "$as_me:
Douglas Gilbert792b75e2018-02-05 23:31:17 +000016046$info
16047" >&6;}
16048
Douglas Gilbert891844a2022-04-24 18:11:56 +000016049