blob: 4c1116d6f80062efe26e1fc3bedc85b6c397cabd [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 Buclaw0ed75762020-09-10 01:30:20 +0200725CET_DFLAGS
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 Buclaw0ed75762020-09-10 01:30:20 +02005654# To ensure that runtime code for CET is compiled in, add in D version flags.
5655if test "$enable_cet" = yes; then
5656 CET_DFLAGS="$CET_FLAGS -fversion=CET"
Iain Buclaw285d81b2020-09-07 15:43:04 +02005657
Iain Buclaw0ed75762020-09-10 01:30:20 +02005658fi
H.J. Lu08c1d392020-05-08 15:11:24 -07005659
Iain Buclawb4c522f2018-10-28 19:51:47 +00005660# This should be inherited in the recursive make, but ensure it is defined.
5661test "$AR" || AR=ar
5662
5663
5664CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5665
5666
5667
5668# Enable libtool
5669case `pwd` in
5670 *\ * | *\ *)
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5672$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5673esac
5674
5675
5676
5677macro_version='2.2.7a'
5678macro_revision='1.3134'
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692ltmain="$ac_aux_dir/ltmain.sh"
5693
5694# Backslashify metacharacters that are still active within
5695# double-quoted strings.
5696sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5697
5698# Same as above, but do not quote variable references.
5699double_quote_subst='s/\(["`\\]\)/\\\1/g'
5700
5701# Sed substitution to delay expansion of an escaped shell variable in a
5702# double_quote_subst'ed string.
5703delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5704
5705# Sed substitution to delay expansion of an escaped single quote.
5706delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5707
5708# Sed substitution to avoid accidental globbing in evaled expressions
5709no_glob_subst='s/\*/\\\*/g'
5710
5711ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5712ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5713ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5714
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5716$as_echo_n "checking how to print strings... " >&6; }
5717# Test print first, because it will be a builtin if present.
5718if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5719 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5720 ECHO='print -r --'
5721elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5722 ECHO='printf %s\n'
5723else
5724 # Use this function as a fallback that always works.
5725 func_fallback_echo ()
5726 {
5727 eval 'cat <<_LTECHO_EOF
5728$1
5729_LTECHO_EOF'
5730 }
5731 ECHO='func_fallback_echo'
5732fi
5733
5734# func_echo_all arg...
5735# Invoke $ECHO with all args, space-separated.
5736func_echo_all ()
5737{
5738 $ECHO ""
5739}
5740
5741case "$ECHO" in
5742 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5743$as_echo "printf" >&6; } ;;
5744 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5745$as_echo "print -r" >&6; } ;;
5746 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5747$as_echo "cat" >&6; } ;;
5748esac
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5764$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005765if ${ac_cv_path_SED+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005766 $as_echo_n "(cached) " >&6
5767else
5768 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5769 for ac_i in 1 2 3 4 5 6 7; do
5770 ac_script="$ac_script$as_nl$ac_script"
5771 done
5772 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5773 { ac_script=; unset ac_script;}
5774 if test -z "$SED"; then
5775 ac_path_SED_found=false
5776 # Loop through the user's path and test for each of PROGNAME-LIST
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778for as_dir in $PATH
5779do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_prog in sed gsed; do
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005785 as_fn_executable_p "$ac_path_SED" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005786# Check for GNU ac_path_SED and select it if it is found.
5787 # Check for GNU $ac_path_SED
5788case `"$ac_path_SED" --version 2>&1` in
5789*GNU*)
5790 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5791*)
5792 ac_count=0
5793 $as_echo_n 0123456789 >"conftest.in"
5794 while :
5795 do
5796 cat "conftest.in" "conftest.in" >"conftest.tmp"
5797 mv "conftest.tmp" "conftest.in"
5798 cp "conftest.in" "conftest.nl"
5799 $as_echo '' >> "conftest.nl"
5800 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5802 as_fn_arith $ac_count + 1 && ac_count=$as_val
5803 if test $ac_count -gt ${ac_path_SED_max-0}; then
5804 # Best one so far, save it but keep looking for a better one
5805 ac_cv_path_SED="$ac_path_SED"
5806 ac_path_SED_max=$ac_count
5807 fi
5808 # 10*(2^10) chars as input seems more than enough
5809 test $ac_count -gt 10 && break
5810 done
5811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5812esac
5813
5814 $ac_path_SED_found && break 3
5815 done
5816 done
5817 done
5818IFS=$as_save_IFS
5819 if test -z "$ac_cv_path_SED"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005820 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005821 fi
5822else
5823 ac_cv_path_SED=$SED
5824fi
5825
5826fi
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5828$as_echo "$ac_cv_path_SED" >&6; }
5829 SED="$ac_cv_path_SED"
5830 rm -f conftest.sed
5831
5832test -z "$SED" && SED=sed
5833Xsed="$SED -e 1s/^X//"
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
Iain Buclawb4c522f2018-10-28 19:51:47 +00005845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5846$as_echo_n "checking for fgrep... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005847if ${ac_cv_path_FGREP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005848 $as_echo_n "(cached) " >&6
5849else
5850 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5851 then ac_cv_path_FGREP="$GREP -F"
5852 else
5853 if test -z "$FGREP"; then
5854 ac_path_FGREP_found=false
5855 # Loop through the user's path and test for each of PROGNAME-LIST
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5858do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_prog in fgrep; do
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005864 as_fn_executable_p "$ac_path_FGREP" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005865# Check for GNU ac_path_FGREP and select it if it is found.
5866 # Check for GNU $ac_path_FGREP
5867case `"$ac_path_FGREP" --version 2>&1` in
5868*GNU*)
5869 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5870*)
5871 ac_count=0
5872 $as_echo_n 0123456789 >"conftest.in"
5873 while :
5874 do
5875 cat "conftest.in" "conftest.in" >"conftest.tmp"
5876 mv "conftest.tmp" "conftest.in"
5877 cp "conftest.in" "conftest.nl"
5878 $as_echo 'FGREP' >> "conftest.nl"
5879 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5881 as_fn_arith $ac_count + 1 && ac_count=$as_val
5882 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5883 # Best one so far, save it but keep looking for a better one
5884 ac_cv_path_FGREP="$ac_path_FGREP"
5885 ac_path_FGREP_max=$ac_count
5886 fi
5887 # 10*(2^10) chars as input seems more than enough
5888 test $ac_count -gt 10 && break
5889 done
5890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5891esac
5892
5893 $ac_path_FGREP_found && break 3
5894 done
5895 done
5896 done
5897IFS=$as_save_IFS
5898 if test -z "$ac_cv_path_FGREP"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005899 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 +00005900 fi
5901else
5902 ac_cv_path_FGREP=$FGREP
5903fi
5904
5905 fi
5906fi
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5908$as_echo "$ac_cv_path_FGREP" >&6; }
5909 FGREP="$ac_cv_path_FGREP"
5910
5911
5912test -z "$GREP" && GREP=grep
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932# Check whether --with-gnu-ld was given.
5933if test "${with_gnu_ld+set}" = set; then :
5934 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5935else
5936 with_gnu_ld=no
5937fi
5938
5939ac_prog=ld
5940if test "$GCC" = yes; then
5941 # Check if gcc -print-prog-name=ld gives a path.
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5943$as_echo_n "checking for ld used by $CC... " >&6; }
5944 case $host in
5945 *-*-mingw*)
5946 # gcc leaves a trailing carriage return which upsets mingw
5947 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5948 *)
5949 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5950 esac
5951 case $ac_prog in
5952 # Accept absolute paths.
5953 [\\/]* | ?:[\\/]*)
5954 re_direlt='/[^/][^/]*/\.\./'
5955 # Canonicalize the pathname of ld
5956 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5957 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5958 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5959 done
5960 test -z "$LD" && LD="$ac_prog"
5961 ;;
5962 "")
5963 # If it fails, then pretend we aren't using GCC.
5964 ac_prog=ld
5965 ;;
5966 *)
5967 # If it is relative, then search for the first ld in PATH.
5968 with_gnu_ld=unknown
5969 ;;
5970 esac
5971elif test "$with_gnu_ld" = yes; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5973$as_echo_n "checking for GNU ld... " >&6; }
5974else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5976$as_echo_n "checking for non-GNU ld... " >&6; }
5977fi
Joseph Myers22e05272018-10-31 17:03:16 +00005978if ${lt_cv_path_LD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005979 $as_echo_n "(cached) " >&6
5980else
5981 if test -z "$LD"; then
5982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5983 for ac_dir in $PATH; do
5984 IFS="$lt_save_ifs"
5985 test -z "$ac_dir" && ac_dir=.
5986 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5987 lt_cv_path_LD="$ac_dir/$ac_prog"
5988 # Check to see if the program is GNU ld. I'd rather use --version,
5989 # but apparently some variants of GNU ld only accept -v.
5990 # Break only if it was the GNU/non-GNU ld that we prefer.
5991 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5992 *GNU* | *'with BFD'*)
5993 test "$with_gnu_ld" != no && break
5994 ;;
5995 *)
5996 test "$with_gnu_ld" != yes && break
5997 ;;
5998 esac
5999 fi
6000 done
6001 IFS="$lt_save_ifs"
6002else
6003 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6004fi
6005fi
6006
6007LD="$lt_cv_path_LD"
6008if test -n "$LD"; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6010$as_echo "$LD" >&6; }
6011else
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014fi
Joseph Myers22e05272018-10-31 17:03:16 +00006015test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00006016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6017$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006018if ${lt_cv_prog_gnu_ld+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006019 $as_echo_n "(cached) " >&6
6020else
6021 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6022case `$LD -v 2>&1 </dev/null` in
6023*GNU* | *'with BFD'*)
6024 lt_cv_prog_gnu_ld=yes
6025 ;;
6026*)
6027 lt_cv_prog_gnu_ld=no
6028 ;;
6029esac
6030fi
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6032$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6033with_gnu_ld=$lt_cv_prog_gnu_ld
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6044$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006045if ${lt_cv_path_NM+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006046 $as_echo_n "(cached) " >&6
6047else
6048 if test -n "$NM"; then
6049 # Let the user override the test.
6050 lt_cv_path_NM="$NM"
6051else
6052 lt_nm_to_check="${ac_tool_prefix}nm"
6053 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6054 lt_nm_to_check="$lt_nm_to_check nm"
6055 fi
6056 for lt_tmp_nm in $lt_nm_to_check; do
6057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6058 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6059 IFS="$lt_save_ifs"
6060 test -z "$ac_dir" && ac_dir=.
6061 tmp_nm="$ac_dir/$lt_tmp_nm"
6062 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6063 # Check to see if the nm accepts a BSD-compat flag.
6064 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6065 # nm: unknown option "B" ignored
6066 # Tru64's nm complains that /dev/null is an invalid object file
6067 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6068 */dev/null* | *'Invalid file or object type'*)
6069 lt_cv_path_NM="$tmp_nm -B"
6070 break
6071 ;;
6072 *)
6073 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6074 */dev/null*)
6075 lt_cv_path_NM="$tmp_nm -p"
6076 break
6077 ;;
6078 *)
6079 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6080 continue # so that we can try to find one that supports BSD flags
6081 ;;
6082 esac
6083 ;;
6084 esac
6085 fi
6086 done
6087 IFS="$lt_save_ifs"
6088 done
6089 : ${lt_cv_path_NM=no}
6090fi
6091fi
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6093$as_echo "$lt_cv_path_NM" >&6; }
6094if test "$lt_cv_path_NM" != "no"; then
6095 NM="$lt_cv_path_NM"
6096else
6097 # Didn't find any BSD compatible name lister, look for dumpbin.
6098 if test -n "$DUMPBIN"; then :
6099 # Let the user override the test.
6100 else
6101 if test -n "$ac_tool_prefix"; then
6102 for ac_prog in dumpbin "link -dump"
6103 do
6104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6105set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006108if ${ac_cv_prog_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006109 $as_echo_n "(cached) " >&6
6110else
6111 if test -n "$DUMPBIN"; then
6112 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6113else
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006121 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125done
6126 done
6127IFS=$as_save_IFS
6128
6129fi
6130fi
6131DUMPBIN=$ac_cv_prog_DUMPBIN
6132if test -n "$DUMPBIN"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6134$as_echo "$DUMPBIN" >&6; }
6135else
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137$as_echo "no" >&6; }
6138fi
6139
6140
6141 test -n "$DUMPBIN" && break
6142 done
6143fi
6144if test -z "$DUMPBIN"; then
6145 ac_ct_DUMPBIN=$DUMPBIN
6146 for ac_prog in dumpbin "link -dump"
6147do
6148 # Extract the first word of "$ac_prog", so it can be a program name with args.
6149set dummy $ac_prog; ac_word=$2
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006152if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006153 $as_echo_n "(cached) " >&6
6154else
6155 if test -n "$ac_ct_DUMPBIN"; then
6156 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006165 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6168 fi
6169done
6170 done
6171IFS=$as_save_IFS
6172
6173fi
6174fi
6175ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6176if test -n "$ac_ct_DUMPBIN"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6178$as_echo "$ac_ct_DUMPBIN" >&6; }
6179else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181$as_echo "no" >&6; }
6182fi
6183
6184
6185 test -n "$ac_ct_DUMPBIN" && break
6186done
6187
6188 if test "x$ac_ct_DUMPBIN" = x; then
6189 DUMPBIN=":"
6190 else
6191 case $cross_compiling:$ac_tool_warned in
6192yes:)
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6195ac_tool_warned=yes ;;
6196esac
6197 DUMPBIN=$ac_ct_DUMPBIN
6198 fi
6199fi
6200
6201 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6202 *COFF*)
6203 DUMPBIN="$DUMPBIN -symbols"
6204 ;;
6205 *)
6206 DUMPBIN=:
6207 ;;
6208 esac
6209 fi
6210
6211 if test "$DUMPBIN" != ":"; then
6212 NM="$DUMPBIN"
6213 fi
6214fi
6215test -z "$NM" && NM=nm
6216
6217
6218
6219
6220
6221
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6223$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006224if ${lt_cv_nm_interface+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006225 $as_echo_n "(cached) " >&6
6226else
6227 lt_cv_nm_interface="BSD nm"
6228 echo "int some_variable = 0;" > conftest.$ac_ext
6229 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6230 (eval "$ac_compile" 2>conftest.err)
6231 cat conftest.err >&5
6232 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6233 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6234 cat conftest.err >&5
6235 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6236 cat conftest.out >&5
6237 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6238 lt_cv_nm_interface="MS dumpbin"
6239 fi
6240 rm -f conftest*
6241fi
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6243$as_echo "$lt_cv_nm_interface" >&6; }
6244
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6246$as_echo_n "checking whether ln -s works... " >&6; }
6247LN_S=$as_ln_s
6248if test "$LN_S" = "ln -s"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6250$as_echo "yes" >&6; }
6251else
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6253$as_echo "no, using $LN_S" >&6; }
6254fi
6255
6256# find the maximum length of command line arguments
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6258$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006259if ${lt_cv_sys_max_cmd_len+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006260 $as_echo_n "(cached) " >&6
6261else
6262 i=0
6263 teststring="ABCD"
6264
6265 case $build_os in
6266 msdosdjgpp*)
6267 # On DJGPP, this test can blow up pretty badly due to problems in libc
6268 # (any single argument exceeding 2000 bytes causes a buffer overrun
6269 # during glob expansion). Even if it were fixed, the result of this
6270 # check would be larger than it should be.
6271 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6272 ;;
6273
6274 gnu*)
6275 # Under GNU Hurd, this test is not required because there is
6276 # no limit to the length of command line arguments.
6277 # Libtool will interpret -1 as no limit whatsoever
6278 lt_cv_sys_max_cmd_len=-1;
6279 ;;
6280
6281 cygwin* | mingw* | cegcc*)
6282 # On Win9x/ME, this test blows up -- it succeeds, but takes
6283 # about 5 minutes as the teststring grows exponentially.
6284 # Worse, since 9x/ME are not pre-emptively multitasking,
6285 # you end up with a "frozen" computer, even though with patience
6286 # the test eventually succeeds (with a max line length of 256k).
6287 # Instead, let's just punt: use the minimum linelength reported by
6288 # all of the supported platforms: 8192 (on NT/2K/XP).
6289 lt_cv_sys_max_cmd_len=8192;
6290 ;;
6291
6292 mint*)
6293 # On MiNT this can take a long time and run out of memory.
6294 lt_cv_sys_max_cmd_len=8192;
6295 ;;
6296
6297 amigaos*)
6298 # On AmigaOS with pdksh, this test takes hours, literally.
6299 # So we just punt and use a minimum line length of 8192.
6300 lt_cv_sys_max_cmd_len=8192;
6301 ;;
6302
6303 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6304 # This has been around since 386BSD, at least. Likely further.
6305 if test -x /sbin/sysctl; then
6306 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6307 elif test -x /usr/sbin/sysctl; then
6308 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6309 else
6310 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6311 fi
6312 # And add a safety zone
6313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6315 ;;
6316
6317 interix*)
6318 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6319 lt_cv_sys_max_cmd_len=196608
6320 ;;
6321
6322 osf*)
6323 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6324 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6325 # nice to cause kernel panics so lets avoid the loop below.
6326 # First set a reasonable default.
6327 lt_cv_sys_max_cmd_len=16384
6328 #
6329 if test -x /sbin/sysconfig; then
6330 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6331 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6332 esac
6333 fi
6334 ;;
6335 sco3.2v5*)
6336 lt_cv_sys_max_cmd_len=102400
6337 ;;
6338 sysv5* | sco5v6* | sysv4.2uw2*)
6339 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6340 if test -n "$kargmax"; then
6341 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6342 else
6343 lt_cv_sys_max_cmd_len=32768
6344 fi
6345 ;;
6346 *)
6347 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6348 if test -n "$lt_cv_sys_max_cmd_len"; then
6349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6351 else
6352 # Make teststring a little bigger before we do anything with it.
6353 # a 1K string should be a reasonable start.
6354 for i in 1 2 3 4 5 6 7 8 ; do
6355 teststring=$teststring$teststring
6356 done
6357 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6358 # If test is not a shell built-in, we'll probably end up computing a
6359 # maximum length that is only half of the actual maximum length, but
6360 # we can't tell.
6361 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6362 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6363 test $i != 17 # 1/2 MB should be enough
6364 do
6365 i=`expr $i + 1`
6366 teststring=$teststring$teststring
6367 done
6368 # Only check the string length outside the loop.
6369 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6370 teststring=
6371 # Add a significant safety factor because C++ compilers can tack on
6372 # massive amounts of additional arguments before passing them to the
6373 # linker. It appears as though 1/2 is a usable value.
6374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6375 fi
6376 ;;
6377 esac
6378
6379fi
6380
6381if test -n $lt_cv_sys_max_cmd_len ; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6383$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6384else
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6386$as_echo "none" >&6; }
6387fi
6388max_cmd_len=$lt_cv_sys_max_cmd_len
6389
6390
6391
6392
6393
6394
6395: ${CP="cp -f"}
6396: ${MV="mv -f"}
6397: ${RM="rm -f"}
6398
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6400$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6401# Try some XSI features
6402xsi_shell=no
6403( _lt_dummy="a/b/c"
6404 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6405 = c,a/b,, \
6406 && eval 'test $(( 1 + 1 )) -eq 2 \
6407 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6408 && xsi_shell=yes
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6410$as_echo "$xsi_shell" >&6; }
6411
6412
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6414$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6415lt_shell_append=no
6416( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6417 >/dev/null 2>&1 \
6418 && lt_shell_append=yes
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6420$as_echo "$lt_shell_append" >&6; }
6421
6422
6423if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6424 lt_unset=unset
6425else
6426 lt_unset=false
6427fi
6428
6429
6430
6431
6432
6433# test EBCDIC or ASCII
6434case `echo X|tr X '\101'` in
6435 A) # ASCII based system
6436 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6437 lt_SP2NL='tr \040 \012'
6438 lt_NL2SP='tr \015\012 \040\040'
6439 ;;
6440 *) # EBCDIC based system
6441 lt_SP2NL='tr \100 \n'
6442 lt_NL2SP='tr \r\n \100\100'
6443 ;;
6444esac
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6455$as_echo_n "checking for $LD option to reload object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006456if ${lt_cv_ld_reload_flag+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006457 $as_echo_n "(cached) " >&6
6458else
6459 lt_cv_ld_reload_flag='-r'
6460fi
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6462$as_echo "$lt_cv_ld_reload_flag" >&6; }
6463reload_flag=$lt_cv_ld_reload_flag
6464case $reload_flag in
6465"" | " "*) ;;
6466*) reload_flag=" $reload_flag" ;;
6467esac
6468reload_cmds='$LD$reload_flag -o $output$reload_objs'
6469case $host_os in
6470 darwin*)
6471 if test "$GCC" = yes; then
6472 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6473 else
6474 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6475 fi
6476 ;;
6477esac
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487if test -n "$ac_tool_prefix"; then
6488 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6489set dummy ${ac_tool_prefix}objdump; ac_word=$2
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006492if ${ac_cv_prog_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006493 $as_echo_n "(cached) " >&6
6494else
6495 if test -n "$OBJDUMP"; then
6496 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6497else
6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006505 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509done
6510 done
6511IFS=$as_save_IFS
6512
6513fi
6514fi
6515OBJDUMP=$ac_cv_prog_OBJDUMP
6516if test -n "$OBJDUMP"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6518$as_echo "$OBJDUMP" >&6; }
6519else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521$as_echo "no" >&6; }
6522fi
6523
6524
6525fi
6526if test -z "$ac_cv_prog_OBJDUMP"; then
6527 ac_ct_OBJDUMP=$OBJDUMP
6528 # Extract the first word of "objdump", so it can be a program name with args.
6529set dummy objdump; ac_word=$2
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006532if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006533 $as_echo_n "(cached) " >&6
6534else
6535 if test -n "$ac_ct_OBJDUMP"; then
6536 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006545 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549done
6550 done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6556if test -n "$ac_ct_OBJDUMP"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6558$as_echo "$ac_ct_OBJDUMP" >&6; }
6559else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
6562fi
6563
6564 if test "x$ac_ct_OBJDUMP" = x; then
6565 OBJDUMP="false"
6566 else
6567 case $cross_compiling:$ac_tool_warned in
6568yes:)
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571ac_tool_warned=yes ;;
6572esac
6573 OBJDUMP=$ac_ct_OBJDUMP
6574 fi
6575else
6576 OBJDUMP="$ac_cv_prog_OBJDUMP"
6577fi
6578
6579test -z "$OBJDUMP" && OBJDUMP=objdump
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6590$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006591if ${lt_cv_deplibs_check_method+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006592 $as_echo_n "(cached) " >&6
6593else
6594 lt_cv_file_magic_cmd='$MAGIC_CMD'
6595lt_cv_file_magic_test_file=
6596lt_cv_deplibs_check_method='unknown'
6597# Need to set the preceding variable on all platforms that support
6598# interlibrary dependencies.
6599# 'none' -- dependencies not supported.
6600# `unknown' -- same as none, but documents that we really don't know.
6601# 'pass_all' -- all dependencies passed with no checks.
6602# 'test_compile' -- check by making test program.
6603# 'file_magic [[regex]]' -- check by looking for files in library path
6604# which responds to the $file_magic_cmd with a given extended regex.
6605# If you have `file' or equivalent on your system and you're not sure
6606# whether `pass_all' will *always* work, you probably want this one.
6607
6608case $host_os in
6609aix[4-9]*)
6610 lt_cv_deplibs_check_method=pass_all
6611 ;;
6612
6613beos*)
6614 lt_cv_deplibs_check_method=pass_all
6615 ;;
6616
6617bsdi[45]*)
6618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6619 lt_cv_file_magic_cmd='/usr/bin/file -L'
6620 lt_cv_file_magic_test_file=/shlib/libc.so
6621 ;;
6622
6623cygwin*)
6624 # func_win32_libid is a shell function defined in ltmain.sh
6625 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6626 lt_cv_file_magic_cmd='func_win32_libid'
6627 ;;
6628
6629mingw* | pw32*)
6630 # Base MSYS/MinGW do not provide the 'file' command needed by
6631 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6632 # unless we find 'file', for example because we are cross-compiling.
6633 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6634 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6635 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6636 lt_cv_file_magic_cmd='func_win32_libid'
6637 else
6638 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6639 lt_cv_file_magic_cmd='$OBJDUMP -f'
6640 fi
6641 ;;
6642
6643cegcc*)
6644 # use the weaker test based on 'objdump'. See mingw*.
6645 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6646 lt_cv_file_magic_cmd='$OBJDUMP -f'
6647 ;;
6648
6649darwin* | rhapsody*)
6650 lt_cv_deplibs_check_method=pass_all
6651 ;;
6652
6653freebsd* | dragonfly*)
6654 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6655 case $host_cpu in
6656 i*86 )
6657 # Not sure whether the presence of OpenBSD here was a mistake.
6658 # Let's accept both of them until this is cleared up.
6659 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6660 lt_cv_file_magic_cmd=/usr/bin/file
6661 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6662 ;;
6663 esac
6664 else
6665 lt_cv_deplibs_check_method=pass_all
6666 fi
6667 ;;
6668
6669gnu*)
6670 lt_cv_deplibs_check_method=pass_all
6671 ;;
6672
6673haiku*)
6674 lt_cv_deplibs_check_method=pass_all
6675 ;;
6676
6677hpux10.20* | hpux11*)
6678 lt_cv_file_magic_cmd=/usr/bin/file
6679 case $host_cpu in
6680 ia64*)
6681 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6682 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6683 ;;
6684 hppa*64*)
6685 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]'
6686 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6687 ;;
6688 *)
6689 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6690 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6691 ;;
6692 esac
6693 ;;
6694
6695interix[3-9]*)
6696 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6698 ;;
6699
6700irix5* | irix6* | nonstopux*)
6701 case $LD in
6702 *-32|*"-32 ") libmagic=32-bit;;
6703 *-n32|*"-n32 ") libmagic=N32;;
6704 *-64|*"-64 ") libmagic=64-bit;;
6705 *) libmagic=never-match;;
6706 esac
6707 lt_cv_deplibs_check_method=pass_all
6708 ;;
6709
6710# This must be Linux ELF.
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +00006711linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +00006712 lt_cv_deplibs_check_method=pass_all
6713 ;;
6714
6715netbsd*)
6716 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6718 else
6719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6720 fi
6721 ;;
6722
6723newos6*)
6724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6725 lt_cv_file_magic_cmd=/usr/bin/file
6726 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6727 ;;
6728
6729*nto* | *qnx*)
6730 lt_cv_deplibs_check_method=pass_all
6731 ;;
6732
6733openbsd*)
6734 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6736 else
6737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6738 fi
6739 ;;
6740
6741osf3* | osf4* | osf5*)
6742 lt_cv_deplibs_check_method=pass_all
6743 ;;
6744
6745rdos*)
6746 lt_cv_deplibs_check_method=pass_all
6747 ;;
6748
6749solaris*)
6750 lt_cv_deplibs_check_method=pass_all
6751 ;;
6752
6753sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6754 lt_cv_deplibs_check_method=pass_all
6755 ;;
6756
6757sysv4 | sysv4.3*)
6758 case $host_vendor in
6759 motorola)
6760 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]'
6761 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6762 ;;
6763 ncr)
6764 lt_cv_deplibs_check_method=pass_all
6765 ;;
6766 sequent)
6767 lt_cv_file_magic_cmd='/bin/file'
6768 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6769 ;;
6770 sni)
6771 lt_cv_file_magic_cmd='/bin/file'
6772 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6773 lt_cv_file_magic_test_file=/lib/libc.so
6774 ;;
6775 siemens)
6776 lt_cv_deplibs_check_method=pass_all
6777 ;;
6778 pc)
6779 lt_cv_deplibs_check_method=pass_all
6780 ;;
6781 esac
6782 ;;
6783
6784tpf*)
6785 lt_cv_deplibs_check_method=pass_all
6786 ;;
6787esac
6788
6789fi
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6791$as_echo "$lt_cv_deplibs_check_method" >&6; }
6792file_magic_cmd=$lt_cv_file_magic_cmd
6793deplibs_check_method=$lt_cv_deplibs_check_method
6794test -z "$deplibs_check_method" && deplibs_check_method=unknown
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807if test -n "$ac_tool_prefix"; then
6808 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6809set dummy ${ac_tool_prefix}ar; ac_word=$2
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006812if ${ac_cv_prog_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006813 $as_echo_n "(cached) " >&6
6814else
6815 if test -n "$AR"; then
6816 ac_cv_prog_AR="$AR" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006825 ac_cv_prog_AR="${ac_tool_prefix}ar"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829done
6830 done
6831IFS=$as_save_IFS
6832
6833fi
6834fi
6835AR=$ac_cv_prog_AR
6836if test -n "$AR"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6838$as_echo "$AR" >&6; }
6839else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844
6845fi
6846if test -z "$ac_cv_prog_AR"; then
6847 ac_ct_AR=$AR
6848 # Extract the first word of "ar", so it can be a program name with args.
6849set dummy ar; ac_word=$2
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006852if ${ac_cv_prog_ac_ct_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006853 $as_echo_n "(cached) " >&6
6854else
6855 if test -n "$ac_ct_AR"; then
6856 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006865 ac_cv_prog_ac_ct_AR="ar"
6866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867 break 2
6868 fi
6869done
6870 done
6871IFS=$as_save_IFS
6872
6873fi
6874fi
6875ac_ct_AR=$ac_cv_prog_ac_ct_AR
6876if test -n "$ac_ct_AR"; then
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6878$as_echo "$ac_ct_AR" >&6; }
6879else
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881$as_echo "no" >&6; }
6882fi
6883
6884 if test "x$ac_ct_AR" = x; then
6885 AR="false"
6886 else
6887 case $cross_compiling:$ac_tool_warned in
6888yes:)
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891ac_tool_warned=yes ;;
6892esac
6893 AR=$ac_ct_AR
6894 fi
6895else
6896 AR="$ac_cv_prog_AR"
6897fi
6898
6899test -z "$AR" && AR=ar
6900test -z "$AR_FLAGS" && AR_FLAGS=cru
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6914set dummy ${ac_tool_prefix}strip; ac_word=$2
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006917if ${ac_cv_prog_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006918 $as_echo_n "(cached) " >&6
6919else
6920 if test -n "$STRIP"; then
6921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6922else
6923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934done
6935 done
6936IFS=$as_save_IFS
6937
6938fi
6939fi
6940STRIP=$ac_cv_prog_STRIP
6941if test -n "$STRIP"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6943$as_echo "$STRIP" >&6; }
6944else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946$as_echo "no" >&6; }
6947fi
6948
6949
6950fi
6951if test -z "$ac_cv_prog_STRIP"; then
6952 ac_ct_STRIP=$STRIP
6953 # Extract the first word of "strip", so it can be a program name with args.
6954set dummy strip; ac_word=$2
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006957if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006958 $as_echo_n "(cached) " >&6
6959else
6960 if test -n "$ac_ct_STRIP"; then
6961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6962else
6963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964for as_dir in $PATH
6965do
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006970 ac_cv_prog_ac_ct_STRIP="strip"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6973 fi
6974done
6975 done
6976IFS=$as_save_IFS
6977
6978fi
6979fi
6980ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6981if test -n "$ac_ct_STRIP"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6983$as_echo "$ac_ct_STRIP" >&6; }
6984else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986$as_echo "no" >&6; }
6987fi
6988
6989 if test "x$ac_ct_STRIP" = x; then
6990 STRIP=":"
6991 else
6992 case $cross_compiling:$ac_tool_warned in
6993yes:)
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996ac_tool_warned=yes ;;
6997esac
6998 STRIP=$ac_ct_STRIP
6999 fi
7000else
7001 STRIP="$ac_cv_prog_STRIP"
7002fi
7003
7004test -z "$STRIP" && STRIP=:
7005
7006
7007
7008
7009
7010
7011if test -n "$ac_tool_prefix"; then
7012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7013set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007016if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007017 $as_echo_n "(cached) " >&6
7018else
7019 if test -n "$RANLIB"; then
7020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7021else
7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7032 fi
7033done
7034 done
7035IFS=$as_save_IFS
7036
7037fi
7038fi
7039RANLIB=$ac_cv_prog_RANLIB
7040if test -n "$RANLIB"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7042$as_echo "$RANLIB" >&6; }
7043else
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045$as_echo "no" >&6; }
7046fi
7047
7048
7049fi
7050if test -z "$ac_cv_prog_RANLIB"; then
7051 ac_ct_RANLIB=$RANLIB
7052 # Extract the first word of "ranlib", so it can be a program name with args.
7053set dummy ranlib; ac_word=$2
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007056if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007057 $as_echo_n "(cached) " >&6
7058else
7059 if test -n "$ac_ct_RANLIB"; then
7060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7061else
7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007069 ac_cv_prog_ac_ct_RANLIB="ranlib"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 break 2
7072 fi
7073done
7074 done
7075IFS=$as_save_IFS
7076
7077fi
7078fi
7079ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7080if test -n "$ac_ct_RANLIB"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7082$as_echo "$ac_ct_RANLIB" >&6; }
7083else
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085$as_echo "no" >&6; }
7086fi
7087
7088 if test "x$ac_ct_RANLIB" = x; then
7089 RANLIB=":"
7090 else
7091 case $cross_compiling:$ac_tool_warned in
7092yes:)
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7095ac_tool_warned=yes ;;
7096esac
7097 RANLIB=$ac_ct_RANLIB
7098 fi
7099else
7100 RANLIB="$ac_cv_prog_RANLIB"
7101fi
7102
7103test -z "$RANLIB" && RANLIB=:
7104
7105
7106
7107
7108
7109
7110# Determine commands to create old-style static archives.
7111old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7112old_postinstall_cmds='chmod 644 $oldlib'
7113old_postuninstall_cmds=
7114
7115if test -n "$RANLIB"; then
7116 case $host_os in
7117 openbsd*)
7118 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7119 ;;
7120 *)
7121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7122 ;;
7123 esac
7124 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7125fi
7126
7127case $host_os in
7128 darwin*)
7129 lock_old_archive_extraction=yes ;;
7130 *)
7131 lock_old_archive_extraction=no ;;
7132esac
7133
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# If no C compiler was specified, use CC.
7173LTCC=${LTCC-"$CC"}
7174
7175# If no C compiler flags were specified, use CFLAGS.
7176LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7177
7178# Allow CC to be a program name with arguments.
7179compiler=$CC
7180
7181
7182# Check for command to grab the raw symbol name followed by C symbol from nm.
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7184$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007185if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007186 $as_echo_n "(cached) " >&6
7187else
7188
7189# These are sane defaults that work on at least a few old systems.
7190# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7191
7192# Character class describing NM global symbol codes.
7193symcode='[BCDEGRST]'
7194
7195# Regexp to match symbols that can be accessed directly from C.
7196sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7197
7198# Define system-specific variables.
7199case $host_os in
7200aix*)
7201 symcode='[BCDT]'
7202 ;;
7203cygwin* | mingw* | pw32* | cegcc*)
7204 symcode='[ABCDGISTW]'
7205 ;;
7206hpux*)
7207 if test "$host_cpu" = ia64; then
7208 symcode='[ABCDEGRST]'
7209 fi
7210 ;;
7211irix* | nonstopux*)
7212 symcode='[BCDEGRST]'
7213 ;;
7214osf*)
7215 symcode='[BCDEGQRST]'
7216 ;;
7217solaris*)
7218 symcode='[BDRT]'
7219 ;;
7220sco3.2v5*)
7221 symcode='[DT]'
7222 ;;
7223sysv4.2uw2*)
7224 symcode='[DT]'
7225 ;;
7226sysv5* | sco5v6* | unixware* | OpenUNIX*)
7227 symcode='[ABDT]'
7228 ;;
7229sysv4)
7230 symcode='[DFNSTU]'
7231 ;;
7232esac
7233
7234# If we're using GNU nm, then use its standard symbol codes.
7235case `$NM -V 2>&1` in
7236*GNU* | *'with BFD'*)
7237 symcode='[ABCDGIRSTW]' ;;
7238esac
7239
7240# Transform an extracted symbol line into a proper C declaration.
7241# Some systems (esp. on ia64) link data and code symbols differently,
7242# so use this general approach.
7243lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7244
7245# Transform an extracted symbol line into symbol name and symbol address
7246lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7247lt_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'"
7248
7249# Handle CRLF in mingw tool chain
7250opt_cr=
7251case $build_os in
7252mingw*)
7253 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7254 ;;
7255esac
7256
7257# Try without a prefix underscore, then with it.
7258for ac_symprfx in "" "_"; do
7259
7260 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7261 symxfrm="\\1 $ac_symprfx\\2 \\2"
7262
7263 # Write the raw and C identifiers.
7264 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7265 # Fake it for dumpbin and say T for any non-static function
7266 # and D for any global variable.
7267 # Also find C++ and __fastcall symbols from MSVC++,
7268 # which start with @ or ?.
7269 lt_cv_sys_global_symbol_pipe="$AWK '"\
7270" {last_section=section; section=\$ 3};"\
7271" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7272" \$ 0!~/External *\|/{next};"\
7273" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7274" {if(hide[section]) next};"\
7275" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7276" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7277" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7278" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7279" ' prfx=^$ac_symprfx"
7280 else
7281 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7282 fi
7283
7284 # Check to see that the pipe works correctly.
7285 pipe_works=no
7286
7287 rm -f conftest*
7288 cat > conftest.$ac_ext <<_LT_EOF
7289#ifdef __cplusplus
7290extern "C" {
7291#endif
7292char nm_test_var;
7293void nm_test_func(void);
7294void nm_test_func(void){}
7295#ifdef __cplusplus
7296}
7297#endif
7298int main(){nm_test_var='a';nm_test_func();return(0);}
7299_LT_EOF
7300
7301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7302 (eval $ac_compile) 2>&5
7303 ac_status=$?
7304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7305 test $ac_status = 0; }; then
7306 # Now try to grab the symbols.
7307 nlist=conftest.nm
7308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7309 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7310 ac_status=$?
7311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312 test $ac_status = 0; } && test -s "$nlist"; then
7313 # Try sorting and uniquifying the output.
7314 if sort "$nlist" | uniq > "$nlist"T; then
7315 mv -f "$nlist"T "$nlist"
7316 else
7317 rm -f "$nlist"T
7318 fi
7319
7320 # Make sure that we snagged all the symbols we need.
7321 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7322 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7323 cat <<_LT_EOF > conftest.$ac_ext
7324#ifdef __cplusplus
7325extern "C" {
7326#endif
7327
7328_LT_EOF
7329 # Now generate the symbol file.
7330 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7331
7332 cat <<_LT_EOF >> conftest.$ac_ext
7333
7334/* The mapping between symbol names and symbols. */
7335const struct {
7336 const char *name;
7337 void *address;
7338}
7339lt__PROGRAM__LTX_preloaded_symbols[] =
7340{
7341 { "@PROGRAM@", (void *) 0 },
7342_LT_EOF
7343 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7344 cat <<\_LT_EOF >> conftest.$ac_ext
7345 {0, (void *) 0}
7346};
7347
7348/* This works around a problem in FreeBSD linker */
7349#ifdef FREEBSD_WORKAROUND
7350static const void *lt_preloaded_setup() {
7351 return lt__PROGRAM__LTX_preloaded_symbols;
7352}
7353#endif
7354
7355#ifdef __cplusplus
7356}
7357#endif
7358_LT_EOF
7359 # Now try linking the two files.
7360 mv conftest.$ac_objext conftstm.$ac_objext
7361 lt_save_LIBS="$LIBS"
7362 lt_save_CFLAGS="$CFLAGS"
7363 LIBS="conftstm.$ac_objext"
7364 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7366 (eval $ac_link) 2>&5
7367 ac_status=$?
7368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7370 pipe_works=yes
7371 fi
7372 LIBS="$lt_save_LIBS"
7373 CFLAGS="$lt_save_CFLAGS"
7374 else
7375 echo "cannot find nm_test_func in $nlist" >&5
7376 fi
7377 else
7378 echo "cannot find nm_test_var in $nlist" >&5
7379 fi
7380 else
7381 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7382 fi
7383 else
7384 echo "$progname: failed program was:" >&5
7385 cat conftest.$ac_ext >&5
7386 fi
7387 rm -rf conftest* conftst*
7388
7389 # Do not use the global_symbol_pipe unless it works.
7390 if test "$pipe_works" = yes; then
7391 break
7392 else
7393 lt_cv_sys_global_symbol_pipe=
7394 fi
7395done
7396
7397fi
7398
7399if test -z "$lt_cv_sys_global_symbol_pipe"; then
7400 lt_cv_sys_global_symbol_to_cdecl=
7401fi
7402if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7404$as_echo "failed" >&6; }
7405else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7407$as_echo "ok" >&6; }
7408fi
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
Iain Buclawb4c522f2018-10-28 19:51:47 +00007431# Check whether --enable-libtool-lock was given.
7432if test "${enable_libtool_lock+set}" = set; then :
7433 enableval=$enable_libtool_lock;
7434fi
7435
7436test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7437
7438# Some flags need to be propagated to the compiler or linker for good
7439# libtool support.
7440case $host in
7441ia64-*-hpux*)
7442 # Find out which ABI we are using.
7443 echo 'int i;' > conftest.$ac_ext
7444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445 (eval $ac_compile) 2>&5
7446 ac_status=$?
7447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448 test $ac_status = 0; }; then
7449 case `/usr/bin/file conftest.$ac_objext` in
7450 *ELF-32*)
7451 HPUX_IA64_MODE="32"
7452 ;;
7453 *ELF-64*)
7454 HPUX_IA64_MODE="64"
7455 ;;
7456 esac
7457 fi
7458 rm -rf conftest*
7459 ;;
7460*-*-irix6*)
7461 # Find out which ABI we are using.
7462 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7464 (eval $ac_compile) 2>&5
7465 ac_status=$?
7466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7467 test $ac_status = 0; }; then
7468 if test "$lt_cv_prog_gnu_ld" = yes; then
7469 case `/usr/bin/file conftest.$ac_objext` in
7470 *32-bit*)
7471 LD="${LD-ld} -melf32bsmip"
7472 ;;
7473 *N32*)
7474 LD="${LD-ld} -melf32bmipn32"
7475 ;;
7476 *64-bit*)
7477 LD="${LD-ld} -melf64bmip"
7478 ;;
7479 esac
7480 else
7481 case `/usr/bin/file conftest.$ac_objext` in
7482 *32-bit*)
7483 LD="${LD-ld} -32"
7484 ;;
7485 *N32*)
7486 LD="${LD-ld} -n32"
7487 ;;
7488 *64-bit*)
7489 LD="${LD-ld} -64"
7490 ;;
7491 esac
7492 fi
7493 fi
7494 rm -rf conftest*
7495 ;;
7496
7497x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7498s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7499 # Find out which ABI we are using.
7500 echo 'int i;' > conftest.$ac_ext
7501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7502 (eval $ac_compile) 2>&5
7503 ac_status=$?
7504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505 test $ac_status = 0; }; then
7506 case `/usr/bin/file conftest.o` in
7507 *32-bit*)
7508 case $host in
7509 x86_64-*kfreebsd*-gnu)
7510 LD="${LD-ld} -m elf_i386_fbsd"
7511 ;;
7512 x86_64-*linux*)
7513 case `/usr/bin/file conftest.o` in
7514 *x86-64*)
7515 LD="${LD-ld} -m elf32_x86_64"
7516 ;;
7517 *)
7518 LD="${LD-ld} -m elf_i386"
7519 ;;
7520 esac
7521 ;;
7522 powerpc64le-*linux*)
7523 LD="${LD-ld} -m elf32lppclinux"
7524 ;;
7525 powerpc64-*linux*)
7526 LD="${LD-ld} -m elf32ppclinux"
7527 ;;
7528 s390x-*linux*)
7529 LD="${LD-ld} -m elf_s390"
7530 ;;
7531 sparc64-*linux*)
7532 LD="${LD-ld} -m elf32_sparc"
7533 ;;
7534 esac
7535 ;;
7536 *64-bit*)
7537 case $host in
7538 x86_64-*kfreebsd*-gnu)
7539 LD="${LD-ld} -m elf_x86_64_fbsd"
7540 ;;
7541 x86_64-*linux*)
7542 LD="${LD-ld} -m elf_x86_64"
7543 ;;
7544 powerpcle-*linux*)
7545 LD="${LD-ld} -m elf64lppc"
7546 ;;
7547 powerpc-*linux*)
7548 LD="${LD-ld} -m elf64ppc"
7549 ;;
7550 s390*-*linux*|s390*-*tpf*)
7551 LD="${LD-ld} -m elf64_s390"
7552 ;;
7553 sparc*-*linux*)
7554 LD="${LD-ld} -m elf64_sparc"
7555 ;;
7556 esac
7557 ;;
7558 esac
7559 fi
7560 rm -rf conftest*
7561 ;;
7562
7563*-*-sco3.2v5*)
7564 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7565 SAVE_CFLAGS="$CFLAGS"
7566 CFLAGS="$CFLAGS -belf"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7568$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007569if ${lt_cv_cc_needs_belf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007570 $as_echo_n "(cached) " >&6
7571else
7572 ac_ext=c
7573ac_cpp='$CPP $CPPFLAGS'
7574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7576ac_compiler_gnu=$ac_cv_c_compiler_gnu
7577
7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579/* end confdefs.h. */
7580
7581int
7582main ()
7583{
7584
7585 ;
7586 return 0;
7587}
7588_ACEOF
7589if ac_fn_c_try_link "$LINENO"; then :
7590 lt_cv_cc_needs_belf=yes
7591else
7592 lt_cv_cc_needs_belf=no
7593fi
7594rm -f core conftest.err conftest.$ac_objext \
7595 conftest$ac_exeext conftest.$ac_ext
7596 ac_ext=c
7597ac_cpp='$CPP $CPPFLAGS'
7598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7600ac_compiler_gnu=$ac_cv_c_compiler_gnu
7601
7602fi
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7604$as_echo "$lt_cv_cc_needs_belf" >&6; }
7605 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7606 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7607 CFLAGS="$SAVE_CFLAGS"
7608 fi
7609 ;;
7610sparc*-*solaris*)
7611 # Find out which ABI we are using.
7612 echo 'int i;' > conftest.$ac_ext
7613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7614 (eval $ac_compile) 2>&5
7615 ac_status=$?
7616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7617 test $ac_status = 0; }; then
7618 case `/usr/bin/file conftest.o` in
7619 *64-bit*)
7620 case $lt_cv_prog_gnu_ld in
7621 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7622 *)
7623 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7624 LD="${LD-ld} -64"
7625 fi
7626 ;;
7627 esac
7628 ;;
7629 esac
7630 fi
7631 rm -rf conftest*
7632 ;;
7633esac
7634
7635need_locks="$enable_libtool_lock"
7636
7637
7638 case $host_os in
7639 rhapsody* | darwin*)
7640 if test -n "$ac_tool_prefix"; then
7641 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7642set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007645if ${ac_cv_prog_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007646 $as_echo_n "(cached) " >&6
7647else
7648 if test -n "$DSYMUTIL"; then
7649 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7650else
7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652for as_dir in $PATH
7653do
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007658 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7661 fi
7662done
7663 done
7664IFS=$as_save_IFS
7665
7666fi
7667fi
7668DSYMUTIL=$ac_cv_prog_DSYMUTIL
7669if test -n "$DSYMUTIL"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7671$as_echo "$DSYMUTIL" >&6; }
7672else
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674$as_echo "no" >&6; }
7675fi
7676
7677
7678fi
7679if test -z "$ac_cv_prog_DSYMUTIL"; then
7680 ac_ct_DSYMUTIL=$DSYMUTIL
7681 # Extract the first word of "dsymutil", so it can be a program name with args.
7682set dummy dsymutil; ac_word=$2
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7684$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007685if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007686 $as_echo_n "(cached) " >&6
7687else
7688 if test -n "$ac_ct_DSYMUTIL"; then
7689 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7690else
7691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692for as_dir in $PATH
7693do
7694 IFS=$as_save_IFS
7695 test -z "$as_dir" && as_dir=.
7696 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007698 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 break 2
7701 fi
7702done
7703 done
7704IFS=$as_save_IFS
7705
7706fi
7707fi
7708ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7709if test -n "$ac_ct_DSYMUTIL"; then
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7711$as_echo "$ac_ct_DSYMUTIL" >&6; }
7712else
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714$as_echo "no" >&6; }
7715fi
7716
7717 if test "x$ac_ct_DSYMUTIL" = x; then
7718 DSYMUTIL=":"
7719 else
7720 case $cross_compiling:$ac_tool_warned in
7721yes:)
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7724ac_tool_warned=yes ;;
7725esac
7726 DSYMUTIL=$ac_ct_DSYMUTIL
7727 fi
7728else
7729 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7730fi
7731
7732 if test -n "$ac_tool_prefix"; then
7733 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7734set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007737if ${ac_cv_prog_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007738 $as_echo_n "(cached) " >&6
7739else
7740 if test -n "$NMEDIT"; then
7741 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7742else
7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744for as_dir in $PATH
7745do
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007750 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 break 2
7753 fi
7754done
7755 done
7756IFS=$as_save_IFS
7757
7758fi
7759fi
7760NMEDIT=$ac_cv_prog_NMEDIT
7761if test -n "$NMEDIT"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7763$as_echo "$NMEDIT" >&6; }
7764else
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766$as_echo "no" >&6; }
7767fi
7768
7769
7770fi
7771if test -z "$ac_cv_prog_NMEDIT"; then
7772 ac_ct_NMEDIT=$NMEDIT
7773 # Extract the first word of "nmedit", so it can be a program name with args.
7774set dummy nmedit; ac_word=$2
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007777if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007778 $as_echo_n "(cached) " >&6
7779else
7780 if test -n "$ac_ct_NMEDIT"; then
7781 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7782else
7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784for as_dir in $PATH
7785do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007790 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 break 2
7793 fi
7794done
7795 done
7796IFS=$as_save_IFS
7797
7798fi
7799fi
7800ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7801if test -n "$ac_ct_NMEDIT"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7803$as_echo "$ac_ct_NMEDIT" >&6; }
7804else
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
7807fi
7808
7809 if test "x$ac_ct_NMEDIT" = x; then
7810 NMEDIT=":"
7811 else
7812 case $cross_compiling:$ac_tool_warned in
7813yes:)
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7816ac_tool_warned=yes ;;
7817esac
7818 NMEDIT=$ac_ct_NMEDIT
7819 fi
7820else
7821 NMEDIT="$ac_cv_prog_NMEDIT"
7822fi
7823
7824 if test -n "$ac_tool_prefix"; then
7825 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7826set dummy ${ac_tool_prefix}lipo; ac_word=$2
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007829if ${ac_cv_prog_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007830 $as_echo_n "(cached) " >&6
7831else
7832 if test -n "$LIPO"; then
7833 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7834else
7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007842 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7845 fi
7846done
7847 done
7848IFS=$as_save_IFS
7849
7850fi
7851fi
7852LIPO=$ac_cv_prog_LIPO
7853if test -n "$LIPO"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7855$as_echo "$LIPO" >&6; }
7856else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858$as_echo "no" >&6; }
7859fi
7860
7861
7862fi
7863if test -z "$ac_cv_prog_LIPO"; then
7864 ac_ct_LIPO=$LIPO
7865 # Extract the first word of "lipo", so it can be a program name with args.
7866set dummy lipo; ac_word=$2
7867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007869if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007870 $as_echo_n "(cached) " >&6
7871else
7872 if test -n "$ac_ct_LIPO"; then
7873 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7874else
7875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876for as_dir in $PATH
7877do
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007882 ac_cv_prog_ac_ct_LIPO="lipo"
7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7885 fi
7886done
7887 done
7888IFS=$as_save_IFS
7889
7890fi
7891fi
7892ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7893if test -n "$ac_ct_LIPO"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7895$as_echo "$ac_ct_LIPO" >&6; }
7896else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898$as_echo "no" >&6; }
7899fi
7900
7901 if test "x$ac_ct_LIPO" = x; then
7902 LIPO=":"
7903 else
7904 case $cross_compiling:$ac_tool_warned in
7905yes:)
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7908ac_tool_warned=yes ;;
7909esac
7910 LIPO=$ac_ct_LIPO
7911 fi
7912else
7913 LIPO="$ac_cv_prog_LIPO"
7914fi
7915
7916 if test -n "$ac_tool_prefix"; then
7917 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7918set dummy ${ac_tool_prefix}otool; ac_word=$2
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007921if ${ac_cv_prog_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007922 $as_echo_n "(cached) " >&6
7923else
7924 if test -n "$OTOOL"; then
7925 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7926else
7927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928for as_dir in $PATH
7929do
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007934 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 break 2
7937 fi
7938done
7939 done
7940IFS=$as_save_IFS
7941
7942fi
7943fi
7944OTOOL=$ac_cv_prog_OTOOL
7945if test -n "$OTOOL"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7947$as_echo "$OTOOL" >&6; }
7948else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950$as_echo "no" >&6; }
7951fi
7952
7953
7954fi
7955if test -z "$ac_cv_prog_OTOOL"; then
7956 ac_ct_OTOOL=$OTOOL
7957 # Extract the first word of "otool", so it can be a program name with args.
7958set dummy otool; ac_word=$2
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007961if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007962 $as_echo_n "(cached) " >&6
7963else
7964 if test -n "$ac_ct_OTOOL"; then
7965 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7966else
7967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968for as_dir in $PATH
7969do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007974 ac_cv_prog_ac_ct_OTOOL="otool"
7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 break 2
7977 fi
7978done
7979 done
7980IFS=$as_save_IFS
7981
7982fi
7983fi
7984ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7985if test -n "$ac_ct_OTOOL"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7987$as_echo "$ac_ct_OTOOL" >&6; }
7988else
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990$as_echo "no" >&6; }
7991fi
7992
7993 if test "x$ac_ct_OTOOL" = x; then
7994 OTOOL=":"
7995 else
7996 case $cross_compiling:$ac_tool_warned in
7997yes:)
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8000ac_tool_warned=yes ;;
8001esac
8002 OTOOL=$ac_ct_OTOOL
8003 fi
8004else
8005 OTOOL="$ac_cv_prog_OTOOL"
8006fi
8007
8008 if test -n "$ac_tool_prefix"; then
8009 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8010set dummy ${ac_tool_prefix}otool64; ac_word=$2
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008013if ${ac_cv_prog_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008014 $as_echo_n "(cached) " >&6
8015else
8016 if test -n "$OTOOL64"; then
8017 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8018else
8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020for as_dir in $PATH
8021do
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00008025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00008026 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8029 fi
8030done
8031 done
8032IFS=$as_save_IFS
8033
8034fi
8035fi
8036OTOOL64=$ac_cv_prog_OTOOL64
8037if test -n "$OTOOL64"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8039$as_echo "$OTOOL64" >&6; }
8040else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042$as_echo "no" >&6; }
8043fi
8044
8045
8046fi
8047if test -z "$ac_cv_prog_OTOOL64"; then
8048 ac_ct_OTOOL64=$OTOOL64
8049 # Extract the first word of "otool64", so it can be a program name with args.
8050set dummy otool64; ac_word=$2
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008053if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008054 $as_echo_n "(cached) " >&6
8055else
8056 if test -n "$ac_ct_OTOOL64"; then
8057 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8058else
8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00008065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00008066 ac_cv_prog_ac_ct_OTOOL64="otool64"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8069 fi
8070done
8071 done
8072IFS=$as_save_IFS
8073
8074fi
8075fi
8076ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8077if test -n "$ac_ct_OTOOL64"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8079$as_echo "$ac_ct_OTOOL64" >&6; }
8080else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082$as_echo "no" >&6; }
8083fi
8084
8085 if test "x$ac_ct_OTOOL64" = x; then
8086 OTOOL64=":"
8087 else
8088 case $cross_compiling:$ac_tool_warned in
8089yes:)
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8092ac_tool_warned=yes ;;
8093esac
8094 OTOOL64=$ac_ct_OTOOL64
8095 fi
8096else
8097 OTOOL64="$ac_cv_prog_OTOOL64"
8098fi
8099
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8127$as_echo_n "checking for -single_module linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008128if ${lt_cv_apple_cc_single_mod+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008129 $as_echo_n "(cached) " >&6
8130else
8131 lt_cv_apple_cc_single_mod=no
8132 if test -z "${LT_MULTI_MODULE}"; then
8133 # By default we will add the -single_module flag. You can override
8134 # by either setting the environment variable LT_MULTI_MODULE
8135 # non-empty at configure time, or by adding -multi_module to the
8136 # link flags.
8137 rm -rf libconftest.dylib*
8138 echo "int foo(void){return 1;}" > conftest.c
8139 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8140-dynamiclib -Wl,-single_module conftest.c" >&5
8141 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8142 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8143 _lt_result=$?
8144 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8145 lt_cv_apple_cc_single_mod=yes
8146 else
8147 cat conftest.err >&5
8148 fi
8149 rm -rf libconftest.dylib*
8150 rm -f conftest.*
8151 fi
8152fi
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8154$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8156$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008157if ${lt_cv_ld_exported_symbols_list+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008158 $as_echo_n "(cached) " >&6
8159else
8160 lt_cv_ld_exported_symbols_list=no
8161 save_LDFLAGS=$LDFLAGS
8162 echo "_main" > conftest.sym
8163 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h. */
8166
8167int
8168main ()
8169{
8170
8171 ;
8172 return 0;
8173}
8174_ACEOF
8175if ac_fn_c_try_link "$LINENO"; then :
8176 lt_cv_ld_exported_symbols_list=yes
8177else
8178 lt_cv_ld_exported_symbols_list=no
8179fi
8180rm -f core conftest.err conftest.$ac_objext \
8181 conftest$ac_exeext conftest.$ac_ext
8182 LDFLAGS="$save_LDFLAGS"
8183
8184fi
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8186$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8188$as_echo_n "checking for -force_load linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008189if ${lt_cv_ld_force_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008190 $as_echo_n "(cached) " >&6
8191else
8192 lt_cv_ld_force_load=no
8193 cat > conftest.c << _LT_EOF
8194int forced_loaded() { return 2;}
8195_LT_EOF
8196 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8197 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8198 echo "$AR cru libconftest.a conftest.o" >&5
8199 $AR cru libconftest.a conftest.o 2>&5
8200 cat > conftest.c << _LT_EOF
8201int main() { return 0;}
8202_LT_EOF
8203 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8204 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8205 _lt_result=$?
8206 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8207 lt_cv_ld_force_load=yes
8208 else
8209 cat conftest.err >&5
8210 fi
8211 rm -f conftest.err libconftest.a conftest conftest.c
8212 rm -rf conftest.dSYM
8213
8214fi
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8216$as_echo "$lt_cv_ld_force_load" >&6; }
8217 case $host_os in
8218 rhapsody* | darwin1.[012])
8219 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8220 darwin1.*)
8221 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8222 darwin*) # darwin 5.x on
8223 # if running on 10.5 or later, the deployment target defaults
8224 # to the OS version, if on x86, and 10.4, the deployment
8225 # target defaults to 10.4. Don't you love it?
8226 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8227 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8228 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8229 10.[012][,.]*)
8230 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8231 10.*)
8232 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8233 esac
8234 ;;
8235 esac
8236 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8237 _lt_dar_single_mod='$single_module'
8238 fi
8239 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8240 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8241 else
8242 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8243 fi
8244 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8245 _lt_dsymutil='~$DSYMUTIL $lib || :'
8246 else
8247 _lt_dsymutil=
8248 fi
8249 ;;
8250 esac
8251
Iain Buclawb4c522f2018-10-28 19:51:47 +00008252for ac_header in dlfcn.h
8253do :
8254 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8255"
Joseph Myers22e05272018-10-31 17:03:16 +00008256if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008257 cat >>confdefs.h <<_ACEOF
8258#define HAVE_DLFCN_H 1
8259_ACEOF
8260
8261fi
8262
8263done
8264
8265
8266
8267
8268
8269# Set options
8270enable_dlopen=yes
8271
8272
8273
8274
8275 enable_win32_dll=no
8276
8277
8278 # Check whether --enable-shared was given.
8279if test "${enable_shared+set}" = set; then :
8280 enableval=$enable_shared; p=${PACKAGE-default}
8281 case $enableval in
8282 yes) enable_shared=yes ;;
8283 no) enable_shared=no ;;
8284 *)
8285 enable_shared=no
8286 # Look at the argument we got. We use all the common list separators.
8287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8288 for pkg in $enableval; do
8289 IFS="$lt_save_ifs"
8290 if test "X$pkg" = "X$p"; then
8291 enable_shared=yes
8292 fi
8293 done
8294 IFS="$lt_save_ifs"
8295 ;;
8296 esac
8297else
8298 enable_shared=yes
8299fi
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309 # Check whether --enable-static was given.
8310if test "${enable_static+set}" = set; then :
8311 enableval=$enable_static; p=${PACKAGE-default}
8312 case $enableval in
8313 yes) enable_static=yes ;;
8314 no) enable_static=no ;;
8315 *)
8316 enable_static=no
8317 # Look at the argument we got. We use all the common list separators.
8318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8319 for pkg in $enableval; do
8320 IFS="$lt_save_ifs"
8321 if test "X$pkg" = "X$p"; then
8322 enable_static=yes
8323 fi
8324 done
8325 IFS="$lt_save_ifs"
8326 ;;
8327 esac
8328else
8329 enable_static=yes
8330fi
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341# Check whether --with-pic was given.
8342if test "${with_pic+set}" = set; then :
8343 withval=$with_pic; pic_mode="$withval"
8344else
8345 pic_mode=default
8346fi
8347
8348
8349test -z "$pic_mode" && pic_mode=default
8350
8351
8352
8353
8354
8355
8356
8357 # Check whether --enable-fast-install was given.
8358if test "${enable_fast_install+set}" = set; then :
8359 enableval=$enable_fast_install; p=${PACKAGE-default}
8360 case $enableval in
8361 yes) enable_fast_install=yes ;;
8362 no) enable_fast_install=no ;;
8363 *)
8364 enable_fast_install=no
8365 # Look at the argument we got. We use all the common list separators.
8366 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8367 for pkg in $enableval; do
8368 IFS="$lt_save_ifs"
8369 if test "X$pkg" = "X$p"; then
8370 enable_fast_install=yes
8371 fi
8372 done
8373 IFS="$lt_save_ifs"
8374 ;;
8375 esac
8376else
8377 enable_fast_install=yes
8378fi
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390# This can be used to rebuild libtool when needed
8391LIBTOOL_DEPS="$ltmain"
8392
8393# Always use our own libtool.
8394LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8395
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
8421test -z "$LN_S" && LN_S="ln -s"
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436if test -n "${ZSH_VERSION+set}" ; then
8437 setopt NO_GLOB_SUBST
8438fi
8439
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8441$as_echo_n "checking for objdir... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008442if ${lt_cv_objdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008443 $as_echo_n "(cached) " >&6
8444else
8445 rm -f .libs 2>/dev/null
8446mkdir .libs 2>/dev/null
8447if test -d .libs; then
8448 lt_cv_objdir=.libs
8449else
8450 # MS-DOS does not allow filenames that begin with a dot.
8451 lt_cv_objdir=_libs
8452fi
8453rmdir .libs 2>/dev/null
8454fi
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8456$as_echo "$lt_cv_objdir" >&6; }
8457objdir=$lt_cv_objdir
8458
8459
8460
8461
8462
8463cat >>confdefs.h <<_ACEOF
8464#define LT_OBJDIR "$lt_cv_objdir/"
8465_ACEOF
8466
8467
8468
8469
8470case $host_os in
8471aix3*)
8472 # AIX sometimes has problems with the GCC collect2 program. For some
8473 # reason, if we set the COLLECT_NAMES environment variable, the problems
8474 # vanish in a puff of smoke.
8475 if test "X${COLLECT_NAMES+set}" != Xset; then
8476 COLLECT_NAMES=
8477 export COLLECT_NAMES
8478 fi
8479 ;;
8480esac
8481
8482# Global variables:
8483ofile=libtool
8484can_build_shared=yes
8485
8486# All known linkers require a `.a' archive for static linking (except MSVC,
8487# which needs '.lib').
8488libext=a
8489
8490with_gnu_ld="$lt_cv_prog_gnu_ld"
8491
8492old_CC="$CC"
8493old_CFLAGS="$CFLAGS"
8494
8495# Set sane defaults for various variables
8496test -z "$CC" && CC=cc
8497test -z "$LTCC" && LTCC=$CC
8498test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8499test -z "$LD" && LD=ld
8500test -z "$ac_objext" && ac_objext=o
8501
8502for cc_temp in $compiler""; do
8503 case $cc_temp in
8504 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8505 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8506 \-*) ;;
8507 *) break;;
8508 esac
8509done
8510cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8511
8512
8513# Only perform the check for file, if the check method requires it
8514test -z "$MAGIC_CMD" && MAGIC_CMD=file
8515case $deplibs_check_method in
8516file_magic*)
8517 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8519$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008520if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008521 $as_echo_n "(cached) " >&6
8522else
8523 case $MAGIC_CMD in
8524[\\/*] | ?:[\\/]*)
8525 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8526 ;;
8527*)
8528 lt_save_MAGIC_CMD="$MAGIC_CMD"
8529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8530 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8531 for ac_dir in $ac_dummy; do
8532 IFS="$lt_save_ifs"
8533 test -z "$ac_dir" && ac_dir=.
8534 if test -f $ac_dir/${ac_tool_prefix}file; then
8535 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8536 if test -n "$file_magic_test_file"; then
8537 case $deplibs_check_method in
8538 "file_magic "*)
8539 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8541 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8542 $EGREP "$file_magic_regex" > /dev/null; then
8543 :
8544 else
8545 cat <<_LT_EOF 1>&2
8546
8547*** Warning: the command libtool uses to detect shared libraries,
8548*** $file_magic_cmd, produces output that libtool cannot recognize.
8549*** The result is that libtool may fail to recognize shared libraries
8550*** as such. This will affect the creation of libtool libraries that
8551*** depend on shared libraries, but programs linked with such libtool
8552*** libraries will work regardless of this problem. Nevertheless, you
8553*** may want to report the problem to your system manager and/or to
8554*** bug-libtool@gnu.org
8555
8556_LT_EOF
8557 fi ;;
8558 esac
8559 fi
8560 break
8561 fi
8562 done
8563 IFS="$lt_save_ifs"
8564 MAGIC_CMD="$lt_save_MAGIC_CMD"
8565 ;;
8566esac
8567fi
8568
8569MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8570if test -n "$MAGIC_CMD"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8572$as_echo "$MAGIC_CMD" >&6; }
8573else
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575$as_echo "no" >&6; }
8576fi
8577
8578
8579
8580
8581
8582if test -z "$lt_cv_path_MAGIC_CMD"; then
8583 if test -n "$ac_tool_prefix"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8585$as_echo_n "checking for file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008586if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008587 $as_echo_n "(cached) " >&6
8588else
8589 case $MAGIC_CMD in
8590[\\/*] | ?:[\\/]*)
8591 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8592 ;;
8593*)
8594 lt_save_MAGIC_CMD="$MAGIC_CMD"
8595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8596 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8597 for ac_dir in $ac_dummy; do
8598 IFS="$lt_save_ifs"
8599 test -z "$ac_dir" && ac_dir=.
8600 if test -f $ac_dir/file; then
8601 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8602 if test -n "$file_magic_test_file"; then
8603 case $deplibs_check_method in
8604 "file_magic "*)
8605 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8606 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8607 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8608 $EGREP "$file_magic_regex" > /dev/null; then
8609 :
8610 else
8611 cat <<_LT_EOF 1>&2
8612
8613*** Warning: the command libtool uses to detect shared libraries,
8614*** $file_magic_cmd, produces output that libtool cannot recognize.
8615*** The result is that libtool may fail to recognize shared libraries
8616*** as such. This will affect the creation of libtool libraries that
8617*** depend on shared libraries, but programs linked with such libtool
8618*** libraries will work regardless of this problem. Nevertheless, you
8619*** may want to report the problem to your system manager and/or to
8620*** bug-libtool@gnu.org
8621
8622_LT_EOF
8623 fi ;;
8624 esac
8625 fi
8626 break
8627 fi
8628 done
8629 IFS="$lt_save_ifs"
8630 MAGIC_CMD="$lt_save_MAGIC_CMD"
8631 ;;
8632esac
8633fi
8634
8635MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8636if test -n "$MAGIC_CMD"; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8638$as_echo "$MAGIC_CMD" >&6; }
8639else
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641$as_echo "no" >&6; }
8642fi
8643
8644
8645 else
8646 MAGIC_CMD=:
8647 fi
8648fi
8649
8650 fi
8651 ;;
8652esac
8653
8654# Use C for the default configuration in the libtool script
8655
8656lt_save_CC="$CC"
8657ac_ext=c
8658ac_cpp='$CPP $CPPFLAGS'
8659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8661ac_compiler_gnu=$ac_cv_c_compiler_gnu
8662
8663
8664# Source file extension for C test sources.
8665ac_ext=c
8666
8667# Object file extension for compiled C test sources.
8668objext=o
8669objext=$objext
8670
8671# Code to be used in simple compile tests
8672lt_simple_compile_test_code="int some_variable = 0;"
8673
8674# Code to be used in simple link tests
8675lt_simple_link_test_code='int main(){return(0);}'
8676
8677
8678
8679
8680
8681
8682
8683# If no C compiler was specified, use CC.
8684LTCC=${LTCC-"$CC"}
8685
8686# If no C compiler flags were specified, use CFLAGS.
8687LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8688
8689# Allow CC to be a program name with arguments.
8690compiler=$CC
8691
8692# Save the default compiler, since it gets overwritten when the other
8693# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8694compiler_DEFAULT=$CC
8695
8696# save warnings/boilerplate of simple test code
8697ac_outfile=conftest.$ac_objext
8698echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8699eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8700_lt_compiler_boilerplate=`cat conftest.err`
8701$RM conftest*
8702
8703ac_outfile=conftest.$ac_objext
8704echo "$lt_simple_link_test_code" >conftest.$ac_ext
8705eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8706_lt_linker_boilerplate=`cat conftest.err`
8707$RM -r conftest*
8708
8709
8710## CAVEAT EMPTOR:
8711## There is no encapsulation within the following macros, do not change
8712## the running order or otherwise move them around unless you know exactly
8713## what you are doing...
8714if test -n "$compiler"; then
8715
8716lt_prog_compiler_no_builtin_flag=
8717
8718if test "$GCC" = yes; then
8719 case $cc_basename in
8720 nvcc*)
8721 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8722 *)
8723 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8724 esac
8725
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8727$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008728if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008729 $as_echo_n "(cached) " >&6
8730else
8731 lt_cv_prog_compiler_rtti_exceptions=no
8732 ac_outfile=conftest.$ac_objext
8733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8734 lt_compiler_flag="-fno-rtti -fno-exceptions"
8735 # Insert the option either (1) after the last *FLAGS variable, or
8736 # (2) before a word containing "conftest.", or (3) at the end.
8737 # Note that $ac_compile itself does not contain backslashes and begins
8738 # with a dollar sign (not a hyphen), so the echo should work correctly.
8739 # The option is referenced via a variable to avoid confusing sed.
8740 lt_compile=`echo "$ac_compile" | $SED \
8741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8743 -e 's:$: $lt_compiler_flag:'`
8744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8745 (eval "$lt_compile" 2>conftest.err)
8746 ac_status=$?
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 if (exit $ac_status) && test -s "$ac_outfile"; then
8750 # The compiler can only warn and ignore the option if not recognized
8751 # So say no if there are warnings other than the usual output.
8752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8755 lt_cv_prog_compiler_rtti_exceptions=yes
8756 fi
8757 fi
8758 $RM conftest*
8759
8760fi
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8762$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8763
8764if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8765 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8766else
8767 :
8768fi
8769
8770fi
8771
8772
8773
8774
8775
8776
8777 lt_prog_compiler_wl=
8778lt_prog_compiler_pic=
8779lt_prog_compiler_static=
8780
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8782$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8783
8784 if test "$GCC" = yes; then
8785 lt_prog_compiler_wl='-Wl,'
8786 lt_prog_compiler_static='-static'
8787
8788 case $host_os in
8789 aix*)
8790 # All AIX code is PIC.
8791 if test "$host_cpu" = ia64; then
8792 # AIX 5 now supports IA64 processor
8793 lt_prog_compiler_static='-Bstatic'
8794 fi
8795 lt_prog_compiler_pic='-fPIC'
8796 ;;
8797
8798 amigaos*)
8799 case $host_cpu in
8800 powerpc)
8801 # see comment about AmigaOS4 .so support
8802 lt_prog_compiler_pic='-fPIC'
8803 ;;
8804 m68k)
8805 # FIXME: we need at least 68020 code to build shared libraries, but
8806 # adding the `-m68020' flag to GCC prevents building anything better,
8807 # like `-m68040'.
8808 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8809 ;;
8810 esac
8811 ;;
8812
8813 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8814 # PIC is the default for these OSes.
8815 ;;
8816
8817 mingw* | cygwin* | pw32* | os2* | cegcc*)
8818 # This hack is so that the source file can tell whether it is being
8819 # built for inclusion in a dll (and should export symbols for example).
8820 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8821 # (--disable-auto-import) libraries
8822 lt_prog_compiler_pic='-DDLL_EXPORT'
8823 ;;
8824
8825 darwin* | rhapsody*)
8826 # PIC is the default on this platform
8827 # Common symbols not allowed in MH_DYLIB files
8828 lt_prog_compiler_pic='-fno-common'
8829 ;;
8830
8831 haiku*)
8832 # PIC is the default for Haiku.
8833 # The "-static" flag exists, but is broken.
8834 lt_prog_compiler_static=
8835 ;;
8836
8837 hpux*)
8838 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8839 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8840 # sets the default TLS model and affects inlining.
8841 case $host_cpu in
8842 hppa*64*)
8843 # +Z the default
8844 ;;
8845 *)
8846 lt_prog_compiler_pic='-fPIC'
8847 ;;
8848 esac
8849 ;;
8850
8851 interix[3-9]*)
8852 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8853 # Instead, we relocate shared libraries at runtime.
8854 ;;
8855
8856 msdosdjgpp*)
8857 # Just because we use GCC doesn't mean we suddenly get shared libraries
8858 # on systems that don't support them.
8859 lt_prog_compiler_can_build_shared=no
8860 enable_shared=no
8861 ;;
8862
8863 *nto* | *qnx*)
8864 # QNX uses GNU C++, but need to define -shared option too, otherwise
8865 # it will coredump.
8866 lt_prog_compiler_pic='-fPIC -shared'
8867 ;;
8868
8869 sysv4*MP*)
8870 if test -d /usr/nec; then
8871 lt_prog_compiler_pic=-Kconform_pic
8872 fi
8873 ;;
8874
8875 *)
8876 lt_prog_compiler_pic='-fPIC'
8877 ;;
8878 esac
8879
8880 case $cc_basename in
8881 nvcc*) # Cuda Compiler Driver 2.2
8882 lt_prog_compiler_wl='-Xlinker '
8883 lt_prog_compiler_pic='-Xcompiler -fPIC'
8884 ;;
8885 esac
8886 else
8887 # PORTME Check for flag to pass linker flags through the system compiler.
8888 case $host_os in
8889 aix*)
8890 lt_prog_compiler_wl='-Wl,'
8891 if test "$host_cpu" = ia64; then
8892 # AIX 5 now supports IA64 processor
8893 lt_prog_compiler_static='-Bstatic'
8894 else
8895 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8896 fi
8897 ;;
8898
8899 mingw* | cygwin* | pw32* | os2* | cegcc*)
8900 # This hack is so that the source file can tell whether it is being
8901 # built for inclusion in a dll (and should export symbols for example).
8902 lt_prog_compiler_pic='-DDLL_EXPORT'
8903 ;;
8904
8905 hpux9* | hpux10* | hpux11*)
8906 lt_prog_compiler_wl='-Wl,'
8907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8908 # not for PA HP-UX.
8909 case $host_cpu in
8910 hppa*64*|ia64*)
8911 # +Z the default
8912 ;;
8913 *)
8914 lt_prog_compiler_pic='+Z'
8915 ;;
8916 esac
8917 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8918 lt_prog_compiler_static='${wl}-a ${wl}archive'
8919 ;;
8920
8921 irix5* | irix6* | nonstopux*)
8922 lt_prog_compiler_wl='-Wl,'
8923 # PIC (with -KPIC) is the default.
8924 lt_prog_compiler_static='-non_shared'
8925 ;;
8926
8927 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8928 case $cc_basename in
8929 # old Intel for x86_64 which still supported -KPIC.
8930 ecc*)
8931 lt_prog_compiler_wl='-Wl,'
8932 lt_prog_compiler_pic='-KPIC'
8933 lt_prog_compiler_static='-static'
8934 ;;
8935 # icc used to be incompatible with GCC.
8936 # ICC 10 doesn't accept -KPIC any more.
8937 icc* | ifort*)
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_pic='-fPIC'
8940 lt_prog_compiler_static='-static'
8941 ;;
8942 # Lahey Fortran 8.1.
8943 lf95*)
8944 lt_prog_compiler_wl='-Wl,'
8945 lt_prog_compiler_pic='--shared'
8946 lt_prog_compiler_static='--static'
8947 ;;
8948 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8949 # Portland Group compilers (*not* the Pentium gcc compiler,
8950 # which looks to be a dead project)
8951 lt_prog_compiler_wl='-Wl,'
8952 lt_prog_compiler_pic='-fpic'
8953 lt_prog_compiler_static='-Bstatic'
8954 ;;
8955 ccc*)
8956 lt_prog_compiler_wl='-Wl,'
8957 # All Alpha code is PIC.
8958 lt_prog_compiler_static='-non_shared'
8959 ;;
8960 xl* | bgxl* | bgf* | mpixl*)
8961 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8962 lt_prog_compiler_wl='-Wl,'
8963 lt_prog_compiler_pic='-qpic'
8964 lt_prog_compiler_static='-qstaticlink'
8965 ;;
8966 *)
8967 case `$CC -V 2>&1 | sed 5q` in
8968 *Sun\ F* | *Sun*Fortran*)
8969 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8970 lt_prog_compiler_pic='-KPIC'
8971 lt_prog_compiler_static='-Bstatic'
8972 lt_prog_compiler_wl=''
8973 ;;
8974 *Sun\ C*)
8975 # Sun C 5.9
8976 lt_prog_compiler_pic='-KPIC'
8977 lt_prog_compiler_static='-Bstatic'
8978 lt_prog_compiler_wl='-Wl,'
8979 ;;
8980 esac
8981 ;;
8982 esac
8983 ;;
8984
8985 newsos6)
8986 lt_prog_compiler_pic='-KPIC'
8987 lt_prog_compiler_static='-Bstatic'
8988 ;;
8989
8990 *nto* | *qnx*)
8991 # QNX uses GNU C++, but need to define -shared option too, otherwise
8992 # it will coredump.
8993 lt_prog_compiler_pic='-fPIC -shared'
8994 ;;
8995
8996 osf3* | osf4* | osf5*)
8997 lt_prog_compiler_wl='-Wl,'
8998 # All OSF/1 code is PIC.
8999 lt_prog_compiler_static='-non_shared'
9000 ;;
9001
9002 rdos*)
9003 lt_prog_compiler_static='-non_shared'
9004 ;;
9005
9006 solaris*)
9007 lt_prog_compiler_pic='-KPIC'
9008 lt_prog_compiler_static='-Bstatic'
9009 case $cc_basename in
9010 f77* | f90* | f95*)
9011 lt_prog_compiler_wl='-Qoption ld ';;
9012 *)
9013 lt_prog_compiler_wl='-Wl,';;
9014 esac
9015 ;;
9016
9017 sunos4*)
9018 lt_prog_compiler_wl='-Qoption ld '
9019 lt_prog_compiler_pic='-PIC'
9020 lt_prog_compiler_static='-Bstatic'
9021 ;;
9022
9023 sysv4 | sysv4.2uw2* | sysv4.3*)
9024 lt_prog_compiler_wl='-Wl,'
9025 lt_prog_compiler_pic='-KPIC'
9026 lt_prog_compiler_static='-Bstatic'
9027 ;;
9028
9029 sysv4*MP*)
9030 if test -d /usr/nec ;then
9031 lt_prog_compiler_pic='-Kconform_pic'
9032 lt_prog_compiler_static='-Bstatic'
9033 fi
9034 ;;
9035
9036 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9037 lt_prog_compiler_wl='-Wl,'
9038 lt_prog_compiler_pic='-KPIC'
9039 lt_prog_compiler_static='-Bstatic'
9040 ;;
9041
9042 unicos*)
9043 lt_prog_compiler_wl='-Wl,'
9044 lt_prog_compiler_can_build_shared=no
9045 ;;
9046
9047 uts4*)
9048 lt_prog_compiler_pic='-pic'
9049 lt_prog_compiler_static='-Bstatic'
9050 ;;
9051
9052 *)
9053 lt_prog_compiler_can_build_shared=no
9054 ;;
9055 esac
9056 fi
9057
9058case $host_os in
9059 # For platforms which do not support PIC, -DPIC is meaningless:
9060 *djgpp*)
9061 lt_prog_compiler_pic=
9062 ;;
9063 *)
9064 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9065 ;;
9066esac
9067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9068$as_echo "$lt_prog_compiler_pic" >&6; }
9069
9070
9071
9072
9073
9074
9075#
9076# Check to make sure the PIC flag actually works.
9077#
9078if test -n "$lt_prog_compiler_pic"; then
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9080$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009081if ${lt_cv_prog_compiler_pic_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009082 $as_echo_n "(cached) " >&6
9083else
9084 lt_cv_prog_compiler_pic_works=no
9085 ac_outfile=conftest.$ac_objext
9086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9087 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9088 # Insert the option either (1) after the last *FLAGS variable, or
9089 # (2) before a word containing "conftest.", or (3) at the end.
9090 # Note that $ac_compile itself does not contain backslashes and begins
9091 # with a dollar sign (not a hyphen), so the echo should work correctly.
9092 # The option is referenced via a variable to avoid confusing sed.
9093 lt_compile=`echo "$ac_compile" | $SED \
9094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9096 -e 's:$: $lt_compiler_flag:'`
9097 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9098 (eval "$lt_compile" 2>conftest.err)
9099 ac_status=$?
9100 cat conftest.err >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 if (exit $ac_status) && test -s "$ac_outfile"; then
9103 # The compiler can only warn and ignore the option if not recognized
9104 # So say no if there are warnings other than the usual output.
9105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9106 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9107 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9108 lt_cv_prog_compiler_pic_works=yes
9109 fi
9110 fi
9111 $RM conftest*
9112
9113fi
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9115$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9116
9117if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9118 case $lt_prog_compiler_pic in
9119 "" | " "*) ;;
9120 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9121 esac
9122else
9123 lt_prog_compiler_pic=
9124 lt_prog_compiler_can_build_shared=no
9125fi
9126
9127fi
9128
9129
9130
9131
9132
9133
9134#
9135# Check to make sure the static flag actually works.
9136#
9137wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9139$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009140if ${lt_cv_prog_compiler_static_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009141 $as_echo_n "(cached) " >&6
9142else
9143 lt_cv_prog_compiler_static_works=no
9144 save_LDFLAGS="$LDFLAGS"
9145 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9146 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9147 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9148 # The linker can only warn and ignore the option if not recognized
9149 # So say no if there are warnings
9150 if test -s conftest.err; then
9151 # Append any errors to the config.log.
9152 cat conftest.err 1>&5
9153 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9155 if diff conftest.exp conftest.er2 >/dev/null; then
9156 lt_cv_prog_compiler_static_works=yes
9157 fi
9158 else
9159 lt_cv_prog_compiler_static_works=yes
9160 fi
9161 fi
9162 $RM -r conftest*
9163 LDFLAGS="$save_LDFLAGS"
9164
9165fi
9166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9167$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9168
9169if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9170 :
9171else
9172 lt_prog_compiler_static=
9173fi
9174
9175
9176
9177
9178
9179
9180
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9182$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009183if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009184 $as_echo_n "(cached) " >&6
9185else
9186 lt_cv_prog_compiler_c_o=no
9187 $RM -r conftest 2>/dev/null
9188 mkdir conftest
9189 cd conftest
9190 mkdir out
9191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9192
9193 lt_compiler_flag="-o out/conftest2.$ac_objext"
9194 # Insert the option either (1) after the last *FLAGS variable, or
9195 # (2) before a word containing "conftest.", or (3) at the end.
9196 # Note that $ac_compile itself does not contain backslashes and begins
9197 # with a dollar sign (not a hyphen), so the echo should work correctly.
9198 lt_compile=`echo "$ac_compile" | $SED \
9199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9201 -e 's:$: $lt_compiler_flag:'`
9202 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9203 (eval "$lt_compile" 2>out/conftest.err)
9204 ac_status=$?
9205 cat out/conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9208 then
9209 # The compiler can only warn and ignore the option if not recognized
9210 # So say no if there are warnings
9211 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9212 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9213 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9214 lt_cv_prog_compiler_c_o=yes
9215 fi
9216 fi
9217 chmod u+w . 2>&5
9218 $RM conftest*
9219 # SGI C++ compiler will create directory out/ii_files/ for
9220 # template instantiation
9221 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9222 $RM out/* && rmdir out
9223 cd ..
9224 $RM -r conftest
9225 $RM conftest*
9226
9227fi
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9229$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9230
9231
9232
9233
9234
9235
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9237$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009238if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009239 $as_echo_n "(cached) " >&6
9240else
9241 lt_cv_prog_compiler_c_o=no
9242 $RM -r conftest 2>/dev/null
9243 mkdir conftest
9244 cd conftest
9245 mkdir out
9246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9247
9248 lt_compiler_flag="-o out/conftest2.$ac_objext"
9249 # Insert the option either (1) after the last *FLAGS variable, or
9250 # (2) before a word containing "conftest.", or (3) at the end.
9251 # Note that $ac_compile itself does not contain backslashes and begins
9252 # with a dollar sign (not a hyphen), so the echo should work correctly.
9253 lt_compile=`echo "$ac_compile" | $SED \
9254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9256 -e 's:$: $lt_compiler_flag:'`
9257 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9258 (eval "$lt_compile" 2>out/conftest.err)
9259 ac_status=$?
9260 cat out/conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9263 then
9264 # The compiler can only warn and ignore the option if not recognized
9265 # So say no if there are warnings
9266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9267 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9268 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9269 lt_cv_prog_compiler_c_o=yes
9270 fi
9271 fi
9272 chmod u+w . 2>&5
9273 $RM conftest*
9274 # SGI C++ compiler will create directory out/ii_files/ for
9275 # template instantiation
9276 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9277 $RM out/* && rmdir out
9278 cd ..
9279 $RM -r conftest
9280 $RM conftest*
9281
9282fi
9283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9284$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9285
9286
9287
9288
9289hard_links="nottested"
9290if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9291 # do not overwrite the value of need_locks provided by the user
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9293$as_echo_n "checking if we can lock with hard links... " >&6; }
9294 hard_links=yes
9295 $RM conftest*
9296 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9297 touch conftest.a
9298 ln conftest.a conftest.b 2>&5 || hard_links=no
9299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9301$as_echo "$hard_links" >&6; }
9302 if test "$hard_links" = no; then
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9304$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9305 need_locks=warn
9306 fi
9307else
9308 need_locks=no
9309fi
9310
9311
9312
9313
9314
9315
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9317$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9318
9319 runpath_var=
9320 allow_undefined_flag=
9321 always_export_symbols=no
9322 archive_cmds=
9323 archive_expsym_cmds=
9324 compiler_needs_object=no
9325 enable_shared_with_static_runtimes=no
9326 export_dynamic_flag_spec=
9327 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9328 hardcode_automatic=no
9329 hardcode_direct=no
9330 hardcode_direct_absolute=no
9331 hardcode_libdir_flag_spec=
9332 hardcode_libdir_flag_spec_ld=
9333 hardcode_libdir_separator=
9334 hardcode_minus_L=no
9335 hardcode_shlibpath_var=unsupported
9336 inherit_rpath=no
9337 link_all_deplibs=unknown
9338 module_cmds=
9339 module_expsym_cmds=
9340 old_archive_from_new_cmds=
9341 old_archive_from_expsyms_cmds=
9342 thread_safe_flag_spec=
9343 whole_archive_flag_spec=
9344 # include_expsyms should be a list of space-separated symbols to be *always*
9345 # included in the symbol list
9346 include_expsyms=
9347 # exclude_expsyms can be an extended regexp of symbols to exclude
9348 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9349 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9350 # as well as any symbol that contains `d'.
9351 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9352 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9353 # platforms (ab)use it in PIC code, but their linkers get confused if
9354 # the symbol is explicitly referenced. Since portable code cannot
9355 # rely on this symbol name, it's probably fine to never include it in
9356 # preloaded symbol tables.
9357 # Exclude shared library initialization/finalization symbols.
9358 extract_expsyms_cmds=
9359
9360 case $host_os in
9361 cygwin* | mingw* | pw32* | cegcc*)
9362 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9363 # When not using gcc, we currently assume that we are using
9364 # Microsoft Visual C++.
9365 if test "$GCC" != yes; then
9366 with_gnu_ld=no
9367 fi
9368 ;;
9369 interix*)
9370 # we just hope/assume this is gcc and not c89 (= MSVC++)
9371 with_gnu_ld=yes
9372 ;;
9373 openbsd*)
9374 with_gnu_ld=no
9375 ;;
9376 esac
9377
9378 ld_shlibs=yes
9379
9380 # On some targets, GNU ld is compatible enough with the native linker
9381 # that we're better off using the native interface for both.
9382 lt_use_gnu_ld_interface=no
9383 if test "$with_gnu_ld" = yes; then
9384 case $host_os in
9385 aix*)
9386 # The AIX port of GNU ld has always aspired to compatibility
9387 # with the native linker. However, as the warning in the GNU ld
9388 # block says, versions before 2.19.5* couldn't really create working
9389 # shared libraries, regardless of the interface used.
9390 case `$LD -v 2>&1` in
9391 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9392 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9393 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9394 *)
9395 lt_use_gnu_ld_interface=yes
9396 ;;
9397 esac
9398 ;;
9399 *)
9400 lt_use_gnu_ld_interface=yes
9401 ;;
9402 esac
9403 fi
9404
9405 if test "$lt_use_gnu_ld_interface" = yes; then
9406 # If archive_cmds runs LD, not CC, wlarc should be empty
9407 wlarc='${wl}'
9408
9409 # Set some defaults for GNU ld with shared library support. These
9410 # are reset later if shared libraries are not supported. Putting them
9411 # here allows them to be overridden if necessary.
9412 runpath_var=LD_RUN_PATH
9413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9414 export_dynamic_flag_spec='${wl}--export-dynamic'
9415 # ancient GNU ld didn't support --whole-archive et. al.
9416 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9417 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9418 else
9419 whole_archive_flag_spec=
9420 fi
9421 supports_anon_versioning=no
9422 case `$LD -v 2>&1` in
9423 *GNU\ gold*) supports_anon_versioning=yes ;;
9424 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9425 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9426 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9427 *\ 2.11.*) ;; # other 2.11 versions
9428 *) supports_anon_versioning=yes ;;
9429 esac
9430
9431 # See if GNU ld supports shared libraries.
9432 case $host_os in
9433 aix[3-9]*)
9434 # On AIX/PPC, the GNU linker is very broken
9435 if test "$host_cpu" != ia64; then
9436 ld_shlibs=no
9437 cat <<_LT_EOF 1>&2
9438
9439*** Warning: the GNU linker, at least up to release 2.19, is reported
9440*** to be unable to reliably create shared libraries on AIX.
9441*** Therefore, libtool is disabling shared libraries support. If you
9442*** really care for shared libraries, you may want to install binutils
9443*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9444*** You will then need to restart the configuration process.
9445
9446_LT_EOF
9447 fi
9448 ;;
9449
9450 amigaos*)
9451 case $host_cpu in
9452 powerpc)
9453 # see comment about AmigaOS4 .so support
9454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455 archive_expsym_cmds=''
9456 ;;
9457 m68k)
9458 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)'
9459 hardcode_libdir_flag_spec='-L$libdir'
9460 hardcode_minus_L=yes
9461 ;;
9462 esac
9463 ;;
9464
9465 beos*)
9466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9467 allow_undefined_flag=unsupported
9468 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9469 # support --undefined. This deserves some investigation. FIXME
9470 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471 else
9472 ld_shlibs=no
9473 fi
9474 ;;
9475
9476 cygwin* | mingw* | pw32* | cegcc*)
9477 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9478 # as there is no search path for DLLs.
9479 hardcode_libdir_flag_spec='-L$libdir'
9480 export_dynamic_flag_spec='${wl}--export-all-symbols'
9481 allow_undefined_flag=unsupported
9482 always_export_symbols=no
9483 enable_shared_with_static_runtimes=yes
9484 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9485
9486 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9488 # If the export-symbols file already is a .def file (1st line
9489 # is EXPORTS), use it as is; otherwise, prepend...
9490 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9491 cp $export_symbols $output_objdir/$soname.def;
9492 else
9493 echo EXPORTS > $output_objdir/$soname.def;
9494 cat $export_symbols >> $output_objdir/$soname.def;
9495 fi~
9496 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9497 else
9498 ld_shlibs=no
9499 fi
9500 ;;
9501
9502 haiku*)
9503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9504 link_all_deplibs=yes
9505 ;;
9506
9507 interix[3-9]*)
9508 hardcode_direct=no
9509 hardcode_shlibpath_var=no
9510 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9511 export_dynamic_flag_spec='${wl}-E'
9512 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9513 # Instead, shared libraries are loaded at an image base (0x10000000 by
9514 # default) and relocated if they conflict, which is a slow very memory
9515 # consuming and fragmenting process. To avoid this, we pick a random,
9516 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9517 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9518 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9519 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'
9520 ;;
9521
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +00009522 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +00009523 tmp_diet=no
9524 if test "$host_os" = linux-dietlibc; then
9525 case $cc_basename in
9526 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9527 esac
9528 fi
9529 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9530 && test "$tmp_diet" = no
9531 then
9532 tmp_addflag=' $pic_flag'
9533 tmp_sharedflag='-shared'
9534 case $cc_basename,$host_cpu in
9535 pgcc*) # Portland Group C compiler
9536 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'
9537 tmp_addflag=' $pic_flag'
9538 ;;
9539 pgf77* | pgf90* | pgf95* | pgfortran*)
9540 # Portland Group f77 and f90 compilers
9541 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'
9542 tmp_addflag=' $pic_flag -Mnomain' ;;
9543 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9544 tmp_addflag=' -i_dynamic' ;;
9545 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9546 tmp_addflag=' -i_dynamic -nofor_main' ;;
9547 ifc* | ifort*) # Intel Fortran compiler
9548 tmp_addflag=' -nofor_main' ;;
9549 lf95*) # Lahey Fortran 8.1
9550 whole_archive_flag_spec=
9551 tmp_sharedflag='--shared' ;;
9552 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9553 tmp_sharedflag='-qmkshrobj'
9554 tmp_addflag= ;;
9555 nvcc*) # Cuda Compiler Driver 2.2
9556 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'
9557 compiler_needs_object=yes
9558 ;;
9559 esac
9560 case `$CC -V 2>&1 | sed 5q` in
9561 *Sun\ C*) # Sun C 5.9
9562 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'
9563 compiler_needs_object=yes
9564 tmp_sharedflag='-G' ;;
9565 *Sun\ F*) # Sun Fortran 8.3
9566 tmp_sharedflag='-G' ;;
9567 esac
9568 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9569
9570 if test "x$supports_anon_versioning" = xyes; then
9571 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9572 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9573 echo "local: *; };" >> $output_objdir/$libname.ver~
9574 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9575 fi
9576
9577 case $cc_basename in
9578 xlf* | bgf* | bgxlf* | mpixlf*)
9579 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9580 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9581 hardcode_libdir_flag_spec=
9582 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9583 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9584 if test "x$supports_anon_versioning" = xyes; then
9585 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9586 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9587 echo "local: *; };" >> $output_objdir/$libname.ver~
9588 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9589 fi
9590 ;;
9591 esac
9592 else
9593 ld_shlibs=no
9594 fi
9595 ;;
9596
9597 netbsd*)
9598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9599 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9600 wlarc=
9601 else
9602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9604 fi
9605 ;;
9606
9607 solaris*)
9608 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9609 ld_shlibs=no
9610 cat <<_LT_EOF 1>&2
9611
9612*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9613*** create shared libraries on Solaris systems. Therefore, libtool
9614*** is disabling shared libraries support. We urge you to upgrade GNU
9615*** binutils to release 2.9.1 or newer. Another option is to modify
9616*** your PATH or compiler configuration so that the native linker is
9617*** used, and then restart.
9618
9619_LT_EOF
9620 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9622 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9623 else
9624 ld_shlibs=no
9625 fi
9626 ;;
9627
9628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9629 case `$LD -v 2>&1` in
9630 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9631 ld_shlibs=no
9632 cat <<_LT_EOF 1>&2
9633
9634*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9635*** reliably create shared libraries on SCO systems. Therefore, libtool
9636*** is disabling shared libraries support. We urge you to upgrade GNU
9637*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9638*** your PATH or compiler configuration so that the native linker is
9639*** used, and then restart.
9640
9641_LT_EOF
9642 ;;
9643 *)
9644 # For security reasons, it is highly recommended that you always
9645 # use absolute paths for naming shared libraries, and exclude the
9646 # DT_RUNPATH tag from executables and libraries. But doing so
9647 # requires that you compile everything twice, which is a pain.
9648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9651 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9652 else
9653 ld_shlibs=no
9654 fi
9655 ;;
9656 esac
9657 ;;
9658
9659 sunos4*)
9660 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9661 wlarc=
9662 hardcode_direct=yes
9663 hardcode_shlibpath_var=no
9664 ;;
9665
9666 *)
9667 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9669 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9670 else
9671 ld_shlibs=no
9672 fi
9673 ;;
9674 esac
9675
9676 if test "$ld_shlibs" = no; then
9677 runpath_var=
9678 hardcode_libdir_flag_spec=
9679 export_dynamic_flag_spec=
9680 whole_archive_flag_spec=
9681 fi
9682 else
9683 # PORTME fill in a description of your system's linker (not GNU ld)
9684 case $host_os in
9685 aix3*)
9686 allow_undefined_flag=unsupported
9687 always_export_symbols=yes
9688 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'
9689 # Note: this linker hardcodes the directories in LIBPATH if there
9690 # are no directories specified by -L.
9691 hardcode_minus_L=yes
9692 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9693 # Neither direct hardcoding nor static linking is supported with a
9694 # broken collect2.
9695 hardcode_direct=unsupported
9696 fi
9697 ;;
9698
9699 aix[4-9]*)
9700 if test "$host_cpu" = ia64; then
9701 # On IA64, the linker does run time linking by default, so we don't
9702 # have to do anything special.
9703 aix_use_runtimelinking=no
9704 exp_sym_flag='-Bexport'
9705 no_entry_flag=""
9706 else
9707 # If we're using GNU nm, then we don't want the "-C" option.
9708 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9709 # Also, AIX nm treats weak defined symbols like other global
9710 # defined symbols, whereas GNU nm marks them as "W".
9711 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9712 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'
9713 else
9714 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'
9715 fi
9716 aix_use_runtimelinking=no
9717
9718 # Test if we are trying to use run time linking or normal
9719 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9720 # need to do runtime linking.
9721 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9722 for ld_flag in $LDFLAGS; do
9723 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9724 aix_use_runtimelinking=yes
9725 break
9726 fi
9727 done
9728 ;;
9729 esac
9730
9731 exp_sym_flag='-bexport'
9732 no_entry_flag='-bnoentry'
9733 fi
9734
9735 # When large executables or shared objects are built, AIX ld can
9736 # have problems creating the table of contents. If linking a library
9737 # or program results in "error TOC overflow" add -mminimal-toc to
9738 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9739 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9740
9741 archive_cmds=''
9742 hardcode_direct=yes
9743 hardcode_direct_absolute=yes
9744 hardcode_libdir_separator=':'
9745 link_all_deplibs=yes
9746 file_list_spec='${wl}-f,'
9747
9748 if test "$GCC" = yes; then
9749 case $host_os in aix4.[012]|aix4.[012].*)
9750 # We only want to do this on AIX 4.2 and lower, the check
9751 # below for broken collect2 doesn't work under 4.3+
9752 collect2name=`${CC} -print-prog-name=collect2`
9753 if test -f "$collect2name" &&
9754 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9755 then
9756 # We have reworked collect2
9757 :
9758 else
9759 # We have old collect2
9760 hardcode_direct=unsupported
9761 # It fails to find uninstalled libraries when the uninstalled
9762 # path is not listed in the libpath. Setting hardcode_minus_L
9763 # to unsupported forces relinking
9764 hardcode_minus_L=yes
9765 hardcode_libdir_flag_spec='-L$libdir'
9766 hardcode_libdir_separator=
9767 fi
9768 ;;
9769 esac
9770 shared_flag='-shared'
9771 if test "$aix_use_runtimelinking" = yes; then
9772 shared_flag="$shared_flag "'${wl}-G'
9773 fi
9774 else
9775 # not using gcc
9776 if test "$host_cpu" = ia64; then
9777 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9778 # chokes on -Wl,-G. The following line is correct:
9779 shared_flag='-G'
9780 else
9781 if test "$aix_use_runtimelinking" = yes; then
9782 shared_flag='${wl}-G'
9783 else
9784 shared_flag='${wl}-bM:SRE'
9785 fi
9786 fi
9787 fi
9788
9789 export_dynamic_flag_spec='${wl}-bexpall'
9790 # It seems that -bexpall does not export symbols beginning with
9791 # underscore (_), so it is better to generate a list of symbols to export.
9792 always_export_symbols=yes
9793 if test "$aix_use_runtimelinking" = yes; then
9794 # Warning - without using the other runtime loading flags (-brtl),
9795 # -berok will link without error, but may produce a broken library.
9796 allow_undefined_flag='-berok'
9797 # Determine the default libpath from the value encoded in an
9798 # empty executable.
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800/* end confdefs.h. */
9801
9802int
9803main ()
9804{
9805
9806 ;
9807 return 0;
9808}
9809_ACEOF
9810if ac_fn_c_try_link "$LINENO"; then :
9811
9812lt_aix_libpath_sed='
9813 /Import File Strings/,/^$/ {
9814 /^0/ {
9815 s/^0 *\(.*\)$/\1/
9816 p
9817 }
9818 }'
9819aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9820# Check for a 64-bit object if we didn't find anything.
9821if test -z "$aix_libpath"; then
9822 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9823fi
9824fi
9825rm -f core conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9827if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9828
9829 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9830 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"
9831 else
9832 if test "$host_cpu" = ia64; then
9833 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9834 allow_undefined_flag="-z nodefs"
9835 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"
9836 else
9837 # Determine the default libpath from the value encoded in an
9838 # empty executable.
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840/* end confdefs.h. */
9841
9842int
9843main ()
9844{
9845
9846 ;
9847 return 0;
9848}
9849_ACEOF
9850if ac_fn_c_try_link "$LINENO"; then :
9851
9852lt_aix_libpath_sed='
9853 /Import File Strings/,/^$/ {
9854 /^0/ {
9855 s/^0 *\(.*\)$/\1/
9856 p
9857 }
9858 }'
9859aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9860# Check for a 64-bit object if we didn't find anything.
9861if test -z "$aix_libpath"; then
9862 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9863fi
9864fi
9865rm -f core conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9867if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9868
9869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9870 # Warning - without using the other run time loading flags,
9871 # -berok will link without error, but may produce a broken library.
9872 no_undefined_flag=' ${wl}-bernotok'
9873 allow_undefined_flag=' ${wl}-berok'
9874 if test "$with_gnu_ld" = yes; then
9875 # We only use this code for GNU lds that support --whole-archive.
9876 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9877 else
9878 # Exported symbols can be pulled into shared objects from archives
9879 whole_archive_flag_spec='$convenience'
9880 fi
9881 archive_cmds_need_lc=yes
9882 # This is similar to how AIX traditionally builds its shared libraries.
9883 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'
9884 fi
9885 fi
9886 ;;
9887
9888 amigaos*)
9889 case $host_cpu in
9890 powerpc)
9891 # see comment about AmigaOS4 .so support
9892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9893 archive_expsym_cmds=''
9894 ;;
9895 m68k)
9896 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)'
9897 hardcode_libdir_flag_spec='-L$libdir'
9898 hardcode_minus_L=yes
9899 ;;
9900 esac
9901 ;;
9902
9903 bsdi[45]*)
9904 export_dynamic_flag_spec=-rdynamic
9905 ;;
9906
9907 cygwin* | mingw* | pw32* | cegcc*)
9908 # When not using gcc, we currently assume that we are using
9909 # Microsoft Visual C++.
9910 # hardcode_libdir_flag_spec is actually meaningless, as there is
9911 # no search path for DLLs.
9912 hardcode_libdir_flag_spec=' '
9913 allow_undefined_flag=unsupported
9914 # Tell ltmain to make .lib files, not .a files.
9915 libext=lib
9916 # Tell ltmain to make .dll files, not .so files.
9917 shrext_cmds=".dll"
9918 # FIXME: Setting linknames here is a bad hack.
9919 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9920 # The linker will automatically build a .lib file if we build a DLL.
9921 old_archive_from_new_cmds='true'
9922 # FIXME: Should let the user specify the lib program.
9923 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9924 fix_srcfile_path='`cygpath -w "$srcfile"`'
9925 enable_shared_with_static_runtimes=yes
9926 ;;
9927
9928 darwin* | rhapsody*)
9929
9930
9931 archive_cmds_need_lc=no
9932 hardcode_direct=no
9933 hardcode_automatic=yes
9934 hardcode_shlibpath_var=unsupported
9935 if test "$lt_cv_ld_force_load" = "yes"; then
9936 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\"`'
9937 else
9938 whole_archive_flag_spec=''
9939 fi
9940 link_all_deplibs=yes
9941 allow_undefined_flag="$_lt_dar_allow_undefined"
9942 case $cc_basename in
9943 ifort*) _lt_dar_can_shared=yes ;;
9944 *) _lt_dar_can_shared=$GCC ;;
9945 esac
9946 if test "$_lt_dar_can_shared" = "yes"; then
9947 output_verbose_link_cmd=func_echo_all
9948 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9949 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9950 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}"
9951 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}"
9952
9953 else
9954 ld_shlibs=no
9955 fi
9956
9957 ;;
9958
9959 dgux*)
9960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961 hardcode_libdir_flag_spec='-L$libdir'
9962 hardcode_shlibpath_var=no
9963 ;;
9964
9965 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9966 # support. Future versions do this automatically, but an explicit c++rt0.o
9967 # does not break anything, and helps significantly (at the cost of a little
9968 # extra space).
9969 freebsd2.2*)
9970 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9971 hardcode_libdir_flag_spec='-R$libdir'
9972 hardcode_direct=yes
9973 hardcode_shlibpath_var=no
9974 ;;
9975
9976 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9977 freebsd2.*)
9978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9979 hardcode_direct=yes
9980 hardcode_minus_L=yes
9981 hardcode_shlibpath_var=no
9982 ;;
9983
9984 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9985 freebsd* | dragonfly*)
9986 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9987 hardcode_libdir_flag_spec='-R$libdir'
9988 hardcode_direct=yes
9989 hardcode_shlibpath_var=no
9990 ;;
9991
9992 hpux9*)
9993 if test "$GCC" = yes; then
9994 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'
9995 else
9996 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'
9997 fi
9998 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9999 hardcode_libdir_separator=:
10000 hardcode_direct=yes
10001
10002 # hardcode_minus_L: Not really in the search PATH,
10003 # but as the default location of the library.
10004 hardcode_minus_L=yes
10005 export_dynamic_flag_spec='${wl}-E'
10006 ;;
10007
10008 hpux10*)
10009 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10010 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10011 else
10012 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10013 fi
10014 if test "$with_gnu_ld" = no; then
10015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10016 hardcode_libdir_flag_spec_ld='+b $libdir'
10017 hardcode_libdir_separator=:
10018 hardcode_direct=yes
10019 hardcode_direct_absolute=yes
10020 export_dynamic_flag_spec='${wl}-E'
10021 # hardcode_minus_L: Not really in the search PATH,
10022 # but as the default location of the library.
10023 hardcode_minus_L=yes
10024 fi
10025 ;;
10026
10027 hpux11*)
10028 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10029 case $host_cpu in
10030 hppa*64*)
10031 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10032 ;;
10033 ia64*)
10034 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10035 ;;
10036 *)
10037 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10038 ;;
10039 esac
10040 else
10041 case $host_cpu in
10042 hppa*64*)
10043 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10044 ;;
10045 ia64*)
10046 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10047 ;;
10048 *)
10049
10050 # Older versions of the 11.00 compiler do not understand -b yet
10051 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10053$as_echo_n "checking if $CC understands -b... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000010054if ${lt_cv_prog_compiler__b+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010055 $as_echo_n "(cached) " >&6
10056else
10057 lt_cv_prog_compiler__b=no
10058 save_LDFLAGS="$LDFLAGS"
10059 LDFLAGS="$LDFLAGS -b"
10060 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10062 # The linker can only warn and ignore the option if not recognized
10063 # So say no if there are warnings
10064 if test -s conftest.err; then
10065 # Append any errors to the config.log.
10066 cat conftest.err 1>&5
10067 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10069 if diff conftest.exp conftest.er2 >/dev/null; then
10070 lt_cv_prog_compiler__b=yes
10071 fi
10072 else
10073 lt_cv_prog_compiler__b=yes
10074 fi
10075 fi
10076 $RM -r conftest*
10077 LDFLAGS="$save_LDFLAGS"
10078
10079fi
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10081$as_echo "$lt_cv_prog_compiler__b" >&6; }
10082
10083if test x"$lt_cv_prog_compiler__b" = xyes; then
10084 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10085else
10086 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10087fi
10088
10089 ;;
10090 esac
10091 fi
10092 if test "$with_gnu_ld" = no; then
10093 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10094 hardcode_libdir_separator=:
10095
10096 case $host_cpu in
10097 hppa*64*|ia64*)
10098 hardcode_direct=no
10099 hardcode_shlibpath_var=no
10100 ;;
10101 *)
10102 hardcode_direct=yes
10103 hardcode_direct_absolute=yes
10104 export_dynamic_flag_spec='${wl}-E'
10105
10106 # hardcode_minus_L: Not really in the search PATH,
10107 # but as the default location of the library.
10108 hardcode_minus_L=yes
10109 ;;
10110 esac
10111 fi
10112 ;;
10113
10114 irix5* | irix6* | nonstopux*)
10115 if test "$GCC" = yes; then
10116 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'
10117 # Try to use the -exported_symbol ld option, if it does not
10118 # work, assume that -exports_file does not work either and
10119 # implicitly export all symbols.
10120 save_LDFLAGS="$LDFLAGS"
10121 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123/* end confdefs.h. */
10124int foo(void) {}
10125_ACEOF
10126if ac_fn_c_try_link "$LINENO"; then :
10127 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'
10128
10129fi
10130rm -f core conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10132 LDFLAGS="$save_LDFLAGS"
10133 else
10134 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'
10135 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'
10136 fi
10137 archive_cmds_need_lc='no'
10138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10139 hardcode_libdir_separator=:
10140 inherit_rpath=yes
10141 link_all_deplibs=yes
10142 ;;
10143
10144 netbsd*)
10145 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10147 else
10148 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10149 fi
10150 hardcode_libdir_flag_spec='-R$libdir'
10151 hardcode_direct=yes
10152 hardcode_shlibpath_var=no
10153 ;;
10154
10155 newsos6)
10156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157 hardcode_direct=yes
10158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10159 hardcode_libdir_separator=:
10160 hardcode_shlibpath_var=no
10161 ;;
10162
10163 *nto* | *qnx*)
10164 ;;
10165
10166 openbsd*)
10167 if test -f /usr/libexec/ld.so; then
10168 hardcode_direct=yes
10169 hardcode_shlibpath_var=no
10170 hardcode_direct_absolute=yes
10171 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10172 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10173 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10174 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10175 export_dynamic_flag_spec='${wl}-E'
10176 else
10177 case $host_os in
10178 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10180 hardcode_libdir_flag_spec='-R$libdir'
10181 ;;
10182 *)
10183 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10184 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10185 ;;
10186 esac
10187 fi
10188 else
10189 ld_shlibs=no
10190 fi
10191 ;;
10192
10193 os2*)
10194 hardcode_libdir_flag_spec='-L$libdir'
10195 hardcode_minus_L=yes
10196 allow_undefined_flag=unsupported
10197 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'
10198 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10199 ;;
10200
10201 osf3*)
10202 if test "$GCC" = yes; then
10203 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10204 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'
10205 else
10206 allow_undefined_flag=' -expect_unresolved \*'
10207 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'
10208 fi
10209 archive_cmds_need_lc='no'
10210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10211 hardcode_libdir_separator=:
10212 ;;
10213
10214 osf4* | osf5*) # as osf3* with the addition of -msym flag
10215 if test "$GCC" = yes; then
10216 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10217 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'
10218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10219 else
10220 allow_undefined_flag=' -expect_unresolved \*'
10221 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'
10222 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~
10223 $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'
10224
10225 # Both c and cxx compiler support -rpath directly
10226 hardcode_libdir_flag_spec='-rpath $libdir'
10227 fi
10228 archive_cmds_need_lc='no'
10229 hardcode_libdir_separator=:
10230 ;;
10231
10232 solaris*)
10233 no_undefined_flag=' -z defs'
10234 if test "$GCC" = yes; then
10235 wlarc='${wl}'
10236 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10238 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10239 else
10240 case `$CC -V 2>&1` in
10241 *"Compilers 5.0"*)
10242 wlarc=''
10243 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10244 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10245 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10246 ;;
10247 *)
10248 wlarc='${wl}'
10249 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10250 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10251 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10252 ;;
10253 esac
10254 fi
10255 hardcode_libdir_flag_spec='-R$libdir'
10256 hardcode_shlibpath_var=no
10257 case $host_os in
10258 solaris2.[0-5] | solaris2.[0-5].*) ;;
10259 *)
10260 # The compiler driver will combine and reorder linker options,
10261 # but understands `-z linker_flag'. GCC discards it without `$wl',
10262 # but is careful enough not to reorder.
10263 # Supported since Solaris 2.6 (maybe 2.5.1?)
10264 if test "$GCC" = yes; then
10265 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10266 else
10267 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10268 fi
10269 ;;
10270 esac
10271 link_all_deplibs=yes
10272 ;;
10273
10274 sunos4*)
10275 if test "x$host_vendor" = xsequent; then
10276 # Use $CC to link under sequent, because it throws in some extra .o
10277 # files that make .init and .fini sections work.
10278 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10279 else
10280 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10281 fi
10282 hardcode_libdir_flag_spec='-L$libdir'
10283 hardcode_direct=yes
10284 hardcode_minus_L=yes
10285 hardcode_shlibpath_var=no
10286 ;;
10287
10288 sysv4)
10289 case $host_vendor in
10290 sni)
10291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292 hardcode_direct=yes # is this really true???
10293 ;;
10294 siemens)
10295 ## LD is ld it makes a PLAMLIB
10296 ## CC just makes a GrossModule.
10297 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10298 reload_cmds='$CC -r -o $output$reload_objs'
10299 hardcode_direct=no
10300 ;;
10301 motorola)
10302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10304 ;;
10305 esac
10306 runpath_var='LD_RUN_PATH'
10307 hardcode_shlibpath_var=no
10308 ;;
10309
10310 sysv4.3*)
10311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10312 hardcode_shlibpath_var=no
10313 export_dynamic_flag_spec='-Bexport'
10314 ;;
10315
10316 sysv4*MP*)
10317 if test -d /usr/nec; then
10318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10319 hardcode_shlibpath_var=no
10320 runpath_var=LD_RUN_PATH
10321 hardcode_runpath_var=yes
10322 ld_shlibs=yes
10323 fi
10324 ;;
10325
10326 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10327 no_undefined_flag='${wl}-z,text'
10328 archive_cmds_need_lc=no
10329 hardcode_shlibpath_var=no
10330 runpath_var='LD_RUN_PATH'
10331
10332 if test "$GCC" = yes; then
10333 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10334 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 else
10336 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338 fi
10339 ;;
10340
10341 sysv5* | sco3.2v5* | sco5v6*)
10342 # Note: We can NOT use -z defs as we might desire, because we do not
10343 # link with -lc, and that would cause any symbols used from libc to
10344 # always be unresolved, which means just about no library would
10345 # ever link correctly. If we're not using GNU ld we use -z text
10346 # though, which does catch some bad symbols but isn't as heavy-handed
10347 # as -z defs.
10348 no_undefined_flag='${wl}-z,text'
10349 allow_undefined_flag='${wl}-z,nodefs'
10350 archive_cmds_need_lc=no
10351 hardcode_shlibpath_var=no
10352 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10353 hardcode_libdir_separator=':'
10354 link_all_deplibs=yes
10355 export_dynamic_flag_spec='${wl}-Bexport'
10356 runpath_var='LD_RUN_PATH'
10357
10358 if test "$GCC" = yes; then
10359 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10360 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 else
10362 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10363 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364 fi
10365 ;;
10366
10367 uts4*)
10368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_libdir_flag_spec='-L$libdir'
10370 hardcode_shlibpath_var=no
10371 ;;
10372
10373 *)
10374 ld_shlibs=no
10375 ;;
10376 esac
10377
10378 if test x$host_vendor = xsni; then
10379 case $host in
10380 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10381 export_dynamic_flag_spec='${wl}-Blargedynsym'
10382 ;;
10383 esac
10384 fi
10385 fi
10386
10387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10388$as_echo "$ld_shlibs" >&6; }
10389test "$ld_shlibs" = no && can_build_shared=no
10390
10391with_gnu_ld=$with_gnu_ld
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407#
10408# Do we need to explicitly link libc?
10409#
10410case "x$archive_cmds_need_lc" in
10411x|xyes)
10412 # Assume -lc should be added
10413 archive_cmds_need_lc=yes
10414
10415 if test "$enable_shared" = yes && test "$GCC" = yes; then
10416 case $archive_cmds in
10417 *'~'*)
10418 # FIXME: we may have to deal with multi-command sequences.
10419 ;;
10420 '$CC '*)
10421 # Test whether the compiler implicitly links with -lc since on some
10422 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10423 # to ld, don't add -lc before -lgcc.
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10425$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000010426if ${lt_cv_archive_cmds_need_lc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010427 $as_echo_n "(cached) " >&6
10428else
10429 $RM conftest*
10430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10431
10432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10433 (eval $ac_compile) 2>&5
10434 ac_status=$?
10435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10436 test $ac_status = 0; } 2>conftest.err; then
10437 soname=conftest
10438 lib=conftest
10439 libobjs=conftest.$ac_objext
10440 deplibs=
10441 wl=$lt_prog_compiler_wl
10442 pic_flag=$lt_prog_compiler_pic
10443 compiler_flags=-v
10444 linker_flags=-v
10445 verstring=
10446 output_objdir=.
10447 libname=conftest
10448 lt_save_allow_undefined_flag=$allow_undefined_flag
10449 allow_undefined_flag=
10450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10451 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10452 ac_status=$?
10453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10454 test $ac_status = 0; }
10455 then
10456 lt_cv_archive_cmds_need_lc=no
10457 else
10458 lt_cv_archive_cmds_need_lc=yes
10459 fi
10460 allow_undefined_flag=$lt_save_allow_undefined_flag
10461 else
10462 cat conftest.err 1>&5
10463 fi
10464 $RM conftest*
10465
10466fi
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10468$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10469 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10470 ;;
10471 esac
10472 fi
10473 ;;
10474esac
10475
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10633$as_echo_n "checking dynamic linker characteristics... " >&6; }
10634
10635if test "$GCC" = yes; then
10636 case $host_os in
10637 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10638 *) lt_awk_arg="/^libraries:/" ;;
10639 esac
10640 case $host_os in
10641 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10642 *) lt_sed_strip_eq="s,=/,/,g" ;;
10643 esac
10644 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10645 case $lt_search_path_spec in
10646 *\;*)
10647 # if the path contains ";" then we assume it to be the separator
10648 # otherwise default to the standard path separator (i.e. ":") - it is
10649 # assumed that no part of a normal pathname contains ";" but that should
10650 # okay in the real world where ";" in dirpaths is itself problematic.
10651 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10652 ;;
10653 *)
10654 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10655 ;;
10656 esac
10657 # Ok, now we have the path, separated by spaces, we can step through it
10658 # and add multilib dir if necessary.
10659 lt_tmp_lt_search_path_spec=
10660 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10661 for lt_sys_path in $lt_search_path_spec; do
10662 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10663 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10664 else
10665 test -d "$lt_sys_path" && \
10666 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10667 fi
10668 done
10669 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10670BEGIN {RS=" "; FS="/|\n";} {
10671 lt_foo="";
10672 lt_count=0;
10673 for (lt_i = NF; lt_i > 0; lt_i--) {
10674 if ($lt_i != "" && $lt_i != ".") {
10675 if ($lt_i == "..") {
10676 lt_count++;
10677 } else {
10678 if (lt_count == 0) {
10679 lt_foo="/" $lt_i lt_foo;
10680 } else {
10681 lt_count--;
10682 }
10683 }
10684 }
10685 }
10686 if (lt_foo != "") { lt_freq[lt_foo]++; }
10687 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10688}'`
10689 # AWK program above erroneously prepends '/' to C:/dos/paths
10690 # for these hosts.
10691 case $host_os in
10692 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10693 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10694 esac
10695 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10696else
10697 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10698fi
10699library_names_spec=
10700libname_spec='lib$name'
10701soname_spec=
10702shrext_cmds=".so"
10703postinstall_cmds=
10704postuninstall_cmds=
10705finish_cmds=
10706finish_eval=
10707shlibpath_var=
10708shlibpath_overrides_runpath=unknown
10709version_type=none
10710dynamic_linker="$host_os ld.so"
10711sys_lib_dlsearch_path_spec="/lib /usr/lib"
10712need_lib_prefix=unknown
10713hardcode_into_libs=no
10714
10715# when you set need_version to no, make sure it does not cause -set_version
10716# flags to be left without arguments
10717need_version=unknown
10718
10719case $host_os in
10720aix3*)
10721 version_type=linux
10722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10723 shlibpath_var=LIBPATH
10724
10725 # AIX 3 has no versioning support, so we append a major version to the name.
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 ;;
10728
10729aix[4-9]*)
10730 version_type=linux
10731 need_lib_prefix=no
10732 need_version=no
10733 hardcode_into_libs=yes
10734 if test "$host_cpu" = ia64; then
10735 # AIX 5 supports IA64
10736 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10737 shlibpath_var=LD_LIBRARY_PATH
10738 else
10739 # With GCC up to 2.95.x, collect2 would create an import file
10740 # for dependence libraries. The import file would start with
10741 # the line `#! .'. This would cause the generated library to
10742 # depend on `.', always an invalid library. This was fixed in
10743 # development snapshots of GCC prior to 3.0.
10744 case $host_os in
10745 aix4 | aix4.[01] | aix4.[01].*)
10746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10747 echo ' yes '
10748 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10749 :
10750 else
10751 can_build_shared=no
10752 fi
10753 ;;
10754 esac
10755 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10756 # soname into executable. Probably we can add versioning support to
10757 # collect2, so additional links can be useful in future.
10758 if test "$aix_use_runtimelinking" = yes; then
10759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10760 # instead of lib<name>.a to let people know that these are not
10761 # typical AIX shared libraries.
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763 else
10764 # We preserve .a as extension for shared libraries through AIX4.2
10765 # and later when we are not doing run time linking.
10766 library_names_spec='${libname}${release}.a $libname.a'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 fi
10769 shlibpath_var=LIBPATH
10770 fi
10771 ;;
10772
10773amigaos*)
10774 case $host_cpu in
10775 powerpc)
10776 # Since July 2007 AmigaOS4 officially supports .so libraries.
10777 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779 ;;
10780 m68k)
10781 library_names_spec='$libname.ixlibrary $libname.a'
10782 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10783 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'
10784 ;;
10785 esac
10786 ;;
10787
10788beos*)
10789 library_names_spec='${libname}${shared_ext}'
10790 dynamic_linker="$host_os ld.so"
10791 shlibpath_var=LIBRARY_PATH
10792 ;;
10793
10794bsdi[45]*)
10795 version_type=linux
10796 need_version=no
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10799 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10802 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10803 # the default ld.so.conf also contains /usr/contrib/lib and
10804 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10805 # libtool to hard-code these into programs
10806 ;;
10807
10808cygwin* | mingw* | pw32* | cegcc*)
10809 version_type=windows
10810 shrext_cmds=".dll"
10811 need_version=no
10812 need_lib_prefix=no
10813
10814 case $GCC,$host_os in
10815 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10816 library_names_spec='$libname.dll.a'
10817 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10818 postinstall_cmds='base_file=`basename \${file}`~
10819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10820 dldir=$destdir/`dirname \$dlpath`~
10821 test -d \$dldir || mkdir -p \$dldir~
10822 $install_prog $dir/$dlname \$dldir/$dlname~
10823 chmod a+x \$dldir/$dlname~
10824 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10825 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10826 fi'
10827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10828 dlpath=$dir/\$dldll~
10829 $RM \$dlpath'
10830 shlibpath_overrides_runpath=yes
10831
10832 case $host_os in
10833 cygwin*)
10834 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10835 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10836
10837 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10838 ;;
10839 mingw* | cegcc*)
10840 # MinGW DLLs use traditional 'lib' prefix
10841 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10842 ;;
10843 pw32*)
10844 # pw32 DLLs use 'pw' prefix rather than 'lib'
10845 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10846 ;;
10847 esac
10848 ;;
10849
10850 *)
10851 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10852 ;;
10853 esac
10854 dynamic_linker='Win32 ld.exe'
10855 # FIXME: first we should search . and the directory the executable is in
10856 shlibpath_var=PATH
10857 ;;
10858
10859darwin* | rhapsody*)
10860 dynamic_linker="$host_os dyld"
10861 version_type=darwin
10862 need_lib_prefix=no
10863 need_version=no
10864 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10865 soname_spec='${libname}${release}${major}$shared_ext'
10866 shlibpath_overrides_runpath=yes
10867 shlibpath_var=DYLD_LIBRARY_PATH
10868 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10869
10870 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10871 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10872 ;;
10873
10874dgux*)
10875 version_type=linux
10876 need_lib_prefix=no
10877 need_version=no
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10879 soname_spec='${libname}${release}${shared_ext}$major'
10880 shlibpath_var=LD_LIBRARY_PATH
10881 ;;
10882
10883freebsd* | dragonfly*)
10884 # DragonFly does not have aout. When/if they implement a new
10885 # versioning mechanism, adjust this.
10886 if test -x /usr/bin/objformat; then
10887 objformat=`/usr/bin/objformat`
10888 else
10889 case $host_os in
10890 freebsd[23].*) objformat=aout ;;
10891 *) objformat=elf ;;
10892 esac
10893 fi
10894 version_type=freebsd-$objformat
10895 case $version_type in
10896 freebsd-elf*)
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10898 need_version=no
10899 need_lib_prefix=no
10900 ;;
10901 freebsd-*)
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10903 need_version=yes
10904 ;;
10905 esac
10906 shlibpath_var=LD_LIBRARY_PATH
10907 case $host_os in
10908 freebsd2.*)
10909 shlibpath_overrides_runpath=yes
10910 ;;
10911 freebsd3.[01]* | freebsdelf3.[01]*)
10912 shlibpath_overrides_runpath=yes
10913 hardcode_into_libs=yes
10914 ;;
10915 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10916 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10917 shlibpath_overrides_runpath=no
10918 hardcode_into_libs=yes
10919 ;;
10920 *) # from 4.6 on, and DragonFly
10921 shlibpath_overrides_runpath=yes
10922 hardcode_into_libs=yes
10923 ;;
10924 esac
10925 ;;
10926
10927gnu*)
10928 version_type=linux
10929 need_lib_prefix=no
10930 need_version=no
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10932 soname_spec='${libname}${release}${shared_ext}$major'
10933 shlibpath_var=LD_LIBRARY_PATH
10934 hardcode_into_libs=yes
10935 ;;
10936
10937haiku*)
10938 version_type=linux
10939 need_lib_prefix=no
10940 need_version=no
10941 dynamic_linker="$host_os runtime_loader"
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 shlibpath_var=LIBRARY_PATH
10945 shlibpath_overrides_runpath=yes
10946 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10947 hardcode_into_libs=yes
10948 ;;
10949
10950hpux9* | hpux10* | hpux11*)
10951 # Give a soname corresponding to the major version so that dld.sl refuses to
10952 # link against other versions.
10953 version_type=sunos
10954 need_lib_prefix=no
10955 need_version=no
10956 case $host_cpu in
10957 ia64*)
10958 shrext_cmds='.so'
10959 hardcode_into_libs=yes
10960 dynamic_linker="$host_os dld.so"
10961 shlibpath_var=LD_LIBRARY_PATH
10962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964 soname_spec='${libname}${release}${shared_ext}$major'
10965 if test "X$HPUX_IA64_MODE" = X32; then
10966 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10967 else
10968 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10969 fi
10970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10971 ;;
10972 hppa*64*)
10973 shrext_cmds='.sl'
10974 hardcode_into_libs=yes
10975 dynamic_linker="$host_os dld.sl"
10976 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10982 ;;
10983 *)
10984 shrext_cmds='.sl'
10985 dynamic_linker="$host_os dld.sl"
10986 shlibpath_var=SHLIB_PATH
10987 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 ;;
10991 esac
10992 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10993 postinstall_cmds='chmod 555 $lib'
10994 # or fails outright, so override atomically:
10995 install_override_mode=555
10996 ;;
10997
10998interix[3-9]*)
10999 version_type=linux
11000 need_lib_prefix=no
11001 need_version=no
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11005 shlibpath_var=LD_LIBRARY_PATH
11006 shlibpath_overrides_runpath=no
11007 hardcode_into_libs=yes
11008 ;;
11009
11010irix5* | irix6* | nonstopux*)
11011 case $host_os in
11012 nonstopux*) version_type=nonstopux ;;
11013 *)
11014 if test "$lt_cv_prog_gnu_ld" = yes; then
11015 version_type=linux
11016 else
11017 version_type=irix
11018 fi ;;
11019 esac
11020 need_lib_prefix=no
11021 need_version=no
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11024 case $host_os in
11025 irix5* | nonstopux*)
11026 libsuff= shlibsuff=
11027 ;;
11028 *)
11029 case $LD in # libtool.m4 will add one of these switches to LD
11030 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11031 libsuff= shlibsuff= libmagic=32-bit;;
11032 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11033 libsuff=32 shlibsuff=N32 libmagic=N32;;
11034 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11035 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11036 *) libsuff= shlibsuff= libmagic=never-match;;
11037 esac
11038 ;;
11039 esac
11040 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11041 shlibpath_overrides_runpath=no
11042 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11043 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11044 hardcode_into_libs=yes
11045 ;;
11046
11047# No shared lib support for Linux oldld, aout, or coff.
11048linux*oldld* | linux*aout* | linux*coff*)
11049 dynamic_linker=no
11050 ;;
11051
11052# This must be Linux ELF.
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +000011053
11054# uclinux* changes (here and below) have been submitted to the libtool
11055# project, but have not yet been accepted: they are GCC-local changes
11056# for the time being. (See
11057# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11058linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +000011059 version_type=linux
11060 need_lib_prefix=no
11061 need_version=no
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11065 shlibpath_var=LD_LIBRARY_PATH
11066 shlibpath_overrides_runpath=no
11067
11068 # Some binutils ld are patched to set DT_RUNPATH
Joseph Myers22e05272018-10-31 17:03:16 +000011069 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011070 $as_echo_n "(cached) " >&6
11071else
11072 lt_cv_shlibpath_overrides_runpath=no
11073 save_LDFLAGS=$LDFLAGS
11074 save_libdir=$libdir
11075 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11076 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078/* end confdefs.h. */
11079
11080int
11081main ()
11082{
11083
11084 ;
11085 return 0;
11086}
11087_ACEOF
11088if ac_fn_c_try_link "$LINENO"; then :
11089 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11090 lt_cv_shlibpath_overrides_runpath=yes
11091fi
11092fi
11093rm -f core conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095 LDFLAGS=$save_LDFLAGS
11096 libdir=$save_libdir
11097
11098fi
11099
11100 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11101
11102 # This implies no fast_install, which is unacceptable.
11103 # Some rework will be needed to allow for fast_install
11104 # before this can be enabled.
11105 hardcode_into_libs=yes
11106
11107 # Append ld.so.conf contents to the search path
11108 if test -f /etc/ld.so.conf; then
11109 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' ' '`
11110 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11111 fi
11112
11113 # We used to test for /lib/ld.so.1 and disable shared libraries on
11114 # powerpc, because MkLinux only supported shared libraries with the
11115 # GNU dynamic linker. Since this was broken with cross compilers,
11116 # most powerpc-linux boxes support dynamic linking these days and
11117 # people can always --disable-shared, the test was removed, and we
11118 # assume the GNU/Linux dynamic linker is in use.
11119 dynamic_linker='GNU/Linux ld.so'
11120 ;;
11121
11122netbsd*)
11123 version_type=sunos
11124 need_lib_prefix=no
11125 need_version=no
11126 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11129 dynamic_linker='NetBSD (a.out) ld.so'
11130 else
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 dynamic_linker='NetBSD ld.elf_so'
11134 fi
11135 shlibpath_var=LD_LIBRARY_PATH
11136 shlibpath_overrides_runpath=yes
11137 hardcode_into_libs=yes
11138 ;;
11139
11140newsos6)
11141 version_type=linux
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11145 ;;
11146
11147*nto* | *qnx*)
11148 version_type=qnx
11149 need_lib_prefix=no
11150 need_version=no
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 shlibpath_overrides_runpath=no
11155 hardcode_into_libs=yes
11156 dynamic_linker='ldqnx.so'
11157 ;;
11158
11159openbsd*)
11160 version_type=sunos
11161 sys_lib_dlsearch_path_spec="/usr/lib"
11162 need_lib_prefix=no
11163 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11164 case $host_os in
11165 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11166 *) need_version=no ;;
11167 esac
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11172 case $host_os in
11173 openbsd2.[89] | openbsd2.[89].*)
11174 shlibpath_overrides_runpath=no
11175 ;;
11176 *)
11177 shlibpath_overrides_runpath=yes
11178 ;;
11179 esac
11180 else
11181 shlibpath_overrides_runpath=yes
11182 fi
11183 ;;
11184
11185os2*)
11186 libname_spec='$name'
11187 shrext_cmds=".dll"
11188 need_lib_prefix=no
11189 library_names_spec='$libname${shared_ext} $libname.a'
11190 dynamic_linker='OS/2 ld.exe'
11191 shlibpath_var=LIBPATH
11192 ;;
11193
11194osf3* | osf4* | osf5*)
11195 version_type=osf
11196 need_lib_prefix=no
11197 need_version=no
11198 soname_spec='${libname}${release}${shared_ext}$major'
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11202 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11203 ;;
11204
11205rdos*)
11206 dynamic_linker=no
11207 ;;
11208
11209solaris*)
11210 version_type=linux
11211 need_lib_prefix=no
11212 need_version=no
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214 soname_spec='${libname}${release}${shared_ext}$major'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 shlibpath_overrides_runpath=yes
11217 hardcode_into_libs=yes
11218 # ldd complains unless libraries are executable
11219 postinstall_cmds='chmod +x $lib'
11220 ;;
11221
11222sunos4*)
11223 version_type=sunos
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11225 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 shlibpath_overrides_runpath=yes
11228 if test "$with_gnu_ld" = yes; then
11229 need_lib_prefix=no
11230 fi
11231 need_version=yes
11232 ;;
11233
11234sysv4 | sysv4.3*)
11235 version_type=linux
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11237 soname_spec='${libname}${release}${shared_ext}$major'
11238 shlibpath_var=LD_LIBRARY_PATH
11239 case $host_vendor in
11240 sni)
11241 shlibpath_overrides_runpath=no
11242 need_lib_prefix=no
11243 runpath_var=LD_RUN_PATH
11244 ;;
11245 siemens)
11246 need_lib_prefix=no
11247 ;;
11248 motorola)
11249 need_lib_prefix=no
11250 need_version=no
11251 shlibpath_overrides_runpath=no
11252 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11253 ;;
11254 esac
11255 ;;
11256
11257sysv4*MP*)
11258 if test -d /usr/nec ;then
11259 version_type=linux
11260 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11261 soname_spec='$libname${shared_ext}.$major'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 fi
11264 ;;
11265
11266sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11267 version_type=freebsd-elf
11268 need_lib_prefix=no
11269 need_version=no
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11271 soname_spec='${libname}${release}${shared_ext}$major'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 shlibpath_overrides_runpath=yes
11274 hardcode_into_libs=yes
11275 if test "$with_gnu_ld" = yes; then
11276 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11277 else
11278 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11279 case $host_os in
11280 sco3.2v5*)
11281 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11282 ;;
11283 esac
11284 fi
11285 sys_lib_dlsearch_path_spec='/usr/lib'
11286 ;;
11287
11288tpf*)
11289 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11290 version_type=linux
11291 need_lib_prefix=no
11292 need_version=no
11293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 shlibpath_overrides_runpath=no
11296 hardcode_into_libs=yes
11297 ;;
11298
11299uts4*)
11300 version_type=linux
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 shlibpath_var=LD_LIBRARY_PATH
11304 ;;
11305
11306*)
11307 dynamic_linker=no
11308 ;;
11309esac
11310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11311$as_echo "$dynamic_linker" >&6; }
11312test "$dynamic_linker" = no && can_build_shared=no
11313
11314variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11315if test "$GCC" = yes; then
11316 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11317fi
11318
11319if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11320 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11321fi
11322if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11323 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11324fi
11325
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11418$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11419hardcode_action=
11420if test -n "$hardcode_libdir_flag_spec" ||
11421 test -n "$runpath_var" ||
11422 test "X$hardcode_automatic" = "Xyes" ; then
11423
11424 # We can hardcode non-existent directories.
11425 if test "$hardcode_direct" != no &&
11426 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11427 # have to relink, otherwise we might link with an installed library
11428 # when we should be linking with a yet-to-be-installed one
11429 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11430 test "$hardcode_minus_L" != no; then
11431 # Linking always hardcodes the temporary library directory.
11432 hardcode_action=relink
11433 else
11434 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11435 hardcode_action=immediate
11436 fi
11437else
11438 # We cannot hardcode anything, or else we can only hardcode existing
11439 # directories.
11440 hardcode_action=unsupported
11441fi
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11443$as_echo "$hardcode_action" >&6; }
11444
11445if test "$hardcode_action" = relink ||
11446 test "$inherit_rpath" = yes; then
11447 # Fast installation is not supported
11448 enable_fast_install=no
11449elif test "$shlibpath_overrides_runpath" = yes ||
11450 test "$enable_shared" = no; then
11451 # Fast installation is not necessary
11452 enable_fast_install=needless
11453fi
11454
11455
11456
11457
11458
11459
11460 if test "x$enable_dlopen" != xyes; then
11461 enable_dlopen=unknown
11462 enable_dlopen_self=unknown
11463 enable_dlopen_self_static=unknown
11464else
11465 lt_cv_dlopen=no
11466 lt_cv_dlopen_libs=
11467
11468 case $host_os in
11469 beos*)
11470 lt_cv_dlopen="load_add_on"
11471 lt_cv_dlopen_libs=
11472 lt_cv_dlopen_self=yes
11473 ;;
11474
11475 mingw* | pw32* | cegcc*)
11476 lt_cv_dlopen="LoadLibrary"
11477 lt_cv_dlopen_libs=
11478 ;;
11479
11480 cygwin*)
11481 lt_cv_dlopen="dlopen"
11482 lt_cv_dlopen_libs=
11483 ;;
11484
11485 darwin*)
11486 # if libdl is installed we need to link against it
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11488$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011489if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011490 $as_echo_n "(cached) " >&6
11491else
11492 ac_check_lib_save_LIBS=$LIBS
11493LIBS="-ldl $LIBS"
11494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495/* end confdefs.h. */
11496
11497/* Override any GCC internal prototype to avoid an error.
11498 Use char because int might match the return type of a GCC
11499 builtin and then its argument prototype would still apply. */
11500#ifdef __cplusplus
11501extern "C"
11502#endif
11503char dlopen ();
11504int
11505main ()
11506{
11507return dlopen ();
11508 ;
11509 return 0;
11510}
11511_ACEOF
11512if ac_fn_c_try_link "$LINENO"; then :
11513 ac_cv_lib_dl_dlopen=yes
11514else
11515 ac_cv_lib_dl_dlopen=no
11516fi
11517rm -f core conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11519LIBS=$ac_check_lib_save_LIBS
11520fi
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11522$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011523if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011524 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11525else
11526
11527 lt_cv_dlopen="dyld"
11528 lt_cv_dlopen_libs=
11529 lt_cv_dlopen_self=yes
11530
11531fi
11532
11533 ;;
11534
11535 *)
11536 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Joseph Myers22e05272018-10-31 17:03:16 +000011537if test "x$ac_cv_func_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011538 lt_cv_dlopen="shl_load"
11539else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11541$as_echo_n "checking for shl_load in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011542if ${ac_cv_lib_dld_shl_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011543 $as_echo_n "(cached) " >&6
11544else
11545 ac_check_lib_save_LIBS=$LIBS
11546LIBS="-ldld $LIBS"
11547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548/* end confdefs.h. */
11549
11550/* Override any GCC internal prototype to avoid an error.
11551 Use char because int might match the return type of a GCC
11552 builtin and then its argument prototype would still apply. */
11553#ifdef __cplusplus
11554extern "C"
11555#endif
11556char shl_load ();
11557int
11558main ()
11559{
11560return shl_load ();
11561 ;
11562 return 0;
11563}
11564_ACEOF
11565if ac_fn_c_try_link "$LINENO"; then :
11566 ac_cv_lib_dld_shl_load=yes
11567else
11568 ac_cv_lib_dld_shl_load=no
11569fi
11570rm -f core conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11572LIBS=$ac_check_lib_save_LIBS
11573fi
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11575$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011576if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011577 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11578else
11579 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Joseph Myers22e05272018-10-31 17:03:16 +000011580if test "x$ac_cv_func_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011581 lt_cv_dlopen="dlopen"
11582else
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11584$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011585if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011586 $as_echo_n "(cached) " >&6
11587else
11588 ac_check_lib_save_LIBS=$LIBS
11589LIBS="-ldl $LIBS"
11590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591/* end confdefs.h. */
11592
11593/* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599char dlopen ();
11600int
11601main ()
11602{
11603return dlopen ();
11604 ;
11605 return 0;
11606}
11607_ACEOF
11608if ac_fn_c_try_link "$LINENO"; then :
11609 ac_cv_lib_dl_dlopen=yes
11610else
11611 ac_cv_lib_dl_dlopen=no
11612fi
11613rm -f core conftest.err conftest.$ac_objext \
11614 conftest$ac_exeext conftest.$ac_ext
11615LIBS=$ac_check_lib_save_LIBS
11616fi
11617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11618$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011619if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011620 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11621else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11623$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011624if ${ac_cv_lib_svld_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011625 $as_echo_n "(cached) " >&6
11626else
11627 ac_check_lib_save_LIBS=$LIBS
11628LIBS="-lsvld $LIBS"
11629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630/* end confdefs.h. */
11631
11632/* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11635#ifdef __cplusplus
11636extern "C"
11637#endif
11638char dlopen ();
11639int
11640main ()
11641{
11642return dlopen ();
11643 ;
11644 return 0;
11645}
11646_ACEOF
11647if ac_fn_c_try_link "$LINENO"; then :
11648 ac_cv_lib_svld_dlopen=yes
11649else
11650 ac_cv_lib_svld_dlopen=no
11651fi
11652rm -f core conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11654LIBS=$ac_check_lib_save_LIBS
11655fi
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11657$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011658if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11660else
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11662$as_echo_n "checking for dld_link in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011663if ${ac_cv_lib_dld_dld_link+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011664 $as_echo_n "(cached) " >&6
11665else
11666 ac_check_lib_save_LIBS=$LIBS
11667LIBS="-ldld $LIBS"
11668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669/* end confdefs.h. */
11670
11671/* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11674#ifdef __cplusplus
11675extern "C"
11676#endif
11677char dld_link ();
11678int
11679main ()
11680{
11681return dld_link ();
11682 ;
11683 return 0;
11684}
11685_ACEOF
11686if ac_fn_c_try_link "$LINENO"; then :
11687 ac_cv_lib_dld_dld_link=yes
11688else
11689 ac_cv_lib_dld_dld_link=no
11690fi
11691rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693LIBS=$ac_check_lib_save_LIBS
11694fi
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11696$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011697if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011698 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11699fi
11700
11701
11702fi
11703
11704
11705fi
11706
11707
11708fi
11709
11710
11711fi
11712
11713
11714fi
11715
11716 ;;
11717 esac
11718
11719 if test "x$lt_cv_dlopen" != xno; then
11720 enable_dlopen=yes
11721 else
11722 enable_dlopen=no
11723 fi
11724
11725 case $lt_cv_dlopen in
11726 dlopen)
11727 save_CPPFLAGS="$CPPFLAGS"
11728 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11729
11730 save_LDFLAGS="$LDFLAGS"
11731 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11732
11733 save_LIBS="$LIBS"
11734 LIBS="$lt_cv_dlopen_libs $LIBS"
11735
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11737$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011738if ${lt_cv_dlopen_self+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011739 $as_echo_n "(cached) " >&6
11740else
11741 if test "$cross_compiling" = yes; then :
11742 lt_cv_dlopen_self=cross
11743else
11744 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11745 lt_status=$lt_dlunknown
11746 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclaw0ed75762020-09-10 01:30:20 +020011747#line 11747 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011748#include "confdefs.h"
11749
11750#if HAVE_DLFCN_H
11751#include <dlfcn.h>
11752#endif
11753
11754#include <stdio.h>
11755
11756#ifdef RTLD_GLOBAL
11757# define LT_DLGLOBAL RTLD_GLOBAL
11758#else
11759# ifdef DL_GLOBAL
11760# define LT_DLGLOBAL DL_GLOBAL
11761# else
11762# define LT_DLGLOBAL 0
11763# endif
11764#endif
11765
11766/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11767 find out it does not work in some platform. */
11768#ifndef LT_DLLAZY_OR_NOW
11769# ifdef RTLD_LAZY
11770# define LT_DLLAZY_OR_NOW RTLD_LAZY
11771# else
11772# ifdef DL_LAZY
11773# define LT_DLLAZY_OR_NOW DL_LAZY
11774# else
11775# ifdef RTLD_NOW
11776# define LT_DLLAZY_OR_NOW RTLD_NOW
11777# else
11778# ifdef DL_NOW
11779# define LT_DLLAZY_OR_NOW DL_NOW
11780# else
11781# define LT_DLLAZY_OR_NOW 0
11782# endif
11783# endif
11784# endif
11785# endif
11786#endif
11787
11788/* When -fvisbility=hidden is used, assume the code has been annotated
11789 correspondingly for the symbols needed. */
11790#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11791void fnord () __attribute__((visibility("default")));
11792#endif
11793
11794void fnord () { int i=42; }
11795int main ()
11796{
11797 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11798 int status = $lt_dlunknown;
11799
11800 if (self)
11801 {
11802 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11803 else
11804 {
11805 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11806 else puts (dlerror ());
11807 }
11808 /* dlclose (self); */
11809 }
11810 else
11811 puts (dlerror ());
11812
11813 return status;
11814}
11815_LT_EOF
11816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11817 (eval $ac_link) 2>&5
11818 ac_status=$?
11819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11820 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11821 (./conftest; exit; ) >&5 2>/dev/null
11822 lt_status=$?
11823 case x$lt_status in
11824 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11825 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11826 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11827 esac
11828 else :
11829 # compilation failed
11830 lt_cv_dlopen_self=no
11831 fi
11832fi
11833rm -fr conftest*
11834
11835
11836fi
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11838$as_echo "$lt_cv_dlopen_self" >&6; }
11839
11840 if test "x$lt_cv_dlopen_self" = xyes; then
11841 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11843$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011844if ${lt_cv_dlopen_self_static+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011845 $as_echo_n "(cached) " >&6
11846else
11847 if test "$cross_compiling" = yes; then :
11848 lt_cv_dlopen_self_static=cross
11849else
11850 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11851 lt_status=$lt_dlunknown
11852 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclaw0ed75762020-09-10 01:30:20 +020011853#line 11853 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011854#include "confdefs.h"
11855
11856#if HAVE_DLFCN_H
11857#include <dlfcn.h>
11858#endif
11859
11860#include <stdio.h>
11861
11862#ifdef RTLD_GLOBAL
11863# define LT_DLGLOBAL RTLD_GLOBAL
11864#else
11865# ifdef DL_GLOBAL
11866# define LT_DLGLOBAL DL_GLOBAL
11867# else
11868# define LT_DLGLOBAL 0
11869# endif
11870#endif
11871
11872/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11873 find out it does not work in some platform. */
11874#ifndef LT_DLLAZY_OR_NOW
11875# ifdef RTLD_LAZY
11876# define LT_DLLAZY_OR_NOW RTLD_LAZY
11877# else
11878# ifdef DL_LAZY
11879# define LT_DLLAZY_OR_NOW DL_LAZY
11880# else
11881# ifdef RTLD_NOW
11882# define LT_DLLAZY_OR_NOW RTLD_NOW
11883# else
11884# ifdef DL_NOW
11885# define LT_DLLAZY_OR_NOW DL_NOW
11886# else
11887# define LT_DLLAZY_OR_NOW 0
11888# endif
11889# endif
11890# endif
11891# endif
11892#endif
11893
11894/* When -fvisbility=hidden is used, assume the code has been annotated
11895 correspondingly for the symbols needed. */
11896#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11897void fnord () __attribute__((visibility("default")));
11898#endif
11899
11900void fnord () { int i=42; }
11901int main ()
11902{
11903 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11904 int status = $lt_dlunknown;
11905
11906 if (self)
11907 {
11908 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11909 else
11910 {
11911 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11912 else puts (dlerror ());
11913 }
11914 /* dlclose (self); */
11915 }
11916 else
11917 puts (dlerror ());
11918
11919 return status;
11920}
11921_LT_EOF
11922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11923 (eval $ac_link) 2>&5
11924 ac_status=$?
11925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11926 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11927 (./conftest; exit; ) >&5 2>/dev/null
11928 lt_status=$?
11929 case x$lt_status in
11930 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11931 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11932 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11933 esac
11934 else :
11935 # compilation failed
11936 lt_cv_dlopen_self_static=no
11937 fi
11938fi
11939rm -fr conftest*
11940
11941
11942fi
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11944$as_echo "$lt_cv_dlopen_self_static" >&6; }
11945 fi
11946
11947 CPPFLAGS="$save_CPPFLAGS"
11948 LDFLAGS="$save_LDFLAGS"
11949 LIBS="$save_LIBS"
11950 ;;
11951 esac
11952
11953 case $lt_cv_dlopen_self in
11954 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11955 *) enable_dlopen_self=unknown ;;
11956 esac
11957
11958 case $lt_cv_dlopen_self_static in
11959 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11960 *) enable_dlopen_self_static=unknown ;;
11961 esac
11962fi
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980striplib=
11981old_striplib=
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11983$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11984if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11985 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11986 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988$as_echo "yes" >&6; }
11989else
11990# FIXME - insert some real tests, host_os isn't really good enough
11991 case $host_os in
11992 darwin*)
11993 if test -n "$STRIP" ; then
11994 striplib="$STRIP -x"
11995 old_striplib="$STRIP -S"
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11997$as_echo "yes" >&6; }
11998 else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
12001 fi
12002 ;;
12003 *)
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005$as_echo "no" >&6; }
12006 ;;
12007 esac
12008fi
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021 # Report which library types will actually be built
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12023$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12025$as_echo "$can_build_shared" >&6; }
12026
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12028$as_echo_n "checking whether to build shared libraries... " >&6; }
12029 test "$can_build_shared" = "no" && enable_shared=no
12030
12031 # On AIX, shared libraries and static libraries use the same namespace, and
12032 # are all built from PIC.
12033 case $host_os in
12034 aix3*)
12035 test "$enable_shared" = yes && enable_static=no
12036 if test -n "$RANLIB"; then
12037 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12038 postinstall_cmds='$RANLIB $lib'
12039 fi
12040 ;;
12041
12042 aix[4-9]*)
12043 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12044 test "$enable_shared" = yes && enable_static=no
12045 fi
12046 ;;
12047 esac
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12049$as_echo "$enable_shared" >&6; }
12050
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12052$as_echo_n "checking whether to build static libraries... " >&6; }
12053 # Make sure either enable_shared or enable_static is yes.
12054 test "$enable_shared" = yes || enable_static=yes
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12056$as_echo "$enable_static" >&6; }
12057
12058
12059
12060
12061fi
12062ac_ext=c
12063ac_cpp='$CPP $CPPFLAGS'
12064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12066ac_compiler_gnu=$ac_cv_c_compiler_gnu
12067
12068CC="$lt_save_CC"
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082 ac_config_commands="$ac_config_commands libtool"
12083
12084
12085
12086
12087# Only expand once:
12088
12089
12090
12091
12092
12093 gdc_save_DFLAGS=$GDCFLAGS
12094 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12095
12096
12097# Source file extension for D test sources.
12098ac_ext=d
12099
12100# Object file extension for compiled D test sources.
12101objext=o
12102objext_D=$objext
12103
12104# Code to be used in simple compile tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000012105lt_simple_compile_test_code="\
12106 module object;
12107 shared int some_variable = 0;
12108"
Iain Buclawb4c522f2018-10-28 19:51:47 +000012109
12110# Code to be used in simple link tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000012111lt_simple_link_test_code="\
12112 module object;
12113 extern(C) int main() { return 0; }
12114"
Iain Buclawb4c522f2018-10-28 19:51:47 +000012115
12116# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12117
12118
12119
12120
12121
12122
12123# If no C compiler was specified, use CC.
12124LTCC=${LTCC-"$CC"}
12125
12126# If no C compiler flags were specified, use CFLAGS.
12127LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12128
12129# Allow CC to be a program name with arguments.
12130compiler=$CC
12131
12132
12133# save warnings/boilerplate of simple test code
12134ac_outfile=conftest.$ac_objext
12135echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12136eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12137_lt_compiler_boilerplate=`cat conftest.err`
12138$RM conftest*
12139
12140ac_outfile=conftest.$ac_objext
12141echo "$lt_simple_link_test_code" >conftest.$ac_ext
12142eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12143_lt_linker_boilerplate=`cat conftest.err`
12144$RM -r conftest*
12145
12146
12147# Allow CC to be a program name with arguments.
12148lt_save_CC=$CC
12149lt_save_CFLAGS=$CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000012150lt_save_GCC=$GCC
12151GCC=yes
12152CC=${GDC-"gdc"}
Iain Buclawb4c522f2018-10-28 19:51:47 +000012153CFLAGS=$GDCFLAGS
12154compiler=$CC
12155compiler_D=$CC
12156LD_D=$CC
12157for cc_temp in $compiler""; do
12158 case $cc_temp in
12159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12161 \-*) ;;
12162 *) break;;
12163 esac
12164done
12165cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12166
12167
12168# GDC did not exist at the time GCC didn't implicitly link libc in.
12169archive_cmds_need_lc_D=no
12170
12171old_archive_cmds_D=$old_archive_cmds
12172reload_flag_D=$reload_flag
12173reload_cmds_D=$reload_cmds
12174
12175## CAVEAT EMPTOR:
12176## There is no encapsulation within the following macros, do not change
12177## the running order or otherwise move them around unless you know exactly
12178## what you are doing...
12179if test -n "$compiler"; then
12180
12181lt_prog_compiler_no_builtin_flag_D=
12182
12183if test "$GCC" = yes; then
12184 case $cc_basename in
12185 nvcc*)
12186 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12187 *)
12188 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12189 esac
12190
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12192$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012193if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012194 $as_echo_n "(cached) " >&6
12195else
12196 lt_cv_prog_compiler_rtti_exceptions=no
12197 ac_outfile=conftest.$ac_objext
12198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12199 lt_compiler_flag="-fno-rtti -fno-exceptions"
12200 # Insert the option either (1) after the last *FLAGS variable, or
12201 # (2) before a word containing "conftest.", or (3) at the end.
12202 # Note that $ac_compile itself does not contain backslashes and begins
12203 # with a dollar sign (not a hyphen), so the echo should work correctly.
12204 # The option is referenced via a variable to avoid confusing sed.
12205 lt_compile=`echo "$ac_compile" | $SED \
12206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12208 -e 's:$: $lt_compiler_flag:'`
12209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12210 (eval "$lt_compile" 2>conftest.err)
12211 ac_status=$?
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 if (exit $ac_status) && test -s "$ac_outfile"; then
12215 # The compiler can only warn and ignore the option if not recognized
12216 # So say no if there are warnings other than the usual output.
12217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12219 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12220 lt_cv_prog_compiler_rtti_exceptions=yes
12221 fi
12222 fi
12223 $RM conftest*
12224
12225fi
12226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12227$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12228
12229if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12230 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12231else
12232 :
12233fi
12234
12235fi
12236
12237
12238
12239 lt_prog_compiler_wl_D=
12240lt_prog_compiler_pic_D=
12241lt_prog_compiler_static_D=
12242
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12244$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12245
12246 if test "$GCC" = yes; then
12247 lt_prog_compiler_wl_D='-Wl,'
12248 lt_prog_compiler_static_D='-static'
12249
12250 case $host_os in
12251 aix*)
12252 # All AIX code is PIC.
12253 if test "$host_cpu" = ia64; then
12254 # AIX 5 now supports IA64 processor
12255 lt_prog_compiler_static_D='-Bstatic'
12256 fi
12257 lt_prog_compiler_pic_D='-fPIC'
12258 ;;
12259
12260 amigaos*)
12261 case $host_cpu in
12262 powerpc)
12263 # see comment about AmigaOS4 .so support
12264 lt_prog_compiler_pic_D='-fPIC'
12265 ;;
12266 m68k)
12267 # FIXME: we need at least 68020 code to build shared libraries, but
12268 # adding the `-m68020' flag to GCC prevents building anything better,
12269 # like `-m68040'.
12270 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12271 ;;
12272 esac
12273 ;;
12274
12275 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12276 # PIC is the default for these OSes.
12277 ;;
12278
12279 mingw* | cygwin* | pw32* | os2* | cegcc*)
12280 # This hack is so that the source file can tell whether it is being
12281 # built for inclusion in a dll (and should export symbols for example).
12282 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12283 # (--disable-auto-import) libraries
12284 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12285 ;;
12286
12287 darwin* | rhapsody*)
12288 # PIC is the default on this platform
12289 # Common symbols not allowed in MH_DYLIB files
12290 lt_prog_compiler_pic_D='-fno-common'
12291 ;;
12292
12293 haiku*)
12294 # PIC is the default for Haiku.
12295 # The "-static" flag exists, but is broken.
12296 lt_prog_compiler_static_D=
12297 ;;
12298
12299 hpux*)
12300 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12301 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12302 # sets the default TLS model and affects inlining.
12303 case $host_cpu in
12304 hppa*64*)
12305 # +Z the default
12306 ;;
12307 *)
12308 lt_prog_compiler_pic_D='-fPIC'
12309 ;;
12310 esac
12311 ;;
12312
12313 interix[3-9]*)
12314 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12315 # Instead, we relocate shared libraries at runtime.
12316 ;;
12317
12318 msdosdjgpp*)
12319 # Just because we use GCC doesn't mean we suddenly get shared libraries
12320 # on systems that don't support them.
12321 lt_prog_compiler_can_build_shared_D=no
12322 enable_shared=no
12323 ;;
12324
12325 *nto* | *qnx*)
12326 # QNX uses GNU C++, but need to define -shared option too, otherwise
12327 # it will coredump.
12328 lt_prog_compiler_pic_D='-fPIC -shared'
12329 ;;
12330
12331 sysv4*MP*)
12332 if test -d /usr/nec; then
12333 lt_prog_compiler_pic_D=-Kconform_pic
12334 fi
12335 ;;
12336
12337 *)
12338 lt_prog_compiler_pic_D='-fPIC'
12339 ;;
12340 esac
12341
12342 case $cc_basename in
12343 nvcc*) # Cuda Compiler Driver 2.2
12344 lt_prog_compiler_wl_D='-Xlinker '
12345 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12346 ;;
12347 esac
12348 else
12349 # PORTME Check for flag to pass linker flags through the system compiler.
12350 case $host_os in
12351 aix*)
12352 lt_prog_compiler_wl_D='-Wl,'
12353 if test "$host_cpu" = ia64; then
12354 # AIX 5 now supports IA64 processor
12355 lt_prog_compiler_static_D='-Bstatic'
12356 else
12357 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12358 fi
12359 ;;
12360
12361 mingw* | cygwin* | pw32* | os2* | cegcc*)
12362 # This hack is so that the source file can tell whether it is being
12363 # built for inclusion in a dll (and should export symbols for example).
12364 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12365 ;;
12366
12367 hpux9* | hpux10* | hpux11*)
12368 lt_prog_compiler_wl_D='-Wl,'
12369 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12370 # not for PA HP-UX.
12371 case $host_cpu in
12372 hppa*64*|ia64*)
12373 # +Z the default
12374 ;;
12375 *)
12376 lt_prog_compiler_pic_D='+Z'
12377 ;;
12378 esac
12379 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12380 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12381 ;;
12382
12383 irix5* | irix6* | nonstopux*)
12384 lt_prog_compiler_wl_D='-Wl,'
12385 # PIC (with -KPIC) is the default.
12386 lt_prog_compiler_static_D='-non_shared'
12387 ;;
12388
12389 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12390 case $cc_basename in
12391 # old Intel for x86_64 which still supported -KPIC.
12392 ecc*)
12393 lt_prog_compiler_wl_D='-Wl,'
12394 lt_prog_compiler_pic_D='-KPIC'
12395 lt_prog_compiler_static_D='-static'
12396 ;;
12397 # icc used to be incompatible with GCC.
12398 # ICC 10 doesn't accept -KPIC any more.
12399 icc* | ifort*)
12400 lt_prog_compiler_wl_D='-Wl,'
12401 lt_prog_compiler_pic_D='-fPIC'
12402 lt_prog_compiler_static_D='-static'
12403 ;;
12404 # Lahey Fortran 8.1.
12405 lf95*)
12406 lt_prog_compiler_wl_D='-Wl,'
12407 lt_prog_compiler_pic_D='--shared'
12408 lt_prog_compiler_static_D='--static'
12409 ;;
12410 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12411 # Portland Group compilers (*not* the Pentium gcc compiler,
12412 # which looks to be a dead project)
12413 lt_prog_compiler_wl_D='-Wl,'
12414 lt_prog_compiler_pic_D='-fpic'
12415 lt_prog_compiler_static_D='-Bstatic'
12416 ;;
12417 ccc*)
12418 lt_prog_compiler_wl_D='-Wl,'
12419 # All Alpha code is PIC.
12420 lt_prog_compiler_static_D='-non_shared'
12421 ;;
12422 xl* | bgxl* | bgf* | mpixl*)
12423 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12424 lt_prog_compiler_wl_D='-Wl,'
12425 lt_prog_compiler_pic_D='-qpic'
12426 lt_prog_compiler_static_D='-qstaticlink'
12427 ;;
12428 *)
12429 case `$CC -V 2>&1 | sed 5q` in
12430 *Sun\ F* | *Sun*Fortran*)
12431 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12432 lt_prog_compiler_pic_D='-KPIC'
12433 lt_prog_compiler_static_D='-Bstatic'
12434 lt_prog_compiler_wl_D=''
12435 ;;
12436 *Sun\ C*)
12437 # Sun C 5.9
12438 lt_prog_compiler_pic_D='-KPIC'
12439 lt_prog_compiler_static_D='-Bstatic'
12440 lt_prog_compiler_wl_D='-Wl,'
12441 ;;
12442 esac
12443 ;;
12444 esac
12445 ;;
12446
12447 newsos6)
12448 lt_prog_compiler_pic_D='-KPIC'
12449 lt_prog_compiler_static_D='-Bstatic'
12450 ;;
12451
12452 *nto* | *qnx*)
12453 # QNX uses GNU C++, but need to define -shared option too, otherwise
12454 # it will coredump.
12455 lt_prog_compiler_pic_D='-fPIC -shared'
12456 ;;
12457
12458 osf3* | osf4* | osf5*)
12459 lt_prog_compiler_wl_D='-Wl,'
12460 # All OSF/1 code is PIC.
12461 lt_prog_compiler_static_D='-non_shared'
12462 ;;
12463
12464 rdos*)
12465 lt_prog_compiler_static_D='-non_shared'
12466 ;;
12467
12468 solaris*)
12469 lt_prog_compiler_pic_D='-KPIC'
12470 lt_prog_compiler_static_D='-Bstatic'
12471 case $cc_basename in
12472 f77* | f90* | f95*)
12473 lt_prog_compiler_wl_D='-Qoption ld ';;
12474 *)
12475 lt_prog_compiler_wl_D='-Wl,';;
12476 esac
12477 ;;
12478
12479 sunos4*)
12480 lt_prog_compiler_wl_D='-Qoption ld '
12481 lt_prog_compiler_pic_D='-PIC'
12482 lt_prog_compiler_static_D='-Bstatic'
12483 ;;
12484
12485 sysv4 | sysv4.2uw2* | sysv4.3*)
12486 lt_prog_compiler_wl_D='-Wl,'
12487 lt_prog_compiler_pic_D='-KPIC'
12488 lt_prog_compiler_static_D='-Bstatic'
12489 ;;
12490
12491 sysv4*MP*)
12492 if test -d /usr/nec ;then
12493 lt_prog_compiler_pic_D='-Kconform_pic'
12494 lt_prog_compiler_static_D='-Bstatic'
12495 fi
12496 ;;
12497
12498 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12499 lt_prog_compiler_wl_D='-Wl,'
12500 lt_prog_compiler_pic_D='-KPIC'
12501 lt_prog_compiler_static_D='-Bstatic'
12502 ;;
12503
12504 unicos*)
12505 lt_prog_compiler_wl_D='-Wl,'
12506 lt_prog_compiler_can_build_shared_D=no
12507 ;;
12508
12509 uts4*)
12510 lt_prog_compiler_pic_D='-pic'
12511 lt_prog_compiler_static_D='-Bstatic'
12512 ;;
12513
12514 *)
12515 lt_prog_compiler_can_build_shared_D=no
12516 ;;
12517 esac
12518 fi
12519
12520case $host_os in
12521 # For platforms which do not support PIC, -DPIC is meaningless:
12522 *djgpp*)
12523 lt_prog_compiler_pic_D=
12524 ;;
12525 *)
12526 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12527 ;;
12528esac
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12530$as_echo "$lt_prog_compiler_pic_D" >&6; }
12531
12532
12533
12534#
12535# Check to make sure the PIC flag actually works.
12536#
12537if test -n "$lt_prog_compiler_pic_D"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12539$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012540if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012541 $as_echo_n "(cached) " >&6
12542else
12543 lt_cv_prog_compiler_pic_works_D=no
12544 ac_outfile=conftest.$ac_objext
12545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12546 lt_compiler_flag="$lt_prog_compiler_pic_D"
12547 # Insert the option either (1) after the last *FLAGS variable, or
12548 # (2) before a word containing "conftest.", or (3) at the end.
12549 # Note that $ac_compile itself does not contain backslashes and begins
12550 # with a dollar sign (not a hyphen), so the echo should work correctly.
12551 # The option is referenced via a variable to avoid confusing sed.
12552 lt_compile=`echo "$ac_compile" | $SED \
12553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12555 -e 's:$: $lt_compiler_flag:'`
12556 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12557 (eval "$lt_compile" 2>conftest.err)
12558 ac_status=$?
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 if (exit $ac_status) && test -s "$ac_outfile"; then
12562 # The compiler can only warn and ignore the option if not recognized
12563 # So say no if there are warnings other than the usual output.
12564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12566 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12567 lt_cv_prog_compiler_pic_works_D=yes
12568 fi
12569 fi
12570 $RM conftest*
12571
12572fi
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12574$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12575
12576if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12577 case $lt_prog_compiler_pic_D in
12578 "" | " "*) ;;
12579 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12580 esac
12581else
12582 lt_prog_compiler_pic_D=
12583 lt_prog_compiler_can_build_shared_D=no
12584fi
12585
12586fi
12587
12588
12589
12590#
12591# Check to make sure the static flag actually works.
12592#
12593wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12595$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012596if ${lt_cv_prog_compiler_static_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012597 $as_echo_n "(cached) " >&6
12598else
12599 lt_cv_prog_compiler_static_works_D=no
12600 save_LDFLAGS="$LDFLAGS"
12601 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12602 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12603 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12604 # The linker can only warn and ignore the option if not recognized
12605 # So say no if there are warnings
12606 if test -s conftest.err; then
12607 # Append any errors to the config.log.
12608 cat conftest.err 1>&5
12609 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12611 if diff conftest.exp conftest.er2 >/dev/null; then
12612 lt_cv_prog_compiler_static_works_D=yes
12613 fi
12614 else
12615 lt_cv_prog_compiler_static_works_D=yes
12616 fi
12617 fi
12618 $RM -r conftest*
12619 LDFLAGS="$save_LDFLAGS"
12620
12621fi
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12623$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12624
12625if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12626 :
12627else
12628 lt_prog_compiler_static_D=
12629fi
12630
12631
12632
12633
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12635$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012636if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012637 $as_echo_n "(cached) " >&6
12638else
12639 lt_cv_prog_compiler_c_o_D=no
12640 $RM -r conftest 2>/dev/null
12641 mkdir conftest
12642 cd conftest
12643 mkdir out
12644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12645
12646 lt_compiler_flag="-o out/conftest2.$ac_objext"
12647 # Insert the option either (1) after the last *FLAGS variable, or
12648 # (2) before a word containing "conftest.", or (3) at the end.
12649 # Note that $ac_compile itself does not contain backslashes and begins
12650 # with a dollar sign (not a hyphen), so the echo should work correctly.
12651 lt_compile=`echo "$ac_compile" | $SED \
12652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12654 -e 's:$: $lt_compiler_flag:'`
12655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12656 (eval "$lt_compile" 2>out/conftest.err)
12657 ac_status=$?
12658 cat out/conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12661 then
12662 # The compiler can only warn and ignore the option if not recognized
12663 # So say no if there are warnings
12664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12665 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12666 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12667 lt_cv_prog_compiler_c_o_D=yes
12668 fi
12669 fi
12670 chmod u+w . 2>&5
12671 $RM conftest*
12672 # SGI C++ compiler will create directory out/ii_files/ for
12673 # template instantiation
12674 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12675 $RM out/* && rmdir out
12676 cd ..
12677 $RM -r conftest
12678 $RM conftest*
12679
12680fi
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12682$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12683
12684
12685
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12687$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012688if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012689 $as_echo_n "(cached) " >&6
12690else
12691 lt_cv_prog_compiler_c_o_D=no
12692 $RM -r conftest 2>/dev/null
12693 mkdir conftest
12694 cd conftest
12695 mkdir out
12696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12697
12698 lt_compiler_flag="-o out/conftest2.$ac_objext"
12699 # Insert the option either (1) after the last *FLAGS variable, or
12700 # (2) before a word containing "conftest.", or (3) at the end.
12701 # Note that $ac_compile itself does not contain backslashes and begins
12702 # with a dollar sign (not a hyphen), so the echo should work correctly.
12703 lt_compile=`echo "$ac_compile" | $SED \
12704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12706 -e 's:$: $lt_compiler_flag:'`
12707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12708 (eval "$lt_compile" 2>out/conftest.err)
12709 ac_status=$?
12710 cat out/conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12713 then
12714 # The compiler can only warn and ignore the option if not recognized
12715 # So say no if there are warnings
12716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12719 lt_cv_prog_compiler_c_o_D=yes
12720 fi
12721 fi
12722 chmod u+w . 2>&5
12723 $RM conftest*
12724 # SGI C++ compiler will create directory out/ii_files/ for
12725 # template instantiation
12726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12727 $RM out/* && rmdir out
12728 cd ..
12729 $RM -r conftest
12730 $RM conftest*
12731
12732fi
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12734$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12735
12736
12737
12738
12739hard_links="nottested"
12740if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12741 # do not overwrite the value of need_locks provided by the user
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12743$as_echo_n "checking if we can lock with hard links... " >&6; }
12744 hard_links=yes
12745 $RM conftest*
12746 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12747 touch conftest.a
12748 ln conftest.a conftest.b 2>&5 || hard_links=no
12749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12751$as_echo "$hard_links" >&6; }
12752 if test "$hard_links" = no; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12754$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12755 need_locks=warn
12756 fi
12757else
12758 need_locks=no
12759fi
12760
12761
12762
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12764$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12765
12766 runpath_var=
12767 allow_undefined_flag_D=
12768 always_export_symbols_D=no
12769 archive_cmds_D=
12770 archive_expsym_cmds_D=
12771 compiler_needs_object_D=no
12772 enable_shared_with_static_runtimes_D=no
12773 export_dynamic_flag_spec_D=
12774 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12775 hardcode_automatic_D=no
12776 hardcode_direct_D=no
12777 hardcode_direct_absolute_D=no
12778 hardcode_libdir_flag_spec_D=
12779 hardcode_libdir_flag_spec_ld_D=
12780 hardcode_libdir_separator_D=
12781 hardcode_minus_L_D=no
12782 hardcode_shlibpath_var_D=unsupported
12783 inherit_rpath_D=no
12784 link_all_deplibs_D=unknown
12785 module_cmds_D=
12786 module_expsym_cmds_D=
12787 old_archive_from_new_cmds_D=
12788 old_archive_from_expsyms_cmds_D=
12789 thread_safe_flag_spec_D=
12790 whole_archive_flag_spec_D=
12791 # include_expsyms should be a list of space-separated symbols to be *always*
12792 # included in the symbol list
12793 include_expsyms_D=
12794 # exclude_expsyms can be an extended regexp of symbols to exclude
12795 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12796 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12797 # as well as any symbol that contains `d'.
12798 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12799 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12800 # platforms (ab)use it in PIC code, but their linkers get confused if
12801 # the symbol is explicitly referenced. Since portable code cannot
12802 # rely on this symbol name, it's probably fine to never include it in
12803 # preloaded symbol tables.
12804 # Exclude shared library initialization/finalization symbols.
12805 extract_expsyms_cmds=
12806
12807 case $host_os in
12808 cygwin* | mingw* | pw32* | cegcc*)
12809 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12810 # When not using gcc, we currently assume that we are using
12811 # Microsoft Visual C++.
12812 if test "$GCC" != yes; then
12813 with_gnu_ld=no
12814 fi
12815 ;;
12816 interix*)
12817 # we just hope/assume this is gcc and not c89 (= MSVC++)
12818 with_gnu_ld=yes
12819 ;;
12820 openbsd*)
12821 with_gnu_ld=no
12822 ;;
12823 esac
12824
12825 ld_shlibs_D=yes
12826
12827 # On some targets, GNU ld is compatible enough with the native linker
12828 # that we're better off using the native interface for both.
12829 lt_use_gnu_ld_interface=no
12830 if test "$with_gnu_ld" = yes; then
12831 case $host_os in
12832 aix*)
12833 # The AIX port of GNU ld has always aspired to compatibility
12834 # with the native linker. However, as the warning in the GNU ld
12835 # block says, versions before 2.19.5* couldn't really create working
12836 # shared libraries, regardless of the interface used.
12837 case `$LD -v 2>&1` in
12838 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12839 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12840 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12841 *)
12842 lt_use_gnu_ld_interface=yes
12843 ;;
12844 esac
12845 ;;
12846 *)
12847 lt_use_gnu_ld_interface=yes
12848 ;;
12849 esac
12850 fi
12851
12852 if test "$lt_use_gnu_ld_interface" = yes; then
12853 # If archive_cmds runs LD, not CC, wlarc should be empty
12854 wlarc='${wl}'
12855
12856 # Set some defaults for GNU ld with shared library support. These
12857 # are reset later if shared libraries are not supported. Putting them
12858 # here allows them to be overridden if necessary.
12859 runpath_var=LD_RUN_PATH
12860 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12861 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12862 # ancient GNU ld didn't support --whole-archive et. al.
12863 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12864 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12865 else
12866 whole_archive_flag_spec_D=
12867 fi
12868 supports_anon_versioning=no
12869 case `$LD -v 2>&1` in
12870 *GNU\ gold*) supports_anon_versioning=yes ;;
12871 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12872 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12873 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12874 *\ 2.11.*) ;; # other 2.11 versions
12875 *) supports_anon_versioning=yes ;;
12876 esac
12877
12878 # See if GNU ld supports shared libraries.
12879 case $host_os in
12880 aix[3-9]*)
12881 # On AIX/PPC, the GNU linker is very broken
12882 if test "$host_cpu" != ia64; then
12883 ld_shlibs_D=no
12884 cat <<_LT_EOF 1>&2
12885
12886*** Warning: the GNU linker, at least up to release 2.19, is reported
12887*** to be unable to reliably create shared libraries on AIX.
12888*** Therefore, libtool is disabling shared libraries support. If you
12889*** really care for shared libraries, you may want to install binutils
12890*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12891*** You will then need to restart the configuration process.
12892
12893_LT_EOF
12894 fi
12895 ;;
12896
12897 amigaos*)
12898 case $host_cpu in
12899 powerpc)
12900 # see comment about AmigaOS4 .so support
12901 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12902 archive_expsym_cmds_D=''
12903 ;;
12904 m68k)
12905 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)'
12906 hardcode_libdir_flag_spec_D='-L$libdir'
12907 hardcode_minus_L_D=yes
12908 ;;
12909 esac
12910 ;;
12911
12912 beos*)
12913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12914 allow_undefined_flag_D=unsupported
12915 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12916 # support --undefined. This deserves some investigation. FIXME
12917 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12918 else
12919 ld_shlibs_D=no
12920 fi
12921 ;;
12922
12923 cygwin* | mingw* | pw32* | cegcc*)
12924 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12925 # as there is no search path for DLLs.
12926 hardcode_libdir_flag_spec_D='-L$libdir'
12927 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12928 allow_undefined_flag_D=unsupported
12929 always_export_symbols_D=no
12930 enable_shared_with_static_runtimes_D=yes
12931 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12932
12933 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12934 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12935 # If the export-symbols file already is a .def file (1st line
12936 # is EXPORTS), use it as is; otherwise, prepend...
12937 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12938 cp $export_symbols $output_objdir/$soname.def;
12939 else
12940 echo EXPORTS > $output_objdir/$soname.def;
12941 cat $export_symbols >> $output_objdir/$soname.def;
12942 fi~
12943 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12944 else
12945 ld_shlibs_D=no
12946 fi
12947 ;;
12948
12949 haiku*)
12950 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12951 link_all_deplibs_D=yes
12952 ;;
12953
12954 interix[3-9]*)
12955 hardcode_direct_D=no
12956 hardcode_shlibpath_var_D=no
12957 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12958 export_dynamic_flag_spec_D='${wl}-E'
12959 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12960 # Instead, shared libraries are loaded at an image base (0x10000000 by
12961 # default) and relocated if they conflict, which is a slow very memory
12962 # consuming and fragmenting process. To avoid this, we pick a random,
12963 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12964 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12965 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'
12966 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'
12967 ;;
12968
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +000012969 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +000012970 tmp_diet=no
12971 if test "$host_os" = linux-dietlibc; then
12972 case $cc_basename in
12973 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12974 esac
12975 fi
12976 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12977 && test "$tmp_diet" = no
12978 then
12979 tmp_addflag=' $pic_flag'
12980 tmp_sharedflag='-shared'
12981 case $cc_basename,$host_cpu in
12982 pgcc*) # Portland Group C compiler
12983 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'
12984 tmp_addflag=' $pic_flag'
12985 ;;
12986 pgf77* | pgf90* | pgf95* | pgfortran*)
12987 # Portland Group f77 and f90 compilers
12988 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'
12989 tmp_addflag=' $pic_flag -Mnomain' ;;
12990 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12991 tmp_addflag=' -i_dynamic' ;;
12992 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12993 tmp_addflag=' -i_dynamic -nofor_main' ;;
12994 ifc* | ifort*) # Intel Fortran compiler
12995 tmp_addflag=' -nofor_main' ;;
12996 lf95*) # Lahey Fortran 8.1
12997 whole_archive_flag_spec_D=
12998 tmp_sharedflag='--shared' ;;
12999 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13000 tmp_sharedflag='-qmkshrobj'
13001 tmp_addflag= ;;
13002 nvcc*) # Cuda Compiler Driver 2.2
13003 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'
13004 compiler_needs_object_D=yes
13005 ;;
13006 esac
13007 case `$CC -V 2>&1 | sed 5q` in
13008 *Sun\ C*) # Sun C 5.9
13009 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'
13010 compiler_needs_object_D=yes
13011 tmp_sharedflag='-G' ;;
13012 *Sun\ F*) # Sun Fortran 8.3
13013 tmp_sharedflag='-G' ;;
13014 esac
13015 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13016
13017 if test "x$supports_anon_versioning" = xyes; then
13018 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13019 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13020 echo "local: *; };" >> $output_objdir/$libname.ver~
13021 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13022 fi
13023
13024 case $cc_basename in
13025 xlf* | bgf* | bgxlf* | mpixlf*)
13026 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13027 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
13028 hardcode_libdir_flag_spec_D=
13029 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
13030 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13031 if test "x$supports_anon_versioning" = xyes; then
13032 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13034 echo "local: *; };" >> $output_objdir/$libname.ver~
13035 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13036 fi
13037 ;;
13038 esac
13039 else
13040 ld_shlibs_D=no
13041 fi
13042 ;;
13043
13044 netbsd*)
13045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13046 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13047 wlarc=
13048 else
13049 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13050 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13051 fi
13052 ;;
13053
13054 solaris*)
13055 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13056 ld_shlibs_D=no
13057 cat <<_LT_EOF 1>&2
13058
13059*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13060*** create shared libraries on Solaris systems. Therefore, libtool
13061*** is disabling shared libraries support. We urge you to upgrade GNU
13062*** binutils to release 2.9.1 or newer. Another option is to modify
13063*** your PATH or compiler configuration so that the native linker is
13064*** used, and then restart.
13065
13066_LT_EOF
13067 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13068 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13069 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13070 else
13071 ld_shlibs_D=no
13072 fi
13073 ;;
13074
13075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13076 case `$LD -v 2>&1` in
13077 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13078 ld_shlibs_D=no
13079 cat <<_LT_EOF 1>&2
13080
13081*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13082*** reliably create shared libraries on SCO systems. Therefore, libtool
13083*** is disabling shared libraries support. We urge you to upgrade GNU
13084*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13085*** your PATH or compiler configuration so that the native linker is
13086*** used, and then restart.
13087
13088_LT_EOF
13089 ;;
13090 *)
13091 # For security reasons, it is highly recommended that you always
13092 # use absolute paths for naming shared libraries, and exclude the
13093 # DT_RUNPATH tag from executables and libraries. But doing so
13094 # requires that you compile everything twice, which is a pain.
13095 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13096 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13097 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13098 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13099 else
13100 ld_shlibs_D=no
13101 fi
13102 ;;
13103 esac
13104 ;;
13105
13106 sunos4*)
13107 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13108 wlarc=
13109 hardcode_direct_D=yes
13110 hardcode_shlibpath_var_D=no
13111 ;;
13112
13113 *)
13114 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13115 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13116 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13117 else
13118 ld_shlibs_D=no
13119 fi
13120 ;;
13121 esac
13122
13123 if test "$ld_shlibs_D" = no; then
13124 runpath_var=
13125 hardcode_libdir_flag_spec_D=
13126 export_dynamic_flag_spec_D=
13127 whole_archive_flag_spec_D=
13128 fi
13129 else
13130 # PORTME fill in a description of your system's linker (not GNU ld)
13131 case $host_os in
13132 aix3*)
13133 allow_undefined_flag_D=unsupported
13134 always_export_symbols_D=yes
13135 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'
13136 # Note: this linker hardcodes the directories in LIBPATH if there
13137 # are no directories specified by -L.
13138 hardcode_minus_L_D=yes
13139 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13140 # Neither direct hardcoding nor static linking is supported with a
13141 # broken collect2.
13142 hardcode_direct_D=unsupported
13143 fi
13144 ;;
13145
13146 aix[4-9]*)
13147 if test "$host_cpu" = ia64; then
13148 # On IA64, the linker does run time linking by default, so we don't
13149 # have to do anything special.
13150 aix_use_runtimelinking=no
13151 exp_sym_flag='-Bexport'
13152 no_entry_flag=""
13153 else
13154 # If we're using GNU nm, then we don't want the "-C" option.
13155 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13156 # Also, AIX nm treats weak defined symbols like other global
13157 # defined symbols, whereas GNU nm marks them as "W".
13158 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13159 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'
13160 else
13161 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'
13162 fi
13163 aix_use_runtimelinking=no
13164
13165 # Test if we are trying to use run time linking or normal
13166 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13167 # need to do runtime linking.
13168 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13169 for ld_flag in $LDFLAGS; do
13170 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13171 aix_use_runtimelinking=yes
13172 break
13173 fi
13174 done
13175 ;;
13176 esac
13177
13178 exp_sym_flag='-bexport'
13179 no_entry_flag='-bnoentry'
13180 fi
13181
13182 # When large executables or shared objects are built, AIX ld can
13183 # have problems creating the table of contents. If linking a library
13184 # or program results in "error TOC overflow" add -mminimal-toc to
13185 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13186 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13187
13188 archive_cmds_D=''
13189 hardcode_direct_D=yes
13190 hardcode_direct_absolute_D=yes
13191 hardcode_libdir_separator_D=':'
13192 link_all_deplibs_D=yes
13193 file_list_spec_D='${wl}-f,'
13194
13195 if test "$GCC" = yes; then
13196 case $host_os in aix4.[012]|aix4.[012].*)
13197 # We only want to do this on AIX 4.2 and lower, the check
13198 # below for broken collect2 doesn't work under 4.3+
13199 collect2name=`${CC} -print-prog-name=collect2`
13200 if test -f "$collect2name" &&
13201 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13202 then
13203 # We have reworked collect2
13204 :
13205 else
13206 # We have old collect2
13207 hardcode_direct_D=unsupported
13208 # It fails to find uninstalled libraries when the uninstalled
13209 # path is not listed in the libpath. Setting hardcode_minus_L
13210 # to unsupported forces relinking
13211 hardcode_minus_L_D=yes
13212 hardcode_libdir_flag_spec_D='-L$libdir'
13213 hardcode_libdir_separator_D=
13214 fi
13215 ;;
13216 esac
13217 shared_flag='-shared'
13218 if test "$aix_use_runtimelinking" = yes; then
13219 shared_flag="$shared_flag "'${wl}-G'
13220 fi
13221 else
13222 # not using gcc
13223 if test "$host_cpu" = ia64; then
13224 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13225 # chokes on -Wl,-G. The following line is correct:
13226 shared_flag='-G'
13227 else
13228 if test "$aix_use_runtimelinking" = yes; then
13229 shared_flag='${wl}-G'
13230 else
13231 shared_flag='${wl}-bM:SRE'
13232 fi
13233 fi
13234 fi
13235
13236 export_dynamic_flag_spec_D='${wl}-bexpall'
13237 # It seems that -bexpall does not export symbols beginning with
13238 # underscore (_), so it is better to generate a list of symbols to export.
13239 always_export_symbols_D=yes
13240 if test "$aix_use_runtimelinking" = yes; then
13241 # Warning - without using the other runtime loading flags (-brtl),
13242 # -berok will link without error, but may produce a broken library.
13243 allow_undefined_flag_D='-berok'
13244 # Determine the default libpath from the value encoded in an
13245 # empty executable.
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247/* end confdefs.h. */
13248
13249int
13250main ()
13251{
13252
13253 ;
13254 return 0;
13255}
13256_ACEOF
13257if ac_fn_c_try_link "$LINENO"; then :
13258
13259lt_aix_libpath_sed='
13260 /Import File Strings/,/^$/ {
13261 /^0/ {
13262 s/^0 *\(.*\)$/\1/
13263 p
13264 }
13265 }'
13266aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13267# Check for a 64-bit object if we didn't find anything.
13268if test -z "$aix_libpath"; then
13269 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13270fi
13271fi
13272rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13274if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13275
13276 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13277 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"
13278 else
13279 if test "$host_cpu" = ia64; then
13280 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13281 allow_undefined_flag_D="-z nodefs"
13282 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"
13283 else
13284 # Determine the default libpath from the value encoded in an
13285 # empty executable.
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287/* end confdefs.h. */
13288
13289int
13290main ()
13291{
13292
13293 ;
13294 return 0;
13295}
13296_ACEOF
13297if ac_fn_c_try_link "$LINENO"; then :
13298
13299lt_aix_libpath_sed='
13300 /Import File Strings/,/^$/ {
13301 /^0/ {
13302 s/^0 *\(.*\)$/\1/
13303 p
13304 }
13305 }'
13306aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13307# Check for a 64-bit object if we didn't find anything.
13308if test -z "$aix_libpath"; then
13309 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13310fi
13311fi
13312rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
13314if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13315
13316 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13317 # Warning - without using the other run time loading flags,
13318 # -berok will link without error, but may produce a broken library.
13319 no_undefined_flag_D=' ${wl}-bernotok'
13320 allow_undefined_flag_D=' ${wl}-berok'
13321 if test "$with_gnu_ld" = yes; then
13322 # We only use this code for GNU lds that support --whole-archive.
13323 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13324 else
13325 # Exported symbols can be pulled into shared objects from archives
13326 whole_archive_flag_spec_D='$convenience'
13327 fi
13328 archive_cmds_need_lc_D=yes
13329 # This is similar to how AIX traditionally builds its shared libraries.
13330 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'
13331 fi
13332 fi
13333 ;;
13334
13335 amigaos*)
13336 case $host_cpu in
13337 powerpc)
13338 # see comment about AmigaOS4 .so support
13339 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13340 archive_expsym_cmds_D=''
13341 ;;
13342 m68k)
13343 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)'
13344 hardcode_libdir_flag_spec_D='-L$libdir'
13345 hardcode_minus_L_D=yes
13346 ;;
13347 esac
13348 ;;
13349
13350 bsdi[45]*)
13351 export_dynamic_flag_spec_D=-rdynamic
13352 ;;
13353
13354 cygwin* | mingw* | pw32* | cegcc*)
13355 # When not using gcc, we currently assume that we are using
13356 # Microsoft Visual C++.
13357 # hardcode_libdir_flag_spec is actually meaningless, as there is
13358 # no search path for DLLs.
13359 hardcode_libdir_flag_spec_D=' '
13360 allow_undefined_flag_D=unsupported
13361 # Tell ltmain to make .lib files, not .a files.
13362 libext=lib
13363 # Tell ltmain to make .dll files, not .so files.
13364 shrext_cmds=".dll"
13365 # FIXME: Setting linknames here is a bad hack.
13366 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13367 # The linker will automatically build a .lib file if we build a DLL.
13368 old_archive_from_new_cmds_D='true'
13369 # FIXME: Should let the user specify the lib program.
13370 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13371 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13372 enable_shared_with_static_runtimes_D=yes
13373 ;;
13374
13375 darwin* | rhapsody*)
13376
13377
13378 archive_cmds_need_lc_D=no
13379 hardcode_direct_D=no
13380 hardcode_automatic_D=yes
13381 hardcode_shlibpath_var_D=unsupported
13382 if test "$lt_cv_ld_force_load" = "yes"; then
13383 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\"`'
13384 else
13385 whole_archive_flag_spec_D=''
13386 fi
13387 link_all_deplibs_D=yes
13388 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13389 case $cc_basename in
13390 ifort*) _lt_dar_can_shared=yes ;;
13391 *) _lt_dar_can_shared=$GCC ;;
13392 esac
13393 if test "$_lt_dar_can_shared" = "yes"; then
13394 output_verbose_link_cmd=func_echo_all
13395 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}"
13396 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13397 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}"
13398 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}"
13399
13400 else
13401 ld_shlibs_D=no
13402 fi
13403
13404 ;;
13405
13406 dgux*)
13407 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13408 hardcode_libdir_flag_spec_D='-L$libdir'
13409 hardcode_shlibpath_var_D=no
13410 ;;
13411
13412 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13413 # support. Future versions do this automatically, but an explicit c++rt0.o
13414 # does not break anything, and helps significantly (at the cost of a little
13415 # extra space).
13416 freebsd2.2*)
13417 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13418 hardcode_libdir_flag_spec_D='-R$libdir'
13419 hardcode_direct_D=yes
13420 hardcode_shlibpath_var_D=no
13421 ;;
13422
13423 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13424 freebsd2.*)
13425 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13426 hardcode_direct_D=yes
13427 hardcode_minus_L_D=yes
13428 hardcode_shlibpath_var_D=no
13429 ;;
13430
13431 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13432 freebsd* | dragonfly*)
13433 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13434 hardcode_libdir_flag_spec_D='-R$libdir'
13435 hardcode_direct_D=yes
13436 hardcode_shlibpath_var_D=no
13437 ;;
13438
13439 hpux9*)
13440 if test "$GCC" = yes; then
13441 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'
13442 else
13443 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'
13444 fi
13445 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13446 hardcode_libdir_separator_D=:
13447 hardcode_direct_D=yes
13448
13449 # hardcode_minus_L: Not really in the search PATH,
13450 # but as the default location of the library.
13451 hardcode_minus_L_D=yes
13452 export_dynamic_flag_spec_D='${wl}-E'
13453 ;;
13454
13455 hpux10*)
13456 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13457 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13458 else
13459 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13460 fi
13461 if test "$with_gnu_ld" = no; then
13462 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13463 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13464 hardcode_libdir_separator_D=:
13465 hardcode_direct_D=yes
13466 hardcode_direct_absolute_D=yes
13467 export_dynamic_flag_spec_D='${wl}-E'
13468 # hardcode_minus_L: Not really in the search PATH,
13469 # but as the default location of the library.
13470 hardcode_minus_L_D=yes
13471 fi
13472 ;;
13473
13474 hpux11*)
13475 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13476 case $host_cpu in
13477 hppa*64*)
13478 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13479 ;;
13480 ia64*)
13481 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13482 ;;
13483 *)
13484 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13485 ;;
13486 esac
13487 else
13488 case $host_cpu in
13489 hppa*64*)
13490 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 ;;
13492 ia64*)
13493 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13494 ;;
13495 *)
13496 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13497 ;;
13498 esac
13499 fi
13500 if test "$with_gnu_ld" = no; then
13501 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13502 hardcode_libdir_separator_D=:
13503
13504 case $host_cpu in
13505 hppa*64*|ia64*)
13506 hardcode_direct_D=no
13507 hardcode_shlibpath_var_D=no
13508 ;;
13509 *)
13510 hardcode_direct_D=yes
13511 hardcode_direct_absolute_D=yes
13512 export_dynamic_flag_spec_D='${wl}-E'
13513
13514 # hardcode_minus_L: Not really in the search PATH,
13515 # but as the default location of the library.
13516 hardcode_minus_L_D=yes
13517 ;;
13518 esac
13519 fi
13520 ;;
13521
13522 irix5* | irix6* | nonstopux*)
13523 if test "$GCC" = yes; then
13524 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'
13525 # Try to use the -exported_symbol ld option, if it does not
13526 # work, assume that -exports_file does not work either and
13527 # implicitly export all symbols.
13528 save_LDFLAGS="$LDFLAGS"
13529 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531/* end confdefs.h. */
13532int foo(void) {}
13533_ACEOF
13534if ac_fn_c_try_link "$LINENO"; then :
13535 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'
13536
13537fi
13538rm -f core conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13540 LDFLAGS="$save_LDFLAGS"
13541 else
13542 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'
13543 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'
13544 fi
13545 archive_cmds_need_lc_D='no'
13546 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13547 hardcode_libdir_separator_D=:
13548 inherit_rpath_D=yes
13549 link_all_deplibs_D=yes
13550 ;;
13551
13552 netbsd*)
13553 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13554 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13555 else
13556 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13557 fi
13558 hardcode_libdir_flag_spec_D='-R$libdir'
13559 hardcode_direct_D=yes
13560 hardcode_shlibpath_var_D=no
13561 ;;
13562
13563 newsos6)
13564 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13565 hardcode_direct_D=yes
13566 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13567 hardcode_libdir_separator_D=:
13568 hardcode_shlibpath_var_D=no
13569 ;;
13570
13571 *nto* | *qnx*)
13572 ;;
13573
13574 openbsd*)
13575 if test -f /usr/libexec/ld.so; then
13576 hardcode_direct_D=yes
13577 hardcode_shlibpath_var_D=no
13578 hardcode_direct_absolute_D=yes
13579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13580 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13581 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13582 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13583 export_dynamic_flag_spec_D='${wl}-E'
13584 else
13585 case $host_os in
13586 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13587 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13588 hardcode_libdir_flag_spec_D='-R$libdir'
13589 ;;
13590 *)
13591 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13592 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13593 ;;
13594 esac
13595 fi
13596 else
13597 ld_shlibs_D=no
13598 fi
13599 ;;
13600
13601 os2*)
13602 hardcode_libdir_flag_spec_D='-L$libdir'
13603 hardcode_minus_L_D=yes
13604 allow_undefined_flag_D=unsupported
13605 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'
13606 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13607 ;;
13608
13609 osf3*)
13610 if test "$GCC" = yes; then
13611 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13612 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'
13613 else
13614 allow_undefined_flag_D=' -expect_unresolved \*'
13615 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'
13616 fi
13617 archive_cmds_need_lc_D='no'
13618 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13619 hardcode_libdir_separator_D=:
13620 ;;
13621
13622 osf4* | osf5*) # as osf3* with the addition of -msym flag
13623 if test "$GCC" = yes; then
13624 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13625 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'
13626 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13627 else
13628 allow_undefined_flag_D=' -expect_unresolved \*'
13629 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'
13630 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~
13631 $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'
13632
13633 # Both c and cxx compiler support -rpath directly
13634 hardcode_libdir_flag_spec_D='-rpath $libdir'
13635 fi
13636 archive_cmds_need_lc_D='no'
13637 hardcode_libdir_separator_D=:
13638 ;;
13639
13640 solaris*)
13641 no_undefined_flag_D=' -z defs'
13642 if test "$GCC" = yes; then
13643 wlarc='${wl}'
13644 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13645 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13646 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13647 else
13648 case `$CC -V 2>&1` in
13649 *"Compilers 5.0"*)
13650 wlarc=''
13651 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13652 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13653 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13654 ;;
13655 *)
13656 wlarc='${wl}'
13657 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13658 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13659 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13660 ;;
13661 esac
13662 fi
13663 hardcode_libdir_flag_spec_D='-R$libdir'
13664 hardcode_shlibpath_var_D=no
13665 case $host_os in
13666 solaris2.[0-5] | solaris2.[0-5].*) ;;
13667 *)
13668 # The compiler driver will combine and reorder linker options,
13669 # but understands `-z linker_flag'. GCC discards it without `$wl',
13670 # but is careful enough not to reorder.
13671 # Supported since Solaris 2.6 (maybe 2.5.1?)
13672 if test "$GCC" = yes; then
13673 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13674 else
13675 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13676 fi
13677 ;;
13678 esac
13679 link_all_deplibs_D=yes
13680 ;;
13681
13682 sunos4*)
13683 if test "x$host_vendor" = xsequent; then
13684 # Use $CC to link under sequent, because it throws in some extra .o
13685 # files that make .init and .fini sections work.
13686 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13687 else
13688 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13689 fi
13690 hardcode_libdir_flag_spec_D='-L$libdir'
13691 hardcode_direct_D=yes
13692 hardcode_minus_L_D=yes
13693 hardcode_shlibpath_var_D=no
13694 ;;
13695
13696 sysv4)
13697 case $host_vendor in
13698 sni)
13699 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13700 hardcode_direct_D=yes # is this really true???
13701 ;;
13702 siemens)
13703 ## LD is ld it makes a PLAMLIB
13704 ## CC just makes a GrossModule.
13705 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13706 reload_cmds_D='$CC -r -o $output$reload_objs'
13707 hardcode_direct_D=no
13708 ;;
13709 motorola)
13710 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13711 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13712 ;;
13713 esac
13714 runpath_var='LD_RUN_PATH'
13715 hardcode_shlibpath_var_D=no
13716 ;;
13717
13718 sysv4.3*)
13719 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13720 hardcode_shlibpath_var_D=no
13721 export_dynamic_flag_spec_D='-Bexport'
13722 ;;
13723
13724 sysv4*MP*)
13725 if test -d /usr/nec; then
13726 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13727 hardcode_shlibpath_var_D=no
13728 runpath_var=LD_RUN_PATH
13729 hardcode_runpath_var=yes
13730 ld_shlibs_D=yes
13731 fi
13732 ;;
13733
13734 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13735 no_undefined_flag_D='${wl}-z,text'
13736 archive_cmds_need_lc_D=no
13737 hardcode_shlibpath_var_D=no
13738 runpath_var='LD_RUN_PATH'
13739
13740 if test "$GCC" = yes; then
13741 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13742 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13743 else
13744 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13745 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13746 fi
13747 ;;
13748
13749 sysv5* | sco3.2v5* | sco5v6*)
13750 # Note: We can NOT use -z defs as we might desire, because we do not
13751 # link with -lc, and that would cause any symbols used from libc to
13752 # always be unresolved, which means just about no library would
13753 # ever link correctly. If we're not using GNU ld we use -z text
13754 # though, which does catch some bad symbols but isn't as heavy-handed
13755 # as -z defs.
13756 no_undefined_flag_D='${wl}-z,text'
13757 allow_undefined_flag_D='${wl}-z,nodefs'
13758 archive_cmds_need_lc_D=no
13759 hardcode_shlibpath_var_D=no
13760 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13761 hardcode_libdir_separator_D=':'
13762 link_all_deplibs_D=yes
13763 export_dynamic_flag_spec_D='${wl}-Bexport'
13764 runpath_var='LD_RUN_PATH'
13765
13766 if test "$GCC" = yes; then
13767 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13768 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769 else
13770 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13771 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13772 fi
13773 ;;
13774
13775 uts4*)
13776 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13777 hardcode_libdir_flag_spec_D='-L$libdir'
13778 hardcode_shlibpath_var_D=no
13779 ;;
13780
13781 *)
13782 ld_shlibs_D=no
13783 ;;
13784 esac
13785
13786 if test x$host_vendor = xsni; then
13787 case $host in
13788 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13789 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13790 ;;
13791 esac
13792 fi
13793 fi
13794
13795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13796$as_echo "$ld_shlibs_D" >&6; }
13797test "$ld_shlibs_D" = no && can_build_shared=no
13798
13799with_gnu_ld_D=$with_gnu_ld
13800
13801
13802
13803
13804
13805
13806#
13807# Do we need to explicitly link libc?
13808#
13809case "x$archive_cmds_need_lc_D" in
13810x|xyes)
13811 # Assume -lc should be added
13812 archive_cmds_need_lc_D=yes
13813
13814 if test "$enable_shared" = yes && test "$GCC" = yes; then
13815 case $archive_cmds_D in
13816 *'~'*)
13817 # FIXME: we may have to deal with multi-command sequences.
13818 ;;
13819 '$CC '*)
13820 # Test whether the compiler implicitly links with -lc since on some
13821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13822 # to ld, don't add -lc before -lgcc.
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13824$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000013825if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000013826 $as_echo_n "(cached) " >&6
13827else
13828 $RM conftest*
13829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13830
13831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13832 (eval $ac_compile) 2>&5
13833 ac_status=$?
13834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13835 test $ac_status = 0; } 2>conftest.err; then
13836 soname=conftest
13837 lib=conftest
13838 libobjs=conftest.$ac_objext
13839 deplibs=
13840 wl=$lt_prog_compiler_wl_D
13841 pic_flag=$lt_prog_compiler_pic_D
13842 compiler_flags=-v
13843 linker_flags=-v
13844 verstring=
13845 output_objdir=.
13846 libname=conftest
13847 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13848 allow_undefined_flag_D=
13849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13850 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13851 ac_status=$?
13852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13853 test $ac_status = 0; }
13854 then
13855 lt_cv_archive_cmds_need_lc_D=no
13856 else
13857 lt_cv_archive_cmds_need_lc_D=yes
13858 fi
13859 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13860 else
13861 cat conftest.err 1>&5
13862 fi
13863 $RM conftest*
13864
13865fi
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13867$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13868 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13869 ;;
13870 esac
13871 fi
13872 ;;
13873esac
13874
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13939$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13940hardcode_action_D=
13941if test -n "$hardcode_libdir_flag_spec_D" ||
13942 test -n "$runpath_var_D" ||
13943 test "X$hardcode_automatic_D" = "Xyes" ; then
13944
13945 # We can hardcode non-existent directories.
13946 if test "$hardcode_direct_D" != no &&
13947 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13948 # have to relink, otherwise we might link with an installed library
13949 # when we should be linking with a yet-to-be-installed one
13950 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13951 test "$hardcode_minus_L_D" != no; then
13952 # Linking always hardcodes the temporary library directory.
13953 hardcode_action_D=relink
13954 else
13955 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13956 hardcode_action_D=immediate
13957 fi
13958else
13959 # We cannot hardcode anything, or else we can only hardcode existing
13960 # directories.
13961 hardcode_action_D=unsupported
13962fi
13963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13964$as_echo "$hardcode_action_D" >&6; }
13965
13966if test "$hardcode_action_D" = relink ||
13967 test "$inherit_rpath_D" = yes; then
13968 # Fast installation is not supported
13969 enable_fast_install=no
13970elif test "$shlibpath_overrides_runpath" = yes ||
13971 test "$enable_shared" = no; then
13972 # Fast installation is not necessary
13973 enable_fast_install=needless
13974fi
13975
13976
13977
13978
13979
13980
13981
13982fi
13983
13984ac_ext=c
13985ac_cpp='$CPP $CPPFLAGS'
13986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988ac_compiler_gnu=$ac_cv_c_compiler_gnu
13989
13990
13991GCC=$lt_save_GCC
13992CC=$lt_save_CC
13993CFLAGS=$lt_save_CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000013994
13995 GDCFLAGS=$gdc_save_DFLAGS
13996
Iain Buclawb4c522f2018-10-28 19:51:47 +000013997
13998# libtool variables for Phobos shared and position-independent compiles.
13999#
14000# Use phobos_compiler_shared_flag to designate the compile-time flags for
14001# creating shared objects. Default: -fversion=Shared.
14002#
14003# Use phobos_compiler_pic_flag to designate the compile-time flags for
14004# creating position-independent objects. This varies with the target
14005# hardware and operating system, but is often: -fPIC.
14006#
14007# The distinction between pic and shared compilation flags is not present in
14008# libtool, and so we make it here. How it is handled is that in shared
14009# compilations the `lt_prog_compiler_pic_D' variable is used to instead
14010# ensure that conditional compilation of shared runtime code is compiled in.
14011# The original PIC flags are then used in the compilation of every object.
14012#
14013# Why are objects destined for libgphobos.a compiled with -fPIC?
14014# Because -fPIC is not harmful to use for objects destined for static
14015# libraries. In addition, using -fPIC will allow the use of static
14016# libgphobos.a in the creation of other D shared libraries.
14017if test "$enable_shared" = yes; then
14018 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
14019 phobos_compiler_shared_flag="-fversion=Shared"
14020else
14021 phobos_compiler_pic_flag=
14022 phobos_compiler_shared_flag=
14023fi
14024
14025
14026
14027# Override the libtool's pic_flag and pic_mode.
14028# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14029# NB: this impacts --with-pic and --without-pic.
14030lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
14031pic_mode='default'
14032
14033# Determine what GCC version number to use in filesystem paths.
14034
14035 get_gcc_base_ver="cat"
14036
14037# Check whether --with-gcc-major-version-only was given.
14038if test "${with_gcc_major_version_only+set}" = set; then :
14039 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14040 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14041 fi
14042
14043fi
14044
14045
14046
14047
14048# libphobos/libdruntime specific options and feature detection
14049
14050 # These need to be absolute paths, yet at the same time need to
14051 # canonicalize only relative paths, because then amd will not unmount
14052 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14053 libphobos_builddir=`${PWDCMD-pwd}`
14054 case $srcdir in
14055 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
14056 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14057 esac
14058
14059
14060
14061
14062 if test ${multilib} = yes; then
14063 multilib_arg="--enable-multilib"
14064 else
14065 multilib_arg=
14066 fi
14067
14068
14069 # Check whether --enable-werror was given.
14070if test "${enable_werror+set}" = set; then :
14071 enableval=$enable_werror;
14072fi
14073
14074 WERROR_FLAG=""
14075 if test "x$enable_werror" = "xyes"; then
14076 WERROR_FLAG="-Werror"
14077 fi
14078
Iain Buclawb4c522f2018-10-28 19:51:47 +000014079
Iain Buclaw2493e712019-04-24 22:46:59 +000014080 druntime_target_cpu_parsed=""
14081 case "$target_cpu" in
14082 aarch64*)
14083 druntime_target_cpu_parsed="aarch64"
14084 ;;
14085 arm*) druntime_target_cpu_parsed="arm"
14086 ;;
14087 mips*) druntime_target_cpu_parsed="mips"
14088 ;;
Iain Buclaw8b530862020-04-28 21:42:41 +020014089 powerpc*)
Iain Buclaw1b0cbe02020-04-26 11:32:57 +020014090 druntime_target_cpu_parsed="powerpc"
Iain Buclaw2493e712019-04-24 22:46:59 +000014091 ;;
Rainer Orthb16f2142019-04-25 12:39:33 +000014092 i[34567]86|x86_64)
Iain Buclaw2493e712019-04-24 22:46:59 +000014093 druntime_target_cpu_parsed="x86"
14094 ;;
Robin Dapp88e508f2020-04-07 21:05:38 +020014095 s390x)
14096 druntime_target_cpu_parsed="s390x"
14097 ;;
14098 s390)
14099 druntime_target_cpu_parsed="s390"
14100 ;;
Iain Buclaw2493e712019-04-24 22:46:59 +000014101 esac
14102 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14103 DRUNTIME_CPU_AARCH64_TRUE=
14104 DRUNTIME_CPU_AARCH64_FALSE='#'
14105else
14106 DRUNTIME_CPU_AARCH64_TRUE='#'
14107 DRUNTIME_CPU_AARCH64_FALSE=
14108fi
14109
14110 if test "$druntime_target_cpu_parsed" = "arm"; then
14111 DRUNTIME_CPU_ARM_TRUE=
14112 DRUNTIME_CPU_ARM_FALSE='#'
14113else
14114 DRUNTIME_CPU_ARM_TRUE='#'
14115 DRUNTIME_CPU_ARM_FALSE=
14116fi
14117
14118 if test "$druntime_target_cpu_parsed" = "mips"; then
14119 DRUNTIME_CPU_MIPS_TRUE=
14120 DRUNTIME_CPU_MIPS_FALSE='#'
14121else
14122 DRUNTIME_CPU_MIPS_TRUE='#'
14123 DRUNTIME_CPU_MIPS_FALSE=
14124fi
14125
14126 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14127 DRUNTIME_CPU_POWERPC_TRUE=
14128 DRUNTIME_CPU_POWERPC_FALSE='#'
14129else
14130 DRUNTIME_CPU_POWERPC_TRUE='#'
14131 DRUNTIME_CPU_POWERPC_FALSE=
14132fi
14133
Iain Buclaw2493e712019-04-24 22:46:59 +000014134 if test "$druntime_target_cpu_parsed" = "x86"; then
14135 DRUNTIME_CPU_X86_TRUE=
14136 DRUNTIME_CPU_X86_FALSE='#'
14137else
14138 DRUNTIME_CPU_X86_TRUE='#'
14139 DRUNTIME_CPU_X86_FALSE=
14140fi
14141
Robin Dapp88e508f2020-04-07 21:05:38 +020014142 if test "$druntime_target_cpu_parsed" = "s390x"; then
14143 DRUNTIME_CPU_SYSTEMZ_TRUE=
14144 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14145else
14146 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14147 DRUNTIME_CPU_SYSTEMZ_FALSE=
14148fi
14149
14150 if test "$druntime_target_cpu_parsed" = "s390"; then
14151 DRUNTIME_CPU_S390_TRUE=
14152 DRUNTIME_CPU_S390_FALSE='#'
14153else
14154 DRUNTIME_CPU_S390_TRUE='#'
14155 DRUNTIME_CPU_S390_FALSE=
14156fi
14157
Iain Buclaw2493e712019-04-24 22:46:59 +000014158
14159
Iain Buclawb4c522f2018-10-28 19:51:47 +000014160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14161$as_echo_n "checking for target OS... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014162if ${druntime_cv_target_os+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014163 $as_echo_n "(cached) " >&6
14164else
14165 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14166fi
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14168$as_echo "$druntime_cv_target_os" >&6; }
14169 if test -z "$druntime_cv_target_os"; then :
Joseph Myers22e05272018-10-31 17:03:16 +000014170 as_fn_error $? "can't detect target OS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014171fi
14172
14173
14174
Iain Buclawb4c522f2018-10-28 19:51:47 +000014175
14176 druntime_target_os_parsed=""
14177 case "$druntime_cv_target_os" in
14178 aix*) druntime_target_os_parsed="aix"
14179 ;;
14180 *android*)
14181 druntime_target_os_parsed="android"
14182 ;;
14183 darwin*) druntime_target_os_parsed="darwin"
14184 ;;
14185 dragonfly*)
14186 druntime_target_os_parsed="dragonflybsd"
14187 ;;
14188 freebsd*|k*bsd*-gnu)
14189 druntime_target_os_parsed="freebsd"
14190 ;;
14191 openbsd*)
14192 druntime_target_os_parsed="openbsd"
14193 ;;
14194 netbsd*)
14195 druntime_target_os_parsed="netbsd"
14196 ;;
14197 linux*) druntime_target_os_parsed="linux"
14198 ;;
14199 mingw*) druntime_target_os_parsed="mingw"
14200 ;;
14201 *solaris*) druntime_target_os_parsed="solaris"
14202 esac
14203 if test "$druntime_target_os_parsed" = "aix"; then
14204 DRUNTIME_OS_AIX_TRUE=
14205 DRUNTIME_OS_AIX_FALSE='#'
14206else
14207 DRUNTIME_OS_AIX_TRUE='#'
14208 DRUNTIME_OS_AIX_FALSE=
14209fi
14210
14211 if test "$druntime_target_os_parsed" = "android"; then
14212 DRUNTIME_OS_ANDROID_TRUE=
14213 DRUNTIME_OS_ANDROID_FALSE='#'
14214else
14215 DRUNTIME_OS_ANDROID_TRUE='#'
14216 DRUNTIME_OS_ANDROID_FALSE=
14217fi
14218
14219 if test "$druntime_target_os_parsed" = "darwin"; then
14220 DRUNTIME_OS_DARWIN_TRUE=
14221 DRUNTIME_OS_DARWIN_FALSE='#'
14222else
14223 DRUNTIME_OS_DARWIN_TRUE='#'
14224 DRUNTIME_OS_DARWIN_FALSE=
14225fi
14226
14227 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14228 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14229 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14230else
14231 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14232 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14233fi
14234
14235 if test "$druntime_target_os_parsed" = "freebsd"; then
14236 DRUNTIME_OS_FREEBSD_TRUE=
14237 DRUNTIME_OS_FREEBSD_FALSE='#'
14238else
14239 DRUNTIME_OS_FREEBSD_TRUE='#'
14240 DRUNTIME_OS_FREEBSD_FALSE=
14241fi
14242
14243 if test "$druntime_target_os_parsed" = "netbsd"; then
14244 DRUNTIME_OS_NETBSD_TRUE=
14245 DRUNTIME_OS_NETBSD_FALSE='#'
14246else
14247 DRUNTIME_OS_NETBSD_TRUE='#'
14248 DRUNTIME_OS_NETBSD_FALSE=
14249fi
14250
14251 if test "$druntime_target_os_parsed" = "openbsd"; then
14252 DRUNTIME_OS_OPENBSD_TRUE=
14253 DRUNTIME_OS_OPENBSD_FALSE='#'
14254else
14255 DRUNTIME_OS_OPENBSD_TRUE='#'
14256 DRUNTIME_OS_OPENBSD_FALSE=
14257fi
14258
14259 if test "$druntime_target_os_parsed" = "linux"; then
14260 DRUNTIME_OS_LINUX_TRUE=
14261 DRUNTIME_OS_LINUX_FALSE='#'
14262else
14263 DRUNTIME_OS_LINUX_TRUE='#'
14264 DRUNTIME_OS_LINUX_FALSE=
14265fi
14266
14267 if test "$druntime_target_os_parsed" = "mingw"; then
14268 DRUNTIME_OS_MINGW_TRUE=
14269 DRUNTIME_OS_MINGW_FALSE='#'
14270else
14271 DRUNTIME_OS_MINGW_TRUE='#'
14272 DRUNTIME_OS_MINGW_FALSE=
14273fi
14274
14275 if test "$druntime_target_os_parsed" = "solaris"; then
14276 DRUNTIME_OS_SOLARIS_TRUE=
14277 DRUNTIME_OS_SOLARIS_FALSE='#'
14278else
14279 DRUNTIME_OS_SOLARIS_TRUE='#'
14280 DRUNTIME_OS_SOLARIS_FALSE=
14281fi
14282
14283
Iain Buclaw72c136c2020-04-08 22:52:05 +020014284 druntime_target_posix="no"
14285 case "$druntime_cv_target_os" in
14286 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14287 druntime_target_posix="yes"
14288 ;;
14289 esac
14290 if test "$druntime_target_posix" = "yes"; then
14291 DRUNTIME_OS_POSIX_TRUE=
14292 DRUNTIME_OS_POSIX_FALSE='#'
14293else
14294 DRUNTIME_OS_POSIX_TRUE='#'
14295 DRUNTIME_OS_POSIX_FALSE=
14296fi
14297
14298
Iain Buclawb4c522f2018-10-28 19:51:47 +000014299
14300
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14302$as_echo_n "checking for thread model used by GDC... " >&6; }
14303 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14305$as_echo "$d_thread_model" >&6; }
14306
14307 # Map from thread model to thread interface.
14308
14309case $d_thread_model in
14310 aix) DCFG_THREAD_MODEL="Posix" ;;
14311 lynx) DCFG_THREAD_MODEL="Posix" ;;
14312 posix) DCFG_THREAD_MODEL="Posix" ;;
14313 single) DCFG_THREAD_MODEL="Single" ;;
14314 win32) DCFG_THREAD_MODEL="Win32" ;;
14315 # TODO: These targets need porting.
14316 dce|mipssde|rtems|tpf|vxworks)
14317 DCFG_THREAD_MODEL="Single" ;;
14318 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14319esac
14320
14321
14322
14323
14324 ac_ext=c
14325ac_cpp='$CPP $CPPFLAGS'
14326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14328ac_compiler_gnu=$ac_cv_c_compiler_gnu
14329
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14331$as_echo_n "checking for ARM unwinder... " >&6; }
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333/* end confdefs.h. */
14334#include <unwind.h>
14335int
14336main ()
14337{
14338
14339 #if __ARM_EABI_UNWINDER__
14340 #error Yes, it is.
14341 #endif
14342
14343 ;
14344 return 0;
14345}
14346_ACEOF
14347if ac_fn_c_try_compile "$LINENO"; then :
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349$as_echo "no" >&6; }
14350 DCFG_ARM_EABI_UNWINDER=false
14351else
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14353$as_echo "yes" >&6; }
14354 DCFG_ARM_EABI_UNWINDER=true
14355fi
14356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14357
14358 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14359 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14360 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14361else
14362 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14363 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14364fi
14365
14366 ac_ext=c
14367ac_cpp='$CPP $CPPFLAGS'
14368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14370ac_compiler_gnu=$ac_cv_c_compiler_gnu
14371
14372
14373
14374 ac_ext=c
14375ac_cpp='$CPP $CPPFLAGS'
14376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14378ac_compiler_gnu=$ac_cv_c_compiler_gnu
14379
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14381$as_echo_n "checking for minfo section bracketing... " >&6; }
14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383/* end confdefs.h. */
14384
14385 void* module_info_ptr __attribute__((section ("minfo")));
14386 extern void* __start_minfo __attribute__((visibility ("hidden")));
14387 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14388
14389 int main()
14390 {
14391 // Never run, just to prevent compiler from optimizing access
14392 return &__start_minfo == &__stop_minfo;
14393 }
14394
14395_ACEOF
14396if ac_fn_c_try_link "$LINENO"; then :
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14398$as_echo "yes" >&6; }
14399 DCFG_MINFO_BRACKETING=true
14400else
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14402$as_echo "no" >&6; }
14403 DCFG_MINFO_BRACKETING=false
14404fi
14405rm -f core conftest.err conftest.$ac_objext \
14406 conftest$ac_exeext conftest.$ac_ext
14407
Rainer Orth0b6e3122019-02-14 17:47:49 +000014408 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14409 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14410 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14411else
14412 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14413 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14414fi
14415
Iain Buclawb4c522f2018-10-28 19:51:47 +000014416 ac_ext=c
14417ac_cpp='$CPP $CPPFLAGS'
14418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14420ac_compiler_gnu=$ac_cv_c_compiler_gnu
14421
14422
14423
Rainer Orth235d1c42019-04-14 09:30:42 +000014424 ac_ext=c
14425ac_cpp='$CPP $CPPFLAGS'
14426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14428ac_compiler_gnu=$ac_cv_c_compiler_gnu
14429
14430 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>
14431"
14432if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14433 DCFG_DLPI_TLS_MODID=true
14434else
14435 DCFG_DLPI_TLS_MODID=false
14436fi
14437
14438
14439 ac_ext=c
14440ac_cpp='$CPP $CPPFLAGS'
14441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14443ac_compiler_gnu=$ac_cv_c_compiler_gnu
14444
14445
14446
Rainer Orthba838aa2019-04-14 09:24:26 +000014447 case $target in
14448 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14449 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14450 # relocs. Work around by disabling TLS transitions. Not necessary
14451 # on 32-bit x86, but cannot be distinguished reliably in specs.
14452 druntime_ld_prog=`$CC -print-prog-name=ld`
Rainer Orthbca0a322019-05-07 10:38:45 +000014453 druntime_ld_gld=no
14454 druntime_ld_relax_transtls=no
Rainer Orthba838aa2019-04-14 09:24:26 +000014455 if test -n "$druntime_ld_prog" \
14456 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
Rainer Orthbca0a322019-05-07 10:38:45 +000014457 druntime_ld_gld=yes
Rainer Orthba838aa2019-04-14 09:24:26 +000014458 else
Rainer Orthbca0a322019-05-07 10:38:45 +000014459 echo 'int main (void) { return 0; }' > conftest.c
14460 save_LDFLAGS="$LDFLAGS"
14461 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14462 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14463 druntime_ld_relax_transtls=yes
14464 fi
14465 LDFLAGS="$save_LDFLAGS"
14466 rm -f conftest.c conftest
14467 fi
14468 if test "$druntime_ld_relax_transtls" = "yes"; then
Rainer Orthba838aa2019-04-14 09:24:26 +000014469 OS_LINK_SPEC='-z relax=transtls'
14470 fi
14471 ;;
14472 esac
14473
14474
14475
Johannes Pfau36d7f152019-02-18 23:29:39 +000014476 ac_ext=c
14477ac_cpp='$CPP $CPPFLAGS'
14478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14480ac_compiler_gnu=$ac_cv_c_compiler_gnu
14481
14482 DCFG_HAVE_QSORT_R=false
14483 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14484if test "x$ac_cv_func_qsort_r" = xyes; then :
14485 DCFG_HAVE_QSORT_R=true
14486fi
14487
14488
14489 ac_ext=c
14490ac_cpp='$CPP $CPPFLAGS'
14491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14493ac_compiler_gnu=$ac_cv_c_compiler_gnu
14494
14495
14496
Iain Buclawb4c522f2018-10-28 19:51:47 +000014497
14498
14499 gdc_save_DFLAGS=$GDCFLAGS
14500 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14501
14502 ac_ext=d
14503ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14504ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14505ac_compiler_gnu=yes
14506
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14508$as_echo_n "checking for library containing malloc... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014509if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014510 $as_echo_n "(cached) " >&6
14511else
14512 ac_func_search_save_LIBS=$LIBS
14513cat > conftest.$ac_ext <<_ACEOF
14514module mod;
14515 extern(C) int malloc();
14516
14517extern(C) int main() {
14518 malloc(); return 0;
14519}
14520_ACEOF
14521for ac_lib in '' c; do
14522 if test -z "$ac_lib"; then
14523 ac_res="none required"
14524 else
14525 ac_res=-l$ac_lib
14526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14527 fi
14528 if ac_fn_d_try_link "$LINENO"; then :
14529 ac_cv_search_malloc=$ac_res
14530fi
14531rm -f core conftest.err conftest.$ac_objext \
14532 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014533 if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014534 break
14535fi
14536done
Joseph Myers22e05272018-10-31 17:03:16 +000014537if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014538
14539else
14540 ac_cv_search_malloc=no
14541fi
14542rm conftest.$ac_ext
14543LIBS=$ac_func_search_save_LIBS
14544fi
14545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14546$as_echo "$ac_cv_search_malloc" >&6; }
14547ac_res=$ac_cv_search_malloc
14548if test "$ac_res" != no; then :
14549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14550
14551fi
14552
Iain Buclaw6e286c82020-04-09 00:16:57 +020014553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014554$as_echo_n "checking for library containing pthread_create... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014555if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014556 $as_echo_n "(cached) " >&6
14557else
14558 ac_func_search_save_LIBS=$LIBS
14559cat > conftest.$ac_ext <<_ACEOF
14560module mod;
14561 extern(C) int pthread_create();
14562
14563extern(C) int main() {
14564 pthread_create(); return 0;
14565}
14566_ACEOF
14567for ac_lib in '' pthread; do
14568 if test -z "$ac_lib"; then
14569 ac_res="none required"
14570 else
14571 ac_res=-l$ac_lib
14572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14573 fi
14574 if ac_fn_d_try_link "$LINENO"; then :
14575 ac_cv_search_pthread_create=$ac_res
14576fi
14577rm -f core conftest.err conftest.$ac_objext \
14578 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014579 if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014580 break
14581fi
14582done
Joseph Myers22e05272018-10-31 17:03:16 +000014583if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014584
14585else
14586 ac_cv_search_pthread_create=no
14587fi
14588rm conftest.$ac_ext
14589LIBS=$ac_func_search_save_LIBS
14590fi
14591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14592$as_echo "$ac_cv_search_pthread_create" >&6; }
14593ac_res=$ac_cv_search_pthread_create
14594if test "$ac_res" != no; then :
14595 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14596
14597fi
14598
Iain Buclawb4c522f2018-10-28 19:51:47 +000014599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14600$as_echo_n "checking for library containing cosf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014601if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014602 $as_echo_n "(cached) " >&6
14603else
14604 ac_func_search_save_LIBS=$LIBS
14605cat > conftest.$ac_ext <<_ACEOF
14606module mod;
14607 extern(C) int cosf();
14608
14609extern(C) int main() {
14610 cosf(); return 0;
14611}
14612_ACEOF
14613for ac_lib in '' m; do
14614 if test -z "$ac_lib"; then
14615 ac_res="none required"
14616 else
14617 ac_res=-l$ac_lib
14618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14619 fi
14620 if ac_fn_d_try_link "$LINENO"; then :
14621 ac_cv_search_cosf=$ac_res
14622fi
14623rm -f core conftest.err conftest.$ac_objext \
14624 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014625 if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014626 break
14627fi
14628done
Joseph Myers22e05272018-10-31 17:03:16 +000014629if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014630
14631else
14632 ac_cv_search_cosf=no
14633fi
14634rm conftest.$ac_ext
14635LIBS=$ac_func_search_save_LIBS
14636fi
14637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14638$as_echo "$ac_cv_search_cosf" >&6; }
14639ac_res=$ac_cv_search_cosf
14640if test "$ac_res" != no; then :
14641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14642
14643fi
14644
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14646$as_echo_n "checking for library containing clock_gettime... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014647if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014648 $as_echo_n "(cached) " >&6
14649else
14650 ac_func_search_save_LIBS=$LIBS
14651cat > conftest.$ac_ext <<_ACEOF
14652module mod;
14653 extern(C) int clock_gettime();
14654
14655extern(C) int main() {
14656 clock_gettime(); return 0;
14657}
14658_ACEOF
14659for ac_lib in '' rt; do
14660 if test -z "$ac_lib"; then
14661 ac_res="none required"
14662 else
14663 ac_res=-l$ac_lib
14664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14665 fi
14666 if ac_fn_d_try_link "$LINENO"; then :
14667 ac_cv_search_clock_gettime=$ac_res
14668fi
14669rm -f core conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014671 if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014672 break
14673fi
14674done
Joseph Myers22e05272018-10-31 17:03:16 +000014675if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014676
14677else
14678 ac_cv_search_clock_gettime=no
14679fi
14680rm conftest.$ac_ext
14681LIBS=$ac_func_search_save_LIBS
14682fi
14683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14684$as_echo "$ac_cv_search_clock_gettime" >&6; }
14685ac_res=$ac_cv_search_clock_gettime
14686if test "$ac_res" != no; then :
14687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14688
14689fi
14690
14691
14692 # This checks to see if the host supports the compiler-generated builtins
14693 # for atomic operations for various integral sizes. Note, this is intended
14694 # to be an all-or-nothing switch, so all the atomic operations that are
14695 # used should be checked.
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14697$as_echo_n "checking for atomic builtins for byte... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014698 if ${druntime_cv_atomic_byte+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014699 $as_echo_n "(cached) " >&6
14700else
14701
14702 cat > conftest.$ac_ext <<_ACEOF
14703module mod;
14704import gcc.builtins;
14705
14706extern(C) int main() {
14707
14708 shared(byte) c1;
14709 byte c2, c3;
14710 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14711 __atomic_load_1(&c1, 5);
14712 __atomic_store_1(&c1, c2, 5);
14713 return 0;
14714
14715}
14716_ACEOF
14717if ac_fn_d_try_link "$LINENO"; then :
14718 druntime_cv_atomic_byte=yes
14719else
14720 druntime_cv_atomic_byte=no
14721fi
14722rm -f core conftest.err conftest.$ac_objext \
14723 conftest$ac_exeext conftest.$ac_ext
14724
14725fi
14726
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14728$as_echo "$druntime_cv_atomic_byte" >&6; }
14729
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14731$as_echo_n "checking for atomic builtins for short... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014732 if ${druntime_cv_atomic_short+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014733 $as_echo_n "(cached) " >&6
14734else
14735
14736 cat > conftest.$ac_ext <<_ACEOF
14737module mod;
14738import gcc.builtins;
14739
14740extern(C) int main() {
14741
14742 shared(short) c1;
14743 short c2, c3;
14744 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14745 __atomic_load_2(&c1, 5);
14746 __atomic_store_2(&c1, c2, 5);
14747 return 0;
14748
14749}
14750_ACEOF
14751if ac_fn_d_try_link "$LINENO"; then :
14752 druntime_cv_atomic_short=yes
14753else
14754 druntime_cv_atomic_short=no
14755fi
14756rm -f core conftest.err conftest.$ac_objext \
14757 conftest$ac_exeext conftest.$ac_ext
14758
14759fi
14760
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14762$as_echo "$druntime_cv_atomic_short" >&6; }
14763
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14765$as_echo_n "checking for atomic builtins for int... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014766 if ${druntime_cv_atomic_int+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014767 $as_echo_n "(cached) " >&6
14768else
14769
14770 cat > conftest.$ac_ext <<_ACEOF
14771module mod;
14772import gcc.builtins;
14773
14774extern(C) int main() {
14775
14776 shared(int) c1;
14777 int c2, c3;
14778 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14779 __atomic_load_4(&c1, 5);
14780 __atomic_store_4(&c1, c2, 5);
14781 return 0;
14782
14783}
14784_ACEOF
14785if ac_fn_d_try_link "$LINENO"; then :
14786 druntime_cv_atomic_int=yes
14787else
14788 druntime_cv_atomic_int=no
14789fi
14790rm -f core conftest.err conftest.$ac_objext \
14791 conftest$ac_exeext conftest.$ac_ext
14792
14793fi
14794
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14796$as_echo "$druntime_cv_atomic_int" >&6; }
14797
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14799$as_echo_n "checking for atomic builtins for long... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014800 if ${druntime_cv_atomic_long+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014801 $as_echo_n "(cached) " >&6
14802else
14803
14804 cat > conftest.$ac_ext <<_ACEOF
14805module mod;
14806import gcc.builtins;
14807
14808extern(C) int main() {
14809
14810 shared(long) c1;
14811 long c2, c3;
14812 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14813 __atomic_load_8(&c1, 5);
14814 __atomic_store_8(&c1, c2, 5);
14815 return 0;
14816
14817}
14818_ACEOF
14819if ac_fn_d_try_link "$LINENO"; then :
14820 druntime_cv_atomic_long=yes
14821else
14822 druntime_cv_atomic_long=no
14823fi
14824rm -f core conftest.err conftest.$ac_objext \
14825 conftest$ac_exeext conftest.$ac_ext
14826
14827fi
14828
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14830$as_echo "$druntime_cv_atomic_long" >&6; }
14831
14832 # Have atomic builtin support if all but the long test above passes.
14833 DCFG_HAVE_ATOMIC_BUILTINS=false
14834 if test "$druntime_cv_atomic_byte" = yes \
14835 && test "$druntime_cv_atomic_short" = yes \
14836 && test "$druntime_cv_atomic_int" = yes; then \
14837 DCFG_HAVE_ATOMIC_BUILTINS=true
14838 fi
14839
14840 # Have 64-bit atomic support if the long test above passes.
14841 DCFG_HAVE_64BIT_ATOMICS=false
14842 if test "$druntime_cv_atomic_long" = yes; then
14843 DCFG_HAVE_64BIT_ATOMICS=true
14844 fi
14845
14846
14847
14848
14849 ac_ext=c
14850ac_cpp='$CPP $CPPFLAGS'
14851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14853ac_compiler_gnu=$ac_cv_c_compiler_gnu
14854
14855
14856 GDCFLAGS=$gdc_save_DFLAGS
14857
14858
14859
14860
14861# Check whether --with-libatomic was given.
14862if test "${with_libatomic+set}" = set; then :
14863 withval=$with_libatomic;
14864fi
14865
14866
14867 DCFG_HAVE_LIBATOMIC=false
14868 LIBATOMIC=
14869 if test "x$with_libatomic" != "xno"; then :
14870
14871 DCFG_HAVE_LIBATOMIC=true
14872 LIBATOMIC=../../libatomic/libatomic_convenience.la
14873
14874else
14875
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14877$as_echo_n "checking for libatomic... " >&6; }
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14879$as_echo "disabled" >&6; }
14880
14881fi
14882
14883
14884
14885
14886
14887 ac_ext=c
14888ac_cpp='$CPP $CPPFLAGS'
14889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14891ac_compiler_gnu=$ac_cv_c_compiler_gnu
14892
14893 BACKTRACE_SUPPORTED=false
14894 BACKTRACE_USES_MALLOC=false
14895 BACKTRACE_SUPPORTS_THREADS=false
14896 LIBBACKTRACE=""
14897
14898
14899# Check whether --with-libbacktrace was given.
14900if test "${with_libbacktrace+set}" = set; then :
14901 withval=$with_libbacktrace;
14902fi
14903
14904
14905 if test "x$with_libbacktrace" != "xno"; then :
14906
14907 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14908
14909 gdc_save_CPPFLAGS=$CPPFLAGS
Iain Buclaw5d71d6f2019-04-16 05:58:25 +000014910 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
Iain Buclawb4c522f2018-10-28 19:51:47 +000014911
14912 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 +000014913if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014914 have_libbacktrace_h=true
14915else
14916 have_libbacktrace_h=false
14917fi
14918
14919
14920
14921 if $have_libbacktrace_h; then
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14923$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925/* end confdefs.h. */
14926
14927 #include <backtrace-supported.h>
14928 #if BACKTRACE_SUPPORTED
14929 FOUND_LIBBACKTRACE_RESULT_GDC
14930 #endif
14931
14932_ACEOF
14933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14934 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14935 BACKTRACE_SUPPORTED=true
14936else
14937 BACKTRACE_SUPPORTED=false
14938fi
14939rm -f conftest*
14940
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14942$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14943
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14945$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947/* end confdefs.h. */
14948
14949 #include <backtrace-supported.h>
14950 #if BACKTRACE_USES_MALLOC
14951 FOUND_LIBBACKTRACE_RESULT_GDC
14952 #endif
14953
14954_ACEOF
14955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14956 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14957 BACKTRACE_USES_MALLOC=true
14958else
14959 BACKTRACE_USES_MALLOC=false
14960fi
14961rm -f conftest*
14962
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14964$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14965
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14967$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969/* end confdefs.h. */
14970
14971 #include <backtrace-supported.h>
14972 #if BACKTRACE_SUPPORTS_THREADS
14973 FOUND_LIBBACKTRACE_RESULT_GDC
14974 #endif
14975
14976_ACEOF
14977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14978 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14979 BACKTRACE_SUPPORTS_THREADS=true
14980else
14981 BACKTRACE_SUPPORTS_THREADS=false
14982fi
14983rm -f conftest*
14984
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14986$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14987 fi
14988 CPPFLAGS=$gdc_save_CPPFLAGS
14989
14990else
14991
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14993$as_echo_n "checking for libbacktrace... " >&6; }
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14995$as_echo "disabled" >&6; }
14996
14997fi
14998
14999
15000
15001
15002
15003 ac_ext=c
15004ac_cpp='$CPP $CPPFLAGS'
15005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15007ac_compiler_gnu=$ac_cv_c_compiler_gnu
15008
15009
15010
15011 # Libtool has already checked this, so re-use the inferred dlopen lib.
15012 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15013
15014 LIBS="$LIBS $lt_cv_dlopen_libs"
15015
15016fi
15017
15018
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015019 druntime_check_both=no
15020 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
Rainer Orth1d679132019-02-19 09:24:50 +000015021if test "x$ac_cv_func_connect" = xyes; then :
Rainer Orth1d679132019-02-19 09:24:50 +000015022
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015023else
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15025$as_echo_n "checking for connect in -lsocket... " >&6; }
15026if ${ac_cv_lib_socket_connect+:} false; then :
Rainer Orth1d679132019-02-19 09:24:50 +000015027 $as_echo_n "(cached) " >&6
15028else
15029 ac_check_lib_save_LIBS=$LIBS
15030LIBS="-lsocket $LIBS"
15031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032/* end confdefs.h. */
15033
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015034/* Override any GCC internal prototype to avoid an error.
15035 Use char because int might match the return type of a GCC
15036 builtin and then its argument prototype would still apply. */
15037#ifdef __cplusplus
15038extern "C"
15039#endif
15040char connect ();
Rainer Orth1d679132019-02-19 09:24:50 +000015041int
15042main ()
15043{
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015044return connect ();
Rainer Orth1d679132019-02-19 09:24:50 +000015045 ;
15046 return 0;
15047}
15048_ACEOF
15049if ac_fn_c_try_link "$LINENO"; then :
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015050 ac_cv_lib_socket_connect=yes
Rainer Orth1d679132019-02-19 09:24:50 +000015051else
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015052 ac_cv_lib_socket_connect=no
Rainer Orth1d679132019-02-19 09:24:50 +000015053fi
15054rm -f core conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
15056LIBS=$ac_check_lib_save_LIBS
15057fi
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15059$as_echo "$ac_cv_lib_socket_connect" >&6; }
15060if test "x$ac_cv_lib_socket_connect" = xyes; then :
15061 LIBS="$LIBS -lsocket"
Rainer Orth1d679132019-02-19 09:24:50 +000015062else
15063 druntime_check_both=yes
15064fi
15065
Rainer Orth1d679132019-02-19 09:24:50 +000015066fi
15067
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015068 if test "$druntime_check_both" = "yes"; then
15069 druntime_old_libs=$LIBS
15070 LIBS="$LIBS -lsocket -lnsl"
15071 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15072if test "x$ac_cv_func_accept" = xyes; then :
15073
15074else
15075 LIBS=$druntime_old_libs
15076fi
15077
15078 fi
15079 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
Rainer Orth1d679132019-02-19 09:24:50 +000015080if test "x$ac_cv_func_gethostbyname" = xyes; then :
15081
15082else
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15084$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15085if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
Rainer Orth1d679132019-02-19 09:24:50 +000015086 $as_echo_n "(cached) " >&6
15087else
15088 ac_check_lib_save_LIBS=$LIBS
15089LIBS="-lnsl $LIBS"
15090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091/* end confdefs.h. */
15092
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015093/* Override any GCC internal prototype to avoid an error.
15094 Use char because int might match the return type of a GCC
15095 builtin and then its argument prototype would still apply. */
15096#ifdef __cplusplus
15097extern "C"
15098#endif
15099char gethostbyname ();
Rainer Orth1d679132019-02-19 09:24:50 +000015100int
15101main ()
15102{
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015103return gethostbyname ();
Rainer Orth1d679132019-02-19 09:24:50 +000015104 ;
15105 return 0;
15106}
15107_ACEOF
15108if ac_fn_c_try_link "$LINENO"; then :
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015109 ac_cv_lib_nsl_gethostbyname=yes
Rainer Orth1d679132019-02-19 09:24:50 +000015110else
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015111 ac_cv_lib_nsl_gethostbyname=no
Rainer Orth1d679132019-02-19 09:24:50 +000015112fi
15113rm -f core conftest.err conftest.$ac_objext \
15114 conftest$ac_exeext conftest.$ac_ext
15115LIBS=$ac_check_lib_save_LIBS
15116fi
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15118$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15119if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15120 LIBS="$LIBS -lnsl"
Rainer Orth1d679132019-02-19 09:24:50 +000015121fi
15122
15123fi
15124
15125
Rainer Orth1d679132019-02-19 09:24:50 +000015126
Iain Buclawac1a0a32020-04-20 18:20:12 +020015127 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15128 # "yes" for targets that have 'version = AsmExternal'.
15129 druntime_fiber_asm_external=no
15130 case "$target_cpu" in
15131 aarch64* | \
15132 arm* | \
15133 i[34567]86|x86_64 | \
15134 powerpc)
15135 druntime_fiber_asm_external=yes
15136 ;;
15137 esac
15138 if test "$druntime_fiber_asm_external" = no; then
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15140$as_echo_n "checking for library containing swapcontext... " >&6; }
15141if ${ac_cv_search_swapcontext+:} false; then :
15142 $as_echo_n "(cached) " >&6
15143else
15144 ac_func_search_save_LIBS=$LIBS
15145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146/* end confdefs.h. */
15147
15148/* Override any GCC internal prototype to avoid an error.
15149 Use char because int might match the return type of a GCC
15150 builtin and then its argument prototype would still apply. */
15151#ifdef __cplusplus
15152extern "C"
15153#endif
15154char swapcontext ();
15155int
15156main ()
15157{
15158return swapcontext ();
15159 ;
15160 return 0;
15161}
15162_ACEOF
15163for ac_lib in '' c ucontext; do
15164 if test -z "$ac_lib"; then
15165 ac_res="none required"
15166 else
15167 ac_res=-l$ac_lib
15168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15169 fi
15170 if ac_fn_c_try_link "$LINENO"; then :
15171 ac_cv_search_swapcontext=$ac_res
15172fi
15173rm -f core conftest.err conftest.$ac_objext \
15174 conftest$ac_exeext
15175 if ${ac_cv_search_swapcontext+:} false; then :
15176 break
15177fi
15178done
15179if ${ac_cv_search_swapcontext+:} false; then :
15180
15181else
15182 ac_cv_search_swapcontext=no
15183fi
15184rm conftest.$ac_ext
15185LIBS=$ac_func_search_save_LIBS
15186fi
15187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15188$as_echo "$ac_cv_search_swapcontext" >&6; }
15189ac_res=$ac_cv_search_swapcontext
15190if test "$ac_res" != no; then :
15191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15192
15193else
15194 as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15195fi
15196
15197 fi
15198
15199
Iain Buclawbb503122019-04-12 20:13:34 +000015200 ac_ext=c
15201ac_cpp='$CPP $CPPFLAGS'
15202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15204ac_compiler_gnu=$ac_cv_c_compiler_gnu
15205
15206 LIBZ=""
15207
Iain Buclawb4c522f2018-10-28 19:51:47 +000015208
15209# Check whether --with-target-system-zlib was given.
15210if test "${with_target_system_zlib+set}" = set; then :
15211 withval=$with_target_system_zlib;
Iain Buclawbb503122019-04-12 20:13:34 +000015212else
15213 with_target_system_zlib=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015214fi
15215
15216
Iain Buclawbb503122019-04-12 20:13:34 +000015217 case "$with_target_system_zlib" in
15218 yes|no|auto) ;;
15219 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15220 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015221
Iain Buclawbb503122019-04-12 20:13:34 +000015222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15223$as_echo_n "checking for system zlib... " >&6; }
15224 save_LIBS=$LIBS
15225 LIBS="$LIBS -lz"
15226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +000015227/* end confdefs.h. */
Iain Buclawbb503122019-04-12 20:13:34 +000015228#include <zlib.h>
Iain Buclawb4c522f2018-10-28 19:51:47 +000015229int
15230main ()
15231{
Iain Buclawbb503122019-04-12 20:13:34 +000015232gzopen("none", "rb")
Iain Buclawb4c522f2018-10-28 19:51:47 +000015233 ;
15234 return 0;
15235}
15236_ACEOF
15237if ac_fn_c_try_link "$LINENO"; then :
Iain Buclawbb503122019-04-12 20:13:34 +000015238
15239 if test "$cross_compiling" = yes; then :
15240 system_zlib_found=no
15241
Iain Buclawb4c522f2018-10-28 19:51:47 +000015242else
Iain Buclawbb503122019-04-12 20:13:34 +000015243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244/* end confdefs.h. */
15245
15246 #include <zlib.h>
15247 int main() {
15248 gzFile file = gzopen("none", "rb");
15249 return 0;
15250 }
15251
15252_ACEOF
15253if ac_fn_c_try_run "$LINENO"; then :
15254 system_zlib_found=yes
15255else
15256 system_zlib_found=no
15257fi
15258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15259 conftest.$ac_objext conftest.beam conftest.$ac_ext
15260fi
15261
15262
15263else
15264 system_zlib_found=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015265fi
15266rm -f core conftest.err conftest.$ac_objext \
15267 conftest$ac_exeext conftest.$ac_ext
Iain Buclawbb503122019-04-12 20:13:34 +000015268 LIBS=$save_LIBS
Iain Buclawb4c522f2018-10-28 19:51:47 +000015269
Iain Buclawbb503122019-04-12 20:13:34 +000015270 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15272$as_echo "found" >&6; }
15273 LIBS="$LIBS -lz"
15274 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15275 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15276 else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15278$as_echo "just compiled" >&6; }
Iain Buclawbb503122019-04-12 20:13:34 +000015279 LIBZ=../../zlib/libz_convenience.la
15280 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015281
Iain Buclawb4c522f2018-10-28 19:51:47 +000015282
Iain Buclawbb503122019-04-12 20:13:34 +000015283 ac_ext=c
15284ac_cpp='$CPP $CPPFLAGS'
15285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15287ac_compiler_gnu=$ac_cv_c_compiler_gnu
Iain Buclawb4c522f2018-10-28 19:51:47 +000015288
15289
15290
15291
15292
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15294$as_echo_n "checking D GCC version... " >&6; }
15295 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15297$as_echo "$gcc_version" >&6; }
15298
15299
15300
15301# Check whether --with-cross-host was given.
15302if test "${with_cross_host+set}" = set; then :
15303 withval=$with_cross_host;
15304fi
15305
15306
Iain Buclawac677522018-11-02 08:29:50 +000015307 libphobos_toolexecdir=no
15308 libphobos_toolexeclibdir=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015309
Iain Buclawac677522018-11-02 08:29:50 +000015310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15311$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15312 # Check whether --enable-version-specific-runtime-libs was given.
15313if test "${enable_version_specific_runtime_libs+set}" = set; then :
15314 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15315 yes) version_specific_libs=yes ;;
15316 no) version_specific_libs=no ;;
15317 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15318 esac
15319else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015320 version_specific_libs=no
Iain Buclawac677522018-11-02 08:29:50 +000015321fi
15322
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15324$as_echo "$version_specific_libs" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015325
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +000015326
15327# Check whether --with-toolexeclibdir was given.
15328if test "${with_toolexeclibdir+set}" = set; then :
15329 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15330 /)
15331 ;;
15332 */)
15333 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15334 ;;
15335esac
15336else
15337 with_toolexeclibdir=no
15338fi
15339
15340
15341
Iain Buclawb4c522f2018-10-28 19:51:47 +000015342 # Version-specific runtime libs processing.
15343 if test $version_specific_libs = yes; then
Iain Buclawac677522018-11-02 08:29:50 +000015344 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15345 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015346 else
Iain Buclawac677522018-11-02 08:29:50 +000015347 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15348 # Install a library built with a cross compiler in tooldir, not libdir.
15349 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15350 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +000015351 case ${with_toolexeclibdir} in
15352 no)
15353 libphobos_toolexeclibdir='${toolexecdir}/lib'
15354 ;;
15355 *)
15356 libphobos_toolexeclibdir=${with_toolexeclibdir}
15357 ;;
15358 esac
Iain Buclawac677522018-11-02 08:29:50 +000015359 else
15360 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15361 libphobos_toolexeclibdir='${libdir}'
15362 fi
15363 multi_os_directory=`$GDC -print-multi-os-directory`
15364 case $multi_os_directory in
15365 .) ;; # Avoid trailing /.
15366 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15367 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015368 fi
15369
15370
15371
15372 # Default case for install directory for D sources files.
15373 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15374
15375
15376
Rainer Orthbca0a322019-05-07 10:38:45 +000015377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15378$as_echo_n "checking for --enable-libphobos... " >&6; }
15379# Check whether --enable-libphobos was given.
15380if test "${enable_libphobos+set}" = set; then :
15381 enableval=$enable_libphobos;
15382fi
15383
15384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15385$as_echo "$enable_libphobos" >&6; }
15386
Iain Buclaw261bd782020-03-25 09:38:58 +010015387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15388$as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15389
Iain Buclaw371d1012020-04-20 18:50:36 +020015390# Check whether --with-libphobos-druntime-only was given.
15391if test "${with_libphobos_druntime_only+set}" = set; then :
15392 withval=$with_libphobos_druntime_only;
Iain Buclaw261bd782020-03-25 09:38:58 +010015393else
Iain Buclaw371d1012020-04-20 18:50:36 +020015394 with_libphobos_druntime_only=auto
Iain Buclaw261bd782020-03-25 09:38:58 +010015395fi
15396
Iain Buclaw371d1012020-04-20 18:50:36 +020015397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15398$as_echo "$with_libphobos_druntime_only" >&6; }
Iain Buclaw261bd782020-03-25 09:38:58 +010015399
Iain Buclaw371d1012020-04-20 18:50:36 +020015400case "$with_libphobos_druntime_only" in
Iain Buclaw261bd782020-03-25 09:38:58 +010015401 yes|no|auto) ;;
15402 *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15403esac
15404
Rainer Orthbca0a322019-05-07 10:38:45 +000015405# See if supported.
15406unset LIBPHOBOS_SUPPORTED
Iain Buclaw261bd782020-03-25 09:38:58 +010015407unset LIBDRUNTIME_ONLY
Rainer Orthbca0a322019-05-07 10:38:45 +000015408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15409$as_echo_n "checking for host support for libphobos... " >&6; }
15410. ${srcdir}/configure.tgt
15411case ${host} in
15412 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15413 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15414 # relatively low linelength limit.
15415 as_prog=`$CC -print-prog-name=as`
15416 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15417 druntime_cv_use_gas=yes;
15418 else
15419 druntime_cv_use_gas=no;
15420 fi
15421 rm -f a.out
15422 if test x$druntime_cv_use_gas = xno; then
15423 LIBPHOBOS_SUPPORTED=no
15424 fi
15425 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15426 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15427 LIBPHOBOS_SUPPORTED=no
15428 fi
15429 ;;
15430esac
15431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15432$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15433
15434# Decide if it's usable.
15435case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15436*:no) use_libphobos=no ;;
15437*:yes) use_libphobos=yes ;;
15438yes:*) use_libphobos=yes ;;
15439*:*) use_libphobos=no ;;
15440esac
15441 if test x$use_libphobos = xyes; then
15442 ENABLE_LIBPHOBOS_TRUE=
15443 ENABLE_LIBPHOBOS_FALSE='#'
15444else
15445 ENABLE_LIBPHOBOS_TRUE='#'
15446 ENABLE_LIBPHOBOS_FALSE=
15447fi
15448
15449
Iain Buclaw261bd782020-03-25 09:38:58 +010015450# Decide if only libdruntime should be built.
Iain Buclaw371d1012020-04-20 18:50:36 +020015451case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
Iain Buclaw261bd782020-03-25 09:38:58 +010015452*:no) only_libdruntime=no ;;
15453*:yes) only_libdruntime=yes ;;
15454yes:*) only_libdruntime=yes ;;
15455*:*) only_libdruntime=no ;;
15456esac
15457 if test x$only_libdruntime = xyes; then
15458 ENABLE_LIBDRUNTIME_ONLY_TRUE=
15459 ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15460else
15461 ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15462 ENABLE_LIBDRUNTIME_ONLY_FALSE=
15463fi
15464
15465
Iain Buclawc0dbfbd2020-04-09 00:41:14 +020015466# Enable expensive internal checks
15467# Check whether --enable-libphobos-checking was given.
15468if test "${enable_libphobos_checking+set}" = set; then :
15469 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15470else
15471 ac_checking_flags=release
15472fi
15473
15474IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15475for check in release $ac_checking_flags
15476do
15477 case $check in
15478 # These set all the flags to specific states
15479 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15480 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15481 # These enable particular checks
15482 assert) ASSERT_FLAG="-fassert" ;;
15483 # Accept
15484 *) ;;
15485 esac
15486done
15487IFS="$ac_save_IFS"
15488CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15489
15490
Rainer Orth0b6e3122019-02-14 17:47:49 +000015491# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15492if test "$DCFG_MINFO_BRACKETING" = "false"; then
15493 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15494else
15495 DRTSTUFF_SPEC=/dev/null
15496fi
15497
15498
Iain Buclawb4c522f2018-10-28 19:51:47 +000015499# Add dependencies for libgphobos.spec file
15500SPEC_PHOBOS_DEPS="$LIBS"
15501
15502
15503# Libdruntime / phobos soname version
Iain Buclawbc093502020-03-16 17:00:07 +010015504libtool_VERSION=1:0:0
Iain Buclawb4c522f2018-10-28 19:51:47 +000015505
15506
15507# Set default flags (after DRUNTIME_WERROR!)
15508if test -z "$GDCFLAGS"; then
Iain Buclawc0dbfbd2020-04-09 00:41:14 +020015509 GDCFLAGS="-g -O2"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015510fi
15511
15512
Iain Buclaw38c30172020-03-29 23:54:01 +020015513WARN_DFLAGS="-Wall $WERROR_FLAG"
15514
15515
Iain Buclawb4c522f2018-10-28 19:51:47 +000015516# Sanity check for the cross-compilation case:
15517ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
Joseph Myers22e05272018-10-31 17:03:16 +000015518if test "x$ac_cv_header_stdio_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000015519 :
15520else
Joseph Myers22e05272018-10-31 17:03:16 +000015521 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000015522fi
15523
15524
15525
Iain Buclawac677522018-11-02 08:29:50 +000015526ac_config_files="$ac_config_files Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015527
15528
15529ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15530
15531ac_config_files="$ac_config_files src/libgphobos.spec"
15532
15533ac_config_files="$ac_config_files testsuite/testsuite_flags"
15534
15535
Iain Buclawac677522018-11-02 08:29:50 +000015536# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15537# that multilib installs will end up installed in the correct place.
15538# The testsuite needs it for multilib-aware ABI baseline files.
15539# To work around this not being passed down from config-ml.in ->
15540# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15541# append it here. Only modify Makefiles that have just been created.
15542#
15543# Also, get rid of this simulated-VPATH thing that automake does.
15544ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015545
15546
15547cat >confcache <<\_ACEOF
15548# This file is a shell script that caches the results of configure
15549# tests run on this system so they can be shared between configure
15550# scripts and configure runs, see configure's option --config-cache.
15551# It is not useful on other systems. If it contains results you don't
15552# want to keep, you may remove or edit it.
15553#
15554# config.status only pays attention to the cache file if you give it
15555# the --recheck option to rerun configure.
15556#
15557# `ac_cv_env_foo' variables (set or unset) will be overridden when
15558# loading this file, other *unset* `ac_cv_foo' will be assigned the
15559# following values.
15560
15561_ACEOF
15562
15563# The following way of writing the cache mishandles newlines in values,
15564# but we know of no workaround that is simple, portable, and efficient.
15565# So, we kill variables containing newlines.
15566# Ultrix sh set writes to stderr and can't be redirected directly,
15567# and sets the high bit in the cache file unless we assign to the vars.
15568(
15569 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15570 eval ac_val=\$$ac_var
15571 case $ac_val in #(
15572 *${as_nl}*)
15573 case $ac_var in #(
15574 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15575$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15576 esac
15577 case $ac_var in #(
15578 _ | IFS | as_nl) ;; #(
15579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15580 *) { eval $ac_var=; unset $ac_var;} ;;
15581 esac ;;
15582 esac
15583 done
15584
15585 (set) 2>&1 |
15586 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15587 *${as_nl}ac_space=\ *)
15588 # `set' does not quote correctly, so add quotes: double-quote
15589 # substitution turns \\\\ into \\, and sed turns \\ into \.
15590 sed -n \
15591 "s/'/'\\\\''/g;
15592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15593 ;; #(
15594 *)
15595 # `set' quotes correctly as required by POSIX, so do not add quotes.
15596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15597 ;;
15598 esac |
15599 sort
15600) |
15601 sed '
15602 /^ac_cv_env_/b end
15603 t clear
15604 :clear
15605 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15606 t end
15607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15608 :end' >>confcache
15609if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15610 if test -w "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015611 if test "x$cache_file" != "x/dev/null"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000015612 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15613$as_echo "$as_me: updating cache $cache_file" >&6;}
Joseph Myers22e05272018-10-31 17:03:16 +000015614 if test ! -f "$cache_file" || test -h "$cache_file"; then
15615 cat confcache >"$cache_file"
15616 else
15617 case $cache_file in #(
15618 */* | ?:*)
15619 mv -f confcache "$cache_file"$$ &&
15620 mv -f "$cache_file"$$ "$cache_file" ;; #(
15621 *)
15622 mv -f confcache "$cache_file" ;;
15623 esac
15624 fi
15625 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015626 else
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15628$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15629 fi
15630fi
15631rm -f confcache
15632
15633test "x$prefix" = xNONE && prefix=$ac_default_prefix
15634# Let make expand exec_prefix.
15635test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15636
15637DEFS=-DHAVE_CONFIG_H
15638
15639ac_libobjs=
15640ac_ltlibobjs=
Joseph Myers22e05272018-10-31 17:03:16 +000015641U=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015642for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15643 # 1. Remove the extension, and $U if already installed.
15644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15645 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15647 # will be set to the directory where LIBOBJS objects are built.
15648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15650done
15651LIBOBJS=$ac_libobjs
15652
15653LTLIBOBJS=$ac_ltlibobjs
15654
15655
Joseph Myers22e05272018-10-31 17:03:16 +000015656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15657$as_echo_n "checking that generated files are newer than configure... " >&6; }
15658 if test -n "$am_sleep_pid"; then
15659 # Hide warnings about reused PIDs.
15660 wait $am_sleep_pid 2>/dev/null
15661 fi
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15663$as_echo "done" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015664 if test -n "$EXEEXT"; then
15665 am__EXEEXT_TRUE=
15666 am__EXEEXT_FALSE='#'
15667else
15668 am__EXEEXT_TRUE='#'
15669 am__EXEEXT_FALSE=
15670fi
15671
15672if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015673 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015674Usually this means the macro was only invoked conditionally." "$LINENO" 5
15675fi
Iain Buclaw2493e712019-04-24 22:46:59 +000015676if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15677 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15678Usually this means the macro was only invoked conditionally." "$LINENO" 5
15679fi
15680if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15681 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15682Usually this means the macro was only invoked conditionally." "$LINENO" 5
15683fi
15684if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15685 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15686Usually this means the macro was only invoked conditionally." "$LINENO" 5
15687fi
15688if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15689 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15690Usually this means the macro was only invoked conditionally." "$LINENO" 5
15691fi
Iain Buclaw2493e712019-04-24 22:46:59 +000015692if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15693 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15694Usually this means the macro was only invoked conditionally." "$LINENO" 5
15695fi
Robin Dapp88e508f2020-04-07 21:05:38 +020015696if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15697 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15698Usually this means the macro was only invoked conditionally." "$LINENO" 5
15699fi
15700if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15701 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15702Usually this means the macro was only invoked conditionally." "$LINENO" 5
15703fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015704if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015705 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015706Usually this means the macro was only invoked conditionally." "$LINENO" 5
15707fi
15708if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015709 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015710Usually this means the macro was only invoked conditionally." "$LINENO" 5
15711fi
15712if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015713 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015714Usually this means the macro was only invoked conditionally." "$LINENO" 5
15715fi
15716if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015717 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015718Usually this means the macro was only invoked conditionally." "$LINENO" 5
15719fi
15720if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015721 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015722Usually this means the macro was only invoked conditionally." "$LINENO" 5
15723fi
15724if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015725 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015726Usually this means the macro was only invoked conditionally." "$LINENO" 5
15727fi
15728if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015729 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015730Usually this means the macro was only invoked conditionally." "$LINENO" 5
15731fi
15732if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015733 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015734Usually this means the macro was only invoked conditionally." "$LINENO" 5
15735fi
15736if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015737 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015738Usually this means the macro was only invoked conditionally." "$LINENO" 5
15739fi
15740if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015741 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015742Usually this means the macro was only invoked conditionally." "$LINENO" 5
15743fi
Iain Buclaw72c136c2020-04-08 22:52:05 +020015744if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15745 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15746Usually this means the macro was only invoked conditionally." "$LINENO" 5
15747fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015748if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015749 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015750Usually this means the macro was only invoked conditionally." "$LINENO" 5
15751fi
Rainer Orth0b6e3122019-02-14 17:47:49 +000015752if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15753 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15754Usually this means the macro was only invoked conditionally." "$LINENO" 5
15755fi
Rainer Orthbca0a322019-05-07 10:38:45 +000015756if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15757 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15758Usually this means the macro was only invoked conditionally." "$LINENO" 5
15759fi
Iain Buclaw261bd782020-03-25 09:38:58 +010015760if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15761 as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15762Usually this means the macro was only invoked conditionally." "$LINENO" 5
15763fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015764
Joseph Myers22e05272018-10-31 17:03:16 +000015765: "${CONFIG_STATUS=./config.status}"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015766ac_write_fail=0
15767ac_clean_files_save=$ac_clean_files
15768ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15769{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15770$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15771as_write_fail=0
15772cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15773#! $SHELL
15774# Generated by $as_me.
15775# Run this file to recreate the current configuration.
15776# Compiler output produced by configure, useful for debugging
15777# configure, is in config.log if it exists.
15778
15779debug=false
15780ac_cs_recheck=false
15781ac_cs_silent=false
15782
15783SHELL=\${CONFIG_SHELL-$SHELL}
15784export SHELL
15785_ASEOF
15786cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15787## -------------------- ##
15788## M4sh Initialization. ##
15789## -------------------- ##
15790
15791# Be more Bourne compatible
15792DUALCASE=1; export DUALCASE # for MKS sh
15793if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15794 emulate sh
15795 NULLCMD=:
15796 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15797 # is contrary to our usage. Disable this feature.
15798 alias -g '${1+"$@"}'='"$@"'
15799 setopt NO_GLOB_SUBST
15800else
15801 case `(set -o) 2>/dev/null` in #(
15802 *posix*) :
15803 set -o posix ;; #(
15804 *) :
15805 ;;
15806esac
15807fi
15808
15809
15810as_nl='
15811'
15812export as_nl
15813# Printing a long string crashes Solaris 7 /usr/bin/printf.
15814as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15815as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15816as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15817# Prefer a ksh shell builtin over an external printf program on Solaris,
15818# but without wasting forks for bash or zsh.
15819if test -z "$BASH_VERSION$ZSH_VERSION" \
15820 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15821 as_echo='print -r --'
15822 as_echo_n='print -rn --'
15823elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15824 as_echo='printf %s\n'
15825 as_echo_n='printf %s'
15826else
15827 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15828 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15829 as_echo_n='/usr/ucb/echo -n'
15830 else
15831 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15832 as_echo_n_body='eval
15833 arg=$1;
15834 case $arg in #(
15835 *"$as_nl"*)
15836 expr "X$arg" : "X\\(.*\\)$as_nl";
15837 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15838 esac;
15839 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15840 '
15841 export as_echo_n_body
15842 as_echo_n='sh -c $as_echo_n_body as_echo'
15843 fi
15844 export as_echo_body
15845 as_echo='sh -c $as_echo_body as_echo'
15846fi
15847
15848# The user is always right.
15849if test "${PATH_SEPARATOR+set}" != set; then
15850 PATH_SEPARATOR=:
15851 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15852 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15853 PATH_SEPARATOR=';'
15854 }
15855fi
15856
15857
15858# IFS
15859# We need space, tab and new line, in precisely that order. Quoting is
15860# there to prevent editors from complaining about space-tab.
15861# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15862# splitting by setting IFS to empty value.)
15863IFS=" "" $as_nl"
15864
15865# Find who we are. Look in the path if we contain no directory separator.
Joseph Myers22e05272018-10-31 17:03:16 +000015866as_myself=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015867case $0 in #((
15868 *[\\/]* ) as_myself=$0 ;;
15869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15870for as_dir in $PATH
15871do
15872 IFS=$as_save_IFS
15873 test -z "$as_dir" && as_dir=.
15874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15875 done
15876IFS=$as_save_IFS
15877
15878 ;;
15879esac
15880# We did not find ourselves, most probably we were run as `sh COMMAND'
15881# in which case we are not to be found in the path.
15882if test "x$as_myself" = x; then
15883 as_myself=$0
15884fi
15885if test ! -f "$as_myself"; then
15886 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15887 exit 1
15888fi
15889
15890# Unset variables that we do not need and which cause bugs (e.g. in
15891# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15892# suppresses any "Segmentation fault" message there. '((' could
15893# trigger a bug in pdksh 5.2.14.
15894for as_var in BASH_ENV ENV MAIL MAILPATH
15895do eval test x\${$as_var+set} = xset \
15896 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15897done
15898PS1='$ '
15899PS2='> '
15900PS4='+ '
15901
15902# NLS nuisances.
15903LC_ALL=C
15904export LC_ALL
15905LANGUAGE=C
15906export LANGUAGE
15907
15908# CDPATH.
15909(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15910
15911
Joseph Myers22e05272018-10-31 17:03:16 +000015912# as_fn_error STATUS ERROR [LINENO LOG_FD]
15913# ----------------------------------------
Iain Buclawb4c522f2018-10-28 19:51:47 +000015914# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15915# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Joseph Myers22e05272018-10-31 17:03:16 +000015916# script with STATUS, using 1 if that was 0.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015917as_fn_error ()
15918{
Joseph Myers22e05272018-10-31 17:03:16 +000015919 as_status=$1; test $as_status -eq 0 && as_status=1
15920 if test "$4"; then
15921 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15922 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Iain Buclawb4c522f2018-10-28 19:51:47 +000015923 fi
Joseph Myers22e05272018-10-31 17:03:16 +000015924 $as_echo "$as_me: error: $2" >&2
Iain Buclawb4c522f2018-10-28 19:51:47 +000015925 as_fn_exit $as_status
15926} # as_fn_error
15927
15928
15929# as_fn_set_status STATUS
15930# -----------------------
15931# Set $? to STATUS, without forking.
15932as_fn_set_status ()
15933{
15934 return $1
15935} # as_fn_set_status
15936
15937# as_fn_exit STATUS
15938# -----------------
15939# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15940as_fn_exit ()
15941{
15942 set +e
15943 as_fn_set_status $1
15944 exit $1
15945} # as_fn_exit
15946
15947# as_fn_unset VAR
15948# ---------------
15949# Portably unset VAR.
15950as_fn_unset ()
15951{
15952 { eval $1=; unset $1;}
15953}
15954as_unset=as_fn_unset
15955# as_fn_append VAR VALUE
15956# ----------------------
15957# Append the text in VALUE to the end of the definition contained in VAR. Take
15958# advantage of any shell optimizations that allow amortized linear growth over
15959# repeated appends, instead of the typical quadratic growth present in naive
15960# implementations.
15961if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15962 eval 'as_fn_append ()
15963 {
15964 eval $1+=\$2
15965 }'
15966else
15967 as_fn_append ()
15968 {
15969 eval $1=\$$1\$2
15970 }
15971fi # as_fn_append
15972
15973# as_fn_arith ARG...
15974# ------------------
15975# Perform arithmetic evaluation on the ARGs, and store the result in the
15976# global $as_val. Take advantage of shells that can avoid forks. The arguments
15977# must be portable across $(()) and expr.
15978if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15979 eval 'as_fn_arith ()
15980 {
15981 as_val=$(( $* ))
15982 }'
15983else
15984 as_fn_arith ()
15985 {
15986 as_val=`expr "$@" || test $? -eq 1`
15987 }
15988fi # as_fn_arith
15989
15990
15991if expr a : '\(a\)' >/dev/null 2>&1 &&
15992 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15993 as_expr=expr
15994else
15995 as_expr=false
15996fi
15997
15998if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15999 as_basename=basename
16000else
16001 as_basename=false
16002fi
16003
16004if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16005 as_dirname=dirname
16006else
16007 as_dirname=false
16008fi
16009
16010as_me=`$as_basename -- "$0" ||
16011$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16012 X"$0" : 'X\(//\)$' \| \
16013 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16014$as_echo X/"$0" |
16015 sed '/^.*\/\([^/][^/]*\)\/*$/{
16016 s//\1/
16017 q
16018 }
16019 /^X\/\(\/\/\)$/{
16020 s//\1/
16021 q
16022 }
16023 /^X\/\(\/\).*/{
16024 s//\1/
16025 q
16026 }
16027 s/.*/./; q'`
16028
16029# Avoid depending upon Character Ranges.
16030as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16031as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16032as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16033as_cr_digits='0123456789'
16034as_cr_alnum=$as_cr_Letters$as_cr_digits
16035
16036ECHO_C= ECHO_N= ECHO_T=
16037case `echo -n x` in #(((((
16038-n*)
16039 case `echo 'xy\c'` in
16040 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16041 xy) ECHO_C='\c';;
16042 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16043 ECHO_T=' ';;
16044 esac;;
16045*)
16046 ECHO_N='-n';;
16047esac
16048
16049rm -f conf$$ conf$$.exe conf$$.file
16050if test -d conf$$.dir; then
16051 rm -f conf$$.dir/conf$$.file
16052else
16053 rm -f conf$$.dir
16054 mkdir conf$$.dir 2>/dev/null
16055fi
16056if (echo >conf$$.file) 2>/dev/null; then
16057 if ln -s conf$$.file conf$$ 2>/dev/null; then
16058 as_ln_s='ln -s'
16059 # ... but there are two gotchas:
16060 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16061 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Joseph Myers22e05272018-10-31 17:03:16 +000016062 # In both cases, we have to default to `cp -pR'.
Iain Buclawb4c522f2018-10-28 19:51:47 +000016063 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Joseph Myers22e05272018-10-31 17:03:16 +000016064 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016065 elif ln conf$$.file conf$$ 2>/dev/null; then
16066 as_ln_s=ln
16067 else
Joseph Myers22e05272018-10-31 17:03:16 +000016068 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016069 fi
16070else
Joseph Myers22e05272018-10-31 17:03:16 +000016071 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016072fi
16073rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16074rmdir conf$$.dir 2>/dev/null
16075
16076
16077# as_fn_mkdir_p
16078# -------------
16079# Create "$as_dir" as a directory, including parents if necessary.
16080as_fn_mkdir_p ()
16081{
16082
16083 case $as_dir in #(
16084 -*) as_dir=./$as_dir;;
16085 esac
16086 test -d "$as_dir" || eval $as_mkdir_p || {
16087 as_dirs=
16088 while :; do
16089 case $as_dir in #(
16090 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16091 *) as_qdir=$as_dir;;
16092 esac
16093 as_dirs="'$as_qdir' $as_dirs"
16094 as_dir=`$as_dirname -- "$as_dir" ||
16095$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16096 X"$as_dir" : 'X\(//\)[^/]' \| \
16097 X"$as_dir" : 'X\(//\)$' \| \
16098 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16099$as_echo X"$as_dir" |
16100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16101 s//\1/
16102 q
16103 }
16104 /^X\(\/\/\)[^/].*/{
16105 s//\1/
16106 q
16107 }
16108 /^X\(\/\/\)$/{
16109 s//\1/
16110 q
16111 }
16112 /^X\(\/\).*/{
16113 s//\1/
16114 q
16115 }
16116 s/.*/./; q'`
16117 test -d "$as_dir" && break
16118 done
16119 test -z "$as_dirs" || eval "mkdir $as_dirs"
Joseph Myers22e05272018-10-31 17:03:16 +000016120 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016121
16122
16123} # as_fn_mkdir_p
16124if mkdir -p . 2>/dev/null; then
16125 as_mkdir_p='mkdir -p "$as_dir"'
16126else
16127 test -d ./-p && rmdir ./-p
16128 as_mkdir_p=false
16129fi
16130
Joseph Myers22e05272018-10-31 17:03:16 +000016131
16132# as_fn_executable_p FILE
16133# -----------------------
16134# Test if FILE is an executable regular file.
16135as_fn_executable_p ()
16136{
16137 test -f "$1" && test -x "$1"
16138} # as_fn_executable_p
16139as_test_x='test -x'
16140as_executable_p=as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +000016141
16142# Sed expression to map a string onto a valid CPP name.
16143as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16144
16145# Sed expression to map a string onto a valid variable name.
16146as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16147
16148
16149exec 6>&1
16150## ----------------------------------- ##
16151## Main body of $CONFIG_STATUS script. ##
16152## ----------------------------------- ##
16153_ASEOF
16154test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16155
16156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16157# Save the log message, to keep $0 and so on meaningful, and to
16158# report actual input values of CONFIG_FILES etc. instead of their
16159# values after options handling.
16160ac_log="
16161This file was extended by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +000016162generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +000016163
16164 CONFIG_FILES = $CONFIG_FILES
16165 CONFIG_HEADERS = $CONFIG_HEADERS
16166 CONFIG_LINKS = $CONFIG_LINKS
16167 CONFIG_COMMANDS = $CONFIG_COMMANDS
16168 $ $0 $@
16169
16170on `(hostname || uname -n) 2>/dev/null | sed 1q`
16171"
16172
16173_ACEOF
16174
16175case $ac_config_files in *"
16176"*) set x $ac_config_files; shift; ac_config_files=$*;;
16177esac
16178
16179case $ac_config_headers in *"
16180"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16181esac
16182
16183
16184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16185# Files that config.status was made for.
16186config_files="$ac_config_files"
16187config_headers="$ac_config_headers"
16188config_commands="$ac_config_commands"
16189
16190_ACEOF
16191
16192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16193ac_cs_usage="\
16194\`$as_me' instantiates files and other configuration actions
16195from templates according to the current configuration. Unless the files
16196and actions are specified as TAGs, all are instantiated by default.
16197
16198Usage: $0 [OPTION]... [TAG]...
16199
16200 -h, --help print this help, then exit
16201 -V, --version print version number and configuration settings, then exit
Joseph Myers22e05272018-10-31 17:03:16 +000016202 --config print configuration, then exit
Iain Buclawb4c522f2018-10-28 19:51:47 +000016203 -q, --quiet, --silent
16204 do not print progress messages
16205 -d, --debug don't remove temporary files
16206 --recheck update $as_me by reconfiguring in the same conditions
16207 --file=FILE[:TEMPLATE]
16208 instantiate the configuration file FILE
16209 --header=FILE[:TEMPLATE]
16210 instantiate the configuration header FILE
16211
16212Configuration files:
16213$config_files
16214
16215Configuration headers:
16216$config_headers
16217
16218Configuration commands:
16219$config_commands
16220
16221Report bugs to the package provider."
16222
16223_ACEOF
16224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016225ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016226ac_cs_version="\\
16227package-unused config.status version-unused
Joseph Myers22e05272018-10-31 17:03:16 +000016228configured by $0, generated by GNU Autoconf 2.69,
16229 with options \\"\$ac_cs_config\\"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016230
Rainer Orth0b6e3122019-02-14 17:47:49 +000016231Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000016232This config.status script is free software; the Free Software Foundation
16233gives unlimited permission to copy, distribute and modify it."
16234
16235ac_pwd='$ac_pwd'
16236srcdir='$srcdir'
16237INSTALL='$INSTALL'
16238MKDIR_P='$MKDIR_P'
16239AWK='$AWK'
16240test -n "\$AWK" || AWK=awk
16241_ACEOF
16242
16243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16244# The default lists apply if the user does not specify any file.
16245ac_need_defaults=:
16246while test $# != 0
16247do
16248 case $1 in
Joseph Myers22e05272018-10-31 17:03:16 +000016249 --*=?*)
Iain Buclawb4c522f2018-10-28 19:51:47 +000016250 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16251 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16252 ac_shift=:
16253 ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016254 --*=)
16255 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16256 ac_optarg=
16257 ac_shift=:
16258 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016259 *)
16260 ac_option=$1
16261 ac_optarg=$2
16262 ac_shift=shift
16263 ;;
16264 esac
16265
16266 case $ac_option in
16267 # Handling of the options.
16268 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16269 ac_cs_recheck=: ;;
16270 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16271 $as_echo "$ac_cs_version"; exit ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016272 --config | --confi | --conf | --con | --co | --c )
16273 $as_echo "$ac_cs_config"; exit ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016274 --debug | --debu | --deb | --de | --d | -d )
16275 debug=: ;;
16276 --file | --fil | --fi | --f )
16277 $ac_shift
16278 case $ac_optarg in
16279 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016280 '') as_fn_error $? "missing file argument" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016281 esac
16282 as_fn_append CONFIG_FILES " '$ac_optarg'"
16283 ac_need_defaults=false;;
16284 --header | --heade | --head | --hea )
16285 $ac_shift
16286 case $ac_optarg in
16287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16288 esac
16289 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16290 ac_need_defaults=false;;
16291 --he | --h)
16292 # Conflict between --help and --header
Joseph Myers22e05272018-10-31 17:03:16 +000016293 as_fn_error $? "ambiguous option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016294Try \`$0 --help' for more information.";;
16295 --help | --hel | -h )
16296 $as_echo "$ac_cs_usage"; exit ;;
16297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16298 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16299 ac_cs_silent=: ;;
16300
16301 # This is an error.
Joseph Myers22e05272018-10-31 17:03:16 +000016302 -*) as_fn_error $? "unrecognized option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016303Try \`$0 --help' for more information." ;;
16304
16305 *) as_fn_append ac_config_targets " $1"
16306 ac_need_defaults=false ;;
16307
16308 esac
16309 shift
16310done
16311
16312ac_configure_extra_args=
16313
16314if $ac_cs_silent; then
16315 exec 6>/dev/null
16316 ac_configure_extra_args="$ac_configure_extra_args --silent"
16317fi
16318
16319_ACEOF
16320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16321if \$ac_cs_recheck; then
Joseph Myers22e05272018-10-31 17:03:16 +000016322 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Iain Buclawb4c522f2018-10-28 19:51:47 +000016323 shift
16324 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16325 CONFIG_SHELL='$SHELL'
16326 export CONFIG_SHELL
16327 exec "\$@"
16328fi
16329
16330_ACEOF
16331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16332exec 5>>config.log
16333{
16334 echo
16335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16336## Running $as_me. ##
16337_ASBOX
16338 $as_echo "$ac_log"
16339} >&5
16340
16341_ACEOF
16342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16343#
16344# INIT-COMMANDS
16345#
16346
16347srcdir="$srcdir"
16348host="$host"
16349target="$target"
16350with_multisubdir="$with_multisubdir"
16351with_multisrctop="$with_multisrctop"
16352with_target_subdir="$with_target_subdir"
16353ac_configure_args="${multilib_arg} ${ac_configure_args}"
16354multi_basedir="$multi_basedir"
16355CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16356CC="$CC"
16357CXX="$CXX"
16358GFORTRAN="$GFORTRAN"
16359GDC="$GDC"
16360
16361
16362# The HP-UX ksh and POSIX shell print the target directory to stdout
16363# if CDPATH is set.
16364(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16365
16366sed_quote_subst='$sed_quote_subst'
16367double_quote_subst='$double_quote_subst'
16368delay_variable_subst='$delay_variable_subst'
16369macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16370macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16371enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16372enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16373pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16374enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16375SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16376ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16377host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16378host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16379host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16380build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16381build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16382build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16383SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16384Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16385GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16386EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16387FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16388LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16389NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16390LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16391max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16392ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16393exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16394lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16395lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16396lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16397reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16398reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16399OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16400deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16401file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16402AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16403AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16404STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16405RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16406old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16407old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16408old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16409lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16410CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16411CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16412compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16413GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16414lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16415lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16416lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16417lt_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"`'
16418objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16419MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16420lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16421lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16422lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16423lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16424lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16425need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16426DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16427NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16428LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16429OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16430OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16431libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16432shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16433extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16434archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16435enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16436export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16437whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16438compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16439old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16440old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16441archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16442archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16443module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16444module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16445with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16446allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16447no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16448hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16449hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16450hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16451hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16452hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16453hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16454hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16455hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16456inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16457link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16458fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16459always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16460export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16461exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16462include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16463prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16464file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16465variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16466need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16467need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16468version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16469runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16470shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16471shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16472libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16473library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16474soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16475install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16476postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16477postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16478finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16479finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16480hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16481sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16482sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16483hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16484enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16485enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16486enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16487old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16488striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16489LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16490reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16491reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16492old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16493compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16494GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16495lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16496lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16497lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16498lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16499lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16500archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16501enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16502export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16503whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16504compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16505old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16506old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16507archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16508archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16509module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16510module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16511with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16512allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16513no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16514hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16515hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16516hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16517hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16518hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16519hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16520hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16521hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16522inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16523link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16524fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16525always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16526export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16527exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16528include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16529prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16530file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16531hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16532
16533LTCC='$LTCC'
16534LTCFLAGS='$LTCFLAGS'
16535compiler='$compiler_DEFAULT'
16536
16537# A function that is used when there is no print builtin or printf.
16538func_fallback_echo ()
16539{
16540 eval 'cat <<_LTECHO_EOF
16541\$1
16542_LTECHO_EOF'
16543}
16544
16545# Quote evaled strings.
16546for var in SHELL \
16547ECHO \
16548SED \
16549GREP \
16550EGREP \
16551FGREP \
16552LD \
16553NM \
16554LN_S \
16555lt_SP2NL \
16556lt_NL2SP \
16557reload_flag \
16558OBJDUMP \
16559deplibs_check_method \
16560file_magic_cmd \
16561AR \
16562AR_FLAGS \
16563STRIP \
16564RANLIB \
16565CC \
16566CFLAGS \
16567compiler \
16568lt_cv_sys_global_symbol_pipe \
16569lt_cv_sys_global_symbol_to_cdecl \
16570lt_cv_sys_global_symbol_to_c_name_address \
16571lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16572lt_prog_compiler_no_builtin_flag \
16573lt_prog_compiler_wl \
16574lt_prog_compiler_pic \
16575lt_prog_compiler_static \
16576lt_cv_prog_compiler_c_o \
16577need_locks \
16578DSYMUTIL \
16579NMEDIT \
16580LIPO \
16581OTOOL \
16582OTOOL64 \
16583shrext_cmds \
16584export_dynamic_flag_spec \
16585whole_archive_flag_spec \
16586compiler_needs_object \
16587with_gnu_ld \
16588allow_undefined_flag \
16589no_undefined_flag \
16590hardcode_libdir_flag_spec \
16591hardcode_libdir_flag_spec_ld \
16592hardcode_libdir_separator \
16593fix_srcfile_path \
16594exclude_expsyms \
16595include_expsyms \
16596file_list_spec \
16597variables_saved_for_relink \
16598libname_spec \
16599library_names_spec \
16600soname_spec \
16601install_override_mode \
16602finish_eval \
16603old_striplib \
16604striplib \
16605LD_D \
16606reload_flag_D \
16607compiler_D \
16608lt_prog_compiler_no_builtin_flag_D \
16609lt_prog_compiler_wl_D \
16610lt_prog_compiler_pic_D \
16611lt_prog_compiler_static_D \
16612lt_cv_prog_compiler_c_o_D \
16613export_dynamic_flag_spec_D \
16614whole_archive_flag_spec_D \
16615compiler_needs_object_D \
16616with_gnu_ld_D \
16617allow_undefined_flag_D \
16618no_undefined_flag_D \
16619hardcode_libdir_flag_spec_D \
16620hardcode_libdir_flag_spec_ld_D \
16621hardcode_libdir_separator_D \
16622fix_srcfile_path_D \
16623exclude_expsyms_D \
16624include_expsyms_D \
16625file_list_spec_D; do
16626 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16627 *[\\\\\\\`\\"\\\$]*)
16628 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16629 ;;
16630 *)
16631 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16632 ;;
16633 esac
16634done
16635
16636# Double-quote double-evaled strings.
16637for var in reload_cmds \
16638old_postinstall_cmds \
16639old_postuninstall_cmds \
16640old_archive_cmds \
16641extract_expsyms_cmds \
16642old_archive_from_new_cmds \
16643old_archive_from_expsyms_cmds \
16644archive_cmds \
16645archive_expsym_cmds \
16646module_cmds \
16647module_expsym_cmds \
16648export_symbols_cmds \
16649prelink_cmds \
16650postinstall_cmds \
16651postuninstall_cmds \
16652finish_cmds \
16653sys_lib_search_path_spec \
16654sys_lib_dlsearch_path_spec \
16655reload_cmds_D \
16656old_archive_cmds_D \
16657old_archive_from_new_cmds_D \
16658old_archive_from_expsyms_cmds_D \
16659archive_cmds_D \
16660archive_expsym_cmds_D \
16661module_cmds_D \
16662module_expsym_cmds_D \
16663export_symbols_cmds_D \
16664prelink_cmds_D; do
16665 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16666 *[\\\\\\\`\\"\\\$]*)
16667 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16668 ;;
16669 *)
16670 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16671 ;;
16672 esac
16673done
16674
16675ac_aux_dir='$ac_aux_dir'
16676xsi_shell='$xsi_shell'
16677lt_shell_append='$lt_shell_append'
16678
16679# See if we are running on zsh, and set the options which allow our
16680# commands through without removal of \ escapes INIT.
16681if test -n "\${ZSH_VERSION+set}" ; then
16682 setopt NO_GLOB_SUBST
16683fi
16684
16685
16686 PACKAGE='$PACKAGE'
16687 VERSION='$VERSION'
16688 TIMESTAMP='$TIMESTAMP'
16689 RM='$RM'
16690 ofile='$ofile'
16691
16692
16693
16694
16695
16696
Iain Buclawb4c522f2018-10-28 19:51:47 +000016697_ACEOF
16698
16699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16700
16701# Handling of arguments.
16702for ac_config_target in $ac_config_targets
16703do
16704 case $ac_config_target in
16705 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16706 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16707 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16708 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016709 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16710 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16711 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16712 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
Iain Buclawac677522018-11-02 08:29:50 +000016713 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16714 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16715 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016716
Joseph Myers22e05272018-10-31 17:03:16 +000016717 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016718 esac
16719done
16720
16721
16722# If the user did not use the arguments to specify the items to instantiate,
16723# then the envvar interface is used. Set only those that are not.
16724# We use the long form for the default assignment because of an extremely
16725# bizarre bug on SunOS 4.1.3.
16726if $ac_need_defaults; then
16727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16730fi
16731
16732# Have a temporary directory for convenience. Make it in the build tree
16733# simply because there is no reason against having it here, and in addition,
16734# creating and moving files from /tmp can sometimes cause problems.
16735# Hook for its removal unless debugging.
16736# Note that there is a small window in which the directory will not be cleaned:
16737# after its creation but before its name has been assigned to `$tmp'.
16738$debug ||
16739{
Joseph Myers22e05272018-10-31 17:03:16 +000016740 tmp= ac_tmp=
Iain Buclawb4c522f2018-10-28 19:51:47 +000016741 trap 'exit_status=$?
Joseph Myers22e05272018-10-31 17:03:16 +000016742 : "${ac_tmp:=$tmp}"
16743 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Iain Buclawb4c522f2018-10-28 19:51:47 +000016744' 0
16745 trap 'as_fn_exit 1' 1 2 13 15
16746}
16747# Create a (secure) tmp directory for tmp files.
16748
16749{
16750 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Joseph Myers22e05272018-10-31 17:03:16 +000016751 test -d "$tmp"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016752} ||
16753{
16754 tmp=./conf$$-$RANDOM
16755 (umask 077 && mkdir "$tmp")
Joseph Myers22e05272018-10-31 17:03:16 +000016756} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16757ac_tmp=$tmp
Iain Buclawb4c522f2018-10-28 19:51:47 +000016758
16759# Set up the scripts for CONFIG_FILES section.
16760# No need to generate them if there are no CONFIG_FILES.
16761# This happens for instance with `./config.status config.h'.
16762if test -n "$CONFIG_FILES"; then
16763
Rainer Orth0b6e3122019-02-14 17:47:49 +000016764if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16765 ac_cs_awk_getline=:
16766 ac_cs_awk_pipe_init=
16767 ac_cs_awk_read_file='
16768 while ((getline aline < (F[key])) > 0)
16769 print(aline)
16770 close(F[key])'
16771 ac_cs_awk_pipe_fini=
16772else
16773 ac_cs_awk_getline=false
16774 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16775 ac_cs_awk_read_file='
16776 print "|#_!!_#|"
16777 print "cat " F[key] " &&"
16778 '$ac_cs_awk_pipe_init
16779 # The final `:' finishes the AND list.
16780 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16781fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000016782ac_cr=`echo X | tr X '\015'`
16783# On cygwin, bash can eat \r inside `` if the user requested igncr.
16784# But we know of no other shell where ac_cr would be empty at this
16785# point, so we can use a bashism as a fallback.
16786if test "x$ac_cr" = x; then
16787 eval ac_cr=\$\'\\r\'
16788fi
16789ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16790if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016791 ac_cs_awk_cr='\\r'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016792else
16793 ac_cs_awk_cr=$ac_cr
16794fi
16795
Joseph Myers22e05272018-10-31 17:03:16 +000016796echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016797_ACEOF
16798
Rainer Orth0b6e3122019-02-14 17:47:49 +000016799# Create commands to substitute file output variables.
16800{
16801 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16802 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16803 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16804 echo "_ACAWK" &&
16805 echo "_ACEOF"
16806} >conf$$files.sh &&
16807. ./conf$$files.sh ||
16808 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16809rm -f conf$$files.sh
Iain Buclawb4c522f2018-10-28 19:51:47 +000016810
16811{
16812 echo "cat >conf$$subs.awk <<_ACEOF" &&
16813 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16814 echo "_ACEOF"
16815} >conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016816 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16817ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Iain Buclawb4c522f2018-10-28 19:51:47 +000016818ac_delim='%!_!# '
16819for ac_last_try in false false false false false :; do
16820 . ./conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016822
16823 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16824 if test $ac_delim_n = $ac_delim_num; then
16825 break
16826 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016827 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016828 else
16829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16830 fi
16831done
16832rm -f conf$$subs.sh
16833
16834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016835cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016836_ACEOF
16837sed -n '
16838h
16839s/^/S["/; s/!.*/"]=/
16840p
16841g
16842s/^[^!]*!//
16843:repl
16844t repl
16845s/'"$ac_delim"'$//
16846t delim
16847:nl
16848h
Joseph Myers22e05272018-10-31 17:03:16 +000016849s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016850t more1
16851s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16852p
16853n
16854b repl
16855:more1
16856s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16857p
16858g
16859s/.\{148\}//
16860t nl
16861:delim
16862h
Joseph Myers22e05272018-10-31 17:03:16 +000016863s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016864t more2
16865s/["\\]/\\&/g; s/^/"/; s/$/"/
16866p
16867b
16868:more2
16869s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16870p
16871g
16872s/.\{148\}//
16873t delim
16874' <conf$$subs.awk | sed '
16875/^[^""]/{
16876 N
16877 s/\n//
16878}
16879' >>$CONFIG_STATUS || ac_write_fail=1
16880rm -f conf$$subs.awk
16881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16882_ACAWK
Joseph Myers22e05272018-10-31 17:03:16 +000016883cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016884 for (key in S) S_is_set[key] = 1
16885 FS = ""
Rainer Orth0b6e3122019-02-14 17:47:49 +000016886 \$ac_cs_awk_pipe_init
Iain Buclawb4c522f2018-10-28 19:51:47 +000016887}
16888{
16889 line = $ 0
16890 nfields = split(line, field, "@")
16891 substed = 0
16892 len = length(field[1])
16893 for (i = 2; i < nfields; i++) {
16894 key = field[i]
16895 keylen = length(key)
16896 if (S_is_set[key]) {
16897 value = S[key]
16898 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16899 len += length(value) + length(field[++i])
16900 substed = 1
16901 } else
16902 len += 1 + keylen
16903 }
Rainer Orth0b6e3122019-02-14 17:47:49 +000016904 if (nfields == 3 && !substed) {
16905 key = field[2]
16906 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16907 \$ac_cs_awk_read_file
16908 next
16909 }
16910 }
Iain Buclawb4c522f2018-10-28 19:51:47 +000016911 print line
16912}
Rainer Orth0b6e3122019-02-14 17:47:49 +000016913\$ac_cs_awk_pipe_fini
Iain Buclawb4c522f2018-10-28 19:51:47 +000016914_ACAWK
16915_ACEOF
16916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16917if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16918 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16919else
16920 cat
Joseph Myers22e05272018-10-31 17:03:16 +000016921fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16922 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016923_ACEOF
16924
Joseph Myers22e05272018-10-31 17:03:16 +000016925# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16926# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Iain Buclawb4c522f2018-10-28 19:51:47 +000016927# trailing colons and then remove the whole line if VPATH becomes empty
16928# (actually we leave an empty line to preserve line numbers).
16929if test "x$srcdir" = x.; then
Joseph Myers22e05272018-10-31 17:03:16 +000016930 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16931h
16932s///
16933s/^/:/
16934s/[ ]*$/:/
16935s/:\$(srcdir):/:/g
16936s/:\${srcdir}:/:/g
16937s/:@srcdir@:/:/g
16938s/^:*//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016939s/:*$//
Joseph Myers22e05272018-10-31 17:03:16 +000016940x
16941s/\(=[ ]*\).*/\1/
16942G
16943s/\n//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016944s/^[^=]*=[ ]*$//
16945}'
16946fi
16947
16948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16949fi # test -n "$CONFIG_FILES"
16950
16951# Set up the scripts for CONFIG_HEADERS section.
16952# No need to generate them if there are no CONFIG_HEADERS.
16953# This happens for instance with `./config.status Makefile'.
16954if test -n "$CONFIG_HEADERS"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016955cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Iain Buclawb4c522f2018-10-28 19:51:47 +000016956BEGIN {
16957_ACEOF
16958
16959# Transform confdefs.h into an awk script `defines.awk', embedded as
16960# here-document in config.status, that substitutes the proper values into
16961# config.h.in to produce config.h.
16962
16963# Create a delimiter string that does not exist in confdefs.h, to ease
16964# handling of long lines.
16965ac_delim='%!_!# '
16966for ac_last_try in false false :; do
Joseph Myers22e05272018-10-31 17:03:16 +000016967 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16968 if test -z "$ac_tt"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000016969 break
16970 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016971 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016972 else
16973 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16974 fi
16975done
16976
16977# For the awk script, D is an array of macro values keyed by name,
16978# likewise P contains macro parameters if any. Preserve backslash
16979# newline sequences.
16980
16981ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16982sed -n '
16983s/.\{148\}/&'"$ac_delim"'/g
16984t rset
16985:rset
16986s/^[ ]*#[ ]*define[ ][ ]*/ /
16987t def
16988d
16989:def
16990s/\\$//
16991t bsnl
16992s/["\\]/\\&/g
16993s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16994D["\1"]=" \3"/p
16995s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16996d
16997:bsnl
16998s/["\\]/\\&/g
16999s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17000D["\1"]=" \3\\\\\\n"\\/p
17001t cont
17002s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17003t cont
17004d
17005:cont
17006n
17007s/.\{148\}/&'"$ac_delim"'/g
17008t clear
17009:clear
17010s/\\$//
17011t bsnlc
17012s/["\\]/\\&/g; s/^/"/; s/$/"/p
17013d
17014:bsnlc
17015s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17016b cont
17017' <confdefs.h | sed '
17018s/'"$ac_delim"'/"\\\
17019"/g' >>$CONFIG_STATUS || ac_write_fail=1
17020
17021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17022 for (key in D) D_is_set[key] = 1
17023 FS = ""
17024}
17025/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17026 line = \$ 0
17027 split(line, arg, " ")
17028 if (arg[1] == "#") {
17029 defundef = arg[2]
17030 mac1 = arg[3]
17031 } else {
17032 defundef = substr(arg[1], 2)
17033 mac1 = arg[2]
17034 }
17035 split(mac1, mac2, "(") #)
17036 macro = mac2[1]
17037 prefix = substr(line, 1, index(line, defundef) - 1)
17038 if (D_is_set[macro]) {
17039 # Preserve the white space surrounding the "#".
17040 print prefix "define", macro P[macro] D[macro]
17041 next
17042 } else {
17043 # Replace #undef with comments. This is necessary, for example,
17044 # in the case of _POSIX_SOURCE, which is predefined and required
17045 # on some systems where configure will not decide to define it.
17046 if (defundef == "undef") {
17047 print "/*", prefix defundef, macro, "*/"
17048 next
17049 }
17050 }
17051}
17052{ print }
17053_ACAWK
17054_ACEOF
17055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000017056 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017057fi # test -n "$CONFIG_HEADERS"
17058
17059
17060eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17061shift
17062for ac_tag
17063do
17064 case $ac_tag in
17065 :[FHLC]) ac_mode=$ac_tag; continue;;
17066 esac
17067 case $ac_mode$ac_tag in
17068 :[FHL]*:*);;
Joseph Myers22e05272018-10-31 17:03:16 +000017069 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017070 :[FH]-) ac_tag=-:-;;
17071 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17072 esac
17073 ac_save_IFS=$IFS
17074 IFS=:
17075 set x $ac_tag
17076 IFS=$ac_save_IFS
17077 shift
17078 ac_file=$1
17079 shift
17080
17081 case $ac_mode in
17082 :L) ac_source=$1;;
17083 :[FH])
17084 ac_file_inputs=
17085 for ac_f
17086 do
17087 case $ac_f in
Joseph Myers22e05272018-10-31 17:03:16 +000017088 -) ac_f="$ac_tmp/stdin";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017089 *) # Look for the file first in the build tree, then in the source tree
17090 # (if the path is not absolute). The absolute path cannot be DOS-style,
17091 # because $ac_f cannot contain `:'.
17092 test -f "$ac_f" ||
17093 case $ac_f in
17094 [\\/$]*) false;;
17095 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17096 esac ||
Joseph Myers22e05272018-10-31 17:03:16 +000017097 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017098 esac
17099 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17100 as_fn_append ac_file_inputs " '$ac_f'"
17101 done
17102
17103 # Let's still pretend it is `configure' which instantiates (i.e., don't
17104 # use $as_me), people would be surprised to read:
17105 # /* config.h. Generated by config.status. */
17106 configure_input='Generated from '`
17107 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17108 `' by configure.'
17109 if test x"$ac_file" != x-; then
17110 configure_input="$ac_file. $configure_input"
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17112$as_echo "$as_me: creating $ac_file" >&6;}
17113 fi
17114 # Neutralize special characters interpreted by sed in replacement strings.
17115 case $configure_input in #(
17116 *\&* | *\|* | *\\* )
17117 ac_sed_conf_input=`$as_echo "$configure_input" |
17118 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17119 *) ac_sed_conf_input=$configure_input;;
17120 esac
17121
17122 case $ac_tag in
Joseph Myers22e05272018-10-31 17:03:16 +000017123 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017125 esac
17126 ;;
17127 esac
17128
17129 ac_dir=`$as_dirname -- "$ac_file" ||
17130$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17131 X"$ac_file" : 'X\(//\)[^/]' \| \
17132 X"$ac_file" : 'X\(//\)$' \| \
17133 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17134$as_echo X"$ac_file" |
17135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17136 s//\1/
17137 q
17138 }
17139 /^X\(\/\/\)[^/].*/{
17140 s//\1/
17141 q
17142 }
17143 /^X\(\/\/\)$/{
17144 s//\1/
17145 q
17146 }
17147 /^X\(\/\).*/{
17148 s//\1/
17149 q
17150 }
17151 s/.*/./; q'`
17152 as_dir="$ac_dir"; as_fn_mkdir_p
17153 ac_builddir=.
17154
17155case "$ac_dir" in
17156.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17157*)
17158 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17159 # A ".." for each directory in $ac_dir_suffix.
17160 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17161 case $ac_top_builddir_sub in
17162 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17163 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17164 esac ;;
17165esac
17166ac_abs_top_builddir=$ac_pwd
17167ac_abs_builddir=$ac_pwd$ac_dir_suffix
17168# for backward compatibility:
17169ac_top_builddir=$ac_top_build_prefix
17170
17171case $srcdir in
17172 .) # We are building in place.
17173 ac_srcdir=.
17174 ac_top_srcdir=$ac_top_builddir_sub
17175 ac_abs_top_srcdir=$ac_pwd ;;
17176 [\\/]* | ?:[\\/]* ) # Absolute name.
17177 ac_srcdir=$srcdir$ac_dir_suffix;
17178 ac_top_srcdir=$srcdir
17179 ac_abs_top_srcdir=$srcdir ;;
17180 *) # Relative name.
17181 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17182 ac_top_srcdir=$ac_top_build_prefix$srcdir
17183 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17184esac
17185ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17186
17187
17188 case $ac_mode in
17189 :F)
17190 #
17191 # CONFIG_FILE
17192 #
17193
17194 case $INSTALL in
17195 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17196 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17197 esac
17198 ac_MKDIR_P=$MKDIR_P
17199 case $MKDIR_P in
17200 [\\/$]* | ?:[\\/]* ) ;;
17201 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17202 esac
17203_ACEOF
17204
17205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17206# If the template does not know about datarootdir, expand it.
17207# FIXME: This hack should be removed a few years after 2.60.
17208ac_datarootdir_hack=; ac_datarootdir_seen=
17209ac_sed_dataroot='
17210/datarootdir/ {
17211 p
17212 q
17213}
17214/@datadir@/p
17215/@docdir@/p
17216/@infodir@/p
17217/@localedir@/p
17218/@mandir@/p'
17219case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17220*datarootdir*) ac_datarootdir_seen=yes;;
17221*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17223$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17224_ACEOF
17225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17226 ac_datarootdir_hack='
17227 s&@datadir@&$datadir&g
17228 s&@docdir@&$docdir&g
17229 s&@infodir@&$infodir&g
17230 s&@localedir@&$localedir&g
17231 s&@mandir@&$mandir&g
17232 s&\\\${datarootdir}&$datarootdir&g' ;;
17233esac
17234_ACEOF
17235
17236# Neutralize VPATH when `$srcdir' = `.'.
17237# Shell code in configure.ac might set extrasub.
17238# FIXME: do we really want to maintain this feature?
17239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17240ac_sed_extra="$ac_vpsub
17241$extrasub
17242_ACEOF
17243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17244:t
17245/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17246s|@configure_input@|$ac_sed_conf_input|;t t
17247s&@top_builddir@&$ac_top_builddir_sub&;t t
17248s&@top_build_prefix@&$ac_top_build_prefix&;t t
17249s&@srcdir@&$ac_srcdir&;t t
17250s&@abs_srcdir@&$ac_abs_srcdir&;t t
17251s&@top_srcdir@&$ac_top_srcdir&;t t
17252s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17253s&@builddir@&$ac_builddir&;t t
17254s&@abs_builddir@&$ac_abs_builddir&;t t
17255s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17256s&@INSTALL@&$ac_INSTALL&;t t
17257s&@MKDIR_P@&$ac_MKDIR_P&;t t
17258$ac_datarootdir_hack
17259"
Rainer Orth0b6e3122019-02-14 17:47:49 +000017260eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17261if $ac_cs_awk_getline; then
17262 $AWK -f "$ac_tmp/subs.awk"
17263else
17264 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17265fi \
Joseph Myers22e05272018-10-31 17:03:16 +000017266 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017267
17268test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Joseph Myers22e05272018-10-31 17:03:16 +000017269 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17270 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17271 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000017272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000017273which seems to be undefined. Please make sure it is defined" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017274$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000017275which seems to be undefined. Please make sure it is defined" >&2;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000017276
Joseph Myers22e05272018-10-31 17:03:16 +000017277 rm -f "$ac_tmp/stdin"
Iain Buclawb4c522f2018-10-28 19:51:47 +000017278 case $ac_file in
Joseph Myers22e05272018-10-31 17:03:16 +000017279 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17280 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017281 esac \
Joseph Myers22e05272018-10-31 17:03:16 +000017282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017283 ;;
17284 :H)
17285 #
17286 # CONFIG_HEADER
17287 #
17288 if test x"$ac_file" != x-; then
17289 {
17290 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000017291 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17292 } >"$ac_tmp/config.h" \
17293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17294 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000017295 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17296$as_echo "$as_me: $ac_file is unchanged" >&6;}
17297 else
17298 rm -f "$ac_file"
Joseph Myers22e05272018-10-31 17:03:16 +000017299 mv "$ac_tmp/config.h" "$ac_file" \
17300 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017301 fi
17302 else
17303 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000017304 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17305 || as_fn_error $? "could not create -" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017306 fi
17307# Compute "$ac_file"'s index in $config_headers.
17308_am_arg="$ac_file"
17309_am_stamp_count=1
17310for _am_header in $config_headers :; do
17311 case $_am_header in
17312 $_am_arg | $_am_arg:* )
17313 break ;;
17314 * )
17315 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17316 esac
17317done
17318echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17319$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17320 X"$_am_arg" : 'X\(//\)[^/]' \| \
17321 X"$_am_arg" : 'X\(//\)$' \| \
17322 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17323$as_echo X"$_am_arg" |
17324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17325 s//\1/
17326 q
17327 }
17328 /^X\(\/\/\)[^/].*/{
17329 s//\1/
17330 q
17331 }
17332 /^X\(\/\/\)$/{
17333 s//\1/
17334 q
17335 }
17336 /^X\(\/\).*/{
17337 s//\1/
17338 q
17339 }
17340 s/.*/./; q'`/stamp-h$_am_stamp_count
17341 ;;
17342
17343 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17344$as_echo "$as_me: executing $ac_file commands" >&6;}
17345 ;;
17346 esac
17347
17348
17349 case $ac_file$ac_mode in
17350 "default-1":C)
17351# Only add multilib support code if we just rebuilt the top-level
17352# Makefile.
17353case " $CONFIG_FILES " in
17354 *" Makefile "*)
17355 ac_file=Makefile . ${multi_basedir}/config-ml.in
17356 ;;
17357esac ;;
17358 "libtool":C)
17359
17360 # See if we are running on zsh, and set the options which allow our
17361 # commands through without removal of \ escapes.
17362 if test -n "${ZSH_VERSION+set}" ; then
17363 setopt NO_GLOB_SUBST
17364 fi
17365
17366 cfgfile="${ofile}T"
17367 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17368 $RM "$cfgfile"
17369
17370 cat <<_LT_EOF >> "$cfgfile"
17371#! $SHELL
17372
17373# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17374# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17375# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17376# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17377#
Rainer Orth0b6e3122019-02-14 17:47:49 +000017378# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17379# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000017380# Written by Gordon Matzigkeit, 1996
17381#
17382# This file is part of GNU Libtool.
17383#
17384# GNU Libtool is free software; you can redistribute it and/or
17385# modify it under the terms of the GNU General Public License as
17386# published by the Free Software Foundation; either version 2 of
17387# the License, or (at your option) any later version.
17388#
17389# As a special exception to the GNU General Public License,
17390# if you distribute this file as part of a program or library that
17391# is built using GNU Libtool, you may include this file under the
17392# same distribution terms that you use for the rest of that program.
17393#
17394# GNU Libtool is distributed in the hope that it will be useful,
17395# but WITHOUT ANY WARRANTY; without even the implied warranty of
17396# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17397# GNU General Public License for more details.
17398#
17399# You should have received a copy of the GNU General Public License
17400# along with GNU Libtool; see the file COPYING. If not, a copy
17401# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17402# obtained by writing to the Free Software Foundation, Inc.,
17403# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17404
17405
17406# The names of the tagged configurations supported by this script.
17407available_tags="D "
17408
17409# ### BEGIN LIBTOOL CONFIG
17410
17411# Which release of libtool.m4 was used?
17412macro_version=$macro_version
17413macro_revision=$macro_revision
17414
17415# Whether or not to build shared libraries.
17416build_libtool_libs=$enable_shared
17417
17418# Whether or not to build static libraries.
17419build_old_libs=$enable_static
17420
17421# What type of objects to build.
17422pic_mode=$pic_mode
17423
17424# Whether or not to optimize for fast installation.
17425fast_install=$enable_fast_install
17426
17427# Shell to use when invoking shell scripts.
17428SHELL=$lt_SHELL
17429
17430# An echo program that protects backslashes.
17431ECHO=$lt_ECHO
17432
17433# The host system.
17434host_alias=$host_alias
17435host=$host
17436host_os=$host_os
17437
17438# The build system.
17439build_alias=$build_alias
17440build=$build
17441build_os=$build_os
17442
17443# A sed program that does not truncate output.
17444SED=$lt_SED
17445
17446# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17447Xsed="\$SED -e 1s/^X//"
17448
17449# A grep program that handles long lines.
17450GREP=$lt_GREP
17451
17452# An ERE matcher.
17453EGREP=$lt_EGREP
17454
17455# A literal string matcher.
17456FGREP=$lt_FGREP
17457
17458# A BSD- or MS-compatible name lister.
17459NM=$lt_NM
17460
17461# Whether we need soft or hard links.
17462LN_S=$lt_LN_S
17463
17464# What is the maximum length of a command?
17465max_cmd_len=$max_cmd_len
17466
17467# Object file suffix (normally "o").
17468objext=$ac_objext
17469
17470# Executable file suffix (normally "").
17471exeext=$exeext
17472
17473# whether the shell understands "unset".
17474lt_unset=$lt_unset
17475
17476# turn spaces into newlines.
17477SP2NL=$lt_lt_SP2NL
17478
17479# turn newlines into spaces.
17480NL2SP=$lt_lt_NL2SP
17481
17482# An object symbol dumper.
17483OBJDUMP=$lt_OBJDUMP
17484
17485# Method to check whether dependent libraries are shared objects.
17486deplibs_check_method=$lt_deplibs_check_method
17487
17488# Command to use when deplibs_check_method == "file_magic".
17489file_magic_cmd=$lt_file_magic_cmd
17490
17491# The archiver.
17492AR=$lt_AR
17493AR_FLAGS=$lt_AR_FLAGS
17494
17495# A symbol stripping program.
17496STRIP=$lt_STRIP
17497
17498# Commands used to install an old-style archive.
17499RANLIB=$lt_RANLIB
17500old_postinstall_cmds=$lt_old_postinstall_cmds
17501old_postuninstall_cmds=$lt_old_postuninstall_cmds
17502
17503# Whether to use a lock for old archive extraction.
17504lock_old_archive_extraction=$lock_old_archive_extraction
17505
17506# A C compiler.
17507LTCC=$lt_CC
17508
17509# LTCC compiler flags.
17510LTCFLAGS=$lt_CFLAGS
17511
17512# Take the output of nm and produce a listing of raw symbols and C names.
17513global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17514
17515# Transform the output of nm in a proper C declaration.
17516global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17517
17518# Transform the output of nm in a C name address pair.
17519global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17520
17521# Transform the output of nm in a C name address pair when lib prefix is needed.
17522global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17523
17524# The name of the directory that contains temporary libtool files.
17525objdir=$objdir
17526
17527# Used to examine libraries when file_magic_cmd begins with "file".
17528MAGIC_CMD=$MAGIC_CMD
17529
17530# Must we lock files when doing compilation?
17531need_locks=$lt_need_locks
17532
17533# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17534DSYMUTIL=$lt_DSYMUTIL
17535
17536# Tool to change global to local symbols on Mac OS X.
17537NMEDIT=$lt_NMEDIT
17538
17539# Tool to manipulate fat objects and archives on Mac OS X.
17540LIPO=$lt_LIPO
17541
17542# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17543OTOOL=$lt_OTOOL
17544
17545# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17546OTOOL64=$lt_OTOOL64
17547
17548# Old archive suffix (normally "a").
17549libext=$libext
17550
17551# Shared library suffix (normally ".so").
17552shrext_cmds=$lt_shrext_cmds
17553
17554# The commands to extract the exported symbol list from a shared archive.
17555extract_expsyms_cmds=$lt_extract_expsyms_cmds
17556
17557# Variables whose values should be saved in libtool wrapper scripts and
17558# restored at link time.
17559variables_saved_for_relink=$lt_variables_saved_for_relink
17560
17561# Do we need the "lib" prefix for modules?
17562need_lib_prefix=$need_lib_prefix
17563
17564# Do we need a version for libraries?
17565need_version=$need_version
17566
17567# Library versioning type.
17568version_type=$version_type
17569
17570# Shared library runtime path variable.
17571runpath_var=$runpath_var
17572
17573# Shared library path variable.
17574shlibpath_var=$shlibpath_var
17575
17576# Is shlibpath searched before the hard-coded library search path?
17577shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17578
17579# Format of library name prefix.
17580libname_spec=$lt_libname_spec
17581
17582# List of archive names. First name is the real one, the rest are links.
17583# The last name is the one that the linker finds with -lNAME
17584library_names_spec=$lt_library_names_spec
17585
17586# The coded name of the library, if different from the real name.
17587soname_spec=$lt_soname_spec
17588
17589# Permission mode override for installation of shared libraries.
17590install_override_mode=$lt_install_override_mode
17591
17592# Command to use after installation of a shared archive.
17593postinstall_cmds=$lt_postinstall_cmds
17594
17595# Command to use after uninstallation of a shared archive.
17596postuninstall_cmds=$lt_postuninstall_cmds
17597
17598# Commands used to finish a libtool library installation in a directory.
17599finish_cmds=$lt_finish_cmds
17600
17601# As "finish_cmds", except a single script fragment to be evaled but
17602# not shown.
17603finish_eval=$lt_finish_eval
17604
17605# Whether we should hardcode library paths into libraries.
17606hardcode_into_libs=$hardcode_into_libs
17607
17608# Compile-time system search path for libraries.
17609sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17610
17611# Run-time system search path for libraries.
17612sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17613
17614# Whether dlopen is supported.
17615dlopen_support=$enable_dlopen
17616
17617# Whether dlopen of programs is supported.
17618dlopen_self=$enable_dlopen_self
17619
17620# Whether dlopen of statically linked programs is supported.
17621dlopen_self_static=$enable_dlopen_self_static
17622
17623# Commands to strip libraries.
17624old_striplib=$lt_old_striplib
17625striplib=$lt_striplib
17626
17627
17628# The linker used to build libraries.
17629LD=$lt_LD
17630
17631# How to create reloadable object files.
17632reload_flag=$lt_reload_flag
17633reload_cmds=$lt_reload_cmds
17634
17635# Commands used to build an old-style archive.
17636old_archive_cmds=$lt_old_archive_cmds
17637
17638# A language specific compiler.
17639CC=$lt_compiler
17640
17641# Is the compiler the GNU compiler?
17642with_gcc=$GCC
17643
17644# Compiler flag to turn off builtin functions.
17645no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17646
17647# How to pass a linker flag through the compiler.
17648wl=$lt_lt_prog_compiler_wl
17649
17650# Additional compiler flags for building library objects.
17651pic_flag=$lt_lt_prog_compiler_pic
17652
17653# Compiler flag to prevent dynamic linking.
17654link_static_flag=$lt_lt_prog_compiler_static
17655
17656# Does compiler simultaneously support -c and -o options?
17657compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17658
17659# Whether or not to add -lc for building shared libraries.
17660build_libtool_need_lc=$archive_cmds_need_lc
17661
17662# Whether or not to disallow shared libs when runtime libs are static.
17663allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17664
17665# Compiler flag to allow reflexive dlopens.
17666export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17667
17668# Compiler flag to generate shared objects directly from archives.
17669whole_archive_flag_spec=$lt_whole_archive_flag_spec
17670
17671# Whether the compiler copes with passing no objects directly.
17672compiler_needs_object=$lt_compiler_needs_object
17673
17674# Create an old-style archive from a shared archive.
17675old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17676
17677# Create a temporary old-style archive to link instead of a shared archive.
17678old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17679
17680# Commands used to build a shared archive.
17681archive_cmds=$lt_archive_cmds
17682archive_expsym_cmds=$lt_archive_expsym_cmds
17683
17684# Commands used to build a loadable module if different from building
17685# a shared archive.
17686module_cmds=$lt_module_cmds
17687module_expsym_cmds=$lt_module_expsym_cmds
17688
17689# Whether we are building with GNU ld or not.
17690with_gnu_ld=$lt_with_gnu_ld
17691
17692# Flag that allows shared libraries with undefined symbols to be built.
17693allow_undefined_flag=$lt_allow_undefined_flag
17694
17695# Flag that enforces no undefined symbols.
17696no_undefined_flag=$lt_no_undefined_flag
17697
17698# Flag to hardcode \$libdir into a binary during linking.
17699# This must work even if \$libdir does not exist
17700hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17701
17702# If ld is used when linking, flag to hardcode \$libdir into a binary
17703# during linking. This must work even if \$libdir does not exist.
17704hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17705
17706# Whether we need a single "-rpath" flag with a separated argument.
17707hardcode_libdir_separator=$lt_hardcode_libdir_separator
17708
17709# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17710# DIR into the resulting binary.
17711hardcode_direct=$hardcode_direct
17712
17713# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17714# DIR into the resulting binary and the resulting library dependency is
17715# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17716# library is relocated.
17717hardcode_direct_absolute=$hardcode_direct_absolute
17718
17719# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17720# into the resulting binary.
17721hardcode_minus_L=$hardcode_minus_L
17722
17723# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17724# into the resulting binary.
17725hardcode_shlibpath_var=$hardcode_shlibpath_var
17726
17727# Set to "yes" if building a shared library automatically hardcodes DIR
17728# into the library and all subsequent libraries and executables linked
17729# against it.
17730hardcode_automatic=$hardcode_automatic
17731
17732# Set to yes if linker adds runtime paths of dependent libraries
17733# to runtime path list.
17734inherit_rpath=$inherit_rpath
17735
17736# Whether libtool must link a program against all its dependency libraries.
17737link_all_deplibs=$link_all_deplibs
17738
17739# Fix the shell variable \$srcfile for the compiler.
17740fix_srcfile_path=$lt_fix_srcfile_path
17741
17742# Set to "yes" if exported symbols are required.
17743always_export_symbols=$always_export_symbols
17744
17745# The commands to list exported symbols.
17746export_symbols_cmds=$lt_export_symbols_cmds
17747
17748# Symbols that should not be listed in the preloaded symbols.
17749exclude_expsyms=$lt_exclude_expsyms
17750
17751# Symbols that must always be exported.
17752include_expsyms=$lt_include_expsyms
17753
17754# Commands necessary for linking programs (against libraries) with templates.
17755prelink_cmds=$lt_prelink_cmds
17756
17757# Specify filename containing input files.
17758file_list_spec=$lt_file_list_spec
17759
17760# How to hardcode a shared library path into an executable.
17761hardcode_action=$hardcode_action
17762
17763# ### END LIBTOOL CONFIG
17764
17765_LT_EOF
17766
17767 case $host_os in
17768 aix3*)
17769 cat <<\_LT_EOF >> "$cfgfile"
17770# AIX sometimes has problems with the GCC collect2 program. For some
17771# reason, if we set the COLLECT_NAMES environment variable, the problems
17772# vanish in a puff of smoke.
17773if test "X${COLLECT_NAMES+set}" != Xset; then
17774 COLLECT_NAMES=
17775 export COLLECT_NAMES
17776fi
17777_LT_EOF
17778 ;;
17779 esac
17780
17781
17782ltmain="$ac_aux_dir/ltmain.sh"
17783
17784
17785 # We use sed instead of cat because bash on DJGPP gets confused if
17786 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17787 # text mode, it properly converts lines to CR/LF. This bash problem
17788 # is reportedly fixed, but why not run on old versions too?
17789 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17790 || (rm -f "$cfgfile"; exit 1)
17791
17792 case $xsi_shell in
17793 yes)
17794 cat << \_LT_EOF >> "$cfgfile"
17795
17796# func_dirname file append nondir_replacement
17797# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17798# otherwise set result to NONDIR_REPLACEMENT.
17799func_dirname ()
17800{
17801 case ${1} in
17802 */*) func_dirname_result="${1%/*}${2}" ;;
17803 * ) func_dirname_result="${3}" ;;
17804 esac
17805}
17806
17807# func_basename file
17808func_basename ()
17809{
17810 func_basename_result="${1##*/}"
17811}
17812
17813# func_dirname_and_basename file append nondir_replacement
17814# perform func_basename and func_dirname in a single function
17815# call:
17816# dirname: Compute the dirname of FILE. If nonempty,
17817# add APPEND to the result, otherwise set result
17818# to NONDIR_REPLACEMENT.
17819# value returned in "$func_dirname_result"
17820# basename: Compute filename of FILE.
17821# value retuned in "$func_basename_result"
17822# Implementation must be kept synchronized with func_dirname
17823# and func_basename. For efficiency, we do not delegate to
17824# those functions but instead duplicate the functionality here.
17825func_dirname_and_basename ()
17826{
17827 case ${1} in
17828 */*) func_dirname_result="${1%/*}${2}" ;;
17829 * ) func_dirname_result="${3}" ;;
17830 esac
17831 func_basename_result="${1##*/}"
17832}
17833
17834# func_stripname prefix suffix name
17835# strip PREFIX and SUFFIX off of NAME.
17836# PREFIX and SUFFIX must not contain globbing or regex special
17837# characters, hashes, percent signs, but SUFFIX may contain a leading
17838# dot (in which case that matches only a dot).
17839func_stripname ()
17840{
17841 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17842 # positional parameters, so assign one to ordinary parameter first.
17843 func_stripname_result=${3}
17844 func_stripname_result=${func_stripname_result#"${1}"}
17845 func_stripname_result=${func_stripname_result%"${2}"}
17846}
17847
17848# func_opt_split
17849func_opt_split ()
17850{
17851 func_opt_split_opt=${1%%=*}
17852 func_opt_split_arg=${1#*=}
17853}
17854
17855# func_lo2o object
17856func_lo2o ()
17857{
17858 case ${1} in
17859 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17860 *) func_lo2o_result=${1} ;;
17861 esac
17862}
17863
17864# func_xform libobj-or-source
17865func_xform ()
17866{
17867 func_xform_result=${1%.*}.lo
17868}
17869
17870# func_arith arithmetic-term...
17871func_arith ()
17872{
17873 func_arith_result=$(( $* ))
17874}
17875
17876# func_len string
17877# STRING may not start with a hyphen.
17878func_len ()
17879{
17880 func_len_result=${#1}
17881}
17882
17883_LT_EOF
17884 ;;
17885 *) # Bourne compatible functions.
17886 cat << \_LT_EOF >> "$cfgfile"
17887
17888# func_dirname file append nondir_replacement
17889# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17890# otherwise set result to NONDIR_REPLACEMENT.
17891func_dirname ()
17892{
17893 # Extract subdirectory from the argument.
17894 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17895 if test "X$func_dirname_result" = "X${1}"; then
17896 func_dirname_result="${3}"
17897 else
17898 func_dirname_result="$func_dirname_result${2}"
17899 fi
17900}
17901
17902# func_basename file
17903func_basename ()
17904{
17905 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17906}
17907
17908
17909# func_stripname prefix suffix name
17910# strip PREFIX and SUFFIX off of NAME.
17911# PREFIX and SUFFIX must not contain globbing or regex special
17912# characters, hashes, percent signs, but SUFFIX may contain a leading
17913# dot (in which case that matches only a dot).
17914# func_strip_suffix prefix name
17915func_stripname ()
17916{
17917 case ${2} in
17918 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17919 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17920 esac
17921}
17922
17923# sed scripts:
17924my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17925my_sed_long_arg='1s/^-[^=]*=//'
17926
17927# func_opt_split
17928func_opt_split ()
17929{
17930 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17931 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17932}
17933
17934# func_lo2o object
17935func_lo2o ()
17936{
17937 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17938}
17939
17940# func_xform libobj-or-source
17941func_xform ()
17942{
17943 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17944}
17945
17946# func_arith arithmetic-term...
17947func_arith ()
17948{
17949 func_arith_result=`expr "$@"`
17950}
17951
17952# func_len string
17953# STRING may not start with a hyphen.
17954func_len ()
17955{
17956 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17957}
17958
17959_LT_EOF
17960esac
17961
17962case $lt_shell_append in
17963 yes)
17964 cat << \_LT_EOF >> "$cfgfile"
17965
17966# func_append var value
17967# Append VALUE to the end of shell variable VAR.
17968func_append ()
17969{
17970 eval "$1+=\$2"
17971}
17972_LT_EOF
17973 ;;
17974 *)
17975 cat << \_LT_EOF >> "$cfgfile"
17976
17977# func_append var value
17978# Append VALUE to the end of shell variable VAR.
17979func_append ()
17980{
17981 eval "$1=\$$1\$2"
17982}
17983
17984_LT_EOF
17985 ;;
17986 esac
17987
17988
17989 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17990 || (rm -f "$cfgfile"; exit 1)
17991
17992 mv -f "$cfgfile" "$ofile" ||
17993 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17994 chmod +x "$ofile"
17995
17996
17997 cat <<_LT_EOF >> "$ofile"
17998
17999# ### BEGIN LIBTOOL TAG CONFIG: D
18000
18001# The linker used to build libraries.
18002LD=$lt_LD_D
18003
18004# How to create reloadable object files.
18005reload_flag=$lt_reload_flag_D
18006reload_cmds=$lt_reload_cmds_D
18007
18008# Commands used to build an old-style archive.
18009old_archive_cmds=$lt_old_archive_cmds_D
18010
18011# A language specific compiler.
18012CC=$lt_compiler_D
18013
18014# Is the compiler the GNU compiler?
18015with_gcc=$GCC_D
18016
18017# Compiler flag to turn off builtin functions.
18018no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18019
18020# How to pass a linker flag through the compiler.
18021wl=$lt_lt_prog_compiler_wl_D
18022
18023# Additional compiler flags for building library objects.
18024pic_flag=$lt_lt_prog_compiler_pic_D
18025
18026# Compiler flag to prevent dynamic linking.
18027link_static_flag=$lt_lt_prog_compiler_static_D
18028
18029# Does compiler simultaneously support -c and -o options?
18030compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18031
18032# Whether or not to add -lc for building shared libraries.
18033build_libtool_need_lc=$archive_cmds_need_lc_D
18034
18035# Whether or not to disallow shared libs when runtime libs are static.
18036allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18037
18038# Compiler flag to allow reflexive dlopens.
18039export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18040
18041# Compiler flag to generate shared objects directly from archives.
18042whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18043
18044# Whether the compiler copes with passing no objects directly.
18045compiler_needs_object=$lt_compiler_needs_object_D
18046
18047# Create an old-style archive from a shared archive.
18048old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18049
18050# Create a temporary old-style archive to link instead of a shared archive.
18051old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18052
18053# Commands used to build a shared archive.
18054archive_cmds=$lt_archive_cmds_D
18055archive_expsym_cmds=$lt_archive_expsym_cmds_D
18056
18057# Commands used to build a loadable module if different from building
18058# a shared archive.
18059module_cmds=$lt_module_cmds_D
18060module_expsym_cmds=$lt_module_expsym_cmds_D
18061
18062# Whether we are building with GNU ld or not.
18063with_gnu_ld=$lt_with_gnu_ld_D
18064
18065# Flag that allows shared libraries with undefined symbols to be built.
18066allow_undefined_flag=$lt_allow_undefined_flag_D
18067
18068# Flag that enforces no undefined symbols.
18069no_undefined_flag=$lt_no_undefined_flag_D
18070
18071# Flag to hardcode \$libdir into a binary during linking.
18072# This must work even if \$libdir does not exist
18073hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18074
18075# If ld is used when linking, flag to hardcode \$libdir into a binary
18076# during linking. This must work even if \$libdir does not exist.
18077hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18078
18079# Whether we need a single "-rpath" flag with a separated argument.
18080hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18081
18082# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18083# DIR into the resulting binary.
18084hardcode_direct=$hardcode_direct_D
18085
18086# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18087# DIR into the resulting binary and the resulting library dependency is
18088# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18089# library is relocated.
18090hardcode_direct_absolute=$hardcode_direct_absolute_D
18091
18092# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18093# into the resulting binary.
18094hardcode_minus_L=$hardcode_minus_L_D
18095
18096# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18097# into the resulting binary.
18098hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18099
18100# Set to "yes" if building a shared library automatically hardcodes DIR
18101# into the library and all subsequent libraries and executables linked
18102# against it.
18103hardcode_automatic=$hardcode_automatic_D
18104
18105# Set to yes if linker adds runtime paths of dependent libraries
18106# to runtime path list.
18107inherit_rpath=$inherit_rpath_D
18108
18109# Whether libtool must link a program against all its dependency libraries.
18110link_all_deplibs=$link_all_deplibs_D
18111
18112# Fix the shell variable \$srcfile for the compiler.
18113fix_srcfile_path=$lt_fix_srcfile_path_D
18114
18115# Set to "yes" if exported symbols are required.
18116always_export_symbols=$always_export_symbols_D
18117
18118# The commands to list exported symbols.
18119export_symbols_cmds=$lt_export_symbols_cmds_D
18120
18121# Symbols that should not be listed in the preloaded symbols.
18122exclude_expsyms=$lt_exclude_expsyms_D
18123
18124# Symbols that must always be exported.
18125include_expsyms=$lt_include_expsyms_D
18126
18127# Commands necessary for linking programs (against libraries) with templates.
18128prelink_cmds=$lt_prelink_cmds_D
18129
18130# Specify filename containing input files.
18131file_list_spec=$lt_file_list_spec_D
18132
18133# How to hardcode a shared library path into an executable.
18134hardcode_action=$hardcode_action_D
18135
18136# ### END LIBTOOL TAG CONFIG: D
18137_LT_EOF
18138
18139 ;;
18140 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
Iain Buclawac677522018-11-02 08:29:50 +000018141 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18142s!`test -f '$<' || echo '$(srcdir)/'`!!
Iain Buclawb4c522f2018-10-28 19:51:47 +000018143_EOF
Iain Buclawac677522018-11-02 08:29:50 +000018144 sed -f vpsed$$ $ac_file > tmp$$
18145 mv tmp$$ $ac_file
18146 rm vpsed$$
18147 echo 'MULTISUBDIR =' >> $ac_file
18148 ml_norecursion=yes
18149 . ${multi_basedir}/config-ml.in
18150 { ml_norecursion=; unset ml_norecursion;}
18151 ;;
18152 "src/Makefile":F) cat > vpsed$$ << \_EOF
18153s!`test -f '$<' || echo '$(srcdir)/'`!!
18154_EOF
18155 sed -f vpsed$$ $ac_file > tmp$$
18156 mv tmp$$ $ac_file
18157 rm vpsed$$
18158 echo 'MULTISUBDIR =' >> $ac_file
18159 ml_norecursion=yes
18160 . ${multi_basedir}/config-ml.in
18161 { ml_norecursion=; unset ml_norecursion;}
18162 ;;
18163 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18164s!`test -f '$<' || echo '$(srcdir)/'`!!
18165_EOF
18166 sed -f vpsed$$ $ac_file > tmp$$
18167 mv tmp$$ $ac_file
18168 rm vpsed$$
18169 echo 'MULTISUBDIR =' >> $ac_file
18170 ml_norecursion=yes
18171 . ${multi_basedir}/config-ml.in
18172 { ml_norecursion=; unset ml_norecursion;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000018173 ;;
18174
18175 esac
18176done # for ac_tag
18177
18178
18179as_fn_exit 0
18180_ACEOF
18181ac_clean_files=$ac_clean_files_save
18182
18183test $ac_write_fail = 0 ||
Joseph Myers22e05272018-10-31 17:03:16 +000018184 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000018185
18186
18187# configure is writing to config.log, and then calls config.status.
18188# config.status does its own redirection, appending to config.log.
18189# Unfortunately, on DOS this fails, as config.log is still kept open
18190# by configure, so config.status won't be able to write to it; its
18191# output is simply discarded. So we exec the FD to /dev/null,
18192# effectively closing config.log, so it can be properly (re)opened and
18193# appended to by config.status. When coming back to configure, we
18194# need to make the FD available again.
18195if test "$no_create" != yes; then
18196 ac_cs_success=:
18197 ac_config_status_args=
18198 test "$silent" = yes &&
18199 ac_config_status_args="$ac_config_status_args --quiet"
18200 exec 5>/dev/null
18201 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18202 exec 5>>config.log
18203 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18204 # would make configure fail if this is the last instruction.
Joseph Myers22e05272018-10-31 17:03:16 +000018205 $ac_cs_success || as_fn_exit 1
Iain Buclawb4c522f2018-10-28 19:51:47 +000018206fi
18207if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18209$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18210fi
18211