blob: 86a0aba6976b328b76f9bb8176eb9b1c40930dbe [file] [log] [blame]
Iain Buclawb4c522f2018-10-28 19:51:47 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Joseph Myers22e05272018-10-31 17:03:16 +00003# Generated by GNU Autoconf 2.69 for package-unused version-unused.
Iain Buclawb4c522f2018-10-28 19:51:47 +00004#
Joseph Myers22e05272018-10-31 17:03:16 +00005#
Rainer Orth0b6e3122019-02-14 17:47:49 +00006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Joseph Myers22e05272018-10-31 17:03:16 +00007#
Iain Buclawb4c522f2018-10-28 19:51:47 +00008#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Joseph Myers22e05272018-10-31 17:03:16 +000090as_myself=
Iain Buclawb4c522f2018-10-28 19:51:47 +000091case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Joseph Myers22e05272018-10-31 17:03:16 +0000135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Iain Buclawb4c522f2018-10-28 19:51:47 +0000160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Joseph Myers22e05272018-10-31 17:03:16 +0000193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Rainer Orth235d1c42019-04-14 09:30:42 +0000199test \$(( 1 + 1 )) = 2 || exit 1
Iain Buclawb4c522f2018-10-28 19:51:47 +0000200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
Rainer Orth235d1c42019-04-14 09:30:42 +0000207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
Joseph Myers22e05272018-10-31 17:03:16 +0000247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
Iain Buclawb4c522f2018-10-28 19:51:47 +0000266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
Joseph Myers22e05272018-10-31 17:03:16 +0000363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000364
365
366} # as_fn_mkdir_p
Joseph Myers22e05272018-10-31 17:03:16 +0000367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +0000375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
Joseph Myers22e05272018-10-31 17:03:16 +0000411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
Iain Buclawb4c522f2018-10-28 19:51:47 +0000413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Joseph Myers22e05272018-10-31 17:03:16 +0000415# script with STATUS, using 1 if that was 0.
Iain Buclawb4c522f2018-10-28 19:51:47 +0000416as_fn_error ()
417{
Joseph Myers22e05272018-10-31 17:03:16 +0000418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Iain Buclawb4c522f2018-10-28 19:51:47 +0000422 fi
Joseph Myers22e05272018-10-31 17:03:16 +0000423 $as_echo "$as_me: error: $2" >&2
Iain Buclawb4c522f2018-10-28 19:51:47 +0000424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
Joseph Myers22e05272018-10-31 17:03:16 +0000496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
Iain Buclawb4c522f2018-10-28 19:51:47 +0000500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Joseph Myers22e05272018-10-31 17:03:16 +0000534 # In both cases, we have to default to `cp -pR'.
Iain Buclawb4c522f2018-10-28 19:51:47 +0000535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Joseph Myers22e05272018-10-31 17:03:16 +0000536 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
Joseph Myers22e05272018-10-31 17:03:16 +0000540 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000541 fi
542else
Joseph Myers22e05272018-10-31 17:03:16 +0000543 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
Joseph Myers22e05272018-10-31 17:03:16 +0000555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +0000557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
Joseph Myers22e05272018-10-31 17:03:16 +0000567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
Iain Buclawb4c522f2018-10-28 19:51:47 +0000569
570# Name of the host.
Joseph Myers22e05272018-10-31 17:03:16 +0000571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Iain Buclawb4c522f2018-10-28 19:51:47 +0000572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='package-unused'
589PACKAGE_TARNAME='libphobos'
590PACKAGE_VERSION='version-unused'
591PACKAGE_STRING='package-unused version-unused'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="libdruntime/gcc/attribute.d"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
Iain Buclaw38c30172020-03-29 23:54:01 +0200636WARN_DFLAGS
Iain Buclaw85041a52018-11-28 17:54:07 +0000637libtool_VERSION
Iain Buclawb4c522f2018-10-28 19:51:47 +0000638SPEC_PHOBOS_DEPS
Iain Buclawc0dbfbd2020-04-09 00:41:14 +0200639CHECKING_DFLAGS
Iain Buclaw261bd782020-03-25 09:38:58 +0100640ENABLE_LIBDRUNTIME_ONLY_FALSE
641ENABLE_LIBDRUNTIME_ONLY_TRUE
Rainer Orthbca0a322019-05-07 10:38:45 +0000642ENABLE_LIBPHOBOS_FALSE
643ENABLE_LIBPHOBOS_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000644gdc_include_dir
Iain Buclawac677522018-11-02 08:29:50 +0000645libphobos_toolexeclibdir
646libphobos_toolexecdir
Iain Buclawb4c522f2018-10-28 19:51:47 +0000647gcc_version
Iain Buclawbb503122019-04-12 20:13:34 +0000648LIBZ
Iain Buclawb4c522f2018-10-28 19:51:47 +0000649BACKTRACE_SUPPORTS_THREADS
650BACKTRACE_USES_MALLOC
651BACKTRACE_SUPPORTED
652LIBBACKTRACE
653LIBATOMIC
654DCFG_HAVE_LIBATOMIC
655DCFG_HAVE_64BIT_ATOMICS
656DCFG_HAVE_ATOMIC_BUILTINS
Johannes Pfau36d7f152019-02-18 23:29:39 +0000657DCFG_HAVE_QSORT_R
Rainer Orthba838aa2019-04-14 09:24:26 +0000658OS_LINK_SPEC
Rainer Orth235d1c42019-04-14 09:30:42 +0000659DCFG_DLPI_TLS_MODID
Rainer Orth0b6e3122019-02-14 17:47:49 +0000660DRUNTIME_OS_MINFO_BRACKETING_FALSE
661DRUNTIME_OS_MINFO_BRACKETING_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000662DCFG_MINFO_BRACKETING
663DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665DCFG_ARM_EABI_UNWINDER
666DCFG_THREAD_MODEL
Iain Buclaw72c136c2020-04-08 22:52:05 +0200667DRUNTIME_OS_POSIX_FALSE
668DRUNTIME_OS_POSIX_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000669DRUNTIME_OS_SOLARIS_FALSE
670DRUNTIME_OS_SOLARIS_TRUE
671DRUNTIME_OS_MINGW_FALSE
672DRUNTIME_OS_MINGW_TRUE
673DRUNTIME_OS_LINUX_FALSE
674DRUNTIME_OS_LINUX_TRUE
675DRUNTIME_OS_OPENBSD_FALSE
676DRUNTIME_OS_OPENBSD_TRUE
677DRUNTIME_OS_NETBSD_FALSE
678DRUNTIME_OS_NETBSD_TRUE
679DRUNTIME_OS_FREEBSD_FALSE
680DRUNTIME_OS_FREEBSD_TRUE
681DRUNTIME_OS_DRAGONFLYBSD_FALSE
682DRUNTIME_OS_DRAGONFLYBSD_TRUE
683DRUNTIME_OS_DARWIN_FALSE
684DRUNTIME_OS_DARWIN_TRUE
685DRUNTIME_OS_ANDROID_FALSE
686DRUNTIME_OS_ANDROID_TRUE
687DRUNTIME_OS_AIX_FALSE
688DRUNTIME_OS_AIX_TRUE
Robin Dapp88e508f2020-04-07 21:05:38 +0200689DRUNTIME_CPU_S390_FALSE
690DRUNTIME_CPU_S390_TRUE
691DRUNTIME_CPU_SYSTEMZ_FALSE
692DRUNTIME_CPU_SYSTEMZ_TRUE
Iain Buclaw2493e712019-04-24 22:46:59 +0000693DRUNTIME_CPU_X86_FALSE
694DRUNTIME_CPU_X86_TRUE
Iain Buclaw2493e712019-04-24 22:46:59 +0000695DRUNTIME_CPU_POWERPC_FALSE
696DRUNTIME_CPU_POWERPC_TRUE
697DRUNTIME_CPU_MIPS_FALSE
698DRUNTIME_CPU_MIPS_TRUE
699DRUNTIME_CPU_ARM_FALSE
700DRUNTIME_CPU_ARM_TRUE
701DRUNTIME_CPU_AARCH64_FALSE
702DRUNTIME_CPU_AARCH64_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000703libphobos_srcdir
704libphobos_builddir
705get_gcc_base_ver
706phobos_compiler_shared_flag
707phobos_compiler_pic_flag
Iain Buclawb4c522f2018-10-28 19:51:47 +0000708OTOOL64
709OTOOL
710LIPO
711NMEDIT
712DSYMUTIL
713OBJDUMP
714LN_S
715NM
716ac_ct_DUMPBIN
717DUMPBIN
718LD
719FGREP
Iain Buclawb4c522f2018-10-28 19:51:47 +0000720SED
721LIBTOOL
722CFLAGS_FOR_BUILD
723CC_FOR_BUILD
724AR
Iain Buclaw285d81b2020-09-07 15:43:04 +0200725DCFG_ENABLE_CET
H.J. Lu08c1d392020-05-08 15:11:24 -0700726CET_FLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +0000727RANLIB
728MAINT
729MAINTAINER_MODE_FALSE
730MAINTAINER_MODE_TRUE
731GDCFLAGS
732GDC
733CCASFLAGS
734CCAS
Joseph Myers22e05272018-10-31 17:03:16 +0000735AM_BACKSLASH
736AM_DEFAULT_VERBOSITY
737AM_DEFAULT_V
738AM_V
Iain Buclawb4c522f2018-10-28 19:51:47 +0000739am__untar
740am__tar
741AMTAR
742am__leading_dot
743SET_MAKE
744AWK
745mkdir_p
746MKDIR_P
747INSTALL_STRIP_PROGRAM
748STRIP
749install_sh
750MAKEINFO
751AUTOHEADER
752AUTOMAKE
753AUTOCONF
754ACLOCAL
755VERSION
756PACKAGE
757CYGPATH_W
758am__isrc
759INSTALL_DATA
760INSTALL_SCRIPT
761INSTALL_PROGRAM
Rainer Orth235d1c42019-04-14 09:30:42 +0000762EGREP
763GREP
764CPP
765OBJEXT
766EXEEXT
767ac_ct_CC
768CPPFLAGS
769LDFLAGS
770CFLAGS
771CC
Iain Buclawb4c522f2018-10-28 19:51:47 +0000772target_os
773target_vendor
774target_cpu
775target
776host_os
777host_vendor
778host_cpu
779host
780build_os
781build_vendor
782build_cpu
783build
784multi_basedir
785target_alias
786host_alias
787build_alias
788LIBS
789ECHO_T
790ECHO_N
791ECHO_C
792DEFS
793mandir
794localedir
795libdir
796psdir
797pdfdir
798dvidir
799htmldir
800infodir
801docdir
802oldincludedir
803includedir
804localstatedir
805sharedstatedir
806sysconfdir
807datadir
808datarootdir
809libexecdir
810sbindir
811bindir
812program_transform_name
813prefix
814exec_prefix
815PACKAGE_URL
816PACKAGE_BUGREPORT
817PACKAGE_STRING
818PACKAGE_VERSION
819PACKAGE_TARNAME
820PACKAGE_NAME
821PATH_SEPARATOR
822SHELL'
Rainer Orth0b6e3122019-02-14 17:47:49 +0000823ac_subst_files='DRTSTUFF_SPEC'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000824ac_user_opts='
825enable_option_checking
826enable_multilib
Joseph Myers22e05272018-10-31 17:03:16 +0000827enable_silent_rules
Iain Buclawb4c522f2018-10-28 19:51:47 +0000828enable_maintainer_mode
H.J. Lu08c1d392020-05-08 15:11:24 -0700829enable_cet
Iain Buclawb4c522f2018-10-28 19:51:47 +0000830enable_shared
831enable_static
832with_pic
833enable_fast_install
834with_gnu_ld
835enable_libtool_lock
836with_gcc_major_version_only
837enable_werror
Iain Buclawb4c522f2018-10-28 19:51:47 +0000838with_libatomic
839with_libbacktrace
840with_target_system_zlib
841with_cross_host
Iain Buclawac677522018-11-02 08:29:50 +0000842enable_version_specific_runtime_libs
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +0000843with_toolexeclibdir
Rainer Orthbca0a322019-05-07 10:38:45 +0000844enable_libphobos
Iain Buclaw371d1012020-04-20 18:50:36 +0200845with_libphobos_druntime_only
Iain Buclawc0dbfbd2020-04-09 00:41:14 +0200846enable_libphobos_checking
Iain Buclawb4c522f2018-10-28 19:51:47 +0000847'
848 ac_precious_vars='build_alias
849host_alias
850target_alias
Rainer Orth235d1c42019-04-14 09:30:42 +0000851CC
852CFLAGS
853LDFLAGS
854LIBS
855CPPFLAGS
856CPP'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000857
858
859# Initialize some variables set by options.
860ac_init_help=
861ac_init_version=false
862ac_unrecognized_opts=
863ac_unrecognized_sep=
864# The variables have the same names as the options, with
865# dashes changed to underlines.
866cache_file=/dev/null
867exec_prefix=NONE
868no_create=
869no_recursion=
870prefix=NONE
871program_prefix=NONE
872program_suffix=NONE
873program_transform_name=s,x,x,
874silent=
875site=
876srcdir=
877verbose=
878x_includes=NONE
879x_libraries=NONE
880
881# Installation directory options.
882# These are left unexpanded so users can "make install exec_prefix=/foo"
883# and all the variables that are supposed to be based on exec_prefix
884# by default will actually change.
885# Use braces instead of parens because sh, perl, etc. also accept them.
886# (The list follows the same order as the GNU Coding Standards.)
887bindir='${exec_prefix}/bin'
888sbindir='${exec_prefix}/sbin'
889libexecdir='${exec_prefix}/libexec'
890datarootdir='${prefix}/share'
891datadir='${datarootdir}'
892sysconfdir='${prefix}/etc'
893sharedstatedir='${prefix}/com'
894localstatedir='${prefix}/var'
895includedir='${prefix}/include'
896oldincludedir='/usr/include'
897docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898infodir='${datarootdir}/info'
899htmldir='${docdir}'
900dvidir='${docdir}'
901pdfdir='${docdir}'
902psdir='${docdir}'
903libdir='${exec_prefix}/lib'
904localedir='${datarootdir}/locale'
905mandir='${datarootdir}/man'
906
907ac_prev=
908ac_dashdash=
909for ac_option
910do
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
914 ac_prev=
915 continue
916 fi
917
918 case $ac_option in
Joseph Myers22e05272018-10-31 17:03:16 +0000919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 *=) ac_optarg= ;;
921 *) ac_optarg=yes ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +0000922 esac
923
924 # Accept the important Cygnus configure options, so we can diagnose typos.
925
926 case $ac_dashdash$ac_option in
927 --)
928 ac_dashdash=yes ;;
929
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 ac_prev=bindir ;;
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933 bindir=$ac_optarg ;;
934
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
939
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
946
947 --config-cache | -C)
948 cache_file=config.cache ;;
949
950 -datadir | --datadir | --datadi | --datad)
951 ac_prev=datadir ;;
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
954
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
961
962 -disable-* | --disable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000966 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971"enable_$ac_useropt"
972"*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=no ;;
977
978 -docdir | --docdir | --docdi | --doc | --do)
979 ac_prev=docdir ;;
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 docdir=$ac_optarg ;;
982
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984 ac_prev=dvidir ;;
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 dvidir=$ac_optarg ;;
987
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000992 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997"enable_$ac_useropt"
998"*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=\$ac_optarg ;;
1003
1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006 | --exec | --exe | --ex)
1007 ac_prev=exec_prefix ;;
1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010 | --exec=* | --exe=* | --ex=*)
1011 exec_prefix=$ac_optarg ;;
1012
1013 -gas | --gas | --ga | --g)
1014 # Obsolete; use --with-gas.
1015 with_gas=yes ;;
1016
1017 -help | --help | --hel | --he | -h)
1018 ac_init_help=long ;;
1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020 ac_init_help=recursive ;;
1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022 ac_init_help=short ;;
1023
1024 -host | --host | --hos | --ho)
1025 ac_prev=host_alias ;;
1026 -host=* | --host=* | --hos=* | --ho=*)
1027 host_alias=$ac_optarg ;;
1028
1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 ac_prev=htmldir ;;
1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 | --ht=*)
1033 htmldir=$ac_optarg ;;
1034
1035 -includedir | --includedir | --includedi | --included | --include \
1036 | --includ | --inclu | --incl | --inc)
1037 ac_prev=includedir ;;
1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039 | --includ=* | --inclu=* | --incl=* | --inc=*)
1040 includedir=$ac_optarg ;;
1041
1042 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 ac_prev=infodir ;;
1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045 infodir=$ac_optarg ;;
1046
1047 -libdir | --libdir | --libdi | --libd)
1048 ac_prev=libdir ;;
1049 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050 libdir=$ac_optarg ;;
1051
1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053 | --libexe | --libex | --libe)
1054 ac_prev=libexecdir ;;
1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056 | --libexe=* | --libex=* | --libe=*)
1057 libexecdir=$ac_optarg ;;
1058
1059 -localedir | --localedir | --localedi | --localed | --locale)
1060 ac_prev=localedir ;;
1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062 localedir=$ac_optarg ;;
1063
1064 -localstatedir | --localstatedir | --localstatedi | --localstated \
1065 | --localstate | --localstat | --localsta | --localst | --locals)
1066 ac_prev=localstatedir ;;
1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069 localstatedir=$ac_optarg ;;
1070
1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 ac_prev=mandir ;;
1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074 mandir=$ac_optarg ;;
1075
1076 -nfp | --nfp | --nf)
1077 # Obsolete; use --without-fp.
1078 with_fp=no ;;
1079
1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081 | --no-cr | --no-c | -n)
1082 no_create=yes ;;
1083
1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 no_recursion=yes ;;
1087
1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090 | --oldin | --oldi | --old | --ol | --o)
1091 ac_prev=oldincludedir ;;
1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095 oldincludedir=$ac_optarg ;;
1096
1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 ac_prev=prefix ;;
1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100 prefix=$ac_optarg ;;
1101
1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103 | --program-pre | --program-pr | --program-p)
1104 ac_prev=program_prefix ;;
1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107 program_prefix=$ac_optarg ;;
1108
1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110 | --program-suf | --program-su | --program-s)
1111 ac_prev=program_suffix ;;
1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114 program_suffix=$ac_optarg ;;
1115
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 ac_prev=program_transform_name ;;
1124 -program-transform-name=* | --program-transform-name=* \
1125 | --program-transform-nam=* | --program-transform-na=* \
1126 | --program-transform-n=* | --program-transform-=* \
1127 | --program-transform=* | --program-transfor=* \
1128 | --program-transfo=* | --program-transf=* \
1129 | --program-trans=* | --program-tran=* \
1130 | --progr-tra=* | --program-tr=* | --program-t=*)
1131 program_transform_name=$ac_optarg ;;
1132
1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 ac_prev=pdfdir ;;
1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136 pdfdir=$ac_optarg ;;
1137
1138 -psdir | --psdir | --psdi | --psd | --ps)
1139 ac_prev=psdir ;;
1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 psdir=$ac_optarg ;;
1142
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1145 silent=yes ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001196 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001212 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217"with_$ac_useropt"
1218"*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
Joseph Myers22e05272018-10-31 17:03:16 +00001242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243Try \`$0 --help' for more information"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
Joseph Myers22e05272018-10-31 17:03:16 +00001251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Joseph Myers22e05272018-10-31 17:03:16 +00001261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001262 ;;
1263
1264 esac
1265done
1266
1267if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00001269 as_fn_error $? "missing argument to $ac_option"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001270fi
1271
1272if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00001275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278fi
1279
1280# Check all directory arguments for consistency.
1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Iain Buclawd8b1f492019-02-10 22:10:22 +00001284 libdir localedir mandir
Iain Buclawb4c522f2018-10-28 19:51:47 +00001285do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
Joseph Myers22e05272018-10-31 17:03:16 +00001298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001299done
1300
1301# There might be people who depend on the old broken behavior: `$host'
1302# used to hold the argument of --host etc.
1303# FIXME: To remove some day.
1304build=$build_alias
1305host=$host_alias
1306target=$target_alias
1307
1308# FIXME: To remove some day.
1309if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
Iain Buclawb4c522f2018-10-28 19:51:47 +00001312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315fi
1316
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
1321
1322
1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Joseph Myers22e05272018-10-31 17:03:16 +00001326 as_fn_error $? "working directory cannot be determined"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Joseph Myers22e05272018-10-31 17:03:16 +00001328 as_fn_error $? "pwd does not report name of working directory"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001329
1330
1331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340$as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362else
1363 ac_srcdir_defaulted=no
1364fi
1365if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Joseph Myers22e05272018-10-31 17:03:16 +00001367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001368fi
1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370ac_abs_confdir=`(
Joseph Myers22e05272018-10-31 17:03:16 +00001371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001372 pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
Joseph Myers22e05272018-10-31 17:03:16 +00001411 -q, --quiet, --silent do not print \`checking ...' messages
Iain Buclawb4c522f2018-10-28 19:51:47 +00001412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450_ACEOF
1451
1452 cat <<\_ACEOF
1453
1454Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 --target=TARGET configure for building compilers for TARGET [HOST]
1463_ACEOF
1464fi
1465
1466if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of package-unused version-unused:";;
1469 esac
1470 cat <<\_ACEOF
1471
1472Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-multilib build many library versions (default)
Joseph Myers22e05272018-10-31 17:03:16 +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
H.J. Lu4c1a5d82020-05-15 09:06:50 -07001482 --enable-cet enable Intel CET in target libraries [default=auto]
Iain Buclawb4c522f2018-10-28 19:51:47 +00001483 --enable-shared[=PKGS] build shared libraries [default=yes]
1484 --enable-static[=PKGS] build static libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --disable-libtool-lock avoid locking (might break parallel builds)
1488 --enable-werror turns on -Werror [default=no]
Iain Buclawac677522018-11-02 08:29:50 +00001489 --enable-version-specific-runtime-libs
1490 Specify that runtime libraries should be installed
1491 in a compiler-specific directory
Rainer Orthbca0a322019-05-07 10:38:45 +00001492 --enable-libphobos Enable libphobos
Iain Buclawc0dbfbd2020-04-09 00:41:14 +02001493 --enable-libphobos-checking[=LIST]
1494 enable expensive run-time checks. With LIST, enable
1495 only specific categories of checks. Categories are:
1496 yes,no,all,none,release. Flags are: assert or other
1497 strings
Iain Buclawb4c522f2018-10-28 19:51:47 +00001498
1499Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-pic try to use only PIC/non-PIC objects [default=use
1503 both]
1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-gcc-major-version-only
1506 use only GCC major number in filesystem paths
1507 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1508 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1509 auto)
Iain Buclawbb503122019-04-12 20:13:34 +00001510 --with-target-system-zlib={yes,no,auto}
Iain Buclawb4c522f2018-10-28 19:51:47 +00001511 use installed libz (default: no)
1512 --with-cross-host=HOST configuring with a cross compiler
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +00001513 --with-toolexeclibdir=DIR
1514 install libraries built with a cross compiler within
1515 DIR
Iain Buclaw261bd782020-03-25 09:38:58 +01001516 --with-libphobos-druntime-only={yes,no,auto}
1517 build only the druntime library (default: auto)
Iain Buclawb4c522f2018-10-28 19:51:47 +00001518
1519Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
Joseph Myers22e05272018-10-31 17:03:16 +00001525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Iain Buclawb4c522f2018-10-28 19:51:47 +00001526 you have headers in a nonstandard directory <include dir>
Rainer Orth235d1c42019-04-14 09:30:42 +00001527 CPP C preprocessor
Iain Buclawb4c522f2018-10-28 19:51:47 +00001528 CCAS assembler compiler command (defaults to CC)
1529 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1530 GDC D compiler command
1531 GDCFLAGS D compiler flags
Iain Buclawb4c522f2018-10-28 19:51:47 +00001532
1533Use these variables to override the choices made by `configure' or to help
1534it to find libraries and programs with nonstandard names/locations.
1535
1536Report bugs to the package provider.
1537_ACEOF
1538ac_status=$?
1539fi
1540
1541if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
1547 ac_builddir=.
1548
1549case "$ac_dir" in
1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551*)
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559esac
1560ac_abs_top_builddir=$ac_pwd
1561ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562# for backward compatibility:
1563ac_top_builddir=$ac_top_build_prefix
1564
1565case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578esac
1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594fi
1595
1596test -n "$ac_init_help" && exit $ac_status
1597if $ac_init_version; then
1598 cat <<\_ACEOF
1599package-unused configure version-unused
Joseph Myers22e05272018-10-31 17:03:16 +00001600generated by GNU Autoconf 2.69
Iain Buclawb4c522f2018-10-28 19:51:47 +00001601
Rainer Orth0b6e3122019-02-14 17:47:49 +00001602Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +00001603This configure script is free software; the Free Software Foundation
1604gives unlimited permission to copy, distribute and modify it.
1605_ACEOF
1606 exit
1607fi
1608
1609## ------------------------ ##
1610## Autoconf initialization. ##
1611## ------------------------ ##
1612
1613# ac_fn_c_try_compile LINENO
1614# --------------------------
1615# Try to compile conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_compile ()
1617{
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext
1620 if { { ac_try="$ac_compile"
1621case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext; then :
1639 ac_retval=0
1640else
1641 $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645fi
Joseph Myers22e05272018-10-31 17:03:16 +00001646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001648
1649} # ac_fn_c_try_compile
1650
Iain Buclawb4c522f2018-10-28 19:51:47 +00001651# ac_fn_c_try_cpp LINENO
1652# ----------------------
1653# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_c_try_cpp ()
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00001672 test $ac_status = 0; } > conftest.i && {
Iain Buclawb4c522f2018-10-28 19:51:47 +00001673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 }; then :
1676 ac_retval=0
1677else
1678 $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682fi
Joseph Myers22e05272018-10-31 17:03:16 +00001683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001685
1686} # ac_fn_c_try_cpp
1687
Iain Buclawb4c522f2018-10-28 19:51:47 +00001688# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1689# -------------------------------------------------------
1690# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1691# the include files in INCLUDES and setting the cache variable VAR
1692# accordingly.
1693ac_fn_c_check_header_mongrel ()
1694{
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Joseph Myers22e05272018-10-31 17:03:16 +00001696 if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001699if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001700 $as_echo_n "(cached) " >&6
1701fi
1702eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704$as_echo "$ac_res" >&6; }
1705else
1706 # Is the header compilable?
1707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1708$as_echo_n "checking $2 usability... " >&6; }
1709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710/* end confdefs.h. */
1711$4
1712#include <$2>
1713_ACEOF
1714if ac_fn_c_try_compile "$LINENO"; then :
1715 ac_header_compiler=yes
1716else
1717 ac_header_compiler=no
1718fi
1719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1721$as_echo "$ac_header_compiler" >&6; }
1722
1723# Is the header present?
1724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1725$as_echo_n "checking $2 presence... " >&6; }
1726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727/* end confdefs.h. */
1728#include <$2>
1729_ACEOF
1730if ac_fn_c_try_cpp "$LINENO"; then :
1731 ac_header_preproc=yes
1732else
1733 ac_header_preproc=no
1734fi
Joseph Myers22e05272018-10-31 17:03:16 +00001735rm -f conftest.err conftest.i conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00001736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1737$as_echo "$ac_header_preproc" >&6; }
1738
1739# So? What about this header?
1740case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1741 yes:no: )
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1743$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1745$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 ;;
1747 no:yes:* )
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1749$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1751$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1753$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1755$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1757$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1758 ;;
1759esac
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001762if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001763 $as_echo_n "(cached) " >&6
1764else
1765 eval "$3=\$ac_header_compiler"
1766fi
1767eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
1770fi
Joseph Myers22e05272018-10-31 17:03:16 +00001771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Iain Buclawb4c522f2018-10-28 19:51:47 +00001772
1773} # ac_fn_c_check_header_mongrel
Rainer Orth235d1c42019-04-14 09:30:42 +00001774
1775# ac_fn_c_try_run LINENO
1776# ----------------------
1777# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1778# that executables *can* be run.
1779ac_fn_c_try_run ()
1780{
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_link"
1783case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>&5
1790 ac_status=$?
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1793 { { case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798$as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_try") 2>&5
1800 ac_status=$?
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; }; }; then :
1803 ac_retval=0
1804else
1805 $as_echo "$as_me: program exited with status $ac_status" >&5
1806 $as_echo "$as_me: failed program was:" >&5
1807sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=$ac_status
1810fi
1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1814
1815} # ac_fn_c_try_run
1816
1817# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1818# -------------------------------------------------------
1819# Tests whether HEADER exists and can be compiled using the include files in
1820# INCLUDES, setting the cache variable VAR accordingly.
1821ac_fn_c_check_header_compile ()
1822{
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
1826if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828else
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h. */
1831$4
1832#include <$2>
1833_ACEOF
1834if ac_fn_c_try_compile "$LINENO"; then :
1835 eval "$3=yes"
1836else
1837 eval "$3=no"
1838fi
1839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840fi
1841eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843$as_echo "$ac_res" >&6; }
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846} # ac_fn_c_check_header_compile
1847
1848# ac_fn_d_try_compile LINENO
1849# --------------------------
1850# Try to compile conftest.$ac_ext, and return whether this succeeded.
1851ac_fn_d_try_compile ()
1852{
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext
1855 if { { ac_try="$ac_compile"
1856case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_compile") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_d_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest.$ac_objext; then :
1874 ac_retval=0
1875else
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880fi
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1883
1884} # ac_fn_d_try_compile
1885
1886# ac_fn_c_try_link LINENO
1887# -----------------------
1888# Try to link conftest.$ac_ext, and return whether this succeeded.
1889ac_fn_c_try_link ()
1890{
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext conftest$ac_exeext
1893 if { { ac_try="$ac_link"
1894case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897esac
1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899$as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1906 fi
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_c_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest$ac_exeext && {
1912 test "$cross_compiling" = yes ||
1913 test -x conftest$ac_exeext
1914 }; then :
1915 ac_retval=0
1916else
1917 $as_echo "$as_me: failed program was:" >&5
1918sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=1
1921fi
1922 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1923 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1924 # interfere with the next link command; also delete a directory that is
1925 # left behind by Apple's compiler. We do this before executing the actions.
1926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 as_fn_set_status $ac_retval
1929
1930} # ac_fn_c_try_link
1931
1932# ac_fn_c_check_func LINENO FUNC VAR
1933# ----------------------------------
1934# Tests whether FUNC exists, setting the cache variable VAR accordingly
1935ac_fn_c_check_func ()
1936{
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939$as_echo_n "checking for $2... " >&6; }
1940if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h. */
1945/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1947#define $2 innocuous_$2
1948
1949/* System header to define __stub macros and hopefully few prototypes,
1950 which can conflict with char $2 (); below.
1951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1952 <limits.h> exists even on freestanding compilers. */
1953
1954#ifdef __STDC__
1955# include <limits.h>
1956#else
1957# include <assert.h>
1958#endif
1959
1960#undef $2
1961
1962/* Override any GCC internal prototype to avoid an error.
1963 Use char because int might match the return type of a GCC
1964 builtin and then its argument prototype would still apply. */
1965#ifdef __cplusplus
1966extern "C"
1967#endif
1968char $2 ();
1969/* The GNU C library defines this for functions which it implements
1970 to always fail with ENOSYS. Some functions are actually named
1971 something starting with __ and the normal name is an alias. */
1972#if defined __stub_$2 || defined __stub___$2
1973choke me
1974#endif
1975
1976int
1977main ()
1978{
1979return $2 ();
1980 ;
1981 return 0;
1982}
1983_ACEOF
1984if ac_fn_c_try_link "$LINENO"; then :
1985 eval "$3=yes"
1986else
1987 eval "$3=no"
1988fi
1989rm -f core conftest.err conftest.$ac_objext \
1990 conftest$ac_exeext conftest.$ac_ext
1991fi
1992eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994$as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996
1997} # ac_fn_c_check_func
1998
1999# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2000# ----------------------------------------------------
2001# Tries to find if the field MEMBER exists in type AGGR, after including
2002# INCLUDES, setting cache variable VAR accordingly.
2003ac_fn_c_check_member ()
2004{
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2007$as_echo_n "checking for $2.$3... " >&6; }
2008if eval \${$4+:} false; then :
2009 $as_echo_n "(cached) " >&6
2010else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h. */
2013$5
2014int
2015main ()
2016{
2017static $2 ac_aggr;
2018if (ac_aggr.$3)
2019return 0;
2020 ;
2021 return 0;
2022}
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$4=yes"
2026else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h. */
2029$5
2030int
2031main ()
2032{
2033static $2 ac_aggr;
2034if (sizeof ac_aggr.$3)
2035return 0;
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_compile "$LINENO"; then :
2041 eval "$4=yes"
2042else
2043 eval "$4=no"
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048fi
2049eval ac_res=\$$4
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054} # ac_fn_c_check_member
2055
2056# ac_fn_d_try_link LINENO
2057# -----------------------
2058# Try to link conftest.$ac_ext, and return whether this succeeded.
2059ac_fn_d_try_link ()
2060{
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 rm -f conftest.$ac_objext conftest$ac_exeext
2063 if { { ac_try="$ac_link"
2064case "(($ac_try" in
2065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066 *) ac_try_echo=$ac_try;;
2067esac
2068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069$as_echo "$ac_try_echo"; } >&5
2070 (eval "$ac_link") 2>conftest.err
2071 ac_status=$?
2072 if test -s conftest.err; then
2073 grep -v '^ *+' conftest.err >conftest.er1
2074 cat conftest.er1 >&5
2075 mv -f conftest.er1 conftest.err
2076 fi
2077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078 test $ac_status = 0; } && {
2079 test -z "$ac_d_werror_flag" ||
2080 test ! -s conftest.err
2081 } && test -s conftest$ac_exeext && {
2082 test "$cross_compiling" = yes ||
2083 test -x conftest$ac_exeext
2084 }; then :
2085 ac_retval=0
2086else
2087 $as_echo "$as_me: failed program was:" >&5
2088sed 's/^/| /' conftest.$ac_ext >&5
2089
2090 ac_retval=1
2091fi
2092 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2093 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2094 # interfere with the next link command; also delete a directory that is
2095 # left behind by Apple's compiler. We do this before executing the actions.
2096 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 as_fn_set_status $ac_retval
2099
2100} # ac_fn_d_try_link
Iain Buclawb4c522f2018-10-28 19:51:47 +00002101cat >config.log <<_ACEOF
2102This file contains any messages produced by compilers while
2103running configure, to aid debugging if configure makes a mistake.
2104
2105It was created by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +00002106generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +00002107
2108 $ $0 $@
2109
2110_ACEOF
2111exec 5>>config.log
2112{
2113cat <<_ASUNAME
2114## --------- ##
2115## Platform. ##
2116## --------- ##
2117
2118hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2119uname -m = `(uname -m) 2>/dev/null || echo unknown`
2120uname -r = `(uname -r) 2>/dev/null || echo unknown`
2121uname -s = `(uname -s) 2>/dev/null || echo unknown`
2122uname -v = `(uname -v) 2>/dev/null || echo unknown`
2123
2124/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2125/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2126
2127/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2128/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2129/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2130/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2131/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2132/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2133/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2134
2135_ASUNAME
2136
2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 $as_echo "PATH: $as_dir"
2143 done
2144IFS=$as_save_IFS
2145
2146} >&5
2147
2148cat >&5 <<_ACEOF
2149
2150
2151## ----------- ##
2152## Core tests. ##
2153## ----------- ##
2154
2155_ACEOF
2156
2157
2158# Keep a trace of the command line.
2159# Strip out --no-create and --no-recursion so they do not pile up.
2160# Strip out --silent because we don't want to record it for future runs.
2161# Also quote any args containing shell meta-characters.
2162# Make two passes to allow for proper duplicate-argument suppression.
2163ac_configure_args=
2164ac_configure_args0=
2165ac_configure_args1=
2166ac_must_keep_next=false
2167for ac_pass in 1 2
2168do
2169 for ac_arg
2170 do
2171 case $ac_arg in
2172 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2174 | -silent | --silent | --silen | --sile | --sil)
2175 continue ;;
2176 *\'*)
2177 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2178 esac
2179 case $ac_pass in
2180 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2181 2)
2182 as_fn_append ac_configure_args1 " '$ac_arg'"
2183 if test $ac_must_keep_next = true; then
2184 ac_must_keep_next=false # Got value, back to normal.
2185 else
2186 case $ac_arg in
2187 *=* | --config-cache | -C | -disable-* | --disable-* \
2188 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2189 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2190 | -with-* | --with-* | -without-* | --without-* | --x)
2191 case "$ac_configure_args0 " in
2192 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2193 esac
2194 ;;
2195 -* ) ac_must_keep_next=true ;;
2196 esac
2197 fi
2198 as_fn_append ac_configure_args " '$ac_arg'"
2199 ;;
2200 esac
2201 done
2202done
2203{ ac_configure_args0=; unset ac_configure_args0;}
2204{ ac_configure_args1=; unset ac_configure_args1;}
2205
2206# When interrupted or exit'd, cleanup temporary files, and complete
2207# config.log. We remove comments because anyway the quotes in there
2208# would cause problems or look ugly.
2209# WARNING: Use '\'' to represent an apostrophe within the trap.
2210# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2211trap 'exit_status=$?
2212 # Save into config.log some information that might help in debugging.
2213 {
2214 echo
2215
Joseph Myers22e05272018-10-31 17:03:16 +00002216 $as_echo "## ---------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002217## Cache variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002218## ---------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002219 echo
2220 # The following way of writing the cache mishandles newlines in values,
2221(
2222 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2223 eval ac_val=\$$ac_var
2224 case $ac_val in #(
2225 *${as_nl}*)
2226 case $ac_var in #(
2227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2228$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2229 esac
2230 case $ac_var in #(
2231 _ | IFS | as_nl) ;; #(
2232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2233 *) { eval $ac_var=; unset $ac_var;} ;;
2234 esac ;;
2235 esac
2236 done
2237 (set) 2>&1 |
2238 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2239 *${as_nl}ac_space=\ *)
2240 sed -n \
2241 "s/'\''/'\''\\\\'\'''\''/g;
2242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2243 ;; #(
2244 *)
2245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2246 ;;
2247 esac |
2248 sort
2249)
2250 echo
2251
Joseph Myers22e05272018-10-31 17:03:16 +00002252 $as_echo "## ----------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002253## Output variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002254## ----------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002255 echo
2256 for ac_var in $ac_subst_vars
2257 do
2258 eval ac_val=\$$ac_var
2259 case $ac_val in
2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 esac
2262 $as_echo "$ac_var='\''$ac_val'\''"
2263 done | sort
2264 echo
2265
2266 if test -n "$ac_subst_files"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002267 $as_echo "## ------------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002268## File substitutions. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002269## ------------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002270 echo
2271 for ac_var in $ac_subst_files
2272 do
2273 eval ac_val=\$$ac_var
2274 case $ac_val in
2275 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 esac
2277 $as_echo "$ac_var='\''$ac_val'\''"
2278 done | sort
2279 echo
2280 fi
2281
2282 if test -s confdefs.h; then
Joseph Myers22e05272018-10-31 17:03:16 +00002283 $as_echo "## ----------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002284## confdefs.h. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002285## ----------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002286 echo
2287 cat confdefs.h
2288 echo
2289 fi
2290 test "$ac_signal" != 0 &&
2291 $as_echo "$as_me: caught signal $ac_signal"
2292 $as_echo "$as_me: exit $exit_status"
2293 } >&5
2294 rm -f core *.core core.conftest.* &&
2295 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2296 exit $exit_status
2297' 0
2298for ac_signal in 1 2 13 15; do
2299 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300done
2301ac_signal=0
2302
2303# confdefs.h avoids OS command line length limits that DEFS can exceed.
2304rm -f -r conftest* confdefs.h
2305
2306$as_echo "/* confdefs.h */" > confdefs.h
2307
2308# Predefined preprocessor variables.
2309
2310cat >>confdefs.h <<_ACEOF
2311#define PACKAGE_NAME "$PACKAGE_NAME"
2312_ACEOF
2313
2314cat >>confdefs.h <<_ACEOF
2315#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2316_ACEOF
2317
2318cat >>confdefs.h <<_ACEOF
2319#define PACKAGE_VERSION "$PACKAGE_VERSION"
2320_ACEOF
2321
2322cat >>confdefs.h <<_ACEOF
2323#define PACKAGE_STRING "$PACKAGE_STRING"
2324_ACEOF
2325
2326cat >>confdefs.h <<_ACEOF
2327#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2328_ACEOF
2329
2330cat >>confdefs.h <<_ACEOF
2331#define PACKAGE_URL "$PACKAGE_URL"
2332_ACEOF
2333
2334
2335# Let the site file select an alternate cache file if it wants to.
2336# Prefer an explicitly selected file to automatically selected ones.
2337ac_site_file1=NONE
2338ac_site_file2=NONE
2339if test -n "$CONFIG_SITE"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002340 # We do not want a PATH search for config.site.
2341 case $CONFIG_SITE in #((
2342 -*) ac_site_file1=./$CONFIG_SITE;;
2343 */*) ac_site_file1=$CONFIG_SITE;;
2344 *) ac_site_file1=./$CONFIG_SITE;;
2345 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +00002346elif test "x$prefix" != xNONE; then
2347 ac_site_file1=$prefix/share/config.site
2348 ac_site_file2=$prefix/etc/config.site
2349else
2350 ac_site_file1=$ac_default_prefix/share/config.site
2351 ac_site_file2=$ac_default_prefix/etc/config.site
2352fi
2353for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2354do
2355 test "x$ac_site_file" = xNONE && continue
Joseph Myers22e05272018-10-31 17:03:16 +00002356 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2358$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2359 sed 's/^/| /' "$ac_site_file" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00002360 . "$ac_site_file" \
2361 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363as_fn_error $? "failed to load site script $ac_site_file
2364See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002365 fi
2366done
2367
2368if test -r "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002369 # Some versions of bash will fail to source /dev/null (special files
2370 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2371 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002372 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2373$as_echo "$as_me: loading cache $cache_file" >&6;}
2374 case $cache_file in
2375 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2376 *) . "./$cache_file";;
2377 esac
2378 fi
2379else
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2381$as_echo "$as_me: creating cache $cache_file" >&6;}
2382 >$cache_file
2383fi
2384
2385# Check that the precious variables saved in the cache have kept the same
2386# value.
2387ac_cache_corrupted=false
2388for ac_var in $ac_precious_vars; do
2389 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2390 eval ac_new_set=\$ac_env_${ac_var}_set
2391 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2392 eval ac_new_val=\$ac_env_${ac_var}_value
2393 case $ac_old_set,$ac_new_set in
2394 set,)
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2396$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2397 ac_cache_corrupted=: ;;
2398 ,set)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2400$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2402 ,);;
2403 *)
2404 if test "x$ac_old_val" != "x$ac_new_val"; then
2405 # differences in whitespace do not lead to failure.
2406 ac_old_val_w=`echo x $ac_old_val`
2407 ac_new_val_w=`echo x $ac_new_val`
2408 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2410$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2411 ac_cache_corrupted=:
2412 else
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2414$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2415 eval $ac_var=\$ac_old_val
2416 fi
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2418$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2420$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2421 fi;;
2422 esac
2423 # Pass precious variables to config.status.
2424 if test "$ac_new_set" = set; then
2425 case $ac_new_val in
2426 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2427 *) ac_arg=$ac_var=$ac_new_val ;;
2428 esac
2429 case " $ac_configure_args " in
2430 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2431 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2432 esac
2433 fi
2434done
2435if $ac_cache_corrupted; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2439$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002440 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002441fi
2442## -------------------- ##
2443## Main body of script. ##
2444## -------------------- ##
2445
2446ac_ext=c
2447ac_cpp='$CPP $CPPFLAGS'
2448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451
2452
2453
2454
2455
2456
2457ac_config_headers="$ac_config_headers config.h"
2458
2459
2460# Default to --enable-multilib
2461# Check whether --enable-multilib was given.
2462if test "${enable_multilib+set}" = set; then :
2463 enableval=$enable_multilib; case "$enableval" in
2464 yes) multilib=yes ;;
2465 no) multilib=no ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002466 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002467 esac
2468else
2469 multilib=yes
2470fi
2471
2472
2473# We may get other options which we leave undocumented:
2474# --with-target-subdir, --with-multisrctop, --with-multisubdir
2475# See config-ml.in if you want the gory details.
2476
2477if test "$srcdir" = "."; then
2478 if test "$with_target_subdir" != "."; then
2479 multi_basedir="$srcdir/$with_multisrctop../.."
2480 else
2481 multi_basedir="$srcdir/$with_multisrctop.."
2482 fi
2483else
2484 multi_basedir="$srcdir/.."
2485fi
2486
2487
2488# Even if the default multilib is not a cross compilation,
2489# it may be that some of the other multilibs are.
2490if test $cross_compiling = no && test $multilib = yes \
2491 && test "x${with_multisubdir}" != x ; then
2492 cross_compiling=maybe
2493fi
2494
2495ac_config_commands="$ac_config_commands default-1"
2496
2497ac_aux_dir=
2498for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Joseph Myers22e05272018-10-31 17:03:16 +00002499 if test -f "$ac_dir/install-sh"; then
2500 ac_aux_dir=$ac_dir
2501 ac_install_sh="$ac_aux_dir/install-sh -c"
2502 break
2503 elif test -f "$ac_dir/install.sh"; then
2504 ac_aux_dir=$ac_dir
2505 ac_install_sh="$ac_aux_dir/install.sh -c"
2506 break
2507 elif test -f "$ac_dir/shtool"; then
2508 ac_aux_dir=$ac_dir
2509 ac_install_sh="$ac_aux_dir/shtool install -c"
2510 break
2511 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00002512done
2513if test -z "$ac_aux_dir"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002514 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002515fi
2516
2517# These three variables are undocumented and unsupported,
2518# and are intended to be withdrawn in a future Autoconf release.
2519# They can cause serious problems if a builder's source tree is in a directory
2520# whose full name contains unusual characters.
2521ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2522ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2523ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2524
2525
2526# Make sure we can run config.sub.
2527$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Joseph Myers22e05272018-10-31 17:03:16 +00002528 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002529
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2531$as_echo_n "checking build system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002532if ${ac_cv_build+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002533 $as_echo_n "(cached) " >&6
2534else
2535 ac_build_alias=$build_alias
2536test "x$ac_build_alias" = x &&
2537 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2538test "x$ac_build_alias" = x &&
Joseph Myers22e05272018-10-31 17:03:16 +00002539 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002540ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002541 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002542
2543fi
2544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2545$as_echo "$ac_cv_build" >&6; }
2546case $ac_cv_build in
2547*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002548*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002549esac
2550build=$ac_cv_build
2551ac_save_IFS=$IFS; IFS='-'
2552set x $ac_cv_build
2553shift
2554build_cpu=$1
2555build_vendor=$2
2556shift; shift
2557# Remember, the first character of IFS is used to create $*,
2558# except with old shells:
2559build_os=$*
2560IFS=$ac_save_IFS
2561case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2562
2563
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2565$as_echo_n "checking host system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002566if ${ac_cv_host+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002567 $as_echo_n "(cached) " >&6
2568else
2569 if test "x$host_alias" = x; then
2570 ac_cv_host=$ac_cv_build
2571else
2572 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002573 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002574fi
2575
2576fi
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2578$as_echo "$ac_cv_host" >&6; }
2579case $ac_cv_host in
2580*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002581*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002582esac
2583host=$ac_cv_host
2584ac_save_IFS=$IFS; IFS='-'
2585set x $ac_cv_host
2586shift
2587host_cpu=$1
2588host_vendor=$2
2589shift; shift
2590# Remember, the first character of IFS is used to create $*,
2591# except with old shells:
2592host_os=$*
2593IFS=$ac_save_IFS
2594case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2595
2596
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2598$as_echo_n "checking target system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002599if ${ac_cv_target+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002600 $as_echo_n "(cached) " >&6
2601else
2602 if test "x$target_alias" = x; then
2603 ac_cv_target=$ac_cv_host
2604else
2605 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002606 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002607fi
2608
2609fi
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2611$as_echo "$ac_cv_target" >&6; }
2612case $ac_cv_target in
2613*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002614*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002615esac
2616target=$ac_cv_target
2617ac_save_IFS=$IFS; IFS='-'
2618set x $ac_cv_target
2619shift
2620target_cpu=$1
2621target_vendor=$2
2622shift; shift
2623# Remember, the first character of IFS is used to create $*,
2624# except with old shells:
2625target_os=$*
2626IFS=$ac_save_IFS
2627case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2628
2629
2630# The aliases save the names the user supplied, while $host etc.
2631# will get canonicalized.
2632test -n "$target_alias" &&
2633 test "$program_prefix$program_suffix$program_transform_name" = \
2634 NONENONEs,x,x, &&
2635 program_prefix=${target_alias}-
2636
Joseph Myers22e05272018-10-31 17:03:16 +00002637# Expand $ac_aux_dir to an absolute path.
2638am_aux_dir=`cd "$ac_aux_dir" && pwd`
Iain Buclawb4c522f2018-10-28 19:51:47 +00002639
Iain Buclawb4c522f2018-10-28 19:51:47 +00002640ac_ext=c
2641ac_cpp='$CPP $CPPFLAGS'
2642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2647set dummy ${ac_tool_prefix}gcc; ac_word=$2
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002650if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002651 $as_echo_n "(cached) " >&6
2652else
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2655else
2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002663 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2666 fi
2667done
2668 done
2669IFS=$as_save_IFS
2670
2671fi
2672fi
2673CC=$ac_cv_prog_CC
2674if test -n "$CC"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2676$as_echo "$CC" >&6; }
2677else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679$as_echo "no" >&6; }
2680fi
2681
2682
2683fi
2684if test -z "$ac_cv_prog_CC"; then
2685 ac_ct_CC=$CC
2686 # Extract the first word of "gcc", so it can be a program name with args.
2687set dummy gcc; ac_word=$2
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002690if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002691 $as_echo_n "(cached) " >&6
2692else
2693 if test -n "$ac_ct_CC"; then
2694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2695else
2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002703 ac_cv_prog_ac_ct_CC="gcc"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707done
2708 done
2709IFS=$as_save_IFS
2710
2711fi
2712fi
2713ac_ct_CC=$ac_cv_prog_ac_ct_CC
2714if test -n "$ac_ct_CC"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2716$as_echo "$ac_ct_CC" >&6; }
2717else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719$as_echo "no" >&6; }
2720fi
2721
2722 if test "x$ac_ct_CC" = x; then
2723 CC=""
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726yes:)
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729ac_tool_warned=yes ;;
2730esac
2731 CC=$ac_ct_CC
2732 fi
2733else
2734 CC="$ac_cv_prog_CC"
2735fi
2736
2737if test -z "$CC"; then
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2740set dummy ${ac_tool_prefix}cc; ac_word=$2
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002743if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002744 $as_echo_n "(cached) " >&6
2745else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002756 ac_cv_prog_CC="${ac_tool_prefix}cc"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760done
2761 done
2762IFS=$as_save_IFS
2763
2764fi
2765fi
2766CC=$ac_cv_prog_CC
2767if test -n "$CC"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2769$as_echo "$CC" >&6; }
2770else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772$as_echo "no" >&6; }
2773fi
2774
2775
2776 fi
2777fi
2778if test -z "$CC"; then
2779 # Extract the first word of "cc", so it can be a program name with args.
2780set dummy cc; ac_word=$2
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002783if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002784 $as_echo_n "(cached) " >&6
2785else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788else
2789 ac_prog_rejected=no
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2798 ac_prog_rejected=yes
2799 continue
2800 fi
2801 ac_cv_prog_CC="cc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805done
2806 done
2807IFS=$as_save_IFS
2808
2809if test $ac_prog_rejected = yes; then
2810 # We found a bogon in the path, so make sure we never use it.
2811 set dummy $ac_cv_prog_CC
2812 shift
2813 if test $# != 0; then
2814 # We chose a different compiler from the bogus one.
2815 # However, it has the same basename, so the bogon will be chosen
2816 # first if we set CC to just the basename; use the full file name.
2817 shift
2818 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2819 fi
2820fi
2821fi
2822fi
2823CC=$ac_cv_prog_CC
2824if test -n "$CC"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2826$as_echo "$CC" >&6; }
2827else
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829$as_echo "no" >&6; }
2830fi
2831
2832
2833fi
2834if test -z "$CC"; then
2835 if test -n "$ac_tool_prefix"; then
2836 for ac_prog in cl.exe
2837 do
2838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2839set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002842if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002843 $as_echo_n "(cached) " >&6
2844else
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2847else
2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002855 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2858 fi
2859done
2860 done
2861IFS=$as_save_IFS
2862
2863fi
2864fi
2865CC=$ac_cv_prog_CC
2866if test -n "$CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868$as_echo "$CC" >&6; }
2869else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871$as_echo "no" >&6; }
2872fi
2873
2874
2875 test -n "$CC" && break
2876 done
2877fi
2878if test -z "$CC"; then
2879 ac_ct_CC=$CC
2880 for ac_prog in cl.exe
2881do
2882 # Extract the first word of "$ac_prog", so it can be a program name with args.
2883set dummy $ac_prog; ac_word=$2
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002886if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002887 $as_echo_n "(cached) " >&6
2888else
2889 if test -n "$ac_ct_CC"; then
2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2891else
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002899 ac_cv_prog_ac_ct_CC="$ac_prog"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903done
2904 done
2905IFS=$as_save_IFS
2906
2907fi
2908fi
2909ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910if test -n "$ac_ct_CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2912$as_echo "$ac_ct_CC" >&6; }
2913else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915$as_echo "no" >&6; }
2916fi
2917
2918
2919 test -n "$ac_ct_CC" && break
2920done
2921
2922 if test "x$ac_ct_CC" = x; then
2923 CC=""
2924 else
2925 case $cross_compiling:$ac_tool_warned in
2926yes:)
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929ac_tool_warned=yes ;;
2930esac
2931 CC=$ac_ct_CC
2932 fi
2933fi
2934
2935fi
2936
2937
2938test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002940as_fn_error $? "no acceptable C compiler found in \$PATH
2941See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002942
2943# Provide some information about the compiler.
2944$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2945set X $ac_compile
2946ac_compiler=$2
2947for ac_option in --version -v -V -qversion; do
2948 { { ac_try="$ac_compiler $ac_option >&5"
2949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954$as_echo "$ac_try_echo"; } >&5
2955 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2956 ac_status=$?
2957 if test -s conftest.err; then
2958 sed '10a\
2959... rest of stderr output deleted ...
2960 10q' conftest.err >conftest.er1
2961 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002962 fi
Joseph Myers22e05272018-10-31 17:03:16 +00002963 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00002964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2965 test $ac_status = 0; }
2966done
2967
2968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969/* end confdefs.h. */
2970
2971int
2972main ()
2973{
2974
2975 ;
2976 return 0;
2977}
2978_ACEOF
2979ac_clean_files_save=$ac_clean_files
Joseph Myers22e05272018-10-31 17:03:16 +00002980ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002981# Try to create an executable without -o first, disregard a.out.
2982# It will help us diagnose broken compilers, and finding out an intuition
2983# of exeext.
Joseph Myers22e05272018-10-31 17:03:16 +00002984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2985$as_echo_n "checking whether the C compiler works... " >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002986ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2987
2988# The possible output files:
2989ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2990
2991ac_rmfiles=
2992for ac_file in $ac_files
2993do
2994 case $ac_file in
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2996 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2997 esac
2998done
2999rm -f $ac_rmfiles
3000
3001if { { ac_try="$ac_link_default"
3002case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005esac
3006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007$as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_link_default") 2>&5
3009 ac_status=$?
3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }; then :
3012 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3013# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3014# in a Makefile. We should not override ac_cv_exeext if it was cached,
3015# so that the user can short-circuit this test for compilers unknown to
3016# Autoconf.
3017for ac_file in $ac_files ''
3018do
3019 test -f "$ac_file" || continue
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3022 ;;
3023 [ab].out )
3024 # We found the default executable, but exeext='' is most
3025 # certainly right.
3026 break;;
3027 *.* )
3028 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3029 then :; else
3030 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031 fi
3032 # We set ac_cv_exeext here because the later test for it is not
3033 # safe: cross compilers may not add the suffix if given an `-o'
3034 # argument, so we may need to know it at that point already.
3035 # Even if this section looks crufty: it has the advantage of
3036 # actually working.
3037 break;;
3038 * )
3039 break;;
3040 esac
3041done
3042test "$ac_cv_exeext" = no && ac_cv_exeext=
3043
3044else
3045 ac_file=''
3046fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00003047if test -z "$ac_file"; then :
Joseph Myers22e05272018-10-31 17:03:16 +00003048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049$as_echo "no" >&6; }
3050$as_echo "$as_me: failed program was:" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00003051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003055as_fn_error 77 "C compiler cannot create executables
3056See \`config.log' for more details" "$LINENO" 5; }
3057else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3059$as_echo "yes" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003060fi
Joseph Myers22e05272018-10-31 17:03:16 +00003061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3062$as_echo_n "checking for C compiler default output file name... " >&6; }
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3064$as_echo "$ac_file" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003065ac_exeext=$ac_cv_exeext
3066
Joseph Myers22e05272018-10-31 17:03:16 +00003067rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Iain Buclawb4c522f2018-10-28 19:51:47 +00003068ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3070$as_echo_n "checking for suffix of executables... " >&6; }
3071if { { ac_try="$ac_link"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077$as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_link") 2>&5
3079 ac_status=$?
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }; then :
3082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3083# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3084# work properly (i.e., refer to `conftest.exe'), while it won't with
3085# `rm'.
3086for ac_file in conftest.exe conftest conftest.*; do
3087 test -f "$ac_file" || continue
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091 break;;
3092 * ) break;;
3093 esac
3094done
3095else
3096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003098as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3099See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003100fi
Joseph Myers22e05272018-10-31 17:03:16 +00003101rm -f conftest conftest$ac_cv_exeext
Iain Buclawb4c522f2018-10-28 19:51:47 +00003102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3103$as_echo "$ac_cv_exeext" >&6; }
3104
3105rm -f conftest.$ac_ext
3106EXEEXT=$ac_cv_exeext
3107ac_exeext=$EXEEXT
Joseph Myers22e05272018-10-31 17:03:16 +00003108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h. */
3110#include <stdio.h>
3111int
3112main ()
3113{
3114FILE *f = fopen ("conftest.out", "w");
3115 return ferror (f) || fclose (f) != 0;
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121ac_clean_files="$ac_clean_files conftest.out"
3122# Check that the compiler produces executables we can run. If not, either
3123# the compiler is broken, or we cross compile.
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3125$as_echo_n "checking whether we are cross compiling... " >&6; }
3126if test "$cross_compiling" != yes; then
3127 { { ac_try="$ac_link"
3128case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133$as_echo "$ac_try_echo"; } >&5
3134 (eval "$ac_link") 2>&5
3135 ac_status=$?
3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }
3138 if { ac_try='./conftest$ac_cv_exeext'
3139 { { case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144$as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; }; then
3149 cross_compiling=no
3150 else
3151 if test "$cross_compiling" = maybe; then
3152 cross_compiling=yes
3153 else
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156as_fn_error $? "cannot run C compiled programs.
3157If you meant to cross compile, use \`--host'.
3158See \`config.log' for more details" "$LINENO" 5; }
3159 fi
3160 fi
3161fi
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3163$as_echo "$cross_compiling" >&6; }
3164
3165rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3166ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3168$as_echo_n "checking for suffix of object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003169if ${ac_cv_objext+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003170 $as_echo_n "(cached) " >&6
3171else
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173/* end confdefs.h. */
3174
3175int
3176main ()
3177{
3178
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183rm -f conftest.o conftest.obj
3184if { { ac_try="$ac_compile"
3185case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190$as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_compile") 2>&5
3192 ac_status=$?
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }; then :
3195 for ac_file in conftest.o conftest.obj conftest.*; do
3196 test -f "$ac_file" || continue;
3197 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3199 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3200 break;;
3201 esac
3202done
3203else
3204 $as_echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003209as_fn_error $? "cannot compute suffix of object files: cannot compile
3210See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003211fi
3212rm -f conftest.$ac_cv_objext conftest.$ac_ext
3213fi
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3215$as_echo "$ac_cv_objext" >&6; }
3216OBJEXT=$ac_cv_objext
3217ac_objext=$OBJEXT
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3219$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003220if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003221 $as_echo_n "(cached) " >&6
3222else
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224/* end confdefs.h. */
3225
3226int
3227main ()
3228{
3229#ifndef __GNUC__
3230 choke me
3231#endif
3232
3233 ;
3234 return 0;
3235}
3236_ACEOF
3237if ac_fn_c_try_compile "$LINENO"; then :
3238 ac_compiler_gnu=yes
3239else
3240 ac_compiler_gnu=no
3241fi
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243ac_cv_c_compiler_gnu=$ac_compiler_gnu
3244
3245fi
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3247$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3248if test $ac_compiler_gnu = yes; then
3249 GCC=yes
3250else
3251 GCC=
3252fi
3253ac_test_CFLAGS=${CFLAGS+set}
3254ac_save_CFLAGS=$CFLAGS
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3256$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003257if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003258 $as_echo_n "(cached) " >&6
3259else
3260 ac_save_c_werror_flag=$ac_c_werror_flag
3261 ac_c_werror_flag=yes
3262 ac_cv_prog_cc_g=no
3263 CFLAGS="-g"
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265/* end confdefs.h. */
3266
3267int
3268main ()
3269{
3270
3271 ;
3272 return 0;
3273}
3274_ACEOF
3275if ac_fn_c_try_compile "$LINENO"; then :
3276 ac_cv_prog_cc_g=yes
3277else
3278 CFLAGS=""
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280/* end confdefs.h. */
3281
3282int
3283main ()
3284{
3285
3286 ;
3287 return 0;
3288}
3289_ACEOF
3290if ac_fn_c_try_compile "$LINENO"; then :
3291
3292else
3293 ac_c_werror_flag=$ac_save_c_werror_flag
3294 CFLAGS="-g"
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296/* end confdefs.h. */
3297
3298int
3299main ()
3300{
3301
3302 ;
3303 return 0;
3304}
3305_ACEOF
3306if ac_fn_c_try_compile "$LINENO"; then :
3307 ac_cv_prog_cc_g=yes
3308fi
3309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310fi
3311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312fi
3313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_c_werror_flag=$ac_save_c_werror_flag
3315fi
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3317$as_echo "$ac_cv_prog_cc_g" >&6; }
3318if test "$ac_test_CFLAGS" = set; then
3319 CFLAGS=$ac_save_CFLAGS
3320elif test $ac_cv_prog_cc_g = yes; then
3321 if test "$GCC" = yes; then
3322 CFLAGS="-g -O2"
3323 else
3324 CFLAGS="-g"
3325 fi
3326else
3327 if test "$GCC" = yes; then
3328 CFLAGS="-O2"
3329 else
3330 CFLAGS=
3331 fi
3332fi
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3334$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003335if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003336 $as_echo_n "(cached) " >&6
3337else
3338 ac_cv_prog_cc_c89=no
3339ac_save_CC=$CC
3340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341/* end confdefs.h. */
3342#include <stdarg.h>
3343#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00003344struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00003345/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3346struct buf { int x; };
3347FILE * (*rcsopen) (struct buf *, struct stat *, int);
3348static char *e (p, i)
3349 char **p;
3350 int i;
3351{
3352 return p[i];
3353}
3354static char *f (char * (*g) (char **, int), char **p, ...)
3355{
3356 char *s;
3357 va_list v;
3358 va_start (v,p);
3359 s = g (p, va_arg (v,int));
3360 va_end (v);
3361 return s;
3362}
3363
3364/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3365 function prototypes and stuff, but not '\xHH' hex character constants.
3366 These don't provoke an error unfortunately, instead are silently treated
3367 as 'x'. The following induces an error, until -std is added to get
3368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3369 array size at least. It's necessary to write '\x00'==0 to get something
3370 that's true only with -std. */
3371int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3372
3373/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3374 inside strings and character constants. */
3375#define FOO(x) 'x'
3376int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3377
3378int test (int i, double x);
3379struct s1 {int (*f) (int a);};
3380struct s2 {int (*f) (double a);};
3381int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3382int argc;
3383char **argv;
3384int
3385main ()
3386{
3387return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3388 ;
3389 return 0;
3390}
3391_ACEOF
3392for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3393 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3394do
3395 CC="$ac_save_CC $ac_arg"
3396 if ac_fn_c_try_compile "$LINENO"; then :
3397 ac_cv_prog_cc_c89=$ac_arg
3398fi
3399rm -f core conftest.err conftest.$ac_objext
3400 test "x$ac_cv_prog_cc_c89" != "xno" && break
3401done
3402rm -f conftest.$ac_ext
3403CC=$ac_save_CC
3404
3405fi
3406# AC_CACHE_VAL
3407case "x$ac_cv_prog_cc_c89" in
3408 x)
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3410$as_echo "none needed" >&6; } ;;
3411 xno)
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3413$as_echo "unsupported" >&6; } ;;
3414 *)
3415 CC="$CC $ac_cv_prog_cc_c89"
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3417$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3418esac
3419if test "x$ac_cv_prog_cc_c89" != xno; then :
3420
3421fi
3422
3423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428
Joseph Myers22e05272018-10-31 17:03:16 +00003429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3435$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3436if ${am_cv_prog_cc_c_o+:} false; then :
3437 $as_echo_n "(cached) " >&6
3438else
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440/* end confdefs.h. */
3441
3442int
3443main ()
3444{
3445
3446 ;
3447 return 0;
3448}
3449_ACEOF
3450 # Make sure it works both with $CC and with simple cc.
3451 # Following AC_PROG_CC_C_O, we do the test twice because some
3452 # compilers refuse to overwrite an existing .o file with -o,
3453 # though they will create one.
3454 am_cv_prog_cc_c_o=yes
3455 for am_i in 1 2; do
3456 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3457 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } \
3461 && test -f conftest2.$ac_objext; then
3462 : OK
3463 else
3464 am_cv_prog_cc_c_o=no
3465 break
3466 fi
3467 done
3468 rm -f core conftest*
3469 unset am_i
3470fi
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3472$as_echo "$am_cv_prog_cc_c_o" >&6; }
3473if test "$am_cv_prog_cc_c_o" != yes; then
3474 # Losing compiler, so override with the script.
3475 # FIXME: It is wrong to rewrite CC.
3476 # But if we don't then we get into trouble of one sort or another.
3477 # A longer-term fix would be to have automake use am__CC in this case,
3478 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3479 CC="$am_aux_dir/compile $CC"
3480fi
3481ac_ext=c
3482ac_cpp='$CPP $CPPFLAGS'
3483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
Rainer Orth235d1c42019-04-14 09:30:42 +00003488
3489ac_ext=c
3490ac_cpp='$CPP $CPPFLAGS'
3491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3495$as_echo_n "checking how to run the C preprocessor... " >&6; }
3496# On Suns, sometimes $CPP names a directory.
3497if test -n "$CPP" && test -d "$CPP"; then
3498 CPP=
3499fi
3500if test -z "$CPP"; then
3501 if ${ac_cv_prog_CPP+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503else
3504 # Double quotes because CPP needs to be expanded
3505 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3506 do
3507 ac_preproc_ok=false
3508for ac_c_preproc_warn_flag in '' yes
3509do
3510 # Use a header file that comes with gcc, so configuring glibc
3511 # with a fresh cross-compiler works.
3512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513 # <limits.h> exists even on freestanding compilers.
3514 # On the NeXT, cc -E runs the code through the compiler's parser,
3515 # not just through cpp. "Syntax error" is here to catch this case.
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517/* end confdefs.h. */
3518#ifdef __STDC__
3519# include <limits.h>
3520#else
3521# include <assert.h>
3522#endif
3523 Syntax error
3524_ACEOF
3525if ac_fn_c_try_cpp "$LINENO"; then :
3526
3527else
3528 # Broken: fails on valid input.
3529continue
3530fi
3531rm -f conftest.err conftest.i conftest.$ac_ext
3532
3533 # OK, works on sane cases. Now check whether nonexistent headers
3534 # can be detected and how.
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536/* end confdefs.h. */
3537#include <ac_nonexistent.h>
3538_ACEOF
3539if ac_fn_c_try_cpp "$LINENO"; then :
3540 # Broken: success on invalid input.
3541continue
3542else
3543 # Passes both tests.
3544ac_preproc_ok=:
3545break
3546fi
3547rm -f conftest.err conftest.i conftest.$ac_ext
3548
3549done
3550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3551rm -f conftest.i conftest.err conftest.$ac_ext
3552if $ac_preproc_ok; then :
3553 break
3554fi
3555
3556 done
3557 ac_cv_prog_CPP=$CPP
3558
3559fi
3560 CPP=$ac_cv_prog_CPP
3561else
3562 ac_cv_prog_CPP=$CPP
3563fi
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3565$as_echo "$CPP" >&6; }
3566ac_preproc_ok=false
3567for ac_c_preproc_warn_flag in '' yes
3568do
3569 # Use a header file that comes with gcc, so configuring glibc
3570 # with a fresh cross-compiler works.
3571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3572 # <limits.h> exists even on freestanding compilers.
3573 # On the NeXT, cc -E runs the code through the compiler's parser,
3574 # not just through cpp. "Syntax error" is here to catch this case.
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576/* end confdefs.h. */
3577#ifdef __STDC__
3578# include <limits.h>
3579#else
3580# include <assert.h>
3581#endif
3582 Syntax error
3583_ACEOF
3584if ac_fn_c_try_cpp "$LINENO"; then :
3585
3586else
3587 # Broken: fails on valid input.
3588continue
3589fi
3590rm -f conftest.err conftest.i conftest.$ac_ext
3591
3592 # OK, works on sane cases. Now check whether nonexistent headers
3593 # can be detected and how.
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595/* end confdefs.h. */
3596#include <ac_nonexistent.h>
3597_ACEOF
3598if ac_fn_c_try_cpp "$LINENO"; then :
3599 # Broken: success on invalid input.
3600continue
3601else
3602 # Passes both tests.
3603ac_preproc_ok=:
3604break
3605fi
3606rm -f conftest.err conftest.i conftest.$ac_ext
3607
3608done
3609# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3610rm -f conftest.i conftest.err conftest.$ac_ext
3611if $ac_preproc_ok; then :
3612
3613else
3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3617See \`config.log' for more details" "$LINENO" 5; }
3618fi
3619
3620ac_ext=c
3621ac_cpp='$CPP $CPPFLAGS'
3622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625
3626
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3628$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3629if ${ac_cv_path_GREP+:} false; then :
3630 $as_echo_n "(cached) " >&6
3631else
3632 if test -z "$GREP"; then
3633 ac_path_GREP_found=false
3634 # Loop through the user's path and test for each of PROGNAME-LIST
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3637do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_prog in grep ggrep; do
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3643 as_fn_executable_p "$ac_path_GREP" || continue
3644# Check for GNU ac_path_GREP and select it if it is found.
3645 # Check for GNU $ac_path_GREP
3646case `"$ac_path_GREP" --version 2>&1` in
3647*GNU*)
3648 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3649*)
3650 ac_count=0
3651 $as_echo_n 0123456789 >"conftest.in"
3652 while :
3653 do
3654 cat "conftest.in" "conftest.in" >"conftest.tmp"
3655 mv "conftest.tmp" "conftest.in"
3656 cp "conftest.in" "conftest.nl"
3657 $as_echo 'GREP' >> "conftest.nl"
3658 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3660 as_fn_arith $ac_count + 1 && ac_count=$as_val
3661 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3662 # Best one so far, save it but keep looking for a better one
3663 ac_cv_path_GREP="$ac_path_GREP"
3664 ac_path_GREP_max=$ac_count
3665 fi
3666 # 10*(2^10) chars as input seems more than enough
3667 test $ac_count -gt 10 && break
3668 done
3669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3670esac
3671
3672 $ac_path_GREP_found && break 3
3673 done
3674 done
3675 done
3676IFS=$as_save_IFS
3677 if test -z "$ac_cv_path_GREP"; then
3678 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3679 fi
3680else
3681 ac_cv_path_GREP=$GREP
3682fi
3683
3684fi
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3686$as_echo "$ac_cv_path_GREP" >&6; }
3687 GREP="$ac_cv_path_GREP"
3688
3689
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3691$as_echo_n "checking for egrep... " >&6; }
3692if ${ac_cv_path_EGREP+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694else
3695 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3696 then ac_cv_path_EGREP="$GREP -E"
3697 else
3698 if test -z "$EGREP"; then
3699 ac_path_EGREP_found=false
3700 # Loop through the user's path and test for each of PROGNAME-LIST
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_prog in egrep; do
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3709 as_fn_executable_p "$ac_path_EGREP" || continue
3710# Check for GNU ac_path_EGREP and select it if it is found.
3711 # Check for GNU $ac_path_EGREP
3712case `"$ac_path_EGREP" --version 2>&1` in
3713*GNU*)
3714 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3715*)
3716 ac_count=0
3717 $as_echo_n 0123456789 >"conftest.in"
3718 while :
3719 do
3720 cat "conftest.in" "conftest.in" >"conftest.tmp"
3721 mv "conftest.tmp" "conftest.in"
3722 cp "conftest.in" "conftest.nl"
3723 $as_echo 'EGREP' >> "conftest.nl"
3724 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3726 as_fn_arith $ac_count + 1 && ac_count=$as_val
3727 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3728 # Best one so far, save it but keep looking for a better one
3729 ac_cv_path_EGREP="$ac_path_EGREP"
3730 ac_path_EGREP_max=$ac_count
3731 fi
3732 # 10*(2^10) chars as input seems more than enough
3733 test $ac_count -gt 10 && break
3734 done
3735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3736esac
3737
3738 $ac_path_EGREP_found && break 3
3739 done
3740 done
3741 done
3742IFS=$as_save_IFS
3743 if test -z "$ac_cv_path_EGREP"; then
3744 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3745 fi
3746else
3747 ac_cv_path_EGREP=$EGREP
3748fi
3749
3750 fi
3751fi
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3753$as_echo "$ac_cv_path_EGREP" >&6; }
3754 EGREP="$ac_cv_path_EGREP"
3755
3756
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3758$as_echo_n "checking for ANSI C header files... " >&6; }
3759if ${ac_cv_header_stdc+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761else
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763/* end confdefs.h. */
3764#include <stdlib.h>
3765#include <stdarg.h>
3766#include <string.h>
3767#include <float.h>
3768
3769int
3770main ()
3771{
3772
3773 ;
3774 return 0;
3775}
3776_ACEOF
3777if ac_fn_c_try_compile "$LINENO"; then :
3778 ac_cv_header_stdc=yes
3779else
3780 ac_cv_header_stdc=no
3781fi
3782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783
3784if test $ac_cv_header_stdc = yes; then
3785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787/* end confdefs.h. */
3788#include <string.h>
3789
3790_ACEOF
3791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792 $EGREP "memchr" >/dev/null 2>&1; then :
3793
3794else
3795 ac_cv_header_stdc=no
3796fi
3797rm -f conftest*
3798
3799fi
3800
3801if test $ac_cv_header_stdc = yes; then
3802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h. */
3805#include <stdlib.h>
3806
3807_ACEOF
3808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3809 $EGREP "free" >/dev/null 2>&1; then :
3810
3811else
3812 ac_cv_header_stdc=no
3813fi
3814rm -f conftest*
3815
3816fi
3817
3818if test $ac_cv_header_stdc = yes; then
3819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3820 if test "$cross_compiling" = yes; then :
3821 :
3822else
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824/* end confdefs.h. */
3825#include <ctype.h>
3826#include <stdlib.h>
3827#if ((' ' & 0x0FF) == 0x020)
3828# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3829# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3830#else
3831# define ISLOWER(c) \
3832 (('a' <= (c) && (c) <= 'i') \
3833 || ('j' <= (c) && (c) <= 'r') \
3834 || ('s' <= (c) && (c) <= 'z'))
3835# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3836#endif
3837
3838#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3839int
3840main ()
3841{
3842 int i;
3843 for (i = 0; i < 256; i++)
3844 if (XOR (islower (i), ISLOWER (i))
3845 || toupper (i) != TOUPPER (i))
3846 return 2;
3847 return 0;
3848}
3849_ACEOF
3850if ac_fn_c_try_run "$LINENO"; then :
3851
3852else
3853 ac_cv_header_stdc=no
3854fi
3855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3856 conftest.$ac_objext conftest.beam conftest.$ac_ext
3857fi
3858
3859fi
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3862$as_echo "$ac_cv_header_stdc" >&6; }
3863if test $ac_cv_header_stdc = yes; then
3864
3865$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3866
3867fi
3868
3869# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3870for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3871 inttypes.h stdint.h unistd.h
3872do :
3873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3874ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3875"
3876if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3877 cat >>confdefs.h <<_ACEOF
3878#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3879_ACEOF
3880
3881fi
3882
3883done
3884
3885
3886
3887 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3888if test "x$ac_cv_header_minix_config_h" = xyes; then :
3889 MINIX=yes
3890else
3891 MINIX=
3892fi
3893
3894
3895 if test "$MINIX" = yes; then
3896
3897$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3898
3899
3900$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3901
3902
3903$as_echo "#define _MINIX 1" >>confdefs.h
3904
3905 fi
3906
3907
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3909$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3910if ${ac_cv_safe_to_define___extensions__+:} false; then :
3911 $as_echo_n "(cached) " >&6
3912else
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914/* end confdefs.h. */
3915
3916# define __EXTENSIONS__ 1
3917 $ac_includes_default
3918int
3919main ()
3920{
3921
3922 ;
3923 return 0;
3924}
3925_ACEOF
3926if ac_fn_c_try_compile "$LINENO"; then :
3927 ac_cv_safe_to_define___extensions__=yes
3928else
3929 ac_cv_safe_to_define___extensions__=no
3930fi
3931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3934$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3935 test $ac_cv_safe_to_define___extensions__ = yes &&
3936 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3937
3938 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3939
3940 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3941
3942 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3943
3944 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3945
3946
3947
3948target_alias=${target_alias-$target}
3949
3950
3951# 1.11.1: Require that version of automake.
3952# foreign: Don't require README, INSTALL, NEWS, etc.
3953# no-define: Don't define PACKAGE and VERSION.
3954# no-dependencies: Don't generate automatic dependencies.
3955# (because it breaks when using bootstrap-lean, since some of the
3956# headers are gone at "make install" time).
3957# subdir-objects: Build objects in sub-directories.
3958# -Wall: Issue all automake warnings.
3959# -Wno-portability: Don't warn about constructs supported by GNU make.
3960# (because GCC requires GNU make anyhow).
3961# -Wno-override: Overrides used in testsuite.
3962am__api_version='1.15'
3963
3964# Find a good install program. We prefer a C program (faster),
3965# so one script is as good as another. But avoid the broken or
3966# incompatible versions:
3967# SysV /etc/install, /usr/sbin/install
3968# SunOS /usr/etc/install
3969# IRIX /sbin/install
3970# AIX /bin/install
3971# AmigaOS /C/install, which installs bootblocks on floppy discs
3972# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3973# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3974# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3975# OS/2's system install, which has a completely different semantic
3976# ./install, which can be erroneously created by make from ./install.sh.
3977# Reject install programs that cannot install multiple files.
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3979$as_echo_n "checking for a BSD-compatible install... " >&6; }
3980if test -z "$INSTALL"; then
3981if ${ac_cv_path_install+:} false; then :
3982 $as_echo_n "(cached) " >&6
3983else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 # Account for people who put trailing slashes in PATH elements.
3990case $as_dir/ in #((
3991 ./ | .// | /[cC]/* | \
3992 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3993 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3994 /usr/ucb/* ) ;;
3995 *)
3996 # OSF1 and SCO ODT 3.0 have their own names for install.
3997 # Don't use installbsd from OSF since it installs stuff as root
3998 # by default.
3999 for ac_prog in ginstall scoinst install; do
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4002 if test $ac_prog = install &&
4003 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4004 # AIX install. It has an incompatible calling convention.
4005 :
4006 elif test $ac_prog = install &&
4007 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4008 # program-specific install script used by HP pwplus--don't use.
4009 :
4010 else
4011 rm -rf conftest.one conftest.two conftest.dir
4012 echo one > conftest.one
4013 echo two > conftest.two
4014 mkdir conftest.dir
4015 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4016 test -s conftest.one && test -s conftest.two &&
4017 test -s conftest.dir/conftest.one &&
4018 test -s conftest.dir/conftest.two
4019 then
4020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4021 break 3
4022 fi
4023 fi
4024 fi
4025 done
4026 done
4027 ;;
4028esac
4029
4030 done
4031IFS=$as_save_IFS
4032
4033rm -rf conftest.one conftest.two conftest.dir
4034
4035fi
4036 if test "${ac_cv_path_install+set}" = set; then
4037 INSTALL=$ac_cv_path_install
4038 else
4039 # As a last resort, use the slow shell script. Don't cache a
4040 # value for INSTALL within a source directory, because that will
4041 # break other packages using the cache if that directory is
4042 # removed, or if the value is a relative name.
4043 INSTALL=$ac_install_sh
4044 fi
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4047$as_echo "$INSTALL" >&6; }
4048
4049# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4050# It thinks the first close brace ends the variable substitution.
4051test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4052
4053test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4054
4055test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4056
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4058$as_echo_n "checking whether build environment is sane... " >&6; }
4059# Reject unsafe characters in $srcdir or the absolute working directory
4060# name. Accept space and tab only in the latter.
4061am_lf='
4062'
4063case `pwd` in
4064 *[\\\"\#\$\&\'\`$am_lf]*)
4065 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4066esac
4067case $srcdir in
4068 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4069 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4070esac
4071
4072# Do 'set' in a subshell so we don't clobber the current shell's
4073# arguments. Must try -L first in case configure is actually a
4074# symlink; some systems play weird games with the mod time of symlinks
4075# (eg FreeBSD returns the mod time of the symlink's containing
4076# directory).
4077if (
4078 am_has_slept=no
4079 for am_try in 1 2; do
4080 echo "timestamp, slept: $am_has_slept" > conftest.file
4081 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4082 if test "$*" = "X"; then
4083 # -L didn't work.
4084 set X `ls -t "$srcdir/configure" conftest.file`
4085 fi
4086 if test "$*" != "X $srcdir/configure conftest.file" \
4087 && test "$*" != "X conftest.file $srcdir/configure"; then
4088
4089 # If neither matched, then we have a broken ls. This can happen
4090 # if, for instance, CONFIG_SHELL is bash and it inherits a
4091 # broken ls alias from the environment. This has actually
4092 # happened. Such a system could not be considered "sane".
4093 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4094 alias in your environment" "$LINENO" 5
4095 fi
4096 if test "$2" = conftest.file || test $am_try -eq 2; then
4097 break
4098 fi
4099 # Just in case.
4100 sleep 1
4101 am_has_slept=yes
4102 done
4103 test "$2" = conftest.file
4104 )
4105then
4106 # Ok.
4107 :
4108else
4109 as_fn_error $? "newly created file is older than distributed files!
4110Check your system clock" "$LINENO" 5
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4113$as_echo "yes" >&6; }
4114# If we didn't sleep, we still need to ensure time stamps of config.status and
4115# generated files are strictly newer.
4116am_sleep_pid=
4117if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4118 ( sleep 1 ) &
4119 am_sleep_pid=$!
4120fi
4121
4122rm -f conftest.file
4123
4124test "$program_prefix" != NONE &&
4125 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4126# Use a double $ so make ignores it.
4127test "$program_suffix" != NONE &&
4128 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4129# Double any \ or $.
4130# By default was `s,x,x', remove it if useless.
4131ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4132program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4133
4134if test x"${MISSING+set}" != xset; then
4135 case $am_aux_dir in
4136 *\ * | *\ *)
4137 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4138 *)
4139 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4140 esac
4141fi
4142# Use eval to expand $SHELL
4143if eval "$MISSING --is-lightweight"; then
4144 am_missing_run="$MISSING "
4145else
4146 am_missing_run=
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4148$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4149fi
4150
4151if test x"${install_sh+set}" != xset; then
4152 case $am_aux_dir in
4153 *\ * | *\ *)
4154 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4155 *)
4156 install_sh="\${SHELL} $am_aux_dir/install-sh"
4157 esac
4158fi
4159
4160# Installed binaries are usually stripped using 'strip' when the user
4161# run "make install-strip". However 'strip' might not be the right
4162# tool to use in cross-compilation environments, therefore Automake
4163# will honor the 'STRIP' environment variable to overrule this program.
4164if test "$cross_compiling" != no; then
4165 if test -n "$ac_tool_prefix"; then
4166 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4167set dummy ${ac_tool_prefix}strip; ac_word=$2
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169$as_echo_n "checking for $ac_word... " >&6; }
4170if ${ac_cv_prog_STRIP+:} false; then :
4171 $as_echo_n "(cached) " >&6
4172else
4173 if test -n "$STRIP"; then
4174 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4175else
4176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4186 fi
4187done
4188 done
4189IFS=$as_save_IFS
4190
4191fi
4192fi
4193STRIP=$ac_cv_prog_STRIP
4194if test -n "$STRIP"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4196$as_echo "$STRIP" >&6; }
4197else
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199$as_echo "no" >&6; }
4200fi
4201
4202
4203fi
4204if test -z "$ac_cv_prog_STRIP"; then
4205 ac_ct_STRIP=$STRIP
4206 # Extract the first word of "strip", so it can be a program name with args.
4207set dummy strip; ac_word=$2
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209$as_echo_n "checking for $ac_word... " >&6; }
4210if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4211 $as_echo_n "(cached) " >&6
4212else
4213 if test -n "$ac_ct_STRIP"; then
4214 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4215else
4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH
4218do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223 ac_cv_prog_ac_ct_STRIP="strip"
4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4226 fi
4227done
4228 done
4229IFS=$as_save_IFS
4230
4231fi
4232fi
4233ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4234if test -n "$ac_ct_STRIP"; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4236$as_echo "$ac_ct_STRIP" >&6; }
4237else
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239$as_echo "no" >&6; }
4240fi
4241
4242 if test "x$ac_ct_STRIP" = x; then
4243 STRIP=":"
4244 else
4245 case $cross_compiling:$ac_tool_warned in
4246yes:)
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4249ac_tool_warned=yes ;;
4250esac
4251 STRIP=$ac_ct_STRIP
4252 fi
4253else
4254 STRIP="$ac_cv_prog_STRIP"
4255fi
4256
4257fi
4258INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4259
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4261$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4262if test -z "$MKDIR_P"; then
4263 if ${ac_cv_path_mkdir+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_prog in mkdir gmkdir; do
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4274 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4275 'mkdir (GNU coreutils) '* | \
4276 'mkdir (coreutils) '* | \
4277 'mkdir (fileutils) '4.1*)
4278 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4279 break 3;;
4280 esac
4281 done
4282 done
4283 done
4284IFS=$as_save_IFS
4285
4286fi
4287
4288 test -d ./--version && rmdir ./--version
4289 if test "${ac_cv_path_mkdir+set}" = set; then
4290 MKDIR_P="$ac_cv_path_mkdir -p"
4291 else
4292 # As a last resort, use the slow shell script. Don't cache a
4293 # value for MKDIR_P within a source directory, because that will
4294 # break other packages using the cache if that directory is
4295 # removed, or if the value is a relative name.
4296 MKDIR_P="$ac_install_sh -d"
4297 fi
4298fi
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4300$as_echo "$MKDIR_P" >&6; }
4301
4302for ac_prog in gawk mawk nawk awk
4303do
4304 # Extract the first word of "$ac_prog", so it can be a program name with args.
4305set dummy $ac_prog; ac_word=$2
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307$as_echo_n "checking for $ac_word... " >&6; }
4308if ${ac_cv_prog_AWK+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310else
4311 if test -n "$AWK"; then
4312 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4313else
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321 ac_cv_prog_AWK="$ac_prog"
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4324 fi
4325done
4326 done
4327IFS=$as_save_IFS
4328
4329fi
4330fi
4331AWK=$ac_cv_prog_AWK
4332if test -n "$AWK"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4334$as_echo "$AWK" >&6; }
4335else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337$as_echo "no" >&6; }
4338fi
4339
4340
4341 test -n "$AWK" && break
4342done
4343
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4345$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4346set x ${MAKE-make}
4347ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4348if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4349 $as_echo_n "(cached) " >&6
4350else
4351 cat >conftest.make <<\_ACEOF
4352SHELL = /bin/sh
4353all:
4354 @echo '@@@%%%=$(MAKE)=@@@%%%'
4355_ACEOF
4356# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4357case `${MAKE-make} -f conftest.make 2>/dev/null` in
4358 *@@@%%%=?*=@@@%%%*)
4359 eval ac_cv_prog_make_${ac_make}_set=yes;;
4360 *)
4361 eval ac_cv_prog_make_${ac_make}_set=no;;
4362esac
4363rm -f conftest.make
4364fi
4365if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367$as_echo "yes" >&6; }
4368 SET_MAKE=
4369else
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371$as_echo "no" >&6; }
4372 SET_MAKE="MAKE=${MAKE-make}"
4373fi
4374
4375rm -rf .tst 2>/dev/null
4376mkdir .tst 2>/dev/null
4377if test -d .tst; then
4378 am__leading_dot=.
4379else
4380 am__leading_dot=_
4381fi
4382rmdir .tst 2>/dev/null
4383
4384# Check whether --enable-silent-rules was given.
4385if test "${enable_silent_rules+set}" = set; then :
4386 enableval=$enable_silent_rules;
4387fi
4388
4389case $enable_silent_rules in # (((
4390 yes) AM_DEFAULT_VERBOSITY=0;;
4391 no) AM_DEFAULT_VERBOSITY=1;;
4392 *) AM_DEFAULT_VERBOSITY=1;;
4393esac
4394am_make=${MAKE-make}
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4396$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4397if ${am_cv_make_support_nested_variables+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399else
4400 if $as_echo 'TRUE=$(BAR$(V))
4401BAR0=false
4402BAR1=true
4403V=1
4404am__doit:
4405 @$(TRUE)
4406.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4407 am_cv_make_support_nested_variables=yes
4408else
4409 am_cv_make_support_nested_variables=no
4410fi
4411fi
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4413$as_echo "$am_cv_make_support_nested_variables" >&6; }
4414if test $am_cv_make_support_nested_variables = yes; then
4415 AM_V='$(V)'
4416 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4417else
4418 AM_V=$AM_DEFAULT_VERBOSITY
4419 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4420fi
4421AM_BACKSLASH='\'
4422
4423if test "`cd $srcdir && pwd`" != "`pwd`"; then
4424 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4425 # is not polluted with repeated "-I."
4426 am__isrc=' -I$(srcdir)'
4427 # test to see if srcdir already configured
4428 if test -f $srcdir/config.status; then
4429 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4430 fi
4431fi
4432
4433# test whether we have cygpath
4434if test -z "$CYGPATH_W"; then
4435 if (cygpath --version) >/dev/null 2>/dev/null; then
4436 CYGPATH_W='cygpath -w'
4437 else
4438 CYGPATH_W=echo
4439 fi
4440fi
4441
4442
4443# Define the identity of the package.
4444 PACKAGE='libphobos'
4445 VERSION='version-unused'
4446
4447
4448# Some tools Automake needs.
4449
4450ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4451
4452
4453AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4454
4455
4456AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4457
4458
4459AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4460
4461
4462MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4463
4464# For better backward compatibility. To be removed once Automake 1.9.x
4465# dies out for good. For more background, see:
4466# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4467# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4468mkdir_p='$(MKDIR_P)'
4469
4470# We need awk for the "check" target (and possibly the TAP driver). The
4471# system "awk" is bad on some platforms.
4472# Always define AMTAR for backward compatibility. Yes, it's still used
4473# in the wild :-( We should find a proper way to deprecate it ...
4474AMTAR='$${TAR-tar}'
4475
4476
4477# We'll loop over all known methods to create a tar archive until one works.
4478_am_tools='gnutar pax cpio none'
4479
4480am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4481
4482
4483
4484
4485
4486
4487# POSIX will say in a future version that running "rm -f" with no argument
4488# is OK; and we want to be able to make that assumption in our Makefile
4489# recipes. So use an aggressive probe to check that the usage we want is
4490# actually supported "in the wild" to an acceptable degree.
4491# See automake bug#10828.
4492# To make any issue more visible, cause the running configure to be aborted
4493# by default if the 'rm' program in use doesn't match our expectations; the
4494# user can still override this though.
4495if rm -f && rm -fr && rm -rf; then : OK; else
4496 cat >&2 <<'END'
4497Oops!
4498
4499Your 'rm' program seems unable to run without file operands specified
4500on the command line, even when the '-f' option is present. This is contrary
4501to the behaviour of most rm programs out there, and not conforming with
4502the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4503
4504Please tell bug-automake@gnu.org about your system, including the value
4505of your $PATH and any error possibly output before this message. This
4506can help us improve future automake versions.
4507
4508END
4509 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4510 echo 'Configuration will proceed anyway, since you have set the' >&2
4511 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4512 echo >&2
4513 else
4514 cat >&2 <<'END'
4515Aborting the configuration process, to ensure you take notice of the issue.
4516
4517You can download and install GNU coreutils to get an 'rm' implementation
4518that behaves properly: <http://www.gnu.org/software/coreutils/>.
4519
4520If you want to complete the configuration process using your problematic
4521'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4522to "yes", and re-run configure.
4523
4524END
4525 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4526 fi
4527fi
4528
4529
4530
4531
Iain Buclawb4c522f2018-10-28 19:51:47 +00004532# By default we simply use the C compiler to build assembly code.
4533
4534test "${CCAS+set}" = set || CCAS=$CC
4535test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4536
4537
4538
4539ac_ext=c
4540ac_cpp='$CPP $CPPFLAGS'
4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544if test -n "$ac_tool_prefix"; then
4545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4546set dummy ${ac_tool_prefix}gcc; ac_word=$2
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004549if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004550 $as_echo_n "(cached) " >&6
4551else
4552 if test -n "$CC"; then
4553 ac_cv_prog_CC="$CC" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4565 fi
4566done
4567 done
4568IFS=$as_save_IFS
4569
4570fi
4571fi
4572CC=$ac_cv_prog_CC
4573if test -n "$CC"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4575$as_echo "$CC" >&6; }
4576else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578$as_echo "no" >&6; }
4579fi
4580
4581
4582fi
4583if test -z "$ac_cv_prog_CC"; then
4584 ac_ct_CC=$CC
4585 # Extract the first word of "gcc", so it can be a program name with args.
4586set dummy gcc; ac_word=$2
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004589if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004590 $as_echo_n "(cached) " >&6
4591else
4592 if test -n "$ac_ct_CC"; then
4593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4594else
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004602 ac_cv_prog_ac_ct_CC="gcc"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606done
4607 done
4608IFS=$as_save_IFS
4609
4610fi
4611fi
4612ac_ct_CC=$ac_cv_prog_ac_ct_CC
4613if test -n "$ac_ct_CC"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4615$as_echo "$ac_ct_CC" >&6; }
4616else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618$as_echo "no" >&6; }
4619fi
4620
4621 if test "x$ac_ct_CC" = x; then
4622 CC=""
4623 else
4624 case $cross_compiling:$ac_tool_warned in
4625yes:)
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628ac_tool_warned=yes ;;
4629esac
4630 CC=$ac_ct_CC
4631 fi
4632else
4633 CC="$ac_cv_prog_CC"
4634fi
4635
4636if test -z "$CC"; then
4637 if test -n "$ac_tool_prefix"; then
4638 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4639set dummy ${ac_tool_prefix}cc; ac_word=$2
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004642if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004643 $as_echo_n "(cached) " >&6
4644else
4645 if test -n "$CC"; then
4646 ac_cv_prog_CC="$CC" # Let the user override the test.
4647else
4648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004655 ac_cv_prog_CC="${ac_tool_prefix}cc"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4658 fi
4659done
4660 done
4661IFS=$as_save_IFS
4662
4663fi
4664fi
4665CC=$ac_cv_prog_CC
4666if test -n "$CC"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4668$as_echo "$CC" >&6; }
4669else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671$as_echo "no" >&6; }
4672fi
4673
4674
4675 fi
4676fi
4677if test -z "$CC"; then
4678 # Extract the first word of "cc", so it can be a program name with args.
4679set dummy cc; ac_word=$2
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004682if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004683 $as_echo_n "(cached) " >&6
4684else
4685 if test -n "$CC"; then
4686 ac_cv_prog_CC="$CC" # Let the user override the test.
4687else
4688 ac_prog_rejected=no
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004696 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4697 ac_prog_rejected=yes
4698 continue
4699 fi
4700 ac_cv_prog_CC="cc"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4703 fi
4704done
4705 done
4706IFS=$as_save_IFS
4707
4708if test $ac_prog_rejected = yes; then
4709 # We found a bogon in the path, so make sure we never use it.
4710 set dummy $ac_cv_prog_CC
4711 shift
4712 if test $# != 0; then
4713 # We chose a different compiler from the bogus one.
4714 # However, it has the same basename, so the bogon will be chosen
4715 # first if we set CC to just the basename; use the full file name.
4716 shift
4717 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4718 fi
4719fi
4720fi
4721fi
4722CC=$ac_cv_prog_CC
4723if test -n "$CC"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4725$as_echo "$CC" >&6; }
4726else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728$as_echo "no" >&6; }
4729fi
4730
4731
4732fi
4733if test -z "$CC"; then
4734 if test -n "$ac_tool_prefix"; then
4735 for ac_prog in cl.exe
4736 do
4737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4738set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004741if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004742 $as_echo_n "(cached) " >&6
4743else
4744 if test -n "$CC"; then
4745 ac_cv_prog_CC="$CC" # Let the user override the test.
4746else
4747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004754 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4757 fi
4758done
4759 done
4760IFS=$as_save_IFS
4761
4762fi
4763fi
4764CC=$ac_cv_prog_CC
4765if test -n "$CC"; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4767$as_echo "$CC" >&6; }
4768else
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770$as_echo "no" >&6; }
4771fi
4772
4773
4774 test -n "$CC" && break
4775 done
4776fi
4777if test -z "$CC"; then
4778 ac_ct_CC=$CC
4779 for ac_prog in cl.exe
4780do
4781 # Extract the first word of "$ac_prog", so it can be a program name with args.
4782set dummy $ac_prog; ac_word=$2
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004785if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004786 $as_echo_n "(cached) " >&6
4787else
4788 if test -n "$ac_ct_CC"; then
4789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4790else
4791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792for as_dir in $PATH
4793do
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004798 ac_cv_prog_ac_ct_CC="$ac_prog"
4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4801 fi
4802done
4803 done
4804IFS=$as_save_IFS
4805
4806fi
4807fi
4808ac_ct_CC=$ac_cv_prog_ac_ct_CC
4809if test -n "$ac_ct_CC"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4811$as_echo "$ac_ct_CC" >&6; }
4812else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814$as_echo "no" >&6; }
4815fi
4816
4817
4818 test -n "$ac_ct_CC" && break
4819done
4820
4821 if test "x$ac_ct_CC" = x; then
4822 CC=""
4823 else
4824 case $cross_compiling:$ac_tool_warned in
4825yes:)
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4828ac_tool_warned=yes ;;
4829esac
4830 CC=$ac_ct_CC
4831 fi
4832fi
4833
4834fi
4835
4836
4837test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00004839as_fn_error $? "no acceptable C compiler found in \$PATH
4840See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00004841
4842# Provide some information about the compiler.
4843$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4844set X $ac_compile
4845ac_compiler=$2
4846for ac_option in --version -v -V -qversion; do
4847 { { ac_try="$ac_compiler $ac_option >&5"
4848case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851esac
4852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853$as_echo "$ac_try_echo"; } >&5
4854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4855 ac_status=$?
4856 if test -s conftest.err; then
4857 sed '10a\
4858... rest of stderr output deleted ...
4859 10q' conftest.err >conftest.er1
4860 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00004861 fi
Joseph Myers22e05272018-10-31 17:03:16 +00004862 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00004863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864 test $ac_status = 0; }
4865done
4866
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4868$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004869if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004870 $as_echo_n "(cached) " >&6
4871else
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873/* end confdefs.h. */
4874
4875int
4876main ()
4877{
4878#ifndef __GNUC__
4879 choke me
4880#endif
4881
4882 ;
4883 return 0;
4884}
4885_ACEOF
4886if ac_fn_c_try_compile "$LINENO"; then :
4887 ac_compiler_gnu=yes
4888else
4889 ac_compiler_gnu=no
4890fi
4891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892ac_cv_c_compiler_gnu=$ac_compiler_gnu
4893
4894fi
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4896$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4897if test $ac_compiler_gnu = yes; then
4898 GCC=yes
4899else
4900 GCC=
4901fi
4902ac_test_CFLAGS=${CFLAGS+set}
4903ac_save_CFLAGS=$CFLAGS
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4905$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004906if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004907 $as_echo_n "(cached) " >&6
4908else
4909 ac_save_c_werror_flag=$ac_c_werror_flag
4910 ac_c_werror_flag=yes
4911 ac_cv_prog_cc_g=no
4912 CFLAGS="-g"
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914/* end confdefs.h. */
4915
4916int
4917main ()
4918{
4919
4920 ;
4921 return 0;
4922}
4923_ACEOF
4924if ac_fn_c_try_compile "$LINENO"; then :
4925 ac_cv_prog_cc_g=yes
4926else
4927 CFLAGS=""
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h. */
4930
4931int
4932main ()
4933{
4934
4935 ;
4936 return 0;
4937}
4938_ACEOF
4939if ac_fn_c_try_compile "$LINENO"; then :
4940
4941else
4942 ac_c_werror_flag=$ac_save_c_werror_flag
4943 CFLAGS="-g"
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945/* end confdefs.h. */
4946
4947int
4948main ()
4949{
4950
4951 ;
4952 return 0;
4953}
4954_ACEOF
4955if ac_fn_c_try_compile "$LINENO"; then :
4956 ac_cv_prog_cc_g=yes
4957fi
4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959fi
4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961fi
4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 ac_c_werror_flag=$ac_save_c_werror_flag
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4966$as_echo "$ac_cv_prog_cc_g" >&6; }
4967if test "$ac_test_CFLAGS" = set; then
4968 CFLAGS=$ac_save_CFLAGS
4969elif test $ac_cv_prog_cc_g = yes; then
4970 if test "$GCC" = yes; then
4971 CFLAGS="-g -O2"
4972 else
4973 CFLAGS="-g"
4974 fi
4975else
4976 if test "$GCC" = yes; then
4977 CFLAGS="-O2"
4978 else
4979 CFLAGS=
4980 fi
4981fi
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4983$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004984if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004985 $as_echo_n "(cached) " >&6
4986else
4987 ac_cv_prog_cc_c89=no
4988ac_save_CC=$CC
4989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h. */
4991#include <stdarg.h>
4992#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00004993struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00004994/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4995struct buf { int x; };
4996FILE * (*rcsopen) (struct buf *, struct stat *, int);
4997static char *e (p, i)
4998 char **p;
4999 int i;
5000{
5001 return p[i];
5002}
5003static char *f (char * (*g) (char **, int), char **p, ...)
5004{
5005 char *s;
5006 va_list v;
5007 va_start (v,p);
5008 s = g (p, va_arg (v,int));
5009 va_end (v);
5010 return s;
5011}
5012
5013/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5014 function prototypes and stuff, but not '\xHH' hex character constants.
5015 These don't provoke an error unfortunately, instead are silently treated
5016 as 'x'. The following induces an error, until -std is added to get
5017 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5018 array size at least. It's necessary to write '\x00'==0 to get something
5019 that's true only with -std. */
5020int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5021
5022/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5023 inside strings and character constants. */
5024#define FOO(x) 'x'
5025int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5026
5027int test (int i, double x);
5028struct s1 {int (*f) (int a);};
5029struct s2 {int (*f) (double a);};
5030int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5031int argc;
5032char **argv;
5033int
5034main ()
5035{
5036return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5037 ;
5038 return 0;
5039}
5040_ACEOF
5041for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5042 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5043do
5044 CC="$ac_save_CC $ac_arg"
5045 if ac_fn_c_try_compile "$LINENO"; then :
5046 ac_cv_prog_cc_c89=$ac_arg
5047fi
5048rm -f core conftest.err conftest.$ac_objext
5049 test "x$ac_cv_prog_cc_c89" != "xno" && break
5050done
5051rm -f conftest.$ac_ext
5052CC=$ac_save_CC
5053
5054fi
5055# AC_CACHE_VAL
5056case "x$ac_cv_prog_cc_c89" in
5057 x)
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5059$as_echo "none needed" >&6; } ;;
5060 xno)
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5062$as_echo "unsupported" >&6; } ;;
5063 *)
5064 CC="$CC $ac_cv_prog_cc_c89"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5066$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5067esac
5068if test "x$ac_cv_prog_cc_c89" != xno; then :
5069
5070fi
5071
5072ac_ext=c
5073ac_cpp='$CPP $CPPFLAGS'
5074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077
Joseph Myers22e05272018-10-31 17:03:16 +00005078ac_ext=c
5079ac_cpp='$CPP $CPPFLAGS'
5080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5084$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5085if ${am_cv_prog_cc_c_o+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087else
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089/* end confdefs.h. */
5090
5091int
5092main ()
5093{
5094
5095 ;
5096 return 0;
5097}
5098_ACEOF
5099 # Make sure it works both with $CC and with simple cc.
5100 # Following AC_PROG_CC_C_O, we do the test twice because some
5101 # compilers refuse to overwrite an existing .o file with -o,
5102 # though they will create one.
5103 am_cv_prog_cc_c_o=yes
5104 for am_i in 1 2; do
5105 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5106 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } \
5110 && test -f conftest2.$ac_objext; then
5111 : OK
5112 else
5113 am_cv_prog_cc_c_o=no
5114 break
5115 fi
5116 done
5117 rm -f core conftest*
5118 unset am_i
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5121$as_echo "$am_cv_prog_cc_c_o" >&6; }
5122if test "$am_cv_prog_cc_c_o" != yes; then
5123 # Losing compiler, so override with the script.
5124 # FIXME: It is wrong to rewrite CC.
5125 # But if we don't then we get into trouble of one sort or another.
5126 # A longer-term fix would be to have automake use am__CC in this case,
5127 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5128 CC="$am_aux_dir/compile $CC"
5129fi
5130ac_ext=c
5131ac_cpp='$CPP $CPPFLAGS'
5132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135
5136
Iain Buclawb4c522f2018-10-28 19:51:47 +00005137ac_ext=d
5138ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5139ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140ac_compiler_gnu=yes
5141if test -n "$ac_tool_prefix"; then
5142 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5143set dummy ${ac_tool_prefix}gdc; ac_word=$2
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005146if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005147 $as_echo_n "(cached) " >&6
5148else
5149 if test -n "$GDC"; then
5150 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5151else
5152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153for as_dir in $PATH
5154do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005159 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163done
5164 done
5165IFS=$as_save_IFS
5166
5167fi
5168fi
5169GDC=$ac_cv_prog_GDC
5170if test -n "$GDC"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5172$as_echo "$GDC" >&6; }
5173else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175$as_echo "no" >&6; }
5176fi
5177
5178
5179fi
5180if test -z "$ac_cv_prog_GDC"; then
5181 ac_ct_GDC=$GDC
5182 # Extract the first word of "gdc", so it can be a program name with args.
5183set dummy gdc; ac_word=$2
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005186if ${ac_cv_prog_ac_ct_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005187 $as_echo_n "(cached) " >&6
5188else
5189 if test -n "$ac_ct_GDC"; then
5190 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005199 ac_cv_prog_ac_ct_GDC="gdc"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203done
5204 done
5205IFS=$as_save_IFS
5206
5207fi
5208fi
5209ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5210if test -n "$ac_ct_GDC"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5212$as_echo "$ac_ct_GDC" >&6; }
5213else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215$as_echo "no" >&6; }
5216fi
5217
5218 if test "x$ac_ct_GDC" = x; then
5219 GDC=""
5220 else
5221 case $cross_compiling:$ac_tool_warned in
5222yes:)
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225ac_tool_warned=yes ;;
5226esac
5227 GDC=$ac_ct_GDC
5228 fi
5229else
5230 GDC="$ac_cv_prog_GDC"
5231fi
5232
5233if test -z "$GDC"; then
5234 if test -n "$ac_tool_prefix"; then
5235 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5236set dummy ${ac_tool_prefix}gdc; ac_word=$2
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005239if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005240 $as_echo_n "(cached) " >&6
5241else
5242 if test -n "$GDC"; then
5243 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5244else
5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005252 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256done
5257 done
5258IFS=$as_save_IFS
5259
5260fi
5261fi
5262GDC=$ac_cv_prog_GDC
5263if test -n "$GDC"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5265$as_echo "$GDC" >&6; }
5266else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268$as_echo "no" >&6; }
5269fi
5270
5271
5272 fi
5273fi
5274if test -z "$GDC"; then
5275 # Extract the first word of "gdc", so it can be a program name with args.
5276set dummy gdc; ac_word=$2
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005279if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005280 $as_echo_n "(cached) " >&6
5281else
5282 if test -n "$GDC"; then
5283 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5284else
5285 ac_prog_rejected=no
5286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287for as_dir in $PATH
5288do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005293 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5294 ac_prog_rejected=yes
5295 continue
5296 fi
5297 ac_cv_prog_GDC="gdc"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5300 fi
5301done
5302 done
5303IFS=$as_save_IFS
5304
5305if test $ac_prog_rejected = yes; then
5306 # We found a bogon in the path, so make sure we never use it.
5307 set dummy $ac_cv_prog_GDC
5308 shift
5309 if test $# != 0; then
5310 # We chose a different compiler from the bogus one.
5311 # However, it has the same basename, so the bogon will be chosen
5312 # first if we set GDC to just the basename; use the full file name.
5313 shift
5314 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5315 fi
5316fi
5317fi
5318fi
5319GDC=$ac_cv_prog_GDC
5320if test -n "$GDC"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5322$as_echo "$GDC" >&6; }
5323else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325$as_echo "no" >&6; }
5326fi
5327
5328
5329fi
5330
5331
5332# Provide some information about the compiler.
5333$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5334set X $ac_compile
5335ac_compiler=$2
5336{ { ac_try="$ac_compiler --version >&5"
5337case "(($ac_try" in
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5340esac
5341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5342$as_echo "$ac_try_echo"; } >&5
5343 (eval "$ac_compiler --version >&5") 2>conftest.err
5344 ac_status=$?
5345 if test -s conftest.err; then
5346 sed '10a\
5347... rest of stderr output deleted ...
5348 10q' conftest.err >conftest.er1
5349 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005350 fi
Joseph Myers22e05272018-10-31 17:03:16 +00005351 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00005352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5353 test $ac_status = 0; }
5354ac_ext=c
5355ac_cpp='$CPP $CPPFLAGS'
5356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359
5360
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5362$as_echo_n "checking for absolute libphobos source path... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005363if ${phobos_cv_abs_srcdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005364 $as_echo_n "(cached) " >&6
5365else
5366 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5367fi
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5369$as_echo "$phobos_cv_abs_srcdir" >&6; }
5370 if test -d "$phobos_cv_abs_srcdir"; then :
5371
5372else
Joseph Myers22e05272018-10-31 17:03:16 +00005373 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005374fi
5375
5376
5377
5378
5379 gdc_save_DFLAGS=$GDCFLAGS
5380 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5381
5382 ac_ext=d
5383ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5384ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385ac_compiler_gnu=yes
5386
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5388$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5389 cat > conftest.$ac_ext <<_ACEOF
5390module mod;
5391
5392
5393extern(C) int main() {
5394 return 0;
5395}
5396_ACEOF
5397if ac_fn_d_try_compile "$LINENO"; then :
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5399$as_echo "yes" >&6; }
5400else
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402$as_echo "no" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005403 as_fn_error $? "can't compile D sources!" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005404fi
5405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 ac_ext=c
5407ac_cpp='$CPP $CPPFLAGS'
5408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411
5412
5413 GDCFLAGS=$gdc_save_DFLAGS
5414
5415
5416
5417
5418
5419
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5421$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5422 # Check whether --enable-maintainer-mode was given.
5423if test "${enable_maintainer_mode+set}" = set; then :
5424 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5425else
5426 USE_MAINTAINER_MODE=no
5427fi
5428
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5430$as_echo "$USE_MAINTAINER_MODE" >&6; }
5431 if test $USE_MAINTAINER_MODE = yes; then
5432 MAINTAINER_MODE_TRUE=
5433 MAINTAINER_MODE_FALSE='#'
5434else
5435 MAINTAINER_MODE_TRUE='#'
5436 MAINTAINER_MODE_FALSE=
5437fi
5438
5439 MAINT=$MAINTAINER_MODE_TRUE
5440
5441
5442if test -n "$ac_tool_prefix"; then
5443 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5444set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005447if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005448 $as_echo_n "(cached) " >&6
5449else
5450 if test -n "$RANLIB"; then
5451 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5452else
5453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454for as_dir in $PATH
5455do
5456 IFS=$as_save_IFS
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005460 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 break 2
5463 fi
5464done
5465 done
5466IFS=$as_save_IFS
5467
5468fi
5469fi
5470RANLIB=$ac_cv_prog_RANLIB
5471if test -n "$RANLIB"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5473$as_echo "$RANLIB" >&6; }
5474else
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476$as_echo "no" >&6; }
5477fi
5478
5479
5480fi
5481if test -z "$ac_cv_prog_RANLIB"; then
5482 ac_ct_RANLIB=$RANLIB
5483 # Extract the first word of "ranlib", so it can be a program name with args.
5484set dummy ranlib; ac_word=$2
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005487if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005488 $as_echo_n "(cached) " >&6
5489else
5490 if test -n "$ac_ct_RANLIB"; then
5491 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005500 ac_cv_prog_ac_ct_RANLIB="ranlib"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504done
5505 done
5506IFS=$as_save_IFS
5507
5508fi
5509fi
5510ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5511if test -n "$ac_ct_RANLIB"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5513$as_echo "$ac_ct_RANLIB" >&6; }
5514else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516$as_echo "no" >&6; }
5517fi
5518
5519 if test "x$ac_ct_RANLIB" = x; then
5520 RANLIB=":"
5521 else
5522 case $cross_compiling:$ac_tool_warned in
5523yes:)
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526ac_tool_warned=yes ;;
5527esac
5528 RANLIB=$ac_ct_RANLIB
5529 fi
5530else
5531 RANLIB="$ac_cv_prog_RANLIB"
5532fi
5533
5534
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5536$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5537set x ${MAKE-make}
5538ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00005539if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005540 $as_echo_n "(cached) " >&6
5541else
5542 cat >conftest.make <<\_ACEOF
5543SHELL = /bin/sh
5544all:
5545 @echo '@@@%%%=$(MAKE)=@@@%%%'
5546_ACEOF
Joseph Myers22e05272018-10-31 17:03:16 +00005547# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Iain Buclawb4c522f2018-10-28 19:51:47 +00005548case `${MAKE-make} -f conftest.make 2>/dev/null` in
5549 *@@@%%%=?*=@@@%%%*)
5550 eval ac_cv_prog_make_${ac_make}_set=yes;;
5551 *)
5552 eval ac_cv_prog_make_${ac_make}_set=no;;
5553esac
5554rm -f conftest.make
5555fi
5556if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5558$as_echo "yes" >&6; }
5559 SET_MAKE=
5560else
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562$as_echo "no" >&6; }
5563 SET_MAKE="MAKE=${MAKE-make}"
5564fi
5565
5566
H.J. Lu08c1d392020-05-08 15:11:24 -07005567# Add CET specific flags if CET is enabled
5568 # Check whether --enable-cet was given.
5569if test "${enable_cet+set}" = set; then :
5570 enableval=$enable_cet;
5571 case "$enableval" in
5572 yes|no|auto) ;;
5573 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5574 esac
5575
5576else
H.J. Lu4c1a5d82020-05-15 09:06:50 -07005577 enable_cet=auto
H.J. Lu08c1d392020-05-08 15:11:24 -07005578fi
5579
5580
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5582$as_echo_n "checking for CET support... " >&6; }
5583
H.J. Lu9051b542020-05-29 12:23:33 -07005584# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
H.J. Lu08c1d392020-05-08 15:11:24 -07005585case "$host" in
5586 i[34567]86-*-linux* | x86_64-*-linux*)
5587 case "$enable_cet" in
5588 auto)
5589 # Check if target supports multi-byte NOPs
Iain Buclaw285d81b2020-09-07 15:43:04 +02005590 # and if compiler and assembler support CET insn.
H.J. Lu9051b542020-05-29 12:23:33 -07005591 cet_save_CFLAGS="$CFLAGS"
H.J. Lu4c1a5d82020-05-15 09:06:50 -07005592 CFLAGS="$CFLAGS -fcf-protection"
H.J. Lu08c1d392020-05-08 15:11:24 -07005593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594/* end confdefs.h. */
5595
5596int
5597main ()
5598{
5599
5600#if !defined(__SSE2__)
5601#error target does not support multi-byte NOPs
5602#else
5603asm ("setssbsy");
5604#endif
5605
5606 ;
5607 return 0;
5608}
5609_ACEOF
5610if ac_fn_c_try_compile "$LINENO"; then :
5611 enable_cet=yes
5612else
5613 enable_cet=no
5614fi
5615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
H.J. Lu9051b542020-05-29 12:23:33 -07005616 CFLAGS="$cet_save_CFLAGS"
H.J. Lu08c1d392020-05-08 15:11:24 -07005617 ;;
5618 yes)
5619 # Check if assembler supports CET.
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h. */
5622
5623int
5624main ()
5625{
5626asm ("setssbsy");
5627 ;
5628 return 0;
5629}
5630_ACEOF
5631if ac_fn_c_try_compile "$LINENO"; then :
5632
5633else
5634 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
5635fi
5636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 ;;
5638 esac
5639 ;;
5640 *)
5641 enable_cet=no
5642 ;;
5643esac
5644if test x$enable_cet = xyes; then
5645 CET_FLAGS="-fcf-protection -mshstk"
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5647$as_echo "yes" >&6; }
5648else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650$as_echo "no" >&6; }
5651fi
5652
5653
Iain Buclaw285d81b2020-09-07 15:43:04 +02005654if test x$enable_cet = xyes; then :
5655 DCFG_ENABLE_CET=true
5656else
5657 DCFG_ENABLE_CET=false
5658fi
5659
H.J. Lu08c1d392020-05-08 15:11:24 -07005660
Iain Buclawb4c522f2018-10-28 19:51:47 +00005661# This should be inherited in the recursive make, but ensure it is defined.
5662test "$AR" || AR=ar
5663
5664
5665CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5666
5667
5668
5669# Enable libtool
5670case `pwd` in
5671 *\ * | *\ *)
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5673$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5674esac
5675
5676
5677
5678macro_version='2.2.7a'
5679macro_revision='1.3134'
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693ltmain="$ac_aux_dir/ltmain.sh"
5694
5695# Backslashify metacharacters that are still active within
5696# double-quoted strings.
5697sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5698
5699# Same as above, but do not quote variable references.
5700double_quote_subst='s/\(["`\\]\)/\\\1/g'
5701
5702# Sed substitution to delay expansion of an escaped shell variable in a
5703# double_quote_subst'ed string.
5704delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5705
5706# Sed substitution to delay expansion of an escaped single quote.
5707delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5708
5709# Sed substitution to avoid accidental globbing in evaled expressions
5710no_glob_subst='s/\*/\\\*/g'
5711
5712ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5713ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5714ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5715
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5717$as_echo_n "checking how to print strings... " >&6; }
5718# Test print first, because it will be a builtin if present.
5719if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5720 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5721 ECHO='print -r --'
5722elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5723 ECHO='printf %s\n'
5724else
5725 # Use this function as a fallback that always works.
5726 func_fallback_echo ()
5727 {
5728 eval 'cat <<_LTECHO_EOF
5729$1
5730_LTECHO_EOF'
5731 }
5732 ECHO='func_fallback_echo'
5733fi
5734
5735# func_echo_all arg...
5736# Invoke $ECHO with all args, space-separated.
5737func_echo_all ()
5738{
5739 $ECHO ""
5740}
5741
5742case "$ECHO" in
5743 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5744$as_echo "printf" >&6; } ;;
5745 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5746$as_echo "print -r" >&6; } ;;
5747 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5748$as_echo "cat" >&6; } ;;
5749esac
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5765$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005766if ${ac_cv_path_SED+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005767 $as_echo_n "(cached) " >&6
5768else
5769 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5770 for ac_i in 1 2 3 4 5 6 7; do
5771 ac_script="$ac_script$as_nl$ac_script"
5772 done
5773 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5774 { ac_script=; unset ac_script;}
5775 if test -z "$SED"; then
5776 ac_path_SED_found=false
5777 # Loop through the user's path and test for each of PROGNAME-LIST
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779for as_dir in $PATH
5780do
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_prog in sed gsed; do
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005786 as_fn_executable_p "$ac_path_SED" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005787# Check for GNU ac_path_SED and select it if it is found.
5788 # Check for GNU $ac_path_SED
5789case `"$ac_path_SED" --version 2>&1` in
5790*GNU*)
5791 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5792*)
5793 ac_count=0
5794 $as_echo_n 0123456789 >"conftest.in"
5795 while :
5796 do
5797 cat "conftest.in" "conftest.in" >"conftest.tmp"
5798 mv "conftest.tmp" "conftest.in"
5799 cp "conftest.in" "conftest.nl"
5800 $as_echo '' >> "conftest.nl"
5801 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5803 as_fn_arith $ac_count + 1 && ac_count=$as_val
5804 if test $ac_count -gt ${ac_path_SED_max-0}; then
5805 # Best one so far, save it but keep looking for a better one
5806 ac_cv_path_SED="$ac_path_SED"
5807 ac_path_SED_max=$ac_count
5808 fi
5809 # 10*(2^10) chars as input seems more than enough
5810 test $ac_count -gt 10 && break
5811 done
5812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5813esac
5814
5815 $ac_path_SED_found && break 3
5816 done
5817 done
5818 done
5819IFS=$as_save_IFS
5820 if test -z "$ac_cv_path_SED"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005821 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005822 fi
5823else
5824 ac_cv_path_SED=$SED
5825fi
5826
5827fi
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5829$as_echo "$ac_cv_path_SED" >&6; }
5830 SED="$ac_cv_path_SED"
5831 rm -f conftest.sed
5832
5833test -z "$SED" && SED=sed
5834Xsed="$SED -e 1s/^X//"
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
Iain Buclawb4c522f2018-10-28 19:51:47 +00005846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5847$as_echo_n "checking for fgrep... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005848if ${ac_cv_path_FGREP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005849 $as_echo_n "(cached) " >&6
5850else
5851 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5852 then ac_cv_path_FGREP="$GREP -F"
5853 else
5854 if test -z "$FGREP"; then
5855 ac_path_FGREP_found=false
5856 # Loop through the user's path and test for each of PROGNAME-LIST
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5859do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_prog in fgrep; do
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005865 as_fn_executable_p "$ac_path_FGREP" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005866# Check for GNU ac_path_FGREP and select it if it is found.
5867 # Check for GNU $ac_path_FGREP
5868case `"$ac_path_FGREP" --version 2>&1` in
5869*GNU*)
5870 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5871*)
5872 ac_count=0
5873 $as_echo_n 0123456789 >"conftest.in"
5874 while :
5875 do
5876 cat "conftest.in" "conftest.in" >"conftest.tmp"
5877 mv "conftest.tmp" "conftest.in"
5878 cp "conftest.in" "conftest.nl"
5879 $as_echo 'FGREP' >> "conftest.nl"
5880 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5882 as_fn_arith $ac_count + 1 && ac_count=$as_val
5883 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5884 # Best one so far, save it but keep looking for a better one
5885 ac_cv_path_FGREP="$ac_path_FGREP"
5886 ac_path_FGREP_max=$ac_count
5887 fi
5888 # 10*(2^10) chars as input seems more than enough
5889 test $ac_count -gt 10 && break
5890 done
5891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5892esac
5893
5894 $ac_path_FGREP_found && break 3
5895 done
5896 done
5897 done
5898IFS=$as_save_IFS
5899 if test -z "$ac_cv_path_FGREP"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005900 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005901 fi
5902else
5903 ac_cv_path_FGREP=$FGREP
5904fi
5905
5906 fi
5907fi
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5909$as_echo "$ac_cv_path_FGREP" >&6; }
5910 FGREP="$ac_cv_path_FGREP"
5911
5912
5913test -z "$GREP" && GREP=grep
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933# Check whether --with-gnu-ld was given.
5934if test "${with_gnu_ld+set}" = set; then :
5935 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5936else
5937 with_gnu_ld=no
5938fi
5939
5940ac_prog=ld
5941if test "$GCC" = yes; then
5942 # Check if gcc -print-prog-name=ld gives a path.
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5944$as_echo_n "checking for ld used by $CC... " >&6; }
5945 case $host in
5946 *-*-mingw*)
5947 # gcc leaves a trailing carriage return which upsets mingw
5948 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5949 *)
5950 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5951 esac
5952 case $ac_prog in
5953 # Accept absolute paths.
5954 [\\/]* | ?:[\\/]*)
5955 re_direlt='/[^/][^/]*/\.\./'
5956 # Canonicalize the pathname of ld
5957 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5958 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5959 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5960 done
5961 test -z "$LD" && LD="$ac_prog"
5962 ;;
5963 "")
5964 # If it fails, then pretend we aren't using GCC.
5965 ac_prog=ld
5966 ;;
5967 *)
5968 # If it is relative, then search for the first ld in PATH.
5969 with_gnu_ld=unknown
5970 ;;
5971 esac
5972elif test "$with_gnu_ld" = yes; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5974$as_echo_n "checking for GNU ld... " >&6; }
5975else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5977$as_echo_n "checking for non-GNU ld... " >&6; }
5978fi
Joseph Myers22e05272018-10-31 17:03:16 +00005979if ${lt_cv_path_LD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005980 $as_echo_n "(cached) " >&6
5981else
5982 if test -z "$LD"; then
5983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5984 for ac_dir in $PATH; do
5985 IFS="$lt_save_ifs"
5986 test -z "$ac_dir" && ac_dir=.
5987 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5988 lt_cv_path_LD="$ac_dir/$ac_prog"
5989 # Check to see if the program is GNU ld. I'd rather use --version,
5990 # but apparently some variants of GNU ld only accept -v.
5991 # Break only if it was the GNU/non-GNU ld that we prefer.
5992 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5993 *GNU* | *'with BFD'*)
5994 test "$with_gnu_ld" != no && break
5995 ;;
5996 *)
5997 test "$with_gnu_ld" != yes && break
5998 ;;
5999 esac
6000 fi
6001 done
6002 IFS="$lt_save_ifs"
6003else
6004 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6005fi
6006fi
6007
6008LD="$lt_cv_path_LD"
6009if test -n "$LD"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6011$as_echo "$LD" >&6; }
6012else
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014$as_echo "no" >&6; }
6015fi
Joseph Myers22e05272018-10-31 17:03:16 +00006016test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00006017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6018$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006019if ${lt_cv_prog_gnu_ld+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006020 $as_echo_n "(cached) " >&6
6021else
6022 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6023case `$LD -v 2>&1 </dev/null` in
6024*GNU* | *'with BFD'*)
6025 lt_cv_prog_gnu_ld=yes
6026 ;;
6027*)
6028 lt_cv_prog_gnu_ld=no
6029 ;;
6030esac
6031fi
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6033$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6034with_gnu_ld=$lt_cv_prog_gnu_ld
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6045$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006046if ${lt_cv_path_NM+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006047 $as_echo_n "(cached) " >&6
6048else
6049 if test -n "$NM"; then
6050 # Let the user override the test.
6051 lt_cv_path_NM="$NM"
6052else
6053 lt_nm_to_check="${ac_tool_prefix}nm"
6054 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6055 lt_nm_to_check="$lt_nm_to_check nm"
6056 fi
6057 for lt_tmp_nm in $lt_nm_to_check; do
6058 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6059 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6060 IFS="$lt_save_ifs"
6061 test -z "$ac_dir" && ac_dir=.
6062 tmp_nm="$ac_dir/$lt_tmp_nm"
6063 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6064 # Check to see if the nm accepts a BSD-compat flag.
6065 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6066 # nm: unknown option "B" ignored
6067 # Tru64's nm complains that /dev/null is an invalid object file
6068 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6069 */dev/null* | *'Invalid file or object type'*)
6070 lt_cv_path_NM="$tmp_nm -B"
6071 break
6072 ;;
6073 *)
6074 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6075 */dev/null*)
6076 lt_cv_path_NM="$tmp_nm -p"
6077 break
6078 ;;
6079 *)
6080 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6081 continue # so that we can try to find one that supports BSD flags
6082 ;;
6083 esac
6084 ;;
6085 esac
6086 fi
6087 done
6088 IFS="$lt_save_ifs"
6089 done
6090 : ${lt_cv_path_NM=no}
6091fi
6092fi
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6094$as_echo "$lt_cv_path_NM" >&6; }
6095if test "$lt_cv_path_NM" != "no"; then
6096 NM="$lt_cv_path_NM"
6097else
6098 # Didn't find any BSD compatible name lister, look for dumpbin.
6099 if test -n "$DUMPBIN"; then :
6100 # Let the user override the test.
6101 else
6102 if test -n "$ac_tool_prefix"; then
6103 for ac_prog in dumpbin "link -dump"
6104 do
6105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6106set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006109if ${ac_cv_prog_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006110 $as_echo_n "(cached) " >&6
6111else
6112 if test -n "$DUMPBIN"; then
6113 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6114else
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006122 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 break 2
6125 fi
6126done
6127 done
6128IFS=$as_save_IFS
6129
6130fi
6131fi
6132DUMPBIN=$ac_cv_prog_DUMPBIN
6133if test -n "$DUMPBIN"; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6135$as_echo "$DUMPBIN" >&6; }
6136else
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138$as_echo "no" >&6; }
6139fi
6140
6141
6142 test -n "$DUMPBIN" && break
6143 done
6144fi
6145if test -z "$DUMPBIN"; then
6146 ac_ct_DUMPBIN=$DUMPBIN
6147 for ac_prog in dumpbin "link -dump"
6148do
6149 # Extract the first word of "$ac_prog", so it can be a program name with args.
6150set dummy $ac_prog; ac_word=$2
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006153if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006154 $as_echo_n "(cached) " >&6
6155else
6156 if test -n "$ac_ct_DUMPBIN"; then
6157 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6158else
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006166 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170done
6171 done
6172IFS=$as_save_IFS
6173
6174fi
6175fi
6176ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6177if test -n "$ac_ct_DUMPBIN"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6179$as_echo "$ac_ct_DUMPBIN" >&6; }
6180else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182$as_echo "no" >&6; }
6183fi
6184
6185
6186 test -n "$ac_ct_DUMPBIN" && break
6187done
6188
6189 if test "x$ac_ct_DUMPBIN" = x; then
6190 DUMPBIN=":"
6191 else
6192 case $cross_compiling:$ac_tool_warned in
6193yes:)
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196ac_tool_warned=yes ;;
6197esac
6198 DUMPBIN=$ac_ct_DUMPBIN
6199 fi
6200fi
6201
6202 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6203 *COFF*)
6204 DUMPBIN="$DUMPBIN -symbols"
6205 ;;
6206 *)
6207 DUMPBIN=:
6208 ;;
6209 esac
6210 fi
6211
6212 if test "$DUMPBIN" != ":"; then
6213 NM="$DUMPBIN"
6214 fi
6215fi
6216test -z "$NM" && NM=nm
6217
6218
6219
6220
6221
6222
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6224$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006225if ${lt_cv_nm_interface+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006226 $as_echo_n "(cached) " >&6
6227else
6228 lt_cv_nm_interface="BSD nm"
6229 echo "int some_variable = 0;" > conftest.$ac_ext
6230 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6231 (eval "$ac_compile" 2>conftest.err)
6232 cat conftest.err >&5
6233 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6234 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6235 cat conftest.err >&5
6236 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6237 cat conftest.out >&5
6238 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6239 lt_cv_nm_interface="MS dumpbin"
6240 fi
6241 rm -f conftest*
6242fi
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6244$as_echo "$lt_cv_nm_interface" >&6; }
6245
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6247$as_echo_n "checking whether ln -s works... " >&6; }
6248LN_S=$as_ln_s
6249if test "$LN_S" = "ln -s"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6251$as_echo "yes" >&6; }
6252else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6254$as_echo "no, using $LN_S" >&6; }
6255fi
6256
6257# find the maximum length of command line arguments
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6259$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006260if ${lt_cv_sys_max_cmd_len+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006261 $as_echo_n "(cached) " >&6
6262else
6263 i=0
6264 teststring="ABCD"
6265
6266 case $build_os in
6267 msdosdjgpp*)
6268 # On DJGPP, this test can blow up pretty badly due to problems in libc
6269 # (any single argument exceeding 2000 bytes causes a buffer overrun
6270 # during glob expansion). Even if it were fixed, the result of this
6271 # check would be larger than it should be.
6272 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6273 ;;
6274
6275 gnu*)
6276 # Under GNU Hurd, this test is not required because there is
6277 # no limit to the length of command line arguments.
6278 # Libtool will interpret -1 as no limit whatsoever
6279 lt_cv_sys_max_cmd_len=-1;
6280 ;;
6281
6282 cygwin* | mingw* | cegcc*)
6283 # On Win9x/ME, this test blows up -- it succeeds, but takes
6284 # about 5 minutes as the teststring grows exponentially.
6285 # Worse, since 9x/ME are not pre-emptively multitasking,
6286 # you end up with a "frozen" computer, even though with patience
6287 # the test eventually succeeds (with a max line length of 256k).
6288 # Instead, let's just punt: use the minimum linelength reported by
6289 # all of the supported platforms: 8192 (on NT/2K/XP).
6290 lt_cv_sys_max_cmd_len=8192;
6291 ;;
6292
6293 mint*)
6294 # On MiNT this can take a long time and run out of memory.
6295 lt_cv_sys_max_cmd_len=8192;
6296 ;;
6297
6298 amigaos*)
6299 # On AmigaOS with pdksh, this test takes hours, literally.
6300 # So we just punt and use a minimum line length of 8192.
6301 lt_cv_sys_max_cmd_len=8192;
6302 ;;
6303
6304 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6305 # This has been around since 386BSD, at least. Likely further.
6306 if test -x /sbin/sysctl; then
6307 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6308 elif test -x /usr/sbin/sysctl; then
6309 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6310 else
6311 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6312 fi
6313 # And add a safety zone
6314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6316 ;;
6317
6318 interix*)
6319 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6320 lt_cv_sys_max_cmd_len=196608
6321 ;;
6322
6323 osf*)
6324 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6325 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6326 # nice to cause kernel panics so lets avoid the loop below.
6327 # First set a reasonable default.
6328 lt_cv_sys_max_cmd_len=16384
6329 #
6330 if test -x /sbin/sysconfig; then
6331 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6332 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6333 esac
6334 fi
6335 ;;
6336 sco3.2v5*)
6337 lt_cv_sys_max_cmd_len=102400
6338 ;;
6339 sysv5* | sco5v6* | sysv4.2uw2*)
6340 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6341 if test -n "$kargmax"; then
6342 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6343 else
6344 lt_cv_sys_max_cmd_len=32768
6345 fi
6346 ;;
6347 *)
6348 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6349 if test -n "$lt_cv_sys_max_cmd_len"; then
6350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6352 else
6353 # Make teststring a little bigger before we do anything with it.
6354 # a 1K string should be a reasonable start.
6355 for i in 1 2 3 4 5 6 7 8 ; do
6356 teststring=$teststring$teststring
6357 done
6358 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6359 # If test is not a shell built-in, we'll probably end up computing a
6360 # maximum length that is only half of the actual maximum length, but
6361 # we can't tell.
6362 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6363 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6364 test $i != 17 # 1/2 MB should be enough
6365 do
6366 i=`expr $i + 1`
6367 teststring=$teststring$teststring
6368 done
6369 # Only check the string length outside the loop.
6370 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6371 teststring=
6372 # Add a significant safety factor because C++ compilers can tack on
6373 # massive amounts of additional arguments before passing them to the
6374 # linker. It appears as though 1/2 is a usable value.
6375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6376 fi
6377 ;;
6378 esac
6379
6380fi
6381
6382if test -n $lt_cv_sys_max_cmd_len ; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6384$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6385else
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6387$as_echo "none" >&6; }
6388fi
6389max_cmd_len=$lt_cv_sys_max_cmd_len
6390
6391
6392
6393
6394
6395
6396: ${CP="cp -f"}
6397: ${MV="mv -f"}
6398: ${RM="rm -f"}
6399
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6401$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6402# Try some XSI features
6403xsi_shell=no
6404( _lt_dummy="a/b/c"
6405 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6406 = c,a/b,, \
6407 && eval 'test $(( 1 + 1 )) -eq 2 \
6408 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6409 && xsi_shell=yes
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6411$as_echo "$xsi_shell" >&6; }
6412
6413
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6415$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6416lt_shell_append=no
6417( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6418 >/dev/null 2>&1 \
6419 && lt_shell_append=yes
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6421$as_echo "$lt_shell_append" >&6; }
6422
6423
6424if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6425 lt_unset=unset
6426else
6427 lt_unset=false
6428fi
6429
6430
6431
6432
6433
6434# test EBCDIC or ASCII
6435case `echo X|tr X '\101'` in
6436 A) # ASCII based system
6437 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6438 lt_SP2NL='tr \040 \012'
6439 lt_NL2SP='tr \015\012 \040\040'
6440 ;;
6441 *) # EBCDIC based system
6442 lt_SP2NL='tr \100 \n'
6443 lt_NL2SP='tr \r\n \100\100'
6444 ;;
6445esac
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6456$as_echo_n "checking for $LD option to reload object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006457if ${lt_cv_ld_reload_flag+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006458 $as_echo_n "(cached) " >&6
6459else
6460 lt_cv_ld_reload_flag='-r'
6461fi
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6463$as_echo "$lt_cv_ld_reload_flag" >&6; }
6464reload_flag=$lt_cv_ld_reload_flag
6465case $reload_flag in
6466"" | " "*) ;;
6467*) reload_flag=" $reload_flag" ;;
6468esac
6469reload_cmds='$LD$reload_flag -o $output$reload_objs'
6470case $host_os in
6471 darwin*)
6472 if test "$GCC" = yes; then
6473 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6474 else
6475 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6476 fi
6477 ;;
6478esac
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488if test -n "$ac_tool_prefix"; then
6489 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6490set dummy ${ac_tool_prefix}objdump; ac_word=$2
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006493if ${ac_cv_prog_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006494 $as_echo_n "(cached) " >&6
6495else
6496 if test -n "$OBJDUMP"; then
6497 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6498else
6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006506 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 break 2
6509 fi
6510done
6511 done
6512IFS=$as_save_IFS
6513
6514fi
6515fi
6516OBJDUMP=$ac_cv_prog_OBJDUMP
6517if test -n "$OBJDUMP"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6519$as_echo "$OBJDUMP" >&6; }
6520else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522$as_echo "no" >&6; }
6523fi
6524
6525
6526fi
6527if test -z "$ac_cv_prog_OBJDUMP"; then
6528 ac_ct_OBJDUMP=$OBJDUMP
6529 # Extract the first word of "objdump", so it can be a program name with args.
6530set dummy objdump; ac_word=$2
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006533if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006534 $as_echo_n "(cached) " >&6
6535else
6536 if test -n "$ac_ct_OBJDUMP"; then
6537 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006546 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6549 fi
6550done
6551 done
6552IFS=$as_save_IFS
6553
6554fi
6555fi
6556ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6557if test -n "$ac_ct_OBJDUMP"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6559$as_echo "$ac_ct_OBJDUMP" >&6; }
6560else
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562$as_echo "no" >&6; }
6563fi
6564
6565 if test "x$ac_ct_OBJDUMP" = x; then
6566 OBJDUMP="false"
6567 else
6568 case $cross_compiling:$ac_tool_warned in
6569yes:)
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6572ac_tool_warned=yes ;;
6573esac
6574 OBJDUMP=$ac_ct_OBJDUMP
6575 fi
6576else
6577 OBJDUMP="$ac_cv_prog_OBJDUMP"
6578fi
6579
6580test -z "$OBJDUMP" && OBJDUMP=objdump
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6591$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006592if ${lt_cv_deplibs_check_method+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006593 $as_echo_n "(cached) " >&6
6594else
6595 lt_cv_file_magic_cmd='$MAGIC_CMD'
6596lt_cv_file_magic_test_file=
6597lt_cv_deplibs_check_method='unknown'
6598# Need to set the preceding variable on all platforms that support
6599# interlibrary dependencies.
6600# 'none' -- dependencies not supported.
6601# `unknown' -- same as none, but documents that we really don't know.
6602# 'pass_all' -- all dependencies passed with no checks.
6603# 'test_compile' -- check by making test program.
6604# 'file_magic [[regex]]' -- check by looking for files in library path
6605# which responds to the $file_magic_cmd with a given extended regex.
6606# If you have `file' or equivalent on your system and you're not sure
6607# whether `pass_all' will *always* work, you probably want this one.
6608
6609case $host_os in
6610aix[4-9]*)
6611 lt_cv_deplibs_check_method=pass_all
6612 ;;
6613
6614beos*)
6615 lt_cv_deplibs_check_method=pass_all
6616 ;;
6617
6618bsdi[45]*)
6619 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6620 lt_cv_file_magic_cmd='/usr/bin/file -L'
6621 lt_cv_file_magic_test_file=/shlib/libc.so
6622 ;;
6623
6624cygwin*)
6625 # func_win32_libid is a shell function defined in ltmain.sh
6626 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6627 lt_cv_file_magic_cmd='func_win32_libid'
6628 ;;
6629
6630mingw* | pw32*)
6631 # Base MSYS/MinGW do not provide the 'file' command needed by
6632 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6633 # unless we find 'file', for example because we are cross-compiling.
6634 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6635 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6636 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6637 lt_cv_file_magic_cmd='func_win32_libid'
6638 else
6639 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6640 lt_cv_file_magic_cmd='$OBJDUMP -f'
6641 fi
6642 ;;
6643
6644cegcc*)
6645 # use the weaker test based on 'objdump'. See mingw*.
6646 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6647 lt_cv_file_magic_cmd='$OBJDUMP -f'
6648 ;;
6649
6650darwin* | rhapsody*)
6651 lt_cv_deplibs_check_method=pass_all
6652 ;;
6653
6654freebsd* | dragonfly*)
6655 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6656 case $host_cpu in
6657 i*86 )
6658 # Not sure whether the presence of OpenBSD here was a mistake.
6659 # Let's accept both of them until this is cleared up.
6660 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6661 lt_cv_file_magic_cmd=/usr/bin/file
6662 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6663 ;;
6664 esac
6665 else
6666 lt_cv_deplibs_check_method=pass_all
6667 fi
6668 ;;
6669
6670gnu*)
6671 lt_cv_deplibs_check_method=pass_all
6672 ;;
6673
6674haiku*)
6675 lt_cv_deplibs_check_method=pass_all
6676 ;;
6677
6678hpux10.20* | hpux11*)
6679 lt_cv_file_magic_cmd=/usr/bin/file
6680 case $host_cpu in
6681 ia64*)
6682 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6683 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6684 ;;
6685 hppa*64*)
6686 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]'
6687 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6688 ;;
6689 *)
6690 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6691 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6692 ;;
6693 esac
6694 ;;
6695
6696interix[3-9]*)
6697 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6699 ;;
6700
6701irix5* | irix6* | nonstopux*)
6702 case $LD in
6703 *-32|*"-32 ") libmagic=32-bit;;
6704 *-n32|*"-n32 ") libmagic=N32;;
6705 *-64|*"-64 ") libmagic=64-bit;;
6706 *) libmagic=never-match;;
6707 esac
6708 lt_cv_deplibs_check_method=pass_all
6709 ;;
6710
6711# This must be Linux ELF.
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +00006712linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +00006713 lt_cv_deplibs_check_method=pass_all
6714 ;;
6715
6716netbsd*)
6717 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6719 else
6720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6721 fi
6722 ;;
6723
6724newos6*)
6725 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6726 lt_cv_file_magic_cmd=/usr/bin/file
6727 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6728 ;;
6729
6730*nto* | *qnx*)
6731 lt_cv_deplibs_check_method=pass_all
6732 ;;
6733
6734openbsd*)
6735 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6737 else
6738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6739 fi
6740 ;;
6741
6742osf3* | osf4* | osf5*)
6743 lt_cv_deplibs_check_method=pass_all
6744 ;;
6745
6746rdos*)
6747 lt_cv_deplibs_check_method=pass_all
6748 ;;
6749
6750solaris*)
6751 lt_cv_deplibs_check_method=pass_all
6752 ;;
6753
6754sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6755 lt_cv_deplibs_check_method=pass_all
6756 ;;
6757
6758sysv4 | sysv4.3*)
6759 case $host_vendor in
6760 motorola)
6761 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]'
6762 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6763 ;;
6764 ncr)
6765 lt_cv_deplibs_check_method=pass_all
6766 ;;
6767 sequent)
6768 lt_cv_file_magic_cmd='/bin/file'
6769 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6770 ;;
6771 sni)
6772 lt_cv_file_magic_cmd='/bin/file'
6773 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6774 lt_cv_file_magic_test_file=/lib/libc.so
6775 ;;
6776 siemens)
6777 lt_cv_deplibs_check_method=pass_all
6778 ;;
6779 pc)
6780 lt_cv_deplibs_check_method=pass_all
6781 ;;
6782 esac
6783 ;;
6784
6785tpf*)
6786 lt_cv_deplibs_check_method=pass_all
6787 ;;
6788esac
6789
6790fi
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6792$as_echo "$lt_cv_deplibs_check_method" >&6; }
6793file_magic_cmd=$lt_cv_file_magic_cmd
6794deplibs_check_method=$lt_cv_deplibs_check_method
6795test -z "$deplibs_check_method" && deplibs_check_method=unknown
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6810set dummy ${ac_tool_prefix}ar; ac_word=$2
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006813if ${ac_cv_prog_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006814 $as_echo_n "(cached) " >&6
6815else
6816 if test -n "$AR"; then
6817 ac_cv_prog_AR="$AR" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006826 ac_cv_prog_AR="${ac_tool_prefix}ar"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830done
6831 done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
6836AR=$ac_cv_prog_AR
6837if test -n "$AR"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6839$as_echo "$AR" >&6; }
6840else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842$as_echo "no" >&6; }
6843fi
6844
6845
6846fi
6847if test -z "$ac_cv_prog_AR"; then
6848 ac_ct_AR=$AR
6849 # Extract the first word of "ar", so it can be a program name with args.
6850set dummy ar; ac_word=$2
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006853if ${ac_cv_prog_ac_ct_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006854 $as_echo_n "(cached) " >&6
6855else
6856 if test -n "$ac_ct_AR"; then
6857 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006866 ac_cv_prog_ac_ct_AR="ar"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871 done
6872IFS=$as_save_IFS
6873
6874fi
6875fi
6876ac_ct_AR=$ac_cv_prog_ac_ct_AR
6877if test -n "$ac_ct_AR"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6879$as_echo "$ac_ct_AR" >&6; }
6880else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882$as_echo "no" >&6; }
6883fi
6884
6885 if test "x$ac_ct_AR" = x; then
6886 AR="false"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889yes:)
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892ac_tool_warned=yes ;;
6893esac
6894 AR=$ac_ct_AR
6895 fi
6896else
6897 AR="$ac_cv_prog_AR"
6898fi
6899
6900test -z "$AR" && AR=ar
6901test -z "$AR_FLAGS" && AR_FLAGS=cru
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913if test -n "$ac_tool_prefix"; then
6914 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6915set dummy ${ac_tool_prefix}strip; ac_word=$2
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006918if ${ac_cv_prog_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006919 $as_echo_n "(cached) " >&6
6920else
6921 if test -n "$STRIP"; then
6922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6923else
6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935done
6936 done
6937IFS=$as_save_IFS
6938
6939fi
6940fi
6941STRIP=$ac_cv_prog_STRIP
6942if test -n "$STRIP"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6944$as_echo "$STRIP" >&6; }
6945else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947$as_echo "no" >&6; }
6948fi
6949
6950
6951fi
6952if test -z "$ac_cv_prog_STRIP"; then
6953 ac_ct_STRIP=$STRIP
6954 # Extract the first word of "strip", so it can be a program name with args.
6955set dummy strip; ac_word=$2
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006958if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006959 $as_echo_n "(cached) " >&6
6960else
6961 if test -n "$ac_ct_STRIP"; then
6962 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6963else
6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006971 ac_cv_prog_ac_ct_STRIP="strip"
6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975done
6976 done
6977IFS=$as_save_IFS
6978
6979fi
6980fi
6981ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6982if test -n "$ac_ct_STRIP"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6984$as_echo "$ac_ct_STRIP" >&6; }
6985else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987$as_echo "no" >&6; }
6988fi
6989
6990 if test "x$ac_ct_STRIP" = x; then
6991 STRIP=":"
6992 else
6993 case $cross_compiling:$ac_tool_warned in
6994yes:)
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997ac_tool_warned=yes ;;
6998esac
6999 STRIP=$ac_ct_STRIP
7000 fi
7001else
7002 STRIP="$ac_cv_prog_STRIP"
7003fi
7004
7005test -z "$STRIP" && STRIP=:
7006
7007
7008
7009
7010
7011
7012if test -n "$ac_tool_prefix"; then
7013 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7014set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007017if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007018 $as_echo_n "(cached) " >&6
7019else
7020 if test -n "$RANLIB"; then
7021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7022else
7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034done
7035 done
7036IFS=$as_save_IFS
7037
7038fi
7039fi
7040RANLIB=$ac_cv_prog_RANLIB
7041if test -n "$RANLIB"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7043$as_echo "$RANLIB" >&6; }
7044else
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046$as_echo "no" >&6; }
7047fi
7048
7049
7050fi
7051if test -z "$ac_cv_prog_RANLIB"; then
7052 ac_ct_RANLIB=$RANLIB
7053 # Extract the first word of "ranlib", so it can be a program name with args.
7054set dummy ranlib; ac_word=$2
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007057if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007058 $as_echo_n "(cached) " >&6
7059else
7060 if test -n "$ac_ct_RANLIB"; then
7061 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7062else
7063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH
7065do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007070 ac_cv_prog_ac_ct_RANLIB="ranlib"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7073 fi
7074done
7075 done
7076IFS=$as_save_IFS
7077
7078fi
7079fi
7080ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7081if test -n "$ac_ct_RANLIB"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7083$as_echo "$ac_ct_RANLIB" >&6; }
7084else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086$as_echo "no" >&6; }
7087fi
7088
7089 if test "x$ac_ct_RANLIB" = x; then
7090 RANLIB=":"
7091 else
7092 case $cross_compiling:$ac_tool_warned in
7093yes:)
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7096ac_tool_warned=yes ;;
7097esac
7098 RANLIB=$ac_ct_RANLIB
7099 fi
7100else
7101 RANLIB="$ac_cv_prog_RANLIB"
7102fi
7103
7104test -z "$RANLIB" && RANLIB=:
7105
7106
7107
7108
7109
7110
7111# Determine commands to create old-style static archives.
7112old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7113old_postinstall_cmds='chmod 644 $oldlib'
7114old_postuninstall_cmds=
7115
7116if test -n "$RANLIB"; then
7117 case $host_os in
7118 openbsd*)
7119 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7120 ;;
7121 *)
7122 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7123 ;;
7124 esac
7125 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7126fi
7127
7128case $host_os in
7129 darwin*)
7130 lock_old_archive_extraction=yes ;;
7131 *)
7132 lock_old_archive_extraction=no ;;
7133esac
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173# If no C compiler was specified, use CC.
7174LTCC=${LTCC-"$CC"}
7175
7176# If no C compiler flags were specified, use CFLAGS.
7177LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7178
7179# Allow CC to be a program name with arguments.
7180compiler=$CC
7181
7182
7183# Check for command to grab the raw symbol name followed by C symbol from nm.
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7185$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007186if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007187 $as_echo_n "(cached) " >&6
7188else
7189
7190# These are sane defaults that work on at least a few old systems.
7191# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7192
7193# Character class describing NM global symbol codes.
7194symcode='[BCDEGRST]'
7195
7196# Regexp to match symbols that can be accessed directly from C.
7197sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7198
7199# Define system-specific variables.
7200case $host_os in
7201aix*)
7202 symcode='[BCDT]'
7203 ;;
7204cygwin* | mingw* | pw32* | cegcc*)
7205 symcode='[ABCDGISTW]'
7206 ;;
7207hpux*)
7208 if test "$host_cpu" = ia64; then
7209 symcode='[ABCDEGRST]'
7210 fi
7211 ;;
7212irix* | nonstopux*)
7213 symcode='[BCDEGRST]'
7214 ;;
7215osf*)
7216 symcode='[BCDEGQRST]'
7217 ;;
7218solaris*)
7219 symcode='[BDRT]'
7220 ;;
7221sco3.2v5*)
7222 symcode='[DT]'
7223 ;;
7224sysv4.2uw2*)
7225 symcode='[DT]'
7226 ;;
7227sysv5* | sco5v6* | unixware* | OpenUNIX*)
7228 symcode='[ABDT]'
7229 ;;
7230sysv4)
7231 symcode='[DFNSTU]'
7232 ;;
7233esac
7234
7235# If we're using GNU nm, then use its standard symbol codes.
7236case `$NM -V 2>&1` in
7237*GNU* | *'with BFD'*)
7238 symcode='[ABCDGIRSTW]' ;;
7239esac
7240
7241# Transform an extracted symbol line into a proper C declaration.
7242# Some systems (esp. on ia64) link data and code symbols differently,
7243# so use this general approach.
7244lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7245
7246# Transform an extracted symbol line into symbol name and symbol address
7247lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7248lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7249
7250# Handle CRLF in mingw tool chain
7251opt_cr=
7252case $build_os in
7253mingw*)
7254 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7255 ;;
7256esac
7257
7258# Try without a prefix underscore, then with it.
7259for ac_symprfx in "" "_"; do
7260
7261 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7262 symxfrm="\\1 $ac_symprfx\\2 \\2"
7263
7264 # Write the raw and C identifiers.
7265 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7266 # Fake it for dumpbin and say T for any non-static function
7267 # and D for any global variable.
7268 # Also find C++ and __fastcall symbols from MSVC++,
7269 # which start with @ or ?.
7270 lt_cv_sys_global_symbol_pipe="$AWK '"\
7271" {last_section=section; section=\$ 3};"\
7272" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7273" \$ 0!~/External *\|/{next};"\
7274" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7275" {if(hide[section]) next};"\
7276" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7277" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7278" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7279" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7280" ' prfx=^$ac_symprfx"
7281 else
7282 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7283 fi
7284
7285 # Check to see that the pipe works correctly.
7286 pipe_works=no
7287
7288 rm -f conftest*
7289 cat > conftest.$ac_ext <<_LT_EOF
7290#ifdef __cplusplus
7291extern "C" {
7292#endif
7293char nm_test_var;
7294void nm_test_func(void);
7295void nm_test_func(void){}
7296#ifdef __cplusplus
7297}
7298#endif
7299int main(){nm_test_var='a';nm_test_func();return(0);}
7300_LT_EOF
7301
7302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7303 (eval $ac_compile) 2>&5
7304 ac_status=$?
7305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7306 test $ac_status = 0; }; then
7307 # Now try to grab the symbols.
7308 nlist=conftest.nm
7309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7310 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7311 ac_status=$?
7312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7313 test $ac_status = 0; } && test -s "$nlist"; then
7314 # Try sorting and uniquifying the output.
7315 if sort "$nlist" | uniq > "$nlist"T; then
7316 mv -f "$nlist"T "$nlist"
7317 else
7318 rm -f "$nlist"T
7319 fi
7320
7321 # Make sure that we snagged all the symbols we need.
7322 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7323 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7324 cat <<_LT_EOF > conftest.$ac_ext
7325#ifdef __cplusplus
7326extern "C" {
7327#endif
7328
7329_LT_EOF
7330 # Now generate the symbol file.
7331 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7332
7333 cat <<_LT_EOF >> conftest.$ac_ext
7334
7335/* The mapping between symbol names and symbols. */
7336const struct {
7337 const char *name;
7338 void *address;
7339}
7340lt__PROGRAM__LTX_preloaded_symbols[] =
7341{
7342 { "@PROGRAM@", (void *) 0 },
7343_LT_EOF
7344 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7345 cat <<\_LT_EOF >> conftest.$ac_ext
7346 {0, (void *) 0}
7347};
7348
7349/* This works around a problem in FreeBSD linker */
7350#ifdef FREEBSD_WORKAROUND
7351static const void *lt_preloaded_setup() {
7352 return lt__PROGRAM__LTX_preloaded_symbols;
7353}
7354#endif
7355
7356#ifdef __cplusplus
7357}
7358#endif
7359_LT_EOF
7360 # Now try linking the two files.
7361 mv conftest.$ac_objext conftstm.$ac_objext
7362 lt_save_LIBS="$LIBS"
7363 lt_save_CFLAGS="$CFLAGS"
7364 LIBS="conftstm.$ac_objext"
7365 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7367 (eval $ac_link) 2>&5
7368 ac_status=$?
7369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7370 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7371 pipe_works=yes
7372 fi
7373 LIBS="$lt_save_LIBS"
7374 CFLAGS="$lt_save_CFLAGS"
7375 else
7376 echo "cannot find nm_test_func in $nlist" >&5
7377 fi
7378 else
7379 echo "cannot find nm_test_var in $nlist" >&5
7380 fi
7381 else
7382 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7383 fi
7384 else
7385 echo "$progname: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7387 fi
7388 rm -rf conftest* conftst*
7389
7390 # Do not use the global_symbol_pipe unless it works.
7391 if test "$pipe_works" = yes; then
7392 break
7393 else
7394 lt_cv_sys_global_symbol_pipe=
7395 fi
7396done
7397
7398fi
7399
7400if test -z "$lt_cv_sys_global_symbol_pipe"; then
7401 lt_cv_sys_global_symbol_to_cdecl=
7402fi
7403if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7405$as_echo "failed" >&6; }
7406else
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7408$as_echo "ok" >&6; }
7409fi
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
Iain Buclawb4c522f2018-10-28 19:51:47 +00007432# Check whether --enable-libtool-lock was given.
7433if test "${enable_libtool_lock+set}" = set; then :
7434 enableval=$enable_libtool_lock;
7435fi
7436
7437test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7438
7439# Some flags need to be propagated to the compiler or linker for good
7440# libtool support.
7441case $host in
7442ia64-*-hpux*)
7443 # Find out which ABI we are using.
7444 echo 'int i;' > conftest.$ac_ext
7445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7446 (eval $ac_compile) 2>&5
7447 ac_status=$?
7448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449 test $ac_status = 0; }; then
7450 case `/usr/bin/file conftest.$ac_objext` in
7451 *ELF-32*)
7452 HPUX_IA64_MODE="32"
7453 ;;
7454 *ELF-64*)
7455 HPUX_IA64_MODE="64"
7456 ;;
7457 esac
7458 fi
7459 rm -rf conftest*
7460 ;;
7461*-*-irix6*)
7462 # Find out which ABI we are using.
7463 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7465 (eval $ac_compile) 2>&5
7466 ac_status=$?
7467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7468 test $ac_status = 0; }; then
7469 if test "$lt_cv_prog_gnu_ld" = yes; then
7470 case `/usr/bin/file conftest.$ac_objext` in
7471 *32-bit*)
7472 LD="${LD-ld} -melf32bsmip"
7473 ;;
7474 *N32*)
7475 LD="${LD-ld} -melf32bmipn32"
7476 ;;
7477 *64-bit*)
7478 LD="${LD-ld} -melf64bmip"
7479 ;;
7480 esac
7481 else
7482 case `/usr/bin/file conftest.$ac_objext` in
7483 *32-bit*)
7484 LD="${LD-ld} -32"
7485 ;;
7486 *N32*)
7487 LD="${LD-ld} -n32"
7488 ;;
7489 *64-bit*)
7490 LD="${LD-ld} -64"
7491 ;;
7492 esac
7493 fi
7494 fi
7495 rm -rf conftest*
7496 ;;
7497
7498x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7499s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7500 # Find out which ABI we are using.
7501 echo 'int i;' > conftest.$ac_ext
7502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7503 (eval $ac_compile) 2>&5
7504 ac_status=$?
7505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7506 test $ac_status = 0; }; then
7507 case `/usr/bin/file conftest.o` in
7508 *32-bit*)
7509 case $host in
7510 x86_64-*kfreebsd*-gnu)
7511 LD="${LD-ld} -m elf_i386_fbsd"
7512 ;;
7513 x86_64-*linux*)
7514 case `/usr/bin/file conftest.o` in
7515 *x86-64*)
7516 LD="${LD-ld} -m elf32_x86_64"
7517 ;;
7518 *)
7519 LD="${LD-ld} -m elf_i386"
7520 ;;
7521 esac
7522 ;;
7523 powerpc64le-*linux*)
7524 LD="${LD-ld} -m elf32lppclinux"
7525 ;;
7526 powerpc64-*linux*)
7527 LD="${LD-ld} -m elf32ppclinux"
7528 ;;
7529 s390x-*linux*)
7530 LD="${LD-ld} -m elf_s390"
7531 ;;
7532 sparc64-*linux*)
7533 LD="${LD-ld} -m elf32_sparc"
7534 ;;
7535 esac
7536 ;;
7537 *64-bit*)
7538 case $host in
7539 x86_64-*kfreebsd*-gnu)
7540 LD="${LD-ld} -m elf_x86_64_fbsd"
7541 ;;
7542 x86_64-*linux*)
7543 LD="${LD-ld} -m elf_x86_64"
7544 ;;
7545 powerpcle-*linux*)
7546 LD="${LD-ld} -m elf64lppc"
7547 ;;
7548 powerpc-*linux*)
7549 LD="${LD-ld} -m elf64ppc"
7550 ;;
7551 s390*-*linux*|s390*-*tpf*)
7552 LD="${LD-ld} -m elf64_s390"
7553 ;;
7554 sparc*-*linux*)
7555 LD="${LD-ld} -m elf64_sparc"
7556 ;;
7557 esac
7558 ;;
7559 esac
7560 fi
7561 rm -rf conftest*
7562 ;;
7563
7564*-*-sco3.2v5*)
7565 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7566 SAVE_CFLAGS="$CFLAGS"
7567 CFLAGS="$CFLAGS -belf"
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7569$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007570if ${lt_cv_cc_needs_belf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007571 $as_echo_n "(cached) " >&6
7572else
7573 ac_ext=c
7574ac_cpp='$CPP $CPPFLAGS'
7575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7577ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580/* end confdefs.h. */
7581
7582int
7583main ()
7584{
7585
7586 ;
7587 return 0;
7588}
7589_ACEOF
7590if ac_fn_c_try_link "$LINENO"; then :
7591 lt_cv_cc_needs_belf=yes
7592else
7593 lt_cv_cc_needs_belf=no
7594fi
7595rm -f core conftest.err conftest.$ac_objext \
7596 conftest$ac_exeext conftest.$ac_ext
7597 ac_ext=c
7598ac_cpp='$CPP $CPPFLAGS'
7599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601ac_compiler_gnu=$ac_cv_c_compiler_gnu
7602
7603fi
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7605$as_echo "$lt_cv_cc_needs_belf" >&6; }
7606 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7607 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7608 CFLAGS="$SAVE_CFLAGS"
7609 fi
7610 ;;
7611sparc*-*solaris*)
7612 # Find out which ABI we are using.
7613 echo 'int i;' > conftest.$ac_ext
7614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7615 (eval $ac_compile) 2>&5
7616 ac_status=$?
7617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7618 test $ac_status = 0; }; then
7619 case `/usr/bin/file conftest.o` in
7620 *64-bit*)
7621 case $lt_cv_prog_gnu_ld in
7622 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7623 *)
7624 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7625 LD="${LD-ld} -64"
7626 fi
7627 ;;
7628 esac
7629 ;;
7630 esac
7631 fi
7632 rm -rf conftest*
7633 ;;
7634esac
7635
7636need_locks="$enable_libtool_lock"
7637
7638
7639 case $host_os in
7640 rhapsody* | darwin*)
7641 if test -n "$ac_tool_prefix"; then
7642 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7643set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007646if ${ac_cv_prog_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007647 $as_echo_n "(cached) " >&6
7648else
7649 if test -n "$DSYMUTIL"; then
7650 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7651else
7652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653for as_dir in $PATH
7654do
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007659 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7662 fi
7663done
7664 done
7665IFS=$as_save_IFS
7666
7667fi
7668fi
7669DSYMUTIL=$ac_cv_prog_DSYMUTIL
7670if test -n "$DSYMUTIL"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7672$as_echo "$DSYMUTIL" >&6; }
7673else
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675$as_echo "no" >&6; }
7676fi
7677
7678
7679fi
7680if test -z "$ac_cv_prog_DSYMUTIL"; then
7681 ac_ct_DSYMUTIL=$DSYMUTIL
7682 # Extract the first word of "dsymutil", so it can be a program name with args.
7683set dummy dsymutil; ac_word=$2
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007686if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007687 $as_echo_n "(cached) " >&6
7688else
7689 if test -n "$ac_ct_DSYMUTIL"; then
7690 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7691else
7692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693for as_dir in $PATH
7694do
7695 IFS=$as_save_IFS
7696 test -z "$as_dir" && as_dir=.
7697 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007699 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 break 2
7702 fi
7703done
7704 done
7705IFS=$as_save_IFS
7706
7707fi
7708fi
7709ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7710if test -n "$ac_ct_DSYMUTIL"; then
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7712$as_echo "$ac_ct_DSYMUTIL" >&6; }
7713else
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715$as_echo "no" >&6; }
7716fi
7717
7718 if test "x$ac_ct_DSYMUTIL" = x; then
7719 DSYMUTIL=":"
7720 else
7721 case $cross_compiling:$ac_tool_warned in
7722yes:)
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7725ac_tool_warned=yes ;;
7726esac
7727 DSYMUTIL=$ac_ct_DSYMUTIL
7728 fi
7729else
7730 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7731fi
7732
7733 if test -n "$ac_tool_prefix"; then
7734 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7735set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007738if ${ac_cv_prog_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007739 $as_echo_n "(cached) " >&6
7740else
7741 if test -n "$NMEDIT"; then
7742 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7743else
7744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007751 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7754 fi
7755done
7756 done
7757IFS=$as_save_IFS
7758
7759fi
7760fi
7761NMEDIT=$ac_cv_prog_NMEDIT
7762if test -n "$NMEDIT"; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7764$as_echo "$NMEDIT" >&6; }
7765else
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767$as_echo "no" >&6; }
7768fi
7769
7770
7771fi
7772if test -z "$ac_cv_prog_NMEDIT"; then
7773 ac_ct_NMEDIT=$NMEDIT
7774 # Extract the first word of "nmedit", so it can be a program name with args.
7775set dummy nmedit; ac_word=$2
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007778if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007779 $as_echo_n "(cached) " >&6
7780else
7781 if test -n "$ac_ct_NMEDIT"; then
7782 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7783else
7784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007791 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7794 fi
7795done
7796 done
7797IFS=$as_save_IFS
7798
7799fi
7800fi
7801ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7802if test -n "$ac_ct_NMEDIT"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7804$as_echo "$ac_ct_NMEDIT" >&6; }
7805else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807$as_echo "no" >&6; }
7808fi
7809
7810 if test "x$ac_ct_NMEDIT" = x; then
7811 NMEDIT=":"
7812 else
7813 case $cross_compiling:$ac_tool_warned in
7814yes:)
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7817ac_tool_warned=yes ;;
7818esac
7819 NMEDIT=$ac_ct_NMEDIT
7820 fi
7821else
7822 NMEDIT="$ac_cv_prog_NMEDIT"
7823fi
7824
7825 if test -n "$ac_tool_prefix"; then
7826 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7827set dummy ${ac_tool_prefix}lipo; ac_word=$2
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007830if ${ac_cv_prog_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007831 $as_echo_n "(cached) " >&6
7832else
7833 if test -n "$LIPO"; then
7834 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7835else
7836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837for as_dir in $PATH
7838do
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007843 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7846 fi
7847done
7848 done
7849IFS=$as_save_IFS
7850
7851fi
7852fi
7853LIPO=$ac_cv_prog_LIPO
7854if test -n "$LIPO"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7856$as_echo "$LIPO" >&6; }
7857else
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859$as_echo "no" >&6; }
7860fi
7861
7862
7863fi
7864if test -z "$ac_cv_prog_LIPO"; then
7865 ac_ct_LIPO=$LIPO
7866 # Extract the first word of "lipo", so it can be a program name with args.
7867set dummy lipo; ac_word=$2
7868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007870if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007871 $as_echo_n "(cached) " >&6
7872else
7873 if test -n "$ac_ct_LIPO"; then
7874 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7875else
7876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877for as_dir in $PATH
7878do
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007883 ac_cv_prog_ac_ct_LIPO="lipo"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 break 2
7886 fi
7887done
7888 done
7889IFS=$as_save_IFS
7890
7891fi
7892fi
7893ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7894if test -n "$ac_ct_LIPO"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7896$as_echo "$ac_ct_LIPO" >&6; }
7897else
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899$as_echo "no" >&6; }
7900fi
7901
7902 if test "x$ac_ct_LIPO" = x; then
7903 LIPO=":"
7904 else
7905 case $cross_compiling:$ac_tool_warned in
7906yes:)
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7909ac_tool_warned=yes ;;
7910esac
7911 LIPO=$ac_ct_LIPO
7912 fi
7913else
7914 LIPO="$ac_cv_prog_LIPO"
7915fi
7916
7917 if test -n "$ac_tool_prefix"; then
7918 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7919set dummy ${ac_tool_prefix}otool; ac_word=$2
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007922if ${ac_cv_prog_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007923 $as_echo_n "(cached) " >&6
7924else
7925 if test -n "$OTOOL"; then
7926 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7927else
7928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929for as_dir in $PATH
7930do
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007935 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 break 2
7938 fi
7939done
7940 done
7941IFS=$as_save_IFS
7942
7943fi
7944fi
7945OTOOL=$ac_cv_prog_OTOOL
7946if test -n "$OTOOL"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7948$as_echo "$OTOOL" >&6; }
7949else
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951$as_echo "no" >&6; }
7952fi
7953
7954
7955fi
7956if test -z "$ac_cv_prog_OTOOL"; then
7957 ac_ct_OTOOL=$OTOOL
7958 # Extract the first word of "otool", so it can be a program name with args.
7959set dummy otool; ac_word=$2
7960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007962if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007963 $as_echo_n "(cached) " >&6
7964else
7965 if test -n "$ac_ct_OTOOL"; then
7966 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7967else
7968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969for as_dir in $PATH
7970do
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007975 ac_cv_prog_ac_ct_OTOOL="otool"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979done
7980 done
7981IFS=$as_save_IFS
7982
7983fi
7984fi
7985ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7986if test -n "$ac_ct_OTOOL"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7988$as_echo "$ac_ct_OTOOL" >&6; }
7989else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991$as_echo "no" >&6; }
7992fi
7993
7994 if test "x$ac_ct_OTOOL" = x; then
7995 OTOOL=":"
7996 else
7997 case $cross_compiling:$ac_tool_warned in
7998yes:)
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8001ac_tool_warned=yes ;;
8002esac
8003 OTOOL=$ac_ct_OTOOL
8004 fi
8005else
8006 OTOOL="$ac_cv_prog_OTOOL"
8007fi
8008
8009 if test -n "$ac_tool_prefix"; then
8010 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8011set dummy ${ac_tool_prefix}otool64; ac_word=$2
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008014if ${ac_cv_prog_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008015 $as_echo_n "(cached) " >&6
8016else
8017 if test -n "$OTOOL64"; then
8018 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8019else
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00008026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00008027 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031done
8032 done
8033IFS=$as_save_IFS
8034
8035fi
8036fi
8037OTOOL64=$ac_cv_prog_OTOOL64
8038if test -n "$OTOOL64"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8040$as_echo "$OTOOL64" >&6; }
8041else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043$as_echo "no" >&6; }
8044fi
8045
8046
8047fi
8048if test -z "$ac_cv_prog_OTOOL64"; then
8049 ac_ct_OTOOL64=$OTOOL64
8050 # Extract the first word of "otool64", so it can be a program name with args.
8051set dummy otool64; ac_word=$2
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008054if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008055 $as_echo_n "(cached) " >&6
8056else
8057 if test -n "$ac_ct_OTOOL64"; then
8058 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8059else
8060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061for as_dir in $PATH
8062do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00008066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00008067 ac_cv_prog_ac_ct_OTOOL64="otool64"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8070 fi
8071done
8072 done
8073IFS=$as_save_IFS
8074
8075fi
8076fi
8077ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8078if test -n "$ac_ct_OTOOL64"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8080$as_echo "$ac_ct_OTOOL64" >&6; }
8081else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083$as_echo "no" >&6; }
8084fi
8085
8086 if test "x$ac_ct_OTOOL64" = x; then
8087 OTOOL64=":"
8088 else
8089 case $cross_compiling:$ac_tool_warned in
8090yes:)
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8093ac_tool_warned=yes ;;
8094esac
8095 OTOOL64=$ac_ct_OTOOL64
8096 fi
8097else
8098 OTOOL64="$ac_cv_prog_OTOOL64"
8099fi
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8128$as_echo_n "checking for -single_module linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008129if ${lt_cv_apple_cc_single_mod+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008130 $as_echo_n "(cached) " >&6
8131else
8132 lt_cv_apple_cc_single_mod=no
8133 if test -z "${LT_MULTI_MODULE}"; then
8134 # By default we will add the -single_module flag. You can override
8135 # by either setting the environment variable LT_MULTI_MODULE
8136 # non-empty at configure time, or by adding -multi_module to the
8137 # link flags.
8138 rm -rf libconftest.dylib*
8139 echo "int foo(void){return 1;}" > conftest.c
8140 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8141-dynamiclib -Wl,-single_module conftest.c" >&5
8142 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8143 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8144 _lt_result=$?
8145 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8146 lt_cv_apple_cc_single_mod=yes
8147 else
8148 cat conftest.err >&5
8149 fi
8150 rm -rf libconftest.dylib*
8151 rm -f conftest.*
8152 fi
8153fi
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8155$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8157$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008158if ${lt_cv_ld_exported_symbols_list+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008159 $as_echo_n "(cached) " >&6
8160else
8161 lt_cv_ld_exported_symbols_list=no
8162 save_LDFLAGS=$LDFLAGS
8163 echo "_main" > conftest.sym
8164 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166/* end confdefs.h. */
8167
8168int
8169main ()
8170{
8171
8172 ;
8173 return 0;
8174}
8175_ACEOF
8176if ac_fn_c_try_link "$LINENO"; then :
8177 lt_cv_ld_exported_symbols_list=yes
8178else
8179 lt_cv_ld_exported_symbols_list=no
8180fi
8181rm -f core conftest.err conftest.$ac_objext \
8182 conftest$ac_exeext conftest.$ac_ext
8183 LDFLAGS="$save_LDFLAGS"
8184
8185fi
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8187$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8189$as_echo_n "checking for -force_load linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008190if ${lt_cv_ld_force_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008191 $as_echo_n "(cached) " >&6
8192else
8193 lt_cv_ld_force_load=no
8194 cat > conftest.c << _LT_EOF
8195int forced_loaded() { return 2;}
8196_LT_EOF
8197 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8198 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8199 echo "$AR cru libconftest.a conftest.o" >&5
8200 $AR cru libconftest.a conftest.o 2>&5
8201 cat > conftest.c << _LT_EOF
8202int main() { return 0;}
8203_LT_EOF
8204 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8205 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8206 _lt_result=$?
8207 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8208 lt_cv_ld_force_load=yes
8209 else
8210 cat conftest.err >&5
8211 fi
8212 rm -f conftest.err libconftest.a conftest conftest.c
8213 rm -rf conftest.dSYM
8214
8215fi
8216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8217$as_echo "$lt_cv_ld_force_load" >&6; }
8218 case $host_os in
8219 rhapsody* | darwin1.[012])
8220 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8221 darwin1.*)
8222 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8223 darwin*) # darwin 5.x on
8224 # if running on 10.5 or later, the deployment target defaults
8225 # to the OS version, if on x86, and 10.4, the deployment
8226 # target defaults to 10.4. Don't you love it?
8227 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8228 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8229 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8230 10.[012][,.]*)
8231 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8232 10.*)
8233 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8234 esac
8235 ;;
8236 esac
8237 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8238 _lt_dar_single_mod='$single_module'
8239 fi
8240 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8241 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8242 else
8243 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8244 fi
8245 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8246 _lt_dsymutil='~$DSYMUTIL $lib || :'
8247 else
8248 _lt_dsymutil=
8249 fi
8250 ;;
8251 esac
8252
Iain Buclawb4c522f2018-10-28 19:51:47 +00008253for ac_header in dlfcn.h
8254do :
8255 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8256"
Joseph Myers22e05272018-10-31 17:03:16 +00008257if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008258 cat >>confdefs.h <<_ACEOF
8259#define HAVE_DLFCN_H 1
8260_ACEOF
8261
8262fi
8263
8264done
8265
8266
8267
8268
8269
8270# Set options
8271enable_dlopen=yes
8272
8273
8274
8275
8276 enable_win32_dll=no
8277
8278
8279 # Check whether --enable-shared was given.
8280if test "${enable_shared+set}" = set; then :
8281 enableval=$enable_shared; p=${PACKAGE-default}
8282 case $enableval in
8283 yes) enable_shared=yes ;;
8284 no) enable_shared=no ;;
8285 *)
8286 enable_shared=no
8287 # Look at the argument we got. We use all the common list separators.
8288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8289 for pkg in $enableval; do
8290 IFS="$lt_save_ifs"
8291 if test "X$pkg" = "X$p"; then
8292 enable_shared=yes
8293 fi
8294 done
8295 IFS="$lt_save_ifs"
8296 ;;
8297 esac
8298else
8299 enable_shared=yes
8300fi
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310 # Check whether --enable-static was given.
8311if test "${enable_static+set}" = set; then :
8312 enableval=$enable_static; p=${PACKAGE-default}
8313 case $enableval in
8314 yes) enable_static=yes ;;
8315 no) enable_static=no ;;
8316 *)
8317 enable_static=no
8318 # Look at the argument we got. We use all the common list separators.
8319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8320 for pkg in $enableval; do
8321 IFS="$lt_save_ifs"
8322 if test "X$pkg" = "X$p"; then
8323 enable_static=yes
8324 fi
8325 done
8326 IFS="$lt_save_ifs"
8327 ;;
8328 esac
8329else
8330 enable_static=yes
8331fi
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342# Check whether --with-pic was given.
8343if test "${with_pic+set}" = set; then :
8344 withval=$with_pic; pic_mode="$withval"
8345else
8346 pic_mode=default
8347fi
8348
8349
8350test -z "$pic_mode" && pic_mode=default
8351
8352
8353
8354
8355
8356
8357
8358 # Check whether --enable-fast-install was given.
8359if test "${enable_fast_install+set}" = set; then :
8360 enableval=$enable_fast_install; p=${PACKAGE-default}
8361 case $enableval in
8362 yes) enable_fast_install=yes ;;
8363 no) enable_fast_install=no ;;
8364 *)
8365 enable_fast_install=no
8366 # Look at the argument we got. We use all the common list separators.
8367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8368 for pkg in $enableval; do
8369 IFS="$lt_save_ifs"
8370 if test "X$pkg" = "X$p"; then
8371 enable_fast_install=yes
8372 fi
8373 done
8374 IFS="$lt_save_ifs"
8375 ;;
8376 esac
8377else
8378 enable_fast_install=yes
8379fi
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391# This can be used to rebuild libtool when needed
8392LIBTOOL_DEPS="$ltmain"
8393
8394# Always use our own libtool.
8395LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422test -z "$LN_S" && LN_S="ln -s"
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437if test -n "${ZSH_VERSION+set}" ; then
8438 setopt NO_GLOB_SUBST
8439fi
8440
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8442$as_echo_n "checking for objdir... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008443if ${lt_cv_objdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008444 $as_echo_n "(cached) " >&6
8445else
8446 rm -f .libs 2>/dev/null
8447mkdir .libs 2>/dev/null
8448if test -d .libs; then
8449 lt_cv_objdir=.libs
8450else
8451 # MS-DOS does not allow filenames that begin with a dot.
8452 lt_cv_objdir=_libs
8453fi
8454rmdir .libs 2>/dev/null
8455fi
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8457$as_echo "$lt_cv_objdir" >&6; }
8458objdir=$lt_cv_objdir
8459
8460
8461
8462
8463
8464cat >>confdefs.h <<_ACEOF
8465#define LT_OBJDIR "$lt_cv_objdir/"
8466_ACEOF
8467
8468
8469
8470
8471case $host_os in
8472aix3*)
8473 # AIX sometimes has problems with the GCC collect2 program. For some
8474 # reason, if we set the COLLECT_NAMES environment variable, the problems
8475 # vanish in a puff of smoke.
8476 if test "X${COLLECT_NAMES+set}" != Xset; then
8477 COLLECT_NAMES=
8478 export COLLECT_NAMES
8479 fi
8480 ;;
8481esac
8482
8483# Global variables:
8484ofile=libtool
8485can_build_shared=yes
8486
8487# All known linkers require a `.a' archive for static linking (except MSVC,
8488# which needs '.lib').
8489libext=a
8490
8491with_gnu_ld="$lt_cv_prog_gnu_ld"
8492
8493old_CC="$CC"
8494old_CFLAGS="$CFLAGS"
8495
8496# Set sane defaults for various variables
8497test -z "$CC" && CC=cc
8498test -z "$LTCC" && LTCC=$CC
8499test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8500test -z "$LD" && LD=ld
8501test -z "$ac_objext" && ac_objext=o
8502
8503for cc_temp in $compiler""; do
8504 case $cc_temp in
8505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8507 \-*) ;;
8508 *) break;;
8509 esac
8510done
8511cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8512
8513
8514# Only perform the check for file, if the check method requires it
8515test -z "$MAGIC_CMD" && MAGIC_CMD=file
8516case $deplibs_check_method in
8517file_magic*)
8518 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8520$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008521if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008522 $as_echo_n "(cached) " >&6
8523else
8524 case $MAGIC_CMD in
8525[\\/*] | ?:[\\/]*)
8526 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8527 ;;
8528*)
8529 lt_save_MAGIC_CMD="$MAGIC_CMD"
8530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8531 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8532 for ac_dir in $ac_dummy; do
8533 IFS="$lt_save_ifs"
8534 test -z "$ac_dir" && ac_dir=.
8535 if test -f $ac_dir/${ac_tool_prefix}file; then
8536 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8537 if test -n "$file_magic_test_file"; then
8538 case $deplibs_check_method in
8539 "file_magic "*)
8540 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8541 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8542 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8543 $EGREP "$file_magic_regex" > /dev/null; then
8544 :
8545 else
8546 cat <<_LT_EOF 1>&2
8547
8548*** Warning: the command libtool uses to detect shared libraries,
8549*** $file_magic_cmd, produces output that libtool cannot recognize.
8550*** The result is that libtool may fail to recognize shared libraries
8551*** as such. This will affect the creation of libtool libraries that
8552*** depend on shared libraries, but programs linked with such libtool
8553*** libraries will work regardless of this problem. Nevertheless, you
8554*** may want to report the problem to your system manager and/or to
8555*** bug-libtool@gnu.org
8556
8557_LT_EOF
8558 fi ;;
8559 esac
8560 fi
8561 break
8562 fi
8563 done
8564 IFS="$lt_save_ifs"
8565 MAGIC_CMD="$lt_save_MAGIC_CMD"
8566 ;;
8567esac
8568fi
8569
8570MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8571if test -n "$MAGIC_CMD"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8573$as_echo "$MAGIC_CMD" >&6; }
8574else
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576$as_echo "no" >&6; }
8577fi
8578
8579
8580
8581
8582
8583if test -z "$lt_cv_path_MAGIC_CMD"; then
8584 if test -n "$ac_tool_prefix"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8586$as_echo_n "checking for file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008587if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008588 $as_echo_n "(cached) " >&6
8589else
8590 case $MAGIC_CMD in
8591[\\/*] | ?:[\\/]*)
8592 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8593 ;;
8594*)
8595 lt_save_MAGIC_CMD="$MAGIC_CMD"
8596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8597 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8598 for ac_dir in $ac_dummy; do
8599 IFS="$lt_save_ifs"
8600 test -z "$ac_dir" && ac_dir=.
8601 if test -f $ac_dir/file; then
8602 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8603 if test -n "$file_magic_test_file"; then
8604 case $deplibs_check_method in
8605 "file_magic "*)
8606 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8608 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8609 $EGREP "$file_magic_regex" > /dev/null; then
8610 :
8611 else
8612 cat <<_LT_EOF 1>&2
8613
8614*** Warning: the command libtool uses to detect shared libraries,
8615*** $file_magic_cmd, produces output that libtool cannot recognize.
8616*** The result is that libtool may fail to recognize shared libraries
8617*** as such. This will affect the creation of libtool libraries that
8618*** depend on shared libraries, but programs linked with such libtool
8619*** libraries will work regardless of this problem. Nevertheless, you
8620*** may want to report the problem to your system manager and/or to
8621*** bug-libtool@gnu.org
8622
8623_LT_EOF
8624 fi ;;
8625 esac
8626 fi
8627 break
8628 fi
8629 done
8630 IFS="$lt_save_ifs"
8631 MAGIC_CMD="$lt_save_MAGIC_CMD"
8632 ;;
8633esac
8634fi
8635
8636MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8637if test -n "$MAGIC_CMD"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8639$as_echo "$MAGIC_CMD" >&6; }
8640else
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642$as_echo "no" >&6; }
8643fi
8644
8645
8646 else
8647 MAGIC_CMD=:
8648 fi
8649fi
8650
8651 fi
8652 ;;
8653esac
8654
8655# Use C for the default configuration in the libtool script
8656
8657lt_save_CC="$CC"
8658ac_ext=c
8659ac_cpp='$CPP $CPPFLAGS'
8660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8662ac_compiler_gnu=$ac_cv_c_compiler_gnu
8663
8664
8665# Source file extension for C test sources.
8666ac_ext=c
8667
8668# Object file extension for compiled C test sources.
8669objext=o
8670objext=$objext
8671
8672# Code to be used in simple compile tests
8673lt_simple_compile_test_code="int some_variable = 0;"
8674
8675# Code to be used in simple link tests
8676lt_simple_link_test_code='int main(){return(0);}'
8677
8678
8679
8680
8681
8682
8683
8684# If no C compiler was specified, use CC.
8685LTCC=${LTCC-"$CC"}
8686
8687# If no C compiler flags were specified, use CFLAGS.
8688LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8689
8690# Allow CC to be a program name with arguments.
8691compiler=$CC
8692
8693# Save the default compiler, since it gets overwritten when the other
8694# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8695compiler_DEFAULT=$CC
8696
8697# save warnings/boilerplate of simple test code
8698ac_outfile=conftest.$ac_objext
8699echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8700eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8701_lt_compiler_boilerplate=`cat conftest.err`
8702$RM conftest*
8703
8704ac_outfile=conftest.$ac_objext
8705echo "$lt_simple_link_test_code" >conftest.$ac_ext
8706eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8707_lt_linker_boilerplate=`cat conftest.err`
8708$RM -r conftest*
8709
8710
8711## CAVEAT EMPTOR:
8712## There is no encapsulation within the following macros, do not change
8713## the running order or otherwise move them around unless you know exactly
8714## what you are doing...
8715if test -n "$compiler"; then
8716
8717lt_prog_compiler_no_builtin_flag=
8718
8719if test "$GCC" = yes; then
8720 case $cc_basename in
8721 nvcc*)
8722 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8723 *)
8724 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8725 esac
8726
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8728$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008729if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008730 $as_echo_n "(cached) " >&6
8731else
8732 lt_cv_prog_compiler_rtti_exceptions=no
8733 ac_outfile=conftest.$ac_objext
8734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8735 lt_compiler_flag="-fno-rtti -fno-exceptions"
8736 # Insert the option either (1) after the last *FLAGS variable, or
8737 # (2) before a word containing "conftest.", or (3) at the end.
8738 # Note that $ac_compile itself does not contain backslashes and begins
8739 # with a dollar sign (not a hyphen), so the echo should work correctly.
8740 # The option is referenced via a variable to avoid confusing sed.
8741 lt_compile=`echo "$ac_compile" | $SED \
8742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8744 -e 's:$: $lt_compiler_flag:'`
8745 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8746 (eval "$lt_compile" 2>conftest.err)
8747 ac_status=$?
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 if (exit $ac_status) && test -s "$ac_outfile"; then
8751 # The compiler can only warn and ignore the option if not recognized
8752 # So say no if there are warnings other than the usual output.
8753 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8755 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8756 lt_cv_prog_compiler_rtti_exceptions=yes
8757 fi
8758 fi
8759 $RM conftest*
8760
8761fi
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8763$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8764
8765if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8766 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8767else
8768 :
8769fi
8770
8771fi
8772
8773
8774
8775
8776
8777
8778 lt_prog_compiler_wl=
8779lt_prog_compiler_pic=
8780lt_prog_compiler_static=
8781
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8783$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8784
8785 if test "$GCC" = yes; then
8786 lt_prog_compiler_wl='-Wl,'
8787 lt_prog_compiler_static='-static'
8788
8789 case $host_os in
8790 aix*)
8791 # All AIX code is PIC.
8792 if test "$host_cpu" = ia64; then
8793 # AIX 5 now supports IA64 processor
8794 lt_prog_compiler_static='-Bstatic'
8795 fi
8796 lt_prog_compiler_pic='-fPIC'
8797 ;;
8798
8799 amigaos*)
8800 case $host_cpu in
8801 powerpc)
8802 # see comment about AmigaOS4 .so support
8803 lt_prog_compiler_pic='-fPIC'
8804 ;;
8805 m68k)
8806 # FIXME: we need at least 68020 code to build shared libraries, but
8807 # adding the `-m68020' flag to GCC prevents building anything better,
8808 # like `-m68040'.
8809 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8810 ;;
8811 esac
8812 ;;
8813
8814 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8815 # PIC is the default for these OSes.
8816 ;;
8817
8818 mingw* | cygwin* | pw32* | os2* | cegcc*)
8819 # This hack is so that the source file can tell whether it is being
8820 # built for inclusion in a dll (and should export symbols for example).
8821 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8822 # (--disable-auto-import) libraries
8823 lt_prog_compiler_pic='-DDLL_EXPORT'
8824 ;;
8825
8826 darwin* | rhapsody*)
8827 # PIC is the default on this platform
8828 # Common symbols not allowed in MH_DYLIB files
8829 lt_prog_compiler_pic='-fno-common'
8830 ;;
8831
8832 haiku*)
8833 # PIC is the default for Haiku.
8834 # The "-static" flag exists, but is broken.
8835 lt_prog_compiler_static=
8836 ;;
8837
8838 hpux*)
8839 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8840 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8841 # sets the default TLS model and affects inlining.
8842 case $host_cpu in
8843 hppa*64*)
8844 # +Z the default
8845 ;;
8846 *)
8847 lt_prog_compiler_pic='-fPIC'
8848 ;;
8849 esac
8850 ;;
8851
8852 interix[3-9]*)
8853 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8854 # Instead, we relocate shared libraries at runtime.
8855 ;;
8856
8857 msdosdjgpp*)
8858 # Just because we use GCC doesn't mean we suddenly get shared libraries
8859 # on systems that don't support them.
8860 lt_prog_compiler_can_build_shared=no
8861 enable_shared=no
8862 ;;
8863
8864 *nto* | *qnx*)
8865 # QNX uses GNU C++, but need to define -shared option too, otherwise
8866 # it will coredump.
8867 lt_prog_compiler_pic='-fPIC -shared'
8868 ;;
8869
8870 sysv4*MP*)
8871 if test -d /usr/nec; then
8872 lt_prog_compiler_pic=-Kconform_pic
8873 fi
8874 ;;
8875
8876 *)
8877 lt_prog_compiler_pic='-fPIC'
8878 ;;
8879 esac
8880
8881 case $cc_basename in
8882 nvcc*) # Cuda Compiler Driver 2.2
8883 lt_prog_compiler_wl='-Xlinker '
8884 lt_prog_compiler_pic='-Xcompiler -fPIC'
8885 ;;
8886 esac
8887 else
8888 # PORTME Check for flag to pass linker flags through the system compiler.
8889 case $host_os in
8890 aix*)
8891 lt_prog_compiler_wl='-Wl,'
8892 if test "$host_cpu" = ia64; then
8893 # AIX 5 now supports IA64 processor
8894 lt_prog_compiler_static='-Bstatic'
8895 else
8896 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8897 fi
8898 ;;
8899
8900 mingw* | cygwin* | pw32* | os2* | cegcc*)
8901 # This hack is so that the source file can tell whether it is being
8902 # built for inclusion in a dll (and should export symbols for example).
8903 lt_prog_compiler_pic='-DDLL_EXPORT'
8904 ;;
8905
8906 hpux9* | hpux10* | hpux11*)
8907 lt_prog_compiler_wl='-Wl,'
8908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8909 # not for PA HP-UX.
8910 case $host_cpu in
8911 hppa*64*|ia64*)
8912 # +Z the default
8913 ;;
8914 *)
8915 lt_prog_compiler_pic='+Z'
8916 ;;
8917 esac
8918 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8919 lt_prog_compiler_static='${wl}-a ${wl}archive'
8920 ;;
8921
8922 irix5* | irix6* | nonstopux*)
8923 lt_prog_compiler_wl='-Wl,'
8924 # PIC (with -KPIC) is the default.
8925 lt_prog_compiler_static='-non_shared'
8926 ;;
8927
8928 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8929 case $cc_basename in
8930 # old Intel for x86_64 which still supported -KPIC.
8931 ecc*)
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-KPIC'
8934 lt_prog_compiler_static='-static'
8935 ;;
8936 # icc used to be incompatible with GCC.
8937 # ICC 10 doesn't accept -KPIC any more.
8938 icc* | ifort*)
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-fPIC'
8941 lt_prog_compiler_static='-static'
8942 ;;
8943 # Lahey Fortran 8.1.
8944 lf95*)
8945 lt_prog_compiler_wl='-Wl,'
8946 lt_prog_compiler_pic='--shared'
8947 lt_prog_compiler_static='--static'
8948 ;;
8949 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8950 # Portland Group compilers (*not* the Pentium gcc compiler,
8951 # which looks to be a dead project)
8952 lt_prog_compiler_wl='-Wl,'
8953 lt_prog_compiler_pic='-fpic'
8954 lt_prog_compiler_static='-Bstatic'
8955 ;;
8956 ccc*)
8957 lt_prog_compiler_wl='-Wl,'
8958 # All Alpha code is PIC.
8959 lt_prog_compiler_static='-non_shared'
8960 ;;
8961 xl* | bgxl* | bgf* | mpixl*)
8962 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8963 lt_prog_compiler_wl='-Wl,'
8964 lt_prog_compiler_pic='-qpic'
8965 lt_prog_compiler_static='-qstaticlink'
8966 ;;
8967 *)
8968 case `$CC -V 2>&1 | sed 5q` in
8969 *Sun\ F* | *Sun*Fortran*)
8970 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8971 lt_prog_compiler_pic='-KPIC'
8972 lt_prog_compiler_static='-Bstatic'
8973 lt_prog_compiler_wl=''
8974 ;;
8975 *Sun\ C*)
8976 # Sun C 5.9
8977 lt_prog_compiler_pic='-KPIC'
8978 lt_prog_compiler_static='-Bstatic'
8979 lt_prog_compiler_wl='-Wl,'
8980 ;;
8981 esac
8982 ;;
8983 esac
8984 ;;
8985
8986 newsos6)
8987 lt_prog_compiler_pic='-KPIC'
8988 lt_prog_compiler_static='-Bstatic'
8989 ;;
8990
8991 *nto* | *qnx*)
8992 # QNX uses GNU C++, but need to define -shared option too, otherwise
8993 # it will coredump.
8994 lt_prog_compiler_pic='-fPIC -shared'
8995 ;;
8996
8997 osf3* | osf4* | osf5*)
8998 lt_prog_compiler_wl='-Wl,'
8999 # All OSF/1 code is PIC.
9000 lt_prog_compiler_static='-non_shared'
9001 ;;
9002
9003 rdos*)
9004 lt_prog_compiler_static='-non_shared'
9005 ;;
9006
9007 solaris*)
9008 lt_prog_compiler_pic='-KPIC'
9009 lt_prog_compiler_static='-Bstatic'
9010 case $cc_basename in
9011 f77* | f90* | f95*)
9012 lt_prog_compiler_wl='-Qoption ld ';;
9013 *)
9014 lt_prog_compiler_wl='-Wl,';;
9015 esac
9016 ;;
9017
9018 sunos4*)
9019 lt_prog_compiler_wl='-Qoption ld '
9020 lt_prog_compiler_pic='-PIC'
9021 lt_prog_compiler_static='-Bstatic'
9022 ;;
9023
9024 sysv4 | sysv4.2uw2* | sysv4.3*)
9025 lt_prog_compiler_wl='-Wl,'
9026 lt_prog_compiler_pic='-KPIC'
9027 lt_prog_compiler_static='-Bstatic'
9028 ;;
9029
9030 sysv4*MP*)
9031 if test -d /usr/nec ;then
9032 lt_prog_compiler_pic='-Kconform_pic'
9033 lt_prog_compiler_static='-Bstatic'
9034 fi
9035 ;;
9036
9037 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9038 lt_prog_compiler_wl='-Wl,'
9039 lt_prog_compiler_pic='-KPIC'
9040 lt_prog_compiler_static='-Bstatic'
9041 ;;
9042
9043 unicos*)
9044 lt_prog_compiler_wl='-Wl,'
9045 lt_prog_compiler_can_build_shared=no
9046 ;;
9047
9048 uts4*)
9049 lt_prog_compiler_pic='-pic'
9050 lt_prog_compiler_static='-Bstatic'
9051 ;;
9052
9053 *)
9054 lt_prog_compiler_can_build_shared=no
9055 ;;
9056 esac
9057 fi
9058
9059case $host_os in
9060 # For platforms which do not support PIC, -DPIC is meaningless:
9061 *djgpp*)
9062 lt_prog_compiler_pic=
9063 ;;
9064 *)
9065 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9066 ;;
9067esac
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9069$as_echo "$lt_prog_compiler_pic" >&6; }
9070
9071
9072
9073
9074
9075
9076#
9077# Check to make sure the PIC flag actually works.
9078#
9079if test -n "$lt_prog_compiler_pic"; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9081$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009082if ${lt_cv_prog_compiler_pic_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009083 $as_echo_n "(cached) " >&6
9084else
9085 lt_cv_prog_compiler_pic_works=no
9086 ac_outfile=conftest.$ac_objext
9087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9088 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9089 # Insert the option either (1) after the last *FLAGS variable, or
9090 # (2) before a word containing "conftest.", or (3) at the end.
9091 # Note that $ac_compile itself does not contain backslashes and begins
9092 # with a dollar sign (not a hyphen), so the echo should work correctly.
9093 # The option is referenced via a variable to avoid confusing sed.
9094 lt_compile=`echo "$ac_compile" | $SED \
9095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9097 -e 's:$: $lt_compiler_flag:'`
9098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9099 (eval "$lt_compile" 2>conftest.err)
9100 ac_status=$?
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 if (exit $ac_status) && test -s "$ac_outfile"; then
9104 # The compiler can only warn and ignore the option if not recognized
9105 # So say no if there are warnings other than the usual output.
9106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9108 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9109 lt_cv_prog_compiler_pic_works=yes
9110 fi
9111 fi
9112 $RM conftest*
9113
9114fi
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9116$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9117
9118if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9119 case $lt_prog_compiler_pic in
9120 "" | " "*) ;;
9121 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9122 esac
9123else
9124 lt_prog_compiler_pic=
9125 lt_prog_compiler_can_build_shared=no
9126fi
9127
9128fi
9129
9130
9131
9132
9133
9134
9135#
9136# Check to make sure the static flag actually works.
9137#
9138wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9140$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009141if ${lt_cv_prog_compiler_static_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009142 $as_echo_n "(cached) " >&6
9143else
9144 lt_cv_prog_compiler_static_works=no
9145 save_LDFLAGS="$LDFLAGS"
9146 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9147 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9148 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9149 # The linker can only warn and ignore the option if not recognized
9150 # So say no if there are warnings
9151 if test -s conftest.err; then
9152 # Append any errors to the config.log.
9153 cat conftest.err 1>&5
9154 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9156 if diff conftest.exp conftest.er2 >/dev/null; then
9157 lt_cv_prog_compiler_static_works=yes
9158 fi
9159 else
9160 lt_cv_prog_compiler_static_works=yes
9161 fi
9162 fi
9163 $RM -r conftest*
9164 LDFLAGS="$save_LDFLAGS"
9165
9166fi
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9168$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9169
9170if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9171 :
9172else
9173 lt_prog_compiler_static=
9174fi
9175
9176
9177
9178
9179
9180
9181
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9183$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009184if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009185 $as_echo_n "(cached) " >&6
9186else
9187 lt_cv_prog_compiler_c_o=no
9188 $RM -r conftest 2>/dev/null
9189 mkdir conftest
9190 cd conftest
9191 mkdir out
9192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9193
9194 lt_compiler_flag="-o out/conftest2.$ac_objext"
9195 # Insert the option either (1) after the last *FLAGS variable, or
9196 # (2) before a word containing "conftest.", or (3) at the end.
9197 # Note that $ac_compile itself does not contain backslashes and begins
9198 # with a dollar sign (not a hyphen), so the echo should work correctly.
9199 lt_compile=`echo "$ac_compile" | $SED \
9200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9202 -e 's:$: $lt_compiler_flag:'`
9203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9204 (eval "$lt_compile" 2>out/conftest.err)
9205 ac_status=$?
9206 cat out/conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9209 then
9210 # The compiler can only warn and ignore the option if not recognized
9211 # So say no if there are warnings
9212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9215 lt_cv_prog_compiler_c_o=yes
9216 fi
9217 fi
9218 chmod u+w . 2>&5
9219 $RM conftest*
9220 # SGI C++ compiler will create directory out/ii_files/ for
9221 # template instantiation
9222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9223 $RM out/* && rmdir out
9224 cd ..
9225 $RM -r conftest
9226 $RM conftest*
9227
9228fi
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9230$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9231
9232
9233
9234
9235
9236
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9238$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009239if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009240 $as_echo_n "(cached) " >&6
9241else
9242 lt_cv_prog_compiler_c_o=no
9243 $RM -r conftest 2>/dev/null
9244 mkdir conftest
9245 cd conftest
9246 mkdir out
9247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9248
9249 lt_compiler_flag="-o out/conftest2.$ac_objext"
9250 # Insert the option either (1) after the last *FLAGS variable, or
9251 # (2) before a word containing "conftest.", or (3) at the end.
9252 # Note that $ac_compile itself does not contain backslashes and begins
9253 # with a dollar sign (not a hyphen), so the echo should work correctly.
9254 lt_compile=`echo "$ac_compile" | $SED \
9255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9257 -e 's:$: $lt_compiler_flag:'`
9258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9259 (eval "$lt_compile" 2>out/conftest.err)
9260 ac_status=$?
9261 cat out/conftest.err >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9264 then
9265 # The compiler can only warn and ignore the option if not recognized
9266 # So say no if there are warnings
9267 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9268 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9269 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9270 lt_cv_prog_compiler_c_o=yes
9271 fi
9272 fi
9273 chmod u+w . 2>&5
9274 $RM conftest*
9275 # SGI C++ compiler will create directory out/ii_files/ for
9276 # template instantiation
9277 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9278 $RM out/* && rmdir out
9279 cd ..
9280 $RM -r conftest
9281 $RM conftest*
9282
9283fi
9284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9285$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9286
9287
9288
9289
9290hard_links="nottested"
9291if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9292 # do not overwrite the value of need_locks provided by the user
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9294$as_echo_n "checking if we can lock with hard links... " >&6; }
9295 hard_links=yes
9296 $RM conftest*
9297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9298 touch conftest.a
9299 ln conftest.a conftest.b 2>&5 || hard_links=no
9300 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9302$as_echo "$hard_links" >&6; }
9303 if test "$hard_links" = no; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9305$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9306 need_locks=warn
9307 fi
9308else
9309 need_locks=no
9310fi
9311
9312
9313
9314
9315
9316
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9318$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9319
9320 runpath_var=
9321 allow_undefined_flag=
9322 always_export_symbols=no
9323 archive_cmds=
9324 archive_expsym_cmds=
9325 compiler_needs_object=no
9326 enable_shared_with_static_runtimes=no
9327 export_dynamic_flag_spec=
9328 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9329 hardcode_automatic=no
9330 hardcode_direct=no
9331 hardcode_direct_absolute=no
9332 hardcode_libdir_flag_spec=
9333 hardcode_libdir_flag_spec_ld=
9334 hardcode_libdir_separator=
9335 hardcode_minus_L=no
9336 hardcode_shlibpath_var=unsupported
9337 inherit_rpath=no
9338 link_all_deplibs=unknown
9339 module_cmds=
9340 module_expsym_cmds=
9341 old_archive_from_new_cmds=
9342 old_archive_from_expsyms_cmds=
9343 thread_safe_flag_spec=
9344 whole_archive_flag_spec=
9345 # include_expsyms should be a list of space-separated symbols to be *always*
9346 # included in the symbol list
9347 include_expsyms=
9348 # exclude_expsyms can be an extended regexp of symbols to exclude
9349 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9350 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9351 # as well as any symbol that contains `d'.
9352 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9353 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9354 # platforms (ab)use it in PIC code, but their linkers get confused if
9355 # the symbol is explicitly referenced. Since portable code cannot
9356 # rely on this symbol name, it's probably fine to never include it in
9357 # preloaded symbol tables.
9358 # Exclude shared library initialization/finalization symbols.
9359 extract_expsyms_cmds=
9360
9361 case $host_os in
9362 cygwin* | mingw* | pw32* | cegcc*)
9363 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9364 # When not using gcc, we currently assume that we are using
9365 # Microsoft Visual C++.
9366 if test "$GCC" != yes; then
9367 with_gnu_ld=no
9368 fi
9369 ;;
9370 interix*)
9371 # we just hope/assume this is gcc and not c89 (= MSVC++)
9372 with_gnu_ld=yes
9373 ;;
9374 openbsd*)
9375 with_gnu_ld=no
9376 ;;
9377 esac
9378
9379 ld_shlibs=yes
9380
9381 # On some targets, GNU ld is compatible enough with the native linker
9382 # that we're better off using the native interface for both.
9383 lt_use_gnu_ld_interface=no
9384 if test "$with_gnu_ld" = yes; then
9385 case $host_os in
9386 aix*)
9387 # The AIX port of GNU ld has always aspired to compatibility
9388 # with the native linker. However, as the warning in the GNU ld
9389 # block says, versions before 2.19.5* couldn't really create working
9390 # shared libraries, regardless of the interface used.
9391 case `$LD -v 2>&1` in
9392 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9393 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9394 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9395 *)
9396 lt_use_gnu_ld_interface=yes
9397 ;;
9398 esac
9399 ;;
9400 *)
9401 lt_use_gnu_ld_interface=yes
9402 ;;
9403 esac
9404 fi
9405
9406 if test "$lt_use_gnu_ld_interface" = yes; then
9407 # If archive_cmds runs LD, not CC, wlarc should be empty
9408 wlarc='${wl}'
9409
9410 # Set some defaults for GNU ld with shared library support. These
9411 # are reset later if shared libraries are not supported. Putting them
9412 # here allows them to be overridden if necessary.
9413 runpath_var=LD_RUN_PATH
9414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9415 export_dynamic_flag_spec='${wl}--export-dynamic'
9416 # ancient GNU ld didn't support --whole-archive et. al.
9417 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9418 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9419 else
9420 whole_archive_flag_spec=
9421 fi
9422 supports_anon_versioning=no
9423 case `$LD -v 2>&1` in
9424 *GNU\ gold*) supports_anon_versioning=yes ;;
9425 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9426 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9427 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9428 *\ 2.11.*) ;; # other 2.11 versions
9429 *) supports_anon_versioning=yes ;;
9430 esac
9431
9432 # See if GNU ld supports shared libraries.
9433 case $host_os in
9434 aix[3-9]*)
9435 # On AIX/PPC, the GNU linker is very broken
9436 if test "$host_cpu" != ia64; then
9437 ld_shlibs=no
9438 cat <<_LT_EOF 1>&2
9439
9440*** Warning: the GNU linker, at least up to release 2.19, is reported
9441*** to be unable to reliably create shared libraries on AIX.
9442*** Therefore, libtool is disabling shared libraries support. If you
9443*** really care for shared libraries, you may want to install binutils
9444*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9445*** You will then need to restart the configuration process.
9446
9447_LT_EOF
9448 fi
9449 ;;
9450
9451 amigaos*)
9452 case $host_cpu in
9453 powerpc)
9454 # see comment about AmigaOS4 .so support
9455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9456 archive_expsym_cmds=''
9457 ;;
9458 m68k)
9459 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)'
9460 hardcode_libdir_flag_spec='-L$libdir'
9461 hardcode_minus_L=yes
9462 ;;
9463 esac
9464 ;;
9465
9466 beos*)
9467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9468 allow_undefined_flag=unsupported
9469 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9470 # support --undefined. This deserves some investigation. FIXME
9471 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9472 else
9473 ld_shlibs=no
9474 fi
9475 ;;
9476
9477 cygwin* | mingw* | pw32* | cegcc*)
9478 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9479 # as there is no search path for DLLs.
9480 hardcode_libdir_flag_spec='-L$libdir'
9481 export_dynamic_flag_spec='${wl}--export-all-symbols'
9482 allow_undefined_flag=unsupported
9483 always_export_symbols=no
9484 enable_shared_with_static_runtimes=yes
9485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9486
9487 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9489 # If the export-symbols file already is a .def file (1st line
9490 # is EXPORTS), use it as is; otherwise, prepend...
9491 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9492 cp $export_symbols $output_objdir/$soname.def;
9493 else
9494 echo EXPORTS > $output_objdir/$soname.def;
9495 cat $export_symbols >> $output_objdir/$soname.def;
9496 fi~
9497 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9498 else
9499 ld_shlibs=no
9500 fi
9501 ;;
9502
9503 haiku*)
9504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9505 link_all_deplibs=yes
9506 ;;
9507
9508 interix[3-9]*)
9509 hardcode_direct=no
9510 hardcode_shlibpath_var=no
9511 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9512 export_dynamic_flag_spec='${wl}-E'
9513 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9514 # Instead, shared libraries are loaded at an image base (0x10000000 by
9515 # default) and relocated if they conflict, which is a slow very memory
9516 # consuming and fragmenting process. To avoid this, we pick a random,
9517 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9518 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9519 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9520 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'
9521 ;;
9522
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +00009523 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +00009524 tmp_diet=no
9525 if test "$host_os" = linux-dietlibc; then
9526 case $cc_basename in
9527 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9528 esac
9529 fi
9530 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9531 && test "$tmp_diet" = no
9532 then
9533 tmp_addflag=' $pic_flag'
9534 tmp_sharedflag='-shared'
9535 case $cc_basename,$host_cpu in
9536 pgcc*) # Portland Group C compiler
9537 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'
9538 tmp_addflag=' $pic_flag'
9539 ;;
9540 pgf77* | pgf90* | pgf95* | pgfortran*)
9541 # Portland Group f77 and f90 compilers
9542 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'
9543 tmp_addflag=' $pic_flag -Mnomain' ;;
9544 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9545 tmp_addflag=' -i_dynamic' ;;
9546 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9547 tmp_addflag=' -i_dynamic -nofor_main' ;;
9548 ifc* | ifort*) # Intel Fortran compiler
9549 tmp_addflag=' -nofor_main' ;;
9550 lf95*) # Lahey Fortran 8.1
9551 whole_archive_flag_spec=
9552 tmp_sharedflag='--shared' ;;
9553 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9554 tmp_sharedflag='-qmkshrobj'
9555 tmp_addflag= ;;
9556 nvcc*) # Cuda Compiler Driver 2.2
9557 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'
9558 compiler_needs_object=yes
9559 ;;
9560 esac
9561 case `$CC -V 2>&1 | sed 5q` in
9562 *Sun\ C*) # Sun C 5.9
9563 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'
9564 compiler_needs_object=yes
9565 tmp_sharedflag='-G' ;;
9566 *Sun\ F*) # Sun Fortran 8.3
9567 tmp_sharedflag='-G' ;;
9568 esac
9569 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570
9571 if test "x$supports_anon_versioning" = xyes; then
9572 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9574 echo "local: *; };" >> $output_objdir/$libname.ver~
9575 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9576 fi
9577
9578 case $cc_basename in
9579 xlf* | bgf* | bgxlf* | mpixlf*)
9580 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9581 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9582 hardcode_libdir_flag_spec=
9583 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9584 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9585 if test "x$supports_anon_versioning" = xyes; then
9586 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9587 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9588 echo "local: *; };" >> $output_objdir/$libname.ver~
9589 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9590 fi
9591 ;;
9592 esac
9593 else
9594 ld_shlibs=no
9595 fi
9596 ;;
9597
9598 netbsd*)
9599 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9600 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9601 wlarc=
9602 else
9603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9604 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9605 fi
9606 ;;
9607
9608 solaris*)
9609 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9610 ld_shlibs=no
9611 cat <<_LT_EOF 1>&2
9612
9613*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9614*** create shared libraries on Solaris systems. Therefore, libtool
9615*** is disabling shared libraries support. We urge you to upgrade GNU
9616*** binutils to release 2.9.1 or newer. Another option is to modify
9617*** your PATH or compiler configuration so that the native linker is
9618*** used, and then restart.
9619
9620_LT_EOF
9621 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9623 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9624 else
9625 ld_shlibs=no
9626 fi
9627 ;;
9628
9629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9630 case `$LD -v 2>&1` in
9631 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9632 ld_shlibs=no
9633 cat <<_LT_EOF 1>&2
9634
9635*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9636*** reliably create shared libraries on SCO systems. Therefore, libtool
9637*** is disabling shared libraries support. We urge you to upgrade GNU
9638*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9639*** your PATH or compiler configuration so that the native linker is
9640*** used, and then restart.
9641
9642_LT_EOF
9643 ;;
9644 *)
9645 # For security reasons, it is highly recommended that you always
9646 # use absolute paths for naming shared libraries, and exclude the
9647 # DT_RUNPATH tag from executables and libraries. But doing so
9648 # requires that you compile everything twice, which is a pain.
9649 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9653 else
9654 ld_shlibs=no
9655 fi
9656 ;;
9657 esac
9658 ;;
9659
9660 sunos4*)
9661 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9662 wlarc=
9663 hardcode_direct=yes
9664 hardcode_shlibpath_var=no
9665 ;;
9666
9667 *)
9668 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9670 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9671 else
9672 ld_shlibs=no
9673 fi
9674 ;;
9675 esac
9676
9677 if test "$ld_shlibs" = no; then
9678 runpath_var=
9679 hardcode_libdir_flag_spec=
9680 export_dynamic_flag_spec=
9681 whole_archive_flag_spec=
9682 fi
9683 else
9684 # PORTME fill in a description of your system's linker (not GNU ld)
9685 case $host_os in
9686 aix3*)
9687 allow_undefined_flag=unsupported
9688 always_export_symbols=yes
9689 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'
9690 # Note: this linker hardcodes the directories in LIBPATH if there
9691 # are no directories specified by -L.
9692 hardcode_minus_L=yes
9693 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9694 # Neither direct hardcoding nor static linking is supported with a
9695 # broken collect2.
9696 hardcode_direct=unsupported
9697 fi
9698 ;;
9699
9700 aix[4-9]*)
9701 if test "$host_cpu" = ia64; then
9702 # On IA64, the linker does run time linking by default, so we don't
9703 # have to do anything special.
9704 aix_use_runtimelinking=no
9705 exp_sym_flag='-Bexport'
9706 no_entry_flag=""
9707 else
9708 # If we're using GNU nm, then we don't want the "-C" option.
9709 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9710 # Also, AIX nm treats weak defined symbols like other global
9711 # defined symbols, whereas GNU nm marks them as "W".
9712 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9713 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9714 else
9715 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9716 fi
9717 aix_use_runtimelinking=no
9718
9719 # Test if we are trying to use run time linking or normal
9720 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9721 # need to do runtime linking.
9722 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9723 for ld_flag in $LDFLAGS; do
9724 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9725 aix_use_runtimelinking=yes
9726 break
9727 fi
9728 done
9729 ;;
9730 esac
9731
9732 exp_sym_flag='-bexport'
9733 no_entry_flag='-bnoentry'
9734 fi
9735
9736 # When large executables or shared objects are built, AIX ld can
9737 # have problems creating the table of contents. If linking a library
9738 # or program results in "error TOC overflow" add -mminimal-toc to
9739 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9740 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9741
9742 archive_cmds=''
9743 hardcode_direct=yes
9744 hardcode_direct_absolute=yes
9745 hardcode_libdir_separator=':'
9746 link_all_deplibs=yes
9747 file_list_spec='${wl}-f,'
9748
9749 if test "$GCC" = yes; then
9750 case $host_os in aix4.[012]|aix4.[012].*)
9751 # We only want to do this on AIX 4.2 and lower, the check
9752 # below for broken collect2 doesn't work under 4.3+
9753 collect2name=`${CC} -print-prog-name=collect2`
9754 if test -f "$collect2name" &&
9755 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9756 then
9757 # We have reworked collect2
9758 :
9759 else
9760 # We have old collect2
9761 hardcode_direct=unsupported
9762 # It fails to find uninstalled libraries when the uninstalled
9763 # path is not listed in the libpath. Setting hardcode_minus_L
9764 # to unsupported forces relinking
9765 hardcode_minus_L=yes
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_libdir_separator=
9768 fi
9769 ;;
9770 esac
9771 shared_flag='-shared'
9772 if test "$aix_use_runtimelinking" = yes; then
9773 shared_flag="$shared_flag "'${wl}-G'
9774 fi
9775 else
9776 # not using gcc
9777 if test "$host_cpu" = ia64; then
9778 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9779 # chokes on -Wl,-G. The following line is correct:
9780 shared_flag='-G'
9781 else
9782 if test "$aix_use_runtimelinking" = yes; then
9783 shared_flag='${wl}-G'
9784 else
9785 shared_flag='${wl}-bM:SRE'
9786 fi
9787 fi
9788 fi
9789
9790 export_dynamic_flag_spec='${wl}-bexpall'
9791 # It seems that -bexpall does not export symbols beginning with
9792 # underscore (_), so it is better to generate a list of symbols to export.
9793 always_export_symbols=yes
9794 if test "$aix_use_runtimelinking" = yes; then
9795 # Warning - without using the other runtime loading flags (-brtl),
9796 # -berok will link without error, but may produce a broken library.
9797 allow_undefined_flag='-berok'
9798 # Determine the default libpath from the value encoded in an
9799 # empty executable.
9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801/* end confdefs.h. */
9802
9803int
9804main ()
9805{
9806
9807 ;
9808 return 0;
9809}
9810_ACEOF
9811if ac_fn_c_try_link "$LINENO"; then :
9812
9813lt_aix_libpath_sed='
9814 /Import File Strings/,/^$/ {
9815 /^0/ {
9816 s/^0 *\(.*\)$/\1/
9817 p
9818 }
9819 }'
9820aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9821# Check for a 64-bit object if we didn't find anything.
9822if test -z "$aix_libpath"; then
9823 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9824fi
9825fi
9826rm -f core conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9828if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9829
9830 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9831 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9832 else
9833 if test "$host_cpu" = ia64; then
9834 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9835 allow_undefined_flag="-z nodefs"
9836 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"
9837 else
9838 # Determine the default libpath from the value encoded in an
9839 # empty executable.
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841/* end confdefs.h. */
9842
9843int
9844main ()
9845{
9846
9847 ;
9848 return 0;
9849}
9850_ACEOF
9851if ac_fn_c_try_link "$LINENO"; then :
9852
9853lt_aix_libpath_sed='
9854 /Import File Strings/,/^$/ {
9855 /^0/ {
9856 s/^0 *\(.*\)$/\1/
9857 p
9858 }
9859 }'
9860aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9861# Check for a 64-bit object if we didn't find anything.
9862if test -z "$aix_libpath"; then
9863 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9864fi
9865fi
9866rm -f core conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9869
9870 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9871 # Warning - without using the other run time loading flags,
9872 # -berok will link without error, but may produce a broken library.
9873 no_undefined_flag=' ${wl}-bernotok'
9874 allow_undefined_flag=' ${wl}-berok'
9875 if test "$with_gnu_ld" = yes; then
9876 # We only use this code for GNU lds that support --whole-archive.
9877 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9878 else
9879 # Exported symbols can be pulled into shared objects from archives
9880 whole_archive_flag_spec='$convenience'
9881 fi
9882 archive_cmds_need_lc=yes
9883 # This is similar to how AIX traditionally builds its shared libraries.
9884 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9885 fi
9886 fi
9887 ;;
9888
9889 amigaos*)
9890 case $host_cpu in
9891 powerpc)
9892 # see comment about AmigaOS4 .so support
9893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9894 archive_expsym_cmds=''
9895 ;;
9896 m68k)
9897 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)'
9898 hardcode_libdir_flag_spec='-L$libdir'
9899 hardcode_minus_L=yes
9900 ;;
9901 esac
9902 ;;
9903
9904 bsdi[45]*)
9905 export_dynamic_flag_spec=-rdynamic
9906 ;;
9907
9908 cygwin* | mingw* | pw32* | cegcc*)
9909 # When not using gcc, we currently assume that we are using
9910 # Microsoft Visual C++.
9911 # hardcode_libdir_flag_spec is actually meaningless, as there is
9912 # no search path for DLLs.
9913 hardcode_libdir_flag_spec=' '
9914 allow_undefined_flag=unsupported
9915 # Tell ltmain to make .lib files, not .a files.
9916 libext=lib
9917 # Tell ltmain to make .dll files, not .so files.
9918 shrext_cmds=".dll"
9919 # FIXME: Setting linknames here is a bad hack.
9920 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9921 # The linker will automatically build a .lib file if we build a DLL.
9922 old_archive_from_new_cmds='true'
9923 # FIXME: Should let the user specify the lib program.
9924 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9925 fix_srcfile_path='`cygpath -w "$srcfile"`'
9926 enable_shared_with_static_runtimes=yes
9927 ;;
9928
9929 darwin* | rhapsody*)
9930
9931
9932 archive_cmds_need_lc=no
9933 hardcode_direct=no
9934 hardcode_automatic=yes
9935 hardcode_shlibpath_var=unsupported
9936 if test "$lt_cv_ld_force_load" = "yes"; then
9937 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\"`'
9938 else
9939 whole_archive_flag_spec=''
9940 fi
9941 link_all_deplibs=yes
9942 allow_undefined_flag="$_lt_dar_allow_undefined"
9943 case $cc_basename in
9944 ifort*) _lt_dar_can_shared=yes ;;
9945 *) _lt_dar_can_shared=$GCC ;;
9946 esac
9947 if test "$_lt_dar_can_shared" = "yes"; then
9948 output_verbose_link_cmd=func_echo_all
9949 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9950 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9951 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}"
9952 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}"
9953
9954 else
9955 ld_shlibs=no
9956 fi
9957
9958 ;;
9959
9960 dgux*)
9961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9962 hardcode_libdir_flag_spec='-L$libdir'
9963 hardcode_shlibpath_var=no
9964 ;;
9965
9966 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9967 # support. Future versions do this automatically, but an explicit c++rt0.o
9968 # does not break anything, and helps significantly (at the cost of a little
9969 # extra space).
9970 freebsd2.2*)
9971 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9972 hardcode_libdir_flag_spec='-R$libdir'
9973 hardcode_direct=yes
9974 hardcode_shlibpath_var=no
9975 ;;
9976
9977 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9978 freebsd2.*)
9979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9980 hardcode_direct=yes
9981 hardcode_minus_L=yes
9982 hardcode_shlibpath_var=no
9983 ;;
9984
9985 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9986 freebsd* | dragonfly*)
9987 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9988 hardcode_libdir_flag_spec='-R$libdir'
9989 hardcode_direct=yes
9990 hardcode_shlibpath_var=no
9991 ;;
9992
9993 hpux9*)
9994 if test "$GCC" = yes; then
9995 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9996 else
9997 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9998 fi
9999 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10000 hardcode_libdir_separator=:
10001 hardcode_direct=yes
10002
10003 # hardcode_minus_L: Not really in the search PATH,
10004 # but as the default location of the library.
10005 hardcode_minus_L=yes
10006 export_dynamic_flag_spec='${wl}-E'
10007 ;;
10008
10009 hpux10*)
10010 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10011 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10012 else
10013 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10014 fi
10015 if test "$with_gnu_ld" = no; then
10016 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10017 hardcode_libdir_flag_spec_ld='+b $libdir'
10018 hardcode_libdir_separator=:
10019 hardcode_direct=yes
10020 hardcode_direct_absolute=yes
10021 export_dynamic_flag_spec='${wl}-E'
10022 # hardcode_minus_L: Not really in the search PATH,
10023 # but as the default location of the library.
10024 hardcode_minus_L=yes
10025 fi
10026 ;;
10027
10028 hpux11*)
10029 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10030 case $host_cpu in
10031 hppa*64*)
10032 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10033 ;;
10034 ia64*)
10035 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10036 ;;
10037 *)
10038 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10039 ;;
10040 esac
10041 else
10042 case $host_cpu in
10043 hppa*64*)
10044 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10045 ;;
10046 ia64*)
10047 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10048 ;;
10049 *)
10050
10051 # Older versions of the 11.00 compiler do not understand -b yet
10052 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10054$as_echo_n "checking if $CC understands -b... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000010055if ${lt_cv_prog_compiler__b+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010056 $as_echo_n "(cached) " >&6
10057else
10058 lt_cv_prog_compiler__b=no
10059 save_LDFLAGS="$LDFLAGS"
10060 LDFLAGS="$LDFLAGS -b"
10061 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10062 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10063 # The linker can only warn and ignore the option if not recognized
10064 # So say no if there are warnings
10065 if test -s conftest.err; then
10066 # Append any errors to the config.log.
10067 cat conftest.err 1>&5
10068 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10070 if diff conftest.exp conftest.er2 >/dev/null; then
10071 lt_cv_prog_compiler__b=yes
10072 fi
10073 else
10074 lt_cv_prog_compiler__b=yes
10075 fi
10076 fi
10077 $RM -r conftest*
10078 LDFLAGS="$save_LDFLAGS"
10079
10080fi
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10082$as_echo "$lt_cv_prog_compiler__b" >&6; }
10083
10084if test x"$lt_cv_prog_compiler__b" = xyes; then
10085 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10086else
10087 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10088fi
10089
10090 ;;
10091 esac
10092 fi
10093 if test "$with_gnu_ld" = no; then
10094 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10095 hardcode_libdir_separator=:
10096
10097 case $host_cpu in
10098 hppa*64*|ia64*)
10099 hardcode_direct=no
10100 hardcode_shlibpath_var=no
10101 ;;
10102 *)
10103 hardcode_direct=yes
10104 hardcode_direct_absolute=yes
10105 export_dynamic_flag_spec='${wl}-E'
10106
10107 # hardcode_minus_L: Not really in the search PATH,
10108 # but as the default location of the library.
10109 hardcode_minus_L=yes
10110 ;;
10111 esac
10112 fi
10113 ;;
10114
10115 irix5* | irix6* | nonstopux*)
10116 if test "$GCC" = yes; then
10117 archive_cmds='$CC -shared $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'
10118 # Try to use the -exported_symbol ld option, if it does not
10119 # work, assume that -exports_file does not work either and
10120 # implicitly export all symbols.
10121 save_LDFLAGS="$LDFLAGS"
10122 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124/* end confdefs.h. */
10125int foo(void) {}
10126_ACEOF
10127if ac_fn_c_try_link "$LINENO"; then :
10128 archive_expsym_cmds='$CC -shared $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'
10129
10130fi
10131rm -f core conftest.err conftest.$ac_objext \
10132 conftest$ac_exeext conftest.$ac_ext
10133 LDFLAGS="$save_LDFLAGS"
10134 else
10135 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'
10136 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'
10137 fi
10138 archive_cmds_need_lc='no'
10139 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10140 hardcode_libdir_separator=:
10141 inherit_rpath=yes
10142 link_all_deplibs=yes
10143 ;;
10144
10145 netbsd*)
10146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10148 else
10149 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10150 fi
10151 hardcode_libdir_flag_spec='-R$libdir'
10152 hardcode_direct=yes
10153 hardcode_shlibpath_var=no
10154 ;;
10155
10156 newsos6)
10157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158 hardcode_direct=yes
10159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10160 hardcode_libdir_separator=:
10161 hardcode_shlibpath_var=no
10162 ;;
10163
10164 *nto* | *qnx*)
10165 ;;
10166
10167 openbsd*)
10168 if test -f /usr/libexec/ld.so; then
10169 hardcode_direct=yes
10170 hardcode_shlibpath_var=no
10171 hardcode_direct_absolute=yes
10172 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10173 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10174 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10175 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10176 export_dynamic_flag_spec='${wl}-E'
10177 else
10178 case $host_os in
10179 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10180 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10181 hardcode_libdir_flag_spec='-R$libdir'
10182 ;;
10183 *)
10184 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10185 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10186 ;;
10187 esac
10188 fi
10189 else
10190 ld_shlibs=no
10191 fi
10192 ;;
10193
10194 os2*)
10195 hardcode_libdir_flag_spec='-L$libdir'
10196 hardcode_minus_L=yes
10197 allow_undefined_flag=unsupported
10198 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10199 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10200 ;;
10201
10202 osf3*)
10203 if test "$GCC" = yes; then
10204 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10205 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'
10206 else
10207 allow_undefined_flag=' -expect_unresolved \*'
10208 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'
10209 fi
10210 archive_cmds_need_lc='no'
10211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10212 hardcode_libdir_separator=:
10213 ;;
10214
10215 osf4* | osf5*) # as osf3* with the addition of -msym flag
10216 if test "$GCC" = yes; then
10217 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10218 archive_cmds='$CC -shared${allow_undefined_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'
10219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10220 else
10221 allow_undefined_flag=' -expect_unresolved \*'
10222 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'
10223 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~
10224 $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'
10225
10226 # Both c and cxx compiler support -rpath directly
10227 hardcode_libdir_flag_spec='-rpath $libdir'
10228 fi
10229 archive_cmds_need_lc='no'
10230 hardcode_libdir_separator=:
10231 ;;
10232
10233 solaris*)
10234 no_undefined_flag=' -z defs'
10235 if test "$GCC" = yes; then
10236 wlarc='${wl}'
10237 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10239 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10240 else
10241 case `$CC -V 2>&1` in
10242 *"Compilers 5.0"*)
10243 wlarc=''
10244 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10246 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10247 ;;
10248 *)
10249 wlarc='${wl}'
10250 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10252 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10253 ;;
10254 esac
10255 fi
10256 hardcode_libdir_flag_spec='-R$libdir'
10257 hardcode_shlibpath_var=no
10258 case $host_os in
10259 solaris2.[0-5] | solaris2.[0-5].*) ;;
10260 *)
10261 # The compiler driver will combine and reorder linker options,
10262 # but understands `-z linker_flag'. GCC discards it without `$wl',
10263 # but is careful enough not to reorder.
10264 # Supported since Solaris 2.6 (maybe 2.5.1?)
10265 if test "$GCC" = yes; then
10266 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10267 else
10268 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10269 fi
10270 ;;
10271 esac
10272 link_all_deplibs=yes
10273 ;;
10274
10275 sunos4*)
10276 if test "x$host_vendor" = xsequent; then
10277 # Use $CC to link under sequent, because it throws in some extra .o
10278 # files that make .init and .fini sections work.
10279 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10280 else
10281 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10282 fi
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_direct=yes
10285 hardcode_minus_L=yes
10286 hardcode_shlibpath_var=no
10287 ;;
10288
10289 sysv4)
10290 case $host_vendor in
10291 sni)
10292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293 hardcode_direct=yes # is this really true???
10294 ;;
10295 siemens)
10296 ## LD is ld it makes a PLAMLIB
10297 ## CC just makes a GrossModule.
10298 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10299 reload_cmds='$CC -r -o $output$reload_objs'
10300 hardcode_direct=no
10301 ;;
10302 motorola)
10303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10305 ;;
10306 esac
10307 runpath_var='LD_RUN_PATH'
10308 hardcode_shlibpath_var=no
10309 ;;
10310
10311 sysv4.3*)
10312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10313 hardcode_shlibpath_var=no
10314 export_dynamic_flag_spec='-Bexport'
10315 ;;
10316
10317 sysv4*MP*)
10318 if test -d /usr/nec; then
10319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10320 hardcode_shlibpath_var=no
10321 runpath_var=LD_RUN_PATH
10322 hardcode_runpath_var=yes
10323 ld_shlibs=yes
10324 fi
10325 ;;
10326
10327 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10328 no_undefined_flag='${wl}-z,text'
10329 archive_cmds_need_lc=no
10330 hardcode_shlibpath_var=no
10331 runpath_var='LD_RUN_PATH'
10332
10333 if test "$GCC" = yes; then
10334 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10336 else
10337 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10339 fi
10340 ;;
10341
10342 sysv5* | sco3.2v5* | sco5v6*)
10343 # Note: We can NOT use -z defs as we might desire, because we do not
10344 # link with -lc, and that would cause any symbols used from libc to
10345 # always be unresolved, which means just about no library would
10346 # ever link correctly. If we're not using GNU ld we use -z text
10347 # though, which does catch some bad symbols but isn't as heavy-handed
10348 # as -z defs.
10349 no_undefined_flag='${wl}-z,text'
10350 allow_undefined_flag='${wl}-z,nodefs'
10351 archive_cmds_need_lc=no
10352 hardcode_shlibpath_var=no
10353 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10354 hardcode_libdir_separator=':'
10355 link_all_deplibs=yes
10356 export_dynamic_flag_spec='${wl}-Bexport'
10357 runpath_var='LD_RUN_PATH'
10358
10359 if test "$GCC" = yes; then
10360 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 else
10363 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10365 fi
10366 ;;
10367
10368 uts4*)
10369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370 hardcode_libdir_flag_spec='-L$libdir'
10371 hardcode_shlibpath_var=no
10372 ;;
10373
10374 *)
10375 ld_shlibs=no
10376 ;;
10377 esac
10378
10379 if test x$host_vendor = xsni; then
10380 case $host in
10381 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10382 export_dynamic_flag_spec='${wl}-Blargedynsym'
10383 ;;
10384 esac
10385 fi
10386 fi
10387
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10389$as_echo "$ld_shlibs" >&6; }
10390test "$ld_shlibs" = no && can_build_shared=no
10391
10392with_gnu_ld=$with_gnu_ld
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408#
10409# Do we need to explicitly link libc?
10410#
10411case "x$archive_cmds_need_lc" in
10412x|xyes)
10413 # Assume -lc should be added
10414 archive_cmds_need_lc=yes
10415
10416 if test "$enable_shared" = yes && test "$GCC" = yes; then
10417 case $archive_cmds in
10418 *'~'*)
10419 # FIXME: we may have to deal with multi-command sequences.
10420 ;;
10421 '$CC '*)
10422 # Test whether the compiler implicitly links with -lc since on some
10423 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10424 # to ld, don't add -lc before -lgcc.
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10426$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000010427if ${lt_cv_archive_cmds_need_lc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010428 $as_echo_n "(cached) " >&6
10429else
10430 $RM conftest*
10431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10432
10433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10434 (eval $ac_compile) 2>&5
10435 ac_status=$?
10436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10437 test $ac_status = 0; } 2>conftest.err; then
10438 soname=conftest
10439 lib=conftest
10440 libobjs=conftest.$ac_objext
10441 deplibs=
10442 wl=$lt_prog_compiler_wl
10443 pic_flag=$lt_prog_compiler_pic
10444 compiler_flags=-v
10445 linker_flags=-v
10446 verstring=
10447 output_objdir=.
10448 libname=conftest
10449 lt_save_allow_undefined_flag=$allow_undefined_flag
10450 allow_undefined_flag=
10451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10452 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10453 ac_status=$?
10454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10455 test $ac_status = 0; }
10456 then
10457 lt_cv_archive_cmds_need_lc=no
10458 else
10459 lt_cv_archive_cmds_need_lc=yes
10460 fi
10461 allow_undefined_flag=$lt_save_allow_undefined_flag
10462 else
10463 cat conftest.err 1>&5
10464 fi
10465 $RM conftest*
10466
10467fi
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10469$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10470 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10471 ;;
10472 esac
10473 fi
10474 ;;
10475esac
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10634$as_echo_n "checking dynamic linker characteristics... " >&6; }
10635
10636if test "$GCC" = yes; then
10637 case $host_os in
10638 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10639 *) lt_awk_arg="/^libraries:/" ;;
10640 esac
10641 case $host_os in
10642 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10643 *) lt_sed_strip_eq="s,=/,/,g" ;;
10644 esac
10645 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10646 case $lt_search_path_spec in
10647 *\;*)
10648 # if the path contains ";" then we assume it to be the separator
10649 # otherwise default to the standard path separator (i.e. ":") - it is
10650 # assumed that no part of a normal pathname contains ";" but that should
10651 # okay in the real world where ";" in dirpaths is itself problematic.
10652 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10653 ;;
10654 *)
10655 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10656 ;;
10657 esac
10658 # Ok, now we have the path, separated by spaces, we can step through it
10659 # and add multilib dir if necessary.
10660 lt_tmp_lt_search_path_spec=
10661 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10662 for lt_sys_path in $lt_search_path_spec; do
10663 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10664 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10665 else
10666 test -d "$lt_sys_path" && \
10667 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10668 fi
10669 done
10670 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10671BEGIN {RS=" "; FS="/|\n";} {
10672 lt_foo="";
10673 lt_count=0;
10674 for (lt_i = NF; lt_i > 0; lt_i--) {
10675 if ($lt_i != "" && $lt_i != ".") {
10676 if ($lt_i == "..") {
10677 lt_count++;
10678 } else {
10679 if (lt_count == 0) {
10680 lt_foo="/" $lt_i lt_foo;
10681 } else {
10682 lt_count--;
10683 }
10684 }
10685 }
10686 }
10687 if (lt_foo != "") { lt_freq[lt_foo]++; }
10688 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10689}'`
10690 # AWK program above erroneously prepends '/' to C:/dos/paths
10691 # for these hosts.
10692 case $host_os in
10693 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10694 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10695 esac
10696 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10697else
10698 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10699fi
10700library_names_spec=
10701libname_spec='lib$name'
10702soname_spec=
10703shrext_cmds=".so"
10704postinstall_cmds=
10705postuninstall_cmds=
10706finish_cmds=
10707finish_eval=
10708shlibpath_var=
10709shlibpath_overrides_runpath=unknown
10710version_type=none
10711dynamic_linker="$host_os ld.so"
10712sys_lib_dlsearch_path_spec="/lib /usr/lib"
10713need_lib_prefix=unknown
10714hardcode_into_libs=no
10715
10716# when you set need_version to no, make sure it does not cause -set_version
10717# flags to be left without arguments
10718need_version=unknown
10719
10720case $host_os in
10721aix3*)
10722 version_type=linux
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10724 shlibpath_var=LIBPATH
10725
10726 # AIX 3 has no versioning support, so we append a major version to the name.
10727 soname_spec='${libname}${release}${shared_ext}$major'
10728 ;;
10729
10730aix[4-9]*)
10731 version_type=linux
10732 need_lib_prefix=no
10733 need_version=no
10734 hardcode_into_libs=yes
10735 if test "$host_cpu" = ia64; then
10736 # AIX 5 supports IA64
10737 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 else
10740 # With GCC up to 2.95.x, collect2 would create an import file
10741 # for dependence libraries. The import file would start with
10742 # the line `#! .'. This would cause the generated library to
10743 # depend on `.', always an invalid library. This was fixed in
10744 # development snapshots of GCC prior to 3.0.
10745 case $host_os in
10746 aix4 | aix4.[01] | aix4.[01].*)
10747 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10748 echo ' yes '
10749 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10750 :
10751 else
10752 can_build_shared=no
10753 fi
10754 ;;
10755 esac
10756 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10757 # soname into executable. Probably we can add versioning support to
10758 # collect2, so additional links can be useful in future.
10759 if test "$aix_use_runtimelinking" = yes; then
10760 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10761 # instead of lib<name>.a to let people know that these are not
10762 # typical AIX shared libraries.
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10764 else
10765 # We preserve .a as extension for shared libraries through AIX4.2
10766 # and later when we are not doing run time linking.
10767 library_names_spec='${libname}${release}.a $libname.a'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 fi
10770 shlibpath_var=LIBPATH
10771 fi
10772 ;;
10773
10774amigaos*)
10775 case $host_cpu in
10776 powerpc)
10777 # Since July 2007 AmigaOS4 officially supports .so libraries.
10778 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780 ;;
10781 m68k)
10782 library_names_spec='$libname.ixlibrary $libname.a'
10783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10784 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10785 ;;
10786 esac
10787 ;;
10788
10789beos*)
10790 library_names_spec='${libname}${shared_ext}'
10791 dynamic_linker="$host_os ld.so"
10792 shlibpath_var=LIBRARY_PATH
10793 ;;
10794
10795bsdi[45]*)
10796 version_type=linux
10797 need_version=no
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10804 # the default ld.so.conf also contains /usr/contrib/lib and
10805 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10806 # libtool to hard-code these into programs
10807 ;;
10808
10809cygwin* | mingw* | pw32* | cegcc*)
10810 version_type=windows
10811 shrext_cmds=".dll"
10812 need_version=no
10813 need_lib_prefix=no
10814
10815 case $GCC,$host_os in
10816 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10817 library_names_spec='$libname.dll.a'
10818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10819 postinstall_cmds='base_file=`basename \${file}`~
10820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10821 dldir=$destdir/`dirname \$dlpath`~
10822 test -d \$dldir || mkdir -p \$dldir~
10823 $install_prog $dir/$dlname \$dldir/$dlname~
10824 chmod a+x \$dldir/$dlname~
10825 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10826 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10827 fi'
10828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10829 dlpath=$dir/\$dldll~
10830 $RM \$dlpath'
10831 shlibpath_overrides_runpath=yes
10832
10833 case $host_os in
10834 cygwin*)
10835 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10836 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10837
10838 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10839 ;;
10840 mingw* | cegcc*)
10841 # MinGW DLLs use traditional 'lib' prefix
10842 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10843 ;;
10844 pw32*)
10845 # pw32 DLLs use 'pw' prefix rather than 'lib'
10846 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847 ;;
10848 esac
10849 ;;
10850
10851 *)
10852 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10853 ;;
10854 esac
10855 dynamic_linker='Win32 ld.exe'
10856 # FIXME: first we should search . and the directory the executable is in
10857 shlibpath_var=PATH
10858 ;;
10859
10860darwin* | rhapsody*)
10861 dynamic_linker="$host_os dyld"
10862 version_type=darwin
10863 need_lib_prefix=no
10864 need_version=no
10865 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10866 soname_spec='${libname}${release}${major}$shared_ext'
10867 shlibpath_overrides_runpath=yes
10868 shlibpath_var=DYLD_LIBRARY_PATH
10869 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10870
10871 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10872 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10873 ;;
10874
10875dgux*)
10876 version_type=linux
10877 need_lib_prefix=no
10878 need_version=no
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10880 soname_spec='${libname}${release}${shared_ext}$major'
10881 shlibpath_var=LD_LIBRARY_PATH
10882 ;;
10883
10884freebsd* | dragonfly*)
10885 # DragonFly does not have aout. When/if they implement a new
10886 # versioning mechanism, adjust this.
10887 if test -x /usr/bin/objformat; then
10888 objformat=`/usr/bin/objformat`
10889 else
10890 case $host_os in
10891 freebsd[23].*) objformat=aout ;;
10892 *) objformat=elf ;;
10893 esac
10894 fi
10895 version_type=freebsd-$objformat
10896 case $version_type in
10897 freebsd-elf*)
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10899 need_version=no
10900 need_lib_prefix=no
10901 ;;
10902 freebsd-*)
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10904 need_version=yes
10905 ;;
10906 esac
10907 shlibpath_var=LD_LIBRARY_PATH
10908 case $host_os in
10909 freebsd2.*)
10910 shlibpath_overrides_runpath=yes
10911 ;;
10912 freebsd3.[01]* | freebsdelf3.[01]*)
10913 shlibpath_overrides_runpath=yes
10914 hardcode_into_libs=yes
10915 ;;
10916 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10917 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10918 shlibpath_overrides_runpath=no
10919 hardcode_into_libs=yes
10920 ;;
10921 *) # from 4.6 on, and DragonFly
10922 shlibpath_overrides_runpath=yes
10923 hardcode_into_libs=yes
10924 ;;
10925 esac
10926 ;;
10927
10928gnu*)
10929 version_type=linux
10930 need_lib_prefix=no
10931 need_version=no
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10933 soname_spec='${libname}${release}${shared_ext}$major'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 hardcode_into_libs=yes
10936 ;;
10937
10938haiku*)
10939 version_type=linux
10940 need_lib_prefix=no
10941 need_version=no
10942 dynamic_linker="$host_os runtime_loader"
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 shlibpath_var=LIBRARY_PATH
10946 shlibpath_overrides_runpath=yes
10947 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10948 hardcode_into_libs=yes
10949 ;;
10950
10951hpux9* | hpux10* | hpux11*)
10952 # Give a soname corresponding to the major version so that dld.sl refuses to
10953 # link against other versions.
10954 version_type=sunos
10955 need_lib_prefix=no
10956 need_version=no
10957 case $host_cpu in
10958 ia64*)
10959 shrext_cmds='.so'
10960 hardcode_into_libs=yes
10961 dynamic_linker="$host_os dld.so"
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965 soname_spec='${libname}${release}${shared_ext}$major'
10966 if test "X$HPUX_IA64_MODE" = X32; then
10967 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10968 else
10969 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10970 fi
10971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10972 ;;
10973 hppa*64*)
10974 shrext_cmds='.sl'
10975 hardcode_into_libs=yes
10976 dynamic_linker="$host_os dld.sl"
10977 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980 soname_spec='${libname}${release}${shared_ext}$major'
10981 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10983 ;;
10984 *)
10985 shrext_cmds='.sl'
10986 dynamic_linker="$host_os dld.sl"
10987 shlibpath_var=SHLIB_PATH
10988 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 ;;
10992 esac
10993 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10994 postinstall_cmds='chmod 555 $lib'
10995 # or fails outright, so override atomically:
10996 install_override_mode=555
10997 ;;
10998
10999interix[3-9]*)
11000 version_type=linux
11001 need_lib_prefix=no
11002 need_version=no
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11006 shlibpath_var=LD_LIBRARY_PATH
11007 shlibpath_overrides_runpath=no
11008 hardcode_into_libs=yes
11009 ;;
11010
11011irix5* | irix6* | nonstopux*)
11012 case $host_os in
11013 nonstopux*) version_type=nonstopux ;;
11014 *)
11015 if test "$lt_cv_prog_gnu_ld" = yes; then
11016 version_type=linux
11017 else
11018 version_type=irix
11019 fi ;;
11020 esac
11021 need_lib_prefix=no
11022 need_version=no
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11025 case $host_os in
11026 irix5* | nonstopux*)
11027 libsuff= shlibsuff=
11028 ;;
11029 *)
11030 case $LD in # libtool.m4 will add one of these switches to LD
11031 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11032 libsuff= shlibsuff= libmagic=32-bit;;
11033 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11034 libsuff=32 shlibsuff=N32 libmagic=N32;;
11035 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11036 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11037 *) libsuff= shlibsuff= libmagic=never-match;;
11038 esac
11039 ;;
11040 esac
11041 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11042 shlibpath_overrides_runpath=no
11043 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11044 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11045 hardcode_into_libs=yes
11046 ;;
11047
11048# No shared lib support for Linux oldld, aout, or coff.
11049linux*oldld* | linux*aout* | linux*coff*)
11050 dynamic_linker=no
11051 ;;
11052
11053# This must be Linux ELF.
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +000011054
11055# uclinux* changes (here and below) have been submitted to the libtool
11056# project, but have not yet been accepted: they are GCC-local changes
11057# for the time being. (See
11058# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11059linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +000011060 version_type=linux
11061 need_lib_prefix=no
11062 need_version=no
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064 soname_spec='${libname}${release}${shared_ext}$major'
11065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=no
11068
11069 # Some binutils ld are patched to set DT_RUNPATH
Joseph Myers22e05272018-10-31 17:03:16 +000011070 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011071 $as_echo_n "(cached) " >&6
11072else
11073 lt_cv_shlibpath_overrides_runpath=no
11074 save_LDFLAGS=$LDFLAGS
11075 save_libdir=$libdir
11076 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11077 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079/* end confdefs.h. */
11080
11081int
11082main ()
11083{
11084
11085 ;
11086 return 0;
11087}
11088_ACEOF
11089if ac_fn_c_try_link "$LINENO"; then :
11090 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11091 lt_cv_shlibpath_overrides_runpath=yes
11092fi
11093fi
11094rm -f core conftest.err conftest.$ac_objext \
11095 conftest$ac_exeext conftest.$ac_ext
11096 LDFLAGS=$save_LDFLAGS
11097 libdir=$save_libdir
11098
11099fi
11100
11101 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11102
11103 # This implies no fast_install, which is unacceptable.
11104 # Some rework will be needed to allow for fast_install
11105 # before this can be enabled.
11106 hardcode_into_libs=yes
11107
11108 # Append ld.so.conf contents to the search path
11109 if test -f /etc/ld.so.conf; then
11110 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' ' '`
11111 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11112 fi
11113
11114 # We used to test for /lib/ld.so.1 and disable shared libraries on
11115 # powerpc, because MkLinux only supported shared libraries with the
11116 # GNU dynamic linker. Since this was broken with cross compilers,
11117 # most powerpc-linux boxes support dynamic linking these days and
11118 # people can always --disable-shared, the test was removed, and we
11119 # assume the GNU/Linux dynamic linker is in use.
11120 dynamic_linker='GNU/Linux ld.so'
11121 ;;
11122
11123netbsd*)
11124 version_type=sunos
11125 need_lib_prefix=no
11126 need_version=no
11127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11130 dynamic_linker='NetBSD (a.out) ld.so'
11131 else
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 dynamic_linker='NetBSD ld.elf_so'
11135 fi
11136 shlibpath_var=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath=yes
11138 hardcode_into_libs=yes
11139 ;;
11140
11141newsos6)
11142 version_type=linux
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 shlibpath_overrides_runpath=yes
11146 ;;
11147
11148*nto* | *qnx*)
11149 version_type=qnx
11150 need_lib_prefix=no
11151 need_version=no
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=no
11156 hardcode_into_libs=yes
11157 dynamic_linker='ldqnx.so'
11158 ;;
11159
11160openbsd*)
11161 version_type=sunos
11162 sys_lib_dlsearch_path_spec="/usr/lib"
11163 need_lib_prefix=no
11164 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11165 case $host_os in
11166 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11167 *) need_version=no ;;
11168 esac
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11173 case $host_os in
11174 openbsd2.[89] | openbsd2.[89].*)
11175 shlibpath_overrides_runpath=no
11176 ;;
11177 *)
11178 shlibpath_overrides_runpath=yes
11179 ;;
11180 esac
11181 else
11182 shlibpath_overrides_runpath=yes
11183 fi
11184 ;;
11185
11186os2*)
11187 libname_spec='$name'
11188 shrext_cmds=".dll"
11189 need_lib_prefix=no
11190 library_names_spec='$libname${shared_ext} $libname.a'
11191 dynamic_linker='OS/2 ld.exe'
11192 shlibpath_var=LIBPATH
11193 ;;
11194
11195osf3* | osf4* | osf5*)
11196 version_type=osf
11197 need_lib_prefix=no
11198 need_version=no
11199 soname_spec='${libname}${release}${shared_ext}$major'
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201 shlibpath_var=LD_LIBRARY_PATH
11202 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11203 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11204 ;;
11205
11206rdos*)
11207 dynamic_linker=no
11208 ;;
11209
11210solaris*)
11211 version_type=linux
11212 need_lib_prefix=no
11213 need_version=no
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215 soname_spec='${libname}${release}${shared_ext}$major'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 shlibpath_overrides_runpath=yes
11218 hardcode_into_libs=yes
11219 # ldd complains unless libraries are executable
11220 postinstall_cmds='chmod +x $lib'
11221 ;;
11222
11223sunos4*)
11224 version_type=sunos
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11226 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 shlibpath_overrides_runpath=yes
11229 if test "$with_gnu_ld" = yes; then
11230 need_lib_prefix=no
11231 fi
11232 need_version=yes
11233 ;;
11234
11235sysv4 | sysv4.3*)
11236 version_type=linux
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238 soname_spec='${libname}${release}${shared_ext}$major'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 case $host_vendor in
11241 sni)
11242 shlibpath_overrides_runpath=no
11243 need_lib_prefix=no
11244 runpath_var=LD_RUN_PATH
11245 ;;
11246 siemens)
11247 need_lib_prefix=no
11248 ;;
11249 motorola)
11250 need_lib_prefix=no
11251 need_version=no
11252 shlibpath_overrides_runpath=no
11253 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11254 ;;
11255 esac
11256 ;;
11257
11258sysv4*MP*)
11259 if test -d /usr/nec ;then
11260 version_type=linux
11261 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11262 soname_spec='$libname${shared_ext}.$major'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 fi
11265 ;;
11266
11267sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11268 version_type=freebsd-elf
11269 need_lib_prefix=no
11270 need_version=no
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 shlibpath_var=LD_LIBRARY_PATH
11274 shlibpath_overrides_runpath=yes
11275 hardcode_into_libs=yes
11276 if test "$with_gnu_ld" = yes; then
11277 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11278 else
11279 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11280 case $host_os in
11281 sco3.2v5*)
11282 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11283 ;;
11284 esac
11285 fi
11286 sys_lib_dlsearch_path_spec='/usr/lib'
11287 ;;
11288
11289tpf*)
11290 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11291 version_type=linux
11292 need_lib_prefix=no
11293 need_version=no
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295 shlibpath_var=LD_LIBRARY_PATH
11296 shlibpath_overrides_runpath=no
11297 hardcode_into_libs=yes
11298 ;;
11299
11300uts4*)
11301 version_type=linux
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 shlibpath_var=LD_LIBRARY_PATH
11305 ;;
11306
11307*)
11308 dynamic_linker=no
11309 ;;
11310esac
11311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11312$as_echo "$dynamic_linker" >&6; }
11313test "$dynamic_linker" = no && can_build_shared=no
11314
11315variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11316if test "$GCC" = yes; then
11317 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11318fi
11319
11320if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11321 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11322fi
11323if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11324 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11325fi
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11419$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11420hardcode_action=
11421if test -n "$hardcode_libdir_flag_spec" ||
11422 test -n "$runpath_var" ||
11423 test "X$hardcode_automatic" = "Xyes" ; then
11424
11425 # We can hardcode non-existent directories.
11426 if test "$hardcode_direct" != no &&
11427 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11428 # have to relink, otherwise we might link with an installed library
11429 # when we should be linking with a yet-to-be-installed one
11430 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11431 test "$hardcode_minus_L" != no; then
11432 # Linking always hardcodes the temporary library directory.
11433 hardcode_action=relink
11434 else
11435 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11436 hardcode_action=immediate
11437 fi
11438else
11439 # We cannot hardcode anything, or else we can only hardcode existing
11440 # directories.
11441 hardcode_action=unsupported
11442fi
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11444$as_echo "$hardcode_action" >&6; }
11445
11446if test "$hardcode_action" = relink ||
11447 test "$inherit_rpath" = yes; then
11448 # Fast installation is not supported
11449 enable_fast_install=no
11450elif test "$shlibpath_overrides_runpath" = yes ||
11451 test "$enable_shared" = no; then
11452 # Fast installation is not necessary
11453 enable_fast_install=needless
11454fi
11455
11456
11457
11458
11459
11460
11461 if test "x$enable_dlopen" != xyes; then
11462 enable_dlopen=unknown
11463 enable_dlopen_self=unknown
11464 enable_dlopen_self_static=unknown
11465else
11466 lt_cv_dlopen=no
11467 lt_cv_dlopen_libs=
11468
11469 case $host_os in
11470 beos*)
11471 lt_cv_dlopen="load_add_on"
11472 lt_cv_dlopen_libs=
11473 lt_cv_dlopen_self=yes
11474 ;;
11475
11476 mingw* | pw32* | cegcc*)
11477 lt_cv_dlopen="LoadLibrary"
11478 lt_cv_dlopen_libs=
11479 ;;
11480
11481 cygwin*)
11482 lt_cv_dlopen="dlopen"
11483 lt_cv_dlopen_libs=
11484 ;;
11485
11486 darwin*)
11487 # if libdl is installed we need to link against it
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11489$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011490if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011491 $as_echo_n "(cached) " >&6
11492else
11493 ac_check_lib_save_LIBS=$LIBS
11494LIBS="-ldl $LIBS"
11495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496/* end confdefs.h. */
11497
11498/* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11501#ifdef __cplusplus
11502extern "C"
11503#endif
11504char dlopen ();
11505int
11506main ()
11507{
11508return dlopen ();
11509 ;
11510 return 0;
11511}
11512_ACEOF
11513if ac_fn_c_try_link "$LINENO"; then :
11514 ac_cv_lib_dl_dlopen=yes
11515else
11516 ac_cv_lib_dl_dlopen=no
11517fi
11518rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520LIBS=$ac_check_lib_save_LIBS
11521fi
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11523$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011524if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11526else
11527
11528 lt_cv_dlopen="dyld"
11529 lt_cv_dlopen_libs=
11530 lt_cv_dlopen_self=yes
11531
11532fi
11533
11534 ;;
11535
11536 *)
11537 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Joseph Myers22e05272018-10-31 17:03:16 +000011538if test "x$ac_cv_func_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011539 lt_cv_dlopen="shl_load"
11540else
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11542$as_echo_n "checking for shl_load in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011543if ${ac_cv_lib_dld_shl_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011544 $as_echo_n "(cached) " >&6
11545else
11546 ac_check_lib_save_LIBS=$LIBS
11547LIBS="-ldld $LIBS"
11548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549/* end confdefs.h. */
11550
11551/* Override any GCC internal prototype to avoid an error.
11552 Use char because int might match the return type of a GCC
11553 builtin and then its argument prototype would still apply. */
11554#ifdef __cplusplus
11555extern "C"
11556#endif
11557char shl_load ();
11558int
11559main ()
11560{
11561return shl_load ();
11562 ;
11563 return 0;
11564}
11565_ACEOF
11566if ac_fn_c_try_link "$LINENO"; then :
11567 ac_cv_lib_dld_shl_load=yes
11568else
11569 ac_cv_lib_dld_shl_load=no
11570fi
11571rm -f core conftest.err conftest.$ac_objext \
11572 conftest$ac_exeext conftest.$ac_ext
11573LIBS=$ac_check_lib_save_LIBS
11574fi
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11576$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011577if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011578 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11579else
11580 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Joseph Myers22e05272018-10-31 17:03:16 +000011581if test "x$ac_cv_func_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011582 lt_cv_dlopen="dlopen"
11583else
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11585$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011586if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011587 $as_echo_n "(cached) " >&6
11588else
11589 ac_check_lib_save_LIBS=$LIBS
11590LIBS="-ldl $LIBS"
11591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592/* end confdefs.h. */
11593
11594/* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11597#ifdef __cplusplus
11598extern "C"
11599#endif
11600char dlopen ();
11601int
11602main ()
11603{
11604return dlopen ();
11605 ;
11606 return 0;
11607}
11608_ACEOF
11609if ac_fn_c_try_link "$LINENO"; then :
11610 ac_cv_lib_dl_dlopen=yes
11611else
11612 ac_cv_lib_dl_dlopen=no
11613fi
11614rm -f core conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
11616LIBS=$ac_check_lib_save_LIBS
11617fi
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11619$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011620if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11622else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11624$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011625if ${ac_cv_lib_svld_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011626 $as_echo_n "(cached) " >&6
11627else
11628 ac_check_lib_save_LIBS=$LIBS
11629LIBS="-lsvld $LIBS"
11630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631/* end confdefs.h. */
11632
11633/* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11636#ifdef __cplusplus
11637extern "C"
11638#endif
11639char dlopen ();
11640int
11641main ()
11642{
11643return dlopen ();
11644 ;
11645 return 0;
11646}
11647_ACEOF
11648if ac_fn_c_try_link "$LINENO"; then :
11649 ac_cv_lib_svld_dlopen=yes
11650else
11651 ac_cv_lib_svld_dlopen=no
11652fi
11653rm -f core conftest.err conftest.$ac_objext \
11654 conftest$ac_exeext conftest.$ac_ext
11655LIBS=$ac_check_lib_save_LIBS
11656fi
11657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11658$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011659if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011660 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11661else
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11663$as_echo_n "checking for dld_link in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011664if ${ac_cv_lib_dld_dld_link+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011665 $as_echo_n "(cached) " >&6
11666else
11667 ac_check_lib_save_LIBS=$LIBS
11668LIBS="-ldld $LIBS"
11669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670/* end confdefs.h. */
11671
11672/* Override any GCC internal prototype to avoid an error.
11673 Use char because int might match the return type of a GCC
11674 builtin and then its argument prototype would still apply. */
11675#ifdef __cplusplus
11676extern "C"
11677#endif
11678char dld_link ();
11679int
11680main ()
11681{
11682return dld_link ();
11683 ;
11684 return 0;
11685}
11686_ACEOF
11687if ac_fn_c_try_link "$LINENO"; then :
11688 ac_cv_lib_dld_dld_link=yes
11689else
11690 ac_cv_lib_dld_dld_link=no
11691fi
11692rm -f core conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11694LIBS=$ac_check_lib_save_LIBS
11695fi
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11697$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011698if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011699 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11700fi
11701
11702
11703fi
11704
11705
11706fi
11707
11708
11709fi
11710
11711
11712fi
11713
11714
11715fi
11716
11717 ;;
11718 esac
11719
11720 if test "x$lt_cv_dlopen" != xno; then
11721 enable_dlopen=yes
11722 else
11723 enable_dlopen=no
11724 fi
11725
11726 case $lt_cv_dlopen in
11727 dlopen)
11728 save_CPPFLAGS="$CPPFLAGS"
11729 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11730
11731 save_LDFLAGS="$LDFLAGS"
11732 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11733
11734 save_LIBS="$LIBS"
11735 LIBS="$lt_cv_dlopen_libs $LIBS"
11736
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11738$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011739if ${lt_cv_dlopen_self+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011740 $as_echo_n "(cached) " >&6
11741else
11742 if test "$cross_compiling" = yes; then :
11743 lt_cv_dlopen_self=cross
11744else
11745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11746 lt_status=$lt_dlunknown
11747 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclaw285d81b2020-09-07 15:43:04 +020011748#line 11748 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011749#include "confdefs.h"
11750
11751#if HAVE_DLFCN_H
11752#include <dlfcn.h>
11753#endif
11754
11755#include <stdio.h>
11756
11757#ifdef RTLD_GLOBAL
11758# define LT_DLGLOBAL RTLD_GLOBAL
11759#else
11760# ifdef DL_GLOBAL
11761# define LT_DLGLOBAL DL_GLOBAL
11762# else
11763# define LT_DLGLOBAL 0
11764# endif
11765#endif
11766
11767/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11768 find out it does not work in some platform. */
11769#ifndef LT_DLLAZY_OR_NOW
11770# ifdef RTLD_LAZY
11771# define LT_DLLAZY_OR_NOW RTLD_LAZY
11772# else
11773# ifdef DL_LAZY
11774# define LT_DLLAZY_OR_NOW DL_LAZY
11775# else
11776# ifdef RTLD_NOW
11777# define LT_DLLAZY_OR_NOW RTLD_NOW
11778# else
11779# ifdef DL_NOW
11780# define LT_DLLAZY_OR_NOW DL_NOW
11781# else
11782# define LT_DLLAZY_OR_NOW 0
11783# endif
11784# endif
11785# endif
11786# endif
11787#endif
11788
11789/* When -fvisbility=hidden is used, assume the code has been annotated
11790 correspondingly for the symbols needed. */
11791#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11792void fnord () __attribute__((visibility("default")));
11793#endif
11794
11795void fnord () { int i=42; }
11796int main ()
11797{
11798 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11799 int status = $lt_dlunknown;
11800
11801 if (self)
11802 {
11803 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11804 else
11805 {
11806 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11807 else puts (dlerror ());
11808 }
11809 /* dlclose (self); */
11810 }
11811 else
11812 puts (dlerror ());
11813
11814 return status;
11815}
11816_LT_EOF
11817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11818 (eval $ac_link) 2>&5
11819 ac_status=$?
11820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11821 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11822 (./conftest; exit; ) >&5 2>/dev/null
11823 lt_status=$?
11824 case x$lt_status in
11825 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11826 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11827 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11828 esac
11829 else :
11830 # compilation failed
11831 lt_cv_dlopen_self=no
11832 fi
11833fi
11834rm -fr conftest*
11835
11836
11837fi
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11839$as_echo "$lt_cv_dlopen_self" >&6; }
11840
11841 if test "x$lt_cv_dlopen_self" = xyes; then
11842 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11844$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011845if ${lt_cv_dlopen_self_static+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011846 $as_echo_n "(cached) " >&6
11847else
11848 if test "$cross_compiling" = yes; then :
11849 lt_cv_dlopen_self_static=cross
11850else
11851 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11852 lt_status=$lt_dlunknown
11853 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclaw285d81b2020-09-07 15:43:04 +020011854#line 11854 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011855#include "confdefs.h"
11856
11857#if HAVE_DLFCN_H
11858#include <dlfcn.h>
11859#endif
11860
11861#include <stdio.h>
11862
11863#ifdef RTLD_GLOBAL
11864# define LT_DLGLOBAL RTLD_GLOBAL
11865#else
11866# ifdef DL_GLOBAL
11867# define LT_DLGLOBAL DL_GLOBAL
11868# else
11869# define LT_DLGLOBAL 0
11870# endif
11871#endif
11872
11873/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11874 find out it does not work in some platform. */
11875#ifndef LT_DLLAZY_OR_NOW
11876# ifdef RTLD_LAZY
11877# define LT_DLLAZY_OR_NOW RTLD_LAZY
11878# else
11879# ifdef DL_LAZY
11880# define LT_DLLAZY_OR_NOW DL_LAZY
11881# else
11882# ifdef RTLD_NOW
11883# define LT_DLLAZY_OR_NOW RTLD_NOW
11884# else
11885# ifdef DL_NOW
11886# define LT_DLLAZY_OR_NOW DL_NOW
11887# else
11888# define LT_DLLAZY_OR_NOW 0
11889# endif
11890# endif
11891# endif
11892# endif
11893#endif
11894
11895/* When -fvisbility=hidden is used, assume the code has been annotated
11896 correspondingly for the symbols needed. */
11897#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11898void fnord () __attribute__((visibility("default")));
11899#endif
11900
11901void fnord () { int i=42; }
11902int main ()
11903{
11904 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11905 int status = $lt_dlunknown;
11906
11907 if (self)
11908 {
11909 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11910 else
11911 {
11912 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11913 else puts (dlerror ());
11914 }
11915 /* dlclose (self); */
11916 }
11917 else
11918 puts (dlerror ());
11919
11920 return status;
11921}
11922_LT_EOF
11923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11924 (eval $ac_link) 2>&5
11925 ac_status=$?
11926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11927 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11928 (./conftest; exit; ) >&5 2>/dev/null
11929 lt_status=$?
11930 case x$lt_status in
11931 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11932 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11933 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11934 esac
11935 else :
11936 # compilation failed
11937 lt_cv_dlopen_self_static=no
11938 fi
11939fi
11940rm -fr conftest*
11941
11942
11943fi
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11945$as_echo "$lt_cv_dlopen_self_static" >&6; }
11946 fi
11947
11948 CPPFLAGS="$save_CPPFLAGS"
11949 LDFLAGS="$save_LDFLAGS"
11950 LIBS="$save_LIBS"
11951 ;;
11952 esac
11953
11954 case $lt_cv_dlopen_self in
11955 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11956 *) enable_dlopen_self=unknown ;;
11957 esac
11958
11959 case $lt_cv_dlopen_self_static in
11960 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11961 *) enable_dlopen_self_static=unknown ;;
11962 esac
11963fi
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981striplib=
11982old_striplib=
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11984$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11985if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11986 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11987 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11989$as_echo "yes" >&6; }
11990else
11991# FIXME - insert some real tests, host_os isn't really good enough
11992 case $host_os in
11993 darwin*)
11994 if test -n "$STRIP" ; then
11995 striplib="$STRIP -x"
11996 old_striplib="$STRIP -S"
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11998$as_echo "yes" >&6; }
11999 else
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001$as_echo "no" >&6; }
12002 fi
12003 ;;
12004 *)
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006$as_echo "no" >&6; }
12007 ;;
12008 esac
12009fi
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022 # Report which library types will actually be built
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12024$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12026$as_echo "$can_build_shared" >&6; }
12027
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12029$as_echo_n "checking whether to build shared libraries... " >&6; }
12030 test "$can_build_shared" = "no" && enable_shared=no
12031
12032 # On AIX, shared libraries and static libraries use the same namespace, and
12033 # are all built from PIC.
12034 case $host_os in
12035 aix3*)
12036 test "$enable_shared" = yes && enable_static=no
12037 if test -n "$RANLIB"; then
12038 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12039 postinstall_cmds='$RANLIB $lib'
12040 fi
12041 ;;
12042
12043 aix[4-9]*)
12044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12045 test "$enable_shared" = yes && enable_static=no
12046 fi
12047 ;;
12048 esac
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12050$as_echo "$enable_shared" >&6; }
12051
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12053$as_echo_n "checking whether to build static libraries... " >&6; }
12054 # Make sure either enable_shared or enable_static is yes.
12055 test "$enable_shared" = yes || enable_static=yes
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12057$as_echo "$enable_static" >&6; }
12058
12059
12060
12061
12062fi
12063ac_ext=c
12064ac_cpp='$CPP $CPPFLAGS'
12065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12067ac_compiler_gnu=$ac_cv_c_compiler_gnu
12068
12069CC="$lt_save_CC"
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083 ac_config_commands="$ac_config_commands libtool"
12084
12085
12086
12087
12088# Only expand once:
12089
12090
12091
12092
12093
12094 gdc_save_DFLAGS=$GDCFLAGS
12095 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12096
12097
12098# Source file extension for D test sources.
12099ac_ext=d
12100
12101# Object file extension for compiled D test sources.
12102objext=o
12103objext_D=$objext
12104
12105# Code to be used in simple compile tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000012106lt_simple_compile_test_code="\
12107 module object;
12108 shared int some_variable = 0;
12109"
Iain Buclawb4c522f2018-10-28 19:51:47 +000012110
12111# Code to be used in simple link tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000012112lt_simple_link_test_code="\
12113 module object;
12114 extern(C) int main() { return 0; }
12115"
Iain Buclawb4c522f2018-10-28 19:51:47 +000012116
12117# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12118
12119
12120
12121
12122
12123
12124# If no C compiler was specified, use CC.
12125LTCC=${LTCC-"$CC"}
12126
12127# If no C compiler flags were specified, use CFLAGS.
12128LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12129
12130# Allow CC to be a program name with arguments.
12131compiler=$CC
12132
12133
12134# save warnings/boilerplate of simple test code
12135ac_outfile=conftest.$ac_objext
12136echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12137eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12138_lt_compiler_boilerplate=`cat conftest.err`
12139$RM conftest*
12140
12141ac_outfile=conftest.$ac_objext
12142echo "$lt_simple_link_test_code" >conftest.$ac_ext
12143eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12144_lt_linker_boilerplate=`cat conftest.err`
12145$RM -r conftest*
12146
12147
12148# Allow CC to be a program name with arguments.
12149lt_save_CC=$CC
12150lt_save_CFLAGS=$CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000012151lt_save_GCC=$GCC
12152GCC=yes
12153CC=${GDC-"gdc"}
Iain Buclawb4c522f2018-10-28 19:51:47 +000012154CFLAGS=$GDCFLAGS
12155compiler=$CC
12156compiler_D=$CC
12157LD_D=$CC
12158for cc_temp in $compiler""; do
12159 case $cc_temp in
12160 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12161 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12162 \-*) ;;
12163 *) break;;
12164 esac
12165done
12166cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12167
12168
12169# GDC did not exist at the time GCC didn't implicitly link libc in.
12170archive_cmds_need_lc_D=no
12171
12172old_archive_cmds_D=$old_archive_cmds
12173reload_flag_D=$reload_flag
12174reload_cmds_D=$reload_cmds
12175
12176## CAVEAT EMPTOR:
12177## There is no encapsulation within the following macros, do not change
12178## the running order or otherwise move them around unless you know exactly
12179## what you are doing...
12180if test -n "$compiler"; then
12181
12182lt_prog_compiler_no_builtin_flag_D=
12183
12184if test "$GCC" = yes; then
12185 case $cc_basename in
12186 nvcc*)
12187 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12188 *)
12189 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12190 esac
12191
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12193$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012194if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012195 $as_echo_n "(cached) " >&6
12196else
12197 lt_cv_prog_compiler_rtti_exceptions=no
12198 ac_outfile=conftest.$ac_objext
12199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12200 lt_compiler_flag="-fno-rtti -fno-exceptions"
12201 # Insert the option either (1) after the last *FLAGS variable, or
12202 # (2) before a word containing "conftest.", or (3) at the end.
12203 # Note that $ac_compile itself does not contain backslashes and begins
12204 # with a dollar sign (not a hyphen), so the echo should work correctly.
12205 # The option is referenced via a variable to avoid confusing sed.
12206 lt_compile=`echo "$ac_compile" | $SED \
12207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12209 -e 's:$: $lt_compiler_flag:'`
12210 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12211 (eval "$lt_compile" 2>conftest.err)
12212 ac_status=$?
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 if (exit $ac_status) && test -s "$ac_outfile"; then
12216 # The compiler can only warn and ignore the option if not recognized
12217 # So say no if there are warnings other than the usual output.
12218 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12221 lt_cv_prog_compiler_rtti_exceptions=yes
12222 fi
12223 fi
12224 $RM conftest*
12225
12226fi
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12228$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12229
12230if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12231 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12232else
12233 :
12234fi
12235
12236fi
12237
12238
12239
12240 lt_prog_compiler_wl_D=
12241lt_prog_compiler_pic_D=
12242lt_prog_compiler_static_D=
12243
12244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12245$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12246
12247 if test "$GCC" = yes; then
12248 lt_prog_compiler_wl_D='-Wl,'
12249 lt_prog_compiler_static_D='-static'
12250
12251 case $host_os in
12252 aix*)
12253 # All AIX code is PIC.
12254 if test "$host_cpu" = ia64; then
12255 # AIX 5 now supports IA64 processor
12256 lt_prog_compiler_static_D='-Bstatic'
12257 fi
12258 lt_prog_compiler_pic_D='-fPIC'
12259 ;;
12260
12261 amigaos*)
12262 case $host_cpu in
12263 powerpc)
12264 # see comment about AmigaOS4 .so support
12265 lt_prog_compiler_pic_D='-fPIC'
12266 ;;
12267 m68k)
12268 # FIXME: we need at least 68020 code to build shared libraries, but
12269 # adding the `-m68020' flag to GCC prevents building anything better,
12270 # like `-m68040'.
12271 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12272 ;;
12273 esac
12274 ;;
12275
12276 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12277 # PIC is the default for these OSes.
12278 ;;
12279
12280 mingw* | cygwin* | pw32* | os2* | cegcc*)
12281 # This hack is so that the source file can tell whether it is being
12282 # built for inclusion in a dll (and should export symbols for example).
12283 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12284 # (--disable-auto-import) libraries
12285 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12286 ;;
12287
12288 darwin* | rhapsody*)
12289 # PIC is the default on this platform
12290 # Common symbols not allowed in MH_DYLIB files
12291 lt_prog_compiler_pic_D='-fno-common'
12292 ;;
12293
12294 haiku*)
12295 # PIC is the default for Haiku.
12296 # The "-static" flag exists, but is broken.
12297 lt_prog_compiler_static_D=
12298 ;;
12299
12300 hpux*)
12301 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12302 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12303 # sets the default TLS model and affects inlining.
12304 case $host_cpu in
12305 hppa*64*)
12306 # +Z the default
12307 ;;
12308 *)
12309 lt_prog_compiler_pic_D='-fPIC'
12310 ;;
12311 esac
12312 ;;
12313
12314 interix[3-9]*)
12315 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12316 # Instead, we relocate shared libraries at runtime.
12317 ;;
12318
12319 msdosdjgpp*)
12320 # Just because we use GCC doesn't mean we suddenly get shared libraries
12321 # on systems that don't support them.
12322 lt_prog_compiler_can_build_shared_D=no
12323 enable_shared=no
12324 ;;
12325
12326 *nto* | *qnx*)
12327 # QNX uses GNU C++, but need to define -shared option too, otherwise
12328 # it will coredump.
12329 lt_prog_compiler_pic_D='-fPIC -shared'
12330 ;;
12331
12332 sysv4*MP*)
12333 if test -d /usr/nec; then
12334 lt_prog_compiler_pic_D=-Kconform_pic
12335 fi
12336 ;;
12337
12338 *)
12339 lt_prog_compiler_pic_D='-fPIC'
12340 ;;
12341 esac
12342
12343 case $cc_basename in
12344 nvcc*) # Cuda Compiler Driver 2.2
12345 lt_prog_compiler_wl_D='-Xlinker '
12346 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12347 ;;
12348 esac
12349 else
12350 # PORTME Check for flag to pass linker flags through the system compiler.
12351 case $host_os in
12352 aix*)
12353 lt_prog_compiler_wl_D='-Wl,'
12354 if test "$host_cpu" = ia64; then
12355 # AIX 5 now supports IA64 processor
12356 lt_prog_compiler_static_D='-Bstatic'
12357 else
12358 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12359 fi
12360 ;;
12361
12362 mingw* | cygwin* | pw32* | os2* | cegcc*)
12363 # This hack is so that the source file can tell whether it is being
12364 # built for inclusion in a dll (and should export symbols for example).
12365 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12366 ;;
12367
12368 hpux9* | hpux10* | hpux11*)
12369 lt_prog_compiler_wl_D='-Wl,'
12370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12371 # not for PA HP-UX.
12372 case $host_cpu in
12373 hppa*64*|ia64*)
12374 # +Z the default
12375 ;;
12376 *)
12377 lt_prog_compiler_pic_D='+Z'
12378 ;;
12379 esac
12380 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12381 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12382 ;;
12383
12384 irix5* | irix6* | nonstopux*)
12385 lt_prog_compiler_wl_D='-Wl,'
12386 # PIC (with -KPIC) is the default.
12387 lt_prog_compiler_static_D='-non_shared'
12388 ;;
12389
12390 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12391 case $cc_basename in
12392 # old Intel for x86_64 which still supported -KPIC.
12393 ecc*)
12394 lt_prog_compiler_wl_D='-Wl,'
12395 lt_prog_compiler_pic_D='-KPIC'
12396 lt_prog_compiler_static_D='-static'
12397 ;;
12398 # icc used to be incompatible with GCC.
12399 # ICC 10 doesn't accept -KPIC any more.
12400 icc* | ifort*)
12401 lt_prog_compiler_wl_D='-Wl,'
12402 lt_prog_compiler_pic_D='-fPIC'
12403 lt_prog_compiler_static_D='-static'
12404 ;;
12405 # Lahey Fortran 8.1.
12406 lf95*)
12407 lt_prog_compiler_wl_D='-Wl,'
12408 lt_prog_compiler_pic_D='--shared'
12409 lt_prog_compiler_static_D='--static'
12410 ;;
12411 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12412 # Portland Group compilers (*not* the Pentium gcc compiler,
12413 # which looks to be a dead project)
12414 lt_prog_compiler_wl_D='-Wl,'
12415 lt_prog_compiler_pic_D='-fpic'
12416 lt_prog_compiler_static_D='-Bstatic'
12417 ;;
12418 ccc*)
12419 lt_prog_compiler_wl_D='-Wl,'
12420 # All Alpha code is PIC.
12421 lt_prog_compiler_static_D='-non_shared'
12422 ;;
12423 xl* | bgxl* | bgf* | mpixl*)
12424 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12425 lt_prog_compiler_wl_D='-Wl,'
12426 lt_prog_compiler_pic_D='-qpic'
12427 lt_prog_compiler_static_D='-qstaticlink'
12428 ;;
12429 *)
12430 case `$CC -V 2>&1 | sed 5q` in
12431 *Sun\ F* | *Sun*Fortran*)
12432 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12433 lt_prog_compiler_pic_D='-KPIC'
12434 lt_prog_compiler_static_D='-Bstatic'
12435 lt_prog_compiler_wl_D=''
12436 ;;
12437 *Sun\ C*)
12438 # Sun C 5.9
12439 lt_prog_compiler_pic_D='-KPIC'
12440 lt_prog_compiler_static_D='-Bstatic'
12441 lt_prog_compiler_wl_D='-Wl,'
12442 ;;
12443 esac
12444 ;;
12445 esac
12446 ;;
12447
12448 newsos6)
12449 lt_prog_compiler_pic_D='-KPIC'
12450 lt_prog_compiler_static_D='-Bstatic'
12451 ;;
12452
12453 *nto* | *qnx*)
12454 # QNX uses GNU C++, but need to define -shared option too, otherwise
12455 # it will coredump.
12456 lt_prog_compiler_pic_D='-fPIC -shared'
12457 ;;
12458
12459 osf3* | osf4* | osf5*)
12460 lt_prog_compiler_wl_D='-Wl,'
12461 # All OSF/1 code is PIC.
12462 lt_prog_compiler_static_D='-non_shared'
12463 ;;
12464
12465 rdos*)
12466 lt_prog_compiler_static_D='-non_shared'
12467 ;;
12468
12469 solaris*)
12470 lt_prog_compiler_pic_D='-KPIC'
12471 lt_prog_compiler_static_D='-Bstatic'
12472 case $cc_basename in
12473 f77* | f90* | f95*)
12474 lt_prog_compiler_wl_D='-Qoption ld ';;
12475 *)
12476 lt_prog_compiler_wl_D='-Wl,';;
12477 esac
12478 ;;
12479
12480 sunos4*)
12481 lt_prog_compiler_wl_D='-Qoption ld '
12482 lt_prog_compiler_pic_D='-PIC'
12483 lt_prog_compiler_static_D='-Bstatic'
12484 ;;
12485
12486 sysv4 | sysv4.2uw2* | sysv4.3*)
12487 lt_prog_compiler_wl_D='-Wl,'
12488 lt_prog_compiler_pic_D='-KPIC'
12489 lt_prog_compiler_static_D='-Bstatic'
12490 ;;
12491
12492 sysv4*MP*)
12493 if test -d /usr/nec ;then
12494 lt_prog_compiler_pic_D='-Kconform_pic'
12495 lt_prog_compiler_static_D='-Bstatic'
12496 fi
12497 ;;
12498
12499 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12500 lt_prog_compiler_wl_D='-Wl,'
12501 lt_prog_compiler_pic_D='-KPIC'
12502 lt_prog_compiler_static_D='-Bstatic'
12503 ;;
12504
12505 unicos*)
12506 lt_prog_compiler_wl_D='-Wl,'
12507 lt_prog_compiler_can_build_shared_D=no
12508 ;;
12509
12510 uts4*)
12511 lt_prog_compiler_pic_D='-pic'
12512 lt_prog_compiler_static_D='-Bstatic'
12513 ;;
12514
12515 *)
12516 lt_prog_compiler_can_build_shared_D=no
12517 ;;
12518 esac
12519 fi
12520
12521case $host_os in
12522 # For platforms which do not support PIC, -DPIC is meaningless:
12523 *djgpp*)
12524 lt_prog_compiler_pic_D=
12525 ;;
12526 *)
12527 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12528 ;;
12529esac
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12531$as_echo "$lt_prog_compiler_pic_D" >&6; }
12532
12533
12534
12535#
12536# Check to make sure the PIC flag actually works.
12537#
12538if test -n "$lt_prog_compiler_pic_D"; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12540$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012541if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012542 $as_echo_n "(cached) " >&6
12543else
12544 lt_cv_prog_compiler_pic_works_D=no
12545 ac_outfile=conftest.$ac_objext
12546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12547 lt_compiler_flag="$lt_prog_compiler_pic_D"
12548 # Insert the option either (1) after the last *FLAGS variable, or
12549 # (2) before a word containing "conftest.", or (3) at the end.
12550 # Note that $ac_compile itself does not contain backslashes and begins
12551 # with a dollar sign (not a hyphen), so the echo should work correctly.
12552 # The option is referenced via a variable to avoid confusing sed.
12553 lt_compile=`echo "$ac_compile" | $SED \
12554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12556 -e 's:$: $lt_compiler_flag:'`
12557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12558 (eval "$lt_compile" 2>conftest.err)
12559 ac_status=$?
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 if (exit $ac_status) && test -s "$ac_outfile"; then
12563 # The compiler can only warn and ignore the option if not recognized
12564 # So say no if there are warnings other than the usual output.
12565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12567 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12568 lt_cv_prog_compiler_pic_works_D=yes
12569 fi
12570 fi
12571 $RM conftest*
12572
12573fi
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12575$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12576
12577if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12578 case $lt_prog_compiler_pic_D in
12579 "" | " "*) ;;
12580 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12581 esac
12582else
12583 lt_prog_compiler_pic_D=
12584 lt_prog_compiler_can_build_shared_D=no
12585fi
12586
12587fi
12588
12589
12590
12591#
12592# Check to make sure the static flag actually works.
12593#
12594wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12596$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012597if ${lt_cv_prog_compiler_static_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012598 $as_echo_n "(cached) " >&6
12599else
12600 lt_cv_prog_compiler_static_works_D=no
12601 save_LDFLAGS="$LDFLAGS"
12602 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12603 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12605 # The linker can only warn and ignore the option if not recognized
12606 # So say no if there are warnings
12607 if test -s conftest.err; then
12608 # Append any errors to the config.log.
12609 cat conftest.err 1>&5
12610 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12612 if diff conftest.exp conftest.er2 >/dev/null; then
12613 lt_cv_prog_compiler_static_works_D=yes
12614 fi
12615 else
12616 lt_cv_prog_compiler_static_works_D=yes
12617 fi
12618 fi
12619 $RM -r conftest*
12620 LDFLAGS="$save_LDFLAGS"
12621
12622fi
12623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12624$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12625
12626if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12627 :
12628else
12629 lt_prog_compiler_static_D=
12630fi
12631
12632
12633
12634
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12636$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012637if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012638 $as_echo_n "(cached) " >&6
12639else
12640 lt_cv_prog_compiler_c_o_D=no
12641 $RM -r conftest 2>/dev/null
12642 mkdir conftest
12643 cd conftest
12644 mkdir out
12645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12646
12647 lt_compiler_flag="-o out/conftest2.$ac_objext"
12648 # Insert the option either (1) after the last *FLAGS variable, or
12649 # (2) before a word containing "conftest.", or (3) at the end.
12650 # Note that $ac_compile itself does not contain backslashes and begins
12651 # with a dollar sign (not a hyphen), so the echo should work correctly.
12652 lt_compile=`echo "$ac_compile" | $SED \
12653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12655 -e 's:$: $lt_compiler_flag:'`
12656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12657 (eval "$lt_compile" 2>out/conftest.err)
12658 ac_status=$?
12659 cat out/conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12662 then
12663 # The compiler can only warn and ignore the option if not recognized
12664 # So say no if there are warnings
12665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12668 lt_cv_prog_compiler_c_o_D=yes
12669 fi
12670 fi
12671 chmod u+w . 2>&5
12672 $RM conftest*
12673 # SGI C++ compiler will create directory out/ii_files/ for
12674 # template instantiation
12675 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12676 $RM out/* && rmdir out
12677 cd ..
12678 $RM -r conftest
12679 $RM conftest*
12680
12681fi
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12683$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12684
12685
12686
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12688$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012689if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012690 $as_echo_n "(cached) " >&6
12691else
12692 lt_cv_prog_compiler_c_o_D=no
12693 $RM -r conftest 2>/dev/null
12694 mkdir conftest
12695 cd conftest
12696 mkdir out
12697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12698
12699 lt_compiler_flag="-o out/conftest2.$ac_objext"
12700 # Insert the option either (1) after the last *FLAGS variable, or
12701 # (2) before a word containing "conftest.", or (3) at the end.
12702 # Note that $ac_compile itself does not contain backslashes and begins
12703 # with a dollar sign (not a hyphen), so the echo should work correctly.
12704 lt_compile=`echo "$ac_compile" | $SED \
12705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12707 -e 's:$: $lt_compiler_flag:'`
12708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12709 (eval "$lt_compile" 2>out/conftest.err)
12710 ac_status=$?
12711 cat out/conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12714 then
12715 # The compiler can only warn and ignore the option if not recognized
12716 # So say no if there are warnings
12717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12720 lt_cv_prog_compiler_c_o_D=yes
12721 fi
12722 fi
12723 chmod u+w . 2>&5
12724 $RM conftest*
12725 # SGI C++ compiler will create directory out/ii_files/ for
12726 # template instantiation
12727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12728 $RM out/* && rmdir out
12729 cd ..
12730 $RM -r conftest
12731 $RM conftest*
12732
12733fi
12734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12735$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12736
12737
12738
12739
12740hard_links="nottested"
12741if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12742 # do not overwrite the value of need_locks provided by the user
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12744$as_echo_n "checking if we can lock with hard links... " >&6; }
12745 hard_links=yes
12746 $RM conftest*
12747 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12748 touch conftest.a
12749 ln conftest.a conftest.b 2>&5 || hard_links=no
12750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12752$as_echo "$hard_links" >&6; }
12753 if test "$hard_links" = no; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12755$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12756 need_locks=warn
12757 fi
12758else
12759 need_locks=no
12760fi
12761
12762
12763
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12765$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12766
12767 runpath_var=
12768 allow_undefined_flag_D=
12769 always_export_symbols_D=no
12770 archive_cmds_D=
12771 archive_expsym_cmds_D=
12772 compiler_needs_object_D=no
12773 enable_shared_with_static_runtimes_D=no
12774 export_dynamic_flag_spec_D=
12775 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12776 hardcode_automatic_D=no
12777 hardcode_direct_D=no
12778 hardcode_direct_absolute_D=no
12779 hardcode_libdir_flag_spec_D=
12780 hardcode_libdir_flag_spec_ld_D=
12781 hardcode_libdir_separator_D=
12782 hardcode_minus_L_D=no
12783 hardcode_shlibpath_var_D=unsupported
12784 inherit_rpath_D=no
12785 link_all_deplibs_D=unknown
12786 module_cmds_D=
12787 module_expsym_cmds_D=
12788 old_archive_from_new_cmds_D=
12789 old_archive_from_expsyms_cmds_D=
12790 thread_safe_flag_spec_D=
12791 whole_archive_flag_spec_D=
12792 # include_expsyms should be a list of space-separated symbols to be *always*
12793 # included in the symbol list
12794 include_expsyms_D=
12795 # exclude_expsyms can be an extended regexp of symbols to exclude
12796 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12797 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12798 # as well as any symbol that contains `d'.
12799 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12800 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12801 # platforms (ab)use it in PIC code, but their linkers get confused if
12802 # the symbol is explicitly referenced. Since portable code cannot
12803 # rely on this symbol name, it's probably fine to never include it in
12804 # preloaded symbol tables.
12805 # Exclude shared library initialization/finalization symbols.
12806 extract_expsyms_cmds=
12807
12808 case $host_os in
12809 cygwin* | mingw* | pw32* | cegcc*)
12810 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12811 # When not using gcc, we currently assume that we are using
12812 # Microsoft Visual C++.
12813 if test "$GCC" != yes; then
12814 with_gnu_ld=no
12815 fi
12816 ;;
12817 interix*)
12818 # we just hope/assume this is gcc and not c89 (= MSVC++)
12819 with_gnu_ld=yes
12820 ;;
12821 openbsd*)
12822 with_gnu_ld=no
12823 ;;
12824 esac
12825
12826 ld_shlibs_D=yes
12827
12828 # On some targets, GNU ld is compatible enough with the native linker
12829 # that we're better off using the native interface for both.
12830 lt_use_gnu_ld_interface=no
12831 if test "$with_gnu_ld" = yes; then
12832 case $host_os in
12833 aix*)
12834 # The AIX port of GNU ld has always aspired to compatibility
12835 # with the native linker. However, as the warning in the GNU ld
12836 # block says, versions before 2.19.5* couldn't really create working
12837 # shared libraries, regardless of the interface used.
12838 case `$LD -v 2>&1` in
12839 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12840 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12841 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12842 *)
12843 lt_use_gnu_ld_interface=yes
12844 ;;
12845 esac
12846 ;;
12847 *)
12848 lt_use_gnu_ld_interface=yes
12849 ;;
12850 esac
12851 fi
12852
12853 if test "$lt_use_gnu_ld_interface" = yes; then
12854 # If archive_cmds runs LD, not CC, wlarc should be empty
12855 wlarc='${wl}'
12856
12857 # Set some defaults for GNU ld with shared library support. These
12858 # are reset later if shared libraries are not supported. Putting them
12859 # here allows them to be overridden if necessary.
12860 runpath_var=LD_RUN_PATH
12861 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12862 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12863 # ancient GNU ld didn't support --whole-archive et. al.
12864 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12865 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12866 else
12867 whole_archive_flag_spec_D=
12868 fi
12869 supports_anon_versioning=no
12870 case `$LD -v 2>&1` in
12871 *GNU\ gold*) supports_anon_versioning=yes ;;
12872 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12873 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12874 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12875 *\ 2.11.*) ;; # other 2.11 versions
12876 *) supports_anon_versioning=yes ;;
12877 esac
12878
12879 # See if GNU ld supports shared libraries.
12880 case $host_os in
12881 aix[3-9]*)
12882 # On AIX/PPC, the GNU linker is very broken
12883 if test "$host_cpu" != ia64; then
12884 ld_shlibs_D=no
12885 cat <<_LT_EOF 1>&2
12886
12887*** Warning: the GNU linker, at least up to release 2.19, is reported
12888*** to be unable to reliably create shared libraries on AIX.
12889*** Therefore, libtool is disabling shared libraries support. If you
12890*** really care for shared libraries, you may want to install binutils
12891*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12892*** You will then need to restart the configuration process.
12893
12894_LT_EOF
12895 fi
12896 ;;
12897
12898 amigaos*)
12899 case $host_cpu in
12900 powerpc)
12901 # see comment about AmigaOS4 .so support
12902 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12903 archive_expsym_cmds_D=''
12904 ;;
12905 m68k)
12906 archive_cmds_D='$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)'
12907 hardcode_libdir_flag_spec_D='-L$libdir'
12908 hardcode_minus_L_D=yes
12909 ;;
12910 esac
12911 ;;
12912
12913 beos*)
12914 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12915 allow_undefined_flag_D=unsupported
12916 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12917 # support --undefined. This deserves some investigation. FIXME
12918 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919 else
12920 ld_shlibs_D=no
12921 fi
12922 ;;
12923
12924 cygwin* | mingw* | pw32* | cegcc*)
12925 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12926 # as there is no search path for DLLs.
12927 hardcode_libdir_flag_spec_D='-L$libdir'
12928 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12929 allow_undefined_flag_D=unsupported
12930 always_export_symbols_D=no
12931 enable_shared_with_static_runtimes_D=yes
12932 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12933
12934 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12935 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12936 # If the export-symbols file already is a .def file (1st line
12937 # is EXPORTS), use it as is; otherwise, prepend...
12938 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12939 cp $export_symbols $output_objdir/$soname.def;
12940 else
12941 echo EXPORTS > $output_objdir/$soname.def;
12942 cat $export_symbols >> $output_objdir/$soname.def;
12943 fi~
12944 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12945 else
12946 ld_shlibs_D=no
12947 fi
12948 ;;
12949
12950 haiku*)
12951 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12952 link_all_deplibs_D=yes
12953 ;;
12954
12955 interix[3-9]*)
12956 hardcode_direct_D=no
12957 hardcode_shlibpath_var_D=no
12958 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12959 export_dynamic_flag_spec_D='${wl}-E'
12960 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12961 # Instead, shared libraries are loaded at an image base (0x10000000 by
12962 # default) and relocated if they conflict, which is a slow very memory
12963 # consuming and fragmenting process. To avoid this, we pick a random,
12964 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12965 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12966 archive_cmds_D='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12967 archive_expsym_cmds_D='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'
12968 ;;
12969
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +000012970 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +000012971 tmp_diet=no
12972 if test "$host_os" = linux-dietlibc; then
12973 case $cc_basename in
12974 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12975 esac
12976 fi
12977 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12978 && test "$tmp_diet" = no
12979 then
12980 tmp_addflag=' $pic_flag'
12981 tmp_sharedflag='-shared'
12982 case $cc_basename,$host_cpu in
12983 pgcc*) # Portland Group C compiler
12984 whole_archive_flag_spec_D='${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'
12985 tmp_addflag=' $pic_flag'
12986 ;;
12987 pgf77* | pgf90* | pgf95* | pgfortran*)
12988 # Portland Group f77 and f90 compilers
12989 whole_archive_flag_spec_D='${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'
12990 tmp_addflag=' $pic_flag -Mnomain' ;;
12991 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12992 tmp_addflag=' -i_dynamic' ;;
12993 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12994 tmp_addflag=' -i_dynamic -nofor_main' ;;
12995 ifc* | ifort*) # Intel Fortran compiler
12996 tmp_addflag=' -nofor_main' ;;
12997 lf95*) # Lahey Fortran 8.1
12998 whole_archive_flag_spec_D=
12999 tmp_sharedflag='--shared' ;;
13000 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13001 tmp_sharedflag='-qmkshrobj'
13002 tmp_addflag= ;;
13003 nvcc*) # Cuda Compiler Driver 2.2
13004 whole_archive_flag_spec_D='${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'
13005 compiler_needs_object_D=yes
13006 ;;
13007 esac
13008 case `$CC -V 2>&1 | sed 5q` in
13009 *Sun\ C*) # Sun C 5.9
13010 whole_archive_flag_spec_D='${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'
13011 compiler_needs_object_D=yes
13012 tmp_sharedflag='-G' ;;
13013 *Sun\ F*) # Sun Fortran 8.3
13014 tmp_sharedflag='-G' ;;
13015 esac
13016 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13017
13018 if test "x$supports_anon_versioning" = xyes; then
13019 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13020 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13021 echo "local: *; };" >> $output_objdir/$libname.ver~
13022 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13023 fi
13024
13025 case $cc_basename in
13026 xlf* | bgf* | bgxlf* | mpixlf*)
13027 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13028 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
13029 hardcode_libdir_flag_spec_D=
13030 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
13031 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13032 if test "x$supports_anon_versioning" = xyes; then
13033 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13034 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13035 echo "local: *; };" >> $output_objdir/$libname.ver~
13036 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13037 fi
13038 ;;
13039 esac
13040 else
13041 ld_shlibs_D=no
13042 fi
13043 ;;
13044
13045 netbsd*)
13046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13047 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13048 wlarc=
13049 else
13050 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13051 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13052 fi
13053 ;;
13054
13055 solaris*)
13056 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13057 ld_shlibs_D=no
13058 cat <<_LT_EOF 1>&2
13059
13060*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13061*** create shared libraries on Solaris systems. Therefore, libtool
13062*** is disabling shared libraries support. We urge you to upgrade GNU
13063*** binutils to release 2.9.1 or newer. Another option is to modify
13064*** your PATH or compiler configuration so that the native linker is
13065*** used, and then restart.
13066
13067_LT_EOF
13068 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13069 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13070 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13071 else
13072 ld_shlibs_D=no
13073 fi
13074 ;;
13075
13076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13077 case `$LD -v 2>&1` in
13078 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13079 ld_shlibs_D=no
13080 cat <<_LT_EOF 1>&2
13081
13082*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13083*** reliably create shared libraries on SCO systems. Therefore, libtool
13084*** is disabling shared libraries support. We urge you to upgrade GNU
13085*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13086*** your PATH or compiler configuration so that the native linker is
13087*** used, and then restart.
13088
13089_LT_EOF
13090 ;;
13091 *)
13092 # For security reasons, it is highly recommended that you always
13093 # use absolute paths for naming shared libraries, and exclude the
13094 # DT_RUNPATH tag from executables and libraries. But doing so
13095 # requires that you compile everything twice, which is a pain.
13096 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13097 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13098 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13099 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13100 else
13101 ld_shlibs_D=no
13102 fi
13103 ;;
13104 esac
13105 ;;
13106
13107 sunos4*)
13108 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13109 wlarc=
13110 hardcode_direct_D=yes
13111 hardcode_shlibpath_var_D=no
13112 ;;
13113
13114 *)
13115 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13116 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13117 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13118 else
13119 ld_shlibs_D=no
13120 fi
13121 ;;
13122 esac
13123
13124 if test "$ld_shlibs_D" = no; then
13125 runpath_var=
13126 hardcode_libdir_flag_spec_D=
13127 export_dynamic_flag_spec_D=
13128 whole_archive_flag_spec_D=
13129 fi
13130 else
13131 # PORTME fill in a description of your system's linker (not GNU ld)
13132 case $host_os in
13133 aix3*)
13134 allow_undefined_flag_D=unsupported
13135 always_export_symbols_D=yes
13136 archive_expsym_cmds_D='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13137 # Note: this linker hardcodes the directories in LIBPATH if there
13138 # are no directories specified by -L.
13139 hardcode_minus_L_D=yes
13140 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13141 # Neither direct hardcoding nor static linking is supported with a
13142 # broken collect2.
13143 hardcode_direct_D=unsupported
13144 fi
13145 ;;
13146
13147 aix[4-9]*)
13148 if test "$host_cpu" = ia64; then
13149 # On IA64, the linker does run time linking by default, so we don't
13150 # have to do anything special.
13151 aix_use_runtimelinking=no
13152 exp_sym_flag='-Bexport'
13153 no_entry_flag=""
13154 else
13155 # If we're using GNU nm, then we don't want the "-C" option.
13156 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13157 # Also, AIX nm treats weak defined symbols like other global
13158 # defined symbols, whereas GNU nm marks them as "W".
13159 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13160 export_symbols_cmds_D='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13161 else
13162 export_symbols_cmds_D='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13163 fi
13164 aix_use_runtimelinking=no
13165
13166 # Test if we are trying to use run time linking or normal
13167 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13168 # need to do runtime linking.
13169 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13170 for ld_flag in $LDFLAGS; do
13171 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13172 aix_use_runtimelinking=yes
13173 break
13174 fi
13175 done
13176 ;;
13177 esac
13178
13179 exp_sym_flag='-bexport'
13180 no_entry_flag='-bnoentry'
13181 fi
13182
13183 # When large executables or shared objects are built, AIX ld can
13184 # have problems creating the table of contents. If linking a library
13185 # or program results in "error TOC overflow" add -mminimal-toc to
13186 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13187 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13188
13189 archive_cmds_D=''
13190 hardcode_direct_D=yes
13191 hardcode_direct_absolute_D=yes
13192 hardcode_libdir_separator_D=':'
13193 link_all_deplibs_D=yes
13194 file_list_spec_D='${wl}-f,'
13195
13196 if test "$GCC" = yes; then
13197 case $host_os in aix4.[012]|aix4.[012].*)
13198 # We only want to do this on AIX 4.2 and lower, the check
13199 # below for broken collect2 doesn't work under 4.3+
13200 collect2name=`${CC} -print-prog-name=collect2`
13201 if test -f "$collect2name" &&
13202 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13203 then
13204 # We have reworked collect2
13205 :
13206 else
13207 # We have old collect2
13208 hardcode_direct_D=unsupported
13209 # It fails to find uninstalled libraries when the uninstalled
13210 # path is not listed in the libpath. Setting hardcode_minus_L
13211 # to unsupported forces relinking
13212 hardcode_minus_L_D=yes
13213 hardcode_libdir_flag_spec_D='-L$libdir'
13214 hardcode_libdir_separator_D=
13215 fi
13216 ;;
13217 esac
13218 shared_flag='-shared'
13219 if test "$aix_use_runtimelinking" = yes; then
13220 shared_flag="$shared_flag "'${wl}-G'
13221 fi
13222 else
13223 # not using gcc
13224 if test "$host_cpu" = ia64; then
13225 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13226 # chokes on -Wl,-G. The following line is correct:
13227 shared_flag='-G'
13228 else
13229 if test "$aix_use_runtimelinking" = yes; then
13230 shared_flag='${wl}-G'
13231 else
13232 shared_flag='${wl}-bM:SRE'
13233 fi
13234 fi
13235 fi
13236
13237 export_dynamic_flag_spec_D='${wl}-bexpall'
13238 # It seems that -bexpall does not export symbols beginning with
13239 # underscore (_), so it is better to generate a list of symbols to export.
13240 always_export_symbols_D=yes
13241 if test "$aix_use_runtimelinking" = yes; then
13242 # Warning - without using the other runtime loading flags (-brtl),
13243 # -berok will link without error, but may produce a broken library.
13244 allow_undefined_flag_D='-berok'
13245 # Determine the default libpath from the value encoded in an
13246 # empty executable.
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248/* end confdefs.h. */
13249
13250int
13251main ()
13252{
13253
13254 ;
13255 return 0;
13256}
13257_ACEOF
13258if ac_fn_c_try_link "$LINENO"; then :
13259
13260lt_aix_libpath_sed='
13261 /Import File Strings/,/^$/ {
13262 /^0/ {
13263 s/^0 *\(.*\)$/\1/
13264 p
13265 }
13266 }'
13267aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13268# Check for a 64-bit object if we didn't find anything.
13269if test -z "$aix_libpath"; then
13270 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13271fi
13272fi
13273rm -f core conftest.err conftest.$ac_objext \
13274 conftest$ac_exeext conftest.$ac_ext
13275if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13276
13277 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13278 archive_expsym_cmds_D='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13279 else
13280 if test "$host_cpu" = ia64; then
13281 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13282 allow_undefined_flag_D="-z nodefs"
13283 archive_expsym_cmds_D="\$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"
13284 else
13285 # Determine the default libpath from the value encoded in an
13286 # empty executable.
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288/* end confdefs.h. */
13289
13290int
13291main ()
13292{
13293
13294 ;
13295 return 0;
13296}
13297_ACEOF
13298if ac_fn_c_try_link "$LINENO"; then :
13299
13300lt_aix_libpath_sed='
13301 /Import File Strings/,/^$/ {
13302 /^0/ {
13303 s/^0 *\(.*\)$/\1/
13304 p
13305 }
13306 }'
13307aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13308# Check for a 64-bit object if we didn't find anything.
13309if test -z "$aix_libpath"; then
13310 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13311fi
13312fi
13313rm -f core conftest.err conftest.$ac_objext \
13314 conftest$ac_exeext conftest.$ac_ext
13315if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13316
13317 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13318 # Warning - without using the other run time loading flags,
13319 # -berok will link without error, but may produce a broken library.
13320 no_undefined_flag_D=' ${wl}-bernotok'
13321 allow_undefined_flag_D=' ${wl}-berok'
13322 if test "$with_gnu_ld" = yes; then
13323 # We only use this code for GNU lds that support --whole-archive.
13324 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13325 else
13326 # Exported symbols can be pulled into shared objects from archives
13327 whole_archive_flag_spec_D='$convenience'
13328 fi
13329 archive_cmds_need_lc_D=yes
13330 # This is similar to how AIX traditionally builds its shared libraries.
13331 archive_expsym_cmds_D="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13332 fi
13333 fi
13334 ;;
13335
13336 amigaos*)
13337 case $host_cpu in
13338 powerpc)
13339 # see comment about AmigaOS4 .so support
13340 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341 archive_expsym_cmds_D=''
13342 ;;
13343 m68k)
13344 archive_cmds_D='$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)'
13345 hardcode_libdir_flag_spec_D='-L$libdir'
13346 hardcode_minus_L_D=yes
13347 ;;
13348 esac
13349 ;;
13350
13351 bsdi[45]*)
13352 export_dynamic_flag_spec_D=-rdynamic
13353 ;;
13354
13355 cygwin* | mingw* | pw32* | cegcc*)
13356 # When not using gcc, we currently assume that we are using
13357 # Microsoft Visual C++.
13358 # hardcode_libdir_flag_spec is actually meaningless, as there is
13359 # no search path for DLLs.
13360 hardcode_libdir_flag_spec_D=' '
13361 allow_undefined_flag_D=unsupported
13362 # Tell ltmain to make .lib files, not .a files.
13363 libext=lib
13364 # Tell ltmain to make .dll files, not .so files.
13365 shrext_cmds=".dll"
13366 # FIXME: Setting linknames here is a bad hack.
13367 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13368 # The linker will automatically build a .lib file if we build a DLL.
13369 old_archive_from_new_cmds_D='true'
13370 # FIXME: Should let the user specify the lib program.
13371 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13372 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13373 enable_shared_with_static_runtimes_D=yes
13374 ;;
13375
13376 darwin* | rhapsody*)
13377
13378
13379 archive_cmds_need_lc_D=no
13380 hardcode_direct_D=no
13381 hardcode_automatic_D=yes
13382 hardcode_shlibpath_var_D=unsupported
13383 if test "$lt_cv_ld_force_load" = "yes"; then
13384 whole_archive_flag_spec_D='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13385 else
13386 whole_archive_flag_spec_D=''
13387 fi
13388 link_all_deplibs_D=yes
13389 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13390 case $cc_basename in
13391 ifort*) _lt_dar_can_shared=yes ;;
13392 *) _lt_dar_can_shared=$GCC ;;
13393 esac
13394 if test "$_lt_dar_can_shared" = "yes"; then
13395 output_verbose_link_cmd=func_echo_all
13396 archive_cmds_D="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13397 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13398 archive_expsym_cmds_D="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}"
13399 module_expsym_cmds_D="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}"
13400
13401 else
13402 ld_shlibs_D=no
13403 fi
13404
13405 ;;
13406
13407 dgux*)
13408 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13409 hardcode_libdir_flag_spec_D='-L$libdir'
13410 hardcode_shlibpath_var_D=no
13411 ;;
13412
13413 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13414 # support. Future versions do this automatically, but an explicit c++rt0.o
13415 # does not break anything, and helps significantly (at the cost of a little
13416 # extra space).
13417 freebsd2.2*)
13418 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13419 hardcode_libdir_flag_spec_D='-R$libdir'
13420 hardcode_direct_D=yes
13421 hardcode_shlibpath_var_D=no
13422 ;;
13423
13424 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13425 freebsd2.*)
13426 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13427 hardcode_direct_D=yes
13428 hardcode_minus_L_D=yes
13429 hardcode_shlibpath_var_D=no
13430 ;;
13431
13432 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13433 freebsd* | dragonfly*)
13434 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13435 hardcode_libdir_flag_spec_D='-R$libdir'
13436 hardcode_direct_D=yes
13437 hardcode_shlibpath_var_D=no
13438 ;;
13439
13440 hpux9*)
13441 if test "$GCC" = yes; then
13442 archive_cmds_D='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13443 else
13444 archive_cmds_D='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13445 fi
13446 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13447 hardcode_libdir_separator_D=:
13448 hardcode_direct_D=yes
13449
13450 # hardcode_minus_L: Not really in the search PATH,
13451 # but as the default location of the library.
13452 hardcode_minus_L_D=yes
13453 export_dynamic_flag_spec_D='${wl}-E'
13454 ;;
13455
13456 hpux10*)
13457 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13458 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13459 else
13460 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13461 fi
13462 if test "$with_gnu_ld" = no; then
13463 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13464 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13465 hardcode_libdir_separator_D=:
13466 hardcode_direct_D=yes
13467 hardcode_direct_absolute_D=yes
13468 export_dynamic_flag_spec_D='${wl}-E'
13469 # hardcode_minus_L: Not really in the search PATH,
13470 # but as the default location of the library.
13471 hardcode_minus_L_D=yes
13472 fi
13473 ;;
13474
13475 hpux11*)
13476 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13477 case $host_cpu in
13478 hppa*64*)
13479 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13480 ;;
13481 ia64*)
13482 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13483 ;;
13484 *)
13485 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13486 ;;
13487 esac
13488 else
13489 case $host_cpu in
13490 hppa*64*)
13491 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13492 ;;
13493 ia64*)
13494 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13495 ;;
13496 *)
13497 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13498 ;;
13499 esac
13500 fi
13501 if test "$with_gnu_ld" = no; then
13502 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13503 hardcode_libdir_separator_D=:
13504
13505 case $host_cpu in
13506 hppa*64*|ia64*)
13507 hardcode_direct_D=no
13508 hardcode_shlibpath_var_D=no
13509 ;;
13510 *)
13511 hardcode_direct_D=yes
13512 hardcode_direct_absolute_D=yes
13513 export_dynamic_flag_spec_D='${wl}-E'
13514
13515 # hardcode_minus_L: Not really in the search PATH,
13516 # but as the default location of the library.
13517 hardcode_minus_L_D=yes
13518 ;;
13519 esac
13520 fi
13521 ;;
13522
13523 irix5* | irix6* | nonstopux*)
13524 if test "$GCC" = yes; then
13525 archive_cmds_D='$CC -shared $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'
13526 # Try to use the -exported_symbol ld option, if it does not
13527 # work, assume that -exports_file does not work either and
13528 # implicitly export all symbols.
13529 save_LDFLAGS="$LDFLAGS"
13530 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532/* end confdefs.h. */
13533int foo(void) {}
13534_ACEOF
13535if ac_fn_c_try_link "$LINENO"; then :
13536 archive_expsym_cmds_D='$CC -shared $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'
13537
13538fi
13539rm -f core conftest.err conftest.$ac_objext \
13540 conftest$ac_exeext conftest.$ac_ext
13541 LDFLAGS="$save_LDFLAGS"
13542 else
13543 archive_cmds_D='$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'
13544 archive_expsym_cmds_D='$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'
13545 fi
13546 archive_cmds_need_lc_D='no'
13547 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13548 hardcode_libdir_separator_D=:
13549 inherit_rpath_D=yes
13550 link_all_deplibs_D=yes
13551 ;;
13552
13553 netbsd*)
13554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13555 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13556 else
13557 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13558 fi
13559 hardcode_libdir_flag_spec_D='-R$libdir'
13560 hardcode_direct_D=yes
13561 hardcode_shlibpath_var_D=no
13562 ;;
13563
13564 newsos6)
13565 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13566 hardcode_direct_D=yes
13567 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13568 hardcode_libdir_separator_D=:
13569 hardcode_shlibpath_var_D=no
13570 ;;
13571
13572 *nto* | *qnx*)
13573 ;;
13574
13575 openbsd*)
13576 if test -f /usr/libexec/ld.so; then
13577 hardcode_direct_D=yes
13578 hardcode_shlibpath_var_D=no
13579 hardcode_direct_absolute_D=yes
13580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13581 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13582 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13583 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13584 export_dynamic_flag_spec_D='${wl}-E'
13585 else
13586 case $host_os in
13587 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13588 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13589 hardcode_libdir_flag_spec_D='-R$libdir'
13590 ;;
13591 *)
13592 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13593 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13594 ;;
13595 esac
13596 fi
13597 else
13598 ld_shlibs_D=no
13599 fi
13600 ;;
13601
13602 os2*)
13603 hardcode_libdir_flag_spec_D='-L$libdir'
13604 hardcode_minus_L_D=yes
13605 allow_undefined_flag_D=unsupported
13606 archive_cmds_D='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13607 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13608 ;;
13609
13610 osf3*)
13611 if test "$GCC" = yes; then
13612 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13613 archive_cmds_D='$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'
13614 else
13615 allow_undefined_flag_D=' -expect_unresolved \*'
13616 archive_cmds_D='$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'
13617 fi
13618 archive_cmds_need_lc_D='no'
13619 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13620 hardcode_libdir_separator_D=:
13621 ;;
13622
13623 osf4* | osf5*) # as osf3* with the addition of -msym flag
13624 if test "$GCC" = yes; then
13625 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13626 archive_cmds_D='$CC -shared${allow_undefined_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'
13627 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13628 else
13629 allow_undefined_flag_D=' -expect_unresolved \*'
13630 archive_cmds_D='$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'
13631 archive_expsym_cmds_D='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13632 $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'
13633
13634 # Both c and cxx compiler support -rpath directly
13635 hardcode_libdir_flag_spec_D='-rpath $libdir'
13636 fi
13637 archive_cmds_need_lc_D='no'
13638 hardcode_libdir_separator_D=:
13639 ;;
13640
13641 solaris*)
13642 no_undefined_flag_D=' -z defs'
13643 if test "$GCC" = yes; then
13644 wlarc='${wl}'
13645 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13646 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13647 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13648 else
13649 case `$CC -V 2>&1` in
13650 *"Compilers 5.0"*)
13651 wlarc=''
13652 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13653 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13654 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13655 ;;
13656 *)
13657 wlarc='${wl}'
13658 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13659 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13660 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13661 ;;
13662 esac
13663 fi
13664 hardcode_libdir_flag_spec_D='-R$libdir'
13665 hardcode_shlibpath_var_D=no
13666 case $host_os in
13667 solaris2.[0-5] | solaris2.[0-5].*) ;;
13668 *)
13669 # The compiler driver will combine and reorder linker options,
13670 # but understands `-z linker_flag'. GCC discards it without `$wl',
13671 # but is careful enough not to reorder.
13672 # Supported since Solaris 2.6 (maybe 2.5.1?)
13673 if test "$GCC" = yes; then
13674 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13675 else
13676 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13677 fi
13678 ;;
13679 esac
13680 link_all_deplibs_D=yes
13681 ;;
13682
13683 sunos4*)
13684 if test "x$host_vendor" = xsequent; then
13685 # Use $CC to link under sequent, because it throws in some extra .o
13686 # files that make .init and .fini sections work.
13687 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13688 else
13689 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13690 fi
13691 hardcode_libdir_flag_spec_D='-L$libdir'
13692 hardcode_direct_D=yes
13693 hardcode_minus_L_D=yes
13694 hardcode_shlibpath_var_D=no
13695 ;;
13696
13697 sysv4)
13698 case $host_vendor in
13699 sni)
13700 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13701 hardcode_direct_D=yes # is this really true???
13702 ;;
13703 siemens)
13704 ## LD is ld it makes a PLAMLIB
13705 ## CC just makes a GrossModule.
13706 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13707 reload_cmds_D='$CC -r -o $output$reload_objs'
13708 hardcode_direct_D=no
13709 ;;
13710 motorola)
13711 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13712 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13713 ;;
13714 esac
13715 runpath_var='LD_RUN_PATH'
13716 hardcode_shlibpath_var_D=no
13717 ;;
13718
13719 sysv4.3*)
13720 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13721 hardcode_shlibpath_var_D=no
13722 export_dynamic_flag_spec_D='-Bexport'
13723 ;;
13724
13725 sysv4*MP*)
13726 if test -d /usr/nec; then
13727 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13728 hardcode_shlibpath_var_D=no
13729 runpath_var=LD_RUN_PATH
13730 hardcode_runpath_var=yes
13731 ld_shlibs_D=yes
13732 fi
13733 ;;
13734
13735 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13736 no_undefined_flag_D='${wl}-z,text'
13737 archive_cmds_need_lc_D=no
13738 hardcode_shlibpath_var_D=no
13739 runpath_var='LD_RUN_PATH'
13740
13741 if test "$GCC" = yes; then
13742 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13743 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13744 else
13745 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13746 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747 fi
13748 ;;
13749
13750 sysv5* | sco3.2v5* | sco5v6*)
13751 # Note: We can NOT use -z defs as we might desire, because we do not
13752 # link with -lc, and that would cause any symbols used from libc to
13753 # always be unresolved, which means just about no library would
13754 # ever link correctly. If we're not using GNU ld we use -z text
13755 # though, which does catch some bad symbols but isn't as heavy-handed
13756 # as -z defs.
13757 no_undefined_flag_D='${wl}-z,text'
13758 allow_undefined_flag_D='${wl}-z,nodefs'
13759 archive_cmds_need_lc_D=no
13760 hardcode_shlibpath_var_D=no
13761 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13762 hardcode_libdir_separator_D=':'
13763 link_all_deplibs_D=yes
13764 export_dynamic_flag_spec_D='${wl}-Bexport'
13765 runpath_var='LD_RUN_PATH'
13766
13767 if test "$GCC" = yes; then
13768 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770 else
13771 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13772 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13773 fi
13774 ;;
13775
13776 uts4*)
13777 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13778 hardcode_libdir_flag_spec_D='-L$libdir'
13779 hardcode_shlibpath_var_D=no
13780 ;;
13781
13782 *)
13783 ld_shlibs_D=no
13784 ;;
13785 esac
13786
13787 if test x$host_vendor = xsni; then
13788 case $host in
13789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13790 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13791 ;;
13792 esac
13793 fi
13794 fi
13795
13796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13797$as_echo "$ld_shlibs_D" >&6; }
13798test "$ld_shlibs_D" = no && can_build_shared=no
13799
13800with_gnu_ld_D=$with_gnu_ld
13801
13802
13803
13804
13805
13806
13807#
13808# Do we need to explicitly link libc?
13809#
13810case "x$archive_cmds_need_lc_D" in
13811x|xyes)
13812 # Assume -lc should be added
13813 archive_cmds_need_lc_D=yes
13814
13815 if test "$enable_shared" = yes && test "$GCC" = yes; then
13816 case $archive_cmds_D in
13817 *'~'*)
13818 # FIXME: we may have to deal with multi-command sequences.
13819 ;;
13820 '$CC '*)
13821 # Test whether the compiler implicitly links with -lc since on some
13822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13823 # to ld, don't add -lc before -lgcc.
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13825$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000013826if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000013827 $as_echo_n "(cached) " >&6
13828else
13829 $RM conftest*
13830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13831
13832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13833 (eval $ac_compile) 2>&5
13834 ac_status=$?
13835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13836 test $ac_status = 0; } 2>conftest.err; then
13837 soname=conftest
13838 lib=conftest
13839 libobjs=conftest.$ac_objext
13840 deplibs=
13841 wl=$lt_prog_compiler_wl_D
13842 pic_flag=$lt_prog_compiler_pic_D
13843 compiler_flags=-v
13844 linker_flags=-v
13845 verstring=
13846 output_objdir=.
13847 libname=conftest
13848 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13849 allow_undefined_flag_D=
13850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13851 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13852 ac_status=$?
13853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13854 test $ac_status = 0; }
13855 then
13856 lt_cv_archive_cmds_need_lc_D=no
13857 else
13858 lt_cv_archive_cmds_need_lc_D=yes
13859 fi
13860 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13861 else
13862 cat conftest.err 1>&5
13863 fi
13864 $RM conftest*
13865
13866fi
13867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13868$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13869 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13870 ;;
13871 esac
13872 fi
13873 ;;
13874esac
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13940$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13941hardcode_action_D=
13942if test -n "$hardcode_libdir_flag_spec_D" ||
13943 test -n "$runpath_var_D" ||
13944 test "X$hardcode_automatic_D" = "Xyes" ; then
13945
13946 # We can hardcode non-existent directories.
13947 if test "$hardcode_direct_D" != no &&
13948 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13949 # have to relink, otherwise we might link with an installed library
13950 # when we should be linking with a yet-to-be-installed one
13951 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13952 test "$hardcode_minus_L_D" != no; then
13953 # Linking always hardcodes the temporary library directory.
13954 hardcode_action_D=relink
13955 else
13956 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13957 hardcode_action_D=immediate
13958 fi
13959else
13960 # We cannot hardcode anything, or else we can only hardcode existing
13961 # directories.
13962 hardcode_action_D=unsupported
13963fi
13964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13965$as_echo "$hardcode_action_D" >&6; }
13966
13967if test "$hardcode_action_D" = relink ||
13968 test "$inherit_rpath_D" = yes; then
13969 # Fast installation is not supported
13970 enable_fast_install=no
13971elif test "$shlibpath_overrides_runpath" = yes ||
13972 test "$enable_shared" = no; then
13973 # Fast installation is not necessary
13974 enable_fast_install=needless
13975fi
13976
13977
13978
13979
13980
13981
13982
13983fi
13984
13985ac_ext=c
13986ac_cpp='$CPP $CPPFLAGS'
13987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13989ac_compiler_gnu=$ac_cv_c_compiler_gnu
13990
13991
13992GCC=$lt_save_GCC
13993CC=$lt_save_CC
13994CFLAGS=$lt_save_CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000013995
13996 GDCFLAGS=$gdc_save_DFLAGS
13997
Iain Buclawb4c522f2018-10-28 19:51:47 +000013998
13999# libtool variables for Phobos shared and position-independent compiles.
14000#
14001# Use phobos_compiler_shared_flag to designate the compile-time flags for
14002# creating shared objects. Default: -fversion=Shared.
14003#
14004# Use phobos_compiler_pic_flag to designate the compile-time flags for
14005# creating position-independent objects. This varies with the target
14006# hardware and operating system, but is often: -fPIC.
14007#
14008# The distinction between pic and shared compilation flags is not present in
14009# libtool, and so we make it here. How it is handled is that in shared
14010# compilations the `lt_prog_compiler_pic_D' variable is used to instead
14011# ensure that conditional compilation of shared runtime code is compiled in.
14012# The original PIC flags are then used in the compilation of every object.
14013#
14014# Why are objects destined for libgphobos.a compiled with -fPIC?
14015# Because -fPIC is not harmful to use for objects destined for static
14016# libraries. In addition, using -fPIC will allow the use of static
14017# libgphobos.a in the creation of other D shared libraries.
14018if test "$enable_shared" = yes; then
14019 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
14020 phobos_compiler_shared_flag="-fversion=Shared"
14021else
14022 phobos_compiler_pic_flag=
14023 phobos_compiler_shared_flag=
14024fi
14025
14026
14027
14028# Override the libtool's pic_flag and pic_mode.
14029# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14030# NB: this impacts --with-pic and --without-pic.
14031lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
14032pic_mode='default'
14033
14034# Determine what GCC version number to use in filesystem paths.
14035
14036 get_gcc_base_ver="cat"
14037
14038# Check whether --with-gcc-major-version-only was given.
14039if test "${with_gcc_major_version_only+set}" = set; then :
14040 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14041 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14042 fi
14043
14044fi
14045
14046
14047
14048
14049# libphobos/libdruntime specific options and feature detection
14050
14051 # These need to be absolute paths, yet at the same time need to
14052 # canonicalize only relative paths, because then amd will not unmount
14053 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14054 libphobos_builddir=`${PWDCMD-pwd}`
14055 case $srcdir in
14056 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
14057 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14058 esac
14059
14060
14061
14062
14063 if test ${multilib} = yes; then
14064 multilib_arg="--enable-multilib"
14065 else
14066 multilib_arg=
14067 fi
14068
14069
14070 # Check whether --enable-werror was given.
14071if test "${enable_werror+set}" = set; then :
14072 enableval=$enable_werror;
14073fi
14074
14075 WERROR_FLAG=""
14076 if test "x$enable_werror" = "xyes"; then
14077 WERROR_FLAG="-Werror"
14078 fi
14079
Iain Buclawb4c522f2018-10-28 19:51:47 +000014080
Iain Buclaw2493e712019-04-24 22:46:59 +000014081 druntime_target_cpu_parsed=""
14082 case "$target_cpu" in
14083 aarch64*)
14084 druntime_target_cpu_parsed="aarch64"
14085 ;;
14086 arm*) druntime_target_cpu_parsed="arm"
14087 ;;
14088 mips*) druntime_target_cpu_parsed="mips"
14089 ;;
Iain Buclaw8b530862020-04-28 21:42:41 +020014090 powerpc*)
Iain Buclaw1b0cbe02020-04-26 11:32:57 +020014091 druntime_target_cpu_parsed="powerpc"
Iain Buclaw2493e712019-04-24 22:46:59 +000014092 ;;
Rainer Orthb16f2142019-04-25 12:39:33 +000014093 i[34567]86|x86_64)
Iain Buclaw2493e712019-04-24 22:46:59 +000014094 druntime_target_cpu_parsed="x86"
14095 ;;
Robin Dapp88e508f2020-04-07 21:05:38 +020014096 s390x)
14097 druntime_target_cpu_parsed="s390x"
14098 ;;
14099 s390)
14100 druntime_target_cpu_parsed="s390"
14101 ;;
Iain Buclaw2493e712019-04-24 22:46:59 +000014102 esac
14103 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14104 DRUNTIME_CPU_AARCH64_TRUE=
14105 DRUNTIME_CPU_AARCH64_FALSE='#'
14106else
14107 DRUNTIME_CPU_AARCH64_TRUE='#'
14108 DRUNTIME_CPU_AARCH64_FALSE=
14109fi
14110
14111 if test "$druntime_target_cpu_parsed" = "arm"; then
14112 DRUNTIME_CPU_ARM_TRUE=
14113 DRUNTIME_CPU_ARM_FALSE='#'
14114else
14115 DRUNTIME_CPU_ARM_TRUE='#'
14116 DRUNTIME_CPU_ARM_FALSE=
14117fi
14118
14119 if test "$druntime_target_cpu_parsed" = "mips"; then
14120 DRUNTIME_CPU_MIPS_TRUE=
14121 DRUNTIME_CPU_MIPS_FALSE='#'
14122else
14123 DRUNTIME_CPU_MIPS_TRUE='#'
14124 DRUNTIME_CPU_MIPS_FALSE=
14125fi
14126
14127 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14128 DRUNTIME_CPU_POWERPC_TRUE=
14129 DRUNTIME_CPU_POWERPC_FALSE='#'
14130else
14131 DRUNTIME_CPU_POWERPC_TRUE='#'
14132 DRUNTIME_CPU_POWERPC_FALSE=
14133fi
14134
Iain Buclaw2493e712019-04-24 22:46:59 +000014135 if test "$druntime_target_cpu_parsed" = "x86"; then
14136 DRUNTIME_CPU_X86_TRUE=
14137 DRUNTIME_CPU_X86_FALSE='#'
14138else
14139 DRUNTIME_CPU_X86_TRUE='#'
14140 DRUNTIME_CPU_X86_FALSE=
14141fi
14142
Robin Dapp88e508f2020-04-07 21:05:38 +020014143 if test "$druntime_target_cpu_parsed" = "s390x"; then
14144 DRUNTIME_CPU_SYSTEMZ_TRUE=
14145 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14146else
14147 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14148 DRUNTIME_CPU_SYSTEMZ_FALSE=
14149fi
14150
14151 if test "$druntime_target_cpu_parsed" = "s390"; then
14152 DRUNTIME_CPU_S390_TRUE=
14153 DRUNTIME_CPU_S390_FALSE='#'
14154else
14155 DRUNTIME_CPU_S390_TRUE='#'
14156 DRUNTIME_CPU_S390_FALSE=
14157fi
14158
Iain Buclaw2493e712019-04-24 22:46:59 +000014159
14160
Iain Buclawb4c522f2018-10-28 19:51:47 +000014161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14162$as_echo_n "checking for target OS... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014163if ${druntime_cv_target_os+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014164 $as_echo_n "(cached) " >&6
14165else
14166 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14167fi
14168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14169$as_echo "$druntime_cv_target_os" >&6; }
14170 if test -z "$druntime_cv_target_os"; then :
Joseph Myers22e05272018-10-31 17:03:16 +000014171 as_fn_error $? "can't detect target OS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014172fi
14173
14174
14175
Iain Buclawb4c522f2018-10-28 19:51:47 +000014176
14177 druntime_target_os_parsed=""
14178 case "$druntime_cv_target_os" in
14179 aix*) druntime_target_os_parsed="aix"
14180 ;;
14181 *android*)
14182 druntime_target_os_parsed="android"
14183 ;;
14184 darwin*) druntime_target_os_parsed="darwin"
14185 ;;
14186 dragonfly*)
14187 druntime_target_os_parsed="dragonflybsd"
14188 ;;
14189 freebsd*|k*bsd*-gnu)
14190 druntime_target_os_parsed="freebsd"
14191 ;;
14192 openbsd*)
14193 druntime_target_os_parsed="openbsd"
14194 ;;
14195 netbsd*)
14196 druntime_target_os_parsed="netbsd"
14197 ;;
14198 linux*) druntime_target_os_parsed="linux"
14199 ;;
14200 mingw*) druntime_target_os_parsed="mingw"
14201 ;;
14202 *solaris*) druntime_target_os_parsed="solaris"
14203 esac
14204 if test "$druntime_target_os_parsed" = "aix"; then
14205 DRUNTIME_OS_AIX_TRUE=
14206 DRUNTIME_OS_AIX_FALSE='#'
14207else
14208 DRUNTIME_OS_AIX_TRUE='#'
14209 DRUNTIME_OS_AIX_FALSE=
14210fi
14211
14212 if test "$druntime_target_os_parsed" = "android"; then
14213 DRUNTIME_OS_ANDROID_TRUE=
14214 DRUNTIME_OS_ANDROID_FALSE='#'
14215else
14216 DRUNTIME_OS_ANDROID_TRUE='#'
14217 DRUNTIME_OS_ANDROID_FALSE=
14218fi
14219
14220 if test "$druntime_target_os_parsed" = "darwin"; then
14221 DRUNTIME_OS_DARWIN_TRUE=
14222 DRUNTIME_OS_DARWIN_FALSE='#'
14223else
14224 DRUNTIME_OS_DARWIN_TRUE='#'
14225 DRUNTIME_OS_DARWIN_FALSE=
14226fi
14227
14228 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14229 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14230 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14231else
14232 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14233 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14234fi
14235
14236 if test "$druntime_target_os_parsed" = "freebsd"; then
14237 DRUNTIME_OS_FREEBSD_TRUE=
14238 DRUNTIME_OS_FREEBSD_FALSE='#'
14239else
14240 DRUNTIME_OS_FREEBSD_TRUE='#'
14241 DRUNTIME_OS_FREEBSD_FALSE=
14242fi
14243
14244 if test "$druntime_target_os_parsed" = "netbsd"; then
14245 DRUNTIME_OS_NETBSD_TRUE=
14246 DRUNTIME_OS_NETBSD_FALSE='#'
14247else
14248 DRUNTIME_OS_NETBSD_TRUE='#'
14249 DRUNTIME_OS_NETBSD_FALSE=
14250fi
14251
14252 if test "$druntime_target_os_parsed" = "openbsd"; then
14253 DRUNTIME_OS_OPENBSD_TRUE=
14254 DRUNTIME_OS_OPENBSD_FALSE='#'
14255else
14256 DRUNTIME_OS_OPENBSD_TRUE='#'
14257 DRUNTIME_OS_OPENBSD_FALSE=
14258fi
14259
14260 if test "$druntime_target_os_parsed" = "linux"; then
14261 DRUNTIME_OS_LINUX_TRUE=
14262 DRUNTIME_OS_LINUX_FALSE='#'
14263else
14264 DRUNTIME_OS_LINUX_TRUE='#'
14265 DRUNTIME_OS_LINUX_FALSE=
14266fi
14267
14268 if test "$druntime_target_os_parsed" = "mingw"; then
14269 DRUNTIME_OS_MINGW_TRUE=
14270 DRUNTIME_OS_MINGW_FALSE='#'
14271else
14272 DRUNTIME_OS_MINGW_TRUE='#'
14273 DRUNTIME_OS_MINGW_FALSE=
14274fi
14275
14276 if test "$druntime_target_os_parsed" = "solaris"; then
14277 DRUNTIME_OS_SOLARIS_TRUE=
14278 DRUNTIME_OS_SOLARIS_FALSE='#'
14279else
14280 DRUNTIME_OS_SOLARIS_TRUE='#'
14281 DRUNTIME_OS_SOLARIS_FALSE=
14282fi
14283
14284
Iain Buclaw72c136c2020-04-08 22:52:05 +020014285 druntime_target_posix="no"
14286 case "$druntime_cv_target_os" in
14287 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14288 druntime_target_posix="yes"
14289 ;;
14290 esac
14291 if test "$druntime_target_posix" = "yes"; then
14292 DRUNTIME_OS_POSIX_TRUE=
14293 DRUNTIME_OS_POSIX_FALSE='#'
14294else
14295 DRUNTIME_OS_POSIX_TRUE='#'
14296 DRUNTIME_OS_POSIX_FALSE=
14297fi
14298
14299
Iain Buclawb4c522f2018-10-28 19:51:47 +000014300
14301
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14303$as_echo_n "checking for thread model used by GDC... " >&6; }
14304 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14306$as_echo "$d_thread_model" >&6; }
14307
14308 # Map from thread model to thread interface.
14309
14310case $d_thread_model in
14311 aix) DCFG_THREAD_MODEL="Posix" ;;
14312 lynx) DCFG_THREAD_MODEL="Posix" ;;
14313 posix) DCFG_THREAD_MODEL="Posix" ;;
14314 single) DCFG_THREAD_MODEL="Single" ;;
14315 win32) DCFG_THREAD_MODEL="Win32" ;;
14316 # TODO: These targets need porting.
14317 dce|mipssde|rtems|tpf|vxworks)
14318 DCFG_THREAD_MODEL="Single" ;;
14319 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14320esac
14321
14322
14323
14324
14325 ac_ext=c
14326ac_cpp='$CPP $CPPFLAGS'
14327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14329ac_compiler_gnu=$ac_cv_c_compiler_gnu
14330
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14332$as_echo_n "checking for ARM unwinder... " >&6; }
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334/* end confdefs.h. */
14335#include <unwind.h>
14336int
14337main ()
14338{
14339
14340 #if __ARM_EABI_UNWINDER__
14341 #error Yes, it is.
14342 #endif
14343
14344 ;
14345 return 0;
14346}
14347_ACEOF
14348if ac_fn_c_try_compile "$LINENO"; then :
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14350$as_echo "no" >&6; }
14351 DCFG_ARM_EABI_UNWINDER=false
14352else
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14354$as_echo "yes" >&6; }
14355 DCFG_ARM_EABI_UNWINDER=true
14356fi
14357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358
14359 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14360 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14361 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14362else
14363 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14364 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14365fi
14366
14367 ac_ext=c
14368ac_cpp='$CPP $CPPFLAGS'
14369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371ac_compiler_gnu=$ac_cv_c_compiler_gnu
14372
14373
14374
14375 ac_ext=c
14376ac_cpp='$CPP $CPPFLAGS'
14377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14379ac_compiler_gnu=$ac_cv_c_compiler_gnu
14380
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14382$as_echo_n "checking for minfo section bracketing... " >&6; }
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384/* end confdefs.h. */
14385
14386 void* module_info_ptr __attribute__((section ("minfo")));
14387 extern void* __start_minfo __attribute__((visibility ("hidden")));
14388 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14389
14390 int main()
14391 {
14392 // Never run, just to prevent compiler from optimizing access
14393 return &__start_minfo == &__stop_minfo;
14394 }
14395
14396_ACEOF
14397if ac_fn_c_try_link "$LINENO"; then :
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14399$as_echo "yes" >&6; }
14400 DCFG_MINFO_BRACKETING=true
14401else
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14403$as_echo "no" >&6; }
14404 DCFG_MINFO_BRACKETING=false
14405fi
14406rm -f core conftest.err conftest.$ac_objext \
14407 conftest$ac_exeext conftest.$ac_ext
14408
Rainer Orth0b6e3122019-02-14 17:47:49 +000014409 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14410 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14411 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14412else
14413 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14414 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14415fi
14416
Iain Buclawb4c522f2018-10-28 19:51:47 +000014417 ac_ext=c
14418ac_cpp='$CPP $CPPFLAGS'
14419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14421ac_compiler_gnu=$ac_cv_c_compiler_gnu
14422
14423
14424
Rainer Orth235d1c42019-04-14 09:30:42 +000014425 ac_ext=c
14426ac_cpp='$CPP $CPPFLAGS'
14427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14429ac_compiler_gnu=$ac_cv_c_compiler_gnu
14430
14431 ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14432"
14433if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14434 DCFG_DLPI_TLS_MODID=true
14435else
14436 DCFG_DLPI_TLS_MODID=false
14437fi
14438
14439
14440 ac_ext=c
14441ac_cpp='$CPP $CPPFLAGS'
14442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14444ac_compiler_gnu=$ac_cv_c_compiler_gnu
14445
14446
14447
Rainer Orthba838aa2019-04-14 09:24:26 +000014448 case $target in
14449 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14450 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14451 # relocs. Work around by disabling TLS transitions. Not necessary
14452 # on 32-bit x86, but cannot be distinguished reliably in specs.
14453 druntime_ld_prog=`$CC -print-prog-name=ld`
Rainer Orthbca0a322019-05-07 10:38:45 +000014454 druntime_ld_gld=no
14455 druntime_ld_relax_transtls=no
Rainer Orthba838aa2019-04-14 09:24:26 +000014456 if test -n "$druntime_ld_prog" \
14457 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
Rainer Orthbca0a322019-05-07 10:38:45 +000014458 druntime_ld_gld=yes
Rainer Orthba838aa2019-04-14 09:24:26 +000014459 else
Rainer Orthbca0a322019-05-07 10:38:45 +000014460 echo 'int main (void) { return 0; }' > conftest.c
14461 save_LDFLAGS="$LDFLAGS"
14462 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14463 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14464 druntime_ld_relax_transtls=yes
14465 fi
14466 LDFLAGS="$save_LDFLAGS"
14467 rm -f conftest.c conftest
14468 fi
14469 if test "$druntime_ld_relax_transtls" = "yes"; then
Rainer Orthba838aa2019-04-14 09:24:26 +000014470 OS_LINK_SPEC='-z relax=transtls'
14471 fi
14472 ;;
14473 esac
14474
14475
14476
Johannes Pfau36d7f152019-02-18 23:29:39 +000014477 ac_ext=c
14478ac_cpp='$CPP $CPPFLAGS'
14479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14481ac_compiler_gnu=$ac_cv_c_compiler_gnu
14482
14483 DCFG_HAVE_QSORT_R=false
14484 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14485if test "x$ac_cv_func_qsort_r" = xyes; then :
14486 DCFG_HAVE_QSORT_R=true
14487fi
14488
14489
14490 ac_ext=c
14491ac_cpp='$CPP $CPPFLAGS'
14492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14494ac_compiler_gnu=$ac_cv_c_compiler_gnu
14495
14496
14497
Iain Buclawb4c522f2018-10-28 19:51:47 +000014498
14499
14500 gdc_save_DFLAGS=$GDCFLAGS
14501 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14502
14503 ac_ext=d
14504ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14505ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14506ac_compiler_gnu=yes
14507
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14509$as_echo_n "checking for library containing malloc... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014510if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014511 $as_echo_n "(cached) " >&6
14512else
14513 ac_func_search_save_LIBS=$LIBS
14514cat > conftest.$ac_ext <<_ACEOF
14515module mod;
14516 extern(C) int malloc();
14517
14518extern(C) int main() {
14519 malloc(); return 0;
14520}
14521_ACEOF
14522for ac_lib in '' c; do
14523 if test -z "$ac_lib"; then
14524 ac_res="none required"
14525 else
14526 ac_res=-l$ac_lib
14527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14528 fi
14529 if ac_fn_d_try_link "$LINENO"; then :
14530 ac_cv_search_malloc=$ac_res
14531fi
14532rm -f core conftest.err conftest.$ac_objext \
14533 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014534 if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014535 break
14536fi
14537done
Joseph Myers22e05272018-10-31 17:03:16 +000014538if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014539
14540else
14541 ac_cv_search_malloc=no
14542fi
14543rm conftest.$ac_ext
14544LIBS=$ac_func_search_save_LIBS
14545fi
14546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14547$as_echo "$ac_cv_search_malloc" >&6; }
14548ac_res=$ac_cv_search_malloc
14549if test "$ac_res" != no; then :
14550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14551
14552fi
14553
Iain Buclaw6e286c82020-04-09 00:16:57 +020014554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014555$as_echo_n "checking for library containing pthread_create... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014556if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014557 $as_echo_n "(cached) " >&6
14558else
14559 ac_func_search_save_LIBS=$LIBS
14560cat > conftest.$ac_ext <<_ACEOF
14561module mod;
14562 extern(C) int pthread_create();
14563
14564extern(C) int main() {
14565 pthread_create(); return 0;
14566}
14567_ACEOF
14568for ac_lib in '' pthread; do
14569 if test -z "$ac_lib"; then
14570 ac_res="none required"
14571 else
14572 ac_res=-l$ac_lib
14573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14574 fi
14575 if ac_fn_d_try_link "$LINENO"; then :
14576 ac_cv_search_pthread_create=$ac_res
14577fi
14578rm -f core conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014580 if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014581 break
14582fi
14583done
Joseph Myers22e05272018-10-31 17:03:16 +000014584if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014585
14586else
14587 ac_cv_search_pthread_create=no
14588fi
14589rm conftest.$ac_ext
14590LIBS=$ac_func_search_save_LIBS
14591fi
14592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14593$as_echo "$ac_cv_search_pthread_create" >&6; }
14594ac_res=$ac_cv_search_pthread_create
14595if test "$ac_res" != no; then :
14596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14597
14598fi
14599
Iain Buclawb4c522f2018-10-28 19:51:47 +000014600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14601$as_echo_n "checking for library containing cosf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014602if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014603 $as_echo_n "(cached) " >&6
14604else
14605 ac_func_search_save_LIBS=$LIBS
14606cat > conftest.$ac_ext <<_ACEOF
14607module mod;
14608 extern(C) int cosf();
14609
14610extern(C) int main() {
14611 cosf(); return 0;
14612}
14613_ACEOF
14614for ac_lib in '' m; do
14615 if test -z "$ac_lib"; then
14616 ac_res="none required"
14617 else
14618 ac_res=-l$ac_lib
14619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14620 fi
14621 if ac_fn_d_try_link "$LINENO"; then :
14622 ac_cv_search_cosf=$ac_res
14623fi
14624rm -f core conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014626 if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014627 break
14628fi
14629done
Joseph Myers22e05272018-10-31 17:03:16 +000014630if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014631
14632else
14633 ac_cv_search_cosf=no
14634fi
14635rm conftest.$ac_ext
14636LIBS=$ac_func_search_save_LIBS
14637fi
14638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14639$as_echo "$ac_cv_search_cosf" >&6; }
14640ac_res=$ac_cv_search_cosf
14641if test "$ac_res" != no; then :
14642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14643
14644fi
14645
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14647$as_echo_n "checking for library containing clock_gettime... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014648if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014649 $as_echo_n "(cached) " >&6
14650else
14651 ac_func_search_save_LIBS=$LIBS
14652cat > conftest.$ac_ext <<_ACEOF
14653module mod;
14654 extern(C) int clock_gettime();
14655
14656extern(C) int main() {
14657 clock_gettime(); return 0;
14658}
14659_ACEOF
14660for ac_lib in '' rt; do
14661 if test -z "$ac_lib"; then
14662 ac_res="none required"
14663 else
14664 ac_res=-l$ac_lib
14665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14666 fi
14667 if ac_fn_d_try_link "$LINENO"; then :
14668 ac_cv_search_clock_gettime=$ac_res
14669fi
14670rm -f core conftest.err conftest.$ac_objext \
14671 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014672 if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014673 break
14674fi
14675done
Joseph Myers22e05272018-10-31 17:03:16 +000014676if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014677
14678else
14679 ac_cv_search_clock_gettime=no
14680fi
14681rm conftest.$ac_ext
14682LIBS=$ac_func_search_save_LIBS
14683fi
14684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14685$as_echo "$ac_cv_search_clock_gettime" >&6; }
14686ac_res=$ac_cv_search_clock_gettime
14687if test "$ac_res" != no; then :
14688 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14689
14690fi
14691
14692
14693 # This checks to see if the host supports the compiler-generated builtins
14694 # for atomic operations for various integral sizes. Note, this is intended
14695 # to be an all-or-nothing switch, so all the atomic operations that are
14696 # used should be checked.
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14698$as_echo_n "checking for atomic builtins for byte... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014699 if ${druntime_cv_atomic_byte+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014700 $as_echo_n "(cached) " >&6
14701else
14702
14703 cat > conftest.$ac_ext <<_ACEOF
14704module mod;
14705import gcc.builtins;
14706
14707extern(C) int main() {
14708
14709 shared(byte) c1;
14710 byte c2, c3;
14711 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14712 __atomic_load_1(&c1, 5);
14713 __atomic_store_1(&c1, c2, 5);
14714 return 0;
14715
14716}
14717_ACEOF
14718if ac_fn_d_try_link "$LINENO"; then :
14719 druntime_cv_atomic_byte=yes
14720else
14721 druntime_cv_atomic_byte=no
14722fi
14723rm -f core conftest.err conftest.$ac_objext \
14724 conftest$ac_exeext conftest.$ac_ext
14725
14726fi
14727
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14729$as_echo "$druntime_cv_atomic_byte" >&6; }
14730
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14732$as_echo_n "checking for atomic builtins for short... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014733 if ${druntime_cv_atomic_short+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014734 $as_echo_n "(cached) " >&6
14735else
14736
14737 cat > conftest.$ac_ext <<_ACEOF
14738module mod;
14739import gcc.builtins;
14740
14741extern(C) int main() {
14742
14743 shared(short) c1;
14744 short c2, c3;
14745 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14746 __atomic_load_2(&c1, 5);
14747 __atomic_store_2(&c1, c2, 5);
14748 return 0;
14749
14750}
14751_ACEOF
14752if ac_fn_d_try_link "$LINENO"; then :
14753 druntime_cv_atomic_short=yes
14754else
14755 druntime_cv_atomic_short=no
14756fi
14757rm -f core conftest.err conftest.$ac_objext \
14758 conftest$ac_exeext conftest.$ac_ext
14759
14760fi
14761
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14763$as_echo "$druntime_cv_atomic_short" >&6; }
14764
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14766$as_echo_n "checking for atomic builtins for int... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014767 if ${druntime_cv_atomic_int+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014768 $as_echo_n "(cached) " >&6
14769else
14770
14771 cat > conftest.$ac_ext <<_ACEOF
14772module mod;
14773import gcc.builtins;
14774
14775extern(C) int main() {
14776
14777 shared(int) c1;
14778 int c2, c3;
14779 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14780 __atomic_load_4(&c1, 5);
14781 __atomic_store_4(&c1, c2, 5);
14782 return 0;
14783
14784}
14785_ACEOF
14786if ac_fn_d_try_link "$LINENO"; then :
14787 druntime_cv_atomic_int=yes
14788else
14789 druntime_cv_atomic_int=no
14790fi
14791rm -f core conftest.err conftest.$ac_objext \
14792 conftest$ac_exeext conftest.$ac_ext
14793
14794fi
14795
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14797$as_echo "$druntime_cv_atomic_int" >&6; }
14798
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14800$as_echo_n "checking for atomic builtins for long... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014801 if ${druntime_cv_atomic_long+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014802 $as_echo_n "(cached) " >&6
14803else
14804
14805 cat > conftest.$ac_ext <<_ACEOF
14806module mod;
14807import gcc.builtins;
14808
14809extern(C) int main() {
14810
14811 shared(long) c1;
14812 long c2, c3;
14813 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14814 __atomic_load_8(&c1, 5);
14815 __atomic_store_8(&c1, c2, 5);
14816 return 0;
14817
14818}
14819_ACEOF
14820if ac_fn_d_try_link "$LINENO"; then :
14821 druntime_cv_atomic_long=yes
14822else
14823 druntime_cv_atomic_long=no
14824fi
14825rm -f core conftest.err conftest.$ac_objext \
14826 conftest$ac_exeext conftest.$ac_ext
14827
14828fi
14829
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14831$as_echo "$druntime_cv_atomic_long" >&6; }
14832
14833 # Have atomic builtin support if all but the long test above passes.
14834 DCFG_HAVE_ATOMIC_BUILTINS=false
14835 if test "$druntime_cv_atomic_byte" = yes \
14836 && test "$druntime_cv_atomic_short" = yes \
14837 && test "$druntime_cv_atomic_int" = yes; then \
14838 DCFG_HAVE_ATOMIC_BUILTINS=true
14839 fi
14840
14841 # Have 64-bit atomic support if the long test above passes.
14842 DCFG_HAVE_64BIT_ATOMICS=false
14843 if test "$druntime_cv_atomic_long" = yes; then
14844 DCFG_HAVE_64BIT_ATOMICS=true
14845 fi
14846
14847
14848
14849
14850 ac_ext=c
14851ac_cpp='$CPP $CPPFLAGS'
14852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854ac_compiler_gnu=$ac_cv_c_compiler_gnu
14855
14856
14857 GDCFLAGS=$gdc_save_DFLAGS
14858
14859
14860
14861
14862# Check whether --with-libatomic was given.
14863if test "${with_libatomic+set}" = set; then :
14864 withval=$with_libatomic;
14865fi
14866
14867
14868 DCFG_HAVE_LIBATOMIC=false
14869 LIBATOMIC=
14870 if test "x$with_libatomic" != "xno"; then :
14871
14872 DCFG_HAVE_LIBATOMIC=true
14873 LIBATOMIC=../../libatomic/libatomic_convenience.la
14874
14875else
14876
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14878$as_echo_n "checking for libatomic... " >&6; }
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14880$as_echo "disabled" >&6; }
14881
14882fi
14883
14884
14885
14886
14887
14888 ac_ext=c
14889ac_cpp='$CPP $CPPFLAGS'
14890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14892ac_compiler_gnu=$ac_cv_c_compiler_gnu
14893
14894 BACKTRACE_SUPPORTED=false
14895 BACKTRACE_USES_MALLOC=false
14896 BACKTRACE_SUPPORTS_THREADS=false
14897 LIBBACKTRACE=""
14898
14899
14900# Check whether --with-libbacktrace was given.
14901if test "${with_libbacktrace+set}" = set; then :
14902 withval=$with_libbacktrace;
14903fi
14904
14905
14906 if test "x$with_libbacktrace" != "xno"; then :
14907
14908 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14909
14910 gdc_save_CPPFLAGS=$CPPFLAGS
Iain Buclaw5d71d6f2019-04-16 05:58:25 +000014911 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
Iain Buclawb4c522f2018-10-28 19:51:47 +000014912
14913 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
Joseph Myers22e05272018-10-31 17:03:16 +000014914if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014915 have_libbacktrace_h=true
14916else
14917 have_libbacktrace_h=false
14918fi
14919
14920
14921
14922 if $have_libbacktrace_h; then
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14924$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926/* end confdefs.h. */
14927
14928 #include <backtrace-supported.h>
14929 #if BACKTRACE_SUPPORTED
14930 FOUND_LIBBACKTRACE_RESULT_GDC
14931 #endif
14932
14933_ACEOF
14934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14935 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14936 BACKTRACE_SUPPORTED=true
14937else
14938 BACKTRACE_SUPPORTED=false
14939fi
14940rm -f conftest*
14941
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14943$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14944
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14946$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948/* end confdefs.h. */
14949
14950 #include <backtrace-supported.h>
14951 #if BACKTRACE_USES_MALLOC
14952 FOUND_LIBBACKTRACE_RESULT_GDC
14953 #endif
14954
14955_ACEOF
14956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14957 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14958 BACKTRACE_USES_MALLOC=true
14959else
14960 BACKTRACE_USES_MALLOC=false
14961fi
14962rm -f conftest*
14963
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14965$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14966
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14968$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970/* end confdefs.h. */
14971
14972 #include <backtrace-supported.h>
14973 #if BACKTRACE_SUPPORTS_THREADS
14974 FOUND_LIBBACKTRACE_RESULT_GDC
14975 #endif
14976
14977_ACEOF
14978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14979 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14980 BACKTRACE_SUPPORTS_THREADS=true
14981else
14982 BACKTRACE_SUPPORTS_THREADS=false
14983fi
14984rm -f conftest*
14985
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14987$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14988 fi
14989 CPPFLAGS=$gdc_save_CPPFLAGS
14990
14991else
14992
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14994$as_echo_n "checking for libbacktrace... " >&6; }
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14996$as_echo "disabled" >&6; }
14997
14998fi
14999
15000
15001
15002
15003
15004 ac_ext=c
15005ac_cpp='$CPP $CPPFLAGS'
15006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15008ac_compiler_gnu=$ac_cv_c_compiler_gnu
15009
15010
15011
15012 # Libtool has already checked this, so re-use the inferred dlopen lib.
15013 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15014
15015 LIBS="$LIBS $lt_cv_dlopen_libs"
15016
15017fi
15018
15019
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015020 druntime_check_both=no
15021 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
Rainer Orth1d679132019-02-19 09:24:50 +000015022if test "x$ac_cv_func_connect" = xyes; then :
Rainer Orth1d679132019-02-19 09:24:50 +000015023
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015024else
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15026$as_echo_n "checking for connect in -lsocket... " >&6; }
15027if ${ac_cv_lib_socket_connect+:} false; then :
Rainer Orth1d679132019-02-19 09:24:50 +000015028 $as_echo_n "(cached) " >&6
15029else
15030 ac_check_lib_save_LIBS=$LIBS
15031LIBS="-lsocket $LIBS"
15032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033/* end confdefs.h. */
15034
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015035/* Override any GCC internal prototype to avoid an error.
15036 Use char because int might match the return type of a GCC
15037 builtin and then its argument prototype would still apply. */
15038#ifdef __cplusplus
15039extern "C"
15040#endif
15041char connect ();
Rainer Orth1d679132019-02-19 09:24:50 +000015042int
15043main ()
15044{
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015045return connect ();
Rainer Orth1d679132019-02-19 09:24:50 +000015046 ;
15047 return 0;
15048}
15049_ACEOF
15050if ac_fn_c_try_link "$LINENO"; then :
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015051 ac_cv_lib_socket_connect=yes
Rainer Orth1d679132019-02-19 09:24:50 +000015052else
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015053 ac_cv_lib_socket_connect=no
Rainer Orth1d679132019-02-19 09:24:50 +000015054fi
15055rm -f core conftest.err conftest.$ac_objext \
15056 conftest$ac_exeext conftest.$ac_ext
15057LIBS=$ac_check_lib_save_LIBS
15058fi
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15060$as_echo "$ac_cv_lib_socket_connect" >&6; }
15061if test "x$ac_cv_lib_socket_connect" = xyes; then :
15062 LIBS="$LIBS -lsocket"
Rainer Orth1d679132019-02-19 09:24:50 +000015063else
15064 druntime_check_both=yes
15065fi
15066
Rainer Orth1d679132019-02-19 09:24:50 +000015067fi
15068
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015069 if test "$druntime_check_both" = "yes"; then
15070 druntime_old_libs=$LIBS
15071 LIBS="$LIBS -lsocket -lnsl"
15072 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15073if test "x$ac_cv_func_accept" = xyes; then :
15074
15075else
15076 LIBS=$druntime_old_libs
15077fi
15078
15079 fi
15080 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
Rainer Orth1d679132019-02-19 09:24:50 +000015081if test "x$ac_cv_func_gethostbyname" = xyes; then :
15082
15083else
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15085$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15086if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
Rainer Orth1d679132019-02-19 09:24:50 +000015087 $as_echo_n "(cached) " >&6
15088else
15089 ac_check_lib_save_LIBS=$LIBS
15090LIBS="-lnsl $LIBS"
15091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092/* end confdefs.h. */
15093
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015094/* Override any GCC internal prototype to avoid an error.
15095 Use char because int might match the return type of a GCC
15096 builtin and then its argument prototype would still apply. */
15097#ifdef __cplusplus
15098extern "C"
15099#endif
15100char gethostbyname ();
Rainer Orth1d679132019-02-19 09:24:50 +000015101int
15102main ()
15103{
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015104return gethostbyname ();
Rainer Orth1d679132019-02-19 09:24:50 +000015105 ;
15106 return 0;
15107}
15108_ACEOF
15109if ac_fn_c_try_link "$LINENO"; then :
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015110 ac_cv_lib_nsl_gethostbyname=yes
Rainer Orth1d679132019-02-19 09:24:50 +000015111else
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015112 ac_cv_lib_nsl_gethostbyname=no
Rainer Orth1d679132019-02-19 09:24:50 +000015113fi
15114rm -f core conftest.err conftest.$ac_objext \
15115 conftest$ac_exeext conftest.$ac_ext
15116LIBS=$ac_check_lib_save_LIBS
15117fi
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15119$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15120if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15121 LIBS="$LIBS -lnsl"
Rainer Orth1d679132019-02-19 09:24:50 +000015122fi
15123
15124fi
15125
15126
Rainer Orth1d679132019-02-19 09:24:50 +000015127
Iain Buclawac1a0a32020-04-20 18:20:12 +020015128 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15129 # "yes" for targets that have 'version = AsmExternal'.
15130 druntime_fiber_asm_external=no
15131 case "$target_cpu" in
15132 aarch64* | \
15133 arm* | \
15134 i[34567]86|x86_64 | \
15135 powerpc)
15136 druntime_fiber_asm_external=yes
15137 ;;
15138 esac
15139 if test "$druntime_fiber_asm_external" = no; then
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15141$as_echo_n "checking for library containing swapcontext... " >&6; }
15142if ${ac_cv_search_swapcontext+:} false; then :
15143 $as_echo_n "(cached) " >&6
15144else
15145 ac_func_search_save_LIBS=$LIBS
15146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147/* end confdefs.h. */
15148
15149/* Override any GCC internal prototype to avoid an error.
15150 Use char because int might match the return type of a GCC
15151 builtin and then its argument prototype would still apply. */
15152#ifdef __cplusplus
15153extern "C"
15154#endif
15155char swapcontext ();
15156int
15157main ()
15158{
15159return swapcontext ();
15160 ;
15161 return 0;
15162}
15163_ACEOF
15164for ac_lib in '' c ucontext; do
15165 if test -z "$ac_lib"; then
15166 ac_res="none required"
15167 else
15168 ac_res=-l$ac_lib
15169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15170 fi
15171 if ac_fn_c_try_link "$LINENO"; then :
15172 ac_cv_search_swapcontext=$ac_res
15173fi
15174rm -f core conftest.err conftest.$ac_objext \
15175 conftest$ac_exeext
15176 if ${ac_cv_search_swapcontext+:} false; then :
15177 break
15178fi
15179done
15180if ${ac_cv_search_swapcontext+:} false; then :
15181
15182else
15183 ac_cv_search_swapcontext=no
15184fi
15185rm conftest.$ac_ext
15186LIBS=$ac_func_search_save_LIBS
15187fi
15188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15189$as_echo "$ac_cv_search_swapcontext" >&6; }
15190ac_res=$ac_cv_search_swapcontext
15191if test "$ac_res" != no; then :
15192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15193
15194else
15195 as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15196fi
15197
15198 fi
15199
15200
Iain Buclawbb503122019-04-12 20:13:34 +000015201 ac_ext=c
15202ac_cpp='$CPP $CPPFLAGS'
15203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15205ac_compiler_gnu=$ac_cv_c_compiler_gnu
15206
15207 LIBZ=""
15208
Iain Buclawb4c522f2018-10-28 19:51:47 +000015209
15210# Check whether --with-target-system-zlib was given.
15211if test "${with_target_system_zlib+set}" = set; then :
15212 withval=$with_target_system_zlib;
Iain Buclawbb503122019-04-12 20:13:34 +000015213else
15214 with_target_system_zlib=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015215fi
15216
15217
Iain Buclawbb503122019-04-12 20:13:34 +000015218 case "$with_target_system_zlib" in
15219 yes|no|auto) ;;
15220 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15221 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015222
Iain Buclawbb503122019-04-12 20:13:34 +000015223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15224$as_echo_n "checking for system zlib... " >&6; }
15225 save_LIBS=$LIBS
15226 LIBS="$LIBS -lz"
15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +000015228/* end confdefs.h. */
Iain Buclawbb503122019-04-12 20:13:34 +000015229#include <zlib.h>
Iain Buclawb4c522f2018-10-28 19:51:47 +000015230int
15231main ()
15232{
Iain Buclawbb503122019-04-12 20:13:34 +000015233gzopen("none", "rb")
Iain Buclawb4c522f2018-10-28 19:51:47 +000015234 ;
15235 return 0;
15236}
15237_ACEOF
15238if ac_fn_c_try_link "$LINENO"; then :
Iain Buclawbb503122019-04-12 20:13:34 +000015239
15240 if test "$cross_compiling" = yes; then :
15241 system_zlib_found=no
15242
Iain Buclawb4c522f2018-10-28 19:51:47 +000015243else
Iain Buclawbb503122019-04-12 20:13:34 +000015244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245/* end confdefs.h. */
15246
15247 #include <zlib.h>
15248 int main() {
15249 gzFile file = gzopen("none", "rb");
15250 return 0;
15251 }
15252
15253_ACEOF
15254if ac_fn_c_try_run "$LINENO"; then :
15255 system_zlib_found=yes
15256else
15257 system_zlib_found=no
15258fi
15259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15260 conftest.$ac_objext conftest.beam conftest.$ac_ext
15261fi
15262
15263
15264else
15265 system_zlib_found=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015266fi
15267rm -f core conftest.err conftest.$ac_objext \
15268 conftest$ac_exeext conftest.$ac_ext
Iain Buclawbb503122019-04-12 20:13:34 +000015269 LIBS=$save_LIBS
Iain Buclawb4c522f2018-10-28 19:51:47 +000015270
Iain Buclawbb503122019-04-12 20:13:34 +000015271 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15273$as_echo "found" >&6; }
15274 LIBS="$LIBS -lz"
15275 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15276 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15277 else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15279$as_echo "just compiled" >&6; }
Iain Buclawbb503122019-04-12 20:13:34 +000015280 LIBZ=../../zlib/libz_convenience.la
15281 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015282
Iain Buclawb4c522f2018-10-28 19:51:47 +000015283
Iain Buclawbb503122019-04-12 20:13:34 +000015284 ac_ext=c
15285ac_cpp='$CPP $CPPFLAGS'
15286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15288ac_compiler_gnu=$ac_cv_c_compiler_gnu
Iain Buclawb4c522f2018-10-28 19:51:47 +000015289
15290
15291
15292
15293
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15295$as_echo_n "checking D GCC version... " >&6; }
15296 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15298$as_echo "$gcc_version" >&6; }
15299
15300
15301
15302# Check whether --with-cross-host was given.
15303if test "${with_cross_host+set}" = set; then :
15304 withval=$with_cross_host;
15305fi
15306
15307
Iain Buclawac677522018-11-02 08:29:50 +000015308 libphobos_toolexecdir=no
15309 libphobos_toolexeclibdir=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015310
Iain Buclawac677522018-11-02 08:29:50 +000015311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15312$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15313 # Check whether --enable-version-specific-runtime-libs was given.
15314if test "${enable_version_specific_runtime_libs+set}" = set; then :
15315 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15316 yes) version_specific_libs=yes ;;
15317 no) version_specific_libs=no ;;
15318 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15319 esac
15320else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015321 version_specific_libs=no
Iain Buclawac677522018-11-02 08:29:50 +000015322fi
15323
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15325$as_echo "$version_specific_libs" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015326
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +000015327
15328# Check whether --with-toolexeclibdir was given.
15329if test "${with_toolexeclibdir+set}" = set; then :
15330 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15331 /)
15332 ;;
15333 */)
15334 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15335 ;;
15336esac
15337else
15338 with_toolexeclibdir=no
15339fi
15340
15341
15342
Iain Buclawb4c522f2018-10-28 19:51:47 +000015343 # Version-specific runtime libs processing.
15344 if test $version_specific_libs = yes; then
Iain Buclawac677522018-11-02 08:29:50 +000015345 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15346 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015347 else
Iain Buclawac677522018-11-02 08:29:50 +000015348 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15349 # Install a library built with a cross compiler in tooldir, not libdir.
15350 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15351 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +000015352 case ${with_toolexeclibdir} in
15353 no)
15354 libphobos_toolexeclibdir='${toolexecdir}/lib'
15355 ;;
15356 *)
15357 libphobos_toolexeclibdir=${with_toolexeclibdir}
15358 ;;
15359 esac
Iain Buclawac677522018-11-02 08:29:50 +000015360 else
15361 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15362 libphobos_toolexeclibdir='${libdir}'
15363 fi
15364 multi_os_directory=`$GDC -print-multi-os-directory`
15365 case $multi_os_directory in
15366 .) ;; # Avoid trailing /.
15367 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15368 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015369 fi
15370
15371
15372
15373 # Default case for install directory for D sources files.
15374 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15375
15376
15377
Rainer Orthbca0a322019-05-07 10:38:45 +000015378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15379$as_echo_n "checking for --enable-libphobos... " >&6; }
15380# Check whether --enable-libphobos was given.
15381if test "${enable_libphobos+set}" = set; then :
15382 enableval=$enable_libphobos;
15383fi
15384
15385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15386$as_echo "$enable_libphobos" >&6; }
15387
Iain Buclaw261bd782020-03-25 09:38:58 +010015388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15389$as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15390
Iain Buclaw371d1012020-04-20 18:50:36 +020015391# Check whether --with-libphobos-druntime-only was given.
15392if test "${with_libphobos_druntime_only+set}" = set; then :
15393 withval=$with_libphobos_druntime_only;
Iain Buclaw261bd782020-03-25 09:38:58 +010015394else
Iain Buclaw371d1012020-04-20 18:50:36 +020015395 with_libphobos_druntime_only=auto
Iain Buclaw261bd782020-03-25 09:38:58 +010015396fi
15397
Iain Buclaw371d1012020-04-20 18:50:36 +020015398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15399$as_echo "$with_libphobos_druntime_only" >&6; }
Iain Buclaw261bd782020-03-25 09:38:58 +010015400
Iain Buclaw371d1012020-04-20 18:50:36 +020015401case "$with_libphobos_druntime_only" in
Iain Buclaw261bd782020-03-25 09:38:58 +010015402 yes|no|auto) ;;
15403 *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15404esac
15405
Rainer Orthbca0a322019-05-07 10:38:45 +000015406# See if supported.
15407unset LIBPHOBOS_SUPPORTED
Iain Buclaw261bd782020-03-25 09:38:58 +010015408unset LIBDRUNTIME_ONLY
Rainer Orthbca0a322019-05-07 10:38:45 +000015409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15410$as_echo_n "checking for host support for libphobos... " >&6; }
15411. ${srcdir}/configure.tgt
15412case ${host} in
15413 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15414 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15415 # relatively low linelength limit.
15416 as_prog=`$CC -print-prog-name=as`
15417 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15418 druntime_cv_use_gas=yes;
15419 else
15420 druntime_cv_use_gas=no;
15421 fi
15422 rm -f a.out
15423 if test x$druntime_cv_use_gas = xno; then
15424 LIBPHOBOS_SUPPORTED=no
15425 fi
15426 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15427 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15428 LIBPHOBOS_SUPPORTED=no
15429 fi
15430 ;;
15431esac
15432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15433$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15434
15435# Decide if it's usable.
15436case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15437*:no) use_libphobos=no ;;
15438*:yes) use_libphobos=yes ;;
15439yes:*) use_libphobos=yes ;;
15440*:*) use_libphobos=no ;;
15441esac
15442 if test x$use_libphobos = xyes; then
15443 ENABLE_LIBPHOBOS_TRUE=
15444 ENABLE_LIBPHOBOS_FALSE='#'
15445else
15446 ENABLE_LIBPHOBOS_TRUE='#'
15447 ENABLE_LIBPHOBOS_FALSE=
15448fi
15449
15450
Iain Buclaw261bd782020-03-25 09:38:58 +010015451# Decide if only libdruntime should be built.
Iain Buclaw371d1012020-04-20 18:50:36 +020015452case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
Iain Buclaw261bd782020-03-25 09:38:58 +010015453*:no) only_libdruntime=no ;;
15454*:yes) only_libdruntime=yes ;;
15455yes:*) only_libdruntime=yes ;;
15456*:*) only_libdruntime=no ;;
15457esac
15458 if test x$only_libdruntime = xyes; then
15459 ENABLE_LIBDRUNTIME_ONLY_TRUE=
15460 ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15461else
15462 ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15463 ENABLE_LIBDRUNTIME_ONLY_FALSE=
15464fi
15465
15466
Iain Buclawc0dbfbd2020-04-09 00:41:14 +020015467# Enable expensive internal checks
15468# Check whether --enable-libphobos-checking was given.
15469if test "${enable_libphobos_checking+set}" = set; then :
15470 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15471else
15472 ac_checking_flags=release
15473fi
15474
15475IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15476for check in release $ac_checking_flags
15477do
15478 case $check in
15479 # These set all the flags to specific states
15480 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15481 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15482 # These enable particular checks
15483 assert) ASSERT_FLAG="-fassert" ;;
15484 # Accept
15485 *) ;;
15486 esac
15487done
15488IFS="$ac_save_IFS"
15489CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15490
15491
Rainer Orth0b6e3122019-02-14 17:47:49 +000015492# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15493if test "$DCFG_MINFO_BRACKETING" = "false"; then
15494 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15495else
15496 DRTSTUFF_SPEC=/dev/null
15497fi
15498
15499
Iain Buclawb4c522f2018-10-28 19:51:47 +000015500# Add dependencies for libgphobos.spec file
15501SPEC_PHOBOS_DEPS="$LIBS"
15502
15503
15504# Libdruntime / phobos soname version
Iain Buclawbc093502020-03-16 17:00:07 +010015505libtool_VERSION=1:0:0
Iain Buclawb4c522f2018-10-28 19:51:47 +000015506
15507
15508# Set default flags (after DRUNTIME_WERROR!)
15509if test -z "$GDCFLAGS"; then
Iain Buclawc0dbfbd2020-04-09 00:41:14 +020015510 GDCFLAGS="-g -O2"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015511fi
15512
15513
Iain Buclaw38c30172020-03-29 23:54:01 +020015514WARN_DFLAGS="-Wall $WERROR_FLAG"
15515
15516
Iain Buclawb4c522f2018-10-28 19:51:47 +000015517# Sanity check for the cross-compilation case:
15518ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
Joseph Myers22e05272018-10-31 17:03:16 +000015519if test "x$ac_cv_header_stdio_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000015520 :
15521else
Joseph Myers22e05272018-10-31 17:03:16 +000015522 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000015523fi
15524
15525
15526
Iain Buclawac677522018-11-02 08:29:50 +000015527ac_config_files="$ac_config_files Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015528
15529
15530ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15531
15532ac_config_files="$ac_config_files src/libgphobos.spec"
15533
15534ac_config_files="$ac_config_files testsuite/testsuite_flags"
15535
15536
Iain Buclawac677522018-11-02 08:29:50 +000015537# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15538# that multilib installs will end up installed in the correct place.
15539# The testsuite needs it for multilib-aware ABI baseline files.
15540# To work around this not being passed down from config-ml.in ->
15541# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15542# append it here. Only modify Makefiles that have just been created.
15543#
15544# Also, get rid of this simulated-VPATH thing that automake does.
15545ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015546
15547
15548cat >confcache <<\_ACEOF
15549# This file is a shell script that caches the results of configure
15550# tests run on this system so they can be shared between configure
15551# scripts and configure runs, see configure's option --config-cache.
15552# It is not useful on other systems. If it contains results you don't
15553# want to keep, you may remove or edit it.
15554#
15555# config.status only pays attention to the cache file if you give it
15556# the --recheck option to rerun configure.
15557#
15558# `ac_cv_env_foo' variables (set or unset) will be overridden when
15559# loading this file, other *unset* `ac_cv_foo' will be assigned the
15560# following values.
15561
15562_ACEOF
15563
15564# The following way of writing the cache mishandles newlines in values,
15565# but we know of no workaround that is simple, portable, and efficient.
15566# So, we kill variables containing newlines.
15567# Ultrix sh set writes to stderr and can't be redirected directly,
15568# and sets the high bit in the cache file unless we assign to the vars.
15569(
15570 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15571 eval ac_val=\$$ac_var
15572 case $ac_val in #(
15573 *${as_nl}*)
15574 case $ac_var in #(
15575 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15576$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15577 esac
15578 case $ac_var in #(
15579 _ | IFS | as_nl) ;; #(
15580 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15581 *) { eval $ac_var=; unset $ac_var;} ;;
15582 esac ;;
15583 esac
15584 done
15585
15586 (set) 2>&1 |
15587 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15588 *${as_nl}ac_space=\ *)
15589 # `set' does not quote correctly, so add quotes: double-quote
15590 # substitution turns \\\\ into \\, and sed turns \\ into \.
15591 sed -n \
15592 "s/'/'\\\\''/g;
15593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15594 ;; #(
15595 *)
15596 # `set' quotes correctly as required by POSIX, so do not add quotes.
15597 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15598 ;;
15599 esac |
15600 sort
15601) |
15602 sed '
15603 /^ac_cv_env_/b end
15604 t clear
15605 :clear
15606 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15607 t end
15608 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15609 :end' >>confcache
15610if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15611 if test -w "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015612 if test "x$cache_file" != "x/dev/null"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000015613 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15614$as_echo "$as_me: updating cache $cache_file" >&6;}
Joseph Myers22e05272018-10-31 17:03:16 +000015615 if test ! -f "$cache_file" || test -h "$cache_file"; then
15616 cat confcache >"$cache_file"
15617 else
15618 case $cache_file in #(
15619 */* | ?:*)
15620 mv -f confcache "$cache_file"$$ &&
15621 mv -f "$cache_file"$$ "$cache_file" ;; #(
15622 *)
15623 mv -f confcache "$cache_file" ;;
15624 esac
15625 fi
15626 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015627 else
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15629$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15630 fi
15631fi
15632rm -f confcache
15633
15634test "x$prefix" = xNONE && prefix=$ac_default_prefix
15635# Let make expand exec_prefix.
15636test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15637
15638DEFS=-DHAVE_CONFIG_H
15639
15640ac_libobjs=
15641ac_ltlibobjs=
Joseph Myers22e05272018-10-31 17:03:16 +000015642U=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015643for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15644 # 1. Remove the extension, and $U if already installed.
15645 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15646 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15647 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15648 # will be set to the directory where LIBOBJS objects are built.
15649 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15650 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15651done
15652LIBOBJS=$ac_libobjs
15653
15654LTLIBOBJS=$ac_ltlibobjs
15655
15656
Joseph Myers22e05272018-10-31 17:03:16 +000015657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15658$as_echo_n "checking that generated files are newer than configure... " >&6; }
15659 if test -n "$am_sleep_pid"; then
15660 # Hide warnings about reused PIDs.
15661 wait $am_sleep_pid 2>/dev/null
15662 fi
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15664$as_echo "done" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015665 if test -n "$EXEEXT"; then
15666 am__EXEEXT_TRUE=
15667 am__EXEEXT_FALSE='#'
15668else
15669 am__EXEEXT_TRUE='#'
15670 am__EXEEXT_FALSE=
15671fi
15672
15673if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015674 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015675Usually this means the macro was only invoked conditionally." "$LINENO" 5
15676fi
Iain Buclaw2493e712019-04-24 22:46:59 +000015677if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15678 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15679Usually this means the macro was only invoked conditionally." "$LINENO" 5
15680fi
15681if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15682 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15683Usually this means the macro was only invoked conditionally." "$LINENO" 5
15684fi
15685if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15686 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15687Usually this means the macro was only invoked conditionally." "$LINENO" 5
15688fi
15689if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15690 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15691Usually this means the macro was only invoked conditionally." "$LINENO" 5
15692fi
Iain Buclaw2493e712019-04-24 22:46:59 +000015693if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15694 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15695Usually this means the macro was only invoked conditionally." "$LINENO" 5
15696fi
Robin Dapp88e508f2020-04-07 21:05:38 +020015697if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15698 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15699Usually this means the macro was only invoked conditionally." "$LINENO" 5
15700fi
15701if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15702 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15703Usually this means the macro was only invoked conditionally." "$LINENO" 5
15704fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015705if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015706 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015707Usually this means the macro was only invoked conditionally." "$LINENO" 5
15708fi
15709if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015710 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015711Usually this means the macro was only invoked conditionally." "$LINENO" 5
15712fi
15713if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015714 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015715Usually this means the macro was only invoked conditionally." "$LINENO" 5
15716fi
15717if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015718 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015719Usually this means the macro was only invoked conditionally." "$LINENO" 5
15720fi
15721if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015722 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015723Usually this means the macro was only invoked conditionally." "$LINENO" 5
15724fi
15725if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015726 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015727Usually this means the macro was only invoked conditionally." "$LINENO" 5
15728fi
15729if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015730 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015731Usually this means the macro was only invoked conditionally." "$LINENO" 5
15732fi
15733if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015734 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015735Usually this means the macro was only invoked conditionally." "$LINENO" 5
15736fi
15737if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015738 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015739Usually this means the macro was only invoked conditionally." "$LINENO" 5
15740fi
15741if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015742 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015743Usually this means the macro was only invoked conditionally." "$LINENO" 5
15744fi
Iain Buclaw72c136c2020-04-08 22:52:05 +020015745if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15746 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15747Usually this means the macro was only invoked conditionally." "$LINENO" 5
15748fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015749if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015750 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015751Usually this means the macro was only invoked conditionally." "$LINENO" 5
15752fi
Rainer Orth0b6e3122019-02-14 17:47:49 +000015753if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15754 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15755Usually this means the macro was only invoked conditionally." "$LINENO" 5
15756fi
Rainer Orthbca0a322019-05-07 10:38:45 +000015757if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15758 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15759Usually this means the macro was only invoked conditionally." "$LINENO" 5
15760fi
Iain Buclaw261bd782020-03-25 09:38:58 +010015761if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15762 as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15763Usually this means the macro was only invoked conditionally." "$LINENO" 5
15764fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015765
Joseph Myers22e05272018-10-31 17:03:16 +000015766: "${CONFIG_STATUS=./config.status}"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015767ac_write_fail=0
15768ac_clean_files_save=$ac_clean_files
15769ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15770{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15771$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15772as_write_fail=0
15773cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15774#! $SHELL
15775# Generated by $as_me.
15776# Run this file to recreate the current configuration.
15777# Compiler output produced by configure, useful for debugging
15778# configure, is in config.log if it exists.
15779
15780debug=false
15781ac_cs_recheck=false
15782ac_cs_silent=false
15783
15784SHELL=\${CONFIG_SHELL-$SHELL}
15785export SHELL
15786_ASEOF
15787cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15788## -------------------- ##
15789## M4sh Initialization. ##
15790## -------------------- ##
15791
15792# Be more Bourne compatible
15793DUALCASE=1; export DUALCASE # for MKS sh
15794if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15795 emulate sh
15796 NULLCMD=:
15797 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15798 # is contrary to our usage. Disable this feature.
15799 alias -g '${1+"$@"}'='"$@"'
15800 setopt NO_GLOB_SUBST
15801else
15802 case `(set -o) 2>/dev/null` in #(
15803 *posix*) :
15804 set -o posix ;; #(
15805 *) :
15806 ;;
15807esac
15808fi
15809
15810
15811as_nl='
15812'
15813export as_nl
15814# Printing a long string crashes Solaris 7 /usr/bin/printf.
15815as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15816as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15817as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15818# Prefer a ksh shell builtin over an external printf program on Solaris,
15819# but without wasting forks for bash or zsh.
15820if test -z "$BASH_VERSION$ZSH_VERSION" \
15821 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15822 as_echo='print -r --'
15823 as_echo_n='print -rn --'
15824elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15825 as_echo='printf %s\n'
15826 as_echo_n='printf %s'
15827else
15828 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15829 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15830 as_echo_n='/usr/ucb/echo -n'
15831 else
15832 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15833 as_echo_n_body='eval
15834 arg=$1;
15835 case $arg in #(
15836 *"$as_nl"*)
15837 expr "X$arg" : "X\\(.*\\)$as_nl";
15838 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15839 esac;
15840 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15841 '
15842 export as_echo_n_body
15843 as_echo_n='sh -c $as_echo_n_body as_echo'
15844 fi
15845 export as_echo_body
15846 as_echo='sh -c $as_echo_body as_echo'
15847fi
15848
15849# The user is always right.
15850if test "${PATH_SEPARATOR+set}" != set; then
15851 PATH_SEPARATOR=:
15852 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15853 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15854 PATH_SEPARATOR=';'
15855 }
15856fi
15857
15858
15859# IFS
15860# We need space, tab and new line, in precisely that order. Quoting is
15861# there to prevent editors from complaining about space-tab.
15862# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15863# splitting by setting IFS to empty value.)
15864IFS=" "" $as_nl"
15865
15866# Find who we are. Look in the path if we contain no directory separator.
Joseph Myers22e05272018-10-31 17:03:16 +000015867as_myself=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015868case $0 in #((
15869 *[\\/]* ) as_myself=$0 ;;
15870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15871for as_dir in $PATH
15872do
15873 IFS=$as_save_IFS
15874 test -z "$as_dir" && as_dir=.
15875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15876 done
15877IFS=$as_save_IFS
15878
15879 ;;
15880esac
15881# We did not find ourselves, most probably we were run as `sh COMMAND'
15882# in which case we are not to be found in the path.
15883if test "x$as_myself" = x; then
15884 as_myself=$0
15885fi
15886if test ! -f "$as_myself"; then
15887 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15888 exit 1
15889fi
15890
15891# Unset variables that we do not need and which cause bugs (e.g. in
15892# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15893# suppresses any "Segmentation fault" message there. '((' could
15894# trigger a bug in pdksh 5.2.14.
15895for as_var in BASH_ENV ENV MAIL MAILPATH
15896do eval test x\${$as_var+set} = xset \
15897 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15898done
15899PS1='$ '
15900PS2='> '
15901PS4='+ '
15902
15903# NLS nuisances.
15904LC_ALL=C
15905export LC_ALL
15906LANGUAGE=C
15907export LANGUAGE
15908
15909# CDPATH.
15910(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15911
15912
Joseph Myers22e05272018-10-31 17:03:16 +000015913# as_fn_error STATUS ERROR [LINENO LOG_FD]
15914# ----------------------------------------
Iain Buclawb4c522f2018-10-28 19:51:47 +000015915# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15916# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Joseph Myers22e05272018-10-31 17:03:16 +000015917# script with STATUS, using 1 if that was 0.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015918as_fn_error ()
15919{
Joseph Myers22e05272018-10-31 17:03:16 +000015920 as_status=$1; test $as_status -eq 0 && as_status=1
15921 if test "$4"; then
15922 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15923 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Iain Buclawb4c522f2018-10-28 19:51:47 +000015924 fi
Joseph Myers22e05272018-10-31 17:03:16 +000015925 $as_echo "$as_me: error: $2" >&2
Iain Buclawb4c522f2018-10-28 19:51:47 +000015926 as_fn_exit $as_status
15927} # as_fn_error
15928
15929
15930# as_fn_set_status STATUS
15931# -----------------------
15932# Set $? to STATUS, without forking.
15933as_fn_set_status ()
15934{
15935 return $1
15936} # as_fn_set_status
15937
15938# as_fn_exit STATUS
15939# -----------------
15940# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15941as_fn_exit ()
15942{
15943 set +e
15944 as_fn_set_status $1
15945 exit $1
15946} # as_fn_exit
15947
15948# as_fn_unset VAR
15949# ---------------
15950# Portably unset VAR.
15951as_fn_unset ()
15952{
15953 { eval $1=; unset $1;}
15954}
15955as_unset=as_fn_unset
15956# as_fn_append VAR VALUE
15957# ----------------------
15958# Append the text in VALUE to the end of the definition contained in VAR. Take
15959# advantage of any shell optimizations that allow amortized linear growth over
15960# repeated appends, instead of the typical quadratic growth present in naive
15961# implementations.
15962if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15963 eval 'as_fn_append ()
15964 {
15965 eval $1+=\$2
15966 }'
15967else
15968 as_fn_append ()
15969 {
15970 eval $1=\$$1\$2
15971 }
15972fi # as_fn_append
15973
15974# as_fn_arith ARG...
15975# ------------------
15976# Perform arithmetic evaluation on the ARGs, and store the result in the
15977# global $as_val. Take advantage of shells that can avoid forks. The arguments
15978# must be portable across $(()) and expr.
15979if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15980 eval 'as_fn_arith ()
15981 {
15982 as_val=$(( $* ))
15983 }'
15984else
15985 as_fn_arith ()
15986 {
15987 as_val=`expr "$@" || test $? -eq 1`
15988 }
15989fi # as_fn_arith
15990
15991
15992if expr a : '\(a\)' >/dev/null 2>&1 &&
15993 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15994 as_expr=expr
15995else
15996 as_expr=false
15997fi
15998
15999if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16000 as_basename=basename
16001else
16002 as_basename=false
16003fi
16004
16005if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16006 as_dirname=dirname
16007else
16008 as_dirname=false
16009fi
16010
16011as_me=`$as_basename -- "$0" ||
16012$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16013 X"$0" : 'X\(//\)$' \| \
16014 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16015$as_echo X/"$0" |
16016 sed '/^.*\/\([^/][^/]*\)\/*$/{
16017 s//\1/
16018 q
16019 }
16020 /^X\/\(\/\/\)$/{
16021 s//\1/
16022 q
16023 }
16024 /^X\/\(\/\).*/{
16025 s//\1/
16026 q
16027 }
16028 s/.*/./; q'`
16029
16030# Avoid depending upon Character Ranges.
16031as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16032as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16033as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16034as_cr_digits='0123456789'
16035as_cr_alnum=$as_cr_Letters$as_cr_digits
16036
16037ECHO_C= ECHO_N= ECHO_T=
16038case `echo -n x` in #(((((
16039-n*)
16040 case `echo 'xy\c'` in
16041 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16042 xy) ECHO_C='\c';;
16043 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16044 ECHO_T=' ';;
16045 esac;;
16046*)
16047 ECHO_N='-n';;
16048esac
16049
16050rm -f conf$$ conf$$.exe conf$$.file
16051if test -d conf$$.dir; then
16052 rm -f conf$$.dir/conf$$.file
16053else
16054 rm -f conf$$.dir
16055 mkdir conf$$.dir 2>/dev/null
16056fi
16057if (echo >conf$$.file) 2>/dev/null; then
16058 if ln -s conf$$.file conf$$ 2>/dev/null; then
16059 as_ln_s='ln -s'
16060 # ... but there are two gotchas:
16061 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16062 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Joseph Myers22e05272018-10-31 17:03:16 +000016063 # In both cases, we have to default to `cp -pR'.
Iain Buclawb4c522f2018-10-28 19:51:47 +000016064 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Joseph Myers22e05272018-10-31 17:03:16 +000016065 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016066 elif ln conf$$.file conf$$ 2>/dev/null; then
16067 as_ln_s=ln
16068 else
Joseph Myers22e05272018-10-31 17:03:16 +000016069 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016070 fi
16071else
Joseph Myers22e05272018-10-31 17:03:16 +000016072 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016073fi
16074rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16075rmdir conf$$.dir 2>/dev/null
16076
16077
16078# as_fn_mkdir_p
16079# -------------
16080# Create "$as_dir" as a directory, including parents if necessary.
16081as_fn_mkdir_p ()
16082{
16083
16084 case $as_dir in #(
16085 -*) as_dir=./$as_dir;;
16086 esac
16087 test -d "$as_dir" || eval $as_mkdir_p || {
16088 as_dirs=
16089 while :; do
16090 case $as_dir in #(
16091 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16092 *) as_qdir=$as_dir;;
16093 esac
16094 as_dirs="'$as_qdir' $as_dirs"
16095 as_dir=`$as_dirname -- "$as_dir" ||
16096$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16097 X"$as_dir" : 'X\(//\)[^/]' \| \
16098 X"$as_dir" : 'X\(//\)$' \| \
16099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16100$as_echo X"$as_dir" |
16101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16102 s//\1/
16103 q
16104 }
16105 /^X\(\/\/\)[^/].*/{
16106 s//\1/
16107 q
16108 }
16109 /^X\(\/\/\)$/{
16110 s//\1/
16111 q
16112 }
16113 /^X\(\/\).*/{
16114 s//\1/
16115 q
16116 }
16117 s/.*/./; q'`
16118 test -d "$as_dir" && break
16119 done
16120 test -z "$as_dirs" || eval "mkdir $as_dirs"
Joseph Myers22e05272018-10-31 17:03:16 +000016121 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016122
16123
16124} # as_fn_mkdir_p
16125if mkdir -p . 2>/dev/null; then
16126 as_mkdir_p='mkdir -p "$as_dir"'
16127else
16128 test -d ./-p && rmdir ./-p
16129 as_mkdir_p=false
16130fi
16131
Joseph Myers22e05272018-10-31 17:03:16 +000016132
16133# as_fn_executable_p FILE
16134# -----------------------
16135# Test if FILE is an executable regular file.
16136as_fn_executable_p ()
16137{
16138 test -f "$1" && test -x "$1"
16139} # as_fn_executable_p
16140as_test_x='test -x'
16141as_executable_p=as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +000016142
16143# Sed expression to map a string onto a valid CPP name.
16144as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16145
16146# Sed expression to map a string onto a valid variable name.
16147as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16148
16149
16150exec 6>&1
16151## ----------------------------------- ##
16152## Main body of $CONFIG_STATUS script. ##
16153## ----------------------------------- ##
16154_ASEOF
16155test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16156
16157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16158# Save the log message, to keep $0 and so on meaningful, and to
16159# report actual input values of CONFIG_FILES etc. instead of their
16160# values after options handling.
16161ac_log="
16162This file was extended by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +000016163generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +000016164
16165 CONFIG_FILES = $CONFIG_FILES
16166 CONFIG_HEADERS = $CONFIG_HEADERS
16167 CONFIG_LINKS = $CONFIG_LINKS
16168 CONFIG_COMMANDS = $CONFIG_COMMANDS
16169 $ $0 $@
16170
16171on `(hostname || uname -n) 2>/dev/null | sed 1q`
16172"
16173
16174_ACEOF
16175
16176case $ac_config_files in *"
16177"*) set x $ac_config_files; shift; ac_config_files=$*;;
16178esac
16179
16180case $ac_config_headers in *"
16181"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16182esac
16183
16184
16185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16186# Files that config.status was made for.
16187config_files="$ac_config_files"
16188config_headers="$ac_config_headers"
16189config_commands="$ac_config_commands"
16190
16191_ACEOF
16192
16193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16194ac_cs_usage="\
16195\`$as_me' instantiates files and other configuration actions
16196from templates according to the current configuration. Unless the files
16197and actions are specified as TAGs, all are instantiated by default.
16198
16199Usage: $0 [OPTION]... [TAG]...
16200
16201 -h, --help print this help, then exit
16202 -V, --version print version number and configuration settings, then exit
Joseph Myers22e05272018-10-31 17:03:16 +000016203 --config print configuration, then exit
Iain Buclawb4c522f2018-10-28 19:51:47 +000016204 -q, --quiet, --silent
16205 do not print progress messages
16206 -d, --debug don't remove temporary files
16207 --recheck update $as_me by reconfiguring in the same conditions
16208 --file=FILE[:TEMPLATE]
16209 instantiate the configuration file FILE
16210 --header=FILE[:TEMPLATE]
16211 instantiate the configuration header FILE
16212
16213Configuration files:
16214$config_files
16215
16216Configuration headers:
16217$config_headers
16218
16219Configuration commands:
16220$config_commands
16221
16222Report bugs to the package provider."
16223
16224_ACEOF
16225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016226ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016227ac_cs_version="\\
16228package-unused config.status version-unused
Joseph Myers22e05272018-10-31 17:03:16 +000016229configured by $0, generated by GNU Autoconf 2.69,
16230 with options \\"\$ac_cs_config\\"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016231
Rainer Orth0b6e3122019-02-14 17:47:49 +000016232Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000016233This config.status script is free software; the Free Software Foundation
16234gives unlimited permission to copy, distribute and modify it."
16235
16236ac_pwd='$ac_pwd'
16237srcdir='$srcdir'
16238INSTALL='$INSTALL'
16239MKDIR_P='$MKDIR_P'
16240AWK='$AWK'
16241test -n "\$AWK" || AWK=awk
16242_ACEOF
16243
16244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16245# The default lists apply if the user does not specify any file.
16246ac_need_defaults=:
16247while test $# != 0
16248do
16249 case $1 in
Joseph Myers22e05272018-10-31 17:03:16 +000016250 --*=?*)
Iain Buclawb4c522f2018-10-28 19:51:47 +000016251 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16252 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16253 ac_shift=:
16254 ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016255 --*=)
16256 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16257 ac_optarg=
16258 ac_shift=:
16259 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016260 *)
16261 ac_option=$1
16262 ac_optarg=$2
16263 ac_shift=shift
16264 ;;
16265 esac
16266
16267 case $ac_option in
16268 # Handling of the options.
16269 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16270 ac_cs_recheck=: ;;
16271 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16272 $as_echo "$ac_cs_version"; exit ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016273 --config | --confi | --conf | --con | --co | --c )
16274 $as_echo "$ac_cs_config"; exit ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016275 --debug | --debu | --deb | --de | --d | -d )
16276 debug=: ;;
16277 --file | --fil | --fi | --f )
16278 $ac_shift
16279 case $ac_optarg in
16280 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016281 '') as_fn_error $? "missing file argument" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016282 esac
16283 as_fn_append CONFIG_FILES " '$ac_optarg'"
16284 ac_need_defaults=false;;
16285 --header | --heade | --head | --hea )
16286 $ac_shift
16287 case $ac_optarg in
16288 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16289 esac
16290 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16291 ac_need_defaults=false;;
16292 --he | --h)
16293 # Conflict between --help and --header
Joseph Myers22e05272018-10-31 17:03:16 +000016294 as_fn_error $? "ambiguous option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016295Try \`$0 --help' for more information.";;
16296 --help | --hel | -h )
16297 $as_echo "$ac_cs_usage"; exit ;;
16298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16299 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16300 ac_cs_silent=: ;;
16301
16302 # This is an error.
Joseph Myers22e05272018-10-31 17:03:16 +000016303 -*) as_fn_error $? "unrecognized option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016304Try \`$0 --help' for more information." ;;
16305
16306 *) as_fn_append ac_config_targets " $1"
16307 ac_need_defaults=false ;;
16308
16309 esac
16310 shift
16311done
16312
16313ac_configure_extra_args=
16314
16315if $ac_cs_silent; then
16316 exec 6>/dev/null
16317 ac_configure_extra_args="$ac_configure_extra_args --silent"
16318fi
16319
16320_ACEOF
16321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16322if \$ac_cs_recheck; then
Joseph Myers22e05272018-10-31 17:03:16 +000016323 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Iain Buclawb4c522f2018-10-28 19:51:47 +000016324 shift
16325 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16326 CONFIG_SHELL='$SHELL'
16327 export CONFIG_SHELL
16328 exec "\$@"
16329fi
16330
16331_ACEOF
16332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16333exec 5>>config.log
16334{
16335 echo
16336 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16337## Running $as_me. ##
16338_ASBOX
16339 $as_echo "$ac_log"
16340} >&5
16341
16342_ACEOF
16343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344#
16345# INIT-COMMANDS
16346#
16347
16348srcdir="$srcdir"
16349host="$host"
16350target="$target"
16351with_multisubdir="$with_multisubdir"
16352with_multisrctop="$with_multisrctop"
16353with_target_subdir="$with_target_subdir"
16354ac_configure_args="${multilib_arg} ${ac_configure_args}"
16355multi_basedir="$multi_basedir"
16356CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16357CC="$CC"
16358CXX="$CXX"
16359GFORTRAN="$GFORTRAN"
16360GDC="$GDC"
16361
16362
16363# The HP-UX ksh and POSIX shell print the target directory to stdout
16364# if CDPATH is set.
16365(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16366
16367sed_quote_subst='$sed_quote_subst'
16368double_quote_subst='$double_quote_subst'
16369delay_variable_subst='$delay_variable_subst'
16370macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16371macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16372enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16373enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16374pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16375enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16376SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16377ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16378host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16379host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16380host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16381build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16382build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16383build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16384SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16385Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16386GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16387EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16388FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16389LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16390NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16391LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16392max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16393ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16394exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16395lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16396lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16397lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16398reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16399reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16400OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16401deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16402file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16403AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16404AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16405STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16406RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16407old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16408old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16409old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16410lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16411CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16412CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16413compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16414GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16415lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16416lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16417lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16418lt_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"`'
16419objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16420MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16421lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16422lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16423lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16424lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16425lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16426need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16427DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16428NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16429LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16430OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16431OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16432libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16433shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16434extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16435archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16436enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16437export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16438whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16439compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16440old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16441old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16442archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16443archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16444module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16445module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16446with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16447allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16448no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16449hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16450hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16451hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16452hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16453hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16454hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16455hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16456hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16457inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16458link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16459fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16460always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16461export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16462exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16463include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16464prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16465file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16466variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16467need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16468need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16469version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16470runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16471shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16472shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16473libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16474library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16475soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16476install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16477postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16478postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16479finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16480finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16481hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16482sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16483sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16484hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16485enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16486enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16487enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16488old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16489striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16490LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16491reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16492reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16493old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16494compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16495GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16496lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16497lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16498lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16499lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16500lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16501archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16502enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16503export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16504whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16505compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16506old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16507old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16508archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16509archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16510module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16511module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16512with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16513allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16514no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16515hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16516hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16517hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16518hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16519hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16520hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16521hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16522hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16523inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16524link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16525fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16526always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16527export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16528exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16529include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16530prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16531file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16532hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16533
16534LTCC='$LTCC'
16535LTCFLAGS='$LTCFLAGS'
16536compiler='$compiler_DEFAULT'
16537
16538# A function that is used when there is no print builtin or printf.
16539func_fallback_echo ()
16540{
16541 eval 'cat <<_LTECHO_EOF
16542\$1
16543_LTECHO_EOF'
16544}
16545
16546# Quote evaled strings.
16547for var in SHELL \
16548ECHO \
16549SED \
16550GREP \
16551EGREP \
16552FGREP \
16553LD \
16554NM \
16555LN_S \
16556lt_SP2NL \
16557lt_NL2SP \
16558reload_flag \
16559OBJDUMP \
16560deplibs_check_method \
16561file_magic_cmd \
16562AR \
16563AR_FLAGS \
16564STRIP \
16565RANLIB \
16566CC \
16567CFLAGS \
16568compiler \
16569lt_cv_sys_global_symbol_pipe \
16570lt_cv_sys_global_symbol_to_cdecl \
16571lt_cv_sys_global_symbol_to_c_name_address \
16572lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16573lt_prog_compiler_no_builtin_flag \
16574lt_prog_compiler_wl \
16575lt_prog_compiler_pic \
16576lt_prog_compiler_static \
16577lt_cv_prog_compiler_c_o \
16578need_locks \
16579DSYMUTIL \
16580NMEDIT \
16581LIPO \
16582OTOOL \
16583OTOOL64 \
16584shrext_cmds \
16585export_dynamic_flag_spec \
16586whole_archive_flag_spec \
16587compiler_needs_object \
16588with_gnu_ld \
16589allow_undefined_flag \
16590no_undefined_flag \
16591hardcode_libdir_flag_spec \
16592hardcode_libdir_flag_spec_ld \
16593hardcode_libdir_separator \
16594fix_srcfile_path \
16595exclude_expsyms \
16596include_expsyms \
16597file_list_spec \
16598variables_saved_for_relink \
16599libname_spec \
16600library_names_spec \
16601soname_spec \
16602install_override_mode \
16603finish_eval \
16604old_striplib \
16605striplib \
16606LD_D \
16607reload_flag_D \
16608compiler_D \
16609lt_prog_compiler_no_builtin_flag_D \
16610lt_prog_compiler_wl_D \
16611lt_prog_compiler_pic_D \
16612lt_prog_compiler_static_D \
16613lt_cv_prog_compiler_c_o_D \
16614export_dynamic_flag_spec_D \
16615whole_archive_flag_spec_D \
16616compiler_needs_object_D \
16617with_gnu_ld_D \
16618allow_undefined_flag_D \
16619no_undefined_flag_D \
16620hardcode_libdir_flag_spec_D \
16621hardcode_libdir_flag_spec_ld_D \
16622hardcode_libdir_separator_D \
16623fix_srcfile_path_D \
16624exclude_expsyms_D \
16625include_expsyms_D \
16626file_list_spec_D; do
16627 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16628 *[\\\\\\\`\\"\\\$]*)
16629 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16630 ;;
16631 *)
16632 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16633 ;;
16634 esac
16635done
16636
16637# Double-quote double-evaled strings.
16638for var in reload_cmds \
16639old_postinstall_cmds \
16640old_postuninstall_cmds \
16641old_archive_cmds \
16642extract_expsyms_cmds \
16643old_archive_from_new_cmds \
16644old_archive_from_expsyms_cmds \
16645archive_cmds \
16646archive_expsym_cmds \
16647module_cmds \
16648module_expsym_cmds \
16649export_symbols_cmds \
16650prelink_cmds \
16651postinstall_cmds \
16652postuninstall_cmds \
16653finish_cmds \
16654sys_lib_search_path_spec \
16655sys_lib_dlsearch_path_spec \
16656reload_cmds_D \
16657old_archive_cmds_D \
16658old_archive_from_new_cmds_D \
16659old_archive_from_expsyms_cmds_D \
16660archive_cmds_D \
16661archive_expsym_cmds_D \
16662module_cmds_D \
16663module_expsym_cmds_D \
16664export_symbols_cmds_D \
16665prelink_cmds_D; do
16666 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16667 *[\\\\\\\`\\"\\\$]*)
16668 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16669 ;;
16670 *)
16671 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16672 ;;
16673 esac
16674done
16675
16676ac_aux_dir='$ac_aux_dir'
16677xsi_shell='$xsi_shell'
16678lt_shell_append='$lt_shell_append'
16679
16680# See if we are running on zsh, and set the options which allow our
16681# commands through without removal of \ escapes INIT.
16682if test -n "\${ZSH_VERSION+set}" ; then
16683 setopt NO_GLOB_SUBST
16684fi
16685
16686
16687 PACKAGE='$PACKAGE'
16688 VERSION='$VERSION'
16689 TIMESTAMP='$TIMESTAMP'
16690 RM='$RM'
16691 ofile='$ofile'
16692
16693
16694
16695
16696
16697
Iain Buclawb4c522f2018-10-28 19:51:47 +000016698_ACEOF
16699
16700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16701
16702# Handling of arguments.
16703for ac_config_target in $ac_config_targets
16704do
16705 case $ac_config_target in
16706 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16707 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16708 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16709 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016710 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16711 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16712 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16713 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
Iain Buclawac677522018-11-02 08:29:50 +000016714 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16715 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16716 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016717
Joseph Myers22e05272018-10-31 17:03:16 +000016718 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016719 esac
16720done
16721
16722
16723# If the user did not use the arguments to specify the items to instantiate,
16724# then the envvar interface is used. Set only those that are not.
16725# We use the long form for the default assignment because of an extremely
16726# bizarre bug on SunOS 4.1.3.
16727if $ac_need_defaults; then
16728 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16729 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16730 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16731fi
16732
16733# Have a temporary directory for convenience. Make it in the build tree
16734# simply because there is no reason against having it here, and in addition,
16735# creating and moving files from /tmp can sometimes cause problems.
16736# Hook for its removal unless debugging.
16737# Note that there is a small window in which the directory will not be cleaned:
16738# after its creation but before its name has been assigned to `$tmp'.
16739$debug ||
16740{
Joseph Myers22e05272018-10-31 17:03:16 +000016741 tmp= ac_tmp=
Iain Buclawb4c522f2018-10-28 19:51:47 +000016742 trap 'exit_status=$?
Joseph Myers22e05272018-10-31 17:03:16 +000016743 : "${ac_tmp:=$tmp}"
16744 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Iain Buclawb4c522f2018-10-28 19:51:47 +000016745' 0
16746 trap 'as_fn_exit 1' 1 2 13 15
16747}
16748# Create a (secure) tmp directory for tmp files.
16749
16750{
16751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Joseph Myers22e05272018-10-31 17:03:16 +000016752 test -d "$tmp"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016753} ||
16754{
16755 tmp=./conf$$-$RANDOM
16756 (umask 077 && mkdir "$tmp")
Joseph Myers22e05272018-10-31 17:03:16 +000016757} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16758ac_tmp=$tmp
Iain Buclawb4c522f2018-10-28 19:51:47 +000016759
16760# Set up the scripts for CONFIG_FILES section.
16761# No need to generate them if there are no CONFIG_FILES.
16762# This happens for instance with `./config.status config.h'.
16763if test -n "$CONFIG_FILES"; then
16764
Rainer Orth0b6e3122019-02-14 17:47:49 +000016765if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16766 ac_cs_awk_getline=:
16767 ac_cs_awk_pipe_init=
16768 ac_cs_awk_read_file='
16769 while ((getline aline < (F[key])) > 0)
16770 print(aline)
16771 close(F[key])'
16772 ac_cs_awk_pipe_fini=
16773else
16774 ac_cs_awk_getline=false
16775 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16776 ac_cs_awk_read_file='
16777 print "|#_!!_#|"
16778 print "cat " F[key] " &&"
16779 '$ac_cs_awk_pipe_init
16780 # The final `:' finishes the AND list.
16781 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16782fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000016783ac_cr=`echo X | tr X '\015'`
16784# On cygwin, bash can eat \r inside `` if the user requested igncr.
16785# But we know of no other shell where ac_cr would be empty at this
16786# point, so we can use a bashism as a fallback.
16787if test "x$ac_cr" = x; then
16788 eval ac_cr=\$\'\\r\'
16789fi
16790ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16791if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016792 ac_cs_awk_cr='\\r'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016793else
16794 ac_cs_awk_cr=$ac_cr
16795fi
16796
Joseph Myers22e05272018-10-31 17:03:16 +000016797echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016798_ACEOF
16799
Rainer Orth0b6e3122019-02-14 17:47:49 +000016800# Create commands to substitute file output variables.
16801{
16802 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16803 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16804 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16805 echo "_ACAWK" &&
16806 echo "_ACEOF"
16807} >conf$$files.sh &&
16808. ./conf$$files.sh ||
16809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16810rm -f conf$$files.sh
Iain Buclawb4c522f2018-10-28 19:51:47 +000016811
16812{
16813 echo "cat >conf$$subs.awk <<_ACEOF" &&
16814 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16815 echo "_ACEOF"
16816} >conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016817 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16818ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Iain Buclawb4c522f2018-10-28 19:51:47 +000016819ac_delim='%!_!# '
16820for ac_last_try in false false false false false :; do
16821 . ./conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016822 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016823
16824 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16825 if test $ac_delim_n = $ac_delim_num; then
16826 break
16827 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016828 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016829 else
16830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16831 fi
16832done
16833rm -f conf$$subs.sh
16834
16835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016836cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016837_ACEOF
16838sed -n '
16839h
16840s/^/S["/; s/!.*/"]=/
16841p
16842g
16843s/^[^!]*!//
16844:repl
16845t repl
16846s/'"$ac_delim"'$//
16847t delim
16848:nl
16849h
Joseph Myers22e05272018-10-31 17:03:16 +000016850s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016851t more1
16852s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16853p
16854n
16855b repl
16856:more1
16857s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16858p
16859g
16860s/.\{148\}//
16861t nl
16862:delim
16863h
Joseph Myers22e05272018-10-31 17:03:16 +000016864s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016865t more2
16866s/["\\]/\\&/g; s/^/"/; s/$/"/
16867p
16868b
16869:more2
16870s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16871p
16872g
16873s/.\{148\}//
16874t delim
16875' <conf$$subs.awk | sed '
16876/^[^""]/{
16877 N
16878 s/\n//
16879}
16880' >>$CONFIG_STATUS || ac_write_fail=1
16881rm -f conf$$subs.awk
16882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16883_ACAWK
Joseph Myers22e05272018-10-31 17:03:16 +000016884cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016885 for (key in S) S_is_set[key] = 1
16886 FS = ""
Rainer Orth0b6e3122019-02-14 17:47:49 +000016887 \$ac_cs_awk_pipe_init
Iain Buclawb4c522f2018-10-28 19:51:47 +000016888}
16889{
16890 line = $ 0
16891 nfields = split(line, field, "@")
16892 substed = 0
16893 len = length(field[1])
16894 for (i = 2; i < nfields; i++) {
16895 key = field[i]
16896 keylen = length(key)
16897 if (S_is_set[key]) {
16898 value = S[key]
16899 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16900 len += length(value) + length(field[++i])
16901 substed = 1
16902 } else
16903 len += 1 + keylen
16904 }
Rainer Orth0b6e3122019-02-14 17:47:49 +000016905 if (nfields == 3 && !substed) {
16906 key = field[2]
16907 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16908 \$ac_cs_awk_read_file
16909 next
16910 }
16911 }
Iain Buclawb4c522f2018-10-28 19:51:47 +000016912 print line
16913}
Rainer Orth0b6e3122019-02-14 17:47:49 +000016914\$ac_cs_awk_pipe_fini
Iain Buclawb4c522f2018-10-28 19:51:47 +000016915_ACAWK
16916_ACEOF
16917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16918if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16919 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16920else
16921 cat
Joseph Myers22e05272018-10-31 17:03:16 +000016922fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16923 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016924_ACEOF
16925
Joseph Myers22e05272018-10-31 17:03:16 +000016926# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16927# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Iain Buclawb4c522f2018-10-28 19:51:47 +000016928# trailing colons and then remove the whole line if VPATH becomes empty
16929# (actually we leave an empty line to preserve line numbers).
16930if test "x$srcdir" = x.; then
Joseph Myers22e05272018-10-31 17:03:16 +000016931 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16932h
16933s///
16934s/^/:/
16935s/[ ]*$/:/
16936s/:\$(srcdir):/:/g
16937s/:\${srcdir}:/:/g
16938s/:@srcdir@:/:/g
16939s/^:*//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016940s/:*$//
Joseph Myers22e05272018-10-31 17:03:16 +000016941x
16942s/\(=[ ]*\).*/\1/
16943G
16944s/\n//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016945s/^[^=]*=[ ]*$//
16946}'
16947fi
16948
16949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16950fi # test -n "$CONFIG_FILES"
16951
16952# Set up the scripts for CONFIG_HEADERS section.
16953# No need to generate them if there are no CONFIG_HEADERS.
16954# This happens for instance with `./config.status Makefile'.
16955if test -n "$CONFIG_HEADERS"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016956cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Iain Buclawb4c522f2018-10-28 19:51:47 +000016957BEGIN {
16958_ACEOF
16959
16960# Transform confdefs.h into an awk script `defines.awk', embedded as
16961# here-document in config.status, that substitutes the proper values into
16962# config.h.in to produce config.h.
16963
16964# Create a delimiter string that does not exist in confdefs.h, to ease
16965# handling of long lines.
16966ac_delim='%!_!# '
16967for ac_last_try in false false :; do
Joseph Myers22e05272018-10-31 17:03:16 +000016968 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16969 if test -z "$ac_tt"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000016970 break
16971 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016972 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016973 else
16974 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16975 fi
16976done
16977
16978# For the awk script, D is an array of macro values keyed by name,
16979# likewise P contains macro parameters if any. Preserve backslash
16980# newline sequences.
16981
16982ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16983sed -n '
16984s/.\{148\}/&'"$ac_delim"'/g
16985t rset
16986:rset
16987s/^[ ]*#[ ]*define[ ][ ]*/ /
16988t def
16989d
16990:def
16991s/\\$//
16992t bsnl
16993s/["\\]/\\&/g
16994s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16995D["\1"]=" \3"/p
16996s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16997d
16998:bsnl
16999s/["\\]/\\&/g
17000s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17001D["\1"]=" \3\\\\\\n"\\/p
17002t cont
17003s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17004t cont
17005d
17006:cont
17007n
17008s/.\{148\}/&'"$ac_delim"'/g
17009t clear
17010:clear
17011s/\\$//
17012t bsnlc
17013s/["\\]/\\&/g; s/^/"/; s/$/"/p
17014d
17015:bsnlc
17016s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17017b cont
17018' <confdefs.h | sed '
17019s/'"$ac_delim"'/"\\\
17020"/g' >>$CONFIG_STATUS || ac_write_fail=1
17021
17022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17023 for (key in D) D_is_set[key] = 1
17024 FS = ""
17025}
17026/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17027 line = \$ 0
17028 split(line, arg, " ")
17029 if (arg[1] == "#") {
17030 defundef = arg[2]
17031 mac1 = arg[3]
17032 } else {
17033 defundef = substr(arg[1], 2)
17034 mac1 = arg[2]
17035 }
17036 split(mac1, mac2, "(") #)
17037 macro = mac2[1]
17038 prefix = substr(line, 1, index(line, defundef) - 1)
17039 if (D_is_set[macro]) {
17040 # Preserve the white space surrounding the "#".
17041 print prefix "define", macro P[macro] D[macro]
17042 next
17043 } else {
17044 # Replace #undef with comments. This is necessary, for example,
17045 # in the case of _POSIX_SOURCE, which is predefined and required
17046 # on some systems where configure will not decide to define it.
17047 if (defundef == "undef") {
17048 print "/*", prefix defundef, macro, "*/"
17049 next
17050 }
17051 }
17052}
17053{ print }
17054_ACAWK
17055_ACEOF
17056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000017057 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017058fi # test -n "$CONFIG_HEADERS"
17059
17060
17061eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17062shift
17063for ac_tag
17064do
17065 case $ac_tag in
17066 :[FHLC]) ac_mode=$ac_tag; continue;;
17067 esac
17068 case $ac_mode$ac_tag in
17069 :[FHL]*:*);;
Joseph Myers22e05272018-10-31 17:03:16 +000017070 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017071 :[FH]-) ac_tag=-:-;;
17072 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17073 esac
17074 ac_save_IFS=$IFS
17075 IFS=:
17076 set x $ac_tag
17077 IFS=$ac_save_IFS
17078 shift
17079 ac_file=$1
17080 shift
17081
17082 case $ac_mode in
17083 :L) ac_source=$1;;
17084 :[FH])
17085 ac_file_inputs=
17086 for ac_f
17087 do
17088 case $ac_f in
Joseph Myers22e05272018-10-31 17:03:16 +000017089 -) ac_f="$ac_tmp/stdin";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017090 *) # Look for the file first in the build tree, then in the source tree
17091 # (if the path is not absolute). The absolute path cannot be DOS-style,
17092 # because $ac_f cannot contain `:'.
17093 test -f "$ac_f" ||
17094 case $ac_f in
17095 [\\/$]*) false;;
17096 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17097 esac ||
Joseph Myers22e05272018-10-31 17:03:16 +000017098 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017099 esac
17100 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17101 as_fn_append ac_file_inputs " '$ac_f'"
17102 done
17103
17104 # Let's still pretend it is `configure' which instantiates (i.e., don't
17105 # use $as_me), people would be surprised to read:
17106 # /* config.h. Generated by config.status. */
17107 configure_input='Generated from '`
17108 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17109 `' by configure.'
17110 if test x"$ac_file" != x-; then
17111 configure_input="$ac_file. $configure_input"
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17113$as_echo "$as_me: creating $ac_file" >&6;}
17114 fi
17115 # Neutralize special characters interpreted by sed in replacement strings.
17116 case $configure_input in #(
17117 *\&* | *\|* | *\\* )
17118 ac_sed_conf_input=`$as_echo "$configure_input" |
17119 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17120 *) ac_sed_conf_input=$configure_input;;
17121 esac
17122
17123 case $ac_tag in
Joseph Myers22e05272018-10-31 17:03:16 +000017124 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017126 esac
17127 ;;
17128 esac
17129
17130 ac_dir=`$as_dirname -- "$ac_file" ||
17131$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17132 X"$ac_file" : 'X\(//\)[^/]' \| \
17133 X"$ac_file" : 'X\(//\)$' \| \
17134 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17135$as_echo X"$ac_file" |
17136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17137 s//\1/
17138 q
17139 }
17140 /^X\(\/\/\)[^/].*/{
17141 s//\1/
17142 q
17143 }
17144 /^X\(\/\/\)$/{
17145 s//\1/
17146 q
17147 }
17148 /^X\(\/\).*/{
17149 s//\1/
17150 q
17151 }
17152 s/.*/./; q'`
17153 as_dir="$ac_dir"; as_fn_mkdir_p
17154 ac_builddir=.
17155
17156case "$ac_dir" in
17157.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17158*)
17159 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17160 # A ".." for each directory in $ac_dir_suffix.
17161 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17162 case $ac_top_builddir_sub in
17163 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17164 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17165 esac ;;
17166esac
17167ac_abs_top_builddir=$ac_pwd
17168ac_abs_builddir=$ac_pwd$ac_dir_suffix
17169# for backward compatibility:
17170ac_top_builddir=$ac_top_build_prefix
17171
17172case $srcdir in
17173 .) # We are building in place.
17174 ac_srcdir=.
17175 ac_top_srcdir=$ac_top_builddir_sub
17176 ac_abs_top_srcdir=$ac_pwd ;;
17177 [\\/]* | ?:[\\/]* ) # Absolute name.
17178 ac_srcdir=$srcdir$ac_dir_suffix;
17179 ac_top_srcdir=$srcdir
17180 ac_abs_top_srcdir=$srcdir ;;
17181 *) # Relative name.
17182 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17183 ac_top_srcdir=$ac_top_build_prefix$srcdir
17184 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17185esac
17186ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17187
17188
17189 case $ac_mode in
17190 :F)
17191 #
17192 # CONFIG_FILE
17193 #
17194
17195 case $INSTALL in
17196 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17197 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17198 esac
17199 ac_MKDIR_P=$MKDIR_P
17200 case $MKDIR_P in
17201 [\\/$]* | ?:[\\/]* ) ;;
17202 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17203 esac
17204_ACEOF
17205
17206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17207# If the template does not know about datarootdir, expand it.
17208# FIXME: This hack should be removed a few years after 2.60.
17209ac_datarootdir_hack=; ac_datarootdir_seen=
17210ac_sed_dataroot='
17211/datarootdir/ {
17212 p
17213 q
17214}
17215/@datadir@/p
17216/@docdir@/p
17217/@infodir@/p
17218/@localedir@/p
17219/@mandir@/p'
17220case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17221*datarootdir*) ac_datarootdir_seen=yes;;
17222*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17224$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17225_ACEOF
17226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17227 ac_datarootdir_hack='
17228 s&@datadir@&$datadir&g
17229 s&@docdir@&$docdir&g
17230 s&@infodir@&$infodir&g
17231 s&@localedir@&$localedir&g
17232 s&@mandir@&$mandir&g
17233 s&\\\${datarootdir}&$datarootdir&g' ;;
17234esac
17235_ACEOF
17236
17237# Neutralize VPATH when `$srcdir' = `.'.
17238# Shell code in configure.ac might set extrasub.
17239# FIXME: do we really want to maintain this feature?
17240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17241ac_sed_extra="$ac_vpsub
17242$extrasub
17243_ACEOF
17244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17245:t
17246/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17247s|@configure_input@|$ac_sed_conf_input|;t t
17248s&@top_builddir@&$ac_top_builddir_sub&;t t
17249s&@top_build_prefix@&$ac_top_build_prefix&;t t
17250s&@srcdir@&$ac_srcdir&;t t
17251s&@abs_srcdir@&$ac_abs_srcdir&;t t
17252s&@top_srcdir@&$ac_top_srcdir&;t t
17253s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17254s&@builddir@&$ac_builddir&;t t
17255s&@abs_builddir@&$ac_abs_builddir&;t t
17256s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17257s&@INSTALL@&$ac_INSTALL&;t t
17258s&@MKDIR_P@&$ac_MKDIR_P&;t t
17259$ac_datarootdir_hack
17260"
Rainer Orth0b6e3122019-02-14 17:47:49 +000017261eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17262if $ac_cs_awk_getline; then
17263 $AWK -f "$ac_tmp/subs.awk"
17264else
17265 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17266fi \
Joseph Myers22e05272018-10-31 17:03:16 +000017267 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017268
17269test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Joseph Myers22e05272018-10-31 17:03:16 +000017270 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17271 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17272 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000017273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000017274which seems to be undefined. Please make sure it is defined" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017275$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000017276which seems to be undefined. Please make sure it is defined" >&2;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000017277
Joseph Myers22e05272018-10-31 17:03:16 +000017278 rm -f "$ac_tmp/stdin"
Iain Buclawb4c522f2018-10-28 19:51:47 +000017279 case $ac_file in
Joseph Myers22e05272018-10-31 17:03:16 +000017280 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17281 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017282 esac \
Joseph Myers22e05272018-10-31 17:03:16 +000017283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017284 ;;
17285 :H)
17286 #
17287 # CONFIG_HEADER
17288 #
17289 if test x"$ac_file" != x-; then
17290 {
17291 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000017292 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17293 } >"$ac_tmp/config.h" \
17294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17295 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000017296 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17297$as_echo "$as_me: $ac_file is unchanged" >&6;}
17298 else
17299 rm -f "$ac_file"
Joseph Myers22e05272018-10-31 17:03:16 +000017300 mv "$ac_tmp/config.h" "$ac_file" \
17301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017302 fi
17303 else
17304 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000017305 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17306 || as_fn_error $? "could not create -" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017307 fi
17308# Compute "$ac_file"'s index in $config_headers.
17309_am_arg="$ac_file"
17310_am_stamp_count=1
17311for _am_header in $config_headers :; do
17312 case $_am_header in
17313 $_am_arg | $_am_arg:* )
17314 break ;;
17315 * )
17316 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17317 esac
17318done
17319echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17320$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17321 X"$_am_arg" : 'X\(//\)[^/]' \| \
17322 X"$_am_arg" : 'X\(//\)$' \| \
17323 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17324$as_echo X"$_am_arg" |
17325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17326 s//\1/
17327 q
17328 }
17329 /^X\(\/\/\)[^/].*/{
17330 s//\1/
17331 q
17332 }
17333 /^X\(\/\/\)$/{
17334 s//\1/
17335 q
17336 }
17337 /^X\(\/\).*/{
17338 s//\1/
17339 q
17340 }
17341 s/.*/./; q'`/stamp-h$_am_stamp_count
17342 ;;
17343
17344 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17345$as_echo "$as_me: executing $ac_file commands" >&6;}
17346 ;;
17347 esac
17348
17349
17350 case $ac_file$ac_mode in
17351 "default-1":C)
17352# Only add multilib support code if we just rebuilt the top-level
17353# Makefile.
17354case " $CONFIG_FILES " in
17355 *" Makefile "*)
17356 ac_file=Makefile . ${multi_basedir}/config-ml.in
17357 ;;
17358esac ;;
17359 "libtool":C)
17360
17361 # See if we are running on zsh, and set the options which allow our
17362 # commands through without removal of \ escapes.
17363 if test -n "${ZSH_VERSION+set}" ; then
17364 setopt NO_GLOB_SUBST
17365 fi
17366
17367 cfgfile="${ofile}T"
17368 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17369 $RM "$cfgfile"
17370
17371 cat <<_LT_EOF >> "$cfgfile"
17372#! $SHELL
17373
17374# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17375# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17376# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17377# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17378#
Rainer Orth0b6e3122019-02-14 17:47:49 +000017379# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17380# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000017381# Written by Gordon Matzigkeit, 1996
17382#
17383# This file is part of GNU Libtool.
17384#
17385# GNU Libtool is free software; you can redistribute it and/or
17386# modify it under the terms of the GNU General Public License as
17387# published by the Free Software Foundation; either version 2 of
17388# the License, or (at your option) any later version.
17389#
17390# As a special exception to the GNU General Public License,
17391# if you distribute this file as part of a program or library that
17392# is built using GNU Libtool, you may include this file under the
17393# same distribution terms that you use for the rest of that program.
17394#
17395# GNU Libtool is distributed in the hope that it will be useful,
17396# but WITHOUT ANY WARRANTY; without even the implied warranty of
17397# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17398# GNU General Public License for more details.
17399#
17400# You should have received a copy of the GNU General Public License
17401# along with GNU Libtool; see the file COPYING. If not, a copy
17402# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17403# obtained by writing to the Free Software Foundation, Inc.,
17404# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17405
17406
17407# The names of the tagged configurations supported by this script.
17408available_tags="D "
17409
17410# ### BEGIN LIBTOOL CONFIG
17411
17412# Which release of libtool.m4 was used?
17413macro_version=$macro_version
17414macro_revision=$macro_revision
17415
17416# Whether or not to build shared libraries.
17417build_libtool_libs=$enable_shared
17418
17419# Whether or not to build static libraries.
17420build_old_libs=$enable_static
17421
17422# What type of objects to build.
17423pic_mode=$pic_mode
17424
17425# Whether or not to optimize for fast installation.
17426fast_install=$enable_fast_install
17427
17428# Shell to use when invoking shell scripts.
17429SHELL=$lt_SHELL
17430
17431# An echo program that protects backslashes.
17432ECHO=$lt_ECHO
17433
17434# The host system.
17435host_alias=$host_alias
17436host=$host
17437host_os=$host_os
17438
17439# The build system.
17440build_alias=$build_alias
17441build=$build
17442build_os=$build_os
17443
17444# A sed program that does not truncate output.
17445SED=$lt_SED
17446
17447# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17448Xsed="\$SED -e 1s/^X//"
17449
17450# A grep program that handles long lines.
17451GREP=$lt_GREP
17452
17453# An ERE matcher.
17454EGREP=$lt_EGREP
17455
17456# A literal string matcher.
17457FGREP=$lt_FGREP
17458
17459# A BSD- or MS-compatible name lister.
17460NM=$lt_NM
17461
17462# Whether we need soft or hard links.
17463LN_S=$lt_LN_S
17464
17465# What is the maximum length of a command?
17466max_cmd_len=$max_cmd_len
17467
17468# Object file suffix (normally "o").
17469objext=$ac_objext
17470
17471# Executable file suffix (normally "").
17472exeext=$exeext
17473
17474# whether the shell understands "unset".
17475lt_unset=$lt_unset
17476
17477# turn spaces into newlines.
17478SP2NL=$lt_lt_SP2NL
17479
17480# turn newlines into spaces.
17481NL2SP=$lt_lt_NL2SP
17482
17483# An object symbol dumper.
17484OBJDUMP=$lt_OBJDUMP
17485
17486# Method to check whether dependent libraries are shared objects.
17487deplibs_check_method=$lt_deplibs_check_method
17488
17489# Command to use when deplibs_check_method == "file_magic".
17490file_magic_cmd=$lt_file_magic_cmd
17491
17492# The archiver.
17493AR=$lt_AR
17494AR_FLAGS=$lt_AR_FLAGS
17495
17496# A symbol stripping program.
17497STRIP=$lt_STRIP
17498
17499# Commands used to install an old-style archive.
17500RANLIB=$lt_RANLIB
17501old_postinstall_cmds=$lt_old_postinstall_cmds
17502old_postuninstall_cmds=$lt_old_postuninstall_cmds
17503
17504# Whether to use a lock for old archive extraction.
17505lock_old_archive_extraction=$lock_old_archive_extraction
17506
17507# A C compiler.
17508LTCC=$lt_CC
17509
17510# LTCC compiler flags.
17511LTCFLAGS=$lt_CFLAGS
17512
17513# Take the output of nm and produce a listing of raw symbols and C names.
17514global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17515
17516# Transform the output of nm in a proper C declaration.
17517global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17518
17519# Transform the output of nm in a C name address pair.
17520global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17521
17522# Transform the output of nm in a C name address pair when lib prefix is needed.
17523global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17524
17525# The name of the directory that contains temporary libtool files.
17526objdir=$objdir
17527
17528# Used to examine libraries when file_magic_cmd begins with "file".
17529MAGIC_CMD=$MAGIC_CMD
17530
17531# Must we lock files when doing compilation?
17532need_locks=$lt_need_locks
17533
17534# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17535DSYMUTIL=$lt_DSYMUTIL
17536
17537# Tool to change global to local symbols on Mac OS X.
17538NMEDIT=$lt_NMEDIT
17539
17540# Tool to manipulate fat objects and archives on Mac OS X.
17541LIPO=$lt_LIPO
17542
17543# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17544OTOOL=$lt_OTOOL
17545
17546# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17547OTOOL64=$lt_OTOOL64
17548
17549# Old archive suffix (normally "a").
17550libext=$libext
17551
17552# Shared library suffix (normally ".so").
17553shrext_cmds=$lt_shrext_cmds
17554
17555# The commands to extract the exported symbol list from a shared archive.
17556extract_expsyms_cmds=$lt_extract_expsyms_cmds
17557
17558# Variables whose values should be saved in libtool wrapper scripts and
17559# restored at link time.
17560variables_saved_for_relink=$lt_variables_saved_for_relink
17561
17562# Do we need the "lib" prefix for modules?
17563need_lib_prefix=$need_lib_prefix
17564
17565# Do we need a version for libraries?
17566need_version=$need_version
17567
17568# Library versioning type.
17569version_type=$version_type
17570
17571# Shared library runtime path variable.
17572runpath_var=$runpath_var
17573
17574# Shared library path variable.
17575shlibpath_var=$shlibpath_var
17576
17577# Is shlibpath searched before the hard-coded library search path?
17578shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17579
17580# Format of library name prefix.
17581libname_spec=$lt_libname_spec
17582
17583# List of archive names. First name is the real one, the rest are links.
17584# The last name is the one that the linker finds with -lNAME
17585library_names_spec=$lt_library_names_spec
17586
17587# The coded name of the library, if different from the real name.
17588soname_spec=$lt_soname_spec
17589
17590# Permission mode override for installation of shared libraries.
17591install_override_mode=$lt_install_override_mode
17592
17593# Command to use after installation of a shared archive.
17594postinstall_cmds=$lt_postinstall_cmds
17595
17596# Command to use after uninstallation of a shared archive.
17597postuninstall_cmds=$lt_postuninstall_cmds
17598
17599# Commands used to finish a libtool library installation in a directory.
17600finish_cmds=$lt_finish_cmds
17601
17602# As "finish_cmds", except a single script fragment to be evaled but
17603# not shown.
17604finish_eval=$lt_finish_eval
17605
17606# Whether we should hardcode library paths into libraries.
17607hardcode_into_libs=$hardcode_into_libs
17608
17609# Compile-time system search path for libraries.
17610sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17611
17612# Run-time system search path for libraries.
17613sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17614
17615# Whether dlopen is supported.
17616dlopen_support=$enable_dlopen
17617
17618# Whether dlopen of programs is supported.
17619dlopen_self=$enable_dlopen_self
17620
17621# Whether dlopen of statically linked programs is supported.
17622dlopen_self_static=$enable_dlopen_self_static
17623
17624# Commands to strip libraries.
17625old_striplib=$lt_old_striplib
17626striplib=$lt_striplib
17627
17628
17629# The linker used to build libraries.
17630LD=$lt_LD
17631
17632# How to create reloadable object files.
17633reload_flag=$lt_reload_flag
17634reload_cmds=$lt_reload_cmds
17635
17636# Commands used to build an old-style archive.
17637old_archive_cmds=$lt_old_archive_cmds
17638
17639# A language specific compiler.
17640CC=$lt_compiler
17641
17642# Is the compiler the GNU compiler?
17643with_gcc=$GCC
17644
17645# Compiler flag to turn off builtin functions.
17646no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17647
17648# How to pass a linker flag through the compiler.
17649wl=$lt_lt_prog_compiler_wl
17650
17651# Additional compiler flags for building library objects.
17652pic_flag=$lt_lt_prog_compiler_pic
17653
17654# Compiler flag to prevent dynamic linking.
17655link_static_flag=$lt_lt_prog_compiler_static
17656
17657# Does compiler simultaneously support -c and -o options?
17658compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17659
17660# Whether or not to add -lc for building shared libraries.
17661build_libtool_need_lc=$archive_cmds_need_lc
17662
17663# Whether or not to disallow shared libs when runtime libs are static.
17664allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17665
17666# Compiler flag to allow reflexive dlopens.
17667export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17668
17669# Compiler flag to generate shared objects directly from archives.
17670whole_archive_flag_spec=$lt_whole_archive_flag_spec
17671
17672# Whether the compiler copes with passing no objects directly.
17673compiler_needs_object=$lt_compiler_needs_object
17674
17675# Create an old-style archive from a shared archive.
17676old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17677
17678# Create a temporary old-style archive to link instead of a shared archive.
17679old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17680
17681# Commands used to build a shared archive.
17682archive_cmds=$lt_archive_cmds
17683archive_expsym_cmds=$lt_archive_expsym_cmds
17684
17685# Commands used to build a loadable module if different from building
17686# a shared archive.
17687module_cmds=$lt_module_cmds
17688module_expsym_cmds=$lt_module_expsym_cmds
17689
17690# Whether we are building with GNU ld or not.
17691with_gnu_ld=$lt_with_gnu_ld
17692
17693# Flag that allows shared libraries with undefined symbols to be built.
17694allow_undefined_flag=$lt_allow_undefined_flag
17695
17696# Flag that enforces no undefined symbols.
17697no_undefined_flag=$lt_no_undefined_flag
17698
17699# Flag to hardcode \$libdir into a binary during linking.
17700# This must work even if \$libdir does not exist
17701hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17702
17703# If ld is used when linking, flag to hardcode \$libdir into a binary
17704# during linking. This must work even if \$libdir does not exist.
17705hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17706
17707# Whether we need a single "-rpath" flag with a separated argument.
17708hardcode_libdir_separator=$lt_hardcode_libdir_separator
17709
17710# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17711# DIR into the resulting binary.
17712hardcode_direct=$hardcode_direct
17713
17714# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17715# DIR into the resulting binary and the resulting library dependency is
17716# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17717# library is relocated.
17718hardcode_direct_absolute=$hardcode_direct_absolute
17719
17720# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17721# into the resulting binary.
17722hardcode_minus_L=$hardcode_minus_L
17723
17724# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17725# into the resulting binary.
17726hardcode_shlibpath_var=$hardcode_shlibpath_var
17727
17728# Set to "yes" if building a shared library automatically hardcodes DIR
17729# into the library and all subsequent libraries and executables linked
17730# against it.
17731hardcode_automatic=$hardcode_automatic
17732
17733# Set to yes if linker adds runtime paths of dependent libraries
17734# to runtime path list.
17735inherit_rpath=$inherit_rpath
17736
17737# Whether libtool must link a program against all its dependency libraries.
17738link_all_deplibs=$link_all_deplibs
17739
17740# Fix the shell variable \$srcfile for the compiler.
17741fix_srcfile_path=$lt_fix_srcfile_path
17742
17743# Set to "yes" if exported symbols are required.
17744always_export_symbols=$always_export_symbols
17745
17746# The commands to list exported symbols.
17747export_symbols_cmds=$lt_export_symbols_cmds
17748
17749# Symbols that should not be listed in the preloaded symbols.
17750exclude_expsyms=$lt_exclude_expsyms
17751
17752# Symbols that must always be exported.
17753include_expsyms=$lt_include_expsyms
17754
17755# Commands necessary for linking programs (against libraries) with templates.
17756prelink_cmds=$lt_prelink_cmds
17757
17758# Specify filename containing input files.
17759file_list_spec=$lt_file_list_spec
17760
17761# How to hardcode a shared library path into an executable.
17762hardcode_action=$hardcode_action
17763
17764# ### END LIBTOOL CONFIG
17765
17766_LT_EOF
17767
17768 case $host_os in
17769 aix3*)
17770 cat <<\_LT_EOF >> "$cfgfile"
17771# AIX sometimes has problems with the GCC collect2 program. For some
17772# reason, if we set the COLLECT_NAMES environment variable, the problems
17773# vanish in a puff of smoke.
17774if test "X${COLLECT_NAMES+set}" != Xset; then
17775 COLLECT_NAMES=
17776 export COLLECT_NAMES
17777fi
17778_LT_EOF
17779 ;;
17780 esac
17781
17782
17783ltmain="$ac_aux_dir/ltmain.sh"
17784
17785
17786 # We use sed instead of cat because bash on DJGPP gets confused if
17787 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17788 # text mode, it properly converts lines to CR/LF. This bash problem
17789 # is reportedly fixed, but why not run on old versions too?
17790 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17791 || (rm -f "$cfgfile"; exit 1)
17792
17793 case $xsi_shell in
17794 yes)
17795 cat << \_LT_EOF >> "$cfgfile"
17796
17797# func_dirname file append nondir_replacement
17798# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17799# otherwise set result to NONDIR_REPLACEMENT.
17800func_dirname ()
17801{
17802 case ${1} in
17803 */*) func_dirname_result="${1%/*}${2}" ;;
17804 * ) func_dirname_result="${3}" ;;
17805 esac
17806}
17807
17808# func_basename file
17809func_basename ()
17810{
17811 func_basename_result="${1##*/}"
17812}
17813
17814# func_dirname_and_basename file append nondir_replacement
17815# perform func_basename and func_dirname in a single function
17816# call:
17817# dirname: Compute the dirname of FILE. If nonempty,
17818# add APPEND to the result, otherwise set result
17819# to NONDIR_REPLACEMENT.
17820# value returned in "$func_dirname_result"
17821# basename: Compute filename of FILE.
17822# value retuned in "$func_basename_result"
17823# Implementation must be kept synchronized with func_dirname
17824# and func_basename. For efficiency, we do not delegate to
17825# those functions but instead duplicate the functionality here.
17826func_dirname_and_basename ()
17827{
17828 case ${1} in
17829 */*) func_dirname_result="${1%/*}${2}" ;;
17830 * ) func_dirname_result="${3}" ;;
17831 esac
17832 func_basename_result="${1##*/}"
17833}
17834
17835# func_stripname prefix suffix name
17836# strip PREFIX and SUFFIX off of NAME.
17837# PREFIX and SUFFIX must not contain globbing or regex special
17838# characters, hashes, percent signs, but SUFFIX may contain a leading
17839# dot (in which case that matches only a dot).
17840func_stripname ()
17841{
17842 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17843 # positional parameters, so assign one to ordinary parameter first.
17844 func_stripname_result=${3}
17845 func_stripname_result=${func_stripname_result#"${1}"}
17846 func_stripname_result=${func_stripname_result%"${2}"}
17847}
17848
17849# func_opt_split
17850func_opt_split ()
17851{
17852 func_opt_split_opt=${1%%=*}
17853 func_opt_split_arg=${1#*=}
17854}
17855
17856# func_lo2o object
17857func_lo2o ()
17858{
17859 case ${1} in
17860 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17861 *) func_lo2o_result=${1} ;;
17862 esac
17863}
17864
17865# func_xform libobj-or-source
17866func_xform ()
17867{
17868 func_xform_result=${1%.*}.lo
17869}
17870
17871# func_arith arithmetic-term...
17872func_arith ()
17873{
17874 func_arith_result=$(( $* ))
17875}
17876
17877# func_len string
17878# STRING may not start with a hyphen.
17879func_len ()
17880{
17881 func_len_result=${#1}
17882}
17883
17884_LT_EOF
17885 ;;
17886 *) # Bourne compatible functions.
17887 cat << \_LT_EOF >> "$cfgfile"
17888
17889# func_dirname file append nondir_replacement
17890# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17891# otherwise set result to NONDIR_REPLACEMENT.
17892func_dirname ()
17893{
17894 # Extract subdirectory from the argument.
17895 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17896 if test "X$func_dirname_result" = "X${1}"; then
17897 func_dirname_result="${3}"
17898 else
17899 func_dirname_result="$func_dirname_result${2}"
17900 fi
17901}
17902
17903# func_basename file
17904func_basename ()
17905{
17906 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17907}
17908
17909
17910# func_stripname prefix suffix name
17911# strip PREFIX and SUFFIX off of NAME.
17912# PREFIX and SUFFIX must not contain globbing or regex special
17913# characters, hashes, percent signs, but SUFFIX may contain a leading
17914# dot (in which case that matches only a dot).
17915# func_strip_suffix prefix name
17916func_stripname ()
17917{
17918 case ${2} in
17919 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17920 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17921 esac
17922}
17923
17924# sed scripts:
17925my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17926my_sed_long_arg='1s/^-[^=]*=//'
17927
17928# func_opt_split
17929func_opt_split ()
17930{
17931 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17932 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17933}
17934
17935# func_lo2o object
17936func_lo2o ()
17937{
17938 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17939}
17940
17941# func_xform libobj-or-source
17942func_xform ()
17943{
17944 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17945}
17946
17947# func_arith arithmetic-term...
17948func_arith ()
17949{
17950 func_arith_result=`expr "$@"`
17951}
17952
17953# func_len string
17954# STRING may not start with a hyphen.
17955func_len ()
17956{
17957 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17958}
17959
17960_LT_EOF
17961esac
17962
17963case $lt_shell_append in
17964 yes)
17965 cat << \_LT_EOF >> "$cfgfile"
17966
17967# func_append var value
17968# Append VALUE to the end of shell variable VAR.
17969func_append ()
17970{
17971 eval "$1+=\$2"
17972}
17973_LT_EOF
17974 ;;
17975 *)
17976 cat << \_LT_EOF >> "$cfgfile"
17977
17978# func_append var value
17979# Append VALUE to the end of shell variable VAR.
17980func_append ()
17981{
17982 eval "$1=\$$1\$2"
17983}
17984
17985_LT_EOF
17986 ;;
17987 esac
17988
17989
17990 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17991 || (rm -f "$cfgfile"; exit 1)
17992
17993 mv -f "$cfgfile" "$ofile" ||
17994 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17995 chmod +x "$ofile"
17996
17997
17998 cat <<_LT_EOF >> "$ofile"
17999
18000# ### BEGIN LIBTOOL TAG CONFIG: D
18001
18002# The linker used to build libraries.
18003LD=$lt_LD_D
18004
18005# How to create reloadable object files.
18006reload_flag=$lt_reload_flag_D
18007reload_cmds=$lt_reload_cmds_D
18008
18009# Commands used to build an old-style archive.
18010old_archive_cmds=$lt_old_archive_cmds_D
18011
18012# A language specific compiler.
18013CC=$lt_compiler_D
18014
18015# Is the compiler the GNU compiler?
18016with_gcc=$GCC_D
18017
18018# Compiler flag to turn off builtin functions.
18019no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18020
18021# How to pass a linker flag through the compiler.
18022wl=$lt_lt_prog_compiler_wl_D
18023
18024# Additional compiler flags for building library objects.
18025pic_flag=$lt_lt_prog_compiler_pic_D
18026
18027# Compiler flag to prevent dynamic linking.
18028link_static_flag=$lt_lt_prog_compiler_static_D
18029
18030# Does compiler simultaneously support -c and -o options?
18031compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18032
18033# Whether or not to add -lc for building shared libraries.
18034build_libtool_need_lc=$archive_cmds_need_lc_D
18035
18036# Whether or not to disallow shared libs when runtime libs are static.
18037allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18038
18039# Compiler flag to allow reflexive dlopens.
18040export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18041
18042# Compiler flag to generate shared objects directly from archives.
18043whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18044
18045# Whether the compiler copes with passing no objects directly.
18046compiler_needs_object=$lt_compiler_needs_object_D
18047
18048# Create an old-style archive from a shared archive.
18049old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18050
18051# Create a temporary old-style archive to link instead of a shared archive.
18052old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18053
18054# Commands used to build a shared archive.
18055archive_cmds=$lt_archive_cmds_D
18056archive_expsym_cmds=$lt_archive_expsym_cmds_D
18057
18058# Commands used to build a loadable module if different from building
18059# a shared archive.
18060module_cmds=$lt_module_cmds_D
18061module_expsym_cmds=$lt_module_expsym_cmds_D
18062
18063# Whether we are building with GNU ld or not.
18064with_gnu_ld=$lt_with_gnu_ld_D
18065
18066# Flag that allows shared libraries with undefined symbols to be built.
18067allow_undefined_flag=$lt_allow_undefined_flag_D
18068
18069# Flag that enforces no undefined symbols.
18070no_undefined_flag=$lt_no_undefined_flag_D
18071
18072# Flag to hardcode \$libdir into a binary during linking.
18073# This must work even if \$libdir does not exist
18074hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18075
18076# If ld is used when linking, flag to hardcode \$libdir into a binary
18077# during linking. This must work even if \$libdir does not exist.
18078hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18079
18080# Whether we need a single "-rpath" flag with a separated argument.
18081hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18082
18083# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18084# DIR into the resulting binary.
18085hardcode_direct=$hardcode_direct_D
18086
18087# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18088# DIR into the resulting binary and the resulting library dependency is
18089# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18090# library is relocated.
18091hardcode_direct_absolute=$hardcode_direct_absolute_D
18092
18093# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18094# into the resulting binary.
18095hardcode_minus_L=$hardcode_minus_L_D
18096
18097# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18098# into the resulting binary.
18099hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18100
18101# Set to "yes" if building a shared library automatically hardcodes DIR
18102# into the library and all subsequent libraries and executables linked
18103# against it.
18104hardcode_automatic=$hardcode_automatic_D
18105
18106# Set to yes if linker adds runtime paths of dependent libraries
18107# to runtime path list.
18108inherit_rpath=$inherit_rpath_D
18109
18110# Whether libtool must link a program against all its dependency libraries.
18111link_all_deplibs=$link_all_deplibs_D
18112
18113# Fix the shell variable \$srcfile for the compiler.
18114fix_srcfile_path=$lt_fix_srcfile_path_D
18115
18116# Set to "yes" if exported symbols are required.
18117always_export_symbols=$always_export_symbols_D
18118
18119# The commands to list exported symbols.
18120export_symbols_cmds=$lt_export_symbols_cmds_D
18121
18122# Symbols that should not be listed in the preloaded symbols.
18123exclude_expsyms=$lt_exclude_expsyms_D
18124
18125# Symbols that must always be exported.
18126include_expsyms=$lt_include_expsyms_D
18127
18128# Commands necessary for linking programs (against libraries) with templates.
18129prelink_cmds=$lt_prelink_cmds_D
18130
18131# Specify filename containing input files.
18132file_list_spec=$lt_file_list_spec_D
18133
18134# How to hardcode a shared library path into an executable.
18135hardcode_action=$hardcode_action_D
18136
18137# ### END LIBTOOL TAG CONFIG: D
18138_LT_EOF
18139
18140 ;;
18141 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
Iain Buclawac677522018-11-02 08:29:50 +000018142 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18143s!`test -f '$<' || echo '$(srcdir)/'`!!
Iain Buclawb4c522f2018-10-28 19:51:47 +000018144_EOF
Iain Buclawac677522018-11-02 08:29:50 +000018145 sed -f vpsed$$ $ac_file > tmp$$
18146 mv tmp$$ $ac_file
18147 rm vpsed$$
18148 echo 'MULTISUBDIR =' >> $ac_file
18149 ml_norecursion=yes
18150 . ${multi_basedir}/config-ml.in
18151 { ml_norecursion=; unset ml_norecursion;}
18152 ;;
18153 "src/Makefile":F) cat > vpsed$$ << \_EOF
18154s!`test -f '$<' || echo '$(srcdir)/'`!!
18155_EOF
18156 sed -f vpsed$$ $ac_file > tmp$$
18157 mv tmp$$ $ac_file
18158 rm vpsed$$
18159 echo 'MULTISUBDIR =' >> $ac_file
18160 ml_norecursion=yes
18161 . ${multi_basedir}/config-ml.in
18162 { ml_norecursion=; unset ml_norecursion;}
18163 ;;
18164 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18165s!`test -f '$<' || echo '$(srcdir)/'`!!
18166_EOF
18167 sed -f vpsed$$ $ac_file > tmp$$
18168 mv tmp$$ $ac_file
18169 rm vpsed$$
18170 echo 'MULTISUBDIR =' >> $ac_file
18171 ml_norecursion=yes
18172 . ${multi_basedir}/config-ml.in
18173 { ml_norecursion=; unset ml_norecursion;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000018174 ;;
18175
18176 esac
18177done # for ac_tag
18178
18179
18180as_fn_exit 0
18181_ACEOF
18182ac_clean_files=$ac_clean_files_save
18183
18184test $ac_write_fail = 0 ||
Joseph Myers22e05272018-10-31 17:03:16 +000018185 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000018186
18187
18188# configure is writing to config.log, and then calls config.status.
18189# config.status does its own redirection, appending to config.log.
18190# Unfortunately, on DOS this fails, as config.log is still kept open
18191# by configure, so config.status won't be able to write to it; its
18192# output is simply discarded. So we exec the FD to /dev/null,
18193# effectively closing config.log, so it can be properly (re)opened and
18194# appended to by config.status. When coming back to configure, we
18195# need to make the FD available again.
18196if test "$no_create" != yes; then
18197 ac_cs_success=:
18198 ac_config_status_args=
18199 test "$silent" = yes &&
18200 ac_config_status_args="$ac_config_status_args --quiet"
18201 exec 5>/dev/null
18202 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18203 exec 5>>config.log
18204 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18205 # would make configure fail if this is the last instruction.
Joseph Myers22e05272018-10-31 17:03:16 +000018206 $ac_cs_success || as_fn_exit 1
Iain Buclawb4c522f2018-10-28 19:51:47 +000018207fi
18208if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18210$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18211fi
18212