blob: e461c7442b29fef77abd759a7037484d9489fa61 [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
725RANLIB
726MAINT
727MAINTAINER_MODE_FALSE
728MAINTAINER_MODE_TRUE
729GDCFLAGS
730GDC
731CCASFLAGS
732CCAS
Joseph Myers22e05272018-10-31 17:03:16 +0000733AM_BACKSLASH
734AM_DEFAULT_VERBOSITY
735AM_DEFAULT_V
736AM_V
Iain Buclawb4c522f2018-10-28 19:51:47 +0000737am__untar
738am__tar
739AMTAR
740am__leading_dot
741SET_MAKE
742AWK
743mkdir_p
744MKDIR_P
745INSTALL_STRIP_PROGRAM
746STRIP
747install_sh
748MAKEINFO
749AUTOHEADER
750AUTOMAKE
751AUTOCONF
752ACLOCAL
753VERSION
754PACKAGE
755CYGPATH_W
756am__isrc
757INSTALL_DATA
758INSTALL_SCRIPT
759INSTALL_PROGRAM
Rainer Orth235d1c42019-04-14 09:30:42 +0000760EGREP
761GREP
762CPP
763OBJEXT
764EXEEXT
765ac_ct_CC
766CPPFLAGS
767LDFLAGS
768CFLAGS
769CC
Iain Buclawb4c522f2018-10-28 19:51:47 +0000770target_os
771target_vendor
772target_cpu
773target
774host_os
775host_vendor
776host_cpu
777host
778build_os
779build_vendor
780build_cpu
781build
782multi_basedir
783target_alias
784host_alias
785build_alias
786LIBS
787ECHO_T
788ECHO_N
789ECHO_C
790DEFS
791mandir
792localedir
793libdir
794psdir
795pdfdir
796dvidir
797htmldir
798infodir
799docdir
800oldincludedir
801includedir
802localstatedir
803sharedstatedir
804sysconfdir
805datadir
806datarootdir
807libexecdir
808sbindir
809bindir
810program_transform_name
811prefix
812exec_prefix
813PACKAGE_URL
814PACKAGE_BUGREPORT
815PACKAGE_STRING
816PACKAGE_VERSION
817PACKAGE_TARNAME
818PACKAGE_NAME
819PATH_SEPARATOR
820SHELL'
Rainer Orth0b6e3122019-02-14 17:47:49 +0000821ac_subst_files='DRTSTUFF_SPEC'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000822ac_user_opts='
823enable_option_checking
824enable_multilib
Joseph Myers22e05272018-10-31 17:03:16 +0000825enable_silent_rules
Iain Buclawb4c522f2018-10-28 19:51:47 +0000826enable_maintainer_mode
827enable_shared
828enable_static
829with_pic
830enable_fast_install
831with_gnu_ld
832enable_libtool_lock
833with_gcc_major_version_only
834enable_werror
Iain Buclawb4c522f2018-10-28 19:51:47 +0000835with_libatomic
836with_libbacktrace
837with_target_system_zlib
838with_cross_host
Iain Buclawac677522018-11-02 08:29:50 +0000839enable_version_specific_runtime_libs
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +0000840with_toolexeclibdir
Rainer Orthbca0a322019-05-07 10:38:45 +0000841enable_libphobos
Iain Buclaw371d1012020-04-20 18:50:36 +0200842with_libphobos_druntime_only
Iain Buclawc0dbfbd2020-04-09 00:41:14 +0200843enable_libphobos_checking
Iain Buclawb4c522f2018-10-28 19:51:47 +0000844'
845 ac_precious_vars='build_alias
846host_alias
847target_alias
Rainer Orth235d1c42019-04-14 09:30:42 +0000848CC
849CFLAGS
850LDFLAGS
851LIBS
852CPPFLAGS
853CPP'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000854
855
856# Initialize some variables set by options.
857ac_init_help=
858ac_init_version=false
859ac_unrecognized_opts=
860ac_unrecognized_sep=
861# The variables have the same names as the options, with
862# dashes changed to underlines.
863cache_file=/dev/null
864exec_prefix=NONE
865no_create=
866no_recursion=
867prefix=NONE
868program_prefix=NONE
869program_suffix=NONE
870program_transform_name=s,x,x,
871silent=
872site=
873srcdir=
874verbose=
875x_includes=NONE
876x_libraries=NONE
877
878# Installation directory options.
879# These are left unexpanded so users can "make install exec_prefix=/foo"
880# and all the variables that are supposed to be based on exec_prefix
881# by default will actually change.
882# Use braces instead of parens because sh, perl, etc. also accept them.
883# (The list follows the same order as the GNU Coding Standards.)
884bindir='${exec_prefix}/bin'
885sbindir='${exec_prefix}/sbin'
886libexecdir='${exec_prefix}/libexec'
887datarootdir='${prefix}/share'
888datadir='${datarootdir}'
889sysconfdir='${prefix}/etc'
890sharedstatedir='${prefix}/com'
891localstatedir='${prefix}/var'
892includedir='${prefix}/include'
893oldincludedir='/usr/include'
894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895infodir='${datarootdir}/info'
896htmldir='${docdir}'
897dvidir='${docdir}'
898pdfdir='${docdir}'
899psdir='${docdir}'
900libdir='${exec_prefix}/lib'
901localedir='${datarootdir}/locale'
902mandir='${datarootdir}/man'
903
904ac_prev=
905ac_dashdash=
906for ac_option
907do
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
913 fi
914
915 case $ac_option in
Joseph Myers22e05272018-10-31 17:03:16 +0000916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *=) ac_optarg= ;;
918 *) ac_optarg=yes ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +0000919 esac
920
921 # Accept the important Cygnus configure options, so we can diagnose typos.
922
923 case $ac_dashdash$ac_option in
924 --)
925 ac_dashdash=yes ;;
926
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 ac_prev=bindir ;;
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 bindir=$ac_optarg ;;
931
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
936
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
943
944 --config-cache | -C)
945 cache_file=config.cache ;;
946
947 -datadir | --datadir | --datadi | --datad)
948 ac_prev=datadir ;;
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
951
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
958
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000963 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968"enable_$ac_useropt"
969"*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=no ;;
974
975 -docdir | --docdir | --docdi | --doc | --do)
976 ac_prev=docdir ;;
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 docdir=$ac_optarg ;;
979
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 ac_prev=dvidir ;;
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 dvidir=$ac_optarg ;;
984
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000989 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994"enable_$ac_useropt"
995"*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1009
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1012 with_gas=yes ;;
1013
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1020
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1025
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 ac_prev=htmldir ;;
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 | --ht=*)
1030 htmldir=$ac_optarg ;;
1031
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1038
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 ac_prev=infodir ;;
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1043
1044 -libdir | --libdir | --libdi | --libd)
1045 ac_prev=libdir ;;
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1048
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1055
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1060
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1067
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 ac_prev=mandir ;;
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1072
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1075 with_fp=no ;;
1076
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1079 no_create=yes ;;
1080
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 no_recursion=yes ;;
1084
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1093
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 ac_prev=prefix ;;
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1098
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1105
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1112
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1129
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 ac_prev=pdfdir ;;
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1134
1135 -psdir | --psdir | --psdi | --psd | --ps)
1136 ac_prev=psdir ;;
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 psdir=$ac_optarg ;;
1139
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1142 silent=yes ;;
1143
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 ac_prev=sbindir ;;
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 | --sbi=* | --sb=*)
1148 sbindir=$ac_optarg ;;
1149
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1153 | --sha | --sh)
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 | --sha=* | --sh=*)
1159 sharedstatedir=$ac_optarg ;;
1160
1161 -site | --site | --sit)
1162 ac_prev=site ;;
1163 -site=* | --site=* | --sit=*)
1164 site=$ac_optarg ;;
1165
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 ac_prev=srcdir ;;
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1170
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1177
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1182
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 verbose=yes ;;
1185
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1188
1189 -with-* | --with-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001193 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198"with_$ac_useropt"
1199"*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=\$ac_optarg ;;
1204
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001209 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214"with_$ac_useropt"
1215"*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=no ;;
1220
1221 --x)
1222 # Obsolete; use --with-x.
1223 with_x=yes ;;
1224
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1231
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1238
Joseph Myers22e05272018-10-31 17:03:16 +00001239 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240Try \`$0 --help' for more information"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001241 ;;
1242
1243 *=*)
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' | [0-9]* | *[!_$as_cr_alnum]* )
Joseph Myers22e05272018-10-31 17:03:16 +00001248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001249 esac
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1252
1253 *)
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Joseph Myers22e05272018-10-31 17:03:16 +00001258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001259 ;;
1260
1261 esac
1262done
1263
1264if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00001266 as_fn_error $? "missing argument to $ac_option"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001267fi
1268
1269if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1271 no) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00001272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 esac
1275fi
1276
1277# Check all directory arguments for consistency.
1278for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Iain Buclawd8b1f492019-02-10 22:10:22 +00001281 libdir localedir mandir
Iain Buclawb4c522f2018-10-28 19:51:47 +00001282do
1283 eval ac_val=\$$ac_var
1284 # Remove trailing slashes.
1285 case $ac_val in
1286 */ )
1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\$ac_val;;
1289 esac
1290 # Be sure to have absolute directory names.
1291 case $ac_val in
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294 esac
Joseph Myers22e05272018-10-31 17:03:16 +00001295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001296done
1297
1298# There might be people who depend on the old broken behavior: `$host'
1299# used to hold the argument of --host etc.
1300# FIXME: To remove some day.
1301build=$build_alias
1302host=$host_alias
1303target=$target_alias
1304
1305# FIXME: To remove some day.
1306if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
Iain Buclawb4c522f2018-10-28 19:51:47 +00001309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1311 fi
1312fi
1313
1314ac_tool_prefix=
1315test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317test "$silent" = yes && exec 6>/dev/null
1318
1319
1320ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321ac_ls_di=`ls -di .` &&
1322ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Joseph Myers22e05272018-10-31 17:03:16 +00001323 as_fn_error $? "working directory cannot be determined"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001324test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Joseph Myers22e05272018-10-31 17:03:16 +00001325 as_fn_error $? "pwd does not report name of working directory"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001326
1327
1328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337$as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359else
1360 ac_srcdir_defaulted=no
1361fi
1362if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Joseph Myers22e05272018-10-31 17:03:16 +00001364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001365fi
1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367ac_abs_confdir=`(
Joseph Myers22e05272018-10-31 17:03:16 +00001368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001369 pwd)`
1370# When building in place, set srcdir=.
1371if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 srcdir=.
1373fi
1374# Remove unnecessary trailing slashes from srcdir.
1375# Double slashes in file names in object file debugging info
1376# mess up M-x gdb in Emacs.
1377case $srcdir in
1378*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379esac
1380for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385done
1386
1387#
1388# Report the --help message.
1389#
1390if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1395
1396Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401Defaults for the options are specified in brackets.
1402
1403Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
Joseph Myers22e05272018-10-31 17:03:16 +00001408 -q, --quiet, --silent do not print \`checking ...' messages
Iain Buclawb4c522f2018-10-28 19:51:47 +00001409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413
1414Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1419
1420By default, \`make install' will install all the files in
1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423for instance \`--prefix=\$HOME'.
1424
1425For better control, use the options below.
1426
1427Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447_ACEOF
1448
1449 cat <<\_ACEOF
1450
1451Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
1456System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 --target=TARGET configure for building compilers for TARGET [HOST]
1460_ACEOF
1461fi
1462
1463if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of package-unused version-unused:";;
1466 esac
1467 cat <<\_ACEOF
1468
1469Optional Features:
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --enable-multilib build many library versions (default)
Joseph Myers22e05272018-10-31 17:03:16 +00001474 --enable-silent-rules less verbose build output (undo: "make V=1")
1475 --disable-silent-rules verbose build output (undo: "make V=0")
1476 --enable-maintainer-mode
1477 enable make rules and dependencies not useful (and
1478 sometimes confusing) to the casual installer
Iain Buclawb4c522f2018-10-28 19:51:47 +00001479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-static[=PKGS] build static libraries [default=yes]
1481 --enable-fast-install[=PKGS]
1482 optimize for fast installation [default=yes]
1483 --disable-libtool-lock avoid locking (might break parallel builds)
1484 --enable-werror turns on -Werror [default=no]
Iain Buclawac677522018-11-02 08:29:50 +00001485 --enable-version-specific-runtime-libs
1486 Specify that runtime libraries should be installed
1487 in a compiler-specific directory
Rainer Orthbca0a322019-05-07 10:38:45 +00001488 --enable-libphobos Enable libphobos
Iain Buclawc0dbfbd2020-04-09 00:41:14 +02001489 --enable-libphobos-checking[=LIST]
1490 enable expensive run-time checks. With LIST, enable
1491 only specific categories of checks. Categories are:
1492 yes,no,all,none,release. Flags are: assert or other
1493 strings
Iain Buclawb4c522f2018-10-28 19:51:47 +00001494
1495Optional Packages:
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-pic try to use only PIC/non-PIC objects [default=use
1499 both]
1500 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1501 --with-gcc-major-version-only
1502 use only GCC major number in filesystem paths
1503 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1504 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1505 auto)
Iain Buclawbb503122019-04-12 20:13:34 +00001506 --with-target-system-zlib={yes,no,auto}
Iain Buclawb4c522f2018-10-28 19:51:47 +00001507 use installed libz (default: no)
1508 --with-cross-host=HOST configuring with a cross compiler
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +00001509 --with-toolexeclibdir=DIR
1510 install libraries built with a cross compiler within
1511 DIR
Iain Buclaw261bd782020-03-25 09:38:58 +01001512 --with-libphobos-druntime-only={yes,no,auto}
1513 build only the druntime library (default: auto)
Iain Buclawb4c522f2018-10-28 19:51:47 +00001514
1515Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
Joseph Myers22e05272018-10-31 17:03:16 +00001521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Iain Buclawb4c522f2018-10-28 19:51:47 +00001522 you have headers in a nonstandard directory <include dir>
Rainer Orth235d1c42019-04-14 09:30:42 +00001523 CPP C preprocessor
Iain Buclawb4c522f2018-10-28 19:51:47 +00001524 CCAS assembler compiler command (defaults to CC)
1525 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1526 GDC D compiler command
1527 GDCFLAGS D compiler flags
Iain Buclawb4c522f2018-10-28 19:51:47 +00001528
1529Use these variables to override the choices made by `configure' or to help
1530it to find libraries and programs with nonstandard names/locations.
1531
1532Report bugs to the package provider.
1533_ACEOF
1534ac_status=$?
1535fi
1536
1537if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 continue
1543 ac_builddir=.
1544
1545case "$ac_dir" in
1546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547*)
1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 esac ;;
1555esac
1556ac_abs_top_builddir=$ac_pwd
1557ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558# for backward compatibility:
1559ac_top_builddir=$ac_top_build_prefix
1560
1561case $srcdir in
1562 .) # We are building in place.
1563 ac_srcdir=.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1570 *) # Relative name.
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574esac
1575ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1585 else
1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587 fi || ac_status=$?
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1589 done
1590fi
1591
1592test -n "$ac_init_help" && exit $ac_status
1593if $ac_init_version; then
1594 cat <<\_ACEOF
1595package-unused configure version-unused
Joseph Myers22e05272018-10-31 17:03:16 +00001596generated by GNU Autoconf 2.69
Iain Buclawb4c522f2018-10-28 19:51:47 +00001597
Rainer Orth0b6e3122019-02-14 17:47:49 +00001598Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +00001599This configure script is free software; the Free Software Foundation
1600gives unlimited permission to copy, distribute and modify it.
1601_ACEOF
1602 exit
1603fi
1604
1605## ------------------------ ##
1606## Autoconf initialization. ##
1607## ------------------------ ##
1608
1609# ac_fn_c_try_compile LINENO
1610# --------------------------
1611# Try to compile conftest.$ac_ext, and return whether this succeeded.
1612ac_fn_c_try_compile ()
1613{
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext
1616 if { { ac_try="$ac_compile"
1617case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_compile") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext; then :
1635 ac_retval=0
1636else
1637 $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641fi
Joseph Myers22e05272018-10-31 17:03:16 +00001642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001644
1645} # ac_fn_c_try_compile
1646
Iain Buclawb4c522f2018-10-28 19:51:47 +00001647# ac_fn_c_try_cpp LINENO
1648# ----------------------
1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_cpp ()
1651{
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_cpp conftest.$ac_ext"
1654case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00001668 test $ac_status = 0; } > conftest.i && {
Iain Buclawb4c522f2018-10-28 19:51:47 +00001669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 }; then :
1672 ac_retval=0
1673else
1674 $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678fi
Joseph Myers22e05272018-10-31 17:03:16 +00001679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001681
1682} # ac_fn_c_try_cpp
1683
Iain Buclawb4c522f2018-10-28 19:51:47 +00001684# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1685# -------------------------------------------------------
1686# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1687# the include files in INCLUDES and setting the cache variable VAR
1688# accordingly.
1689ac_fn_c_check_header_mongrel ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Joseph Myers22e05272018-10-31 17:03:16 +00001692 if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001695if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001696 $as_echo_n "(cached) " >&6
1697fi
1698eval ac_res=\$$3
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700$as_echo "$ac_res" >&6; }
1701else
1702 # Is the header compilable?
1703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1704$as_echo_n "checking $2 usability... " >&6; }
1705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h. */
1707$4
1708#include <$2>
1709_ACEOF
1710if ac_fn_c_try_compile "$LINENO"; then :
1711 ac_header_compiler=yes
1712else
1713 ac_header_compiler=no
1714fi
1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1717$as_echo "$ac_header_compiler" >&6; }
1718
1719# Is the header present?
1720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1721$as_echo_n "checking $2 presence... " >&6; }
1722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723/* end confdefs.h. */
1724#include <$2>
1725_ACEOF
1726if ac_fn_c_try_cpp "$LINENO"; then :
1727 ac_header_preproc=yes
1728else
1729 ac_header_preproc=no
1730fi
Joseph Myers22e05272018-10-31 17:03:16 +00001731rm -f conftest.err conftest.i conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00001732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1733$as_echo "$ac_header_preproc" >&6; }
1734
1735# So? What about this header?
1736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1737 yes:no: )
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1739$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1741$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1742 ;;
1743 no:yes:* )
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1745$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1747$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1749$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1751$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754 ;;
1755esac
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001758if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001759 $as_echo_n "(cached) " >&6
1760else
1761 eval "$3=\$ac_header_compiler"
1762fi
1763eval ac_res=\$$3
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765$as_echo "$ac_res" >&6; }
1766fi
Joseph Myers22e05272018-10-31 17:03:16 +00001767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Iain Buclawb4c522f2018-10-28 19:51:47 +00001768
1769} # ac_fn_c_check_header_mongrel
Rainer Orth235d1c42019-04-14 09:30:42 +00001770
1771# ac_fn_c_try_run LINENO
1772# ----------------------
1773# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774# that executables *can* be run.
1775ac_fn_c_try_run ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1779case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1786 ac_status=$?
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1796 ac_status=$?
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1799 ac_retval=0
1800else
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=$ac_status
1806fi
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_run
1812
1813# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1814# -------------------------------------------------------
1815# Tests whether HEADER exists and can be compiled using the include files in
1816# INCLUDES, setting the cache variable VAR accordingly.
1817ac_fn_c_check_header_compile ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h. */
1827$4
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"; then :
1831 eval "$3=yes"
1832else
1833 eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836fi
1837eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842} # ac_fn_c_check_header_compile
1843
1844# ac_fn_d_try_compile LINENO
1845# --------------------------
1846# Try to compile conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_d_try_compile ()
1848{
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext
1851 if { { ac_try="$ac_compile"
1852case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_compile") 2>conftest.err
1859 ac_status=$?
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1864 fi
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_d_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest.$ac_objext; then :
1870 ac_retval=0
1871else
1872 $as_echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=1
1876fi
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1879
1880} # ac_fn_d_try_compile
1881
1882# ac_fn_c_try_link LINENO
1883# -----------------------
1884# Try to link conftest.$ac_ext, and return whether this succeeded.
1885ac_fn_c_try_link ()
1886{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext conftest$ac_exeext
1889 if { { ac_try="$ac_link"
1890case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893esac
1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895$as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>conftest.err
1897 ac_status=$?
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1902 fi
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest$ac_exeext && {
1908 test "$cross_compiling" = yes ||
1909 test -x conftest$ac_exeext
1910 }; then :
1911 ac_retval=0
1912else
1913 $as_echo "$as_me: failed program was:" >&5
1914sed 's/^/| /' conftest.$ac_ext >&5
1915
1916 ac_retval=1
1917fi
1918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1920 # interfere with the next link command; also delete a directory that is
1921 # left behind by Apple's compiler. We do this before executing the actions.
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1925
1926} # ac_fn_c_try_link
1927
1928# ac_fn_c_check_func LINENO FUNC VAR
1929# ----------------------------------
1930# Tests whether FUNC exists, setting the cache variable VAR accordingly
1931ac_fn_c_check_func ()
1932{
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
1936if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h. */
1941/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943#define $2 innocuous_$2
1944
1945/* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1949
1950#ifdef __STDC__
1951# include <limits.h>
1952#else
1953# include <assert.h>
1954#endif
1955
1956#undef $2
1957
1958/* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961#ifdef __cplusplus
1962extern "C"
1963#endif
1964char $2 ();
1965/* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968#if defined __stub_$2 || defined __stub___$2
1969choke me
1970#endif
1971
1972int
1973main ()
1974{
1975return $2 ();
1976 ;
1977 return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_link "$LINENO"; then :
1981 eval "$3=yes"
1982else
1983 eval "$3=no"
1984fi
1985rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1987fi
1988eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993} # ac_fn_c_check_func
1994
1995# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1996# ----------------------------------------------------
1997# Tries to find if the field MEMBER exists in type AGGR, after including
1998# INCLUDES, setting cache variable VAR accordingly.
1999ac_fn_c_check_member ()
2000{
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2003$as_echo_n "checking for $2.$3... " >&6; }
2004if eval \${$4+:} false; then :
2005 $as_echo_n "(cached) " >&6
2006else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h. */
2009$5
2010int
2011main ()
2012{
2013static $2 ac_aggr;
2014if (ac_aggr.$3)
2015return 0;
2016 ;
2017 return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"; then :
2021 eval "$4=yes"
2022else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025$5
2026int
2027main ()
2028{
2029static $2 ac_aggr;
2030if (sizeof ac_aggr.$3)
2031return 0;
2032 ;
2033 return 0;
2034}
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037 eval "$4=yes"
2038else
2039 eval "$4=no"
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042fi
2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044fi
2045eval ac_res=\$$4
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047$as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050} # ac_fn_c_check_member
2051
2052# ac_fn_d_try_link LINENO
2053# -----------------------
2054# Try to link conftest.$ac_ext, and return whether this succeeded.
2055ac_fn_d_try_link ()
2056{
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 rm -f conftest.$ac_objext conftest$ac_exeext
2059 if { { ac_try="$ac_link"
2060case "(($ac_try" in
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2063esac
2064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065$as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_link") 2>conftest.err
2067 ac_status=$?
2068 if test -s conftest.err; then
2069 grep -v '^ *+' conftest.err >conftest.er1
2070 cat conftest.er1 >&5
2071 mv -f conftest.er1 conftest.err
2072 fi
2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074 test $ac_status = 0; } && {
2075 test -z "$ac_d_werror_flag" ||
2076 test ! -s conftest.err
2077 } && test -s conftest$ac_exeext && {
2078 test "$cross_compiling" = yes ||
2079 test -x conftest$ac_exeext
2080 }; then :
2081 ac_retval=0
2082else
2083 $as_echo "$as_me: failed program was:" >&5
2084sed 's/^/| /' conftest.$ac_ext >&5
2085
2086 ac_retval=1
2087fi
2088 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2089 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2090 # interfere with the next link command; also delete a directory that is
2091 # left behind by Apple's compiler. We do this before executing the actions.
2092 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094 as_fn_set_status $ac_retval
2095
2096} # ac_fn_d_try_link
Iain Buclawb4c522f2018-10-28 19:51:47 +00002097cat >config.log <<_ACEOF
2098This file contains any messages produced by compilers while
2099running configure, to aid debugging if configure makes a mistake.
2100
2101It was created by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +00002102generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +00002103
2104 $ $0 $@
2105
2106_ACEOF
2107exec 5>>config.log
2108{
2109cat <<_ASUNAME
2110## --------- ##
2111## Platform. ##
2112## --------- ##
2113
2114hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2115uname -m = `(uname -m) 2>/dev/null || echo unknown`
2116uname -r = `(uname -r) 2>/dev/null || echo unknown`
2117uname -s = `(uname -s) 2>/dev/null || echo unknown`
2118uname -v = `(uname -v) 2>/dev/null || echo unknown`
2119
2120/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2121/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2122
2123/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2124/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2125/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2126/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2127/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2128/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2129/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2130
2131_ASUNAME
2132
2133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 $as_echo "PATH: $as_dir"
2139 done
2140IFS=$as_save_IFS
2141
2142} >&5
2143
2144cat >&5 <<_ACEOF
2145
2146
2147## ----------- ##
2148## Core tests. ##
2149## ----------- ##
2150
2151_ACEOF
2152
2153
2154# Keep a trace of the command line.
2155# Strip out --no-create and --no-recursion so they do not pile up.
2156# Strip out --silent because we don't want to record it for future runs.
2157# Also quote any args containing shell meta-characters.
2158# Make two passes to allow for proper duplicate-argument suppression.
2159ac_configure_args=
2160ac_configure_args0=
2161ac_configure_args1=
2162ac_must_keep_next=false
2163for ac_pass in 1 2
2164do
2165 for ac_arg
2166 do
2167 case $ac_arg in
2168 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2170 | -silent | --silent | --silen | --sile | --sil)
2171 continue ;;
2172 *\'*)
2173 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2174 esac
2175 case $ac_pass in
2176 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2177 2)
2178 as_fn_append ac_configure_args1 " '$ac_arg'"
2179 if test $ac_must_keep_next = true; then
2180 ac_must_keep_next=false # Got value, back to normal.
2181 else
2182 case $ac_arg in
2183 *=* | --config-cache | -C | -disable-* | --disable-* \
2184 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2185 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2186 | -with-* | --with-* | -without-* | --without-* | --x)
2187 case "$ac_configure_args0 " in
2188 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2189 esac
2190 ;;
2191 -* ) ac_must_keep_next=true ;;
2192 esac
2193 fi
2194 as_fn_append ac_configure_args " '$ac_arg'"
2195 ;;
2196 esac
2197 done
2198done
2199{ ac_configure_args0=; unset ac_configure_args0;}
2200{ ac_configure_args1=; unset ac_configure_args1;}
2201
2202# When interrupted or exit'd, cleanup temporary files, and complete
2203# config.log. We remove comments because anyway the quotes in there
2204# would cause problems or look ugly.
2205# WARNING: Use '\'' to represent an apostrophe within the trap.
2206# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2207trap 'exit_status=$?
2208 # Save into config.log some information that might help in debugging.
2209 {
2210 echo
2211
Joseph Myers22e05272018-10-31 17:03:16 +00002212 $as_echo "## ---------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002213## Cache variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002214## ---------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002215 echo
2216 # The following way of writing the cache mishandles newlines in values,
2217(
2218 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2219 eval ac_val=\$$ac_var
2220 case $ac_val in #(
2221 *${as_nl}*)
2222 case $ac_var in #(
2223 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2224$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2225 esac
2226 case $ac_var in #(
2227 _ | IFS | as_nl) ;; #(
2228 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2229 *) { eval $ac_var=; unset $ac_var;} ;;
2230 esac ;;
2231 esac
2232 done
2233 (set) 2>&1 |
2234 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2235 *${as_nl}ac_space=\ *)
2236 sed -n \
2237 "s/'\''/'\''\\\\'\'''\''/g;
2238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2239 ;; #(
2240 *)
2241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2242 ;;
2243 esac |
2244 sort
2245)
2246 echo
2247
Joseph Myers22e05272018-10-31 17:03:16 +00002248 $as_echo "## ----------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002249## Output variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002250## ----------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002251 echo
2252 for ac_var in $ac_subst_vars
2253 do
2254 eval ac_val=\$$ac_var
2255 case $ac_val in
2256 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 esac
2258 $as_echo "$ac_var='\''$ac_val'\''"
2259 done | sort
2260 echo
2261
2262 if test -n "$ac_subst_files"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002263 $as_echo "## ------------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002264## File substitutions. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002265## ------------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002266 echo
2267 for ac_var in $ac_subst_files
2268 do
2269 eval ac_val=\$$ac_var
2270 case $ac_val in
2271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272 esac
2273 $as_echo "$ac_var='\''$ac_val'\''"
2274 done | sort
2275 echo
2276 fi
2277
2278 if test -s confdefs.h; then
Joseph Myers22e05272018-10-31 17:03:16 +00002279 $as_echo "## ----------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002280## confdefs.h. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002281## ----------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002282 echo
2283 cat confdefs.h
2284 echo
2285 fi
2286 test "$ac_signal" != 0 &&
2287 $as_echo "$as_me: caught signal $ac_signal"
2288 $as_echo "$as_me: exit $exit_status"
2289 } >&5
2290 rm -f core *.core core.conftest.* &&
2291 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2292 exit $exit_status
2293' 0
2294for ac_signal in 1 2 13 15; do
2295 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2296done
2297ac_signal=0
2298
2299# confdefs.h avoids OS command line length limits that DEFS can exceed.
2300rm -f -r conftest* confdefs.h
2301
2302$as_echo "/* confdefs.h */" > confdefs.h
2303
2304# Predefined preprocessor variables.
2305
2306cat >>confdefs.h <<_ACEOF
2307#define PACKAGE_NAME "$PACKAGE_NAME"
2308_ACEOF
2309
2310cat >>confdefs.h <<_ACEOF
2311#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2312_ACEOF
2313
2314cat >>confdefs.h <<_ACEOF
2315#define PACKAGE_VERSION "$PACKAGE_VERSION"
2316_ACEOF
2317
2318cat >>confdefs.h <<_ACEOF
2319#define PACKAGE_STRING "$PACKAGE_STRING"
2320_ACEOF
2321
2322cat >>confdefs.h <<_ACEOF
2323#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2324_ACEOF
2325
2326cat >>confdefs.h <<_ACEOF
2327#define PACKAGE_URL "$PACKAGE_URL"
2328_ACEOF
2329
2330
2331# Let the site file select an alternate cache file if it wants to.
2332# Prefer an explicitly selected file to automatically selected ones.
2333ac_site_file1=NONE
2334ac_site_file2=NONE
2335if test -n "$CONFIG_SITE"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002336 # We do not want a PATH search for config.site.
2337 case $CONFIG_SITE in #((
2338 -*) ac_site_file1=./$CONFIG_SITE;;
2339 */*) ac_site_file1=$CONFIG_SITE;;
2340 *) ac_site_file1=./$CONFIG_SITE;;
2341 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +00002342elif test "x$prefix" != xNONE; then
2343 ac_site_file1=$prefix/share/config.site
2344 ac_site_file2=$prefix/etc/config.site
2345else
2346 ac_site_file1=$ac_default_prefix/share/config.site
2347 ac_site_file2=$ac_default_prefix/etc/config.site
2348fi
2349for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2350do
2351 test "x$ac_site_file" = xNONE && continue
Joseph Myers22e05272018-10-31 17:03:16 +00002352 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002353 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2354$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2355 sed 's/^/| /' "$ac_site_file" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00002356 . "$ac_site_file" \
2357 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359as_fn_error $? "failed to load site script $ac_site_file
2360See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002361 fi
2362done
2363
2364if test -r "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002365 # Some versions of bash will fail to source /dev/null (special files
2366 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2367 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2369$as_echo "$as_me: loading cache $cache_file" >&6;}
2370 case $cache_file in
2371 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2372 *) . "./$cache_file";;
2373 esac
2374 fi
2375else
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2377$as_echo "$as_me: creating cache $cache_file" >&6;}
2378 >$cache_file
2379fi
2380
2381# Check that the precious variables saved in the cache have kept the same
2382# value.
2383ac_cache_corrupted=false
2384for ac_var in $ac_precious_vars; do
2385 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2386 eval ac_new_set=\$ac_env_${ac_var}_set
2387 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2388 eval ac_new_val=\$ac_env_${ac_var}_value
2389 case $ac_old_set,$ac_new_set in
2390 set,)
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2392$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2393 ac_cache_corrupted=: ;;
2394 ,set)
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2396$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2397 ac_cache_corrupted=: ;;
2398 ,);;
2399 *)
2400 if test "x$ac_old_val" != "x$ac_new_val"; then
2401 # differences in whitespace do not lead to failure.
2402 ac_old_val_w=`echo x $ac_old_val`
2403 ac_new_val_w=`echo x $ac_new_val`
2404 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2406$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2407 ac_cache_corrupted=:
2408 else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2410$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2411 eval $ac_var=\$ac_old_val
2412 fi
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2414$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2416$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2417 fi;;
2418 esac
2419 # Pass precious variables to config.status.
2420 if test "$ac_new_set" = set; then
2421 case $ac_new_val in
2422 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2423 *) ac_arg=$ac_var=$ac_new_val ;;
2424 esac
2425 case " $ac_configure_args " in
2426 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2427 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2428 esac
2429 fi
2430done
2431if $ac_cache_corrupted; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2435$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002436 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002437fi
2438## -------------------- ##
2439## Main body of script. ##
2440## -------------------- ##
2441
2442ac_ext=c
2443ac_cpp='$CPP $CPPFLAGS'
2444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447
2448
2449
2450
2451
2452
2453ac_config_headers="$ac_config_headers config.h"
2454
2455
2456# Default to --enable-multilib
2457# Check whether --enable-multilib was given.
2458if test "${enable_multilib+set}" = set; then :
2459 enableval=$enable_multilib; case "$enableval" in
2460 yes) multilib=yes ;;
2461 no) multilib=no ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002462 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002463 esac
2464else
2465 multilib=yes
2466fi
2467
2468
2469# We may get other options which we leave undocumented:
2470# --with-target-subdir, --with-multisrctop, --with-multisubdir
2471# See config-ml.in if you want the gory details.
2472
2473if test "$srcdir" = "."; then
2474 if test "$with_target_subdir" != "."; then
2475 multi_basedir="$srcdir/$with_multisrctop../.."
2476 else
2477 multi_basedir="$srcdir/$with_multisrctop.."
2478 fi
2479else
2480 multi_basedir="$srcdir/.."
2481fi
2482
2483
2484# Even if the default multilib is not a cross compilation,
2485# it may be that some of the other multilibs are.
2486if test $cross_compiling = no && test $multilib = yes \
2487 && test "x${with_multisubdir}" != x ; then
2488 cross_compiling=maybe
2489fi
2490
2491ac_config_commands="$ac_config_commands default-1"
2492
2493ac_aux_dir=
2494for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Joseph Myers22e05272018-10-31 17:03:16 +00002495 if test -f "$ac_dir/install-sh"; then
2496 ac_aux_dir=$ac_dir
2497 ac_install_sh="$ac_aux_dir/install-sh -c"
2498 break
2499 elif 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/shtool"; then
2504 ac_aux_dir=$ac_dir
2505 ac_install_sh="$ac_aux_dir/shtool install -c"
2506 break
2507 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00002508done
2509if test -z "$ac_aux_dir"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002510 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002511fi
2512
2513# These three variables are undocumented and unsupported,
2514# and are intended to be withdrawn in a future Autoconf release.
2515# They can cause serious problems if a builder's source tree is in a directory
2516# whose full name contains unusual characters.
2517ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2518ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2519ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2520
2521
2522# Make sure we can run config.sub.
2523$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Joseph Myers22e05272018-10-31 17:03:16 +00002524 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002525
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2527$as_echo_n "checking build system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002528if ${ac_cv_build+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002529 $as_echo_n "(cached) " >&6
2530else
2531 ac_build_alias=$build_alias
2532test "x$ac_build_alias" = x &&
2533 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2534test "x$ac_build_alias" = x &&
Joseph Myers22e05272018-10-31 17:03:16 +00002535 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002536ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002537 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002538
2539fi
2540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2541$as_echo "$ac_cv_build" >&6; }
2542case $ac_cv_build in
2543*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002544*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002545esac
2546build=$ac_cv_build
2547ac_save_IFS=$IFS; IFS='-'
2548set x $ac_cv_build
2549shift
2550build_cpu=$1
2551build_vendor=$2
2552shift; shift
2553# Remember, the first character of IFS is used to create $*,
2554# except with old shells:
2555build_os=$*
2556IFS=$ac_save_IFS
2557case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2558
2559
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2561$as_echo_n "checking host system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002562if ${ac_cv_host+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002563 $as_echo_n "(cached) " >&6
2564else
2565 if test "x$host_alias" = x; then
2566 ac_cv_host=$ac_cv_build
2567else
2568 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002569 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002570fi
2571
2572fi
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2574$as_echo "$ac_cv_host" >&6; }
2575case $ac_cv_host in
2576*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002577*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002578esac
2579host=$ac_cv_host
2580ac_save_IFS=$IFS; IFS='-'
2581set x $ac_cv_host
2582shift
2583host_cpu=$1
2584host_vendor=$2
2585shift; shift
2586# Remember, the first character of IFS is used to create $*,
2587# except with old shells:
2588host_os=$*
2589IFS=$ac_save_IFS
2590case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2591
2592
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2594$as_echo_n "checking target system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002595if ${ac_cv_target+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002596 $as_echo_n "(cached) " >&6
2597else
2598 if test "x$target_alias" = x; then
2599 ac_cv_target=$ac_cv_host
2600else
2601 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002602 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002603fi
2604
2605fi
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2607$as_echo "$ac_cv_target" >&6; }
2608case $ac_cv_target in
2609*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002610*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002611esac
2612target=$ac_cv_target
2613ac_save_IFS=$IFS; IFS='-'
2614set x $ac_cv_target
2615shift
2616target_cpu=$1
2617target_vendor=$2
2618shift; shift
2619# Remember, the first character of IFS is used to create $*,
2620# except with old shells:
2621target_os=$*
2622IFS=$ac_save_IFS
2623case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2624
2625
2626# The aliases save the names the user supplied, while $host etc.
2627# will get canonicalized.
2628test -n "$target_alias" &&
2629 test "$program_prefix$program_suffix$program_transform_name" = \
2630 NONENONEs,x,x, &&
2631 program_prefix=${target_alias}-
2632
Joseph Myers22e05272018-10-31 17:03:16 +00002633# Expand $ac_aux_dir to an absolute path.
2634am_aux_dir=`cd "$ac_aux_dir" && pwd`
Iain Buclawb4c522f2018-10-28 19:51:47 +00002635
Iain Buclawb4c522f2018-10-28 19:51:47 +00002636ac_ext=c
2637ac_cpp='$CPP $CPPFLAGS'
2638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641if test -n "$ac_tool_prefix"; then
2642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2643set dummy ${ac_tool_prefix}gcc; ac_word=$2
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002646if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002647 $as_echo_n "(cached) " >&6
2648else
2649 if test -n "$CC"; then
2650 ac_cv_prog_CC="$CC" # Let the user override the test.
2651else
2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002659 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2662 fi
2663done
2664 done
2665IFS=$as_save_IFS
2666
2667fi
2668fi
2669CC=$ac_cv_prog_CC
2670if test -n "$CC"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2672$as_echo "$CC" >&6; }
2673else
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675$as_echo "no" >&6; }
2676fi
2677
2678
2679fi
2680if test -z "$ac_cv_prog_CC"; then
2681 ac_ct_CC=$CC
2682 # Extract the first word of "gcc", so it can be a program name with args.
2683set dummy gcc; ac_word=$2
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002686if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002687 $as_echo_n "(cached) " >&6
2688else
2689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002699 ac_cv_prog_ac_ct_CC="gcc"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703done
2704 done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
2709ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710if test -n "$ac_ct_CC"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2712$as_echo "$ac_ct_CC" >&6; }
2713else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716fi
2717
2718 if test "x$ac_ct_CC" = x; then
2719 CC=""
2720 else
2721 case $cross_compiling:$ac_tool_warned in
2722yes:)
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2725ac_tool_warned=yes ;;
2726esac
2727 CC=$ac_ct_CC
2728 fi
2729else
2730 CC="$ac_cv_prog_CC"
2731fi
2732
2733if test -z "$CC"; then
2734 if test -n "$ac_tool_prefix"; then
2735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2736set dummy ${ac_tool_prefix}cc; ac_word=$2
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002739if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002740 $as_echo_n "(cached) " >&6
2741else
2742 if test -n "$CC"; then
2743 ac_cv_prog_CC="$CC" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002752 ac_cv_prog_CC="${ac_tool_prefix}cc"
2753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756done
2757 done
2758IFS=$as_save_IFS
2759
2760fi
2761fi
2762CC=$ac_cv_prog_CC
2763if test -n "$CC"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2765$as_echo "$CC" >&6; }
2766else
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768$as_echo "no" >&6; }
2769fi
2770
2771
2772 fi
2773fi
2774if test -z "$CC"; then
2775 # Extract the first word of "cc", so it can be a program name with args.
2776set dummy cc; ac_word=$2
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002779if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002780 $as_echo_n "(cached) " >&6
2781else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784else
2785 ac_prog_rejected=no
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2794 ac_prog_rejected=yes
2795 continue
2796 fi
2797 ac_cv_prog_CC="cc"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801done
2802 done
2803IFS=$as_save_IFS
2804
2805if test $ac_prog_rejected = yes; then
2806 # We found a bogon in the path, so make sure we never use it.
2807 set dummy $ac_cv_prog_CC
2808 shift
2809 if test $# != 0; then
2810 # We chose a different compiler from the bogus one.
2811 # However, it has the same basename, so the bogon will be chosen
2812 # first if we set CC to just the basename; use the full file name.
2813 shift
2814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2815 fi
2816fi
2817fi
2818fi
2819CC=$ac_cv_prog_CC
2820if test -n "$CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822$as_echo "$CC" >&6; }
2823else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825$as_echo "no" >&6; }
2826fi
2827
2828
2829fi
2830if test -z "$CC"; then
2831 if test -n "$ac_tool_prefix"; then
2832 for ac_prog in cl.exe
2833 do
2834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002838if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002839 $as_echo_n "(cached) " >&6
2840else
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC="$CC" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855done
2856 done
2857IFS=$as_save_IFS
2858
2859fi
2860fi
2861CC=$ac_cv_prog_CC
2862if test -n "$CC"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864$as_echo "$CC" >&6; }
2865else
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867$as_echo "no" >&6; }
2868fi
2869
2870
2871 test -n "$CC" && break
2872 done
2873fi
2874if test -z "$CC"; then
2875 ac_ct_CC=$CC
2876 for ac_prog in cl.exe
2877do
2878 # Extract the first word of "$ac_prog", so it can be a program name with args.
2879set dummy $ac_prog; ac_word=$2
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002882if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002883 $as_echo_n "(cached) " >&6
2884else
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002895 ac_cv_prog_ac_ct_CC="$ac_prog"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899done
2900 done
2901IFS=$as_save_IFS
2902
2903fi
2904fi
2905ac_ct_CC=$ac_cv_prog_ac_ct_CC
2906if test -n "$ac_ct_CC"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2908$as_echo "$ac_ct_CC" >&6; }
2909else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911$as_echo "no" >&6; }
2912fi
2913
2914
2915 test -n "$ac_ct_CC" && break
2916done
2917
2918 if test "x$ac_ct_CC" = x; then
2919 CC=""
2920 else
2921 case $cross_compiling:$ac_tool_warned in
2922yes:)
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925ac_tool_warned=yes ;;
2926esac
2927 CC=$ac_ct_CC
2928 fi
2929fi
2930
2931fi
2932
2933
2934test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002936as_fn_error $? "no acceptable C compiler found in \$PATH
2937See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002938
2939# Provide some information about the compiler.
2940$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2941set X $ac_compile
2942ac_compiler=$2
2943for ac_option in --version -v -V -qversion; do
2944 { { ac_try="$ac_compiler $ac_option >&5"
2945case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948esac
2949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2950$as_echo "$ac_try_echo"; } >&5
2951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2952 ac_status=$?
2953 if test -s conftest.err; then
2954 sed '10a\
2955... rest of stderr output deleted ...
2956 10q' conftest.err >conftest.er1
2957 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002958 fi
Joseph Myers22e05272018-10-31 17:03:16 +00002959 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00002960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }
2962done
2963
2964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965/* end confdefs.h. */
2966
2967int
2968main ()
2969{
2970
2971 ;
2972 return 0;
2973}
2974_ACEOF
2975ac_clean_files_save=$ac_clean_files
Joseph Myers22e05272018-10-31 17:03:16 +00002976ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002977# Try to create an executable without -o first, disregard a.out.
2978# It will help us diagnose broken compilers, and finding out an intuition
2979# of exeext.
Joseph Myers22e05272018-10-31 17:03:16 +00002980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2981$as_echo_n "checking whether the C compiler works... " >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002982ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2983
2984# The possible output files:
2985ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2986
2987ac_rmfiles=
2988for ac_file in $ac_files
2989do
2990 case $ac_file in
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2992 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2993 esac
2994done
2995rm -f $ac_rmfiles
2996
2997if { { ac_try="$ac_link_default"
2998case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001esac
3002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003$as_echo "$ac_try_echo"; } >&5
3004 (eval "$ac_link_default") 2>&5
3005 ac_status=$?
3006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }; then :
3008 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3009# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3010# in a Makefile. We should not override ac_cv_exeext if it was cached,
3011# so that the user can short-circuit this test for compilers unknown to
3012# Autoconf.
3013for ac_file in $ac_files ''
3014do
3015 test -f "$ac_file" || continue
3016 case $ac_file in
3017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3018 ;;
3019 [ab].out )
3020 # We found the default executable, but exeext='' is most
3021 # certainly right.
3022 break;;
3023 *.* )
3024 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3025 then :; else
3026 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3027 fi
3028 # We set ac_cv_exeext here because the later test for it is not
3029 # safe: cross compilers may not add the suffix if given an `-o'
3030 # argument, so we may need to know it at that point already.
3031 # Even if this section looks crufty: it has the advantage of
3032 # actually working.
3033 break;;
3034 * )
3035 break;;
3036 esac
3037done
3038test "$ac_cv_exeext" = no && ac_cv_exeext=
3039
3040else
3041 ac_file=''
3042fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00003043if test -z "$ac_file"; then :
Joseph Myers22e05272018-10-31 17:03:16 +00003044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045$as_echo "no" >&6; }
3046$as_echo "$as_me: failed program was:" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00003047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003051as_fn_error 77 "C compiler cannot create executables
3052See \`config.log' for more details" "$LINENO" 5; }
3053else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3055$as_echo "yes" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003056fi
Joseph Myers22e05272018-10-31 17:03:16 +00003057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3058$as_echo_n "checking for C compiler default output file name... " >&6; }
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3060$as_echo "$ac_file" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003061ac_exeext=$ac_cv_exeext
3062
Joseph Myers22e05272018-10-31 17:03:16 +00003063rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Iain Buclawb4c522f2018-10-28 19:51:47 +00003064ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3066$as_echo_n "checking for suffix of executables... " >&6; }
3067if { { ac_try="$ac_link"
3068case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073$as_echo "$ac_try_echo"; } >&5
3074 (eval "$ac_link") 2>&5
3075 ac_status=$?
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }; then :
3078 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3079# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3080# work properly (i.e., refer to `conftest.exe'), while it won't with
3081# `rm'.
3082for ac_file in conftest.exe conftest conftest.*; do
3083 test -f "$ac_file" || continue
3084 case $ac_file in
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3086 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3087 break;;
3088 * ) break;;
3089 esac
3090done
3091else
3092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003094as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3095See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003096fi
Joseph Myers22e05272018-10-31 17:03:16 +00003097rm -f conftest conftest$ac_cv_exeext
Iain Buclawb4c522f2018-10-28 19:51:47 +00003098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3099$as_echo "$ac_cv_exeext" >&6; }
3100
3101rm -f conftest.$ac_ext
3102EXEEXT=$ac_cv_exeext
3103ac_exeext=$EXEEXT
Joseph Myers22e05272018-10-31 17:03:16 +00003104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105/* end confdefs.h. */
3106#include <stdio.h>
3107int
3108main ()
3109{
3110FILE *f = fopen ("conftest.out", "w");
3111 return ferror (f) || fclose (f) != 0;
3112
3113 ;
3114 return 0;
3115}
3116_ACEOF
3117ac_clean_files="$ac_clean_files conftest.out"
3118# Check that the compiler produces executables we can run. If not, either
3119# the compiler is broken, or we cross compile.
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3121$as_echo_n "checking whether we are cross compiling... " >&6; }
3122if test "$cross_compiling" != yes; then
3123 { { ac_try="$ac_link"
3124case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
3128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129$as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_link") 2>&5
3131 ac_status=$?
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }
3134 if { ac_try='./conftest$ac_cv_exeext'
3135 { { case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138esac
3139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3140$as_echo "$ac_try_echo"; } >&5
3141 (eval "$ac_try") 2>&5
3142 ac_status=$?
3143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144 test $ac_status = 0; }; }; then
3145 cross_compiling=no
3146 else
3147 if test "$cross_compiling" = maybe; then
3148 cross_compiling=yes
3149 else
3150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152as_fn_error $? "cannot run C compiled programs.
3153If you meant to cross compile, use \`--host'.
3154See \`config.log' for more details" "$LINENO" 5; }
3155 fi
3156 fi
3157fi
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3159$as_echo "$cross_compiling" >&6; }
3160
3161rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3162ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3164$as_echo_n "checking for suffix of object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003165if ${ac_cv_objext+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003166 $as_echo_n "(cached) " >&6
3167else
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169/* end confdefs.h. */
3170
3171int
3172main ()
3173{
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179rm -f conftest.o conftest.obj
3180if { { ac_try="$ac_compile"
3181case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186$as_echo "$ac_try_echo"; } >&5
3187 (eval "$ac_compile") 2>&5
3188 ac_status=$?
3189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190 test $ac_status = 0; }; then :
3191 for ac_file in conftest.o conftest.obj conftest.*; do
3192 test -f "$ac_file" || continue;
3193 case $ac_file in
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3196 break;;
3197 esac
3198done
3199else
3200 $as_echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003205as_fn_error $? "cannot compute suffix of object files: cannot compile
3206See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003207fi
3208rm -f conftest.$ac_cv_objext conftest.$ac_ext
3209fi
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3211$as_echo "$ac_cv_objext" >&6; }
3212OBJEXT=$ac_cv_objext
3213ac_objext=$OBJEXT
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3215$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003216if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003217 $as_echo_n "(cached) " >&6
3218else
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220/* end confdefs.h. */
3221
3222int
3223main ()
3224{
3225#ifndef __GNUC__
3226 choke me
3227#endif
3228
3229 ;
3230 return 0;
3231}
3232_ACEOF
3233if ac_fn_c_try_compile "$LINENO"; then :
3234 ac_compiler_gnu=yes
3235else
3236 ac_compiler_gnu=no
3237fi
3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239ac_cv_c_compiler_gnu=$ac_compiler_gnu
3240
3241fi
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3243$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3244if test $ac_compiler_gnu = yes; then
3245 GCC=yes
3246else
3247 GCC=
3248fi
3249ac_test_CFLAGS=${CFLAGS+set}
3250ac_save_CFLAGS=$CFLAGS
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3252$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003253if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003254 $as_echo_n "(cached) " >&6
3255else
3256 ac_save_c_werror_flag=$ac_c_werror_flag
3257 ac_c_werror_flag=yes
3258 ac_cv_prog_cc_g=no
3259 CFLAGS="-g"
3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261/* end confdefs.h. */
3262
3263int
3264main ()
3265{
3266
3267 ;
3268 return 0;
3269}
3270_ACEOF
3271if ac_fn_c_try_compile "$LINENO"; then :
3272 ac_cv_prog_cc_g=yes
3273else
3274 CFLAGS=""
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276/* end confdefs.h. */
3277
3278int
3279main ()
3280{
3281
3282 ;
3283 return 0;
3284}
3285_ACEOF
3286if ac_fn_c_try_compile "$LINENO"; then :
3287
3288else
3289 ac_c_werror_flag=$ac_save_c_werror_flag
3290 CFLAGS="-g"
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292/* end confdefs.h. */
3293
3294int
3295main ()
3296{
3297
3298 ;
3299 return 0;
3300}
3301_ACEOF
3302if ac_fn_c_try_compile "$LINENO"; then :
3303 ac_cv_prog_cc_g=yes
3304fi
3305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306fi
3307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308fi
3309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 ac_c_werror_flag=$ac_save_c_werror_flag
3311fi
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3313$as_echo "$ac_cv_prog_cc_g" >&6; }
3314if test "$ac_test_CFLAGS" = set; then
3315 CFLAGS=$ac_save_CFLAGS
3316elif test $ac_cv_prog_cc_g = yes; then
3317 if test "$GCC" = yes; then
3318 CFLAGS="-g -O2"
3319 else
3320 CFLAGS="-g"
3321 fi
3322else
3323 if test "$GCC" = yes; then
3324 CFLAGS="-O2"
3325 else
3326 CFLAGS=
3327 fi
3328fi
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3330$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003331if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003332 $as_echo_n "(cached) " >&6
3333else
3334 ac_cv_prog_cc_c89=no
3335ac_save_CC=$CC
3336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337/* end confdefs.h. */
3338#include <stdarg.h>
3339#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00003340struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00003341/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3342struct buf { int x; };
3343FILE * (*rcsopen) (struct buf *, struct stat *, int);
3344static char *e (p, i)
3345 char **p;
3346 int i;
3347{
3348 return p[i];
3349}
3350static char *f (char * (*g) (char **, int), char **p, ...)
3351{
3352 char *s;
3353 va_list v;
3354 va_start (v,p);
3355 s = g (p, va_arg (v,int));
3356 va_end (v);
3357 return s;
3358}
3359
3360/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3361 function prototypes and stuff, but not '\xHH' hex character constants.
3362 These don't provoke an error unfortunately, instead are silently treated
3363 as 'x'. The following induces an error, until -std is added to get
3364 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3365 array size at least. It's necessary to write '\x00'==0 to get something
3366 that's true only with -std. */
3367int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3368
3369/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3370 inside strings and character constants. */
3371#define FOO(x) 'x'
3372int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3373
3374int test (int i, double x);
3375struct s1 {int (*f) (int a);};
3376struct s2 {int (*f) (double a);};
3377int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3378int argc;
3379char **argv;
3380int
3381main ()
3382{
3383return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3384 ;
3385 return 0;
3386}
3387_ACEOF
3388for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3389 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3390do
3391 CC="$ac_save_CC $ac_arg"
3392 if ac_fn_c_try_compile "$LINENO"; then :
3393 ac_cv_prog_cc_c89=$ac_arg
3394fi
3395rm -f core conftest.err conftest.$ac_objext
3396 test "x$ac_cv_prog_cc_c89" != "xno" && break
3397done
3398rm -f conftest.$ac_ext
3399CC=$ac_save_CC
3400
3401fi
3402# AC_CACHE_VAL
3403case "x$ac_cv_prog_cc_c89" in
3404 x)
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3406$as_echo "none needed" >&6; } ;;
3407 xno)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3409$as_echo "unsupported" >&6; } ;;
3410 *)
3411 CC="$CC $ac_cv_prog_cc_c89"
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3413$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3414esac
3415if test "x$ac_cv_prog_cc_c89" != xno; then :
3416
3417fi
3418
3419ac_ext=c
3420ac_cpp='$CPP $CPPFLAGS'
3421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424
Joseph Myers22e05272018-10-31 17:03:16 +00003425ac_ext=c
3426ac_cpp='$CPP $CPPFLAGS'
3427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3431$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3432if ${am_cv_prog_cc_c_o+:} false; then :
3433 $as_echo_n "(cached) " >&6
3434else
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436/* end confdefs.h. */
3437
3438int
3439main ()
3440{
3441
3442 ;
3443 return 0;
3444}
3445_ACEOF
3446 # Make sure it works both with $CC and with simple cc.
3447 # Following AC_PROG_CC_C_O, we do the test twice because some
3448 # compilers refuse to overwrite an existing .o file with -o,
3449 # though they will create one.
3450 am_cv_prog_cc_c_o=yes
3451 for am_i in 1 2; do
3452 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3453 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } \
3457 && test -f conftest2.$ac_objext; then
3458 : OK
3459 else
3460 am_cv_prog_cc_c_o=no
3461 break
3462 fi
3463 done
3464 rm -f core conftest*
3465 unset am_i
3466fi
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3468$as_echo "$am_cv_prog_cc_c_o" >&6; }
3469if test "$am_cv_prog_cc_c_o" != yes; then
3470 # Losing compiler, so override with the script.
3471 # FIXME: It is wrong to rewrite CC.
3472 # But if we don't then we get into trouble of one sort or another.
3473 # A longer-term fix would be to have automake use am__CC in this case,
3474 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3475 CC="$am_aux_dir/compile $CC"
3476fi
3477ac_ext=c
3478ac_cpp='$CPP $CPPFLAGS'
3479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482
3483
Rainer Orth235d1c42019-04-14 09:30:42 +00003484
3485ac_ext=c
3486ac_cpp='$CPP $CPPFLAGS'
3487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3491$as_echo_n "checking how to run the C preprocessor... " >&6; }
3492# On Suns, sometimes $CPP names a directory.
3493if test -n "$CPP" && test -d "$CPP"; then
3494 CPP=
3495fi
3496if test -z "$CPP"; then
3497 if ${ac_cv_prog_CPP+:} false; then :
3498 $as_echo_n "(cached) " >&6
3499else
3500 # Double quotes because CPP needs to be expanded
3501 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3502 do
3503 ac_preproc_ok=false
3504for ac_c_preproc_warn_flag in '' yes
3505do
3506 # Use a header file that comes with gcc, so configuring glibc
3507 # with a fresh cross-compiler works.
3508 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3509 # <limits.h> exists even on freestanding compilers.
3510 # On the NeXT, cc -E runs the code through the compiler's parser,
3511 # not just through cpp. "Syntax error" is here to catch this case.
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h. */
3514#ifdef __STDC__
3515# include <limits.h>
3516#else
3517# include <assert.h>
3518#endif
3519 Syntax error
3520_ACEOF
3521if ac_fn_c_try_cpp "$LINENO"; then :
3522
3523else
3524 # Broken: fails on valid input.
3525continue
3526fi
3527rm -f conftest.err conftest.i conftest.$ac_ext
3528
3529 # OK, works on sane cases. Now check whether nonexistent headers
3530 # can be detected and how.
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532/* end confdefs.h. */
3533#include <ac_nonexistent.h>
3534_ACEOF
3535if ac_fn_c_try_cpp "$LINENO"; then :
3536 # Broken: success on invalid input.
3537continue
3538else
3539 # Passes both tests.
3540ac_preproc_ok=:
3541break
3542fi
3543rm -f conftest.err conftest.i conftest.$ac_ext
3544
3545done
3546# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547rm -f conftest.i conftest.err conftest.$ac_ext
3548if $ac_preproc_ok; then :
3549 break
3550fi
3551
3552 done
3553 ac_cv_prog_CPP=$CPP
3554
3555fi
3556 CPP=$ac_cv_prog_CPP
3557else
3558 ac_cv_prog_CPP=$CPP
3559fi
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3561$as_echo "$CPP" >&6; }
3562ac_preproc_ok=false
3563for ac_c_preproc_warn_flag in '' yes
3564do
3565 # Use a header file that comes with gcc, so configuring glibc
3566 # with a fresh cross-compiler works.
3567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568 # <limits.h> exists even on freestanding compilers.
3569 # On the NeXT, cc -E runs the code through the compiler's parser,
3570 # not just through cpp. "Syntax error" is here to catch this case.
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h. */
3573#ifdef __STDC__
3574# include <limits.h>
3575#else
3576# include <assert.h>
3577#endif
3578 Syntax error
3579_ACEOF
3580if ac_fn_c_try_cpp "$LINENO"; then :
3581
3582else
3583 # Broken: fails on valid input.
3584continue
3585fi
3586rm -f conftest.err conftest.i conftest.$ac_ext
3587
3588 # OK, works on sane cases. Now check whether nonexistent headers
3589 # can be detected and how.
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h. */
3592#include <ac_nonexistent.h>
3593_ACEOF
3594if ac_fn_c_try_cpp "$LINENO"; then :
3595 # Broken: success on invalid input.
3596continue
3597else
3598 # Passes both tests.
3599ac_preproc_ok=:
3600break
3601fi
3602rm -f conftest.err conftest.i conftest.$ac_ext
3603
3604done
3605# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3606rm -f conftest.i conftest.err conftest.$ac_ext
3607if $ac_preproc_ok; then :
3608
3609else
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3613See \`config.log' for more details" "$LINENO" 5; }
3614fi
3615
3616ac_ext=c
3617ac_cpp='$CPP $CPPFLAGS'
3618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621
3622
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3624$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3625if ${ac_cv_path_GREP+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627else
3628 if test -z "$GREP"; then
3629 ac_path_GREP_found=false
3630 # Loop through the user's path and test for each of PROGNAME-LIST
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3633do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_prog in grep ggrep; do
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3639 as_fn_executable_p "$ac_path_GREP" || continue
3640# Check for GNU ac_path_GREP and select it if it is found.
3641 # Check for GNU $ac_path_GREP
3642case `"$ac_path_GREP" --version 2>&1` in
3643*GNU*)
3644 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3645*)
3646 ac_count=0
3647 $as_echo_n 0123456789 >"conftest.in"
3648 while :
3649 do
3650 cat "conftest.in" "conftest.in" >"conftest.tmp"
3651 mv "conftest.tmp" "conftest.in"
3652 cp "conftest.in" "conftest.nl"
3653 $as_echo 'GREP' >> "conftest.nl"
3654 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3656 as_fn_arith $ac_count + 1 && ac_count=$as_val
3657 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3658 # Best one so far, save it but keep looking for a better one
3659 ac_cv_path_GREP="$ac_path_GREP"
3660 ac_path_GREP_max=$ac_count
3661 fi
3662 # 10*(2^10) chars as input seems more than enough
3663 test $ac_count -gt 10 && break
3664 done
3665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3666esac
3667
3668 $ac_path_GREP_found && break 3
3669 done
3670 done
3671 done
3672IFS=$as_save_IFS
3673 if test -z "$ac_cv_path_GREP"; then
3674 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3675 fi
3676else
3677 ac_cv_path_GREP=$GREP
3678fi
3679
3680fi
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3682$as_echo "$ac_cv_path_GREP" >&6; }
3683 GREP="$ac_cv_path_GREP"
3684
3685
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3687$as_echo_n "checking for egrep... " >&6; }
3688if ${ac_cv_path_EGREP+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690else
3691 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3692 then ac_cv_path_EGREP="$GREP -E"
3693 else
3694 if test -z "$EGREP"; then
3695 ac_path_EGREP_found=false
3696 # Loop through the user's path and test for each of PROGNAME-LIST
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3699do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_prog in egrep; do
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3705 as_fn_executable_p "$ac_path_EGREP" || continue
3706# Check for GNU ac_path_EGREP and select it if it is found.
3707 # Check for GNU $ac_path_EGREP
3708case `"$ac_path_EGREP" --version 2>&1` in
3709*GNU*)
3710 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3711*)
3712 ac_count=0
3713 $as_echo_n 0123456789 >"conftest.in"
3714 while :
3715 do
3716 cat "conftest.in" "conftest.in" >"conftest.tmp"
3717 mv "conftest.tmp" "conftest.in"
3718 cp "conftest.in" "conftest.nl"
3719 $as_echo 'EGREP' >> "conftest.nl"
3720 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3722 as_fn_arith $ac_count + 1 && ac_count=$as_val
3723 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3724 # Best one so far, save it but keep looking for a better one
3725 ac_cv_path_EGREP="$ac_path_EGREP"
3726 ac_path_EGREP_max=$ac_count
3727 fi
3728 # 10*(2^10) chars as input seems more than enough
3729 test $ac_count -gt 10 && break
3730 done
3731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3732esac
3733
3734 $ac_path_EGREP_found && break 3
3735 done
3736 done
3737 done
3738IFS=$as_save_IFS
3739 if test -z "$ac_cv_path_EGREP"; then
3740 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3741 fi
3742else
3743 ac_cv_path_EGREP=$EGREP
3744fi
3745
3746 fi
3747fi
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3749$as_echo "$ac_cv_path_EGREP" >&6; }
3750 EGREP="$ac_cv_path_EGREP"
3751
3752
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3754$as_echo_n "checking for ANSI C header files... " >&6; }
3755if ${ac_cv_header_stdc+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757else
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759/* end confdefs.h. */
3760#include <stdlib.h>
3761#include <stdarg.h>
3762#include <string.h>
3763#include <float.h>
3764
3765int
3766main ()
3767{
3768
3769 ;
3770 return 0;
3771}
3772_ACEOF
3773if ac_fn_c_try_compile "$LINENO"; then :
3774 ac_cv_header_stdc=yes
3775else
3776 ac_cv_header_stdc=no
3777fi
3778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779
3780if test $ac_cv_header_stdc = yes; then
3781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783/* end confdefs.h. */
3784#include <string.h>
3785
3786_ACEOF
3787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3788 $EGREP "memchr" >/dev/null 2>&1; then :
3789
3790else
3791 ac_cv_header_stdc=no
3792fi
3793rm -f conftest*
3794
3795fi
3796
3797if test $ac_cv_header_stdc = yes; then
3798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800/* end confdefs.h. */
3801#include <stdlib.h>
3802
3803_ACEOF
3804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805 $EGREP "free" >/dev/null 2>&1; then :
3806
3807else
3808 ac_cv_header_stdc=no
3809fi
3810rm -f conftest*
3811
3812fi
3813
3814if test $ac_cv_header_stdc = yes; then
3815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3816 if test "$cross_compiling" = yes; then :
3817 :
3818else
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h. */
3821#include <ctype.h>
3822#include <stdlib.h>
3823#if ((' ' & 0x0FF) == 0x020)
3824# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3825# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3826#else
3827# define ISLOWER(c) \
3828 (('a' <= (c) && (c) <= 'i') \
3829 || ('j' <= (c) && (c) <= 'r') \
3830 || ('s' <= (c) && (c) <= 'z'))
3831# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3832#endif
3833
3834#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3835int
3836main ()
3837{
3838 int i;
3839 for (i = 0; i < 256; i++)
3840 if (XOR (islower (i), ISLOWER (i))
3841 || toupper (i) != TOUPPER (i))
3842 return 2;
3843 return 0;
3844}
3845_ACEOF
3846if ac_fn_c_try_run "$LINENO"; then :
3847
3848else
3849 ac_cv_header_stdc=no
3850fi
3851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3852 conftest.$ac_objext conftest.beam conftest.$ac_ext
3853fi
3854
3855fi
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3858$as_echo "$ac_cv_header_stdc" >&6; }
3859if test $ac_cv_header_stdc = yes; then
3860
3861$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3862
3863fi
3864
3865# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3866for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3867 inttypes.h stdint.h unistd.h
3868do :
3869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3870ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3871"
3872if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3873 cat >>confdefs.h <<_ACEOF
3874#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3875_ACEOF
3876
3877fi
3878
3879done
3880
3881
3882
3883 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3884if test "x$ac_cv_header_minix_config_h" = xyes; then :
3885 MINIX=yes
3886else
3887 MINIX=
3888fi
3889
3890
3891 if test "$MINIX" = yes; then
3892
3893$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3894
3895
3896$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3897
3898
3899$as_echo "#define _MINIX 1" >>confdefs.h
3900
3901 fi
3902
3903
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3905$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3906if ${ac_cv_safe_to_define___extensions__+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908else
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910/* end confdefs.h. */
3911
3912# define __EXTENSIONS__ 1
3913 $ac_includes_default
3914int
3915main ()
3916{
3917
3918 ;
3919 return 0;
3920}
3921_ACEOF
3922if ac_fn_c_try_compile "$LINENO"; then :
3923 ac_cv_safe_to_define___extensions__=yes
3924else
3925 ac_cv_safe_to_define___extensions__=no
3926fi
3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928fi
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3930$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3931 test $ac_cv_safe_to_define___extensions__ = yes &&
3932 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3933
3934 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3935
3936 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3937
3938 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3939
3940 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3941
3942
3943
3944target_alias=${target_alias-$target}
3945
3946
3947# 1.11.1: Require that version of automake.
3948# foreign: Don't require README, INSTALL, NEWS, etc.
3949# no-define: Don't define PACKAGE and VERSION.
3950# no-dependencies: Don't generate automatic dependencies.
3951# (because it breaks when using bootstrap-lean, since some of the
3952# headers are gone at "make install" time).
3953# subdir-objects: Build objects in sub-directories.
3954# -Wall: Issue all automake warnings.
3955# -Wno-portability: Don't warn about constructs supported by GNU make.
3956# (because GCC requires GNU make anyhow).
3957# -Wno-override: Overrides used in testsuite.
3958am__api_version='1.15'
3959
3960# Find a good install program. We prefer a C program (faster),
3961# so one script is as good as another. But avoid the broken or
3962# incompatible versions:
3963# SysV /etc/install, /usr/sbin/install
3964# SunOS /usr/etc/install
3965# IRIX /sbin/install
3966# AIX /bin/install
3967# AmigaOS /C/install, which installs bootblocks on floppy discs
3968# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3969# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3970# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3971# OS/2's system install, which has a completely different semantic
3972# ./install, which can be erroneously created by make from ./install.sh.
3973# Reject install programs that cannot install multiple files.
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3975$as_echo_n "checking for a BSD-compatible install... " >&6; }
3976if test -z "$INSTALL"; then
3977if ${ac_cv_path_install+:} false; then :
3978 $as_echo_n "(cached) " >&6
3979else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 # Account for people who put trailing slashes in PATH elements.
3986case $as_dir/ in #((
3987 ./ | .// | /[cC]/* | \
3988 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3989 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3990 /usr/ucb/* ) ;;
3991 *)
3992 # OSF1 and SCO ODT 3.0 have their own names for install.
3993 # Don't use installbsd from OSF since it installs stuff as root
3994 # by default.
3995 for ac_prog in ginstall scoinst install; do
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3998 if test $ac_prog = install &&
3999 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4000 # AIX install. It has an incompatible calling convention.
4001 :
4002 elif test $ac_prog = install &&
4003 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4004 # program-specific install script used by HP pwplus--don't use.
4005 :
4006 else
4007 rm -rf conftest.one conftest.two conftest.dir
4008 echo one > conftest.one
4009 echo two > conftest.two
4010 mkdir conftest.dir
4011 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4012 test -s conftest.one && test -s conftest.two &&
4013 test -s conftest.dir/conftest.one &&
4014 test -s conftest.dir/conftest.two
4015 then
4016 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4017 break 3
4018 fi
4019 fi
4020 fi
4021 done
4022 done
4023 ;;
4024esac
4025
4026 done
4027IFS=$as_save_IFS
4028
4029rm -rf conftest.one conftest.two conftest.dir
4030
4031fi
4032 if test "${ac_cv_path_install+set}" = set; then
4033 INSTALL=$ac_cv_path_install
4034 else
4035 # As a last resort, use the slow shell script. Don't cache a
4036 # value for INSTALL within a source directory, because that will
4037 # break other packages using the cache if that directory is
4038 # removed, or if the value is a relative name.
4039 INSTALL=$ac_install_sh
4040 fi
4041fi
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4043$as_echo "$INSTALL" >&6; }
4044
4045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4046# It thinks the first close brace ends the variable substitution.
4047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4048
4049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4050
4051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4052
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4054$as_echo_n "checking whether build environment is sane... " >&6; }
4055# Reject unsafe characters in $srcdir or the absolute working directory
4056# name. Accept space and tab only in the latter.
4057am_lf='
4058'
4059case `pwd` in
4060 *[\\\"\#\$\&\'\`$am_lf]*)
4061 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4062esac
4063case $srcdir in
4064 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4065 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4066esac
4067
4068# Do 'set' in a subshell so we don't clobber the current shell's
4069# arguments. Must try -L first in case configure is actually a
4070# symlink; some systems play weird games with the mod time of symlinks
4071# (eg FreeBSD returns the mod time of the symlink's containing
4072# directory).
4073if (
4074 am_has_slept=no
4075 for am_try in 1 2; do
4076 echo "timestamp, slept: $am_has_slept" > conftest.file
4077 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4078 if test "$*" = "X"; then
4079 # -L didn't work.
4080 set X `ls -t "$srcdir/configure" conftest.file`
4081 fi
4082 if test "$*" != "X $srcdir/configure conftest.file" \
4083 && test "$*" != "X conftest.file $srcdir/configure"; then
4084
4085 # If neither matched, then we have a broken ls. This can happen
4086 # if, for instance, CONFIG_SHELL is bash and it inherits a
4087 # broken ls alias from the environment. This has actually
4088 # happened. Such a system could not be considered "sane".
4089 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4090 alias in your environment" "$LINENO" 5
4091 fi
4092 if test "$2" = conftest.file || test $am_try -eq 2; then
4093 break
4094 fi
4095 # Just in case.
4096 sleep 1
4097 am_has_slept=yes
4098 done
4099 test "$2" = conftest.file
4100 )
4101then
4102 # Ok.
4103 :
4104else
4105 as_fn_error $? "newly created file is older than distributed files!
4106Check your system clock" "$LINENO" 5
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4109$as_echo "yes" >&6; }
4110# If we didn't sleep, we still need to ensure time stamps of config.status and
4111# generated files are strictly newer.
4112am_sleep_pid=
4113if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4114 ( sleep 1 ) &
4115 am_sleep_pid=$!
4116fi
4117
4118rm -f conftest.file
4119
4120test "$program_prefix" != NONE &&
4121 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4122# Use a double $ so make ignores it.
4123test "$program_suffix" != NONE &&
4124 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4125# Double any \ or $.
4126# By default was `s,x,x', remove it if useless.
4127ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4128program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4129
4130if test x"${MISSING+set}" != xset; then
4131 case $am_aux_dir in
4132 *\ * | *\ *)
4133 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4134 *)
4135 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4136 esac
4137fi
4138# Use eval to expand $SHELL
4139if eval "$MISSING --is-lightweight"; then
4140 am_missing_run="$MISSING "
4141else
4142 am_missing_run=
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4144$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4145fi
4146
4147if test x"${install_sh+set}" != xset; then
4148 case $am_aux_dir in
4149 *\ * | *\ *)
4150 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4151 *)
4152 install_sh="\${SHELL} $am_aux_dir/install-sh"
4153 esac
4154fi
4155
4156# Installed binaries are usually stripped using 'strip' when the user
4157# run "make install-strip". However 'strip' might not be the right
4158# tool to use in cross-compilation environments, therefore Automake
4159# will honor the 'STRIP' environment variable to overrule this program.
4160if test "$cross_compiling" != no; then
4161 if test -n "$ac_tool_prefix"; then
4162 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4163set dummy ${ac_tool_prefix}strip; ac_word=$2
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165$as_echo_n "checking for $ac_word... " >&6; }
4166if ${ac_cv_prog_STRIP+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168else
4169 if test -n "$STRIP"; then
4170 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4171else
4172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173for as_dir in $PATH
4174do
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4182 fi
4183done
4184 done
4185IFS=$as_save_IFS
4186
4187fi
4188fi
4189STRIP=$ac_cv_prog_STRIP
4190if test -n "$STRIP"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4192$as_echo "$STRIP" >&6; }
4193else
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195$as_echo "no" >&6; }
4196fi
4197
4198
4199fi
4200if test -z "$ac_cv_prog_STRIP"; then
4201 ac_ct_STRIP=$STRIP
4202 # Extract the first word of "strip", so it can be a program name with args.
4203set dummy strip; ac_word=$2
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205$as_echo_n "checking for $ac_word... " >&6; }
4206if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208else
4209 if test -n "$ac_ct_STRIP"; then
4210 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_ac_ct_STRIP="strip"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4222 fi
4223done
4224 done
4225IFS=$as_save_IFS
4226
4227fi
4228fi
4229ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4230if test -n "$ac_ct_STRIP"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4232$as_echo "$ac_ct_STRIP" >&6; }
4233else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235$as_echo "no" >&6; }
4236fi
4237
4238 if test "x$ac_ct_STRIP" = x; then
4239 STRIP=":"
4240 else
4241 case $cross_compiling:$ac_tool_warned in
4242yes:)
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4245ac_tool_warned=yes ;;
4246esac
4247 STRIP=$ac_ct_STRIP
4248 fi
4249else
4250 STRIP="$ac_cv_prog_STRIP"
4251fi
4252
4253fi
4254INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4255
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4257$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4258if test -z "$MKDIR_P"; then
4259 if ${ac_cv_path_mkdir+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4264do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_prog in mkdir gmkdir; do
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4270 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4271 'mkdir (GNU coreutils) '* | \
4272 'mkdir (coreutils) '* | \
4273 'mkdir (fileutils) '4.1*)
4274 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4275 break 3;;
4276 esac
4277 done
4278 done
4279 done
4280IFS=$as_save_IFS
4281
4282fi
4283
4284 test -d ./--version && rmdir ./--version
4285 if test "${ac_cv_path_mkdir+set}" = set; then
4286 MKDIR_P="$ac_cv_path_mkdir -p"
4287 else
4288 # As a last resort, use the slow shell script. Don't cache a
4289 # value for MKDIR_P within a source directory, because that will
4290 # break other packages using the cache if that directory is
4291 # removed, or if the value is a relative name.
4292 MKDIR_P="$ac_install_sh -d"
4293 fi
4294fi
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4296$as_echo "$MKDIR_P" >&6; }
4297
4298for ac_prog in gawk mawk nawk awk
4299do
4300 # Extract the first word of "$ac_prog", so it can be a program name with args.
4301set dummy $ac_prog; ac_word=$2
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303$as_echo_n "checking for $ac_word... " >&6; }
4304if ${ac_cv_prog_AWK+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306else
4307 if test -n "$AWK"; then
4308 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4309else
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317 ac_cv_prog_AWK="$ac_prog"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4320 fi
4321done
4322 done
4323IFS=$as_save_IFS
4324
4325fi
4326fi
4327AWK=$ac_cv_prog_AWK
4328if test -n "$AWK"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4330$as_echo "$AWK" >&6; }
4331else
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333$as_echo "no" >&6; }
4334fi
4335
4336
4337 test -n "$AWK" && break
4338done
4339
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4341$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4342set x ${MAKE-make}
4343ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4344if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346else
4347 cat >conftest.make <<\_ACEOF
4348SHELL = /bin/sh
4349all:
4350 @echo '@@@%%%=$(MAKE)=@@@%%%'
4351_ACEOF
4352# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4353case `${MAKE-make} -f conftest.make 2>/dev/null` in
4354 *@@@%%%=?*=@@@%%%*)
4355 eval ac_cv_prog_make_${ac_make}_set=yes;;
4356 *)
4357 eval ac_cv_prog_make_${ac_make}_set=no;;
4358esac
4359rm -f conftest.make
4360fi
4361if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363$as_echo "yes" >&6; }
4364 SET_MAKE=
4365else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367$as_echo "no" >&6; }
4368 SET_MAKE="MAKE=${MAKE-make}"
4369fi
4370
4371rm -rf .tst 2>/dev/null
4372mkdir .tst 2>/dev/null
4373if test -d .tst; then
4374 am__leading_dot=.
4375else
4376 am__leading_dot=_
4377fi
4378rmdir .tst 2>/dev/null
4379
4380# Check whether --enable-silent-rules was given.
4381if test "${enable_silent_rules+set}" = set; then :
4382 enableval=$enable_silent_rules;
4383fi
4384
4385case $enable_silent_rules in # (((
4386 yes) AM_DEFAULT_VERBOSITY=0;;
4387 no) AM_DEFAULT_VERBOSITY=1;;
4388 *) AM_DEFAULT_VERBOSITY=1;;
4389esac
4390am_make=${MAKE-make}
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4392$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4393if ${am_cv_make_support_nested_variables+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395else
4396 if $as_echo 'TRUE=$(BAR$(V))
4397BAR0=false
4398BAR1=true
4399V=1
4400am__doit:
4401 @$(TRUE)
4402.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4403 am_cv_make_support_nested_variables=yes
4404else
4405 am_cv_make_support_nested_variables=no
4406fi
4407fi
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4409$as_echo "$am_cv_make_support_nested_variables" >&6; }
4410if test $am_cv_make_support_nested_variables = yes; then
4411 AM_V='$(V)'
4412 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4413else
4414 AM_V=$AM_DEFAULT_VERBOSITY
4415 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4416fi
4417AM_BACKSLASH='\'
4418
4419if test "`cd $srcdir && pwd`" != "`pwd`"; then
4420 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4421 # is not polluted with repeated "-I."
4422 am__isrc=' -I$(srcdir)'
4423 # test to see if srcdir already configured
4424 if test -f $srcdir/config.status; then
4425 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4426 fi
4427fi
4428
4429# test whether we have cygpath
4430if test -z "$CYGPATH_W"; then
4431 if (cygpath --version) >/dev/null 2>/dev/null; then
4432 CYGPATH_W='cygpath -w'
4433 else
4434 CYGPATH_W=echo
4435 fi
4436fi
4437
4438
4439# Define the identity of the package.
4440 PACKAGE='libphobos'
4441 VERSION='version-unused'
4442
4443
4444# Some tools Automake needs.
4445
4446ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4447
4448
4449AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4450
4451
4452AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4453
4454
4455AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4456
4457
4458MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4459
4460# For better backward compatibility. To be removed once Automake 1.9.x
4461# dies out for good. For more background, see:
4462# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4463# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4464mkdir_p='$(MKDIR_P)'
4465
4466# We need awk for the "check" target (and possibly the TAP driver). The
4467# system "awk" is bad on some platforms.
4468# Always define AMTAR for backward compatibility. Yes, it's still used
4469# in the wild :-( We should find a proper way to deprecate it ...
4470AMTAR='$${TAR-tar}'
4471
4472
4473# We'll loop over all known methods to create a tar archive until one works.
4474_am_tools='gnutar pax cpio none'
4475
4476am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4477
4478
4479
4480
4481
4482
4483# POSIX will say in a future version that running "rm -f" with no argument
4484# is OK; and we want to be able to make that assumption in our Makefile
4485# recipes. So use an aggressive probe to check that the usage we want is
4486# actually supported "in the wild" to an acceptable degree.
4487# See automake bug#10828.
4488# To make any issue more visible, cause the running configure to be aborted
4489# by default if the 'rm' program in use doesn't match our expectations; the
4490# user can still override this though.
4491if rm -f && rm -fr && rm -rf; then : OK; else
4492 cat >&2 <<'END'
4493Oops!
4494
4495Your 'rm' program seems unable to run without file operands specified
4496on the command line, even when the '-f' option is present. This is contrary
4497to the behaviour of most rm programs out there, and not conforming with
4498the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4499
4500Please tell bug-automake@gnu.org about your system, including the value
4501of your $PATH and any error possibly output before this message. This
4502can help us improve future automake versions.
4503
4504END
4505 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4506 echo 'Configuration will proceed anyway, since you have set the' >&2
4507 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4508 echo >&2
4509 else
4510 cat >&2 <<'END'
4511Aborting the configuration process, to ensure you take notice of the issue.
4512
4513You can download and install GNU coreutils to get an 'rm' implementation
4514that behaves properly: <http://www.gnu.org/software/coreutils/>.
4515
4516If you want to complete the configuration process using your problematic
4517'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4518to "yes", and re-run configure.
4519
4520END
4521 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4522 fi
4523fi
4524
4525
4526
4527
Iain Buclawb4c522f2018-10-28 19:51:47 +00004528# By default we simply use the C compiler to build assembly code.
4529
4530test "${CCAS+set}" = set || CCAS=$CC
4531test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4532
4533
4534
4535ac_ext=c
4536ac_cpp='$CPP $CPPFLAGS'
4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540if test -n "$ac_tool_prefix"; then
4541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4542set dummy ${ac_tool_prefix}gcc; ac_word=$2
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004545if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004546 $as_echo_n "(cached) " >&6
4547else
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4561 fi
4562done
4563 done
4564IFS=$as_save_IFS
4565
4566fi
4567fi
4568CC=$ac_cv_prog_CC
4569if test -n "$CC"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4571$as_echo "$CC" >&6; }
4572else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574$as_echo "no" >&6; }
4575fi
4576
4577
4578fi
4579if test -z "$ac_cv_prog_CC"; then
4580 ac_ct_CC=$CC
4581 # Extract the first word of "gcc", so it can be a program name with args.
4582set dummy gcc; ac_word=$2
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004585if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004586 $as_echo_n "(cached) " >&6
4587else
4588 if test -n "$ac_ct_CC"; then
4589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4590else
4591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH
4593do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004598 ac_cv_prog_ac_ct_CC="gcc"
4599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4601 fi
4602done
4603 done
4604IFS=$as_save_IFS
4605
4606fi
4607fi
4608ac_ct_CC=$ac_cv_prog_ac_ct_CC
4609if test -n "$ac_ct_CC"; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4611$as_echo "$ac_ct_CC" >&6; }
4612else
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614$as_echo "no" >&6; }
4615fi
4616
4617 if test "x$ac_ct_CC" = x; then
4618 CC=""
4619 else
4620 case $cross_compiling:$ac_tool_warned in
4621yes:)
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4624ac_tool_warned=yes ;;
4625esac
4626 CC=$ac_ct_CC
4627 fi
4628else
4629 CC="$ac_cv_prog_CC"
4630fi
4631
4632if test -z "$CC"; then
4633 if test -n "$ac_tool_prefix"; then
4634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4635set dummy ${ac_tool_prefix}cc; ac_word=$2
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004638if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004639 $as_echo_n "(cached) " >&6
4640else
4641 if test -n "$CC"; then
4642 ac_cv_prog_CC="$CC" # Let the user override the test.
4643else
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004651 ac_cv_prog_CC="${ac_tool_prefix}cc"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655done
4656 done
4657IFS=$as_save_IFS
4658
4659fi
4660fi
4661CC=$ac_cv_prog_CC
4662if test -n "$CC"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4664$as_echo "$CC" >&6; }
4665else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667$as_echo "no" >&6; }
4668fi
4669
4670
4671 fi
4672fi
4673if test -z "$CC"; then
4674 # Extract the first word of "cc", so it can be a program name with args.
4675set dummy cc; ac_word=$2
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004678if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004679 $as_echo_n "(cached) " >&6
4680else
4681 if test -n "$CC"; then
4682 ac_cv_prog_CC="$CC" # Let the user override the test.
4683else
4684 ac_prog_rejected=no
4685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686for as_dir in $PATH
4687do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4693 ac_prog_rejected=yes
4694 continue
4695 fi
4696 ac_cv_prog_CC="cc"
4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4699 fi
4700done
4701 done
4702IFS=$as_save_IFS
4703
4704if test $ac_prog_rejected = yes; then
4705 # We found a bogon in the path, so make sure we never use it.
4706 set dummy $ac_cv_prog_CC
4707 shift
4708 if test $# != 0; then
4709 # We chose a different compiler from the bogus one.
4710 # However, it has the same basename, so the bogon will be chosen
4711 # first if we set CC to just the basename; use the full file name.
4712 shift
4713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4714 fi
4715fi
4716fi
4717fi
4718CC=$ac_cv_prog_CC
4719if test -n "$CC"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4721$as_echo "$CC" >&6; }
4722else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724$as_echo "no" >&6; }
4725fi
4726
4727
4728fi
4729if test -z "$CC"; then
4730 if test -n "$ac_tool_prefix"; then
4731 for ac_prog in cl.exe
4732 do
4733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4734set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004737if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004738 $as_echo_n "(cached) " >&6
4739else
4740 if test -n "$CC"; then
4741 ac_cv_prog_CC="$CC" # Let the user override the test.
4742else
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4753 fi
4754done
4755 done
4756IFS=$as_save_IFS
4757
4758fi
4759fi
4760CC=$ac_cv_prog_CC
4761if test -n "$CC"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4763$as_echo "$CC" >&6; }
4764else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766$as_echo "no" >&6; }
4767fi
4768
4769
4770 test -n "$CC" && break
4771 done
4772fi
4773if test -z "$CC"; then
4774 ac_ct_CC=$CC
4775 for ac_prog in cl.exe
4776do
4777 # Extract the first word of "$ac_prog", so it can be a program name with args.
4778set dummy $ac_prog; ac_word=$2
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004781if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004782 $as_echo_n "(cached) " >&6
4783else
4784 if test -n "$ac_ct_CC"; then
4785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004794 ac_cv_prog_ac_ct_CC="$ac_prog"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798done
4799 done
4800IFS=$as_save_IFS
4801
4802fi
4803fi
4804ac_ct_CC=$ac_cv_prog_ac_ct_CC
4805if test -n "$ac_ct_CC"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4807$as_echo "$ac_ct_CC" >&6; }
4808else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810$as_echo "no" >&6; }
4811fi
4812
4813
4814 test -n "$ac_ct_CC" && break
4815done
4816
4817 if test "x$ac_ct_CC" = x; then
4818 CC=""
4819 else
4820 case $cross_compiling:$ac_tool_warned in
4821yes:)
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4824ac_tool_warned=yes ;;
4825esac
4826 CC=$ac_ct_CC
4827 fi
4828fi
4829
4830fi
4831
4832
4833test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00004835as_fn_error $? "no acceptable C compiler found in \$PATH
4836See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00004837
4838# Provide some information about the compiler.
4839$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4840set X $ac_compile
4841ac_compiler=$2
4842for ac_option in --version -v -V -qversion; do
4843 { { ac_try="$ac_compiler $ac_option >&5"
4844case "(($ac_try" in
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4847esac
4848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4849$as_echo "$ac_try_echo"; } >&5
4850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4851 ac_status=$?
4852 if test -s conftest.err; then
4853 sed '10a\
4854... rest of stderr output deleted ...
4855 10q' conftest.err >conftest.er1
4856 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00004857 fi
Joseph Myers22e05272018-10-31 17:03:16 +00004858 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00004859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4860 test $ac_status = 0; }
4861done
4862
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4864$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004865if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004866 $as_echo_n "(cached) " >&6
4867else
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869/* end confdefs.h. */
4870
4871int
4872main ()
4873{
4874#ifndef __GNUC__
4875 choke me
4876#endif
4877
4878 ;
4879 return 0;
4880}
4881_ACEOF
4882if ac_fn_c_try_compile "$LINENO"; then :
4883 ac_compiler_gnu=yes
4884else
4885 ac_compiler_gnu=no
4886fi
4887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888ac_cv_c_compiler_gnu=$ac_compiler_gnu
4889
4890fi
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4892$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4893if test $ac_compiler_gnu = yes; then
4894 GCC=yes
4895else
4896 GCC=
4897fi
4898ac_test_CFLAGS=${CFLAGS+set}
4899ac_save_CFLAGS=$CFLAGS
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4901$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004902if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004903 $as_echo_n "(cached) " >&6
4904else
4905 ac_save_c_werror_flag=$ac_c_werror_flag
4906 ac_c_werror_flag=yes
4907 ac_cv_prog_cc_g=no
4908 CFLAGS="-g"
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910/* end confdefs.h. */
4911
4912int
4913main ()
4914{
4915
4916 ;
4917 return 0;
4918}
4919_ACEOF
4920if ac_fn_c_try_compile "$LINENO"; then :
4921 ac_cv_prog_cc_g=yes
4922else
4923 CFLAGS=""
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925/* end confdefs.h. */
4926
4927int
4928main ()
4929{
4930
4931 ;
4932 return 0;
4933}
4934_ACEOF
4935if ac_fn_c_try_compile "$LINENO"; then :
4936
4937else
4938 ac_c_werror_flag=$ac_save_c_werror_flag
4939 CFLAGS="-g"
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941/* end confdefs.h. */
4942
4943int
4944main ()
4945{
4946
4947 ;
4948 return 0;
4949}
4950_ACEOF
4951if ac_fn_c_try_compile "$LINENO"; then :
4952 ac_cv_prog_cc_g=yes
4953fi
4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955fi
4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957fi
4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 ac_c_werror_flag=$ac_save_c_werror_flag
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4962$as_echo "$ac_cv_prog_cc_g" >&6; }
4963if test "$ac_test_CFLAGS" = set; then
4964 CFLAGS=$ac_save_CFLAGS
4965elif test $ac_cv_prog_cc_g = yes; then
4966 if test "$GCC" = yes; then
4967 CFLAGS="-g -O2"
4968 else
4969 CFLAGS="-g"
4970 fi
4971else
4972 if test "$GCC" = yes; then
4973 CFLAGS="-O2"
4974 else
4975 CFLAGS=
4976 fi
4977fi
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4979$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004980if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004981 $as_echo_n "(cached) " >&6
4982else
4983 ac_cv_prog_cc_c89=no
4984ac_save_CC=$CC
4985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986/* end confdefs.h. */
4987#include <stdarg.h>
4988#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00004989struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00004990/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4991struct buf { int x; };
4992FILE * (*rcsopen) (struct buf *, struct stat *, int);
4993static char *e (p, i)
4994 char **p;
4995 int i;
4996{
4997 return p[i];
4998}
4999static char *f (char * (*g) (char **, int), char **p, ...)
5000{
5001 char *s;
5002 va_list v;
5003 va_start (v,p);
5004 s = g (p, va_arg (v,int));
5005 va_end (v);
5006 return s;
5007}
5008
5009/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5010 function prototypes and stuff, but not '\xHH' hex character constants.
5011 These don't provoke an error unfortunately, instead are silently treated
5012 as 'x'. The following induces an error, until -std is added to get
5013 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5014 array size at least. It's necessary to write '\x00'==0 to get something
5015 that's true only with -std. */
5016int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5017
5018/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5019 inside strings and character constants. */
5020#define FOO(x) 'x'
5021int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5022
5023int test (int i, double x);
5024struct s1 {int (*f) (int a);};
5025struct s2 {int (*f) (double a);};
5026int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5027int argc;
5028char **argv;
5029int
5030main ()
5031{
5032return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5033 ;
5034 return 0;
5035}
5036_ACEOF
5037for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5038 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5039do
5040 CC="$ac_save_CC $ac_arg"
5041 if ac_fn_c_try_compile "$LINENO"; then :
5042 ac_cv_prog_cc_c89=$ac_arg
5043fi
5044rm -f core conftest.err conftest.$ac_objext
5045 test "x$ac_cv_prog_cc_c89" != "xno" && break
5046done
5047rm -f conftest.$ac_ext
5048CC=$ac_save_CC
5049
5050fi
5051# AC_CACHE_VAL
5052case "x$ac_cv_prog_cc_c89" in
5053 x)
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5055$as_echo "none needed" >&6; } ;;
5056 xno)
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5058$as_echo "unsupported" >&6; } ;;
5059 *)
5060 CC="$CC $ac_cv_prog_cc_c89"
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5062$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5063esac
5064if test "x$ac_cv_prog_cc_c89" != xno; then :
5065
5066fi
5067
5068ac_ext=c
5069ac_cpp='$CPP $CPPFLAGS'
5070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073
Joseph Myers22e05272018-10-31 17:03:16 +00005074ac_ext=c
5075ac_cpp='$CPP $CPPFLAGS'
5076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5080$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5081if ${am_cv_prog_cc_c_o+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083else
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h. */
5086
5087int
5088main ()
5089{
5090
5091 ;
5092 return 0;
5093}
5094_ACEOF
5095 # Make sure it works both with $CC and with simple cc.
5096 # Following AC_PROG_CC_C_O, we do the test twice because some
5097 # compilers refuse to overwrite an existing .o file with -o,
5098 # though they will create one.
5099 am_cv_prog_cc_c_o=yes
5100 for am_i in 1 2; do
5101 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5102 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } \
5106 && test -f conftest2.$ac_objext; then
5107 : OK
5108 else
5109 am_cv_prog_cc_c_o=no
5110 break
5111 fi
5112 done
5113 rm -f core conftest*
5114 unset am_i
5115fi
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5117$as_echo "$am_cv_prog_cc_c_o" >&6; }
5118if test "$am_cv_prog_cc_c_o" != yes; then
5119 # Losing compiler, so override with the script.
5120 # FIXME: It is wrong to rewrite CC.
5121 # But if we don't then we get into trouble of one sort or another.
5122 # A longer-term fix would be to have automake use am__CC in this case,
5123 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5124 CC="$am_aux_dir/compile $CC"
5125fi
5126ac_ext=c
5127ac_cpp='$CPP $CPPFLAGS'
5128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130ac_compiler_gnu=$ac_cv_c_compiler_gnu
5131
5132
Iain Buclawb4c522f2018-10-28 19:51:47 +00005133ac_ext=d
5134ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5135ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136ac_compiler_gnu=yes
5137if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5139set dummy ${ac_tool_prefix}gdc; ac_word=$2
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005142if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005143 $as_echo_n "(cached) " >&6
5144else
5145 if test -n "$GDC"; then
5146 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005155 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159done
5160 done
5161IFS=$as_save_IFS
5162
5163fi
5164fi
5165GDC=$ac_cv_prog_GDC
5166if test -n "$GDC"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5168$as_echo "$GDC" >&6; }
5169else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
5172fi
5173
5174
5175fi
5176if test -z "$ac_cv_prog_GDC"; then
5177 ac_ct_GDC=$GDC
5178 # Extract the first word of "gdc", so it can be a program name with args.
5179set dummy gdc; ac_word=$2
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005182if ${ac_cv_prog_ac_ct_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005183 $as_echo_n "(cached) " >&6
5184else
5185 if test -n "$ac_ct_GDC"; then
5186 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5187else
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005195 ac_cv_prog_ac_ct_GDC="gdc"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5198 fi
5199done
5200 done
5201IFS=$as_save_IFS
5202
5203fi
5204fi
5205ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5206if test -n "$ac_ct_GDC"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5208$as_echo "$ac_ct_GDC" >&6; }
5209else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
5212fi
5213
5214 if test "x$ac_ct_GDC" = x; then
5215 GDC=""
5216 else
5217 case $cross_compiling:$ac_tool_warned in
5218yes:)
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221ac_tool_warned=yes ;;
5222esac
5223 GDC=$ac_ct_GDC
5224 fi
5225else
5226 GDC="$ac_cv_prog_GDC"
5227fi
5228
5229if test -z "$GDC"; then
5230 if test -n "$ac_tool_prefix"; then
5231 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5232set dummy ${ac_tool_prefix}gdc; ac_word=$2
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005235if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005236 $as_echo_n "(cached) " >&6
5237else
5238 if test -n "$GDC"; then
5239 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005248 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5251 fi
5252done
5253 done
5254IFS=$as_save_IFS
5255
5256fi
5257fi
5258GDC=$ac_cv_prog_GDC
5259if test -n "$GDC"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5261$as_echo "$GDC" >&6; }
5262else
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264$as_echo "no" >&6; }
5265fi
5266
5267
5268 fi
5269fi
5270if test -z "$GDC"; then
5271 # Extract the first word of "gdc", so it can be a program name with args.
5272set dummy gdc; ac_word=$2
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005275if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005276 $as_echo_n "(cached) " >&6
5277else
5278 if test -n "$GDC"; then
5279 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5280else
5281 ac_prog_rejected=no
5282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH
5284do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005289 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5290 ac_prog_rejected=yes
5291 continue
5292 fi
5293 ac_cv_prog_GDC="gdc"
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5296 fi
5297done
5298 done
5299IFS=$as_save_IFS
5300
5301if test $ac_prog_rejected = yes; then
5302 # We found a bogon in the path, so make sure we never use it.
5303 set dummy $ac_cv_prog_GDC
5304 shift
5305 if test $# != 0; then
5306 # We chose a different compiler from the bogus one.
5307 # However, it has the same basename, so the bogon will be chosen
5308 # first if we set GDC to just the basename; use the full file name.
5309 shift
5310 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5311 fi
5312fi
5313fi
5314fi
5315GDC=$ac_cv_prog_GDC
5316if test -n "$GDC"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5318$as_echo "$GDC" >&6; }
5319else
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321$as_echo "no" >&6; }
5322fi
5323
5324
5325fi
5326
5327
5328# Provide some information about the compiler.
5329$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5330set X $ac_compile
5331ac_compiler=$2
5332{ { ac_try="$ac_compiler --version >&5"
5333case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336esac
5337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5338$as_echo "$ac_try_echo"; } >&5
5339 (eval "$ac_compiler --version >&5") 2>conftest.err
5340 ac_status=$?
5341 if test -s conftest.err; then
5342 sed '10a\
5343... rest of stderr output deleted ...
5344 10q' conftest.err >conftest.er1
5345 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005346 fi
Joseph Myers22e05272018-10-31 17:03:16 +00005347 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00005348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5349 test $ac_status = 0; }
5350ac_ext=c
5351ac_cpp='$CPP $CPPFLAGS'
5352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355
5356
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5358$as_echo_n "checking for absolute libphobos source path... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005359if ${phobos_cv_abs_srcdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005360 $as_echo_n "(cached) " >&6
5361else
5362 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5363fi
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5365$as_echo "$phobos_cv_abs_srcdir" >&6; }
5366 if test -d "$phobos_cv_abs_srcdir"; then :
5367
5368else
Joseph Myers22e05272018-10-31 17:03:16 +00005369 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005370fi
5371
5372
5373
5374
5375 gdc_save_DFLAGS=$GDCFLAGS
5376 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5377
5378 ac_ext=d
5379ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5380ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381ac_compiler_gnu=yes
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5384$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5385 cat > conftest.$ac_ext <<_ACEOF
5386module mod;
5387
5388
5389extern(C) int main() {
5390 return 0;
5391}
5392_ACEOF
5393if ac_fn_d_try_compile "$LINENO"; then :
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5395$as_echo "yes" >&6; }
5396else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398$as_echo "no" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005399 as_fn_error $? "can't compile D sources!" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005400fi
5401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 ac_ext=c
5403ac_cpp='$CPP $CPPFLAGS'
5404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407
5408
5409 GDCFLAGS=$gdc_save_DFLAGS
5410
5411
5412
5413
5414
5415
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5417$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5418 # Check whether --enable-maintainer-mode was given.
5419if test "${enable_maintainer_mode+set}" = set; then :
5420 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5421else
5422 USE_MAINTAINER_MODE=no
5423fi
5424
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5426$as_echo "$USE_MAINTAINER_MODE" >&6; }
5427 if test $USE_MAINTAINER_MODE = yes; then
5428 MAINTAINER_MODE_TRUE=
5429 MAINTAINER_MODE_FALSE='#'
5430else
5431 MAINTAINER_MODE_TRUE='#'
5432 MAINTAINER_MODE_FALSE=
5433fi
5434
5435 MAINT=$MAINTAINER_MODE_TRUE
5436
5437
5438if test -n "$ac_tool_prefix"; then
5439 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5440set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005443if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005444 $as_echo_n "(cached) " >&6
5445else
5446 if test -n "$RANLIB"; then
5447 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005456 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 break 2
5459 fi
5460done
5461 done
5462IFS=$as_save_IFS
5463
5464fi
5465fi
5466RANLIB=$ac_cv_prog_RANLIB
5467if test -n "$RANLIB"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5469$as_echo "$RANLIB" >&6; }
5470else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472$as_echo "no" >&6; }
5473fi
5474
5475
5476fi
5477if test -z "$ac_cv_prog_RANLIB"; then
5478 ac_ct_RANLIB=$RANLIB
5479 # Extract the first word of "ranlib", so it can be a program name with args.
5480set dummy ranlib; ac_word=$2
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005483if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005484 $as_echo_n "(cached) " >&6
5485else
5486 if test -n "$ac_ct_RANLIB"; then
5487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5488else
5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005496 ac_cv_prog_ac_ct_RANLIB="ranlib"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5499 fi
5500done
5501 done
5502IFS=$as_save_IFS
5503
5504fi
5505fi
5506ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5507if test -n "$ac_ct_RANLIB"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5509$as_echo "$ac_ct_RANLIB" >&6; }
5510else
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512$as_echo "no" >&6; }
5513fi
5514
5515 if test "x$ac_ct_RANLIB" = x; then
5516 RANLIB=":"
5517 else
5518 case $cross_compiling:$ac_tool_warned in
5519yes:)
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5522ac_tool_warned=yes ;;
5523esac
5524 RANLIB=$ac_ct_RANLIB
5525 fi
5526else
5527 RANLIB="$ac_cv_prog_RANLIB"
5528fi
5529
5530
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5532$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5533set x ${MAKE-make}
5534ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00005535if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005536 $as_echo_n "(cached) " >&6
5537else
5538 cat >conftest.make <<\_ACEOF
5539SHELL = /bin/sh
5540all:
5541 @echo '@@@%%%=$(MAKE)=@@@%%%'
5542_ACEOF
Joseph Myers22e05272018-10-31 17:03:16 +00005543# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Iain Buclawb4c522f2018-10-28 19:51:47 +00005544case `${MAKE-make} -f conftest.make 2>/dev/null` in
5545 *@@@%%%=?*=@@@%%%*)
5546 eval ac_cv_prog_make_${ac_make}_set=yes;;
5547 *)
5548 eval ac_cv_prog_make_${ac_make}_set=no;;
5549esac
5550rm -f conftest.make
5551fi
5552if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5554$as_echo "yes" >&6; }
5555 SET_MAKE=
5556else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558$as_echo "no" >&6; }
5559 SET_MAKE="MAKE=${MAKE-make}"
5560fi
5561
5562
5563# This should be inherited in the recursive make, but ensure it is defined.
5564test "$AR" || AR=ar
5565
5566
5567CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5568
5569
5570
5571# Enable libtool
5572case `pwd` in
5573 *\ * | *\ *)
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5575$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5576esac
5577
5578
5579
5580macro_version='2.2.7a'
5581macro_revision='1.3134'
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595ltmain="$ac_aux_dir/ltmain.sh"
5596
5597# Backslashify metacharacters that are still active within
5598# double-quoted strings.
5599sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5600
5601# Same as above, but do not quote variable references.
5602double_quote_subst='s/\(["`\\]\)/\\\1/g'
5603
5604# Sed substitution to delay expansion of an escaped shell variable in a
5605# double_quote_subst'ed string.
5606delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5607
5608# Sed substitution to delay expansion of an escaped single quote.
5609delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5610
5611# Sed substitution to avoid accidental globbing in evaled expressions
5612no_glob_subst='s/\*/\\\*/g'
5613
5614ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5615ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5616ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5617
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5619$as_echo_n "checking how to print strings... " >&6; }
5620# Test print first, because it will be a builtin if present.
5621if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5622 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5623 ECHO='print -r --'
5624elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5625 ECHO='printf %s\n'
5626else
5627 # Use this function as a fallback that always works.
5628 func_fallback_echo ()
5629 {
5630 eval 'cat <<_LTECHO_EOF
5631$1
5632_LTECHO_EOF'
5633 }
5634 ECHO='func_fallback_echo'
5635fi
5636
5637# func_echo_all arg...
5638# Invoke $ECHO with all args, space-separated.
5639func_echo_all ()
5640{
5641 $ECHO ""
5642}
5643
5644case "$ECHO" in
5645 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5646$as_echo "printf" >&6; } ;;
5647 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5648$as_echo "print -r" >&6; } ;;
5649 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5650$as_echo "cat" >&6; } ;;
5651esac
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5667$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005668if ${ac_cv_path_SED+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005669 $as_echo_n "(cached) " >&6
5670else
5671 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5672 for ac_i in 1 2 3 4 5 6 7; do
5673 ac_script="$ac_script$as_nl$ac_script"
5674 done
5675 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5676 { ac_script=; unset ac_script;}
5677 if test -z "$SED"; then
5678 ac_path_SED_found=false
5679 # Loop through the user's path and test for each of PROGNAME-LIST
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681for as_dir in $PATH
5682do
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
5685 for ac_prog in sed gsed; do
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005688 as_fn_executable_p "$ac_path_SED" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005689# Check for GNU ac_path_SED and select it if it is found.
5690 # Check for GNU $ac_path_SED
5691case `"$ac_path_SED" --version 2>&1` in
5692*GNU*)
5693 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5694*)
5695 ac_count=0
5696 $as_echo_n 0123456789 >"conftest.in"
5697 while :
5698 do
5699 cat "conftest.in" "conftest.in" >"conftest.tmp"
5700 mv "conftest.tmp" "conftest.in"
5701 cp "conftest.in" "conftest.nl"
5702 $as_echo '' >> "conftest.nl"
5703 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5705 as_fn_arith $ac_count + 1 && ac_count=$as_val
5706 if test $ac_count -gt ${ac_path_SED_max-0}; then
5707 # Best one so far, save it but keep looking for a better one
5708 ac_cv_path_SED="$ac_path_SED"
5709 ac_path_SED_max=$ac_count
5710 fi
5711 # 10*(2^10) chars as input seems more than enough
5712 test $ac_count -gt 10 && break
5713 done
5714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5715esac
5716
5717 $ac_path_SED_found && break 3
5718 done
5719 done
5720 done
5721IFS=$as_save_IFS
5722 if test -z "$ac_cv_path_SED"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005723 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005724 fi
5725else
5726 ac_cv_path_SED=$SED
5727fi
5728
5729fi
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5731$as_echo "$ac_cv_path_SED" >&6; }
5732 SED="$ac_cv_path_SED"
5733 rm -f conftest.sed
5734
5735test -z "$SED" && SED=sed
5736Xsed="$SED -e 1s/^X//"
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
Iain Buclawb4c522f2018-10-28 19:51:47 +00005748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5749$as_echo_n "checking for fgrep... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005750if ${ac_cv_path_FGREP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005751 $as_echo_n "(cached) " >&6
5752else
5753 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5754 then ac_cv_path_FGREP="$GREP -F"
5755 else
5756 if test -z "$FGREP"; then
5757 ac_path_FGREP_found=false
5758 # Loop through the user's path and test for each of PROGNAME-LIST
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5761do
5762 IFS=$as_save_IFS
5763 test -z "$as_dir" && as_dir=.
5764 for ac_prog in fgrep; do
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005767 as_fn_executable_p "$ac_path_FGREP" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005768# Check for GNU ac_path_FGREP and select it if it is found.
5769 # Check for GNU $ac_path_FGREP
5770case `"$ac_path_FGREP" --version 2>&1` in
5771*GNU*)
5772 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5773*)
5774 ac_count=0
5775 $as_echo_n 0123456789 >"conftest.in"
5776 while :
5777 do
5778 cat "conftest.in" "conftest.in" >"conftest.tmp"
5779 mv "conftest.tmp" "conftest.in"
5780 cp "conftest.in" "conftest.nl"
5781 $as_echo 'FGREP' >> "conftest.nl"
5782 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5784 as_fn_arith $ac_count + 1 && ac_count=$as_val
5785 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5786 # Best one so far, save it but keep looking for a better one
5787 ac_cv_path_FGREP="$ac_path_FGREP"
5788 ac_path_FGREP_max=$ac_count
5789 fi
5790 # 10*(2^10) chars as input seems more than enough
5791 test $ac_count -gt 10 && break
5792 done
5793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5794esac
5795
5796 $ac_path_FGREP_found && break 3
5797 done
5798 done
5799 done
5800IFS=$as_save_IFS
5801 if test -z "$ac_cv_path_FGREP"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005802 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 +00005803 fi
5804else
5805 ac_cv_path_FGREP=$FGREP
5806fi
5807
5808 fi
5809fi
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5811$as_echo "$ac_cv_path_FGREP" >&6; }
5812 FGREP="$ac_cv_path_FGREP"
5813
5814
5815test -z "$GREP" && GREP=grep
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835# Check whether --with-gnu-ld was given.
5836if test "${with_gnu_ld+set}" = set; then :
5837 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5838else
5839 with_gnu_ld=no
5840fi
5841
5842ac_prog=ld
5843if test "$GCC" = yes; then
5844 # Check if gcc -print-prog-name=ld gives a path.
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5846$as_echo_n "checking for ld used by $CC... " >&6; }
5847 case $host in
5848 *-*-mingw*)
5849 # gcc leaves a trailing carriage return which upsets mingw
5850 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5851 *)
5852 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5853 esac
5854 case $ac_prog in
5855 # Accept absolute paths.
5856 [\\/]* | ?:[\\/]*)
5857 re_direlt='/[^/][^/]*/\.\./'
5858 # Canonicalize the pathname of ld
5859 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5860 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5861 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5862 done
5863 test -z "$LD" && LD="$ac_prog"
5864 ;;
5865 "")
5866 # If it fails, then pretend we aren't using GCC.
5867 ac_prog=ld
5868 ;;
5869 *)
5870 # If it is relative, then search for the first ld in PATH.
5871 with_gnu_ld=unknown
5872 ;;
5873 esac
5874elif test "$with_gnu_ld" = yes; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5876$as_echo_n "checking for GNU ld... " >&6; }
5877else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5879$as_echo_n "checking for non-GNU ld... " >&6; }
5880fi
Joseph Myers22e05272018-10-31 17:03:16 +00005881if ${lt_cv_path_LD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005882 $as_echo_n "(cached) " >&6
5883else
5884 if test -z "$LD"; then
5885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5886 for ac_dir in $PATH; do
5887 IFS="$lt_save_ifs"
5888 test -z "$ac_dir" && ac_dir=.
5889 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5890 lt_cv_path_LD="$ac_dir/$ac_prog"
5891 # Check to see if the program is GNU ld. I'd rather use --version,
5892 # but apparently some variants of GNU ld only accept -v.
5893 # Break only if it was the GNU/non-GNU ld that we prefer.
5894 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5895 *GNU* | *'with BFD'*)
5896 test "$with_gnu_ld" != no && break
5897 ;;
5898 *)
5899 test "$with_gnu_ld" != yes && break
5900 ;;
5901 esac
5902 fi
5903 done
5904 IFS="$lt_save_ifs"
5905else
5906 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5907fi
5908fi
5909
5910LD="$lt_cv_path_LD"
5911if test -n "$LD"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5913$as_echo "$LD" >&6; }
5914else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916$as_echo "no" >&6; }
5917fi
Joseph Myers22e05272018-10-31 17:03:16 +00005918test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5920$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005921if ${lt_cv_prog_gnu_ld+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005922 $as_echo_n "(cached) " >&6
5923else
5924 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5925case `$LD -v 2>&1 </dev/null` in
5926*GNU* | *'with BFD'*)
5927 lt_cv_prog_gnu_ld=yes
5928 ;;
5929*)
5930 lt_cv_prog_gnu_ld=no
5931 ;;
5932esac
5933fi
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5935$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5936with_gnu_ld=$lt_cv_prog_gnu_ld
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5947$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005948if ${lt_cv_path_NM+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005949 $as_echo_n "(cached) " >&6
5950else
5951 if test -n "$NM"; then
5952 # Let the user override the test.
5953 lt_cv_path_NM="$NM"
5954else
5955 lt_nm_to_check="${ac_tool_prefix}nm"
5956 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5957 lt_nm_to_check="$lt_nm_to_check nm"
5958 fi
5959 for lt_tmp_nm in $lt_nm_to_check; do
5960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5961 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5962 IFS="$lt_save_ifs"
5963 test -z "$ac_dir" && ac_dir=.
5964 tmp_nm="$ac_dir/$lt_tmp_nm"
5965 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5966 # Check to see if the nm accepts a BSD-compat flag.
5967 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5968 # nm: unknown option "B" ignored
5969 # Tru64's nm complains that /dev/null is an invalid object file
5970 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5971 */dev/null* | *'Invalid file or object type'*)
5972 lt_cv_path_NM="$tmp_nm -B"
5973 break
5974 ;;
5975 *)
5976 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5977 */dev/null*)
5978 lt_cv_path_NM="$tmp_nm -p"
5979 break
5980 ;;
5981 *)
5982 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5983 continue # so that we can try to find one that supports BSD flags
5984 ;;
5985 esac
5986 ;;
5987 esac
5988 fi
5989 done
5990 IFS="$lt_save_ifs"
5991 done
5992 : ${lt_cv_path_NM=no}
5993fi
5994fi
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5996$as_echo "$lt_cv_path_NM" >&6; }
5997if test "$lt_cv_path_NM" != "no"; then
5998 NM="$lt_cv_path_NM"
5999else
6000 # Didn't find any BSD compatible name lister, look for dumpbin.
6001 if test -n "$DUMPBIN"; then :
6002 # Let the user override the test.
6003 else
6004 if test -n "$ac_tool_prefix"; then
6005 for ac_prog in dumpbin "link -dump"
6006 do
6007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6008set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006011if ${ac_cv_prog_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006012 $as_echo_n "(cached) " >&6
6013else
6014 if test -n "$DUMPBIN"; then
6015 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6016else
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006024 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 break 2
6027 fi
6028done
6029 done
6030IFS=$as_save_IFS
6031
6032fi
6033fi
6034DUMPBIN=$ac_cv_prog_DUMPBIN
6035if test -n "$DUMPBIN"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6037$as_echo "$DUMPBIN" >&6; }
6038else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040$as_echo "no" >&6; }
6041fi
6042
6043
6044 test -n "$DUMPBIN" && break
6045 done
6046fi
6047if test -z "$DUMPBIN"; then
6048 ac_ct_DUMPBIN=$DUMPBIN
6049 for ac_prog in dumpbin "link -dump"
6050do
6051 # Extract the first word of "$ac_prog", so it can be a program name with args.
6052set dummy $ac_prog; ac_word=$2
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006055if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006056 $as_echo_n "(cached) " >&6
6057else
6058 if test -n "$ac_ct_DUMPBIN"; then
6059 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006068 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072done
6073 done
6074IFS=$as_save_IFS
6075
6076fi
6077fi
6078ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6079if test -n "$ac_ct_DUMPBIN"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6081$as_echo "$ac_ct_DUMPBIN" >&6; }
6082else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084$as_echo "no" >&6; }
6085fi
6086
6087
6088 test -n "$ac_ct_DUMPBIN" && break
6089done
6090
6091 if test "x$ac_ct_DUMPBIN" = x; then
6092 DUMPBIN=":"
6093 else
6094 case $cross_compiling:$ac_tool_warned in
6095yes:)
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098ac_tool_warned=yes ;;
6099esac
6100 DUMPBIN=$ac_ct_DUMPBIN
6101 fi
6102fi
6103
6104 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6105 *COFF*)
6106 DUMPBIN="$DUMPBIN -symbols"
6107 ;;
6108 *)
6109 DUMPBIN=:
6110 ;;
6111 esac
6112 fi
6113
6114 if test "$DUMPBIN" != ":"; then
6115 NM="$DUMPBIN"
6116 fi
6117fi
6118test -z "$NM" && NM=nm
6119
6120
6121
6122
6123
6124
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6126$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006127if ${lt_cv_nm_interface+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006128 $as_echo_n "(cached) " >&6
6129else
6130 lt_cv_nm_interface="BSD nm"
6131 echo "int some_variable = 0;" > conftest.$ac_ext
6132 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6133 (eval "$ac_compile" 2>conftest.err)
6134 cat conftest.err >&5
6135 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6136 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6137 cat conftest.err >&5
6138 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6139 cat conftest.out >&5
6140 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6141 lt_cv_nm_interface="MS dumpbin"
6142 fi
6143 rm -f conftest*
6144fi
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6146$as_echo "$lt_cv_nm_interface" >&6; }
6147
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6149$as_echo_n "checking whether ln -s works... " >&6; }
6150LN_S=$as_ln_s
6151if test "$LN_S" = "ln -s"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6153$as_echo "yes" >&6; }
6154else
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6156$as_echo "no, using $LN_S" >&6; }
6157fi
6158
6159# find the maximum length of command line arguments
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6161$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006162if ${lt_cv_sys_max_cmd_len+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006163 $as_echo_n "(cached) " >&6
6164else
6165 i=0
6166 teststring="ABCD"
6167
6168 case $build_os in
6169 msdosdjgpp*)
6170 # On DJGPP, this test can blow up pretty badly due to problems in libc
6171 # (any single argument exceeding 2000 bytes causes a buffer overrun
6172 # during glob expansion). Even if it were fixed, the result of this
6173 # check would be larger than it should be.
6174 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6175 ;;
6176
6177 gnu*)
6178 # Under GNU Hurd, this test is not required because there is
6179 # no limit to the length of command line arguments.
6180 # Libtool will interpret -1 as no limit whatsoever
6181 lt_cv_sys_max_cmd_len=-1;
6182 ;;
6183
6184 cygwin* | mingw* | cegcc*)
6185 # On Win9x/ME, this test blows up -- it succeeds, but takes
6186 # about 5 minutes as the teststring grows exponentially.
6187 # Worse, since 9x/ME are not pre-emptively multitasking,
6188 # you end up with a "frozen" computer, even though with patience
6189 # the test eventually succeeds (with a max line length of 256k).
6190 # Instead, let's just punt: use the minimum linelength reported by
6191 # all of the supported platforms: 8192 (on NT/2K/XP).
6192 lt_cv_sys_max_cmd_len=8192;
6193 ;;
6194
6195 mint*)
6196 # On MiNT this can take a long time and run out of memory.
6197 lt_cv_sys_max_cmd_len=8192;
6198 ;;
6199
6200 amigaos*)
6201 # On AmigaOS with pdksh, this test takes hours, literally.
6202 # So we just punt and use a minimum line length of 8192.
6203 lt_cv_sys_max_cmd_len=8192;
6204 ;;
6205
6206 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6207 # This has been around since 386BSD, at least. Likely further.
6208 if test -x /sbin/sysctl; then
6209 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6210 elif test -x /usr/sbin/sysctl; then
6211 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6212 else
6213 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6214 fi
6215 # And add a safety zone
6216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6218 ;;
6219
6220 interix*)
6221 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6222 lt_cv_sys_max_cmd_len=196608
6223 ;;
6224
6225 osf*)
6226 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6227 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6228 # nice to cause kernel panics so lets avoid the loop below.
6229 # First set a reasonable default.
6230 lt_cv_sys_max_cmd_len=16384
6231 #
6232 if test -x /sbin/sysconfig; then
6233 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6234 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6235 esac
6236 fi
6237 ;;
6238 sco3.2v5*)
6239 lt_cv_sys_max_cmd_len=102400
6240 ;;
6241 sysv5* | sco5v6* | sysv4.2uw2*)
6242 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6243 if test -n "$kargmax"; then
6244 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6245 else
6246 lt_cv_sys_max_cmd_len=32768
6247 fi
6248 ;;
6249 *)
6250 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6251 if test -n "$lt_cv_sys_max_cmd_len"; then
6252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6254 else
6255 # Make teststring a little bigger before we do anything with it.
6256 # a 1K string should be a reasonable start.
6257 for i in 1 2 3 4 5 6 7 8 ; do
6258 teststring=$teststring$teststring
6259 done
6260 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6261 # If test is not a shell built-in, we'll probably end up computing a
6262 # maximum length that is only half of the actual maximum length, but
6263 # we can't tell.
6264 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6265 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6266 test $i != 17 # 1/2 MB should be enough
6267 do
6268 i=`expr $i + 1`
6269 teststring=$teststring$teststring
6270 done
6271 # Only check the string length outside the loop.
6272 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6273 teststring=
6274 # Add a significant safety factor because C++ compilers can tack on
6275 # massive amounts of additional arguments before passing them to the
6276 # linker. It appears as though 1/2 is a usable value.
6277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6278 fi
6279 ;;
6280 esac
6281
6282fi
6283
6284if test -n $lt_cv_sys_max_cmd_len ; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6286$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6287else
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6289$as_echo "none" >&6; }
6290fi
6291max_cmd_len=$lt_cv_sys_max_cmd_len
6292
6293
6294
6295
6296
6297
6298: ${CP="cp -f"}
6299: ${MV="mv -f"}
6300: ${RM="rm -f"}
6301
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6303$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6304# Try some XSI features
6305xsi_shell=no
6306( _lt_dummy="a/b/c"
6307 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6308 = c,a/b,, \
6309 && eval 'test $(( 1 + 1 )) -eq 2 \
6310 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6311 && xsi_shell=yes
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6313$as_echo "$xsi_shell" >&6; }
6314
6315
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6317$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6318lt_shell_append=no
6319( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6320 >/dev/null 2>&1 \
6321 && lt_shell_append=yes
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6323$as_echo "$lt_shell_append" >&6; }
6324
6325
6326if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6327 lt_unset=unset
6328else
6329 lt_unset=false
6330fi
6331
6332
6333
6334
6335
6336# test EBCDIC or ASCII
6337case `echo X|tr X '\101'` in
6338 A) # ASCII based system
6339 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6340 lt_SP2NL='tr \040 \012'
6341 lt_NL2SP='tr \015\012 \040\040'
6342 ;;
6343 *) # EBCDIC based system
6344 lt_SP2NL='tr \100 \n'
6345 lt_NL2SP='tr \r\n \100\100'
6346 ;;
6347esac
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6358$as_echo_n "checking for $LD option to reload object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006359if ${lt_cv_ld_reload_flag+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006360 $as_echo_n "(cached) " >&6
6361else
6362 lt_cv_ld_reload_flag='-r'
6363fi
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6365$as_echo "$lt_cv_ld_reload_flag" >&6; }
6366reload_flag=$lt_cv_ld_reload_flag
6367case $reload_flag in
6368"" | " "*) ;;
6369*) reload_flag=" $reload_flag" ;;
6370esac
6371reload_cmds='$LD$reload_flag -o $output$reload_objs'
6372case $host_os in
6373 darwin*)
6374 if test "$GCC" = yes; then
6375 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6376 else
6377 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6378 fi
6379 ;;
6380esac
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390if test -n "$ac_tool_prefix"; then
6391 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6392set dummy ${ac_tool_prefix}objdump; ac_word=$2
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006395if ${ac_cv_prog_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006396 $as_echo_n "(cached) " >&6
6397else
6398 if test -n "$OBJDUMP"; then
6399 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006408 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412done
6413 done
6414IFS=$as_save_IFS
6415
6416fi
6417fi
6418OBJDUMP=$ac_cv_prog_OBJDUMP
6419if test -n "$OBJDUMP"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6421$as_echo "$OBJDUMP" >&6; }
6422else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424$as_echo "no" >&6; }
6425fi
6426
6427
6428fi
6429if test -z "$ac_cv_prog_OBJDUMP"; then
6430 ac_ct_OBJDUMP=$OBJDUMP
6431 # Extract the first word of "objdump", so it can be a program name with args.
6432set dummy objdump; ac_word=$2
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006435if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006436 $as_echo_n "(cached) " >&6
6437else
6438 if test -n "$ac_ct_OBJDUMP"; then
6439 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006448 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452done
6453 done
6454IFS=$as_save_IFS
6455
6456fi
6457fi
6458ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6459if test -n "$ac_ct_OBJDUMP"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6461$as_echo "$ac_ct_OBJDUMP" >&6; }
6462else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
6465fi
6466
6467 if test "x$ac_ct_OBJDUMP" = x; then
6468 OBJDUMP="false"
6469 else
6470 case $cross_compiling:$ac_tool_warned in
6471yes:)
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474ac_tool_warned=yes ;;
6475esac
6476 OBJDUMP=$ac_ct_OBJDUMP
6477 fi
6478else
6479 OBJDUMP="$ac_cv_prog_OBJDUMP"
6480fi
6481
6482test -z "$OBJDUMP" && OBJDUMP=objdump
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6493$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006494if ${lt_cv_deplibs_check_method+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006495 $as_echo_n "(cached) " >&6
6496else
6497 lt_cv_file_magic_cmd='$MAGIC_CMD'
6498lt_cv_file_magic_test_file=
6499lt_cv_deplibs_check_method='unknown'
6500# Need to set the preceding variable on all platforms that support
6501# interlibrary dependencies.
6502# 'none' -- dependencies not supported.
6503# `unknown' -- same as none, but documents that we really don't know.
6504# 'pass_all' -- all dependencies passed with no checks.
6505# 'test_compile' -- check by making test program.
6506# 'file_magic [[regex]]' -- check by looking for files in library path
6507# which responds to the $file_magic_cmd with a given extended regex.
6508# If you have `file' or equivalent on your system and you're not sure
6509# whether `pass_all' will *always* work, you probably want this one.
6510
6511case $host_os in
6512aix[4-9]*)
6513 lt_cv_deplibs_check_method=pass_all
6514 ;;
6515
6516beos*)
6517 lt_cv_deplibs_check_method=pass_all
6518 ;;
6519
6520bsdi[45]*)
6521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6522 lt_cv_file_magic_cmd='/usr/bin/file -L'
6523 lt_cv_file_magic_test_file=/shlib/libc.so
6524 ;;
6525
6526cygwin*)
6527 # func_win32_libid is a shell function defined in ltmain.sh
6528 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6529 lt_cv_file_magic_cmd='func_win32_libid'
6530 ;;
6531
6532mingw* | pw32*)
6533 # Base MSYS/MinGW do not provide the 'file' command needed by
6534 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6535 # unless we find 'file', for example because we are cross-compiling.
6536 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6537 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6538 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6539 lt_cv_file_magic_cmd='func_win32_libid'
6540 else
6541 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6542 lt_cv_file_magic_cmd='$OBJDUMP -f'
6543 fi
6544 ;;
6545
6546cegcc*)
6547 # use the weaker test based on 'objdump'. See mingw*.
6548 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6549 lt_cv_file_magic_cmd='$OBJDUMP -f'
6550 ;;
6551
6552darwin* | rhapsody*)
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
6555
6556freebsd* | dragonfly*)
6557 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6558 case $host_cpu in
6559 i*86 )
6560 # Not sure whether the presence of OpenBSD here was a mistake.
6561 # Let's accept both of them until this is cleared up.
6562 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6563 lt_cv_file_magic_cmd=/usr/bin/file
6564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6565 ;;
6566 esac
6567 else
6568 lt_cv_deplibs_check_method=pass_all
6569 fi
6570 ;;
6571
6572gnu*)
6573 lt_cv_deplibs_check_method=pass_all
6574 ;;
6575
6576haiku*)
6577 lt_cv_deplibs_check_method=pass_all
6578 ;;
6579
6580hpux10.20* | hpux11*)
6581 lt_cv_file_magic_cmd=/usr/bin/file
6582 case $host_cpu in
6583 ia64*)
6584 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6585 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6586 ;;
6587 hppa*64*)
6588 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]'
6589 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6590 ;;
6591 *)
6592 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6593 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6594 ;;
6595 esac
6596 ;;
6597
6598interix[3-9]*)
6599 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6601 ;;
6602
6603irix5* | irix6* | nonstopux*)
6604 case $LD in
6605 *-32|*"-32 ") libmagic=32-bit;;
6606 *-n32|*"-n32 ") libmagic=N32;;
6607 *-64|*"-64 ") libmagic=64-bit;;
6608 *) libmagic=never-match;;
6609 esac
6610 lt_cv_deplibs_check_method=pass_all
6611 ;;
6612
6613# This must be Linux ELF.
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +00006614linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +00006615 lt_cv_deplibs_check_method=pass_all
6616 ;;
6617
6618netbsd*)
6619 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6621 else
6622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6623 fi
6624 ;;
6625
6626newos6*)
6627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6628 lt_cv_file_magic_cmd=/usr/bin/file
6629 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6630 ;;
6631
6632*nto* | *qnx*)
6633 lt_cv_deplibs_check_method=pass_all
6634 ;;
6635
6636openbsd*)
6637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6639 else
6640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6641 fi
6642 ;;
6643
6644osf3* | osf4* | osf5*)
6645 lt_cv_deplibs_check_method=pass_all
6646 ;;
6647
6648rdos*)
6649 lt_cv_deplibs_check_method=pass_all
6650 ;;
6651
6652solaris*)
6653 lt_cv_deplibs_check_method=pass_all
6654 ;;
6655
6656sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6657 lt_cv_deplibs_check_method=pass_all
6658 ;;
6659
6660sysv4 | sysv4.3*)
6661 case $host_vendor in
6662 motorola)
6663 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]'
6664 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6665 ;;
6666 ncr)
6667 lt_cv_deplibs_check_method=pass_all
6668 ;;
6669 sequent)
6670 lt_cv_file_magic_cmd='/bin/file'
6671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6672 ;;
6673 sni)
6674 lt_cv_file_magic_cmd='/bin/file'
6675 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6676 lt_cv_file_magic_test_file=/lib/libc.so
6677 ;;
6678 siemens)
6679 lt_cv_deplibs_check_method=pass_all
6680 ;;
6681 pc)
6682 lt_cv_deplibs_check_method=pass_all
6683 ;;
6684 esac
6685 ;;
6686
6687tpf*)
6688 lt_cv_deplibs_check_method=pass_all
6689 ;;
6690esac
6691
6692fi
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6694$as_echo "$lt_cv_deplibs_check_method" >&6; }
6695file_magic_cmd=$lt_cv_file_magic_cmd
6696deplibs_check_method=$lt_cv_deplibs_check_method
6697test -z "$deplibs_check_method" && deplibs_check_method=unknown
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710if test -n "$ac_tool_prefix"; then
6711 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6712set dummy ${ac_tool_prefix}ar; ac_word=$2
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006715if ${ac_cv_prog_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006716 $as_echo_n "(cached) " >&6
6717else
6718 if test -n "$AR"; then
6719 ac_cv_prog_AR="$AR" # Let the user override the test.
6720else
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006728 ac_cv_prog_AR="${ac_tool_prefix}ar"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732done
6733 done
6734IFS=$as_save_IFS
6735
6736fi
6737fi
6738AR=$ac_cv_prog_AR
6739if test -n "$AR"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6741$as_echo "$AR" >&6; }
6742else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744$as_echo "no" >&6; }
6745fi
6746
6747
6748fi
6749if test -z "$ac_cv_prog_AR"; then
6750 ac_ct_AR=$AR
6751 # Extract the first word of "ar", so it can be a program name with args.
6752set dummy ar; ac_word=$2
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006755if ${ac_cv_prog_ac_ct_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006756 $as_echo_n "(cached) " >&6
6757else
6758 if test -n "$ac_ct_AR"; then
6759 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006768 ac_cv_prog_ac_ct_AR="ar"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772done
6773 done
6774IFS=$as_save_IFS
6775
6776fi
6777fi
6778ac_ct_AR=$ac_cv_prog_ac_ct_AR
6779if test -n "$ac_ct_AR"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6781$as_echo "$ac_ct_AR" >&6; }
6782else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784$as_echo "no" >&6; }
6785fi
6786
6787 if test "x$ac_ct_AR" = x; then
6788 AR="false"
6789 else
6790 case $cross_compiling:$ac_tool_warned in
6791yes:)
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794ac_tool_warned=yes ;;
6795esac
6796 AR=$ac_ct_AR
6797 fi
6798else
6799 AR="$ac_cv_prog_AR"
6800fi
6801
6802test -z "$AR" && AR=ar
6803test -z "$AR_FLAGS" && AR_FLAGS=cru
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6817set dummy ${ac_tool_prefix}strip; ac_word=$2
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006820if ${ac_cv_prog_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006821 $as_echo_n "(cached) " >&6
6822else
6823 if test -n "$STRIP"; then
6824 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6825else
6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006833 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837done
6838 done
6839IFS=$as_save_IFS
6840
6841fi
6842fi
6843STRIP=$ac_cv_prog_STRIP
6844if test -n "$STRIP"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6846$as_echo "$STRIP" >&6; }
6847else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849$as_echo "no" >&6; }
6850fi
6851
6852
6853fi
6854if test -z "$ac_cv_prog_STRIP"; then
6855 ac_ct_STRIP=$STRIP
6856 # Extract the first word of "strip", so it can be a program name with args.
6857set dummy strip; ac_word=$2
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006860if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006861 $as_echo_n "(cached) " >&6
6862else
6863 if test -n "$ac_ct_STRIP"; then
6864 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6865else
6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006873 ac_cv_prog_ac_ct_STRIP="strip"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877done
6878 done
6879IFS=$as_save_IFS
6880
6881fi
6882fi
6883ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6884if test -n "$ac_ct_STRIP"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6886$as_echo "$ac_ct_STRIP" >&6; }
6887else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889$as_echo "no" >&6; }
6890fi
6891
6892 if test "x$ac_ct_STRIP" = x; then
6893 STRIP=":"
6894 else
6895 case $cross_compiling:$ac_tool_warned in
6896yes:)
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899ac_tool_warned=yes ;;
6900esac
6901 STRIP=$ac_ct_STRIP
6902 fi
6903else
6904 STRIP="$ac_cv_prog_STRIP"
6905fi
6906
6907test -z "$STRIP" && STRIP=:
6908
6909
6910
6911
6912
6913
6914if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6916set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006919if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006920 $as_echo_n "(cached) " >&6
6921else
6922 if test -n "$RANLIB"; then
6923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6924else
6925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926for as_dir in $PATH
6927do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006932 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936done
6937 done
6938IFS=$as_save_IFS
6939
6940fi
6941fi
6942RANLIB=$ac_cv_prog_RANLIB
6943if test -n "$RANLIB"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6945$as_echo "$RANLIB" >&6; }
6946else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948$as_echo "no" >&6; }
6949fi
6950
6951
6952fi
6953if test -z "$ac_cv_prog_RANLIB"; then
6954 ac_ct_RANLIB=$RANLIB
6955 # Extract the first word of "ranlib", so it can be a program name with args.
6956set dummy ranlib; ac_word=$2
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006959if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006960 $as_echo_n "(cached) " >&6
6961else
6962 if test -n "$ac_ct_RANLIB"; then
6963 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6964else
6965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966for as_dir in $PATH
6967do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006972 ac_cv_prog_ac_ct_RANLIB="ranlib"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976done
6977 done
6978IFS=$as_save_IFS
6979
6980fi
6981fi
6982ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6983if test -n "$ac_ct_RANLIB"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6985$as_echo "$ac_ct_RANLIB" >&6; }
6986else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988$as_echo "no" >&6; }
6989fi
6990
6991 if test "x$ac_ct_RANLIB" = x; then
6992 RANLIB=":"
6993 else
6994 case $cross_compiling:$ac_tool_warned in
6995yes:)
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6998ac_tool_warned=yes ;;
6999esac
7000 RANLIB=$ac_ct_RANLIB
7001 fi
7002else
7003 RANLIB="$ac_cv_prog_RANLIB"
7004fi
7005
7006test -z "$RANLIB" && RANLIB=:
7007
7008
7009
7010
7011
7012
7013# Determine commands to create old-style static archives.
7014old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7015old_postinstall_cmds='chmod 644 $oldlib'
7016old_postuninstall_cmds=
7017
7018if test -n "$RANLIB"; then
7019 case $host_os in
7020 openbsd*)
7021 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7022 ;;
7023 *)
7024 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7025 ;;
7026 esac
7027 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7028fi
7029
7030case $host_os in
7031 darwin*)
7032 lock_old_archive_extraction=yes ;;
7033 *)
7034 lock_old_archive_extraction=no ;;
7035esac
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075# If no C compiler was specified, use CC.
7076LTCC=${LTCC-"$CC"}
7077
7078# If no C compiler flags were specified, use CFLAGS.
7079LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7080
7081# Allow CC to be a program name with arguments.
7082compiler=$CC
7083
7084
7085# Check for command to grab the raw symbol name followed by C symbol from nm.
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7087$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007088if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007089 $as_echo_n "(cached) " >&6
7090else
7091
7092# These are sane defaults that work on at least a few old systems.
7093# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7094
7095# Character class describing NM global symbol codes.
7096symcode='[BCDEGRST]'
7097
7098# Regexp to match symbols that can be accessed directly from C.
7099sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7100
7101# Define system-specific variables.
7102case $host_os in
7103aix*)
7104 symcode='[BCDT]'
7105 ;;
7106cygwin* | mingw* | pw32* | cegcc*)
7107 symcode='[ABCDGISTW]'
7108 ;;
7109hpux*)
7110 if test "$host_cpu" = ia64; then
7111 symcode='[ABCDEGRST]'
7112 fi
7113 ;;
7114irix* | nonstopux*)
7115 symcode='[BCDEGRST]'
7116 ;;
7117osf*)
7118 symcode='[BCDEGQRST]'
7119 ;;
7120solaris*)
7121 symcode='[BDRT]'
7122 ;;
7123sco3.2v5*)
7124 symcode='[DT]'
7125 ;;
7126sysv4.2uw2*)
7127 symcode='[DT]'
7128 ;;
7129sysv5* | sco5v6* | unixware* | OpenUNIX*)
7130 symcode='[ABDT]'
7131 ;;
7132sysv4)
7133 symcode='[DFNSTU]'
7134 ;;
7135esac
7136
7137# If we're using GNU nm, then use its standard symbol codes.
7138case `$NM -V 2>&1` in
7139*GNU* | *'with BFD'*)
7140 symcode='[ABCDGIRSTW]' ;;
7141esac
7142
7143# Transform an extracted symbol line into a proper C declaration.
7144# Some systems (esp. on ia64) link data and code symbols differently,
7145# so use this general approach.
7146lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7147
7148# Transform an extracted symbol line into symbol name and symbol address
7149lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7150lt_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'"
7151
7152# Handle CRLF in mingw tool chain
7153opt_cr=
7154case $build_os in
7155mingw*)
7156 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7157 ;;
7158esac
7159
7160# Try without a prefix underscore, then with it.
7161for ac_symprfx in "" "_"; do
7162
7163 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7164 symxfrm="\\1 $ac_symprfx\\2 \\2"
7165
7166 # Write the raw and C identifiers.
7167 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7168 # Fake it for dumpbin and say T for any non-static function
7169 # and D for any global variable.
7170 # Also find C++ and __fastcall symbols from MSVC++,
7171 # which start with @ or ?.
7172 lt_cv_sys_global_symbol_pipe="$AWK '"\
7173" {last_section=section; section=\$ 3};"\
7174" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7175" \$ 0!~/External *\|/{next};"\
7176" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7177" {if(hide[section]) next};"\
7178" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7179" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7180" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7181" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7182" ' prfx=^$ac_symprfx"
7183 else
7184 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7185 fi
7186
7187 # Check to see that the pipe works correctly.
7188 pipe_works=no
7189
7190 rm -f conftest*
7191 cat > conftest.$ac_ext <<_LT_EOF
7192#ifdef __cplusplus
7193extern "C" {
7194#endif
7195char nm_test_var;
7196void nm_test_func(void);
7197void nm_test_func(void){}
7198#ifdef __cplusplus
7199}
7200#endif
7201int main(){nm_test_var='a';nm_test_func();return(0);}
7202_LT_EOF
7203
7204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7205 (eval $ac_compile) 2>&5
7206 ac_status=$?
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208 test $ac_status = 0; }; then
7209 # Now try to grab the symbols.
7210 nlist=conftest.nm
7211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7212 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7213 ac_status=$?
7214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7215 test $ac_status = 0; } && test -s "$nlist"; then
7216 # Try sorting and uniquifying the output.
7217 if sort "$nlist" | uniq > "$nlist"T; then
7218 mv -f "$nlist"T "$nlist"
7219 else
7220 rm -f "$nlist"T
7221 fi
7222
7223 # Make sure that we snagged all the symbols we need.
7224 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7225 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7226 cat <<_LT_EOF > conftest.$ac_ext
7227#ifdef __cplusplus
7228extern "C" {
7229#endif
7230
7231_LT_EOF
7232 # Now generate the symbol file.
7233 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7234
7235 cat <<_LT_EOF >> conftest.$ac_ext
7236
7237/* The mapping between symbol names and symbols. */
7238const struct {
7239 const char *name;
7240 void *address;
7241}
7242lt__PROGRAM__LTX_preloaded_symbols[] =
7243{
7244 { "@PROGRAM@", (void *) 0 },
7245_LT_EOF
7246 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7247 cat <<\_LT_EOF >> conftest.$ac_ext
7248 {0, (void *) 0}
7249};
7250
7251/* This works around a problem in FreeBSD linker */
7252#ifdef FREEBSD_WORKAROUND
7253static const void *lt_preloaded_setup() {
7254 return lt__PROGRAM__LTX_preloaded_symbols;
7255}
7256#endif
7257
7258#ifdef __cplusplus
7259}
7260#endif
7261_LT_EOF
7262 # Now try linking the two files.
7263 mv conftest.$ac_objext conftstm.$ac_objext
7264 lt_save_LIBS="$LIBS"
7265 lt_save_CFLAGS="$CFLAGS"
7266 LIBS="conftstm.$ac_objext"
7267 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7269 (eval $ac_link) 2>&5
7270 ac_status=$?
7271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7273 pipe_works=yes
7274 fi
7275 LIBS="$lt_save_LIBS"
7276 CFLAGS="$lt_save_CFLAGS"
7277 else
7278 echo "cannot find nm_test_func in $nlist" >&5
7279 fi
7280 else
7281 echo "cannot find nm_test_var in $nlist" >&5
7282 fi
7283 else
7284 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7285 fi
7286 else
7287 echo "$progname: failed program was:" >&5
7288 cat conftest.$ac_ext >&5
7289 fi
7290 rm -rf conftest* conftst*
7291
7292 # Do not use the global_symbol_pipe unless it works.
7293 if test "$pipe_works" = yes; then
7294 break
7295 else
7296 lt_cv_sys_global_symbol_pipe=
7297 fi
7298done
7299
7300fi
7301
7302if test -z "$lt_cv_sys_global_symbol_pipe"; then
7303 lt_cv_sys_global_symbol_to_cdecl=
7304fi
7305if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7307$as_echo "failed" >&6; }
7308else
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7310$as_echo "ok" >&6; }
7311fi
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
Iain Buclawb4c522f2018-10-28 19:51:47 +00007334# Check whether --enable-libtool-lock was given.
7335if test "${enable_libtool_lock+set}" = set; then :
7336 enableval=$enable_libtool_lock;
7337fi
7338
7339test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7340
7341# Some flags need to be propagated to the compiler or linker for good
7342# libtool support.
7343case $host in
7344ia64-*-hpux*)
7345 # Find out which ABI we are using.
7346 echo 'int i;' > conftest.$ac_ext
7347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7348 (eval $ac_compile) 2>&5
7349 ac_status=$?
7350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351 test $ac_status = 0; }; then
7352 case `/usr/bin/file conftest.$ac_objext` in
7353 *ELF-32*)
7354 HPUX_IA64_MODE="32"
7355 ;;
7356 *ELF-64*)
7357 HPUX_IA64_MODE="64"
7358 ;;
7359 esac
7360 fi
7361 rm -rf conftest*
7362 ;;
7363*-*-irix6*)
7364 # Find out which ABI we are using.
7365 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7367 (eval $ac_compile) 2>&5
7368 ac_status=$?
7369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7370 test $ac_status = 0; }; then
7371 if test "$lt_cv_prog_gnu_ld" = yes; then
7372 case `/usr/bin/file conftest.$ac_objext` in
7373 *32-bit*)
7374 LD="${LD-ld} -melf32bsmip"
7375 ;;
7376 *N32*)
7377 LD="${LD-ld} -melf32bmipn32"
7378 ;;
7379 *64-bit*)
7380 LD="${LD-ld} -melf64bmip"
7381 ;;
7382 esac
7383 else
7384 case `/usr/bin/file conftest.$ac_objext` in
7385 *32-bit*)
7386 LD="${LD-ld} -32"
7387 ;;
7388 *N32*)
7389 LD="${LD-ld} -n32"
7390 ;;
7391 *64-bit*)
7392 LD="${LD-ld} -64"
7393 ;;
7394 esac
7395 fi
7396 fi
7397 rm -rf conftest*
7398 ;;
7399
7400x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7401s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7402 # Find out which ABI we are using.
7403 echo 'int i;' > conftest.$ac_ext
7404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7405 (eval $ac_compile) 2>&5
7406 ac_status=$?
7407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7408 test $ac_status = 0; }; then
7409 case `/usr/bin/file conftest.o` in
7410 *32-bit*)
7411 case $host in
7412 x86_64-*kfreebsd*-gnu)
7413 LD="${LD-ld} -m elf_i386_fbsd"
7414 ;;
7415 x86_64-*linux*)
7416 case `/usr/bin/file conftest.o` in
7417 *x86-64*)
7418 LD="${LD-ld} -m elf32_x86_64"
7419 ;;
7420 *)
7421 LD="${LD-ld} -m elf_i386"
7422 ;;
7423 esac
7424 ;;
7425 powerpc64le-*linux*)
7426 LD="${LD-ld} -m elf32lppclinux"
7427 ;;
7428 powerpc64-*linux*)
7429 LD="${LD-ld} -m elf32ppclinux"
7430 ;;
7431 s390x-*linux*)
7432 LD="${LD-ld} -m elf_s390"
7433 ;;
7434 sparc64-*linux*)
7435 LD="${LD-ld} -m elf32_sparc"
7436 ;;
7437 esac
7438 ;;
7439 *64-bit*)
7440 case $host in
7441 x86_64-*kfreebsd*-gnu)
7442 LD="${LD-ld} -m elf_x86_64_fbsd"
7443 ;;
7444 x86_64-*linux*)
7445 LD="${LD-ld} -m elf_x86_64"
7446 ;;
7447 powerpcle-*linux*)
7448 LD="${LD-ld} -m elf64lppc"
7449 ;;
7450 powerpc-*linux*)
7451 LD="${LD-ld} -m elf64ppc"
7452 ;;
7453 s390*-*linux*|s390*-*tpf*)
7454 LD="${LD-ld} -m elf64_s390"
7455 ;;
7456 sparc*-*linux*)
7457 LD="${LD-ld} -m elf64_sparc"
7458 ;;
7459 esac
7460 ;;
7461 esac
7462 fi
7463 rm -rf conftest*
7464 ;;
7465
7466*-*-sco3.2v5*)
7467 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7468 SAVE_CFLAGS="$CFLAGS"
7469 CFLAGS="$CFLAGS -belf"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7471$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007472if ${lt_cv_cc_needs_belf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007473 $as_echo_n "(cached) " >&6
7474else
7475 ac_ext=c
7476ac_cpp='$CPP $CPPFLAGS'
7477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7479ac_compiler_gnu=$ac_cv_c_compiler_gnu
7480
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482/* end confdefs.h. */
7483
7484int
7485main ()
7486{
7487
7488 ;
7489 return 0;
7490}
7491_ACEOF
7492if ac_fn_c_try_link "$LINENO"; then :
7493 lt_cv_cc_needs_belf=yes
7494else
7495 lt_cv_cc_needs_belf=no
7496fi
7497rm -f core conftest.err conftest.$ac_objext \
7498 conftest$ac_exeext conftest.$ac_ext
7499 ac_ext=c
7500ac_cpp='$CPP $CPPFLAGS'
7501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7503ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504
7505fi
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7507$as_echo "$lt_cv_cc_needs_belf" >&6; }
7508 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7509 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7510 CFLAGS="$SAVE_CFLAGS"
7511 fi
7512 ;;
7513sparc*-*solaris*)
7514 # Find out which ABI we are using.
7515 echo 'int i;' > conftest.$ac_ext
7516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7517 (eval $ac_compile) 2>&5
7518 ac_status=$?
7519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7520 test $ac_status = 0; }; then
7521 case `/usr/bin/file conftest.o` in
7522 *64-bit*)
7523 case $lt_cv_prog_gnu_ld in
7524 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7525 *)
7526 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7527 LD="${LD-ld} -64"
7528 fi
7529 ;;
7530 esac
7531 ;;
7532 esac
7533 fi
7534 rm -rf conftest*
7535 ;;
7536esac
7537
7538need_locks="$enable_libtool_lock"
7539
7540
7541 case $host_os in
7542 rhapsody* | darwin*)
7543 if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7545set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007548if ${ac_cv_prog_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007549 $as_echo_n "(cached) " >&6
7550else
7551 if test -n "$DSYMUTIL"; then
7552 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7553else
7554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555for as_dir in $PATH
7556do
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007561 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7564 fi
7565done
7566 done
7567IFS=$as_save_IFS
7568
7569fi
7570fi
7571DSYMUTIL=$ac_cv_prog_DSYMUTIL
7572if test -n "$DSYMUTIL"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7574$as_echo "$DSYMUTIL" >&6; }
7575else
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577$as_echo "no" >&6; }
7578fi
7579
7580
7581fi
7582if test -z "$ac_cv_prog_DSYMUTIL"; then
7583 ac_ct_DSYMUTIL=$DSYMUTIL
7584 # Extract the first word of "dsymutil", so it can be a program name with args.
7585set dummy dsymutil; ac_word=$2
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007588if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007589 $as_echo_n "(cached) " >&6
7590else
7591 if test -n "$ac_ct_DSYMUTIL"; then
7592 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7593else
7594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595for as_dir in $PATH
7596do
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007601 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605done
7606 done
7607IFS=$as_save_IFS
7608
7609fi
7610fi
7611ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7612if test -n "$ac_ct_DSYMUTIL"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7614$as_echo "$ac_ct_DSYMUTIL" >&6; }
7615else
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617$as_echo "no" >&6; }
7618fi
7619
7620 if test "x$ac_ct_DSYMUTIL" = x; then
7621 DSYMUTIL=":"
7622 else
7623 case $cross_compiling:$ac_tool_warned in
7624yes:)
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7627ac_tool_warned=yes ;;
7628esac
7629 DSYMUTIL=$ac_ct_DSYMUTIL
7630 fi
7631else
7632 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7633fi
7634
7635 if test -n "$ac_tool_prefix"; then
7636 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7637set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007640if ${ac_cv_prog_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007641 $as_echo_n "(cached) " >&6
7642else
7643 if test -n "$NMEDIT"; then
7644 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7645else
7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007653 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7656 fi
7657done
7658 done
7659IFS=$as_save_IFS
7660
7661fi
7662fi
7663NMEDIT=$ac_cv_prog_NMEDIT
7664if test -n "$NMEDIT"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7666$as_echo "$NMEDIT" >&6; }
7667else
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669$as_echo "no" >&6; }
7670fi
7671
7672
7673fi
7674if test -z "$ac_cv_prog_NMEDIT"; then
7675 ac_ct_NMEDIT=$NMEDIT
7676 # Extract the first word of "nmedit", so it can be a program name with args.
7677set dummy nmedit; ac_word=$2
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007680if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007681 $as_echo_n "(cached) " >&6
7682else
7683 if test -n "$ac_ct_NMEDIT"; then
7684 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7685else
7686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH
7688do
7689 IFS=$as_save_IFS
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007693 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 break 2
7696 fi
7697done
7698 done
7699IFS=$as_save_IFS
7700
7701fi
7702fi
7703ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7704if test -n "$ac_ct_NMEDIT"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7706$as_echo "$ac_ct_NMEDIT" >&6; }
7707else
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709$as_echo "no" >&6; }
7710fi
7711
7712 if test "x$ac_ct_NMEDIT" = x; then
7713 NMEDIT=":"
7714 else
7715 case $cross_compiling:$ac_tool_warned in
7716yes:)
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719ac_tool_warned=yes ;;
7720esac
7721 NMEDIT=$ac_ct_NMEDIT
7722 fi
7723else
7724 NMEDIT="$ac_cv_prog_NMEDIT"
7725fi
7726
7727 if test -n "$ac_tool_prefix"; then
7728 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7729set dummy ${ac_tool_prefix}lipo; ac_word=$2
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007732if ${ac_cv_prog_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007733 $as_echo_n "(cached) " >&6
7734else
7735 if test -n "$LIPO"; then
7736 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7737else
7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739for as_dir in $PATH
7740do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007745 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749done
7750 done
7751IFS=$as_save_IFS
7752
7753fi
7754fi
7755LIPO=$ac_cv_prog_LIPO
7756if test -n "$LIPO"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7758$as_echo "$LIPO" >&6; }
7759else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761$as_echo "no" >&6; }
7762fi
7763
7764
7765fi
7766if test -z "$ac_cv_prog_LIPO"; then
7767 ac_ct_LIPO=$LIPO
7768 # Extract the first word of "lipo", so it can be a program name with args.
7769set dummy lipo; ac_word=$2
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007772if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007773 $as_echo_n "(cached) " >&6
7774else
7775 if test -n "$ac_ct_LIPO"; then
7776 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7777else
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007785 ac_cv_prog_ac_ct_LIPO="lipo"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7788 fi
7789done
7790 done
7791IFS=$as_save_IFS
7792
7793fi
7794fi
7795ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7796if test -n "$ac_ct_LIPO"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7798$as_echo "$ac_ct_LIPO" >&6; }
7799else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
7802fi
7803
7804 if test "x$ac_ct_LIPO" = x; then
7805 LIPO=":"
7806 else
7807 case $cross_compiling:$ac_tool_warned in
7808yes:)
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811ac_tool_warned=yes ;;
7812esac
7813 LIPO=$ac_ct_LIPO
7814 fi
7815else
7816 LIPO="$ac_cv_prog_LIPO"
7817fi
7818
7819 if test -n "$ac_tool_prefix"; then
7820 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7821set dummy ${ac_tool_prefix}otool; ac_word=$2
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007824if ${ac_cv_prog_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007825 $as_echo_n "(cached) " >&6
7826else
7827 if test -n "$OTOOL"; then
7828 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7829else
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007837 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841done
7842 done
7843IFS=$as_save_IFS
7844
7845fi
7846fi
7847OTOOL=$ac_cv_prog_OTOOL
7848if test -n "$OTOOL"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7850$as_echo "$OTOOL" >&6; }
7851else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853$as_echo "no" >&6; }
7854fi
7855
7856
7857fi
7858if test -z "$ac_cv_prog_OTOOL"; then
7859 ac_ct_OTOOL=$OTOOL
7860 # Extract the first word of "otool", so it can be a program name with args.
7861set dummy otool; ac_word=$2
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007864if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007865 $as_echo_n "(cached) " >&6
7866else
7867 if test -n "$ac_ct_OTOOL"; then
7868 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7869else
7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007877 ac_cv_prog_ac_ct_OTOOL="otool"
7878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881done
7882 done
7883IFS=$as_save_IFS
7884
7885fi
7886fi
7887ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7888if test -n "$ac_ct_OTOOL"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7890$as_echo "$ac_ct_OTOOL" >&6; }
7891else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893$as_echo "no" >&6; }
7894fi
7895
7896 if test "x$ac_ct_OTOOL" = x; then
7897 OTOOL=":"
7898 else
7899 case $cross_compiling:$ac_tool_warned in
7900yes:)
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7903ac_tool_warned=yes ;;
7904esac
7905 OTOOL=$ac_ct_OTOOL
7906 fi
7907else
7908 OTOOL="$ac_cv_prog_OTOOL"
7909fi
7910
7911 if test -n "$ac_tool_prefix"; then
7912 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7913set dummy ${ac_tool_prefix}otool64; ac_word=$2
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007916if ${ac_cv_prog_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007917 $as_echo_n "(cached) " >&6
7918else
7919 if test -n "$OTOOL64"; then
7920 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007929 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933done
7934 done
7935IFS=$as_save_IFS
7936
7937fi
7938fi
7939OTOOL64=$ac_cv_prog_OTOOL64
7940if test -n "$OTOOL64"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7942$as_echo "$OTOOL64" >&6; }
7943else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945$as_echo "no" >&6; }
7946fi
7947
7948
7949fi
7950if test -z "$ac_cv_prog_OTOOL64"; then
7951 ac_ct_OTOOL64=$OTOOL64
7952 # Extract the first word of "otool64", so it can be a program name with args.
7953set dummy otool64; ac_word=$2
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007956if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007957 $as_echo_n "(cached) " >&6
7958else
7959 if test -n "$ac_ct_OTOOL64"; then
7960 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7961else
7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007969 ac_cv_prog_ac_ct_OTOOL64="otool64"
7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973done
7974 done
7975IFS=$as_save_IFS
7976
7977fi
7978fi
7979ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7980if test -n "$ac_ct_OTOOL64"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7982$as_echo "$ac_ct_OTOOL64" >&6; }
7983else
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
7986fi
7987
7988 if test "x$ac_ct_OTOOL64" = x; then
7989 OTOOL64=":"
7990 else
7991 case $cross_compiling:$ac_tool_warned in
7992yes:)
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7995ac_tool_warned=yes ;;
7996esac
7997 OTOOL64=$ac_ct_OTOOL64
7998 fi
7999else
8000 OTOOL64="$ac_cv_prog_OTOOL64"
8001fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8030$as_echo_n "checking for -single_module linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008031if ${lt_cv_apple_cc_single_mod+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008032 $as_echo_n "(cached) " >&6
8033else
8034 lt_cv_apple_cc_single_mod=no
8035 if test -z "${LT_MULTI_MODULE}"; then
8036 # By default we will add the -single_module flag. You can override
8037 # by either setting the environment variable LT_MULTI_MODULE
8038 # non-empty at configure time, or by adding -multi_module to the
8039 # link flags.
8040 rm -rf libconftest.dylib*
8041 echo "int foo(void){return 1;}" > conftest.c
8042 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8043-dynamiclib -Wl,-single_module conftest.c" >&5
8044 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8045 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8046 _lt_result=$?
8047 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8048 lt_cv_apple_cc_single_mod=yes
8049 else
8050 cat conftest.err >&5
8051 fi
8052 rm -rf libconftest.dylib*
8053 rm -f conftest.*
8054 fi
8055fi
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8057$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8059$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008060if ${lt_cv_ld_exported_symbols_list+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008061 $as_echo_n "(cached) " >&6
8062else
8063 lt_cv_ld_exported_symbols_list=no
8064 save_LDFLAGS=$LDFLAGS
8065 echo "_main" > conftest.sym
8066 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068/* end confdefs.h. */
8069
8070int
8071main ()
8072{
8073
8074 ;
8075 return 0;
8076}
8077_ACEOF
8078if ac_fn_c_try_link "$LINENO"; then :
8079 lt_cv_ld_exported_symbols_list=yes
8080else
8081 lt_cv_ld_exported_symbols_list=no
8082fi
8083rm -f core conftest.err conftest.$ac_objext \
8084 conftest$ac_exeext conftest.$ac_ext
8085 LDFLAGS="$save_LDFLAGS"
8086
8087fi
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8089$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8091$as_echo_n "checking for -force_load linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008092if ${lt_cv_ld_force_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008093 $as_echo_n "(cached) " >&6
8094else
8095 lt_cv_ld_force_load=no
8096 cat > conftest.c << _LT_EOF
8097int forced_loaded() { return 2;}
8098_LT_EOF
8099 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8100 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8101 echo "$AR cru libconftest.a conftest.o" >&5
8102 $AR cru libconftest.a conftest.o 2>&5
8103 cat > conftest.c << _LT_EOF
8104int main() { return 0;}
8105_LT_EOF
8106 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8107 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8108 _lt_result=$?
8109 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8110 lt_cv_ld_force_load=yes
8111 else
8112 cat conftest.err >&5
8113 fi
8114 rm -f conftest.err libconftest.a conftest conftest.c
8115 rm -rf conftest.dSYM
8116
8117fi
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8119$as_echo "$lt_cv_ld_force_load" >&6; }
8120 case $host_os in
8121 rhapsody* | darwin1.[012])
8122 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8123 darwin1.*)
8124 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8125 darwin*) # darwin 5.x on
8126 # if running on 10.5 or later, the deployment target defaults
8127 # to the OS version, if on x86, and 10.4, the deployment
8128 # target defaults to 10.4. Don't you love it?
8129 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8130 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8131 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8132 10.[012][,.]*)
8133 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8134 10.*)
8135 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8136 esac
8137 ;;
8138 esac
8139 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8140 _lt_dar_single_mod='$single_module'
8141 fi
8142 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8143 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8144 else
8145 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8146 fi
8147 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8148 _lt_dsymutil='~$DSYMUTIL $lib || :'
8149 else
8150 _lt_dsymutil=
8151 fi
8152 ;;
8153 esac
8154
Iain Buclawb4c522f2018-10-28 19:51:47 +00008155for ac_header in dlfcn.h
8156do :
8157 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8158"
Joseph Myers22e05272018-10-31 17:03:16 +00008159if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008160 cat >>confdefs.h <<_ACEOF
8161#define HAVE_DLFCN_H 1
8162_ACEOF
8163
8164fi
8165
8166done
8167
8168
8169
8170
8171
8172# Set options
8173enable_dlopen=yes
8174
8175
8176
8177
8178 enable_win32_dll=no
8179
8180
8181 # Check whether --enable-shared was given.
8182if test "${enable_shared+set}" = set; then :
8183 enableval=$enable_shared; p=${PACKAGE-default}
8184 case $enableval in
8185 yes) enable_shared=yes ;;
8186 no) enable_shared=no ;;
8187 *)
8188 enable_shared=no
8189 # Look at the argument we got. We use all the common list separators.
8190 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8191 for pkg in $enableval; do
8192 IFS="$lt_save_ifs"
8193 if test "X$pkg" = "X$p"; then
8194 enable_shared=yes
8195 fi
8196 done
8197 IFS="$lt_save_ifs"
8198 ;;
8199 esac
8200else
8201 enable_shared=yes
8202fi
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212 # Check whether --enable-static was given.
8213if test "${enable_static+set}" = set; then :
8214 enableval=$enable_static; p=${PACKAGE-default}
8215 case $enableval in
8216 yes) enable_static=yes ;;
8217 no) enable_static=no ;;
8218 *)
8219 enable_static=no
8220 # Look at the argument we got. We use all the common list separators.
8221 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8222 for pkg in $enableval; do
8223 IFS="$lt_save_ifs"
8224 if test "X$pkg" = "X$p"; then
8225 enable_static=yes
8226 fi
8227 done
8228 IFS="$lt_save_ifs"
8229 ;;
8230 esac
8231else
8232 enable_static=yes
8233fi
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244# Check whether --with-pic was given.
8245if test "${with_pic+set}" = set; then :
8246 withval=$with_pic; pic_mode="$withval"
8247else
8248 pic_mode=default
8249fi
8250
8251
8252test -z "$pic_mode" && pic_mode=default
8253
8254
8255
8256
8257
8258
8259
8260 # Check whether --enable-fast-install was given.
8261if test "${enable_fast_install+set}" = set; then :
8262 enableval=$enable_fast_install; p=${PACKAGE-default}
8263 case $enableval in
8264 yes) enable_fast_install=yes ;;
8265 no) enable_fast_install=no ;;
8266 *)
8267 enable_fast_install=no
8268 # Look at the argument we got. We use all the common list separators.
8269 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8270 for pkg in $enableval; do
8271 IFS="$lt_save_ifs"
8272 if test "X$pkg" = "X$p"; then
8273 enable_fast_install=yes
8274 fi
8275 done
8276 IFS="$lt_save_ifs"
8277 ;;
8278 esac
8279else
8280 enable_fast_install=yes
8281fi
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293# This can be used to rebuild libtool when needed
8294LIBTOOL_DEPS="$ltmain"
8295
8296# Always use our own libtool.
8297LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324test -z "$LN_S" && LN_S="ln -s"
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339if test -n "${ZSH_VERSION+set}" ; then
8340 setopt NO_GLOB_SUBST
8341fi
8342
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8344$as_echo_n "checking for objdir... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008345if ${lt_cv_objdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008346 $as_echo_n "(cached) " >&6
8347else
8348 rm -f .libs 2>/dev/null
8349mkdir .libs 2>/dev/null
8350if test -d .libs; then
8351 lt_cv_objdir=.libs
8352else
8353 # MS-DOS does not allow filenames that begin with a dot.
8354 lt_cv_objdir=_libs
8355fi
8356rmdir .libs 2>/dev/null
8357fi
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8359$as_echo "$lt_cv_objdir" >&6; }
8360objdir=$lt_cv_objdir
8361
8362
8363
8364
8365
8366cat >>confdefs.h <<_ACEOF
8367#define LT_OBJDIR "$lt_cv_objdir/"
8368_ACEOF
8369
8370
8371
8372
8373case $host_os in
8374aix3*)
8375 # AIX sometimes has problems with the GCC collect2 program. For some
8376 # reason, if we set the COLLECT_NAMES environment variable, the problems
8377 # vanish in a puff of smoke.
8378 if test "X${COLLECT_NAMES+set}" != Xset; then
8379 COLLECT_NAMES=
8380 export COLLECT_NAMES
8381 fi
8382 ;;
8383esac
8384
8385# Global variables:
8386ofile=libtool
8387can_build_shared=yes
8388
8389# All known linkers require a `.a' archive for static linking (except MSVC,
8390# which needs '.lib').
8391libext=a
8392
8393with_gnu_ld="$lt_cv_prog_gnu_ld"
8394
8395old_CC="$CC"
8396old_CFLAGS="$CFLAGS"
8397
8398# Set sane defaults for various variables
8399test -z "$CC" && CC=cc
8400test -z "$LTCC" && LTCC=$CC
8401test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8402test -z "$LD" && LD=ld
8403test -z "$ac_objext" && ac_objext=o
8404
8405for cc_temp in $compiler""; do
8406 case $cc_temp in
8407 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8408 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8409 \-*) ;;
8410 *) break;;
8411 esac
8412done
8413cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8414
8415
8416# Only perform the check for file, if the check method requires it
8417test -z "$MAGIC_CMD" && MAGIC_CMD=file
8418case $deplibs_check_method in
8419file_magic*)
8420 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8422$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008423if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008424 $as_echo_n "(cached) " >&6
8425else
8426 case $MAGIC_CMD in
8427[\\/*] | ?:[\\/]*)
8428 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8429 ;;
8430*)
8431 lt_save_MAGIC_CMD="$MAGIC_CMD"
8432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8433 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8434 for ac_dir in $ac_dummy; do
8435 IFS="$lt_save_ifs"
8436 test -z "$ac_dir" && ac_dir=.
8437 if test -f $ac_dir/${ac_tool_prefix}file; then
8438 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8439 if test -n "$file_magic_test_file"; then
8440 case $deplibs_check_method in
8441 "file_magic "*)
8442 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8444 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8445 $EGREP "$file_magic_regex" > /dev/null; then
8446 :
8447 else
8448 cat <<_LT_EOF 1>&2
8449
8450*** Warning: the command libtool uses to detect shared libraries,
8451*** $file_magic_cmd, produces output that libtool cannot recognize.
8452*** The result is that libtool may fail to recognize shared libraries
8453*** as such. This will affect the creation of libtool libraries that
8454*** depend on shared libraries, but programs linked with such libtool
8455*** libraries will work regardless of this problem. Nevertheless, you
8456*** may want to report the problem to your system manager and/or to
8457*** bug-libtool@gnu.org
8458
8459_LT_EOF
8460 fi ;;
8461 esac
8462 fi
8463 break
8464 fi
8465 done
8466 IFS="$lt_save_ifs"
8467 MAGIC_CMD="$lt_save_MAGIC_CMD"
8468 ;;
8469esac
8470fi
8471
8472MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8473if test -n "$MAGIC_CMD"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8475$as_echo "$MAGIC_CMD" >&6; }
8476else
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478$as_echo "no" >&6; }
8479fi
8480
8481
8482
8483
8484
8485if test -z "$lt_cv_path_MAGIC_CMD"; then
8486 if test -n "$ac_tool_prefix"; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8488$as_echo_n "checking for file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008489if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008490 $as_echo_n "(cached) " >&6
8491else
8492 case $MAGIC_CMD in
8493[\\/*] | ?:[\\/]*)
8494 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8495 ;;
8496*)
8497 lt_save_MAGIC_CMD="$MAGIC_CMD"
8498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8499 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8500 for ac_dir in $ac_dummy; do
8501 IFS="$lt_save_ifs"
8502 test -z "$ac_dir" && ac_dir=.
8503 if test -f $ac_dir/file; then
8504 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8505 if test -n "$file_magic_test_file"; then
8506 case $deplibs_check_method in
8507 "file_magic "*)
8508 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8510 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8511 $EGREP "$file_magic_regex" > /dev/null; then
8512 :
8513 else
8514 cat <<_LT_EOF 1>&2
8515
8516*** Warning: the command libtool uses to detect shared libraries,
8517*** $file_magic_cmd, produces output that libtool cannot recognize.
8518*** The result is that libtool may fail to recognize shared libraries
8519*** as such. This will affect the creation of libtool libraries that
8520*** depend on shared libraries, but programs linked with such libtool
8521*** libraries will work regardless of this problem. Nevertheless, you
8522*** may want to report the problem to your system manager and/or to
8523*** bug-libtool@gnu.org
8524
8525_LT_EOF
8526 fi ;;
8527 esac
8528 fi
8529 break
8530 fi
8531 done
8532 IFS="$lt_save_ifs"
8533 MAGIC_CMD="$lt_save_MAGIC_CMD"
8534 ;;
8535esac
8536fi
8537
8538MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8539if test -n "$MAGIC_CMD"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8541$as_echo "$MAGIC_CMD" >&6; }
8542else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544$as_echo "no" >&6; }
8545fi
8546
8547
8548 else
8549 MAGIC_CMD=:
8550 fi
8551fi
8552
8553 fi
8554 ;;
8555esac
8556
8557# Use C for the default configuration in the libtool script
8558
8559lt_save_CC="$CC"
8560ac_ext=c
8561ac_cpp='$CPP $CPPFLAGS'
8562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564ac_compiler_gnu=$ac_cv_c_compiler_gnu
8565
8566
8567# Source file extension for C test sources.
8568ac_ext=c
8569
8570# Object file extension for compiled C test sources.
8571objext=o
8572objext=$objext
8573
8574# Code to be used in simple compile tests
8575lt_simple_compile_test_code="int some_variable = 0;"
8576
8577# Code to be used in simple link tests
8578lt_simple_link_test_code='int main(){return(0);}'
8579
8580
8581
8582
8583
8584
8585
8586# If no C compiler was specified, use CC.
8587LTCC=${LTCC-"$CC"}
8588
8589# If no C compiler flags were specified, use CFLAGS.
8590LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8591
8592# Allow CC to be a program name with arguments.
8593compiler=$CC
8594
8595# Save the default compiler, since it gets overwritten when the other
8596# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8597compiler_DEFAULT=$CC
8598
8599# save warnings/boilerplate of simple test code
8600ac_outfile=conftest.$ac_objext
8601echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8602eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8603_lt_compiler_boilerplate=`cat conftest.err`
8604$RM conftest*
8605
8606ac_outfile=conftest.$ac_objext
8607echo "$lt_simple_link_test_code" >conftest.$ac_ext
8608eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8609_lt_linker_boilerplate=`cat conftest.err`
8610$RM -r conftest*
8611
8612
8613## CAVEAT EMPTOR:
8614## There is no encapsulation within the following macros, do not change
8615## the running order or otherwise move them around unless you know exactly
8616## what you are doing...
8617if test -n "$compiler"; then
8618
8619lt_prog_compiler_no_builtin_flag=
8620
8621if test "$GCC" = yes; then
8622 case $cc_basename in
8623 nvcc*)
8624 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8625 *)
8626 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8627 esac
8628
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8630$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008631if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008632 $as_echo_n "(cached) " >&6
8633else
8634 lt_cv_prog_compiler_rtti_exceptions=no
8635 ac_outfile=conftest.$ac_objext
8636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8637 lt_compiler_flag="-fno-rtti -fno-exceptions"
8638 # Insert the option either (1) after the last *FLAGS variable, or
8639 # (2) before a word containing "conftest.", or (3) at the end.
8640 # Note that $ac_compile itself does not contain backslashes and begins
8641 # with a dollar sign (not a hyphen), so the echo should work correctly.
8642 # The option is referenced via a variable to avoid confusing sed.
8643 lt_compile=`echo "$ac_compile" | $SED \
8644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8646 -e 's:$: $lt_compiler_flag:'`
8647 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8648 (eval "$lt_compile" 2>conftest.err)
8649 ac_status=$?
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 if (exit $ac_status) && test -s "$ac_outfile"; then
8653 # The compiler can only warn and ignore the option if not recognized
8654 # So say no if there are warnings other than the usual output.
8655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8658 lt_cv_prog_compiler_rtti_exceptions=yes
8659 fi
8660 fi
8661 $RM conftest*
8662
8663fi
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8665$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8666
8667if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8668 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8669else
8670 :
8671fi
8672
8673fi
8674
8675
8676
8677
8678
8679
8680 lt_prog_compiler_wl=
8681lt_prog_compiler_pic=
8682lt_prog_compiler_static=
8683
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8685$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8686
8687 if test "$GCC" = yes; then
8688 lt_prog_compiler_wl='-Wl,'
8689 lt_prog_compiler_static='-static'
8690
8691 case $host_os in
8692 aix*)
8693 # All AIX code is PIC.
8694 if test "$host_cpu" = ia64; then
8695 # AIX 5 now supports IA64 processor
8696 lt_prog_compiler_static='-Bstatic'
8697 fi
8698 lt_prog_compiler_pic='-fPIC'
8699 ;;
8700
8701 amigaos*)
8702 case $host_cpu in
8703 powerpc)
8704 # see comment about AmigaOS4 .so support
8705 lt_prog_compiler_pic='-fPIC'
8706 ;;
8707 m68k)
8708 # FIXME: we need at least 68020 code to build shared libraries, but
8709 # adding the `-m68020' flag to GCC prevents building anything better,
8710 # like `-m68040'.
8711 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8712 ;;
8713 esac
8714 ;;
8715
8716 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8717 # PIC is the default for these OSes.
8718 ;;
8719
8720 mingw* | cygwin* | pw32* | os2* | cegcc*)
8721 # This hack is so that the source file can tell whether it is being
8722 # built for inclusion in a dll (and should export symbols for example).
8723 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8724 # (--disable-auto-import) libraries
8725 lt_prog_compiler_pic='-DDLL_EXPORT'
8726 ;;
8727
8728 darwin* | rhapsody*)
8729 # PIC is the default on this platform
8730 # Common symbols not allowed in MH_DYLIB files
8731 lt_prog_compiler_pic='-fno-common'
8732 ;;
8733
8734 haiku*)
8735 # PIC is the default for Haiku.
8736 # The "-static" flag exists, but is broken.
8737 lt_prog_compiler_static=
8738 ;;
8739
8740 hpux*)
8741 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8742 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8743 # sets the default TLS model and affects inlining.
8744 case $host_cpu in
8745 hppa*64*)
8746 # +Z the default
8747 ;;
8748 *)
8749 lt_prog_compiler_pic='-fPIC'
8750 ;;
8751 esac
8752 ;;
8753
8754 interix[3-9]*)
8755 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8756 # Instead, we relocate shared libraries at runtime.
8757 ;;
8758
8759 msdosdjgpp*)
8760 # Just because we use GCC doesn't mean we suddenly get shared libraries
8761 # on systems that don't support them.
8762 lt_prog_compiler_can_build_shared=no
8763 enable_shared=no
8764 ;;
8765
8766 *nto* | *qnx*)
8767 # QNX uses GNU C++, but need to define -shared option too, otherwise
8768 # it will coredump.
8769 lt_prog_compiler_pic='-fPIC -shared'
8770 ;;
8771
8772 sysv4*MP*)
8773 if test -d /usr/nec; then
8774 lt_prog_compiler_pic=-Kconform_pic
8775 fi
8776 ;;
8777
8778 *)
8779 lt_prog_compiler_pic='-fPIC'
8780 ;;
8781 esac
8782
8783 case $cc_basename in
8784 nvcc*) # Cuda Compiler Driver 2.2
8785 lt_prog_compiler_wl='-Xlinker '
8786 lt_prog_compiler_pic='-Xcompiler -fPIC'
8787 ;;
8788 esac
8789 else
8790 # PORTME Check for flag to pass linker flags through the system compiler.
8791 case $host_os in
8792 aix*)
8793 lt_prog_compiler_wl='-Wl,'
8794 if test "$host_cpu" = ia64; then
8795 # AIX 5 now supports IA64 processor
8796 lt_prog_compiler_static='-Bstatic'
8797 else
8798 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8799 fi
8800 ;;
8801
8802 mingw* | cygwin* | pw32* | os2* | cegcc*)
8803 # This hack is so that the source file can tell whether it is being
8804 # built for inclusion in a dll (and should export symbols for example).
8805 lt_prog_compiler_pic='-DDLL_EXPORT'
8806 ;;
8807
8808 hpux9* | hpux10* | hpux11*)
8809 lt_prog_compiler_wl='-Wl,'
8810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8811 # not for PA HP-UX.
8812 case $host_cpu in
8813 hppa*64*|ia64*)
8814 # +Z the default
8815 ;;
8816 *)
8817 lt_prog_compiler_pic='+Z'
8818 ;;
8819 esac
8820 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8821 lt_prog_compiler_static='${wl}-a ${wl}archive'
8822 ;;
8823
8824 irix5* | irix6* | nonstopux*)
8825 lt_prog_compiler_wl='-Wl,'
8826 # PIC (with -KPIC) is the default.
8827 lt_prog_compiler_static='-non_shared'
8828 ;;
8829
8830 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8831 case $cc_basename in
8832 # old Intel for x86_64 which still supported -KPIC.
8833 ecc*)
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_pic='-KPIC'
8836 lt_prog_compiler_static='-static'
8837 ;;
8838 # icc used to be incompatible with GCC.
8839 # ICC 10 doesn't accept -KPIC any more.
8840 icc* | ifort*)
8841 lt_prog_compiler_wl='-Wl,'
8842 lt_prog_compiler_pic='-fPIC'
8843 lt_prog_compiler_static='-static'
8844 ;;
8845 # Lahey Fortran 8.1.
8846 lf95*)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='--shared'
8849 lt_prog_compiler_static='--static'
8850 ;;
8851 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8852 # Portland Group compilers (*not* the Pentium gcc compiler,
8853 # which looks to be a dead project)
8854 lt_prog_compiler_wl='-Wl,'
8855 lt_prog_compiler_pic='-fpic'
8856 lt_prog_compiler_static='-Bstatic'
8857 ;;
8858 ccc*)
8859 lt_prog_compiler_wl='-Wl,'
8860 # All Alpha code is PIC.
8861 lt_prog_compiler_static='-non_shared'
8862 ;;
8863 xl* | bgxl* | bgf* | mpixl*)
8864 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8865 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_pic='-qpic'
8867 lt_prog_compiler_static='-qstaticlink'
8868 ;;
8869 *)
8870 case `$CC -V 2>&1 | sed 5q` in
8871 *Sun\ F* | *Sun*Fortran*)
8872 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8873 lt_prog_compiler_pic='-KPIC'
8874 lt_prog_compiler_static='-Bstatic'
8875 lt_prog_compiler_wl=''
8876 ;;
8877 *Sun\ C*)
8878 # Sun C 5.9
8879 lt_prog_compiler_pic='-KPIC'
8880 lt_prog_compiler_static='-Bstatic'
8881 lt_prog_compiler_wl='-Wl,'
8882 ;;
8883 esac
8884 ;;
8885 esac
8886 ;;
8887
8888 newsos6)
8889 lt_prog_compiler_pic='-KPIC'
8890 lt_prog_compiler_static='-Bstatic'
8891 ;;
8892
8893 *nto* | *qnx*)
8894 # QNX uses GNU C++, but need to define -shared option too, otherwise
8895 # it will coredump.
8896 lt_prog_compiler_pic='-fPIC -shared'
8897 ;;
8898
8899 osf3* | osf4* | osf5*)
8900 lt_prog_compiler_wl='-Wl,'
8901 # All OSF/1 code is PIC.
8902 lt_prog_compiler_static='-non_shared'
8903 ;;
8904
8905 rdos*)
8906 lt_prog_compiler_static='-non_shared'
8907 ;;
8908
8909 solaris*)
8910 lt_prog_compiler_pic='-KPIC'
8911 lt_prog_compiler_static='-Bstatic'
8912 case $cc_basename in
8913 f77* | f90* | f95*)
8914 lt_prog_compiler_wl='-Qoption ld ';;
8915 *)
8916 lt_prog_compiler_wl='-Wl,';;
8917 esac
8918 ;;
8919
8920 sunos4*)
8921 lt_prog_compiler_wl='-Qoption ld '
8922 lt_prog_compiler_pic='-PIC'
8923 lt_prog_compiler_static='-Bstatic'
8924 ;;
8925
8926 sysv4 | sysv4.2uw2* | sysv4.3*)
8927 lt_prog_compiler_wl='-Wl,'
8928 lt_prog_compiler_pic='-KPIC'
8929 lt_prog_compiler_static='-Bstatic'
8930 ;;
8931
8932 sysv4*MP*)
8933 if test -d /usr/nec ;then
8934 lt_prog_compiler_pic='-Kconform_pic'
8935 lt_prog_compiler_static='-Bstatic'
8936 fi
8937 ;;
8938
8939 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8940 lt_prog_compiler_wl='-Wl,'
8941 lt_prog_compiler_pic='-KPIC'
8942 lt_prog_compiler_static='-Bstatic'
8943 ;;
8944
8945 unicos*)
8946 lt_prog_compiler_wl='-Wl,'
8947 lt_prog_compiler_can_build_shared=no
8948 ;;
8949
8950 uts4*)
8951 lt_prog_compiler_pic='-pic'
8952 lt_prog_compiler_static='-Bstatic'
8953 ;;
8954
8955 *)
8956 lt_prog_compiler_can_build_shared=no
8957 ;;
8958 esac
8959 fi
8960
8961case $host_os in
8962 # For platforms which do not support PIC, -DPIC is meaningless:
8963 *djgpp*)
8964 lt_prog_compiler_pic=
8965 ;;
8966 *)
8967 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8968 ;;
8969esac
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8971$as_echo "$lt_prog_compiler_pic" >&6; }
8972
8973
8974
8975
8976
8977
8978#
8979# Check to make sure the PIC flag actually works.
8980#
8981if test -n "$lt_prog_compiler_pic"; then
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8983$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008984if ${lt_cv_prog_compiler_pic_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008985 $as_echo_n "(cached) " >&6
8986else
8987 lt_cv_prog_compiler_pic_works=no
8988 ac_outfile=conftest.$ac_objext
8989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8990 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8991 # Insert the option either (1) after the last *FLAGS variable, or
8992 # (2) before a word containing "conftest.", or (3) at the end.
8993 # Note that $ac_compile itself does not contain backslashes and begins
8994 # with a dollar sign (not a hyphen), so the echo should work correctly.
8995 # The option is referenced via a variable to avoid confusing sed.
8996 lt_compile=`echo "$ac_compile" | $SED \
8997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8999 -e 's:$: $lt_compiler_flag:'`
9000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9001 (eval "$lt_compile" 2>conftest.err)
9002 ac_status=$?
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 if (exit $ac_status) && test -s "$ac_outfile"; then
9006 # The compiler can only warn and ignore the option if not recognized
9007 # So say no if there are warnings other than the usual output.
9008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9010 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9011 lt_cv_prog_compiler_pic_works=yes
9012 fi
9013 fi
9014 $RM conftest*
9015
9016fi
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9018$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9019
9020if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9021 case $lt_prog_compiler_pic in
9022 "" | " "*) ;;
9023 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9024 esac
9025else
9026 lt_prog_compiler_pic=
9027 lt_prog_compiler_can_build_shared=no
9028fi
9029
9030fi
9031
9032
9033
9034
9035
9036
9037#
9038# Check to make sure the static flag actually works.
9039#
9040wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9042$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009043if ${lt_cv_prog_compiler_static_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009044 $as_echo_n "(cached) " >&6
9045else
9046 lt_cv_prog_compiler_static_works=no
9047 save_LDFLAGS="$LDFLAGS"
9048 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9049 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9050 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9051 # The linker can only warn and ignore the option if not recognized
9052 # So say no if there are warnings
9053 if test -s conftest.err; then
9054 # Append any errors to the config.log.
9055 cat conftest.err 1>&5
9056 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9058 if diff conftest.exp conftest.er2 >/dev/null; then
9059 lt_cv_prog_compiler_static_works=yes
9060 fi
9061 else
9062 lt_cv_prog_compiler_static_works=yes
9063 fi
9064 fi
9065 $RM -r conftest*
9066 LDFLAGS="$save_LDFLAGS"
9067
9068fi
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9070$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9071
9072if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9073 :
9074else
9075 lt_prog_compiler_static=
9076fi
9077
9078
9079
9080
9081
9082
9083
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9085$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009086if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009087 $as_echo_n "(cached) " >&6
9088else
9089 lt_cv_prog_compiler_c_o=no
9090 $RM -r conftest 2>/dev/null
9091 mkdir conftest
9092 cd conftest
9093 mkdir out
9094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9095
9096 lt_compiler_flag="-o out/conftest2.$ac_objext"
9097 # Insert the option either (1) after the last *FLAGS variable, or
9098 # (2) before a word containing "conftest.", or (3) at the end.
9099 # Note that $ac_compile itself does not contain backslashes and begins
9100 # with a dollar sign (not a hyphen), so the echo should work correctly.
9101 lt_compile=`echo "$ac_compile" | $SED \
9102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9104 -e 's:$: $lt_compiler_flag:'`
9105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9106 (eval "$lt_compile" 2>out/conftest.err)
9107 ac_status=$?
9108 cat out/conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9111 then
9112 # The compiler can only warn and ignore the option if not recognized
9113 # So say no if there are warnings
9114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9117 lt_cv_prog_compiler_c_o=yes
9118 fi
9119 fi
9120 chmod u+w . 2>&5
9121 $RM conftest*
9122 # SGI C++ compiler will create directory out/ii_files/ for
9123 # template instantiation
9124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9125 $RM out/* && rmdir out
9126 cd ..
9127 $RM -r conftest
9128 $RM conftest*
9129
9130fi
9131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9132$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9133
9134
9135
9136
9137
9138
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9140$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009141if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009142 $as_echo_n "(cached) " >&6
9143else
9144 lt_cv_prog_compiler_c_o=no
9145 $RM -r conftest 2>/dev/null
9146 mkdir conftest
9147 cd conftest
9148 mkdir out
9149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9150
9151 lt_compiler_flag="-o out/conftest2.$ac_objext"
9152 # Insert the option either (1) after the last *FLAGS variable, or
9153 # (2) before a word containing "conftest.", or (3) at the end.
9154 # Note that $ac_compile itself does not contain backslashes and begins
9155 # with a dollar sign (not a hyphen), so the echo should work correctly.
9156 lt_compile=`echo "$ac_compile" | $SED \
9157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9159 -e 's:$: $lt_compiler_flag:'`
9160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9161 (eval "$lt_compile" 2>out/conftest.err)
9162 ac_status=$?
9163 cat out/conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9166 then
9167 # The compiler can only warn and ignore the option if not recognized
9168 # So say no if there are warnings
9169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9172 lt_cv_prog_compiler_c_o=yes
9173 fi
9174 fi
9175 chmod u+w . 2>&5
9176 $RM conftest*
9177 # SGI C++ compiler will create directory out/ii_files/ for
9178 # template instantiation
9179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9180 $RM out/* && rmdir out
9181 cd ..
9182 $RM -r conftest
9183 $RM conftest*
9184
9185fi
9186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9187$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9188
9189
9190
9191
9192hard_links="nottested"
9193if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9194 # do not overwrite the value of need_locks provided by the user
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9196$as_echo_n "checking if we can lock with hard links... " >&6; }
9197 hard_links=yes
9198 $RM conftest*
9199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9200 touch conftest.a
9201 ln conftest.a conftest.b 2>&5 || hard_links=no
9202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9204$as_echo "$hard_links" >&6; }
9205 if test "$hard_links" = no; then
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9207$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9208 need_locks=warn
9209 fi
9210else
9211 need_locks=no
9212fi
9213
9214
9215
9216
9217
9218
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9220$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9221
9222 runpath_var=
9223 allow_undefined_flag=
9224 always_export_symbols=no
9225 archive_cmds=
9226 archive_expsym_cmds=
9227 compiler_needs_object=no
9228 enable_shared_with_static_runtimes=no
9229 export_dynamic_flag_spec=
9230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9231 hardcode_automatic=no
9232 hardcode_direct=no
9233 hardcode_direct_absolute=no
9234 hardcode_libdir_flag_spec=
9235 hardcode_libdir_flag_spec_ld=
9236 hardcode_libdir_separator=
9237 hardcode_minus_L=no
9238 hardcode_shlibpath_var=unsupported
9239 inherit_rpath=no
9240 link_all_deplibs=unknown
9241 module_cmds=
9242 module_expsym_cmds=
9243 old_archive_from_new_cmds=
9244 old_archive_from_expsyms_cmds=
9245 thread_safe_flag_spec=
9246 whole_archive_flag_spec=
9247 # include_expsyms should be a list of space-separated symbols to be *always*
9248 # included in the symbol list
9249 include_expsyms=
9250 # exclude_expsyms can be an extended regexp of symbols to exclude
9251 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9252 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9253 # as well as any symbol that contains `d'.
9254 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9255 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9256 # platforms (ab)use it in PIC code, but their linkers get confused if
9257 # the symbol is explicitly referenced. Since portable code cannot
9258 # rely on this symbol name, it's probably fine to never include it in
9259 # preloaded symbol tables.
9260 # Exclude shared library initialization/finalization symbols.
9261 extract_expsyms_cmds=
9262
9263 case $host_os in
9264 cygwin* | mingw* | pw32* | cegcc*)
9265 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9266 # When not using gcc, we currently assume that we are using
9267 # Microsoft Visual C++.
9268 if test "$GCC" != yes; then
9269 with_gnu_ld=no
9270 fi
9271 ;;
9272 interix*)
9273 # we just hope/assume this is gcc and not c89 (= MSVC++)
9274 with_gnu_ld=yes
9275 ;;
9276 openbsd*)
9277 with_gnu_ld=no
9278 ;;
9279 esac
9280
9281 ld_shlibs=yes
9282
9283 # On some targets, GNU ld is compatible enough with the native linker
9284 # that we're better off using the native interface for both.
9285 lt_use_gnu_ld_interface=no
9286 if test "$with_gnu_ld" = yes; then
9287 case $host_os in
9288 aix*)
9289 # The AIX port of GNU ld has always aspired to compatibility
9290 # with the native linker. However, as the warning in the GNU ld
9291 # block says, versions before 2.19.5* couldn't really create working
9292 # shared libraries, regardless of the interface used.
9293 case `$LD -v 2>&1` in
9294 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9295 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9296 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9297 *)
9298 lt_use_gnu_ld_interface=yes
9299 ;;
9300 esac
9301 ;;
9302 *)
9303 lt_use_gnu_ld_interface=yes
9304 ;;
9305 esac
9306 fi
9307
9308 if test "$lt_use_gnu_ld_interface" = yes; then
9309 # If archive_cmds runs LD, not CC, wlarc should be empty
9310 wlarc='${wl}'
9311
9312 # Set some defaults for GNU ld with shared library support. These
9313 # are reset later if shared libraries are not supported. Putting them
9314 # here allows them to be overridden if necessary.
9315 runpath_var=LD_RUN_PATH
9316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9317 export_dynamic_flag_spec='${wl}--export-dynamic'
9318 # ancient GNU ld didn't support --whole-archive et. al.
9319 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9320 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9321 else
9322 whole_archive_flag_spec=
9323 fi
9324 supports_anon_versioning=no
9325 case `$LD -v 2>&1` in
9326 *GNU\ gold*) supports_anon_versioning=yes ;;
9327 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9328 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9329 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9330 *\ 2.11.*) ;; # other 2.11 versions
9331 *) supports_anon_versioning=yes ;;
9332 esac
9333
9334 # See if GNU ld supports shared libraries.
9335 case $host_os in
9336 aix[3-9]*)
9337 # On AIX/PPC, the GNU linker is very broken
9338 if test "$host_cpu" != ia64; then
9339 ld_shlibs=no
9340 cat <<_LT_EOF 1>&2
9341
9342*** Warning: the GNU linker, at least up to release 2.19, is reported
9343*** to be unable to reliably create shared libraries on AIX.
9344*** Therefore, libtool is disabling shared libraries support. If you
9345*** really care for shared libraries, you may want to install binutils
9346*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9347*** You will then need to restart the configuration process.
9348
9349_LT_EOF
9350 fi
9351 ;;
9352
9353 amigaos*)
9354 case $host_cpu in
9355 powerpc)
9356 # see comment about AmigaOS4 .so support
9357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358 archive_expsym_cmds=''
9359 ;;
9360 m68k)
9361 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)'
9362 hardcode_libdir_flag_spec='-L$libdir'
9363 hardcode_minus_L=yes
9364 ;;
9365 esac
9366 ;;
9367
9368 beos*)
9369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9370 allow_undefined_flag=unsupported
9371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9372 # support --undefined. This deserves some investigation. FIXME
9373 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374 else
9375 ld_shlibs=no
9376 fi
9377 ;;
9378
9379 cygwin* | mingw* | pw32* | cegcc*)
9380 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9381 # as there is no search path for DLLs.
9382 hardcode_libdir_flag_spec='-L$libdir'
9383 export_dynamic_flag_spec='${wl}--export-all-symbols'
9384 allow_undefined_flag=unsupported
9385 always_export_symbols=no
9386 enable_shared_with_static_runtimes=yes
9387 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9388
9389 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9391 # If the export-symbols file already is a .def file (1st line
9392 # is EXPORTS), use it as is; otherwise, prepend...
9393 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9394 cp $export_symbols $output_objdir/$soname.def;
9395 else
9396 echo EXPORTS > $output_objdir/$soname.def;
9397 cat $export_symbols >> $output_objdir/$soname.def;
9398 fi~
9399 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9400 else
9401 ld_shlibs=no
9402 fi
9403 ;;
9404
9405 haiku*)
9406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9407 link_all_deplibs=yes
9408 ;;
9409
9410 interix[3-9]*)
9411 hardcode_direct=no
9412 hardcode_shlibpath_var=no
9413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9414 export_dynamic_flag_spec='${wl}-E'
9415 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9416 # Instead, shared libraries are loaded at an image base (0x10000000 by
9417 # default) and relocated if they conflict, which is a slow very memory
9418 # consuming and fragmenting process. To avoid this, we pick a random,
9419 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9420 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9421 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9422 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'
9423 ;;
9424
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +00009425 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +00009426 tmp_diet=no
9427 if test "$host_os" = linux-dietlibc; then
9428 case $cc_basename in
9429 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9430 esac
9431 fi
9432 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9433 && test "$tmp_diet" = no
9434 then
9435 tmp_addflag=' $pic_flag'
9436 tmp_sharedflag='-shared'
9437 case $cc_basename,$host_cpu in
9438 pgcc*) # Portland Group C compiler
9439 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'
9440 tmp_addflag=' $pic_flag'
9441 ;;
9442 pgf77* | pgf90* | pgf95* | pgfortran*)
9443 # Portland Group f77 and f90 compilers
9444 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'
9445 tmp_addflag=' $pic_flag -Mnomain' ;;
9446 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9447 tmp_addflag=' -i_dynamic' ;;
9448 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9449 tmp_addflag=' -i_dynamic -nofor_main' ;;
9450 ifc* | ifort*) # Intel Fortran compiler
9451 tmp_addflag=' -nofor_main' ;;
9452 lf95*) # Lahey Fortran 8.1
9453 whole_archive_flag_spec=
9454 tmp_sharedflag='--shared' ;;
9455 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9456 tmp_sharedflag='-qmkshrobj'
9457 tmp_addflag= ;;
9458 nvcc*) # Cuda Compiler Driver 2.2
9459 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'
9460 compiler_needs_object=yes
9461 ;;
9462 esac
9463 case `$CC -V 2>&1 | sed 5q` in
9464 *Sun\ C*) # Sun C 5.9
9465 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'
9466 compiler_needs_object=yes
9467 tmp_sharedflag='-G' ;;
9468 *Sun\ F*) # Sun Fortran 8.3
9469 tmp_sharedflag='-G' ;;
9470 esac
9471 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9472
9473 if test "x$supports_anon_versioning" = xyes; then
9474 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9476 echo "local: *; };" >> $output_objdir/$libname.ver~
9477 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9478 fi
9479
9480 case $cc_basename in
9481 xlf* | bgf* | bgxlf* | mpixlf*)
9482 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9483 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9484 hardcode_libdir_flag_spec=
9485 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9486 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9487 if test "x$supports_anon_versioning" = xyes; then
9488 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9489 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9490 echo "local: *; };" >> $output_objdir/$libname.ver~
9491 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9492 fi
9493 ;;
9494 esac
9495 else
9496 ld_shlibs=no
9497 fi
9498 ;;
9499
9500 netbsd*)
9501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9502 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9503 wlarc=
9504 else
9505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9507 fi
9508 ;;
9509
9510 solaris*)
9511 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9512 ld_shlibs=no
9513 cat <<_LT_EOF 1>&2
9514
9515*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9516*** create shared libraries on Solaris systems. Therefore, libtool
9517*** is disabling shared libraries support. We urge you to upgrade GNU
9518*** binutils to release 2.9.1 or newer. Another option is to modify
9519*** your PATH or compiler configuration so that the native linker is
9520*** used, and then restart.
9521
9522_LT_EOF
9523 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9526 else
9527 ld_shlibs=no
9528 fi
9529 ;;
9530
9531 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9532 case `$LD -v 2>&1` in
9533 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9534 ld_shlibs=no
9535 cat <<_LT_EOF 1>&2
9536
9537*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9538*** reliably create shared libraries on SCO systems. Therefore, libtool
9539*** is disabling shared libraries support. We urge you to upgrade GNU
9540*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9541*** your PATH or compiler configuration so that the native linker is
9542*** used, and then restart.
9543
9544_LT_EOF
9545 ;;
9546 *)
9547 # For security reasons, it is highly recommended that you always
9548 # use absolute paths for naming shared libraries, and exclude the
9549 # DT_RUNPATH tag from executables and libraries. But doing so
9550 # requires that you compile everything twice, which is a pain.
9551 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9555 else
9556 ld_shlibs=no
9557 fi
9558 ;;
9559 esac
9560 ;;
9561
9562 sunos4*)
9563 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9564 wlarc=
9565 hardcode_direct=yes
9566 hardcode_shlibpath_var=no
9567 ;;
9568
9569 *)
9570 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9573 else
9574 ld_shlibs=no
9575 fi
9576 ;;
9577 esac
9578
9579 if test "$ld_shlibs" = no; then
9580 runpath_var=
9581 hardcode_libdir_flag_spec=
9582 export_dynamic_flag_spec=
9583 whole_archive_flag_spec=
9584 fi
9585 else
9586 # PORTME fill in a description of your system's linker (not GNU ld)
9587 case $host_os in
9588 aix3*)
9589 allow_undefined_flag=unsupported
9590 always_export_symbols=yes
9591 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'
9592 # Note: this linker hardcodes the directories in LIBPATH if there
9593 # are no directories specified by -L.
9594 hardcode_minus_L=yes
9595 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9596 # Neither direct hardcoding nor static linking is supported with a
9597 # broken collect2.
9598 hardcode_direct=unsupported
9599 fi
9600 ;;
9601
9602 aix[4-9]*)
9603 if test "$host_cpu" = ia64; then
9604 # On IA64, the linker does run time linking by default, so we don't
9605 # have to do anything special.
9606 aix_use_runtimelinking=no
9607 exp_sym_flag='-Bexport'
9608 no_entry_flag=""
9609 else
9610 # If we're using GNU nm, then we don't want the "-C" option.
9611 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9612 # Also, AIX nm treats weak defined symbols like other global
9613 # defined symbols, whereas GNU nm marks them as "W".
9614 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9615 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'
9616 else
9617 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'
9618 fi
9619 aix_use_runtimelinking=no
9620
9621 # Test if we are trying to use run time linking or normal
9622 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9623 # need to do runtime linking.
9624 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9625 for ld_flag in $LDFLAGS; do
9626 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9627 aix_use_runtimelinking=yes
9628 break
9629 fi
9630 done
9631 ;;
9632 esac
9633
9634 exp_sym_flag='-bexport'
9635 no_entry_flag='-bnoentry'
9636 fi
9637
9638 # When large executables or shared objects are built, AIX ld can
9639 # have problems creating the table of contents. If linking a library
9640 # or program results in "error TOC overflow" add -mminimal-toc to
9641 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9642 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9643
9644 archive_cmds=''
9645 hardcode_direct=yes
9646 hardcode_direct_absolute=yes
9647 hardcode_libdir_separator=':'
9648 link_all_deplibs=yes
9649 file_list_spec='${wl}-f,'
9650
9651 if test "$GCC" = yes; then
9652 case $host_os in aix4.[012]|aix4.[012].*)
9653 # We only want to do this on AIX 4.2 and lower, the check
9654 # below for broken collect2 doesn't work under 4.3+
9655 collect2name=`${CC} -print-prog-name=collect2`
9656 if test -f "$collect2name" &&
9657 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9658 then
9659 # We have reworked collect2
9660 :
9661 else
9662 # We have old collect2
9663 hardcode_direct=unsupported
9664 # It fails to find uninstalled libraries when the uninstalled
9665 # path is not listed in the libpath. Setting hardcode_minus_L
9666 # to unsupported forces relinking
9667 hardcode_minus_L=yes
9668 hardcode_libdir_flag_spec='-L$libdir'
9669 hardcode_libdir_separator=
9670 fi
9671 ;;
9672 esac
9673 shared_flag='-shared'
9674 if test "$aix_use_runtimelinking" = yes; then
9675 shared_flag="$shared_flag "'${wl}-G'
9676 fi
9677 else
9678 # not using gcc
9679 if test "$host_cpu" = ia64; then
9680 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9681 # chokes on -Wl,-G. The following line is correct:
9682 shared_flag='-G'
9683 else
9684 if test "$aix_use_runtimelinking" = yes; then
9685 shared_flag='${wl}-G'
9686 else
9687 shared_flag='${wl}-bM:SRE'
9688 fi
9689 fi
9690 fi
9691
9692 export_dynamic_flag_spec='${wl}-bexpall'
9693 # It seems that -bexpall does not export symbols beginning with
9694 # underscore (_), so it is better to generate a list of symbols to export.
9695 always_export_symbols=yes
9696 if test "$aix_use_runtimelinking" = yes; then
9697 # Warning - without using the other runtime loading flags (-brtl),
9698 # -berok will link without error, but may produce a broken library.
9699 allow_undefined_flag='-berok'
9700 # Determine the default libpath from the value encoded in an
9701 # empty executable.
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h. */
9704
9705int
9706main ()
9707{
9708
9709 ;
9710 return 0;
9711}
9712_ACEOF
9713if ac_fn_c_try_link "$LINENO"; then :
9714
9715lt_aix_libpath_sed='
9716 /Import File Strings/,/^$/ {
9717 /^0/ {
9718 s/^0 *\(.*\)$/\1/
9719 p
9720 }
9721 }'
9722aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9723# Check for a 64-bit object if we didn't find anything.
9724if test -z "$aix_libpath"; then
9725 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9726fi
9727fi
9728rm -f core conftest.err conftest.$ac_objext \
9729 conftest$ac_exeext conftest.$ac_ext
9730if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9731
9732 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9733 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"
9734 else
9735 if test "$host_cpu" = ia64; then
9736 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9737 allow_undefined_flag="-z nodefs"
9738 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"
9739 else
9740 # Determine the default libpath from the value encoded in an
9741 # empty executable.
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743/* end confdefs.h. */
9744
9745int
9746main ()
9747{
9748
9749 ;
9750 return 0;
9751}
9752_ACEOF
9753if ac_fn_c_try_link "$LINENO"; then :
9754
9755lt_aix_libpath_sed='
9756 /Import File Strings/,/^$/ {
9757 /^0/ {
9758 s/^0 *\(.*\)$/\1/
9759 p
9760 }
9761 }'
9762aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9763# Check for a 64-bit object if we didn't find anything.
9764if test -z "$aix_libpath"; then
9765 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9766fi
9767fi
9768rm -f core conftest.err conftest.$ac_objext \
9769 conftest$ac_exeext conftest.$ac_ext
9770if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9771
9772 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9773 # Warning - without using the other run time loading flags,
9774 # -berok will link without error, but may produce a broken library.
9775 no_undefined_flag=' ${wl}-bernotok'
9776 allow_undefined_flag=' ${wl}-berok'
9777 if test "$with_gnu_ld" = yes; then
9778 # We only use this code for GNU lds that support --whole-archive.
9779 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9780 else
9781 # Exported symbols can be pulled into shared objects from archives
9782 whole_archive_flag_spec='$convenience'
9783 fi
9784 archive_cmds_need_lc=yes
9785 # This is similar to how AIX traditionally builds its shared libraries.
9786 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'
9787 fi
9788 fi
9789 ;;
9790
9791 amigaos*)
9792 case $host_cpu in
9793 powerpc)
9794 # see comment about AmigaOS4 .so support
9795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9796 archive_expsym_cmds=''
9797 ;;
9798 m68k)
9799 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)'
9800 hardcode_libdir_flag_spec='-L$libdir'
9801 hardcode_minus_L=yes
9802 ;;
9803 esac
9804 ;;
9805
9806 bsdi[45]*)
9807 export_dynamic_flag_spec=-rdynamic
9808 ;;
9809
9810 cygwin* | mingw* | pw32* | cegcc*)
9811 # When not using gcc, we currently assume that we are using
9812 # Microsoft Visual C++.
9813 # hardcode_libdir_flag_spec is actually meaningless, as there is
9814 # no search path for DLLs.
9815 hardcode_libdir_flag_spec=' '
9816 allow_undefined_flag=unsupported
9817 # Tell ltmain to make .lib files, not .a files.
9818 libext=lib
9819 # Tell ltmain to make .dll files, not .so files.
9820 shrext_cmds=".dll"
9821 # FIXME: Setting linknames here is a bad hack.
9822 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9823 # The linker will automatically build a .lib file if we build a DLL.
9824 old_archive_from_new_cmds='true'
9825 # FIXME: Should let the user specify the lib program.
9826 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9827 fix_srcfile_path='`cygpath -w "$srcfile"`'
9828 enable_shared_with_static_runtimes=yes
9829 ;;
9830
9831 darwin* | rhapsody*)
9832
9833
9834 archive_cmds_need_lc=no
9835 hardcode_direct=no
9836 hardcode_automatic=yes
9837 hardcode_shlibpath_var=unsupported
9838 if test "$lt_cv_ld_force_load" = "yes"; then
9839 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\"`'
9840 else
9841 whole_archive_flag_spec=''
9842 fi
9843 link_all_deplibs=yes
9844 allow_undefined_flag="$_lt_dar_allow_undefined"
9845 case $cc_basename in
9846 ifort*) _lt_dar_can_shared=yes ;;
9847 *) _lt_dar_can_shared=$GCC ;;
9848 esac
9849 if test "$_lt_dar_can_shared" = "yes"; then
9850 output_verbose_link_cmd=func_echo_all
9851 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9852 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9853 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}"
9854 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}"
9855
9856 else
9857 ld_shlibs=no
9858 fi
9859
9860 ;;
9861
9862 dgux*)
9863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9864 hardcode_libdir_flag_spec='-L$libdir'
9865 hardcode_shlibpath_var=no
9866 ;;
9867
9868 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9869 # support. Future versions do this automatically, but an explicit c++rt0.o
9870 # does not break anything, and helps significantly (at the cost of a little
9871 # extra space).
9872 freebsd2.2*)
9873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9874 hardcode_libdir_flag_spec='-R$libdir'
9875 hardcode_direct=yes
9876 hardcode_shlibpath_var=no
9877 ;;
9878
9879 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9880 freebsd2.*)
9881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9882 hardcode_direct=yes
9883 hardcode_minus_L=yes
9884 hardcode_shlibpath_var=no
9885 ;;
9886
9887 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9888 freebsd* | dragonfly*)
9889 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9890 hardcode_libdir_flag_spec='-R$libdir'
9891 hardcode_direct=yes
9892 hardcode_shlibpath_var=no
9893 ;;
9894
9895 hpux9*)
9896 if test "$GCC" = yes; then
9897 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'
9898 else
9899 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'
9900 fi
9901 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9902 hardcode_libdir_separator=:
9903 hardcode_direct=yes
9904
9905 # hardcode_minus_L: Not really in the search PATH,
9906 # but as the default location of the library.
9907 hardcode_minus_L=yes
9908 export_dynamic_flag_spec='${wl}-E'
9909 ;;
9910
9911 hpux10*)
9912 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9913 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9914 else
9915 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9916 fi
9917 if test "$with_gnu_ld" = no; then
9918 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9919 hardcode_libdir_flag_spec_ld='+b $libdir'
9920 hardcode_libdir_separator=:
9921 hardcode_direct=yes
9922 hardcode_direct_absolute=yes
9923 export_dynamic_flag_spec='${wl}-E'
9924 # hardcode_minus_L: Not really in the search PATH,
9925 # but as the default location of the library.
9926 hardcode_minus_L=yes
9927 fi
9928 ;;
9929
9930 hpux11*)
9931 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9932 case $host_cpu in
9933 hppa*64*)
9934 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9935 ;;
9936 ia64*)
9937 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9938 ;;
9939 *)
9940 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9941 ;;
9942 esac
9943 else
9944 case $host_cpu in
9945 hppa*64*)
9946 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9947 ;;
9948 ia64*)
9949 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9950 ;;
9951 *)
9952
9953 # Older versions of the 11.00 compiler do not understand -b yet
9954 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9956$as_echo_n "checking if $CC understands -b... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009957if ${lt_cv_prog_compiler__b+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009958 $as_echo_n "(cached) " >&6
9959else
9960 lt_cv_prog_compiler__b=no
9961 save_LDFLAGS="$LDFLAGS"
9962 LDFLAGS="$LDFLAGS -b"
9963 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9965 # The linker can only warn and ignore the option if not recognized
9966 # So say no if there are warnings
9967 if test -s conftest.err; then
9968 # Append any errors to the config.log.
9969 cat conftest.err 1>&5
9970 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9972 if diff conftest.exp conftest.er2 >/dev/null; then
9973 lt_cv_prog_compiler__b=yes
9974 fi
9975 else
9976 lt_cv_prog_compiler__b=yes
9977 fi
9978 fi
9979 $RM -r conftest*
9980 LDFLAGS="$save_LDFLAGS"
9981
9982fi
9983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9984$as_echo "$lt_cv_prog_compiler__b" >&6; }
9985
9986if test x"$lt_cv_prog_compiler__b" = xyes; then
9987 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9988else
9989 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9990fi
9991
9992 ;;
9993 esac
9994 fi
9995 if test "$with_gnu_ld" = no; then
9996 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9997 hardcode_libdir_separator=:
9998
9999 case $host_cpu in
10000 hppa*64*|ia64*)
10001 hardcode_direct=no
10002 hardcode_shlibpath_var=no
10003 ;;
10004 *)
10005 hardcode_direct=yes
10006 hardcode_direct_absolute=yes
10007 export_dynamic_flag_spec='${wl}-E'
10008
10009 # hardcode_minus_L: Not really in the search PATH,
10010 # but as the default location of the library.
10011 hardcode_minus_L=yes
10012 ;;
10013 esac
10014 fi
10015 ;;
10016
10017 irix5* | irix6* | nonstopux*)
10018 if test "$GCC" = yes; then
10019 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'
10020 # Try to use the -exported_symbol ld option, if it does not
10021 # work, assume that -exports_file does not work either and
10022 # implicitly export all symbols.
10023 save_LDFLAGS="$LDFLAGS"
10024 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026/* end confdefs.h. */
10027int foo(void) {}
10028_ACEOF
10029if ac_fn_c_try_link "$LINENO"; then :
10030 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'
10031
10032fi
10033rm -f core conftest.err conftest.$ac_objext \
10034 conftest$ac_exeext conftest.$ac_ext
10035 LDFLAGS="$save_LDFLAGS"
10036 else
10037 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'
10038 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'
10039 fi
10040 archive_cmds_need_lc='no'
10041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10042 hardcode_libdir_separator=:
10043 inherit_rpath=yes
10044 link_all_deplibs=yes
10045 ;;
10046
10047 netbsd*)
10048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10050 else
10051 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10052 fi
10053 hardcode_libdir_flag_spec='-R$libdir'
10054 hardcode_direct=yes
10055 hardcode_shlibpath_var=no
10056 ;;
10057
10058 newsos6)
10059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_direct=yes
10061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10062 hardcode_libdir_separator=:
10063 hardcode_shlibpath_var=no
10064 ;;
10065
10066 *nto* | *qnx*)
10067 ;;
10068
10069 openbsd*)
10070 if test -f /usr/libexec/ld.so; then
10071 hardcode_direct=yes
10072 hardcode_shlibpath_var=no
10073 hardcode_direct_absolute=yes
10074 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10075 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10076 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10077 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10078 export_dynamic_flag_spec='${wl}-E'
10079 else
10080 case $host_os in
10081 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10083 hardcode_libdir_flag_spec='-R$libdir'
10084 ;;
10085 *)
10086 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10088 ;;
10089 esac
10090 fi
10091 else
10092 ld_shlibs=no
10093 fi
10094 ;;
10095
10096 os2*)
10097 hardcode_libdir_flag_spec='-L$libdir'
10098 hardcode_minus_L=yes
10099 allow_undefined_flag=unsupported
10100 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'
10101 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10102 ;;
10103
10104 osf3*)
10105 if test "$GCC" = yes; then
10106 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10107 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'
10108 else
10109 allow_undefined_flag=' -expect_unresolved \*'
10110 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'
10111 fi
10112 archive_cmds_need_lc='no'
10113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10114 hardcode_libdir_separator=:
10115 ;;
10116
10117 osf4* | osf5*) # as osf3* with the addition of -msym flag
10118 if test "$GCC" = yes; then
10119 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10120 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'
10121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10122 else
10123 allow_undefined_flag=' -expect_unresolved \*'
10124 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'
10125 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~
10126 $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'
10127
10128 # Both c and cxx compiler support -rpath directly
10129 hardcode_libdir_flag_spec='-rpath $libdir'
10130 fi
10131 archive_cmds_need_lc='no'
10132 hardcode_libdir_separator=:
10133 ;;
10134
10135 solaris*)
10136 no_undefined_flag=' -z defs'
10137 if test "$GCC" = yes; then
10138 wlarc='${wl}'
10139 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10141 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10142 else
10143 case `$CC -V 2>&1` in
10144 *"Compilers 5.0"*)
10145 wlarc=''
10146 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10148 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10149 ;;
10150 *)
10151 wlarc='${wl}'
10152 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10154 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10155 ;;
10156 esac
10157 fi
10158 hardcode_libdir_flag_spec='-R$libdir'
10159 hardcode_shlibpath_var=no
10160 case $host_os in
10161 solaris2.[0-5] | solaris2.[0-5].*) ;;
10162 *)
10163 # The compiler driver will combine and reorder linker options,
10164 # but understands `-z linker_flag'. GCC discards it without `$wl',
10165 # but is careful enough not to reorder.
10166 # Supported since Solaris 2.6 (maybe 2.5.1?)
10167 if test "$GCC" = yes; then
10168 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10169 else
10170 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10171 fi
10172 ;;
10173 esac
10174 link_all_deplibs=yes
10175 ;;
10176
10177 sunos4*)
10178 if test "x$host_vendor" = xsequent; then
10179 # Use $CC to link under sequent, because it throws in some extra .o
10180 # files that make .init and .fini sections work.
10181 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10182 else
10183 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10184 fi
10185 hardcode_libdir_flag_spec='-L$libdir'
10186 hardcode_direct=yes
10187 hardcode_minus_L=yes
10188 hardcode_shlibpath_var=no
10189 ;;
10190
10191 sysv4)
10192 case $host_vendor in
10193 sni)
10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_direct=yes # is this really true???
10196 ;;
10197 siemens)
10198 ## LD is ld it makes a PLAMLIB
10199 ## CC just makes a GrossModule.
10200 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10201 reload_cmds='$CC -r -o $output$reload_objs'
10202 hardcode_direct=no
10203 ;;
10204 motorola)
10205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10206 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10207 ;;
10208 esac
10209 runpath_var='LD_RUN_PATH'
10210 hardcode_shlibpath_var=no
10211 ;;
10212
10213 sysv4.3*)
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_shlibpath_var=no
10216 export_dynamic_flag_spec='-Bexport'
10217 ;;
10218
10219 sysv4*MP*)
10220 if test -d /usr/nec; then
10221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222 hardcode_shlibpath_var=no
10223 runpath_var=LD_RUN_PATH
10224 hardcode_runpath_var=yes
10225 ld_shlibs=yes
10226 fi
10227 ;;
10228
10229 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10230 no_undefined_flag='${wl}-z,text'
10231 archive_cmds_need_lc=no
10232 hardcode_shlibpath_var=no
10233 runpath_var='LD_RUN_PATH'
10234
10235 if test "$GCC" = yes; then
10236 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 else
10239 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 fi
10242 ;;
10243
10244 sysv5* | sco3.2v5* | sco5v6*)
10245 # Note: We can NOT use -z defs as we might desire, because we do not
10246 # link with -lc, and that would cause any symbols used from libc to
10247 # always be unresolved, which means just about no library would
10248 # ever link correctly. If we're not using GNU ld we use -z text
10249 # though, which does catch some bad symbols but isn't as heavy-handed
10250 # as -z defs.
10251 no_undefined_flag='${wl}-z,text'
10252 allow_undefined_flag='${wl}-z,nodefs'
10253 archive_cmds_need_lc=no
10254 hardcode_shlibpath_var=no
10255 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10256 hardcode_libdir_separator=':'
10257 link_all_deplibs=yes
10258 export_dynamic_flag_spec='${wl}-Bexport'
10259 runpath_var='LD_RUN_PATH'
10260
10261 if test "$GCC" = yes; then
10262 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 else
10265 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267 fi
10268 ;;
10269
10270 uts4*)
10271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10272 hardcode_libdir_flag_spec='-L$libdir'
10273 hardcode_shlibpath_var=no
10274 ;;
10275
10276 *)
10277 ld_shlibs=no
10278 ;;
10279 esac
10280
10281 if test x$host_vendor = xsni; then
10282 case $host in
10283 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10284 export_dynamic_flag_spec='${wl}-Blargedynsym'
10285 ;;
10286 esac
10287 fi
10288 fi
10289
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10291$as_echo "$ld_shlibs" >&6; }
10292test "$ld_shlibs" = no && can_build_shared=no
10293
10294with_gnu_ld=$with_gnu_ld
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310#
10311# Do we need to explicitly link libc?
10312#
10313case "x$archive_cmds_need_lc" in
10314x|xyes)
10315 # Assume -lc should be added
10316 archive_cmds_need_lc=yes
10317
10318 if test "$enable_shared" = yes && test "$GCC" = yes; then
10319 case $archive_cmds in
10320 *'~'*)
10321 # FIXME: we may have to deal with multi-command sequences.
10322 ;;
10323 '$CC '*)
10324 # Test whether the compiler implicitly links with -lc since on some
10325 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10326 # to ld, don't add -lc before -lgcc.
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10328$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000010329if ${lt_cv_archive_cmds_need_lc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010330 $as_echo_n "(cached) " >&6
10331else
10332 $RM conftest*
10333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10334
10335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10336 (eval $ac_compile) 2>&5
10337 ac_status=$?
10338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10339 test $ac_status = 0; } 2>conftest.err; then
10340 soname=conftest
10341 lib=conftest
10342 libobjs=conftest.$ac_objext
10343 deplibs=
10344 wl=$lt_prog_compiler_wl
10345 pic_flag=$lt_prog_compiler_pic
10346 compiler_flags=-v
10347 linker_flags=-v
10348 verstring=
10349 output_objdir=.
10350 libname=conftest
10351 lt_save_allow_undefined_flag=$allow_undefined_flag
10352 allow_undefined_flag=
10353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10354 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10355 ac_status=$?
10356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10357 test $ac_status = 0; }
10358 then
10359 lt_cv_archive_cmds_need_lc=no
10360 else
10361 lt_cv_archive_cmds_need_lc=yes
10362 fi
10363 allow_undefined_flag=$lt_save_allow_undefined_flag
10364 else
10365 cat conftest.err 1>&5
10366 fi
10367 $RM conftest*
10368
10369fi
10370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10371$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10372 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10373 ;;
10374 esac
10375 fi
10376 ;;
10377esac
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10536$as_echo_n "checking dynamic linker characteristics... " >&6; }
10537
10538if test "$GCC" = yes; then
10539 case $host_os in
10540 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10541 *) lt_awk_arg="/^libraries:/" ;;
10542 esac
10543 case $host_os in
10544 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10545 *) lt_sed_strip_eq="s,=/,/,g" ;;
10546 esac
10547 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10548 case $lt_search_path_spec in
10549 *\;*)
10550 # if the path contains ";" then we assume it to be the separator
10551 # otherwise default to the standard path separator (i.e. ":") - it is
10552 # assumed that no part of a normal pathname contains ";" but that should
10553 # okay in the real world where ";" in dirpaths is itself problematic.
10554 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10555 ;;
10556 *)
10557 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10558 ;;
10559 esac
10560 # Ok, now we have the path, separated by spaces, we can step through it
10561 # and add multilib dir if necessary.
10562 lt_tmp_lt_search_path_spec=
10563 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10564 for lt_sys_path in $lt_search_path_spec; do
10565 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10567 else
10568 test -d "$lt_sys_path" && \
10569 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10570 fi
10571 done
10572 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10573BEGIN {RS=" "; FS="/|\n";} {
10574 lt_foo="";
10575 lt_count=0;
10576 for (lt_i = NF; lt_i > 0; lt_i--) {
10577 if ($lt_i != "" && $lt_i != ".") {
10578 if ($lt_i == "..") {
10579 lt_count++;
10580 } else {
10581 if (lt_count == 0) {
10582 lt_foo="/" $lt_i lt_foo;
10583 } else {
10584 lt_count--;
10585 }
10586 }
10587 }
10588 }
10589 if (lt_foo != "") { lt_freq[lt_foo]++; }
10590 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10591}'`
10592 # AWK program above erroneously prepends '/' to C:/dos/paths
10593 # for these hosts.
10594 case $host_os in
10595 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10596 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10597 esac
10598 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10599else
10600 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10601fi
10602library_names_spec=
10603libname_spec='lib$name'
10604soname_spec=
10605shrext_cmds=".so"
10606postinstall_cmds=
10607postuninstall_cmds=
10608finish_cmds=
10609finish_eval=
10610shlibpath_var=
10611shlibpath_overrides_runpath=unknown
10612version_type=none
10613dynamic_linker="$host_os ld.so"
10614sys_lib_dlsearch_path_spec="/lib /usr/lib"
10615need_lib_prefix=unknown
10616hardcode_into_libs=no
10617
10618# when you set need_version to no, make sure it does not cause -set_version
10619# flags to be left without arguments
10620need_version=unknown
10621
10622case $host_os in
10623aix3*)
10624 version_type=linux
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10626 shlibpath_var=LIBPATH
10627
10628 # AIX 3 has no versioning support, so we append a major version to the name.
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 ;;
10631
10632aix[4-9]*)
10633 version_type=linux
10634 need_lib_prefix=no
10635 need_version=no
10636 hardcode_into_libs=yes
10637 if test "$host_cpu" = ia64; then
10638 # AIX 5 supports IA64
10639 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 else
10642 # With GCC up to 2.95.x, collect2 would create an import file
10643 # for dependence libraries. The import file would start with
10644 # the line `#! .'. This would cause the generated library to
10645 # depend on `.', always an invalid library. This was fixed in
10646 # development snapshots of GCC prior to 3.0.
10647 case $host_os in
10648 aix4 | aix4.[01] | aix4.[01].*)
10649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10650 echo ' yes '
10651 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10652 :
10653 else
10654 can_build_shared=no
10655 fi
10656 ;;
10657 esac
10658 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10659 # soname into executable. Probably we can add versioning support to
10660 # collect2, so additional links can be useful in future.
10661 if test "$aix_use_runtimelinking" = yes; then
10662 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10663 # instead of lib<name>.a to let people know that these are not
10664 # typical AIX shared libraries.
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666 else
10667 # We preserve .a as extension for shared libraries through AIX4.2
10668 # and later when we are not doing run time linking.
10669 library_names_spec='${libname}${release}.a $libname.a'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 fi
10672 shlibpath_var=LIBPATH
10673 fi
10674 ;;
10675
10676amigaos*)
10677 case $host_cpu in
10678 powerpc)
10679 # Since July 2007 AmigaOS4 officially supports .so libraries.
10680 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 ;;
10683 m68k)
10684 library_names_spec='$libname.ixlibrary $libname.a'
10685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10686 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'
10687 ;;
10688 esac
10689 ;;
10690
10691beos*)
10692 library_names_spec='${libname}${shared_ext}'
10693 dynamic_linker="$host_os ld.so"
10694 shlibpath_var=LIBRARY_PATH
10695 ;;
10696
10697bsdi[45]*)
10698 version_type=linux
10699 need_version=no
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10703 shlibpath_var=LD_LIBRARY_PATH
10704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10706 # the default ld.so.conf also contains /usr/contrib/lib and
10707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10708 # libtool to hard-code these into programs
10709 ;;
10710
10711cygwin* | mingw* | pw32* | cegcc*)
10712 version_type=windows
10713 shrext_cmds=".dll"
10714 need_version=no
10715 need_lib_prefix=no
10716
10717 case $GCC,$host_os in
10718 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10719 library_names_spec='$libname.dll.a'
10720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10721 postinstall_cmds='base_file=`basename \${file}`~
10722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10723 dldir=$destdir/`dirname \$dlpath`~
10724 test -d \$dldir || mkdir -p \$dldir~
10725 $install_prog $dir/$dlname \$dldir/$dlname~
10726 chmod a+x \$dldir/$dlname~
10727 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10728 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10729 fi'
10730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10731 dlpath=$dir/\$dldll~
10732 $RM \$dlpath'
10733 shlibpath_overrides_runpath=yes
10734
10735 case $host_os in
10736 cygwin*)
10737 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10738 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10739
10740 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10741 ;;
10742 mingw* | cegcc*)
10743 # MinGW DLLs use traditional 'lib' prefix
10744 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10745 ;;
10746 pw32*)
10747 # pw32 DLLs use 'pw' prefix rather than 'lib'
10748 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10749 ;;
10750 esac
10751 ;;
10752
10753 *)
10754 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10755 ;;
10756 esac
10757 dynamic_linker='Win32 ld.exe'
10758 # FIXME: first we should search . and the directory the executable is in
10759 shlibpath_var=PATH
10760 ;;
10761
10762darwin* | rhapsody*)
10763 dynamic_linker="$host_os dyld"
10764 version_type=darwin
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10768 soname_spec='${libname}${release}${major}$shared_ext'
10769 shlibpath_overrides_runpath=yes
10770 shlibpath_var=DYLD_LIBRARY_PATH
10771 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10772
10773 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10774 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10775 ;;
10776
10777dgux*)
10778 version_type=linux
10779 need_lib_prefix=no
10780 need_version=no
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 shlibpath_var=LD_LIBRARY_PATH
10784 ;;
10785
10786freebsd* | dragonfly*)
10787 # DragonFly does not have aout. When/if they implement a new
10788 # versioning mechanism, adjust this.
10789 if test -x /usr/bin/objformat; then
10790 objformat=`/usr/bin/objformat`
10791 else
10792 case $host_os in
10793 freebsd[23].*) objformat=aout ;;
10794 *) objformat=elf ;;
10795 esac
10796 fi
10797 version_type=freebsd-$objformat
10798 case $version_type in
10799 freebsd-elf*)
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10801 need_version=no
10802 need_lib_prefix=no
10803 ;;
10804 freebsd-*)
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10806 need_version=yes
10807 ;;
10808 esac
10809 shlibpath_var=LD_LIBRARY_PATH
10810 case $host_os in
10811 freebsd2.*)
10812 shlibpath_overrides_runpath=yes
10813 ;;
10814 freebsd3.[01]* | freebsdelf3.[01]*)
10815 shlibpath_overrides_runpath=yes
10816 hardcode_into_libs=yes
10817 ;;
10818 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10819 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10820 shlibpath_overrides_runpath=no
10821 hardcode_into_libs=yes
10822 ;;
10823 *) # from 4.6 on, and DragonFly
10824 shlibpath_overrides_runpath=yes
10825 hardcode_into_libs=yes
10826 ;;
10827 esac
10828 ;;
10829
10830gnu*)
10831 version_type=linux
10832 need_lib_prefix=no
10833 need_version=no
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 shlibpath_var=LD_LIBRARY_PATH
10837 hardcode_into_libs=yes
10838 ;;
10839
10840haiku*)
10841 version_type=linux
10842 need_lib_prefix=no
10843 need_version=no
10844 dynamic_linker="$host_os runtime_loader"
10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10846 soname_spec='${libname}${release}${shared_ext}$major'
10847 shlibpath_var=LIBRARY_PATH
10848 shlibpath_overrides_runpath=yes
10849 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10850 hardcode_into_libs=yes
10851 ;;
10852
10853hpux9* | hpux10* | hpux11*)
10854 # Give a soname corresponding to the major version so that dld.sl refuses to
10855 # link against other versions.
10856 version_type=sunos
10857 need_lib_prefix=no
10858 need_version=no
10859 case $host_cpu in
10860 ia64*)
10861 shrext_cmds='.so'
10862 hardcode_into_libs=yes
10863 dynamic_linker="$host_os dld.so"
10864 shlibpath_var=LD_LIBRARY_PATH
10865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867 soname_spec='${libname}${release}${shared_ext}$major'
10868 if test "X$HPUX_IA64_MODE" = X32; then
10869 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10870 else
10871 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10872 fi
10873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10874 ;;
10875 hppa*64*)
10876 shrext_cmds='.sl'
10877 hardcode_into_libs=yes
10878 dynamic_linker="$host_os dld.sl"
10879 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882 soname_spec='${libname}${release}${shared_ext}$major'
10883 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10885 ;;
10886 *)
10887 shrext_cmds='.sl'
10888 dynamic_linker="$host_os dld.sl"
10889 shlibpath_var=SHLIB_PATH
10890 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 ;;
10894 esac
10895 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10896 postinstall_cmds='chmod 555 $lib'
10897 # or fails outright, so override atomically:
10898 install_override_mode=555
10899 ;;
10900
10901interix[3-9]*)
10902 version_type=linux
10903 need_lib_prefix=no
10904 need_version=no
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=no
10910 hardcode_into_libs=yes
10911 ;;
10912
10913irix5* | irix6* | nonstopux*)
10914 case $host_os in
10915 nonstopux*) version_type=nonstopux ;;
10916 *)
10917 if test "$lt_cv_prog_gnu_ld" = yes; then
10918 version_type=linux
10919 else
10920 version_type=irix
10921 fi ;;
10922 esac
10923 need_lib_prefix=no
10924 need_version=no
10925 soname_spec='${libname}${release}${shared_ext}$major'
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10927 case $host_os in
10928 irix5* | nonstopux*)
10929 libsuff= shlibsuff=
10930 ;;
10931 *)
10932 case $LD in # libtool.m4 will add one of these switches to LD
10933 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10934 libsuff= shlibsuff= libmagic=32-bit;;
10935 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10936 libsuff=32 shlibsuff=N32 libmagic=N32;;
10937 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10938 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10939 *) libsuff= shlibsuff= libmagic=never-match;;
10940 esac
10941 ;;
10942 esac
10943 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10944 shlibpath_overrides_runpath=no
10945 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10946 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10947 hardcode_into_libs=yes
10948 ;;
10949
10950# No shared lib support for Linux oldld, aout, or coff.
10951linux*oldld* | linux*aout* | linux*coff*)
10952 dynamic_linker=no
10953 ;;
10954
10955# This must be Linux ELF.
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +000010956
10957# uclinux* changes (here and below) have been submitted to the libtool
10958# project, but have not yet been accepted: they are GCC-local changes
10959# for the time being. (See
10960# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10961linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +000010962 version_type=linux
10963 need_lib_prefix=no
10964 need_version=no
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966 soname_spec='${libname}${release}${shared_ext}$major'
10967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10968 shlibpath_var=LD_LIBRARY_PATH
10969 shlibpath_overrides_runpath=no
10970
10971 # Some binutils ld are patched to set DT_RUNPATH
Joseph Myers22e05272018-10-31 17:03:16 +000010972 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010973 $as_echo_n "(cached) " >&6
10974else
10975 lt_cv_shlibpath_overrides_runpath=no
10976 save_LDFLAGS=$LDFLAGS
10977 save_libdir=$libdir
10978 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10979 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981/* end confdefs.h. */
10982
10983int
10984main ()
10985{
10986
10987 ;
10988 return 0;
10989}
10990_ACEOF
10991if ac_fn_c_try_link "$LINENO"; then :
10992 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10993 lt_cv_shlibpath_overrides_runpath=yes
10994fi
10995fi
10996rm -f core conftest.err conftest.$ac_objext \
10997 conftest$ac_exeext conftest.$ac_ext
10998 LDFLAGS=$save_LDFLAGS
10999 libdir=$save_libdir
11000
11001fi
11002
11003 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11004
11005 # This implies no fast_install, which is unacceptable.
11006 # Some rework will be needed to allow for fast_install
11007 # before this can be enabled.
11008 hardcode_into_libs=yes
11009
11010 # Append ld.so.conf contents to the search path
11011 if test -f /etc/ld.so.conf; then
11012 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' ' '`
11013 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11014 fi
11015
11016 # We used to test for /lib/ld.so.1 and disable shared libraries on
11017 # powerpc, because MkLinux only supported shared libraries with the
11018 # GNU dynamic linker. Since this was broken with cross compilers,
11019 # most powerpc-linux boxes support dynamic linking these days and
11020 # people can always --disable-shared, the test was removed, and we
11021 # assume the GNU/Linux dynamic linker is in use.
11022 dynamic_linker='GNU/Linux ld.so'
11023 ;;
11024
11025netbsd*)
11026 version_type=sunos
11027 need_lib_prefix=no
11028 need_version=no
11029 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11032 dynamic_linker='NetBSD (a.out) ld.so'
11033 else
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 dynamic_linker='NetBSD ld.elf_so'
11037 fi
11038 shlibpath_var=LD_LIBRARY_PATH
11039 shlibpath_overrides_runpath=yes
11040 hardcode_into_libs=yes
11041 ;;
11042
11043newsos6)
11044 version_type=linux
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=yes
11048 ;;
11049
11050*nto* | *qnx*)
11051 version_type=qnx
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=no
11058 hardcode_into_libs=yes
11059 dynamic_linker='ldqnx.so'
11060 ;;
11061
11062openbsd*)
11063 version_type=sunos
11064 sys_lib_dlsearch_path_spec="/usr/lib"
11065 need_lib_prefix=no
11066 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11067 case $host_os in
11068 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11069 *) need_version=no ;;
11070 esac
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11073 shlibpath_var=LD_LIBRARY_PATH
11074 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11075 case $host_os in
11076 openbsd2.[89] | openbsd2.[89].*)
11077 shlibpath_overrides_runpath=no
11078 ;;
11079 *)
11080 shlibpath_overrides_runpath=yes
11081 ;;
11082 esac
11083 else
11084 shlibpath_overrides_runpath=yes
11085 fi
11086 ;;
11087
11088os2*)
11089 libname_spec='$name'
11090 shrext_cmds=".dll"
11091 need_lib_prefix=no
11092 library_names_spec='$libname${shared_ext} $libname.a'
11093 dynamic_linker='OS/2 ld.exe'
11094 shlibpath_var=LIBPATH
11095 ;;
11096
11097osf3* | osf4* | osf5*)
11098 version_type=osf
11099 need_lib_prefix=no
11100 need_version=no
11101 soname_spec='${libname}${release}${shared_ext}$major'
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11105 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11106 ;;
11107
11108rdos*)
11109 dynamic_linker=no
11110 ;;
11111
11112solaris*)
11113 version_type=linux
11114 need_lib_prefix=no
11115 need_version=no
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11117 soname_spec='${libname}${release}${shared_ext}$major'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 shlibpath_overrides_runpath=yes
11120 hardcode_into_libs=yes
11121 # ldd complains unless libraries are executable
11122 postinstall_cmds='chmod +x $lib'
11123 ;;
11124
11125sunos4*)
11126 version_type=sunos
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11128 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=yes
11131 if test "$with_gnu_ld" = yes; then
11132 need_lib_prefix=no
11133 fi
11134 need_version=yes
11135 ;;
11136
11137sysv4 | sysv4.3*)
11138 version_type=linux
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140 soname_spec='${libname}${release}${shared_ext}$major'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 case $host_vendor in
11143 sni)
11144 shlibpath_overrides_runpath=no
11145 need_lib_prefix=no
11146 runpath_var=LD_RUN_PATH
11147 ;;
11148 siemens)
11149 need_lib_prefix=no
11150 ;;
11151 motorola)
11152 need_lib_prefix=no
11153 need_version=no
11154 shlibpath_overrides_runpath=no
11155 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11156 ;;
11157 esac
11158 ;;
11159
11160sysv4*MP*)
11161 if test -d /usr/nec ;then
11162 version_type=linux
11163 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11164 soname_spec='$libname${shared_ext}.$major'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 fi
11167 ;;
11168
11169sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11170 version_type=freebsd-elf
11171 need_lib_prefix=no
11172 need_version=no
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11174 soname_spec='${libname}${release}${shared_ext}$major'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=yes
11177 hardcode_into_libs=yes
11178 if test "$with_gnu_ld" = yes; then
11179 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11180 else
11181 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11182 case $host_os in
11183 sco3.2v5*)
11184 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11185 ;;
11186 esac
11187 fi
11188 sys_lib_dlsearch_path_spec='/usr/lib'
11189 ;;
11190
11191tpf*)
11192 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11193 version_type=linux
11194 need_lib_prefix=no
11195 need_version=no
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 shlibpath_overrides_runpath=no
11199 hardcode_into_libs=yes
11200 ;;
11201
11202uts4*)
11203 version_type=linux
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 ;;
11208
11209*)
11210 dynamic_linker=no
11211 ;;
11212esac
11213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11214$as_echo "$dynamic_linker" >&6; }
11215test "$dynamic_linker" = no && can_build_shared=no
11216
11217variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11218if test "$GCC" = yes; then
11219 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11220fi
11221
11222if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11223 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11224fi
11225if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11226 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11227fi
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11321$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11322hardcode_action=
11323if test -n "$hardcode_libdir_flag_spec" ||
11324 test -n "$runpath_var" ||
11325 test "X$hardcode_automatic" = "Xyes" ; then
11326
11327 # We can hardcode non-existent directories.
11328 if test "$hardcode_direct" != no &&
11329 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11330 # have to relink, otherwise we might link with an installed library
11331 # when we should be linking with a yet-to-be-installed one
11332 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11333 test "$hardcode_minus_L" != no; then
11334 # Linking always hardcodes the temporary library directory.
11335 hardcode_action=relink
11336 else
11337 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11338 hardcode_action=immediate
11339 fi
11340else
11341 # We cannot hardcode anything, or else we can only hardcode existing
11342 # directories.
11343 hardcode_action=unsupported
11344fi
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11346$as_echo "$hardcode_action" >&6; }
11347
11348if test "$hardcode_action" = relink ||
11349 test "$inherit_rpath" = yes; then
11350 # Fast installation is not supported
11351 enable_fast_install=no
11352elif test "$shlibpath_overrides_runpath" = yes ||
11353 test "$enable_shared" = no; then
11354 # Fast installation is not necessary
11355 enable_fast_install=needless
11356fi
11357
11358
11359
11360
11361
11362
11363 if test "x$enable_dlopen" != xyes; then
11364 enable_dlopen=unknown
11365 enable_dlopen_self=unknown
11366 enable_dlopen_self_static=unknown
11367else
11368 lt_cv_dlopen=no
11369 lt_cv_dlopen_libs=
11370
11371 case $host_os in
11372 beos*)
11373 lt_cv_dlopen="load_add_on"
11374 lt_cv_dlopen_libs=
11375 lt_cv_dlopen_self=yes
11376 ;;
11377
11378 mingw* | pw32* | cegcc*)
11379 lt_cv_dlopen="LoadLibrary"
11380 lt_cv_dlopen_libs=
11381 ;;
11382
11383 cygwin*)
11384 lt_cv_dlopen="dlopen"
11385 lt_cv_dlopen_libs=
11386 ;;
11387
11388 darwin*)
11389 # if libdl is installed we need to link against it
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11391$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011392if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011393 $as_echo_n "(cached) " >&6
11394else
11395 ac_check_lib_save_LIBS=$LIBS
11396LIBS="-ldl $LIBS"
11397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398/* end confdefs.h. */
11399
11400/* Override any GCC internal prototype to avoid an error.
11401 Use char because int might match the return type of a GCC
11402 builtin and then its argument prototype would still apply. */
11403#ifdef __cplusplus
11404extern "C"
11405#endif
11406char dlopen ();
11407int
11408main ()
11409{
11410return dlopen ();
11411 ;
11412 return 0;
11413}
11414_ACEOF
11415if ac_fn_c_try_link "$LINENO"; then :
11416 ac_cv_lib_dl_dlopen=yes
11417else
11418 ac_cv_lib_dl_dlopen=no
11419fi
11420rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11422LIBS=$ac_check_lib_save_LIBS
11423fi
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11425$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011426if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011427 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11428else
11429
11430 lt_cv_dlopen="dyld"
11431 lt_cv_dlopen_libs=
11432 lt_cv_dlopen_self=yes
11433
11434fi
11435
11436 ;;
11437
11438 *)
11439 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Joseph Myers22e05272018-10-31 17:03:16 +000011440if test "x$ac_cv_func_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011441 lt_cv_dlopen="shl_load"
11442else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11444$as_echo_n "checking for shl_load in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011445if ${ac_cv_lib_dld_shl_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011446 $as_echo_n "(cached) " >&6
11447else
11448 ac_check_lib_save_LIBS=$LIBS
11449LIBS="-ldld $LIBS"
11450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451/* end confdefs.h. */
11452
11453/* Override any GCC internal prototype to avoid an error.
11454 Use char because int might match the return type of a GCC
11455 builtin and then its argument prototype would still apply. */
11456#ifdef __cplusplus
11457extern "C"
11458#endif
11459char shl_load ();
11460int
11461main ()
11462{
11463return shl_load ();
11464 ;
11465 return 0;
11466}
11467_ACEOF
11468if ac_fn_c_try_link "$LINENO"; then :
11469 ac_cv_lib_dld_shl_load=yes
11470else
11471 ac_cv_lib_dld_shl_load=no
11472fi
11473rm -f core conftest.err conftest.$ac_objext \
11474 conftest$ac_exeext conftest.$ac_ext
11475LIBS=$ac_check_lib_save_LIBS
11476fi
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11478$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011479if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011480 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11481else
11482 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Joseph Myers22e05272018-10-31 17:03:16 +000011483if test "x$ac_cv_func_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011484 lt_cv_dlopen="dlopen"
11485else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11487$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011488if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011489 $as_echo_n "(cached) " >&6
11490else
11491 ac_check_lib_save_LIBS=$LIBS
11492LIBS="-ldl $LIBS"
11493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494/* end confdefs.h. */
11495
11496/* Override any GCC internal prototype to avoid an error.
11497 Use char because int might match the return type of a GCC
11498 builtin and then its argument prototype would still apply. */
11499#ifdef __cplusplus
11500extern "C"
11501#endif
11502char dlopen ();
11503int
11504main ()
11505{
11506return dlopen ();
11507 ;
11508 return 0;
11509}
11510_ACEOF
11511if ac_fn_c_try_link "$LINENO"; then :
11512 ac_cv_lib_dl_dlopen=yes
11513else
11514 ac_cv_lib_dl_dlopen=no
11515fi
11516rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518LIBS=$ac_check_lib_save_LIBS
11519fi
11520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11521$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011522if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11524else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11526$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011527if ${ac_cv_lib_svld_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011528 $as_echo_n "(cached) " >&6
11529else
11530 ac_check_lib_save_LIBS=$LIBS
11531LIBS="-lsvld $LIBS"
11532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533/* end confdefs.h. */
11534
11535/* Override any GCC internal prototype to avoid an error.
11536 Use char because int might match the return type of a GCC
11537 builtin and then its argument prototype would still apply. */
11538#ifdef __cplusplus
11539extern "C"
11540#endif
11541char dlopen ();
11542int
11543main ()
11544{
11545return dlopen ();
11546 ;
11547 return 0;
11548}
11549_ACEOF
11550if ac_fn_c_try_link "$LINENO"; then :
11551 ac_cv_lib_svld_dlopen=yes
11552else
11553 ac_cv_lib_svld_dlopen=no
11554fi
11555rm -f core conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11557LIBS=$ac_check_lib_save_LIBS
11558fi
11559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11560$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011561if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011562 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11563else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11565$as_echo_n "checking for dld_link in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011566if ${ac_cv_lib_dld_dld_link+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011567 $as_echo_n "(cached) " >&6
11568else
11569 ac_check_lib_save_LIBS=$LIBS
11570LIBS="-ldld $LIBS"
11571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572/* end confdefs.h. */
11573
11574/* Override any GCC internal prototype to avoid an error.
11575 Use char because int might match the return type of a GCC
11576 builtin and then its argument prototype would still apply. */
11577#ifdef __cplusplus
11578extern "C"
11579#endif
11580char dld_link ();
11581int
11582main ()
11583{
11584return dld_link ();
11585 ;
11586 return 0;
11587}
11588_ACEOF
11589if ac_fn_c_try_link "$LINENO"; then :
11590 ac_cv_lib_dld_dld_link=yes
11591else
11592 ac_cv_lib_dld_dld_link=no
11593fi
11594rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11596LIBS=$ac_check_lib_save_LIBS
11597fi
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11599$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011600if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011601 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11602fi
11603
11604
11605fi
11606
11607
11608fi
11609
11610
11611fi
11612
11613
11614fi
11615
11616
11617fi
11618
11619 ;;
11620 esac
11621
11622 if test "x$lt_cv_dlopen" != xno; then
11623 enable_dlopen=yes
11624 else
11625 enable_dlopen=no
11626 fi
11627
11628 case $lt_cv_dlopen in
11629 dlopen)
11630 save_CPPFLAGS="$CPPFLAGS"
11631 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11632
11633 save_LDFLAGS="$LDFLAGS"
11634 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11635
11636 save_LIBS="$LIBS"
11637 LIBS="$lt_cv_dlopen_libs $LIBS"
11638
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11640$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011641if ${lt_cv_dlopen_self+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011642 $as_echo_n "(cached) " >&6
11643else
11644 if test "$cross_compiling" = yes; then :
11645 lt_cv_dlopen_self=cross
11646else
11647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11648 lt_status=$lt_dlunknown
11649 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclaw8b530862020-04-28 21:42:41 +020011650#line 11650 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011651#include "confdefs.h"
11652
11653#if HAVE_DLFCN_H
11654#include <dlfcn.h>
11655#endif
11656
11657#include <stdio.h>
11658
11659#ifdef RTLD_GLOBAL
11660# define LT_DLGLOBAL RTLD_GLOBAL
11661#else
11662# ifdef DL_GLOBAL
11663# define LT_DLGLOBAL DL_GLOBAL
11664# else
11665# define LT_DLGLOBAL 0
11666# endif
11667#endif
11668
11669/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11670 find out it does not work in some platform. */
11671#ifndef LT_DLLAZY_OR_NOW
11672# ifdef RTLD_LAZY
11673# define LT_DLLAZY_OR_NOW RTLD_LAZY
11674# else
11675# ifdef DL_LAZY
11676# define LT_DLLAZY_OR_NOW DL_LAZY
11677# else
11678# ifdef RTLD_NOW
11679# define LT_DLLAZY_OR_NOW RTLD_NOW
11680# else
11681# ifdef DL_NOW
11682# define LT_DLLAZY_OR_NOW DL_NOW
11683# else
11684# define LT_DLLAZY_OR_NOW 0
11685# endif
11686# endif
11687# endif
11688# endif
11689#endif
11690
11691/* When -fvisbility=hidden is used, assume the code has been annotated
11692 correspondingly for the symbols needed. */
11693#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11694void fnord () __attribute__((visibility("default")));
11695#endif
11696
11697void fnord () { int i=42; }
11698int main ()
11699{
11700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11701 int status = $lt_dlunknown;
11702
11703 if (self)
11704 {
11705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11706 else
11707 {
11708 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11709 else puts (dlerror ());
11710 }
11711 /* dlclose (self); */
11712 }
11713 else
11714 puts (dlerror ());
11715
11716 return status;
11717}
11718_LT_EOF
11719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11720 (eval $ac_link) 2>&5
11721 ac_status=$?
11722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11723 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11724 (./conftest; exit; ) >&5 2>/dev/null
11725 lt_status=$?
11726 case x$lt_status in
11727 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11728 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11729 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11730 esac
11731 else :
11732 # compilation failed
11733 lt_cv_dlopen_self=no
11734 fi
11735fi
11736rm -fr conftest*
11737
11738
11739fi
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11741$as_echo "$lt_cv_dlopen_self" >&6; }
11742
11743 if test "x$lt_cv_dlopen_self" = xyes; then
11744 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11746$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011747if ${lt_cv_dlopen_self_static+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011748 $as_echo_n "(cached) " >&6
11749else
11750 if test "$cross_compiling" = yes; then :
11751 lt_cv_dlopen_self_static=cross
11752else
11753 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11754 lt_status=$lt_dlunknown
11755 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclaw8b530862020-04-28 21:42:41 +020011756#line 11756 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011757#include "confdefs.h"
11758
11759#if HAVE_DLFCN_H
11760#include <dlfcn.h>
11761#endif
11762
11763#include <stdio.h>
11764
11765#ifdef RTLD_GLOBAL
11766# define LT_DLGLOBAL RTLD_GLOBAL
11767#else
11768# ifdef DL_GLOBAL
11769# define LT_DLGLOBAL DL_GLOBAL
11770# else
11771# define LT_DLGLOBAL 0
11772# endif
11773#endif
11774
11775/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11776 find out it does not work in some platform. */
11777#ifndef LT_DLLAZY_OR_NOW
11778# ifdef RTLD_LAZY
11779# define LT_DLLAZY_OR_NOW RTLD_LAZY
11780# else
11781# ifdef DL_LAZY
11782# define LT_DLLAZY_OR_NOW DL_LAZY
11783# else
11784# ifdef RTLD_NOW
11785# define LT_DLLAZY_OR_NOW RTLD_NOW
11786# else
11787# ifdef DL_NOW
11788# define LT_DLLAZY_OR_NOW DL_NOW
11789# else
11790# define LT_DLLAZY_OR_NOW 0
11791# endif
11792# endif
11793# endif
11794# endif
11795#endif
11796
11797/* When -fvisbility=hidden is used, assume the code has been annotated
11798 correspondingly for the symbols needed. */
11799#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11800void fnord () __attribute__((visibility("default")));
11801#endif
11802
11803void fnord () { int i=42; }
11804int main ()
11805{
11806 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11807 int status = $lt_dlunknown;
11808
11809 if (self)
11810 {
11811 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11812 else
11813 {
11814 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11815 else puts (dlerror ());
11816 }
11817 /* dlclose (self); */
11818 }
11819 else
11820 puts (dlerror ());
11821
11822 return status;
11823}
11824_LT_EOF
11825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11826 (eval $ac_link) 2>&5
11827 ac_status=$?
11828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11829 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11830 (./conftest; exit; ) >&5 2>/dev/null
11831 lt_status=$?
11832 case x$lt_status in
11833 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11834 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11835 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11836 esac
11837 else :
11838 # compilation failed
11839 lt_cv_dlopen_self_static=no
11840 fi
11841fi
11842rm -fr conftest*
11843
11844
11845fi
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11847$as_echo "$lt_cv_dlopen_self_static" >&6; }
11848 fi
11849
11850 CPPFLAGS="$save_CPPFLAGS"
11851 LDFLAGS="$save_LDFLAGS"
11852 LIBS="$save_LIBS"
11853 ;;
11854 esac
11855
11856 case $lt_cv_dlopen_self in
11857 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11858 *) enable_dlopen_self=unknown ;;
11859 esac
11860
11861 case $lt_cv_dlopen_self_static in
11862 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11863 *) enable_dlopen_self_static=unknown ;;
11864 esac
11865fi
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883striplib=
11884old_striplib=
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11886$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11887if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11888 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11889 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11891$as_echo "yes" >&6; }
11892else
11893# FIXME - insert some real tests, host_os isn't really good enough
11894 case $host_os in
11895 darwin*)
11896 if test -n "$STRIP" ; then
11897 striplib="$STRIP -x"
11898 old_striplib="$STRIP -S"
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11900$as_echo "yes" >&6; }
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903$as_echo "no" >&6; }
11904 fi
11905 ;;
11906 *)
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908$as_echo "no" >&6; }
11909 ;;
11910 esac
11911fi
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924 # Report which library types will actually be built
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11926$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11928$as_echo "$can_build_shared" >&6; }
11929
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11931$as_echo_n "checking whether to build shared libraries... " >&6; }
11932 test "$can_build_shared" = "no" && enable_shared=no
11933
11934 # On AIX, shared libraries and static libraries use the same namespace, and
11935 # are all built from PIC.
11936 case $host_os in
11937 aix3*)
11938 test "$enable_shared" = yes && enable_static=no
11939 if test -n "$RANLIB"; then
11940 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11941 postinstall_cmds='$RANLIB $lib'
11942 fi
11943 ;;
11944
11945 aix[4-9]*)
11946 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11947 test "$enable_shared" = yes && enable_static=no
11948 fi
11949 ;;
11950 esac
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11952$as_echo "$enable_shared" >&6; }
11953
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11955$as_echo_n "checking whether to build static libraries... " >&6; }
11956 # Make sure either enable_shared or enable_static is yes.
11957 test "$enable_shared" = yes || enable_static=yes
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11959$as_echo "$enable_static" >&6; }
11960
11961
11962
11963
11964fi
11965ac_ext=c
11966ac_cpp='$CPP $CPPFLAGS'
11967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11969ac_compiler_gnu=$ac_cv_c_compiler_gnu
11970
11971CC="$lt_save_CC"
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985 ac_config_commands="$ac_config_commands libtool"
11986
11987
11988
11989
11990# Only expand once:
11991
11992
11993
11994
11995
11996 gdc_save_DFLAGS=$GDCFLAGS
11997 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11998
11999
12000# Source file extension for D test sources.
12001ac_ext=d
12002
12003# Object file extension for compiled D test sources.
12004objext=o
12005objext_D=$objext
12006
12007# Code to be used in simple compile tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000012008lt_simple_compile_test_code="\
12009 module object;
12010 shared int some_variable = 0;
12011"
Iain Buclawb4c522f2018-10-28 19:51:47 +000012012
12013# Code to be used in simple link tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000012014lt_simple_link_test_code="\
12015 module object;
12016 extern(C) int main() { return 0; }
12017"
Iain Buclawb4c522f2018-10-28 19:51:47 +000012018
12019# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12020
12021
12022
12023
12024
12025
12026# If no C compiler was specified, use CC.
12027LTCC=${LTCC-"$CC"}
12028
12029# If no C compiler flags were specified, use CFLAGS.
12030LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12031
12032# Allow CC to be a program name with arguments.
12033compiler=$CC
12034
12035
12036# save warnings/boilerplate of simple test code
12037ac_outfile=conftest.$ac_objext
12038echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12039eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12040_lt_compiler_boilerplate=`cat conftest.err`
12041$RM conftest*
12042
12043ac_outfile=conftest.$ac_objext
12044echo "$lt_simple_link_test_code" >conftest.$ac_ext
12045eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12046_lt_linker_boilerplate=`cat conftest.err`
12047$RM -r conftest*
12048
12049
12050# Allow CC to be a program name with arguments.
12051lt_save_CC=$CC
12052lt_save_CFLAGS=$CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000012053lt_save_GCC=$GCC
12054GCC=yes
12055CC=${GDC-"gdc"}
Iain Buclawb4c522f2018-10-28 19:51:47 +000012056CFLAGS=$GDCFLAGS
12057compiler=$CC
12058compiler_D=$CC
12059LD_D=$CC
12060for cc_temp in $compiler""; do
12061 case $cc_temp in
12062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12064 \-*) ;;
12065 *) break;;
12066 esac
12067done
12068cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12069
12070
12071# GDC did not exist at the time GCC didn't implicitly link libc in.
12072archive_cmds_need_lc_D=no
12073
12074old_archive_cmds_D=$old_archive_cmds
12075reload_flag_D=$reload_flag
12076reload_cmds_D=$reload_cmds
12077
12078## CAVEAT EMPTOR:
12079## There is no encapsulation within the following macros, do not change
12080## the running order or otherwise move them around unless you know exactly
12081## what you are doing...
12082if test -n "$compiler"; then
12083
12084lt_prog_compiler_no_builtin_flag_D=
12085
12086if test "$GCC" = yes; then
12087 case $cc_basename in
12088 nvcc*)
12089 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12090 *)
12091 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12092 esac
12093
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12095$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012096if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012097 $as_echo_n "(cached) " >&6
12098else
12099 lt_cv_prog_compiler_rtti_exceptions=no
12100 ac_outfile=conftest.$ac_objext
12101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12102 lt_compiler_flag="-fno-rtti -fno-exceptions"
12103 # Insert the option either (1) after the last *FLAGS variable, or
12104 # (2) before a word containing "conftest.", or (3) at the end.
12105 # Note that $ac_compile itself does not contain backslashes and begins
12106 # with a dollar sign (not a hyphen), so the echo should work correctly.
12107 # The option is referenced via a variable to avoid confusing sed.
12108 lt_compile=`echo "$ac_compile" | $SED \
12109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12111 -e 's:$: $lt_compiler_flag:'`
12112 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12113 (eval "$lt_compile" 2>conftest.err)
12114 ac_status=$?
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 if (exit $ac_status) && test -s "$ac_outfile"; then
12118 # The compiler can only warn and ignore the option if not recognized
12119 # So say no if there are warnings other than the usual output.
12120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12123 lt_cv_prog_compiler_rtti_exceptions=yes
12124 fi
12125 fi
12126 $RM conftest*
12127
12128fi
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12130$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12131
12132if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12133 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12134else
12135 :
12136fi
12137
12138fi
12139
12140
12141
12142 lt_prog_compiler_wl_D=
12143lt_prog_compiler_pic_D=
12144lt_prog_compiler_static_D=
12145
12146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12147$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12148
12149 if test "$GCC" = yes; then
12150 lt_prog_compiler_wl_D='-Wl,'
12151 lt_prog_compiler_static_D='-static'
12152
12153 case $host_os in
12154 aix*)
12155 # All AIX code is PIC.
12156 if test "$host_cpu" = ia64; then
12157 # AIX 5 now supports IA64 processor
12158 lt_prog_compiler_static_D='-Bstatic'
12159 fi
12160 lt_prog_compiler_pic_D='-fPIC'
12161 ;;
12162
12163 amigaos*)
12164 case $host_cpu in
12165 powerpc)
12166 # see comment about AmigaOS4 .so support
12167 lt_prog_compiler_pic_D='-fPIC'
12168 ;;
12169 m68k)
12170 # FIXME: we need at least 68020 code to build shared libraries, but
12171 # adding the `-m68020' flag to GCC prevents building anything better,
12172 # like `-m68040'.
12173 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12174 ;;
12175 esac
12176 ;;
12177
12178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12179 # PIC is the default for these OSes.
12180 ;;
12181
12182 mingw* | cygwin* | pw32* | os2* | cegcc*)
12183 # This hack is so that the source file can tell whether it is being
12184 # built for inclusion in a dll (and should export symbols for example).
12185 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12186 # (--disable-auto-import) libraries
12187 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12188 ;;
12189
12190 darwin* | rhapsody*)
12191 # PIC is the default on this platform
12192 # Common symbols not allowed in MH_DYLIB files
12193 lt_prog_compiler_pic_D='-fno-common'
12194 ;;
12195
12196 haiku*)
12197 # PIC is the default for Haiku.
12198 # The "-static" flag exists, but is broken.
12199 lt_prog_compiler_static_D=
12200 ;;
12201
12202 hpux*)
12203 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12204 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12205 # sets the default TLS model and affects inlining.
12206 case $host_cpu in
12207 hppa*64*)
12208 # +Z the default
12209 ;;
12210 *)
12211 lt_prog_compiler_pic_D='-fPIC'
12212 ;;
12213 esac
12214 ;;
12215
12216 interix[3-9]*)
12217 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12218 # Instead, we relocate shared libraries at runtime.
12219 ;;
12220
12221 msdosdjgpp*)
12222 # Just because we use GCC doesn't mean we suddenly get shared libraries
12223 # on systems that don't support them.
12224 lt_prog_compiler_can_build_shared_D=no
12225 enable_shared=no
12226 ;;
12227
12228 *nto* | *qnx*)
12229 # QNX uses GNU C++, but need to define -shared option too, otherwise
12230 # it will coredump.
12231 lt_prog_compiler_pic_D='-fPIC -shared'
12232 ;;
12233
12234 sysv4*MP*)
12235 if test -d /usr/nec; then
12236 lt_prog_compiler_pic_D=-Kconform_pic
12237 fi
12238 ;;
12239
12240 *)
12241 lt_prog_compiler_pic_D='-fPIC'
12242 ;;
12243 esac
12244
12245 case $cc_basename in
12246 nvcc*) # Cuda Compiler Driver 2.2
12247 lt_prog_compiler_wl_D='-Xlinker '
12248 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12249 ;;
12250 esac
12251 else
12252 # PORTME Check for flag to pass linker flags through the system compiler.
12253 case $host_os in
12254 aix*)
12255 lt_prog_compiler_wl_D='-Wl,'
12256 if test "$host_cpu" = ia64; then
12257 # AIX 5 now supports IA64 processor
12258 lt_prog_compiler_static_D='-Bstatic'
12259 else
12260 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12261 fi
12262 ;;
12263
12264 mingw* | cygwin* | pw32* | os2* | cegcc*)
12265 # This hack is so that the source file can tell whether it is being
12266 # built for inclusion in a dll (and should export symbols for example).
12267 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12268 ;;
12269
12270 hpux9* | hpux10* | hpux11*)
12271 lt_prog_compiler_wl_D='-Wl,'
12272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12273 # not for PA HP-UX.
12274 case $host_cpu in
12275 hppa*64*|ia64*)
12276 # +Z the default
12277 ;;
12278 *)
12279 lt_prog_compiler_pic_D='+Z'
12280 ;;
12281 esac
12282 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12283 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12284 ;;
12285
12286 irix5* | irix6* | nonstopux*)
12287 lt_prog_compiler_wl_D='-Wl,'
12288 # PIC (with -KPIC) is the default.
12289 lt_prog_compiler_static_D='-non_shared'
12290 ;;
12291
12292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12293 case $cc_basename in
12294 # old Intel for x86_64 which still supported -KPIC.
12295 ecc*)
12296 lt_prog_compiler_wl_D='-Wl,'
12297 lt_prog_compiler_pic_D='-KPIC'
12298 lt_prog_compiler_static_D='-static'
12299 ;;
12300 # icc used to be incompatible with GCC.
12301 # ICC 10 doesn't accept -KPIC any more.
12302 icc* | ifort*)
12303 lt_prog_compiler_wl_D='-Wl,'
12304 lt_prog_compiler_pic_D='-fPIC'
12305 lt_prog_compiler_static_D='-static'
12306 ;;
12307 # Lahey Fortran 8.1.
12308 lf95*)
12309 lt_prog_compiler_wl_D='-Wl,'
12310 lt_prog_compiler_pic_D='--shared'
12311 lt_prog_compiler_static_D='--static'
12312 ;;
12313 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12314 # Portland Group compilers (*not* the Pentium gcc compiler,
12315 # which looks to be a dead project)
12316 lt_prog_compiler_wl_D='-Wl,'
12317 lt_prog_compiler_pic_D='-fpic'
12318 lt_prog_compiler_static_D='-Bstatic'
12319 ;;
12320 ccc*)
12321 lt_prog_compiler_wl_D='-Wl,'
12322 # All Alpha code is PIC.
12323 lt_prog_compiler_static_D='-non_shared'
12324 ;;
12325 xl* | bgxl* | bgf* | mpixl*)
12326 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12327 lt_prog_compiler_wl_D='-Wl,'
12328 lt_prog_compiler_pic_D='-qpic'
12329 lt_prog_compiler_static_D='-qstaticlink'
12330 ;;
12331 *)
12332 case `$CC -V 2>&1 | sed 5q` in
12333 *Sun\ F* | *Sun*Fortran*)
12334 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12335 lt_prog_compiler_pic_D='-KPIC'
12336 lt_prog_compiler_static_D='-Bstatic'
12337 lt_prog_compiler_wl_D=''
12338 ;;
12339 *Sun\ C*)
12340 # Sun C 5.9
12341 lt_prog_compiler_pic_D='-KPIC'
12342 lt_prog_compiler_static_D='-Bstatic'
12343 lt_prog_compiler_wl_D='-Wl,'
12344 ;;
12345 esac
12346 ;;
12347 esac
12348 ;;
12349
12350 newsos6)
12351 lt_prog_compiler_pic_D='-KPIC'
12352 lt_prog_compiler_static_D='-Bstatic'
12353 ;;
12354
12355 *nto* | *qnx*)
12356 # QNX uses GNU C++, but need to define -shared option too, otherwise
12357 # it will coredump.
12358 lt_prog_compiler_pic_D='-fPIC -shared'
12359 ;;
12360
12361 osf3* | osf4* | osf5*)
12362 lt_prog_compiler_wl_D='-Wl,'
12363 # All OSF/1 code is PIC.
12364 lt_prog_compiler_static_D='-non_shared'
12365 ;;
12366
12367 rdos*)
12368 lt_prog_compiler_static_D='-non_shared'
12369 ;;
12370
12371 solaris*)
12372 lt_prog_compiler_pic_D='-KPIC'
12373 lt_prog_compiler_static_D='-Bstatic'
12374 case $cc_basename in
12375 f77* | f90* | f95*)
12376 lt_prog_compiler_wl_D='-Qoption ld ';;
12377 *)
12378 lt_prog_compiler_wl_D='-Wl,';;
12379 esac
12380 ;;
12381
12382 sunos4*)
12383 lt_prog_compiler_wl_D='-Qoption ld '
12384 lt_prog_compiler_pic_D='-PIC'
12385 lt_prog_compiler_static_D='-Bstatic'
12386 ;;
12387
12388 sysv4 | sysv4.2uw2* | sysv4.3*)
12389 lt_prog_compiler_wl_D='-Wl,'
12390 lt_prog_compiler_pic_D='-KPIC'
12391 lt_prog_compiler_static_D='-Bstatic'
12392 ;;
12393
12394 sysv4*MP*)
12395 if test -d /usr/nec ;then
12396 lt_prog_compiler_pic_D='-Kconform_pic'
12397 lt_prog_compiler_static_D='-Bstatic'
12398 fi
12399 ;;
12400
12401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12402 lt_prog_compiler_wl_D='-Wl,'
12403 lt_prog_compiler_pic_D='-KPIC'
12404 lt_prog_compiler_static_D='-Bstatic'
12405 ;;
12406
12407 unicos*)
12408 lt_prog_compiler_wl_D='-Wl,'
12409 lt_prog_compiler_can_build_shared_D=no
12410 ;;
12411
12412 uts4*)
12413 lt_prog_compiler_pic_D='-pic'
12414 lt_prog_compiler_static_D='-Bstatic'
12415 ;;
12416
12417 *)
12418 lt_prog_compiler_can_build_shared_D=no
12419 ;;
12420 esac
12421 fi
12422
12423case $host_os in
12424 # For platforms which do not support PIC, -DPIC is meaningless:
12425 *djgpp*)
12426 lt_prog_compiler_pic_D=
12427 ;;
12428 *)
12429 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12430 ;;
12431esac
12432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12433$as_echo "$lt_prog_compiler_pic_D" >&6; }
12434
12435
12436
12437#
12438# Check to make sure the PIC flag actually works.
12439#
12440if test -n "$lt_prog_compiler_pic_D"; then
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12442$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012443if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012444 $as_echo_n "(cached) " >&6
12445else
12446 lt_cv_prog_compiler_pic_works_D=no
12447 ac_outfile=conftest.$ac_objext
12448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12449 lt_compiler_flag="$lt_prog_compiler_pic_D"
12450 # Insert the option either (1) after the last *FLAGS variable, or
12451 # (2) before a word containing "conftest.", or (3) at the end.
12452 # Note that $ac_compile itself does not contain backslashes and begins
12453 # with a dollar sign (not a hyphen), so the echo should work correctly.
12454 # The option is referenced via a variable to avoid confusing sed.
12455 lt_compile=`echo "$ac_compile" | $SED \
12456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12458 -e 's:$: $lt_compiler_flag:'`
12459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12460 (eval "$lt_compile" 2>conftest.err)
12461 ac_status=$?
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 if (exit $ac_status) && test -s "$ac_outfile"; then
12465 # The compiler can only warn and ignore the option if not recognized
12466 # So say no if there are warnings other than the usual output.
12467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12470 lt_cv_prog_compiler_pic_works_D=yes
12471 fi
12472 fi
12473 $RM conftest*
12474
12475fi
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12477$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12478
12479if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12480 case $lt_prog_compiler_pic_D in
12481 "" | " "*) ;;
12482 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12483 esac
12484else
12485 lt_prog_compiler_pic_D=
12486 lt_prog_compiler_can_build_shared_D=no
12487fi
12488
12489fi
12490
12491
12492
12493#
12494# Check to make sure the static flag actually works.
12495#
12496wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12498$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012499if ${lt_cv_prog_compiler_static_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012500 $as_echo_n "(cached) " >&6
12501else
12502 lt_cv_prog_compiler_static_works_D=no
12503 save_LDFLAGS="$LDFLAGS"
12504 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12505 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12506 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12507 # The linker can only warn and ignore the option if not recognized
12508 # So say no if there are warnings
12509 if test -s conftest.err; then
12510 # Append any errors to the config.log.
12511 cat conftest.err 1>&5
12512 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12514 if diff conftest.exp conftest.er2 >/dev/null; then
12515 lt_cv_prog_compiler_static_works_D=yes
12516 fi
12517 else
12518 lt_cv_prog_compiler_static_works_D=yes
12519 fi
12520 fi
12521 $RM -r conftest*
12522 LDFLAGS="$save_LDFLAGS"
12523
12524fi
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12526$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12527
12528if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12529 :
12530else
12531 lt_prog_compiler_static_D=
12532fi
12533
12534
12535
12536
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12538$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012539if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012540 $as_echo_n "(cached) " >&6
12541else
12542 lt_cv_prog_compiler_c_o_D=no
12543 $RM -r conftest 2>/dev/null
12544 mkdir conftest
12545 cd conftest
12546 mkdir out
12547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12548
12549 lt_compiler_flag="-o out/conftest2.$ac_objext"
12550 # Insert the option either (1) after the last *FLAGS variable, or
12551 # (2) before a word containing "conftest.", or (3) at the end.
12552 # Note that $ac_compile itself does not contain backslashes and begins
12553 # with a dollar sign (not a hyphen), so the echo should work correctly.
12554 lt_compile=`echo "$ac_compile" | $SED \
12555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12557 -e 's:$: $lt_compiler_flag:'`
12558 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12559 (eval "$lt_compile" 2>out/conftest.err)
12560 ac_status=$?
12561 cat out/conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12564 then
12565 # The compiler can only warn and ignore the option if not recognized
12566 # So say no if there are warnings
12567 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12568 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12569 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12570 lt_cv_prog_compiler_c_o_D=yes
12571 fi
12572 fi
12573 chmod u+w . 2>&5
12574 $RM conftest*
12575 # SGI C++ compiler will create directory out/ii_files/ for
12576 # template instantiation
12577 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12578 $RM out/* && rmdir out
12579 cd ..
12580 $RM -r conftest
12581 $RM conftest*
12582
12583fi
12584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12585$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12586
12587
12588
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12590$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012591if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012592 $as_echo_n "(cached) " >&6
12593else
12594 lt_cv_prog_compiler_c_o_D=no
12595 $RM -r conftest 2>/dev/null
12596 mkdir conftest
12597 cd conftest
12598 mkdir out
12599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12600
12601 lt_compiler_flag="-o out/conftest2.$ac_objext"
12602 # Insert the option either (1) after the last *FLAGS variable, or
12603 # (2) before a word containing "conftest.", or (3) at the end.
12604 # Note that $ac_compile itself does not contain backslashes and begins
12605 # with a dollar sign (not a hyphen), so the echo should work correctly.
12606 lt_compile=`echo "$ac_compile" | $SED \
12607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12609 -e 's:$: $lt_compiler_flag:'`
12610 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12611 (eval "$lt_compile" 2>out/conftest.err)
12612 ac_status=$?
12613 cat out/conftest.err >&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12616 then
12617 # The compiler can only warn and ignore the option if not recognized
12618 # So say no if there are warnings
12619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12620 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12621 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12622 lt_cv_prog_compiler_c_o_D=yes
12623 fi
12624 fi
12625 chmod u+w . 2>&5
12626 $RM conftest*
12627 # SGI C++ compiler will create directory out/ii_files/ for
12628 # template instantiation
12629 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12630 $RM out/* && rmdir out
12631 cd ..
12632 $RM -r conftest
12633 $RM conftest*
12634
12635fi
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12637$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12638
12639
12640
12641
12642hard_links="nottested"
12643if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12644 # do not overwrite the value of need_locks provided by the user
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12646$as_echo_n "checking if we can lock with hard links... " >&6; }
12647 hard_links=yes
12648 $RM conftest*
12649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12650 touch conftest.a
12651 ln conftest.a conftest.b 2>&5 || hard_links=no
12652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12654$as_echo "$hard_links" >&6; }
12655 if test "$hard_links" = no; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12657$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12658 need_locks=warn
12659 fi
12660else
12661 need_locks=no
12662fi
12663
12664
12665
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12667$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12668
12669 runpath_var=
12670 allow_undefined_flag_D=
12671 always_export_symbols_D=no
12672 archive_cmds_D=
12673 archive_expsym_cmds_D=
12674 compiler_needs_object_D=no
12675 enable_shared_with_static_runtimes_D=no
12676 export_dynamic_flag_spec_D=
12677 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12678 hardcode_automatic_D=no
12679 hardcode_direct_D=no
12680 hardcode_direct_absolute_D=no
12681 hardcode_libdir_flag_spec_D=
12682 hardcode_libdir_flag_spec_ld_D=
12683 hardcode_libdir_separator_D=
12684 hardcode_minus_L_D=no
12685 hardcode_shlibpath_var_D=unsupported
12686 inherit_rpath_D=no
12687 link_all_deplibs_D=unknown
12688 module_cmds_D=
12689 module_expsym_cmds_D=
12690 old_archive_from_new_cmds_D=
12691 old_archive_from_expsyms_cmds_D=
12692 thread_safe_flag_spec_D=
12693 whole_archive_flag_spec_D=
12694 # include_expsyms should be a list of space-separated symbols to be *always*
12695 # included in the symbol list
12696 include_expsyms_D=
12697 # exclude_expsyms can be an extended regexp of symbols to exclude
12698 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12699 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12700 # as well as any symbol that contains `d'.
12701 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12702 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12703 # platforms (ab)use it in PIC code, but their linkers get confused if
12704 # the symbol is explicitly referenced. Since portable code cannot
12705 # rely on this symbol name, it's probably fine to never include it in
12706 # preloaded symbol tables.
12707 # Exclude shared library initialization/finalization symbols.
12708 extract_expsyms_cmds=
12709
12710 case $host_os in
12711 cygwin* | mingw* | pw32* | cegcc*)
12712 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12713 # When not using gcc, we currently assume that we are using
12714 # Microsoft Visual C++.
12715 if test "$GCC" != yes; then
12716 with_gnu_ld=no
12717 fi
12718 ;;
12719 interix*)
12720 # we just hope/assume this is gcc and not c89 (= MSVC++)
12721 with_gnu_ld=yes
12722 ;;
12723 openbsd*)
12724 with_gnu_ld=no
12725 ;;
12726 esac
12727
12728 ld_shlibs_D=yes
12729
12730 # On some targets, GNU ld is compatible enough with the native linker
12731 # that we're better off using the native interface for both.
12732 lt_use_gnu_ld_interface=no
12733 if test "$with_gnu_ld" = yes; then
12734 case $host_os in
12735 aix*)
12736 # The AIX port of GNU ld has always aspired to compatibility
12737 # with the native linker. However, as the warning in the GNU ld
12738 # block says, versions before 2.19.5* couldn't really create working
12739 # shared libraries, regardless of the interface used.
12740 case `$LD -v 2>&1` in
12741 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12742 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12743 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12744 *)
12745 lt_use_gnu_ld_interface=yes
12746 ;;
12747 esac
12748 ;;
12749 *)
12750 lt_use_gnu_ld_interface=yes
12751 ;;
12752 esac
12753 fi
12754
12755 if test "$lt_use_gnu_ld_interface" = yes; then
12756 # If archive_cmds runs LD, not CC, wlarc should be empty
12757 wlarc='${wl}'
12758
12759 # Set some defaults for GNU ld with shared library support. These
12760 # are reset later if shared libraries are not supported. Putting them
12761 # here allows them to be overridden if necessary.
12762 runpath_var=LD_RUN_PATH
12763 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12764 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12765 # ancient GNU ld didn't support --whole-archive et. al.
12766 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12767 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12768 else
12769 whole_archive_flag_spec_D=
12770 fi
12771 supports_anon_versioning=no
12772 case `$LD -v 2>&1` in
12773 *GNU\ gold*) supports_anon_versioning=yes ;;
12774 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12775 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12776 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12777 *\ 2.11.*) ;; # other 2.11 versions
12778 *) supports_anon_versioning=yes ;;
12779 esac
12780
12781 # See if GNU ld supports shared libraries.
12782 case $host_os in
12783 aix[3-9]*)
12784 # On AIX/PPC, the GNU linker is very broken
12785 if test "$host_cpu" != ia64; then
12786 ld_shlibs_D=no
12787 cat <<_LT_EOF 1>&2
12788
12789*** Warning: the GNU linker, at least up to release 2.19, is reported
12790*** to be unable to reliably create shared libraries on AIX.
12791*** Therefore, libtool is disabling shared libraries support. If you
12792*** really care for shared libraries, you may want to install binutils
12793*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12794*** You will then need to restart the configuration process.
12795
12796_LT_EOF
12797 fi
12798 ;;
12799
12800 amigaos*)
12801 case $host_cpu in
12802 powerpc)
12803 # see comment about AmigaOS4 .so support
12804 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12805 archive_expsym_cmds_D=''
12806 ;;
12807 m68k)
12808 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)'
12809 hardcode_libdir_flag_spec_D='-L$libdir'
12810 hardcode_minus_L_D=yes
12811 ;;
12812 esac
12813 ;;
12814
12815 beos*)
12816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12817 allow_undefined_flag_D=unsupported
12818 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12819 # support --undefined. This deserves some investigation. FIXME
12820 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12821 else
12822 ld_shlibs_D=no
12823 fi
12824 ;;
12825
12826 cygwin* | mingw* | pw32* | cegcc*)
12827 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12828 # as there is no search path for DLLs.
12829 hardcode_libdir_flag_spec_D='-L$libdir'
12830 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12831 allow_undefined_flag_D=unsupported
12832 always_export_symbols_D=no
12833 enable_shared_with_static_runtimes_D=yes
12834 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12835
12836 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12837 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12838 # If the export-symbols file already is a .def file (1st line
12839 # is EXPORTS), use it as is; otherwise, prepend...
12840 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12841 cp $export_symbols $output_objdir/$soname.def;
12842 else
12843 echo EXPORTS > $output_objdir/$soname.def;
12844 cat $export_symbols >> $output_objdir/$soname.def;
12845 fi~
12846 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12847 else
12848 ld_shlibs_D=no
12849 fi
12850 ;;
12851
12852 haiku*)
12853 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12854 link_all_deplibs_D=yes
12855 ;;
12856
12857 interix[3-9]*)
12858 hardcode_direct_D=no
12859 hardcode_shlibpath_var_D=no
12860 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12861 export_dynamic_flag_spec_D='${wl}-E'
12862 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12863 # Instead, shared libraries are loaded at an image base (0x10000000 by
12864 # default) and relocated if they conflict, which is a slow very memory
12865 # consuming and fragmenting process. To avoid this, we pick a random,
12866 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12867 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12868 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'
12869 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'
12870 ;;
12871
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +000012872 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +000012873 tmp_diet=no
12874 if test "$host_os" = linux-dietlibc; then
12875 case $cc_basename in
12876 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12877 esac
12878 fi
12879 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12880 && test "$tmp_diet" = no
12881 then
12882 tmp_addflag=' $pic_flag'
12883 tmp_sharedflag='-shared'
12884 case $cc_basename,$host_cpu in
12885 pgcc*) # Portland Group C compiler
12886 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'
12887 tmp_addflag=' $pic_flag'
12888 ;;
12889 pgf77* | pgf90* | pgf95* | pgfortran*)
12890 # Portland Group f77 and f90 compilers
12891 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'
12892 tmp_addflag=' $pic_flag -Mnomain' ;;
12893 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12894 tmp_addflag=' -i_dynamic' ;;
12895 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12896 tmp_addflag=' -i_dynamic -nofor_main' ;;
12897 ifc* | ifort*) # Intel Fortran compiler
12898 tmp_addflag=' -nofor_main' ;;
12899 lf95*) # Lahey Fortran 8.1
12900 whole_archive_flag_spec_D=
12901 tmp_sharedflag='--shared' ;;
12902 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12903 tmp_sharedflag='-qmkshrobj'
12904 tmp_addflag= ;;
12905 nvcc*) # Cuda Compiler Driver 2.2
12906 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'
12907 compiler_needs_object_D=yes
12908 ;;
12909 esac
12910 case `$CC -V 2>&1 | sed 5q` in
12911 *Sun\ C*) # Sun C 5.9
12912 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'
12913 compiler_needs_object_D=yes
12914 tmp_sharedflag='-G' ;;
12915 *Sun\ F*) # Sun Fortran 8.3
12916 tmp_sharedflag='-G' ;;
12917 esac
12918 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919
12920 if test "x$supports_anon_versioning" = xyes; then
12921 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12922 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12923 echo "local: *; };" >> $output_objdir/$libname.ver~
12924 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12925 fi
12926
12927 case $cc_basename in
12928 xlf* | bgf* | bgxlf* | mpixlf*)
12929 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12930 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12931 hardcode_libdir_flag_spec_D=
12932 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12933 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12934 if test "x$supports_anon_versioning" = xyes; then
12935 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12937 echo "local: *; };" >> $output_objdir/$libname.ver~
12938 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12939 fi
12940 ;;
12941 esac
12942 else
12943 ld_shlibs_D=no
12944 fi
12945 ;;
12946
12947 netbsd*)
12948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12949 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12950 wlarc=
12951 else
12952 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12953 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12954 fi
12955 ;;
12956
12957 solaris*)
12958 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12959 ld_shlibs_D=no
12960 cat <<_LT_EOF 1>&2
12961
12962*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12963*** create shared libraries on Solaris systems. Therefore, libtool
12964*** is disabling shared libraries support. We urge you to upgrade GNU
12965*** binutils to release 2.9.1 or newer. Another option is to modify
12966*** your PATH or compiler configuration so that the native linker is
12967*** used, and then restart.
12968
12969_LT_EOF
12970 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12971 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12972 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12973 else
12974 ld_shlibs_D=no
12975 fi
12976 ;;
12977
12978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12979 case `$LD -v 2>&1` in
12980 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12981 ld_shlibs_D=no
12982 cat <<_LT_EOF 1>&2
12983
12984*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12985*** reliably create shared libraries on SCO systems. Therefore, libtool
12986*** is disabling shared libraries support. We urge you to upgrade GNU
12987*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12988*** your PATH or compiler configuration so that the native linker is
12989*** used, and then restart.
12990
12991_LT_EOF
12992 ;;
12993 *)
12994 # For security reasons, it is highly recommended that you always
12995 # use absolute paths for naming shared libraries, and exclude the
12996 # DT_RUNPATH tag from executables and libraries. But doing so
12997 # requires that you compile everything twice, which is a pain.
12998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12999 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13000 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13001 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13002 else
13003 ld_shlibs_D=no
13004 fi
13005 ;;
13006 esac
13007 ;;
13008
13009 sunos4*)
13010 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13011 wlarc=
13012 hardcode_direct_D=yes
13013 hardcode_shlibpath_var_D=no
13014 ;;
13015
13016 *)
13017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13018 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13019 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13020 else
13021 ld_shlibs_D=no
13022 fi
13023 ;;
13024 esac
13025
13026 if test "$ld_shlibs_D" = no; then
13027 runpath_var=
13028 hardcode_libdir_flag_spec_D=
13029 export_dynamic_flag_spec_D=
13030 whole_archive_flag_spec_D=
13031 fi
13032 else
13033 # PORTME fill in a description of your system's linker (not GNU ld)
13034 case $host_os in
13035 aix3*)
13036 allow_undefined_flag_D=unsupported
13037 always_export_symbols_D=yes
13038 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'
13039 # Note: this linker hardcodes the directories in LIBPATH if there
13040 # are no directories specified by -L.
13041 hardcode_minus_L_D=yes
13042 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13043 # Neither direct hardcoding nor static linking is supported with a
13044 # broken collect2.
13045 hardcode_direct_D=unsupported
13046 fi
13047 ;;
13048
13049 aix[4-9]*)
13050 if test "$host_cpu" = ia64; then
13051 # On IA64, the linker does run time linking by default, so we don't
13052 # have to do anything special.
13053 aix_use_runtimelinking=no
13054 exp_sym_flag='-Bexport'
13055 no_entry_flag=""
13056 else
13057 # If we're using GNU nm, then we don't want the "-C" option.
13058 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13059 # Also, AIX nm treats weak defined symbols like other global
13060 # defined symbols, whereas GNU nm marks them as "W".
13061 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13062 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'
13063 else
13064 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'
13065 fi
13066 aix_use_runtimelinking=no
13067
13068 # Test if we are trying to use run time linking or normal
13069 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13070 # need to do runtime linking.
13071 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13072 for ld_flag in $LDFLAGS; do
13073 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13074 aix_use_runtimelinking=yes
13075 break
13076 fi
13077 done
13078 ;;
13079 esac
13080
13081 exp_sym_flag='-bexport'
13082 no_entry_flag='-bnoentry'
13083 fi
13084
13085 # When large executables or shared objects are built, AIX ld can
13086 # have problems creating the table of contents. If linking a library
13087 # or program results in "error TOC overflow" add -mminimal-toc to
13088 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13089 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13090
13091 archive_cmds_D=''
13092 hardcode_direct_D=yes
13093 hardcode_direct_absolute_D=yes
13094 hardcode_libdir_separator_D=':'
13095 link_all_deplibs_D=yes
13096 file_list_spec_D='${wl}-f,'
13097
13098 if test "$GCC" = yes; then
13099 case $host_os in aix4.[012]|aix4.[012].*)
13100 # We only want to do this on AIX 4.2 and lower, the check
13101 # below for broken collect2 doesn't work under 4.3+
13102 collect2name=`${CC} -print-prog-name=collect2`
13103 if test -f "$collect2name" &&
13104 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13105 then
13106 # We have reworked collect2
13107 :
13108 else
13109 # We have old collect2
13110 hardcode_direct_D=unsupported
13111 # It fails to find uninstalled libraries when the uninstalled
13112 # path is not listed in the libpath. Setting hardcode_minus_L
13113 # to unsupported forces relinking
13114 hardcode_minus_L_D=yes
13115 hardcode_libdir_flag_spec_D='-L$libdir'
13116 hardcode_libdir_separator_D=
13117 fi
13118 ;;
13119 esac
13120 shared_flag='-shared'
13121 if test "$aix_use_runtimelinking" = yes; then
13122 shared_flag="$shared_flag "'${wl}-G'
13123 fi
13124 else
13125 # not using gcc
13126 if test "$host_cpu" = ia64; then
13127 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13128 # chokes on -Wl,-G. The following line is correct:
13129 shared_flag='-G'
13130 else
13131 if test "$aix_use_runtimelinking" = yes; then
13132 shared_flag='${wl}-G'
13133 else
13134 shared_flag='${wl}-bM:SRE'
13135 fi
13136 fi
13137 fi
13138
13139 export_dynamic_flag_spec_D='${wl}-bexpall'
13140 # It seems that -bexpall does not export symbols beginning with
13141 # underscore (_), so it is better to generate a list of symbols to export.
13142 always_export_symbols_D=yes
13143 if test "$aix_use_runtimelinking" = yes; then
13144 # Warning - without using the other runtime loading flags (-brtl),
13145 # -berok will link without error, but may produce a broken library.
13146 allow_undefined_flag_D='-berok'
13147 # Determine the default libpath from the value encoded in an
13148 # empty executable.
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150/* end confdefs.h. */
13151
13152int
13153main ()
13154{
13155
13156 ;
13157 return 0;
13158}
13159_ACEOF
13160if ac_fn_c_try_link "$LINENO"; then :
13161
13162lt_aix_libpath_sed='
13163 /Import File Strings/,/^$/ {
13164 /^0/ {
13165 s/^0 *\(.*\)$/\1/
13166 p
13167 }
13168 }'
13169aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13170# Check for a 64-bit object if we didn't find anything.
13171if test -z "$aix_libpath"; then
13172 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13173fi
13174fi
13175rm -f core conftest.err conftest.$ac_objext \
13176 conftest$ac_exeext conftest.$ac_ext
13177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13178
13179 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13180 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"
13181 else
13182 if test "$host_cpu" = ia64; then
13183 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13184 allow_undefined_flag_D="-z nodefs"
13185 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"
13186 else
13187 # Determine the default libpath from the value encoded in an
13188 # empty executable.
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190/* end confdefs.h. */
13191
13192int
13193main ()
13194{
13195
13196 ;
13197 return 0;
13198}
13199_ACEOF
13200if ac_fn_c_try_link "$LINENO"; then :
13201
13202lt_aix_libpath_sed='
13203 /Import File Strings/,/^$/ {
13204 /^0/ {
13205 s/^0 *\(.*\)$/\1/
13206 p
13207 }
13208 }'
13209aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13210# Check for a 64-bit object if we didn't find anything.
13211if test -z "$aix_libpath"; then
13212 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13213fi
13214fi
13215rm -f core conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13217if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13218
13219 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13220 # Warning - without using the other run time loading flags,
13221 # -berok will link without error, but may produce a broken library.
13222 no_undefined_flag_D=' ${wl}-bernotok'
13223 allow_undefined_flag_D=' ${wl}-berok'
13224 if test "$with_gnu_ld" = yes; then
13225 # We only use this code for GNU lds that support --whole-archive.
13226 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13227 else
13228 # Exported symbols can be pulled into shared objects from archives
13229 whole_archive_flag_spec_D='$convenience'
13230 fi
13231 archive_cmds_need_lc_D=yes
13232 # This is similar to how AIX traditionally builds its shared libraries.
13233 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'
13234 fi
13235 fi
13236 ;;
13237
13238 amigaos*)
13239 case $host_cpu in
13240 powerpc)
13241 # see comment about AmigaOS4 .so support
13242 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13243 archive_expsym_cmds_D=''
13244 ;;
13245 m68k)
13246 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)'
13247 hardcode_libdir_flag_spec_D='-L$libdir'
13248 hardcode_minus_L_D=yes
13249 ;;
13250 esac
13251 ;;
13252
13253 bsdi[45]*)
13254 export_dynamic_flag_spec_D=-rdynamic
13255 ;;
13256
13257 cygwin* | mingw* | pw32* | cegcc*)
13258 # When not using gcc, we currently assume that we are using
13259 # Microsoft Visual C++.
13260 # hardcode_libdir_flag_spec is actually meaningless, as there is
13261 # no search path for DLLs.
13262 hardcode_libdir_flag_spec_D=' '
13263 allow_undefined_flag_D=unsupported
13264 # Tell ltmain to make .lib files, not .a files.
13265 libext=lib
13266 # Tell ltmain to make .dll files, not .so files.
13267 shrext_cmds=".dll"
13268 # FIXME: Setting linknames here is a bad hack.
13269 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13270 # The linker will automatically build a .lib file if we build a DLL.
13271 old_archive_from_new_cmds_D='true'
13272 # FIXME: Should let the user specify the lib program.
13273 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13274 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13275 enable_shared_with_static_runtimes_D=yes
13276 ;;
13277
13278 darwin* | rhapsody*)
13279
13280
13281 archive_cmds_need_lc_D=no
13282 hardcode_direct_D=no
13283 hardcode_automatic_D=yes
13284 hardcode_shlibpath_var_D=unsupported
13285 if test "$lt_cv_ld_force_load" = "yes"; then
13286 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\"`'
13287 else
13288 whole_archive_flag_spec_D=''
13289 fi
13290 link_all_deplibs_D=yes
13291 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13292 case $cc_basename in
13293 ifort*) _lt_dar_can_shared=yes ;;
13294 *) _lt_dar_can_shared=$GCC ;;
13295 esac
13296 if test "$_lt_dar_can_shared" = "yes"; then
13297 output_verbose_link_cmd=func_echo_all
13298 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}"
13299 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13300 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}"
13301 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}"
13302
13303 else
13304 ld_shlibs_D=no
13305 fi
13306
13307 ;;
13308
13309 dgux*)
13310 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13311 hardcode_libdir_flag_spec_D='-L$libdir'
13312 hardcode_shlibpath_var_D=no
13313 ;;
13314
13315 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13316 # support. Future versions do this automatically, but an explicit c++rt0.o
13317 # does not break anything, and helps significantly (at the cost of a little
13318 # extra space).
13319 freebsd2.2*)
13320 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13321 hardcode_libdir_flag_spec_D='-R$libdir'
13322 hardcode_direct_D=yes
13323 hardcode_shlibpath_var_D=no
13324 ;;
13325
13326 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13327 freebsd2.*)
13328 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13329 hardcode_direct_D=yes
13330 hardcode_minus_L_D=yes
13331 hardcode_shlibpath_var_D=no
13332 ;;
13333
13334 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13335 freebsd* | dragonfly*)
13336 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13337 hardcode_libdir_flag_spec_D='-R$libdir'
13338 hardcode_direct_D=yes
13339 hardcode_shlibpath_var_D=no
13340 ;;
13341
13342 hpux9*)
13343 if test "$GCC" = yes; then
13344 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'
13345 else
13346 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'
13347 fi
13348 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13349 hardcode_libdir_separator_D=:
13350 hardcode_direct_D=yes
13351
13352 # hardcode_minus_L: Not really in the search PATH,
13353 # but as the default location of the library.
13354 hardcode_minus_L_D=yes
13355 export_dynamic_flag_spec_D='${wl}-E'
13356 ;;
13357
13358 hpux10*)
13359 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13360 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13361 else
13362 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13363 fi
13364 if test "$with_gnu_ld" = no; then
13365 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13366 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13367 hardcode_libdir_separator_D=:
13368 hardcode_direct_D=yes
13369 hardcode_direct_absolute_D=yes
13370 export_dynamic_flag_spec_D='${wl}-E'
13371 # hardcode_minus_L: Not really in the search PATH,
13372 # but as the default location of the library.
13373 hardcode_minus_L_D=yes
13374 fi
13375 ;;
13376
13377 hpux11*)
13378 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13379 case $host_cpu in
13380 hppa*64*)
13381 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13382 ;;
13383 ia64*)
13384 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13385 ;;
13386 *)
13387 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13388 ;;
13389 esac
13390 else
13391 case $host_cpu in
13392 hppa*64*)
13393 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13394 ;;
13395 ia64*)
13396 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13397 ;;
13398 *)
13399 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13400 ;;
13401 esac
13402 fi
13403 if test "$with_gnu_ld" = no; then
13404 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13405 hardcode_libdir_separator_D=:
13406
13407 case $host_cpu in
13408 hppa*64*|ia64*)
13409 hardcode_direct_D=no
13410 hardcode_shlibpath_var_D=no
13411 ;;
13412 *)
13413 hardcode_direct_D=yes
13414 hardcode_direct_absolute_D=yes
13415 export_dynamic_flag_spec_D='${wl}-E'
13416
13417 # hardcode_minus_L: Not really in the search PATH,
13418 # but as the default location of the library.
13419 hardcode_minus_L_D=yes
13420 ;;
13421 esac
13422 fi
13423 ;;
13424
13425 irix5* | irix6* | nonstopux*)
13426 if test "$GCC" = yes; then
13427 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'
13428 # Try to use the -exported_symbol ld option, if it does not
13429 # work, assume that -exports_file does not work either and
13430 # implicitly export all symbols.
13431 save_LDFLAGS="$LDFLAGS"
13432 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434/* end confdefs.h. */
13435int foo(void) {}
13436_ACEOF
13437if ac_fn_c_try_link "$LINENO"; then :
13438 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'
13439
13440fi
13441rm -f core conftest.err conftest.$ac_objext \
13442 conftest$ac_exeext conftest.$ac_ext
13443 LDFLAGS="$save_LDFLAGS"
13444 else
13445 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'
13446 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'
13447 fi
13448 archive_cmds_need_lc_D='no'
13449 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13450 hardcode_libdir_separator_D=:
13451 inherit_rpath_D=yes
13452 link_all_deplibs_D=yes
13453 ;;
13454
13455 netbsd*)
13456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13457 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13458 else
13459 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13460 fi
13461 hardcode_libdir_flag_spec_D='-R$libdir'
13462 hardcode_direct_D=yes
13463 hardcode_shlibpath_var_D=no
13464 ;;
13465
13466 newsos6)
13467 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13468 hardcode_direct_D=yes
13469 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13470 hardcode_libdir_separator_D=:
13471 hardcode_shlibpath_var_D=no
13472 ;;
13473
13474 *nto* | *qnx*)
13475 ;;
13476
13477 openbsd*)
13478 if test -f /usr/libexec/ld.so; then
13479 hardcode_direct_D=yes
13480 hardcode_shlibpath_var_D=no
13481 hardcode_direct_absolute_D=yes
13482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13483 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13484 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13485 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13486 export_dynamic_flag_spec_D='${wl}-E'
13487 else
13488 case $host_os in
13489 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13490 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13491 hardcode_libdir_flag_spec_D='-R$libdir'
13492 ;;
13493 *)
13494 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13495 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13496 ;;
13497 esac
13498 fi
13499 else
13500 ld_shlibs_D=no
13501 fi
13502 ;;
13503
13504 os2*)
13505 hardcode_libdir_flag_spec_D='-L$libdir'
13506 hardcode_minus_L_D=yes
13507 allow_undefined_flag_D=unsupported
13508 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'
13509 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13510 ;;
13511
13512 osf3*)
13513 if test "$GCC" = yes; then
13514 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13515 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'
13516 else
13517 allow_undefined_flag_D=' -expect_unresolved \*'
13518 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'
13519 fi
13520 archive_cmds_need_lc_D='no'
13521 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13522 hardcode_libdir_separator_D=:
13523 ;;
13524
13525 osf4* | osf5*) # as osf3* with the addition of -msym flag
13526 if test "$GCC" = yes; then
13527 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13528 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'
13529 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13530 else
13531 allow_undefined_flag_D=' -expect_unresolved \*'
13532 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'
13533 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~
13534 $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'
13535
13536 # Both c and cxx compiler support -rpath directly
13537 hardcode_libdir_flag_spec_D='-rpath $libdir'
13538 fi
13539 archive_cmds_need_lc_D='no'
13540 hardcode_libdir_separator_D=:
13541 ;;
13542
13543 solaris*)
13544 no_undefined_flag_D=' -z defs'
13545 if test "$GCC" = yes; then
13546 wlarc='${wl}'
13547 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13548 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13549 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13550 else
13551 case `$CC -V 2>&1` in
13552 *"Compilers 5.0"*)
13553 wlarc=''
13554 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13555 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13556 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13557 ;;
13558 *)
13559 wlarc='${wl}'
13560 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13561 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13562 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13563 ;;
13564 esac
13565 fi
13566 hardcode_libdir_flag_spec_D='-R$libdir'
13567 hardcode_shlibpath_var_D=no
13568 case $host_os in
13569 solaris2.[0-5] | solaris2.[0-5].*) ;;
13570 *)
13571 # The compiler driver will combine and reorder linker options,
13572 # but understands `-z linker_flag'. GCC discards it without `$wl',
13573 # but is careful enough not to reorder.
13574 # Supported since Solaris 2.6 (maybe 2.5.1?)
13575 if test "$GCC" = yes; then
13576 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13577 else
13578 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13579 fi
13580 ;;
13581 esac
13582 link_all_deplibs_D=yes
13583 ;;
13584
13585 sunos4*)
13586 if test "x$host_vendor" = xsequent; then
13587 # Use $CC to link under sequent, because it throws in some extra .o
13588 # files that make .init and .fini sections work.
13589 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13590 else
13591 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13592 fi
13593 hardcode_libdir_flag_spec_D='-L$libdir'
13594 hardcode_direct_D=yes
13595 hardcode_minus_L_D=yes
13596 hardcode_shlibpath_var_D=no
13597 ;;
13598
13599 sysv4)
13600 case $host_vendor in
13601 sni)
13602 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13603 hardcode_direct_D=yes # is this really true???
13604 ;;
13605 siemens)
13606 ## LD is ld it makes a PLAMLIB
13607 ## CC just makes a GrossModule.
13608 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13609 reload_cmds_D='$CC -r -o $output$reload_objs'
13610 hardcode_direct_D=no
13611 ;;
13612 motorola)
13613 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13614 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13615 ;;
13616 esac
13617 runpath_var='LD_RUN_PATH'
13618 hardcode_shlibpath_var_D=no
13619 ;;
13620
13621 sysv4.3*)
13622 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13623 hardcode_shlibpath_var_D=no
13624 export_dynamic_flag_spec_D='-Bexport'
13625 ;;
13626
13627 sysv4*MP*)
13628 if test -d /usr/nec; then
13629 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13630 hardcode_shlibpath_var_D=no
13631 runpath_var=LD_RUN_PATH
13632 hardcode_runpath_var=yes
13633 ld_shlibs_D=yes
13634 fi
13635 ;;
13636
13637 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13638 no_undefined_flag_D='${wl}-z,text'
13639 archive_cmds_need_lc_D=no
13640 hardcode_shlibpath_var_D=no
13641 runpath_var='LD_RUN_PATH'
13642
13643 if test "$GCC" = yes; then
13644 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13646 else
13647 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649 fi
13650 ;;
13651
13652 sysv5* | sco3.2v5* | sco5v6*)
13653 # Note: We can NOT use -z defs as we might desire, because we do not
13654 # link with -lc, and that would cause any symbols used from libc to
13655 # always be unresolved, which means just about no library would
13656 # ever link correctly. If we're not using GNU ld we use -z text
13657 # though, which does catch some bad symbols but isn't as heavy-handed
13658 # as -z defs.
13659 no_undefined_flag_D='${wl}-z,text'
13660 allow_undefined_flag_D='${wl}-z,nodefs'
13661 archive_cmds_need_lc_D=no
13662 hardcode_shlibpath_var_D=no
13663 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13664 hardcode_libdir_separator_D=':'
13665 link_all_deplibs_D=yes
13666 export_dynamic_flag_spec_D='${wl}-Bexport'
13667 runpath_var='LD_RUN_PATH'
13668
13669 if test "$GCC" = yes; then
13670 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13671 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 else
13673 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13674 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 fi
13676 ;;
13677
13678 uts4*)
13679 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13680 hardcode_libdir_flag_spec_D='-L$libdir'
13681 hardcode_shlibpath_var_D=no
13682 ;;
13683
13684 *)
13685 ld_shlibs_D=no
13686 ;;
13687 esac
13688
13689 if test x$host_vendor = xsni; then
13690 case $host in
13691 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13692 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13693 ;;
13694 esac
13695 fi
13696 fi
13697
13698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13699$as_echo "$ld_shlibs_D" >&6; }
13700test "$ld_shlibs_D" = no && can_build_shared=no
13701
13702with_gnu_ld_D=$with_gnu_ld
13703
13704
13705
13706
13707
13708
13709#
13710# Do we need to explicitly link libc?
13711#
13712case "x$archive_cmds_need_lc_D" in
13713x|xyes)
13714 # Assume -lc should be added
13715 archive_cmds_need_lc_D=yes
13716
13717 if test "$enable_shared" = yes && test "$GCC" = yes; then
13718 case $archive_cmds_D in
13719 *'~'*)
13720 # FIXME: we may have to deal with multi-command sequences.
13721 ;;
13722 '$CC '*)
13723 # Test whether the compiler implicitly links with -lc since on some
13724 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13725 # to ld, don't add -lc before -lgcc.
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13727$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000013728if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000013729 $as_echo_n "(cached) " >&6
13730else
13731 $RM conftest*
13732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13733
13734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13735 (eval $ac_compile) 2>&5
13736 ac_status=$?
13737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13738 test $ac_status = 0; } 2>conftest.err; then
13739 soname=conftest
13740 lib=conftest
13741 libobjs=conftest.$ac_objext
13742 deplibs=
13743 wl=$lt_prog_compiler_wl_D
13744 pic_flag=$lt_prog_compiler_pic_D
13745 compiler_flags=-v
13746 linker_flags=-v
13747 verstring=
13748 output_objdir=.
13749 libname=conftest
13750 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13751 allow_undefined_flag_D=
13752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13753 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13754 ac_status=$?
13755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13756 test $ac_status = 0; }
13757 then
13758 lt_cv_archive_cmds_need_lc_D=no
13759 else
13760 lt_cv_archive_cmds_need_lc_D=yes
13761 fi
13762 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13763 else
13764 cat conftest.err 1>&5
13765 fi
13766 $RM conftest*
13767
13768fi
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13770$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13771 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13772 ;;
13773 esac
13774 fi
13775 ;;
13776esac
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13842$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13843hardcode_action_D=
13844if test -n "$hardcode_libdir_flag_spec_D" ||
13845 test -n "$runpath_var_D" ||
13846 test "X$hardcode_automatic_D" = "Xyes" ; then
13847
13848 # We can hardcode non-existent directories.
13849 if test "$hardcode_direct_D" != no &&
13850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13851 # have to relink, otherwise we might link with an installed library
13852 # when we should be linking with a yet-to-be-installed one
13853 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13854 test "$hardcode_minus_L_D" != no; then
13855 # Linking always hardcodes the temporary library directory.
13856 hardcode_action_D=relink
13857 else
13858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13859 hardcode_action_D=immediate
13860 fi
13861else
13862 # We cannot hardcode anything, or else we can only hardcode existing
13863 # directories.
13864 hardcode_action_D=unsupported
13865fi
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13867$as_echo "$hardcode_action_D" >&6; }
13868
13869if test "$hardcode_action_D" = relink ||
13870 test "$inherit_rpath_D" = yes; then
13871 # Fast installation is not supported
13872 enable_fast_install=no
13873elif test "$shlibpath_overrides_runpath" = yes ||
13874 test "$enable_shared" = no; then
13875 # Fast installation is not necessary
13876 enable_fast_install=needless
13877fi
13878
13879
13880
13881
13882
13883
13884
13885fi
13886
13887ac_ext=c
13888ac_cpp='$CPP $CPPFLAGS'
13889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13891ac_compiler_gnu=$ac_cv_c_compiler_gnu
13892
13893
13894GCC=$lt_save_GCC
13895CC=$lt_save_CC
13896CFLAGS=$lt_save_CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000013897
13898 GDCFLAGS=$gdc_save_DFLAGS
13899
Iain Buclawb4c522f2018-10-28 19:51:47 +000013900
13901# libtool variables for Phobos shared and position-independent compiles.
13902#
13903# Use phobos_compiler_shared_flag to designate the compile-time flags for
13904# creating shared objects. Default: -fversion=Shared.
13905#
13906# Use phobos_compiler_pic_flag to designate the compile-time flags for
13907# creating position-independent objects. This varies with the target
13908# hardware and operating system, but is often: -fPIC.
13909#
13910# The distinction between pic and shared compilation flags is not present in
13911# libtool, and so we make it here. How it is handled is that in shared
13912# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13913# ensure that conditional compilation of shared runtime code is compiled in.
13914# The original PIC flags are then used in the compilation of every object.
13915#
13916# Why are objects destined for libgphobos.a compiled with -fPIC?
13917# Because -fPIC is not harmful to use for objects destined for static
13918# libraries. In addition, using -fPIC will allow the use of static
13919# libgphobos.a in the creation of other D shared libraries.
13920if test "$enable_shared" = yes; then
13921 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13922 phobos_compiler_shared_flag="-fversion=Shared"
13923else
13924 phobos_compiler_pic_flag=
13925 phobos_compiler_shared_flag=
13926fi
13927
13928
13929
13930# Override the libtool's pic_flag and pic_mode.
13931# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13932# NB: this impacts --with-pic and --without-pic.
13933lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13934pic_mode='default'
13935
13936# Determine what GCC version number to use in filesystem paths.
13937
13938 get_gcc_base_ver="cat"
13939
13940# Check whether --with-gcc-major-version-only was given.
13941if test "${with_gcc_major_version_only+set}" = set; then :
13942 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13943 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13944 fi
13945
13946fi
13947
13948
13949
13950
13951# libphobos/libdruntime specific options and feature detection
13952
13953 # These need to be absolute paths, yet at the same time need to
13954 # canonicalize only relative paths, because then amd will not unmount
13955 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13956 libphobos_builddir=`${PWDCMD-pwd}`
13957 case $srcdir in
13958 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13959 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13960 esac
13961
13962
13963
13964
13965 if test ${multilib} = yes; then
13966 multilib_arg="--enable-multilib"
13967 else
13968 multilib_arg=
13969 fi
13970
13971
13972 # Check whether --enable-werror was given.
13973if test "${enable_werror+set}" = set; then :
13974 enableval=$enable_werror;
13975fi
13976
13977 WERROR_FLAG=""
13978 if test "x$enable_werror" = "xyes"; then
13979 WERROR_FLAG="-Werror"
13980 fi
13981
Iain Buclawb4c522f2018-10-28 19:51:47 +000013982
Iain Buclaw2493e712019-04-24 22:46:59 +000013983 druntime_target_cpu_parsed=""
13984 case "$target_cpu" in
13985 aarch64*)
13986 druntime_target_cpu_parsed="aarch64"
13987 ;;
13988 arm*) druntime_target_cpu_parsed="arm"
13989 ;;
13990 mips*) druntime_target_cpu_parsed="mips"
13991 ;;
Iain Buclaw8b530862020-04-28 21:42:41 +020013992 powerpc*)
Iain Buclaw1b0cbe02020-04-26 11:32:57 +020013993 druntime_target_cpu_parsed="powerpc"
Iain Buclaw2493e712019-04-24 22:46:59 +000013994 ;;
Rainer Orthb16f2142019-04-25 12:39:33 +000013995 i[34567]86|x86_64)
Iain Buclaw2493e712019-04-24 22:46:59 +000013996 druntime_target_cpu_parsed="x86"
13997 ;;
Robin Dapp88e508f2020-04-07 21:05:38 +020013998 s390x)
13999 druntime_target_cpu_parsed="s390x"
14000 ;;
14001 s390)
14002 druntime_target_cpu_parsed="s390"
14003 ;;
Iain Buclaw2493e712019-04-24 22:46:59 +000014004 esac
14005 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14006 DRUNTIME_CPU_AARCH64_TRUE=
14007 DRUNTIME_CPU_AARCH64_FALSE='#'
14008else
14009 DRUNTIME_CPU_AARCH64_TRUE='#'
14010 DRUNTIME_CPU_AARCH64_FALSE=
14011fi
14012
14013 if test "$druntime_target_cpu_parsed" = "arm"; then
14014 DRUNTIME_CPU_ARM_TRUE=
14015 DRUNTIME_CPU_ARM_FALSE='#'
14016else
14017 DRUNTIME_CPU_ARM_TRUE='#'
14018 DRUNTIME_CPU_ARM_FALSE=
14019fi
14020
14021 if test "$druntime_target_cpu_parsed" = "mips"; then
14022 DRUNTIME_CPU_MIPS_TRUE=
14023 DRUNTIME_CPU_MIPS_FALSE='#'
14024else
14025 DRUNTIME_CPU_MIPS_TRUE='#'
14026 DRUNTIME_CPU_MIPS_FALSE=
14027fi
14028
14029 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14030 DRUNTIME_CPU_POWERPC_TRUE=
14031 DRUNTIME_CPU_POWERPC_FALSE='#'
14032else
14033 DRUNTIME_CPU_POWERPC_TRUE='#'
14034 DRUNTIME_CPU_POWERPC_FALSE=
14035fi
14036
Iain Buclaw2493e712019-04-24 22:46:59 +000014037 if test "$druntime_target_cpu_parsed" = "x86"; then
14038 DRUNTIME_CPU_X86_TRUE=
14039 DRUNTIME_CPU_X86_FALSE='#'
14040else
14041 DRUNTIME_CPU_X86_TRUE='#'
14042 DRUNTIME_CPU_X86_FALSE=
14043fi
14044
Robin Dapp88e508f2020-04-07 21:05:38 +020014045 if test "$druntime_target_cpu_parsed" = "s390x"; then
14046 DRUNTIME_CPU_SYSTEMZ_TRUE=
14047 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14048else
14049 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14050 DRUNTIME_CPU_SYSTEMZ_FALSE=
14051fi
14052
14053 if test "$druntime_target_cpu_parsed" = "s390"; then
14054 DRUNTIME_CPU_S390_TRUE=
14055 DRUNTIME_CPU_S390_FALSE='#'
14056else
14057 DRUNTIME_CPU_S390_TRUE='#'
14058 DRUNTIME_CPU_S390_FALSE=
14059fi
14060
Iain Buclaw2493e712019-04-24 22:46:59 +000014061
14062
Iain Buclawb4c522f2018-10-28 19:51:47 +000014063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14064$as_echo_n "checking for target OS... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014065if ${druntime_cv_target_os+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014066 $as_echo_n "(cached) " >&6
14067else
14068 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14069fi
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14071$as_echo "$druntime_cv_target_os" >&6; }
14072 if test -z "$druntime_cv_target_os"; then :
Joseph Myers22e05272018-10-31 17:03:16 +000014073 as_fn_error $? "can't detect target OS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014074fi
14075
14076
14077
Iain Buclawb4c522f2018-10-28 19:51:47 +000014078
14079 druntime_target_os_parsed=""
14080 case "$druntime_cv_target_os" in
14081 aix*) druntime_target_os_parsed="aix"
14082 ;;
14083 *android*)
14084 druntime_target_os_parsed="android"
14085 ;;
14086 darwin*) druntime_target_os_parsed="darwin"
14087 ;;
14088 dragonfly*)
14089 druntime_target_os_parsed="dragonflybsd"
14090 ;;
14091 freebsd*|k*bsd*-gnu)
14092 druntime_target_os_parsed="freebsd"
14093 ;;
14094 openbsd*)
14095 druntime_target_os_parsed="openbsd"
14096 ;;
14097 netbsd*)
14098 druntime_target_os_parsed="netbsd"
14099 ;;
14100 linux*) druntime_target_os_parsed="linux"
14101 ;;
14102 mingw*) druntime_target_os_parsed="mingw"
14103 ;;
14104 *solaris*) druntime_target_os_parsed="solaris"
14105 esac
14106 if test "$druntime_target_os_parsed" = "aix"; then
14107 DRUNTIME_OS_AIX_TRUE=
14108 DRUNTIME_OS_AIX_FALSE='#'
14109else
14110 DRUNTIME_OS_AIX_TRUE='#'
14111 DRUNTIME_OS_AIX_FALSE=
14112fi
14113
14114 if test "$druntime_target_os_parsed" = "android"; then
14115 DRUNTIME_OS_ANDROID_TRUE=
14116 DRUNTIME_OS_ANDROID_FALSE='#'
14117else
14118 DRUNTIME_OS_ANDROID_TRUE='#'
14119 DRUNTIME_OS_ANDROID_FALSE=
14120fi
14121
14122 if test "$druntime_target_os_parsed" = "darwin"; then
14123 DRUNTIME_OS_DARWIN_TRUE=
14124 DRUNTIME_OS_DARWIN_FALSE='#'
14125else
14126 DRUNTIME_OS_DARWIN_TRUE='#'
14127 DRUNTIME_OS_DARWIN_FALSE=
14128fi
14129
14130 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14131 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14132 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14133else
14134 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14135 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14136fi
14137
14138 if test "$druntime_target_os_parsed" = "freebsd"; then
14139 DRUNTIME_OS_FREEBSD_TRUE=
14140 DRUNTIME_OS_FREEBSD_FALSE='#'
14141else
14142 DRUNTIME_OS_FREEBSD_TRUE='#'
14143 DRUNTIME_OS_FREEBSD_FALSE=
14144fi
14145
14146 if test "$druntime_target_os_parsed" = "netbsd"; then
14147 DRUNTIME_OS_NETBSD_TRUE=
14148 DRUNTIME_OS_NETBSD_FALSE='#'
14149else
14150 DRUNTIME_OS_NETBSD_TRUE='#'
14151 DRUNTIME_OS_NETBSD_FALSE=
14152fi
14153
14154 if test "$druntime_target_os_parsed" = "openbsd"; then
14155 DRUNTIME_OS_OPENBSD_TRUE=
14156 DRUNTIME_OS_OPENBSD_FALSE='#'
14157else
14158 DRUNTIME_OS_OPENBSD_TRUE='#'
14159 DRUNTIME_OS_OPENBSD_FALSE=
14160fi
14161
14162 if test "$druntime_target_os_parsed" = "linux"; then
14163 DRUNTIME_OS_LINUX_TRUE=
14164 DRUNTIME_OS_LINUX_FALSE='#'
14165else
14166 DRUNTIME_OS_LINUX_TRUE='#'
14167 DRUNTIME_OS_LINUX_FALSE=
14168fi
14169
14170 if test "$druntime_target_os_parsed" = "mingw"; then
14171 DRUNTIME_OS_MINGW_TRUE=
14172 DRUNTIME_OS_MINGW_FALSE='#'
14173else
14174 DRUNTIME_OS_MINGW_TRUE='#'
14175 DRUNTIME_OS_MINGW_FALSE=
14176fi
14177
14178 if test "$druntime_target_os_parsed" = "solaris"; then
14179 DRUNTIME_OS_SOLARIS_TRUE=
14180 DRUNTIME_OS_SOLARIS_FALSE='#'
14181else
14182 DRUNTIME_OS_SOLARIS_TRUE='#'
14183 DRUNTIME_OS_SOLARIS_FALSE=
14184fi
14185
14186
Iain Buclaw72c136c2020-04-08 22:52:05 +020014187 druntime_target_posix="no"
14188 case "$druntime_cv_target_os" in
14189 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14190 druntime_target_posix="yes"
14191 ;;
14192 esac
14193 if test "$druntime_target_posix" = "yes"; then
14194 DRUNTIME_OS_POSIX_TRUE=
14195 DRUNTIME_OS_POSIX_FALSE='#'
14196else
14197 DRUNTIME_OS_POSIX_TRUE='#'
14198 DRUNTIME_OS_POSIX_FALSE=
14199fi
14200
14201
Iain Buclawb4c522f2018-10-28 19:51:47 +000014202
14203
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14205$as_echo_n "checking for thread model used by GDC... " >&6; }
14206 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14208$as_echo "$d_thread_model" >&6; }
14209
14210 # Map from thread model to thread interface.
14211
14212case $d_thread_model in
14213 aix) DCFG_THREAD_MODEL="Posix" ;;
14214 lynx) DCFG_THREAD_MODEL="Posix" ;;
14215 posix) DCFG_THREAD_MODEL="Posix" ;;
14216 single) DCFG_THREAD_MODEL="Single" ;;
14217 win32) DCFG_THREAD_MODEL="Win32" ;;
14218 # TODO: These targets need porting.
14219 dce|mipssde|rtems|tpf|vxworks)
14220 DCFG_THREAD_MODEL="Single" ;;
14221 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14222esac
14223
14224
14225
14226
14227 ac_ext=c
14228ac_cpp='$CPP $CPPFLAGS'
14229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14231ac_compiler_gnu=$ac_cv_c_compiler_gnu
14232
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14234$as_echo_n "checking for ARM unwinder... " >&6; }
14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236/* end confdefs.h. */
14237#include <unwind.h>
14238int
14239main ()
14240{
14241
14242 #if __ARM_EABI_UNWINDER__
14243 #error Yes, it is.
14244 #endif
14245
14246 ;
14247 return 0;
14248}
14249_ACEOF
14250if ac_fn_c_try_compile "$LINENO"; then :
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14252$as_echo "no" >&6; }
14253 DCFG_ARM_EABI_UNWINDER=false
14254else
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14256$as_echo "yes" >&6; }
14257 DCFG_ARM_EABI_UNWINDER=true
14258fi
14259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14260
14261 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14262 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14263 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14264else
14265 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14266 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14267fi
14268
14269 ac_ext=c
14270ac_cpp='$CPP $CPPFLAGS'
14271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14273ac_compiler_gnu=$ac_cv_c_compiler_gnu
14274
14275
14276
14277 ac_ext=c
14278ac_cpp='$CPP $CPPFLAGS'
14279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14281ac_compiler_gnu=$ac_cv_c_compiler_gnu
14282
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14284$as_echo_n "checking for minfo section bracketing... " >&6; }
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286/* end confdefs.h. */
14287
14288 void* module_info_ptr __attribute__((section ("minfo")));
14289 extern void* __start_minfo __attribute__((visibility ("hidden")));
14290 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14291
14292 int main()
14293 {
14294 // Never run, just to prevent compiler from optimizing access
14295 return &__start_minfo == &__stop_minfo;
14296 }
14297
14298_ACEOF
14299if ac_fn_c_try_link "$LINENO"; then :
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14301$as_echo "yes" >&6; }
14302 DCFG_MINFO_BRACKETING=true
14303else
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14305$as_echo "no" >&6; }
14306 DCFG_MINFO_BRACKETING=false
14307fi
14308rm -f core conftest.err conftest.$ac_objext \
14309 conftest$ac_exeext conftest.$ac_ext
14310
Rainer Orth0b6e3122019-02-14 17:47:49 +000014311 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14312 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14313 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14314else
14315 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14316 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14317fi
14318
Iain Buclawb4c522f2018-10-28 19:51:47 +000014319 ac_ext=c
14320ac_cpp='$CPP $CPPFLAGS'
14321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14323ac_compiler_gnu=$ac_cv_c_compiler_gnu
14324
14325
14326
Rainer Orth235d1c42019-04-14 09:30:42 +000014327 ac_ext=c
14328ac_cpp='$CPP $CPPFLAGS'
14329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14331ac_compiler_gnu=$ac_cv_c_compiler_gnu
14332
14333 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>
14334"
14335if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14336 DCFG_DLPI_TLS_MODID=true
14337else
14338 DCFG_DLPI_TLS_MODID=false
14339fi
14340
14341
14342 ac_ext=c
14343ac_cpp='$CPP $CPPFLAGS'
14344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14346ac_compiler_gnu=$ac_cv_c_compiler_gnu
14347
14348
14349
Rainer Orthba838aa2019-04-14 09:24:26 +000014350 case $target in
14351 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14352 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14353 # relocs. Work around by disabling TLS transitions. Not necessary
14354 # on 32-bit x86, but cannot be distinguished reliably in specs.
14355 druntime_ld_prog=`$CC -print-prog-name=ld`
Rainer Orthbca0a322019-05-07 10:38:45 +000014356 druntime_ld_gld=no
14357 druntime_ld_relax_transtls=no
Rainer Orthba838aa2019-04-14 09:24:26 +000014358 if test -n "$druntime_ld_prog" \
14359 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
Rainer Orthbca0a322019-05-07 10:38:45 +000014360 druntime_ld_gld=yes
Rainer Orthba838aa2019-04-14 09:24:26 +000014361 else
Rainer Orthbca0a322019-05-07 10:38:45 +000014362 echo 'int main (void) { return 0; }' > conftest.c
14363 save_LDFLAGS="$LDFLAGS"
14364 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14365 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14366 druntime_ld_relax_transtls=yes
14367 fi
14368 LDFLAGS="$save_LDFLAGS"
14369 rm -f conftest.c conftest
14370 fi
14371 if test "$druntime_ld_relax_transtls" = "yes"; then
Rainer Orthba838aa2019-04-14 09:24:26 +000014372 OS_LINK_SPEC='-z relax=transtls'
14373 fi
14374 ;;
14375 esac
14376
14377
14378
Johannes Pfau36d7f152019-02-18 23:29:39 +000014379 ac_ext=c
14380ac_cpp='$CPP $CPPFLAGS'
14381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14383ac_compiler_gnu=$ac_cv_c_compiler_gnu
14384
14385 DCFG_HAVE_QSORT_R=false
14386 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14387if test "x$ac_cv_func_qsort_r" = xyes; then :
14388 DCFG_HAVE_QSORT_R=true
14389fi
14390
14391
14392 ac_ext=c
14393ac_cpp='$CPP $CPPFLAGS'
14394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14396ac_compiler_gnu=$ac_cv_c_compiler_gnu
14397
14398
14399
Iain Buclawb4c522f2018-10-28 19:51:47 +000014400
14401
14402 gdc_save_DFLAGS=$GDCFLAGS
14403 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14404
14405 ac_ext=d
14406ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14407ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14408ac_compiler_gnu=yes
14409
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14411$as_echo_n "checking for library containing malloc... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014412if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014413 $as_echo_n "(cached) " >&6
14414else
14415 ac_func_search_save_LIBS=$LIBS
14416cat > conftest.$ac_ext <<_ACEOF
14417module mod;
14418 extern(C) int malloc();
14419
14420extern(C) int main() {
14421 malloc(); return 0;
14422}
14423_ACEOF
14424for ac_lib in '' c; do
14425 if test -z "$ac_lib"; then
14426 ac_res="none required"
14427 else
14428 ac_res=-l$ac_lib
14429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14430 fi
14431 if ac_fn_d_try_link "$LINENO"; then :
14432 ac_cv_search_malloc=$ac_res
14433fi
14434rm -f core conftest.err conftest.$ac_objext \
14435 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014436 if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014437 break
14438fi
14439done
Joseph Myers22e05272018-10-31 17:03:16 +000014440if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014441
14442else
14443 ac_cv_search_malloc=no
14444fi
14445rm conftest.$ac_ext
14446LIBS=$ac_func_search_save_LIBS
14447fi
14448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14449$as_echo "$ac_cv_search_malloc" >&6; }
14450ac_res=$ac_cv_search_malloc
14451if test "$ac_res" != no; then :
14452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14453
14454fi
14455
Iain Buclaw6e286c82020-04-09 00:16:57 +020014456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014457$as_echo_n "checking for library containing pthread_create... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014458if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014459 $as_echo_n "(cached) " >&6
14460else
14461 ac_func_search_save_LIBS=$LIBS
14462cat > conftest.$ac_ext <<_ACEOF
14463module mod;
14464 extern(C) int pthread_create();
14465
14466extern(C) int main() {
14467 pthread_create(); return 0;
14468}
14469_ACEOF
14470for ac_lib in '' pthread; do
14471 if test -z "$ac_lib"; then
14472 ac_res="none required"
14473 else
14474 ac_res=-l$ac_lib
14475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14476 fi
14477 if ac_fn_d_try_link "$LINENO"; then :
14478 ac_cv_search_pthread_create=$ac_res
14479fi
14480rm -f core conftest.err conftest.$ac_objext \
14481 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014482 if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014483 break
14484fi
14485done
Joseph Myers22e05272018-10-31 17:03:16 +000014486if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014487
14488else
14489 ac_cv_search_pthread_create=no
14490fi
14491rm conftest.$ac_ext
14492LIBS=$ac_func_search_save_LIBS
14493fi
14494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14495$as_echo "$ac_cv_search_pthread_create" >&6; }
14496ac_res=$ac_cv_search_pthread_create
14497if test "$ac_res" != no; then :
14498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14499
14500fi
14501
Iain Buclawb4c522f2018-10-28 19:51:47 +000014502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14503$as_echo_n "checking for library containing cosf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014504if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014505 $as_echo_n "(cached) " >&6
14506else
14507 ac_func_search_save_LIBS=$LIBS
14508cat > conftest.$ac_ext <<_ACEOF
14509module mod;
14510 extern(C) int cosf();
14511
14512extern(C) int main() {
14513 cosf(); return 0;
14514}
14515_ACEOF
14516for ac_lib in '' m; do
14517 if test -z "$ac_lib"; then
14518 ac_res="none required"
14519 else
14520 ac_res=-l$ac_lib
14521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14522 fi
14523 if ac_fn_d_try_link "$LINENO"; then :
14524 ac_cv_search_cosf=$ac_res
14525fi
14526rm -f core conftest.err conftest.$ac_objext \
14527 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014528 if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014529 break
14530fi
14531done
Joseph Myers22e05272018-10-31 17:03:16 +000014532if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014533
14534else
14535 ac_cv_search_cosf=no
14536fi
14537rm conftest.$ac_ext
14538LIBS=$ac_func_search_save_LIBS
14539fi
14540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14541$as_echo "$ac_cv_search_cosf" >&6; }
14542ac_res=$ac_cv_search_cosf
14543if test "$ac_res" != no; then :
14544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14545
14546fi
14547
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14549$as_echo_n "checking for library containing clock_gettime... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014550if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014551 $as_echo_n "(cached) " >&6
14552else
14553 ac_func_search_save_LIBS=$LIBS
14554cat > conftest.$ac_ext <<_ACEOF
14555module mod;
14556 extern(C) int clock_gettime();
14557
14558extern(C) int main() {
14559 clock_gettime(); return 0;
14560}
14561_ACEOF
14562for ac_lib in '' rt; do
14563 if test -z "$ac_lib"; then
14564 ac_res="none required"
14565 else
14566 ac_res=-l$ac_lib
14567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14568 fi
14569 if ac_fn_d_try_link "$LINENO"; then :
14570 ac_cv_search_clock_gettime=$ac_res
14571fi
14572rm -f core conftest.err conftest.$ac_objext \
14573 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014574 if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014575 break
14576fi
14577done
Joseph Myers22e05272018-10-31 17:03:16 +000014578if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014579
14580else
14581 ac_cv_search_clock_gettime=no
14582fi
14583rm conftest.$ac_ext
14584LIBS=$ac_func_search_save_LIBS
14585fi
14586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14587$as_echo "$ac_cv_search_clock_gettime" >&6; }
14588ac_res=$ac_cv_search_clock_gettime
14589if test "$ac_res" != no; then :
14590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14591
14592fi
14593
14594
14595 # This checks to see if the host supports the compiler-generated builtins
14596 # for atomic operations for various integral sizes. Note, this is intended
14597 # to be an all-or-nothing switch, so all the atomic operations that are
14598 # used should be checked.
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14600$as_echo_n "checking for atomic builtins for byte... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014601 if ${druntime_cv_atomic_byte+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014602 $as_echo_n "(cached) " >&6
14603else
14604
14605 cat > conftest.$ac_ext <<_ACEOF
14606module mod;
14607import gcc.builtins;
14608
14609extern(C) int main() {
14610
14611 shared(byte) c1;
14612 byte c2, c3;
14613 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14614 __atomic_load_1(&c1, 5);
14615 __atomic_store_1(&c1, c2, 5);
14616 return 0;
14617
14618}
14619_ACEOF
14620if ac_fn_d_try_link "$LINENO"; then :
14621 druntime_cv_atomic_byte=yes
14622else
14623 druntime_cv_atomic_byte=no
14624fi
14625rm -f core conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext conftest.$ac_ext
14627
14628fi
14629
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14631$as_echo "$druntime_cv_atomic_byte" >&6; }
14632
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14634$as_echo_n "checking for atomic builtins for short... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014635 if ${druntime_cv_atomic_short+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014636 $as_echo_n "(cached) " >&6
14637else
14638
14639 cat > conftest.$ac_ext <<_ACEOF
14640module mod;
14641import gcc.builtins;
14642
14643extern(C) int main() {
14644
14645 shared(short) c1;
14646 short c2, c3;
14647 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14648 __atomic_load_2(&c1, 5);
14649 __atomic_store_2(&c1, c2, 5);
14650 return 0;
14651
14652}
14653_ACEOF
14654if ac_fn_d_try_link "$LINENO"; then :
14655 druntime_cv_atomic_short=yes
14656else
14657 druntime_cv_atomic_short=no
14658fi
14659rm -f core conftest.err conftest.$ac_objext \
14660 conftest$ac_exeext conftest.$ac_ext
14661
14662fi
14663
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14665$as_echo "$druntime_cv_atomic_short" >&6; }
14666
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14668$as_echo_n "checking for atomic builtins for int... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014669 if ${druntime_cv_atomic_int+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014670 $as_echo_n "(cached) " >&6
14671else
14672
14673 cat > conftest.$ac_ext <<_ACEOF
14674module mod;
14675import gcc.builtins;
14676
14677extern(C) int main() {
14678
14679 shared(int) c1;
14680 int c2, c3;
14681 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14682 __atomic_load_4(&c1, 5);
14683 __atomic_store_4(&c1, c2, 5);
14684 return 0;
14685
14686}
14687_ACEOF
14688if ac_fn_d_try_link "$LINENO"; then :
14689 druntime_cv_atomic_int=yes
14690else
14691 druntime_cv_atomic_int=no
14692fi
14693rm -f core conftest.err conftest.$ac_objext \
14694 conftest$ac_exeext conftest.$ac_ext
14695
14696fi
14697
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14699$as_echo "$druntime_cv_atomic_int" >&6; }
14700
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14702$as_echo_n "checking for atomic builtins for long... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014703 if ${druntime_cv_atomic_long+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014704 $as_echo_n "(cached) " >&6
14705else
14706
14707 cat > conftest.$ac_ext <<_ACEOF
14708module mod;
14709import gcc.builtins;
14710
14711extern(C) int main() {
14712
14713 shared(long) c1;
14714 long c2, c3;
14715 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14716 __atomic_load_8(&c1, 5);
14717 __atomic_store_8(&c1, c2, 5);
14718 return 0;
14719
14720}
14721_ACEOF
14722if ac_fn_d_try_link "$LINENO"; then :
14723 druntime_cv_atomic_long=yes
14724else
14725 druntime_cv_atomic_long=no
14726fi
14727rm -f core conftest.err conftest.$ac_objext \
14728 conftest$ac_exeext conftest.$ac_ext
14729
14730fi
14731
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14733$as_echo "$druntime_cv_atomic_long" >&6; }
14734
14735 # Have atomic builtin support if all but the long test above passes.
14736 DCFG_HAVE_ATOMIC_BUILTINS=false
14737 if test "$druntime_cv_atomic_byte" = yes \
14738 && test "$druntime_cv_atomic_short" = yes \
14739 && test "$druntime_cv_atomic_int" = yes; then \
14740 DCFG_HAVE_ATOMIC_BUILTINS=true
14741 fi
14742
14743 # Have 64-bit atomic support if the long test above passes.
14744 DCFG_HAVE_64BIT_ATOMICS=false
14745 if test "$druntime_cv_atomic_long" = yes; then
14746 DCFG_HAVE_64BIT_ATOMICS=true
14747 fi
14748
14749
14750
14751
14752 ac_ext=c
14753ac_cpp='$CPP $CPPFLAGS'
14754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14756ac_compiler_gnu=$ac_cv_c_compiler_gnu
14757
14758
14759 GDCFLAGS=$gdc_save_DFLAGS
14760
14761
14762
14763
14764# Check whether --with-libatomic was given.
14765if test "${with_libatomic+set}" = set; then :
14766 withval=$with_libatomic;
14767fi
14768
14769
14770 DCFG_HAVE_LIBATOMIC=false
14771 LIBATOMIC=
14772 if test "x$with_libatomic" != "xno"; then :
14773
14774 DCFG_HAVE_LIBATOMIC=true
14775 LIBATOMIC=../../libatomic/libatomic_convenience.la
14776
14777else
14778
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14780$as_echo_n "checking for libatomic... " >&6; }
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14782$as_echo "disabled" >&6; }
14783
14784fi
14785
14786
14787
14788
14789
14790 ac_ext=c
14791ac_cpp='$CPP $CPPFLAGS'
14792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14794ac_compiler_gnu=$ac_cv_c_compiler_gnu
14795
14796 BACKTRACE_SUPPORTED=false
14797 BACKTRACE_USES_MALLOC=false
14798 BACKTRACE_SUPPORTS_THREADS=false
14799 LIBBACKTRACE=""
14800
14801
14802# Check whether --with-libbacktrace was given.
14803if test "${with_libbacktrace+set}" = set; then :
14804 withval=$with_libbacktrace;
14805fi
14806
14807
14808 if test "x$with_libbacktrace" != "xno"; then :
14809
14810 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14811
14812 gdc_save_CPPFLAGS=$CPPFLAGS
Iain Buclaw5d71d6f2019-04-16 05:58:25 +000014813 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
Iain Buclawb4c522f2018-10-28 19:51:47 +000014814
14815 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 +000014816if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014817 have_libbacktrace_h=true
14818else
14819 have_libbacktrace_h=false
14820fi
14821
14822
14823
14824 if $have_libbacktrace_h; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14826$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828/* end confdefs.h. */
14829
14830 #include <backtrace-supported.h>
14831 #if BACKTRACE_SUPPORTED
14832 FOUND_LIBBACKTRACE_RESULT_GDC
14833 #endif
14834
14835_ACEOF
14836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14837 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14838 BACKTRACE_SUPPORTED=true
14839else
14840 BACKTRACE_SUPPORTED=false
14841fi
14842rm -f conftest*
14843
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14845$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14846
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14848$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850/* end confdefs.h. */
14851
14852 #include <backtrace-supported.h>
14853 #if BACKTRACE_USES_MALLOC
14854 FOUND_LIBBACKTRACE_RESULT_GDC
14855 #endif
14856
14857_ACEOF
14858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14859 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14860 BACKTRACE_USES_MALLOC=true
14861else
14862 BACKTRACE_USES_MALLOC=false
14863fi
14864rm -f conftest*
14865
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14867$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14868
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14870$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872/* end confdefs.h. */
14873
14874 #include <backtrace-supported.h>
14875 #if BACKTRACE_SUPPORTS_THREADS
14876 FOUND_LIBBACKTRACE_RESULT_GDC
14877 #endif
14878
14879_ACEOF
14880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14881 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14882 BACKTRACE_SUPPORTS_THREADS=true
14883else
14884 BACKTRACE_SUPPORTS_THREADS=false
14885fi
14886rm -f conftest*
14887
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14889$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14890 fi
14891 CPPFLAGS=$gdc_save_CPPFLAGS
14892
14893else
14894
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14896$as_echo_n "checking for libbacktrace... " >&6; }
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14898$as_echo "disabled" >&6; }
14899
14900fi
14901
14902
14903
14904
14905
14906 ac_ext=c
14907ac_cpp='$CPP $CPPFLAGS'
14908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14910ac_compiler_gnu=$ac_cv_c_compiler_gnu
14911
14912
14913
14914 # Libtool has already checked this, so re-use the inferred dlopen lib.
14915 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14916
14917 LIBS="$LIBS $lt_cv_dlopen_libs"
14918
14919fi
14920
14921
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020014922 druntime_check_both=no
14923 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
Rainer Orth1d679132019-02-19 09:24:50 +000014924if test "x$ac_cv_func_connect" = xyes; then :
Rainer Orth1d679132019-02-19 09:24:50 +000014925
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020014926else
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
14928$as_echo_n "checking for connect in -lsocket... " >&6; }
14929if ${ac_cv_lib_socket_connect+:} false; then :
Rainer Orth1d679132019-02-19 09:24:50 +000014930 $as_echo_n "(cached) " >&6
14931else
14932 ac_check_lib_save_LIBS=$LIBS
14933LIBS="-lsocket $LIBS"
14934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935/* end confdefs.h. */
14936
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020014937/* Override any GCC internal prototype to avoid an error.
14938 Use char because int might match the return type of a GCC
14939 builtin and then its argument prototype would still apply. */
14940#ifdef __cplusplus
14941extern "C"
14942#endif
14943char connect ();
Rainer Orth1d679132019-02-19 09:24:50 +000014944int
14945main ()
14946{
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020014947return connect ();
Rainer Orth1d679132019-02-19 09:24:50 +000014948 ;
14949 return 0;
14950}
14951_ACEOF
14952if ac_fn_c_try_link "$LINENO"; then :
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020014953 ac_cv_lib_socket_connect=yes
Rainer Orth1d679132019-02-19 09:24:50 +000014954else
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020014955 ac_cv_lib_socket_connect=no
Rainer Orth1d679132019-02-19 09:24:50 +000014956fi
14957rm -f core conftest.err conftest.$ac_objext \
14958 conftest$ac_exeext conftest.$ac_ext
14959LIBS=$ac_check_lib_save_LIBS
14960fi
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020014961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
14962$as_echo "$ac_cv_lib_socket_connect" >&6; }
14963if test "x$ac_cv_lib_socket_connect" = xyes; then :
14964 LIBS="$LIBS -lsocket"
Rainer Orth1d679132019-02-19 09:24:50 +000014965else
14966 druntime_check_both=yes
14967fi
14968
Rainer Orth1d679132019-02-19 09:24:50 +000014969fi
14970
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020014971 if test "$druntime_check_both" = "yes"; then
14972 druntime_old_libs=$LIBS
14973 LIBS="$LIBS -lsocket -lnsl"
14974 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14975if test "x$ac_cv_func_accept" = xyes; then :
14976
14977else
14978 LIBS=$druntime_old_libs
14979fi
14980
14981 fi
14982 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
Rainer Orth1d679132019-02-19 09:24:50 +000014983if test "x$ac_cv_func_gethostbyname" = xyes; then :
14984
14985else
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020014986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
14987$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
14988if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
Rainer Orth1d679132019-02-19 09:24:50 +000014989 $as_echo_n "(cached) " >&6
14990else
14991 ac_check_lib_save_LIBS=$LIBS
14992LIBS="-lnsl $LIBS"
14993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994/* end confdefs.h. */
14995
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020014996/* Override any GCC internal prototype to avoid an error.
14997 Use char because int might match the return type of a GCC
14998 builtin and then its argument prototype would still apply. */
14999#ifdef __cplusplus
15000extern "C"
15001#endif
15002char gethostbyname ();
Rainer Orth1d679132019-02-19 09:24:50 +000015003int
15004main ()
15005{
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015006return gethostbyname ();
Rainer Orth1d679132019-02-19 09:24:50 +000015007 ;
15008 return 0;
15009}
15010_ACEOF
15011if ac_fn_c_try_link "$LINENO"; then :
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015012 ac_cv_lib_nsl_gethostbyname=yes
Rainer Orth1d679132019-02-19 09:24:50 +000015013else
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015014 ac_cv_lib_nsl_gethostbyname=no
Rainer Orth1d679132019-02-19 09:24:50 +000015015fi
15016rm -f core conftest.err conftest.$ac_objext \
15017 conftest$ac_exeext conftest.$ac_ext
15018LIBS=$ac_check_lib_save_LIBS
15019fi
Iain Buclaw5e7f8c52020-04-27 02:09:43 +020015020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15021$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15022if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15023 LIBS="$LIBS -lnsl"
Rainer Orth1d679132019-02-19 09:24:50 +000015024fi
15025
15026fi
15027
15028
Rainer Orth1d679132019-02-19 09:24:50 +000015029
Iain Buclawac1a0a32020-04-20 18:20:12 +020015030 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15031 # "yes" for targets that have 'version = AsmExternal'.
15032 druntime_fiber_asm_external=no
15033 case "$target_cpu" in
15034 aarch64* | \
15035 arm* | \
15036 i[34567]86|x86_64 | \
15037 powerpc)
15038 druntime_fiber_asm_external=yes
15039 ;;
15040 esac
15041 if test "$druntime_fiber_asm_external" = no; then
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15043$as_echo_n "checking for library containing swapcontext... " >&6; }
15044if ${ac_cv_search_swapcontext+:} false; then :
15045 $as_echo_n "(cached) " >&6
15046else
15047 ac_func_search_save_LIBS=$LIBS
15048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049/* end confdefs.h. */
15050
15051/* Override any GCC internal prototype to avoid an error.
15052 Use char because int might match the return type of a GCC
15053 builtin and then its argument prototype would still apply. */
15054#ifdef __cplusplus
15055extern "C"
15056#endif
15057char swapcontext ();
15058int
15059main ()
15060{
15061return swapcontext ();
15062 ;
15063 return 0;
15064}
15065_ACEOF
15066for ac_lib in '' c ucontext; do
15067 if test -z "$ac_lib"; then
15068 ac_res="none required"
15069 else
15070 ac_res=-l$ac_lib
15071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15072 fi
15073 if ac_fn_c_try_link "$LINENO"; then :
15074 ac_cv_search_swapcontext=$ac_res
15075fi
15076rm -f core conftest.err conftest.$ac_objext \
15077 conftest$ac_exeext
15078 if ${ac_cv_search_swapcontext+:} false; then :
15079 break
15080fi
15081done
15082if ${ac_cv_search_swapcontext+:} false; then :
15083
15084else
15085 ac_cv_search_swapcontext=no
15086fi
15087rm conftest.$ac_ext
15088LIBS=$ac_func_search_save_LIBS
15089fi
15090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15091$as_echo "$ac_cv_search_swapcontext" >&6; }
15092ac_res=$ac_cv_search_swapcontext
15093if test "$ac_res" != no; then :
15094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15095
15096else
15097 as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15098fi
15099
15100 fi
15101
15102
Iain Buclawbb503122019-04-12 20:13:34 +000015103 ac_ext=c
15104ac_cpp='$CPP $CPPFLAGS'
15105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15107ac_compiler_gnu=$ac_cv_c_compiler_gnu
15108
15109 LIBZ=""
15110
Iain Buclawb4c522f2018-10-28 19:51:47 +000015111
15112# Check whether --with-target-system-zlib was given.
15113if test "${with_target_system_zlib+set}" = set; then :
15114 withval=$with_target_system_zlib;
Iain Buclawbb503122019-04-12 20:13:34 +000015115else
15116 with_target_system_zlib=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015117fi
15118
15119
Iain Buclawbb503122019-04-12 20:13:34 +000015120 case "$with_target_system_zlib" in
15121 yes|no|auto) ;;
15122 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15123 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015124
Iain Buclawbb503122019-04-12 20:13:34 +000015125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15126$as_echo_n "checking for system zlib... " >&6; }
15127 save_LIBS=$LIBS
15128 LIBS="$LIBS -lz"
15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +000015130/* end confdefs.h. */
Iain Buclawbb503122019-04-12 20:13:34 +000015131#include <zlib.h>
Iain Buclawb4c522f2018-10-28 19:51:47 +000015132int
15133main ()
15134{
Iain Buclawbb503122019-04-12 20:13:34 +000015135gzopen("none", "rb")
Iain Buclawb4c522f2018-10-28 19:51:47 +000015136 ;
15137 return 0;
15138}
15139_ACEOF
15140if ac_fn_c_try_link "$LINENO"; then :
Iain Buclawbb503122019-04-12 20:13:34 +000015141
15142 if test "$cross_compiling" = yes; then :
15143 system_zlib_found=no
15144
Iain Buclawb4c522f2018-10-28 19:51:47 +000015145else
Iain Buclawbb503122019-04-12 20:13:34 +000015146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147/* end confdefs.h. */
15148
15149 #include <zlib.h>
15150 int main() {
15151 gzFile file = gzopen("none", "rb");
15152 return 0;
15153 }
15154
15155_ACEOF
15156if ac_fn_c_try_run "$LINENO"; then :
15157 system_zlib_found=yes
15158else
15159 system_zlib_found=no
15160fi
15161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15162 conftest.$ac_objext conftest.beam conftest.$ac_ext
15163fi
15164
15165
15166else
15167 system_zlib_found=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015168fi
15169rm -f core conftest.err conftest.$ac_objext \
15170 conftest$ac_exeext conftest.$ac_ext
Iain Buclawbb503122019-04-12 20:13:34 +000015171 LIBS=$save_LIBS
Iain Buclawb4c522f2018-10-28 19:51:47 +000015172
Iain Buclawbb503122019-04-12 20:13:34 +000015173 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15175$as_echo "found" >&6; }
15176 LIBS="$LIBS -lz"
15177 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15178 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15179 else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15181$as_echo "just compiled" >&6; }
Iain Buclawbb503122019-04-12 20:13:34 +000015182 LIBZ=../../zlib/libz_convenience.la
15183 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015184
Iain Buclawb4c522f2018-10-28 19:51:47 +000015185
Iain Buclawbb503122019-04-12 20:13:34 +000015186 ac_ext=c
15187ac_cpp='$CPP $CPPFLAGS'
15188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15190ac_compiler_gnu=$ac_cv_c_compiler_gnu
Iain Buclawb4c522f2018-10-28 19:51:47 +000015191
15192
15193
15194
15195
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15197$as_echo_n "checking D GCC version... " >&6; }
15198 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15200$as_echo "$gcc_version" >&6; }
15201
15202
15203
15204# Check whether --with-cross-host was given.
15205if test "${with_cross_host+set}" = set; then :
15206 withval=$with_cross_host;
15207fi
15208
15209
Iain Buclawac677522018-11-02 08:29:50 +000015210 libphobos_toolexecdir=no
15211 libphobos_toolexeclibdir=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015212
Iain Buclawac677522018-11-02 08:29:50 +000015213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15214$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15215 # Check whether --enable-version-specific-runtime-libs was given.
15216if test "${enable_version_specific_runtime_libs+set}" = set; then :
15217 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15218 yes) version_specific_libs=yes ;;
15219 no) version_specific_libs=no ;;
15220 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15221 esac
15222else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015223 version_specific_libs=no
Iain Buclawac677522018-11-02 08:29:50 +000015224fi
15225
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15227$as_echo "$version_specific_libs" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015228
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +000015229
15230# Check whether --with-toolexeclibdir was given.
15231if test "${with_toolexeclibdir+set}" = set; then :
15232 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15233 /)
15234 ;;
15235 */)
15236 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15237 ;;
15238esac
15239else
15240 with_toolexeclibdir=no
15241fi
15242
15243
15244
Iain Buclawb4c522f2018-10-28 19:51:47 +000015245 # Version-specific runtime libs processing.
15246 if test $version_specific_libs = yes; then
Iain Buclawac677522018-11-02 08:29:50 +000015247 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15248 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015249 else
Iain Buclawac677522018-11-02 08:29:50 +000015250 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15251 # Install a library built with a cross compiler in tooldir, not libdir.
15252 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15253 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +000015254 case ${with_toolexeclibdir} in
15255 no)
15256 libphobos_toolexeclibdir='${toolexecdir}/lib'
15257 ;;
15258 *)
15259 libphobos_toolexeclibdir=${with_toolexeclibdir}
15260 ;;
15261 esac
Iain Buclawac677522018-11-02 08:29:50 +000015262 else
15263 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15264 libphobos_toolexeclibdir='${libdir}'
15265 fi
15266 multi_os_directory=`$GDC -print-multi-os-directory`
15267 case $multi_os_directory in
15268 .) ;; # Avoid trailing /.
15269 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15270 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015271 fi
15272
15273
15274
15275 # Default case for install directory for D sources files.
15276 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15277
15278
15279
Rainer Orthbca0a322019-05-07 10:38:45 +000015280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15281$as_echo_n "checking for --enable-libphobos... " >&6; }
15282# Check whether --enable-libphobos was given.
15283if test "${enable_libphobos+set}" = set; then :
15284 enableval=$enable_libphobos;
15285fi
15286
15287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15288$as_echo "$enable_libphobos" >&6; }
15289
Iain Buclaw261bd782020-03-25 09:38:58 +010015290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15291$as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15292
Iain Buclaw371d1012020-04-20 18:50:36 +020015293# Check whether --with-libphobos-druntime-only was given.
15294if test "${with_libphobos_druntime_only+set}" = set; then :
15295 withval=$with_libphobos_druntime_only;
Iain Buclaw261bd782020-03-25 09:38:58 +010015296else
Iain Buclaw371d1012020-04-20 18:50:36 +020015297 with_libphobos_druntime_only=auto
Iain Buclaw261bd782020-03-25 09:38:58 +010015298fi
15299
Iain Buclaw371d1012020-04-20 18:50:36 +020015300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15301$as_echo "$with_libphobos_druntime_only" >&6; }
Iain Buclaw261bd782020-03-25 09:38:58 +010015302
Iain Buclaw371d1012020-04-20 18:50:36 +020015303case "$with_libphobos_druntime_only" in
Iain Buclaw261bd782020-03-25 09:38:58 +010015304 yes|no|auto) ;;
15305 *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15306esac
15307
Rainer Orthbca0a322019-05-07 10:38:45 +000015308# See if supported.
15309unset LIBPHOBOS_SUPPORTED
Iain Buclaw261bd782020-03-25 09:38:58 +010015310unset LIBDRUNTIME_ONLY
Rainer Orthbca0a322019-05-07 10:38:45 +000015311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15312$as_echo_n "checking for host support for libphobos... " >&6; }
15313. ${srcdir}/configure.tgt
15314case ${host} in
15315 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15316 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15317 # relatively low linelength limit.
15318 as_prog=`$CC -print-prog-name=as`
15319 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15320 druntime_cv_use_gas=yes;
15321 else
15322 druntime_cv_use_gas=no;
15323 fi
15324 rm -f a.out
15325 if test x$druntime_cv_use_gas = xno; then
15326 LIBPHOBOS_SUPPORTED=no
15327 fi
15328 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15329 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15330 LIBPHOBOS_SUPPORTED=no
15331 fi
15332 ;;
15333esac
15334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15335$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15336
15337# Decide if it's usable.
15338case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15339*:no) use_libphobos=no ;;
15340*:yes) use_libphobos=yes ;;
15341yes:*) use_libphobos=yes ;;
15342*:*) use_libphobos=no ;;
15343esac
15344 if test x$use_libphobos = xyes; then
15345 ENABLE_LIBPHOBOS_TRUE=
15346 ENABLE_LIBPHOBOS_FALSE='#'
15347else
15348 ENABLE_LIBPHOBOS_TRUE='#'
15349 ENABLE_LIBPHOBOS_FALSE=
15350fi
15351
15352
Iain Buclaw261bd782020-03-25 09:38:58 +010015353# Decide if only libdruntime should be built.
Iain Buclaw371d1012020-04-20 18:50:36 +020015354case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
Iain Buclaw261bd782020-03-25 09:38:58 +010015355*:no) only_libdruntime=no ;;
15356*:yes) only_libdruntime=yes ;;
15357yes:*) only_libdruntime=yes ;;
15358*:*) only_libdruntime=no ;;
15359esac
15360 if test x$only_libdruntime = xyes; then
15361 ENABLE_LIBDRUNTIME_ONLY_TRUE=
15362 ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15363else
15364 ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15365 ENABLE_LIBDRUNTIME_ONLY_FALSE=
15366fi
15367
15368
Iain Buclawc0dbfbd2020-04-09 00:41:14 +020015369# Enable expensive internal checks
15370# Check whether --enable-libphobos-checking was given.
15371if test "${enable_libphobos_checking+set}" = set; then :
15372 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15373else
15374 ac_checking_flags=release
15375fi
15376
15377IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15378for check in release $ac_checking_flags
15379do
15380 case $check in
15381 # These set all the flags to specific states
15382 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15383 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15384 # These enable particular checks
15385 assert) ASSERT_FLAG="-fassert" ;;
15386 # Accept
15387 *) ;;
15388 esac
15389done
15390IFS="$ac_save_IFS"
15391CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15392
15393
Rainer Orth0b6e3122019-02-14 17:47:49 +000015394# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15395if test "$DCFG_MINFO_BRACKETING" = "false"; then
15396 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15397else
15398 DRTSTUFF_SPEC=/dev/null
15399fi
15400
15401
Iain Buclawb4c522f2018-10-28 19:51:47 +000015402# Add dependencies for libgphobos.spec file
15403SPEC_PHOBOS_DEPS="$LIBS"
15404
15405
15406# Libdruntime / phobos soname version
Iain Buclawbc093502020-03-16 17:00:07 +010015407libtool_VERSION=1:0:0
Iain Buclawb4c522f2018-10-28 19:51:47 +000015408
15409
15410# Set default flags (after DRUNTIME_WERROR!)
15411if test -z "$GDCFLAGS"; then
Iain Buclawc0dbfbd2020-04-09 00:41:14 +020015412 GDCFLAGS="-g -O2"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015413fi
15414
15415
Iain Buclaw38c30172020-03-29 23:54:01 +020015416WARN_DFLAGS="-Wall $WERROR_FLAG"
15417
15418
Iain Buclawb4c522f2018-10-28 19:51:47 +000015419# Sanity check for the cross-compilation case:
15420ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
Joseph Myers22e05272018-10-31 17:03:16 +000015421if test "x$ac_cv_header_stdio_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000015422 :
15423else
Joseph Myers22e05272018-10-31 17:03:16 +000015424 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000015425fi
15426
15427
15428
Iain Buclawac677522018-11-02 08:29:50 +000015429ac_config_files="$ac_config_files Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015430
15431
15432ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15433
15434ac_config_files="$ac_config_files src/libgphobos.spec"
15435
15436ac_config_files="$ac_config_files testsuite/testsuite_flags"
15437
15438
Iain Buclawac677522018-11-02 08:29:50 +000015439# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15440# that multilib installs will end up installed in the correct place.
15441# The testsuite needs it for multilib-aware ABI baseline files.
15442# To work around this not being passed down from config-ml.in ->
15443# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15444# append it here. Only modify Makefiles that have just been created.
15445#
15446# Also, get rid of this simulated-VPATH thing that automake does.
15447ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015448
15449
15450cat >confcache <<\_ACEOF
15451# This file is a shell script that caches the results of configure
15452# tests run on this system so they can be shared between configure
15453# scripts and configure runs, see configure's option --config-cache.
15454# It is not useful on other systems. If it contains results you don't
15455# want to keep, you may remove or edit it.
15456#
15457# config.status only pays attention to the cache file if you give it
15458# the --recheck option to rerun configure.
15459#
15460# `ac_cv_env_foo' variables (set or unset) will be overridden when
15461# loading this file, other *unset* `ac_cv_foo' will be assigned the
15462# following values.
15463
15464_ACEOF
15465
15466# The following way of writing the cache mishandles newlines in values,
15467# but we know of no workaround that is simple, portable, and efficient.
15468# So, we kill variables containing newlines.
15469# Ultrix sh set writes to stderr and can't be redirected directly,
15470# and sets the high bit in the cache file unless we assign to the vars.
15471(
15472 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15473 eval ac_val=\$$ac_var
15474 case $ac_val in #(
15475 *${as_nl}*)
15476 case $ac_var in #(
15477 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15478$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15479 esac
15480 case $ac_var in #(
15481 _ | IFS | as_nl) ;; #(
15482 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15483 *) { eval $ac_var=; unset $ac_var;} ;;
15484 esac ;;
15485 esac
15486 done
15487
15488 (set) 2>&1 |
15489 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15490 *${as_nl}ac_space=\ *)
15491 # `set' does not quote correctly, so add quotes: double-quote
15492 # substitution turns \\\\ into \\, and sed turns \\ into \.
15493 sed -n \
15494 "s/'/'\\\\''/g;
15495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15496 ;; #(
15497 *)
15498 # `set' quotes correctly as required by POSIX, so do not add quotes.
15499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15500 ;;
15501 esac |
15502 sort
15503) |
15504 sed '
15505 /^ac_cv_env_/b end
15506 t clear
15507 :clear
15508 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15509 t end
15510 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15511 :end' >>confcache
15512if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15513 if test -w "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015514 if test "x$cache_file" != "x/dev/null"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000015515 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15516$as_echo "$as_me: updating cache $cache_file" >&6;}
Joseph Myers22e05272018-10-31 17:03:16 +000015517 if test ! -f "$cache_file" || test -h "$cache_file"; then
15518 cat confcache >"$cache_file"
15519 else
15520 case $cache_file in #(
15521 */* | ?:*)
15522 mv -f confcache "$cache_file"$$ &&
15523 mv -f "$cache_file"$$ "$cache_file" ;; #(
15524 *)
15525 mv -f confcache "$cache_file" ;;
15526 esac
15527 fi
15528 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015529 else
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15531$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15532 fi
15533fi
15534rm -f confcache
15535
15536test "x$prefix" = xNONE && prefix=$ac_default_prefix
15537# Let make expand exec_prefix.
15538test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15539
15540DEFS=-DHAVE_CONFIG_H
15541
15542ac_libobjs=
15543ac_ltlibobjs=
Joseph Myers22e05272018-10-31 17:03:16 +000015544U=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015545for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15546 # 1. Remove the extension, and $U if already installed.
15547 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15548 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15549 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15550 # will be set to the directory where LIBOBJS objects are built.
15551 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15552 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15553done
15554LIBOBJS=$ac_libobjs
15555
15556LTLIBOBJS=$ac_ltlibobjs
15557
15558
Joseph Myers22e05272018-10-31 17:03:16 +000015559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15560$as_echo_n "checking that generated files are newer than configure... " >&6; }
15561 if test -n "$am_sleep_pid"; then
15562 # Hide warnings about reused PIDs.
15563 wait $am_sleep_pid 2>/dev/null
15564 fi
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15566$as_echo "done" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015567 if test -n "$EXEEXT"; then
15568 am__EXEEXT_TRUE=
15569 am__EXEEXT_FALSE='#'
15570else
15571 am__EXEEXT_TRUE='#'
15572 am__EXEEXT_FALSE=
15573fi
15574
15575if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015576 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015577Usually this means the macro was only invoked conditionally." "$LINENO" 5
15578fi
Iain Buclaw2493e712019-04-24 22:46:59 +000015579if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15580 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15581Usually this means the macro was only invoked conditionally." "$LINENO" 5
15582fi
15583if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15584 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15585Usually this means the macro was only invoked conditionally." "$LINENO" 5
15586fi
15587if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15588 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15589Usually this means the macro was only invoked conditionally." "$LINENO" 5
15590fi
15591if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15592 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15593Usually this means the macro was only invoked conditionally." "$LINENO" 5
15594fi
Iain Buclaw2493e712019-04-24 22:46:59 +000015595if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15596 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15597Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598fi
Robin Dapp88e508f2020-04-07 21:05:38 +020015599if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15600 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15601Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602fi
15603if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15604 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15605Usually this means the macro was only invoked conditionally." "$LINENO" 5
15606fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015607if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015608 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015609Usually this means the macro was only invoked conditionally." "$LINENO" 5
15610fi
15611if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015612 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015613Usually this means the macro was only invoked conditionally." "$LINENO" 5
15614fi
15615if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015616 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015617Usually this means the macro was only invoked conditionally." "$LINENO" 5
15618fi
15619if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015620 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015621Usually this means the macro was only invoked conditionally." "$LINENO" 5
15622fi
15623if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015624 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015625Usually this means the macro was only invoked conditionally." "$LINENO" 5
15626fi
15627if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015628 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015629Usually this means the macro was only invoked conditionally." "$LINENO" 5
15630fi
15631if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015632 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015633Usually this means the macro was only invoked conditionally." "$LINENO" 5
15634fi
15635if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015636 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015637Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638fi
15639if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015640 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015641Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642fi
15643if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015644 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015645Usually this means the macro was only invoked conditionally." "$LINENO" 5
15646fi
Iain Buclaw72c136c2020-04-08 22:52:05 +020015647if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15648 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15649Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015651if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015652 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015653Usually this means the macro was only invoked conditionally." "$LINENO" 5
15654fi
Rainer Orth0b6e3122019-02-14 17:47:49 +000015655if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15656 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15657Usually this means the macro was only invoked conditionally." "$LINENO" 5
15658fi
Rainer Orthbca0a322019-05-07 10:38:45 +000015659if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15660 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15661Usually this means the macro was only invoked conditionally." "$LINENO" 5
15662fi
Iain Buclaw261bd782020-03-25 09:38:58 +010015663if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15664 as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15665Usually this means the macro was only invoked conditionally." "$LINENO" 5
15666fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015667
Joseph Myers22e05272018-10-31 17:03:16 +000015668: "${CONFIG_STATUS=./config.status}"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015669ac_write_fail=0
15670ac_clean_files_save=$ac_clean_files
15671ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15672{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15673$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15674as_write_fail=0
15675cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15676#! $SHELL
15677# Generated by $as_me.
15678# Run this file to recreate the current configuration.
15679# Compiler output produced by configure, useful for debugging
15680# configure, is in config.log if it exists.
15681
15682debug=false
15683ac_cs_recheck=false
15684ac_cs_silent=false
15685
15686SHELL=\${CONFIG_SHELL-$SHELL}
15687export SHELL
15688_ASEOF
15689cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15690## -------------------- ##
15691## M4sh Initialization. ##
15692## -------------------- ##
15693
15694# Be more Bourne compatible
15695DUALCASE=1; export DUALCASE # for MKS sh
15696if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15697 emulate sh
15698 NULLCMD=:
15699 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15700 # is contrary to our usage. Disable this feature.
15701 alias -g '${1+"$@"}'='"$@"'
15702 setopt NO_GLOB_SUBST
15703else
15704 case `(set -o) 2>/dev/null` in #(
15705 *posix*) :
15706 set -o posix ;; #(
15707 *) :
15708 ;;
15709esac
15710fi
15711
15712
15713as_nl='
15714'
15715export as_nl
15716# Printing a long string crashes Solaris 7 /usr/bin/printf.
15717as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15718as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15719as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15720# Prefer a ksh shell builtin over an external printf program on Solaris,
15721# but without wasting forks for bash or zsh.
15722if test -z "$BASH_VERSION$ZSH_VERSION" \
15723 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15724 as_echo='print -r --'
15725 as_echo_n='print -rn --'
15726elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15727 as_echo='printf %s\n'
15728 as_echo_n='printf %s'
15729else
15730 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15731 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15732 as_echo_n='/usr/ucb/echo -n'
15733 else
15734 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15735 as_echo_n_body='eval
15736 arg=$1;
15737 case $arg in #(
15738 *"$as_nl"*)
15739 expr "X$arg" : "X\\(.*\\)$as_nl";
15740 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15741 esac;
15742 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15743 '
15744 export as_echo_n_body
15745 as_echo_n='sh -c $as_echo_n_body as_echo'
15746 fi
15747 export as_echo_body
15748 as_echo='sh -c $as_echo_body as_echo'
15749fi
15750
15751# The user is always right.
15752if test "${PATH_SEPARATOR+set}" != set; then
15753 PATH_SEPARATOR=:
15754 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15755 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15756 PATH_SEPARATOR=';'
15757 }
15758fi
15759
15760
15761# IFS
15762# We need space, tab and new line, in precisely that order. Quoting is
15763# there to prevent editors from complaining about space-tab.
15764# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15765# splitting by setting IFS to empty value.)
15766IFS=" "" $as_nl"
15767
15768# Find who we are. Look in the path if we contain no directory separator.
Joseph Myers22e05272018-10-31 17:03:16 +000015769as_myself=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015770case $0 in #((
15771 *[\\/]* ) as_myself=$0 ;;
15772 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15773for as_dir in $PATH
15774do
15775 IFS=$as_save_IFS
15776 test -z "$as_dir" && as_dir=.
15777 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15778 done
15779IFS=$as_save_IFS
15780
15781 ;;
15782esac
15783# We did not find ourselves, most probably we were run as `sh COMMAND'
15784# in which case we are not to be found in the path.
15785if test "x$as_myself" = x; then
15786 as_myself=$0
15787fi
15788if test ! -f "$as_myself"; then
15789 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15790 exit 1
15791fi
15792
15793# Unset variables that we do not need and which cause bugs (e.g. in
15794# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15795# suppresses any "Segmentation fault" message there. '((' could
15796# trigger a bug in pdksh 5.2.14.
15797for as_var in BASH_ENV ENV MAIL MAILPATH
15798do eval test x\${$as_var+set} = xset \
15799 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15800done
15801PS1='$ '
15802PS2='> '
15803PS4='+ '
15804
15805# NLS nuisances.
15806LC_ALL=C
15807export LC_ALL
15808LANGUAGE=C
15809export LANGUAGE
15810
15811# CDPATH.
15812(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15813
15814
Joseph Myers22e05272018-10-31 17:03:16 +000015815# as_fn_error STATUS ERROR [LINENO LOG_FD]
15816# ----------------------------------------
Iain Buclawb4c522f2018-10-28 19:51:47 +000015817# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15818# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Joseph Myers22e05272018-10-31 17:03:16 +000015819# script with STATUS, using 1 if that was 0.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015820as_fn_error ()
15821{
Joseph Myers22e05272018-10-31 17:03:16 +000015822 as_status=$1; test $as_status -eq 0 && as_status=1
15823 if test "$4"; then
15824 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15825 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Iain Buclawb4c522f2018-10-28 19:51:47 +000015826 fi
Joseph Myers22e05272018-10-31 17:03:16 +000015827 $as_echo "$as_me: error: $2" >&2
Iain Buclawb4c522f2018-10-28 19:51:47 +000015828 as_fn_exit $as_status
15829} # as_fn_error
15830
15831
15832# as_fn_set_status STATUS
15833# -----------------------
15834# Set $? to STATUS, without forking.
15835as_fn_set_status ()
15836{
15837 return $1
15838} # as_fn_set_status
15839
15840# as_fn_exit STATUS
15841# -----------------
15842# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15843as_fn_exit ()
15844{
15845 set +e
15846 as_fn_set_status $1
15847 exit $1
15848} # as_fn_exit
15849
15850# as_fn_unset VAR
15851# ---------------
15852# Portably unset VAR.
15853as_fn_unset ()
15854{
15855 { eval $1=; unset $1;}
15856}
15857as_unset=as_fn_unset
15858# as_fn_append VAR VALUE
15859# ----------------------
15860# Append the text in VALUE to the end of the definition contained in VAR. Take
15861# advantage of any shell optimizations that allow amortized linear growth over
15862# repeated appends, instead of the typical quadratic growth present in naive
15863# implementations.
15864if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15865 eval 'as_fn_append ()
15866 {
15867 eval $1+=\$2
15868 }'
15869else
15870 as_fn_append ()
15871 {
15872 eval $1=\$$1\$2
15873 }
15874fi # as_fn_append
15875
15876# as_fn_arith ARG...
15877# ------------------
15878# Perform arithmetic evaluation on the ARGs, and store the result in the
15879# global $as_val. Take advantage of shells that can avoid forks. The arguments
15880# must be portable across $(()) and expr.
15881if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15882 eval 'as_fn_arith ()
15883 {
15884 as_val=$(( $* ))
15885 }'
15886else
15887 as_fn_arith ()
15888 {
15889 as_val=`expr "$@" || test $? -eq 1`
15890 }
15891fi # as_fn_arith
15892
15893
15894if expr a : '\(a\)' >/dev/null 2>&1 &&
15895 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15896 as_expr=expr
15897else
15898 as_expr=false
15899fi
15900
15901if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15902 as_basename=basename
15903else
15904 as_basename=false
15905fi
15906
15907if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15908 as_dirname=dirname
15909else
15910 as_dirname=false
15911fi
15912
15913as_me=`$as_basename -- "$0" ||
15914$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15915 X"$0" : 'X\(//\)$' \| \
15916 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15917$as_echo X/"$0" |
15918 sed '/^.*\/\([^/][^/]*\)\/*$/{
15919 s//\1/
15920 q
15921 }
15922 /^X\/\(\/\/\)$/{
15923 s//\1/
15924 q
15925 }
15926 /^X\/\(\/\).*/{
15927 s//\1/
15928 q
15929 }
15930 s/.*/./; q'`
15931
15932# Avoid depending upon Character Ranges.
15933as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15934as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15935as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15936as_cr_digits='0123456789'
15937as_cr_alnum=$as_cr_Letters$as_cr_digits
15938
15939ECHO_C= ECHO_N= ECHO_T=
15940case `echo -n x` in #(((((
15941-n*)
15942 case `echo 'xy\c'` in
15943 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15944 xy) ECHO_C='\c';;
15945 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15946 ECHO_T=' ';;
15947 esac;;
15948*)
15949 ECHO_N='-n';;
15950esac
15951
15952rm -f conf$$ conf$$.exe conf$$.file
15953if test -d conf$$.dir; then
15954 rm -f conf$$.dir/conf$$.file
15955else
15956 rm -f conf$$.dir
15957 mkdir conf$$.dir 2>/dev/null
15958fi
15959if (echo >conf$$.file) 2>/dev/null; then
15960 if ln -s conf$$.file conf$$ 2>/dev/null; then
15961 as_ln_s='ln -s'
15962 # ... but there are two gotchas:
15963 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15964 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Joseph Myers22e05272018-10-31 17:03:16 +000015965 # In both cases, we have to default to `cp -pR'.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015966 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Joseph Myers22e05272018-10-31 17:03:16 +000015967 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015968 elif ln conf$$.file conf$$ 2>/dev/null; then
15969 as_ln_s=ln
15970 else
Joseph Myers22e05272018-10-31 17:03:16 +000015971 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015972 fi
15973else
Joseph Myers22e05272018-10-31 17:03:16 +000015974 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015975fi
15976rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15977rmdir conf$$.dir 2>/dev/null
15978
15979
15980# as_fn_mkdir_p
15981# -------------
15982# Create "$as_dir" as a directory, including parents if necessary.
15983as_fn_mkdir_p ()
15984{
15985
15986 case $as_dir in #(
15987 -*) as_dir=./$as_dir;;
15988 esac
15989 test -d "$as_dir" || eval $as_mkdir_p || {
15990 as_dirs=
15991 while :; do
15992 case $as_dir in #(
15993 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15994 *) as_qdir=$as_dir;;
15995 esac
15996 as_dirs="'$as_qdir' $as_dirs"
15997 as_dir=`$as_dirname -- "$as_dir" ||
15998$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15999 X"$as_dir" : 'X\(//\)[^/]' \| \
16000 X"$as_dir" : 'X\(//\)$' \| \
16001 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16002$as_echo X"$as_dir" |
16003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16004 s//\1/
16005 q
16006 }
16007 /^X\(\/\/\)[^/].*/{
16008 s//\1/
16009 q
16010 }
16011 /^X\(\/\/\)$/{
16012 s//\1/
16013 q
16014 }
16015 /^X\(\/\).*/{
16016 s//\1/
16017 q
16018 }
16019 s/.*/./; q'`
16020 test -d "$as_dir" && break
16021 done
16022 test -z "$as_dirs" || eval "mkdir $as_dirs"
Joseph Myers22e05272018-10-31 17:03:16 +000016023 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016024
16025
16026} # as_fn_mkdir_p
16027if mkdir -p . 2>/dev/null; then
16028 as_mkdir_p='mkdir -p "$as_dir"'
16029else
16030 test -d ./-p && rmdir ./-p
16031 as_mkdir_p=false
16032fi
16033
Joseph Myers22e05272018-10-31 17:03:16 +000016034
16035# as_fn_executable_p FILE
16036# -----------------------
16037# Test if FILE is an executable regular file.
16038as_fn_executable_p ()
16039{
16040 test -f "$1" && test -x "$1"
16041} # as_fn_executable_p
16042as_test_x='test -x'
16043as_executable_p=as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +000016044
16045# Sed expression to map a string onto a valid CPP name.
16046as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16047
16048# Sed expression to map a string onto a valid variable name.
16049as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16050
16051
16052exec 6>&1
16053## ----------------------------------- ##
16054## Main body of $CONFIG_STATUS script. ##
16055## ----------------------------------- ##
16056_ASEOF
16057test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16058
16059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16060# Save the log message, to keep $0 and so on meaningful, and to
16061# report actual input values of CONFIG_FILES etc. instead of their
16062# values after options handling.
16063ac_log="
16064This file was extended by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +000016065generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +000016066
16067 CONFIG_FILES = $CONFIG_FILES
16068 CONFIG_HEADERS = $CONFIG_HEADERS
16069 CONFIG_LINKS = $CONFIG_LINKS
16070 CONFIG_COMMANDS = $CONFIG_COMMANDS
16071 $ $0 $@
16072
16073on `(hostname || uname -n) 2>/dev/null | sed 1q`
16074"
16075
16076_ACEOF
16077
16078case $ac_config_files in *"
16079"*) set x $ac_config_files; shift; ac_config_files=$*;;
16080esac
16081
16082case $ac_config_headers in *"
16083"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16084esac
16085
16086
16087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16088# Files that config.status was made for.
16089config_files="$ac_config_files"
16090config_headers="$ac_config_headers"
16091config_commands="$ac_config_commands"
16092
16093_ACEOF
16094
16095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16096ac_cs_usage="\
16097\`$as_me' instantiates files and other configuration actions
16098from templates according to the current configuration. Unless the files
16099and actions are specified as TAGs, all are instantiated by default.
16100
16101Usage: $0 [OPTION]... [TAG]...
16102
16103 -h, --help print this help, then exit
16104 -V, --version print version number and configuration settings, then exit
Joseph Myers22e05272018-10-31 17:03:16 +000016105 --config print configuration, then exit
Iain Buclawb4c522f2018-10-28 19:51:47 +000016106 -q, --quiet, --silent
16107 do not print progress messages
16108 -d, --debug don't remove temporary files
16109 --recheck update $as_me by reconfiguring in the same conditions
16110 --file=FILE[:TEMPLATE]
16111 instantiate the configuration file FILE
16112 --header=FILE[:TEMPLATE]
16113 instantiate the configuration header FILE
16114
16115Configuration files:
16116$config_files
16117
16118Configuration headers:
16119$config_headers
16120
16121Configuration commands:
16122$config_commands
16123
16124Report bugs to the package provider."
16125
16126_ACEOF
16127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016128ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016129ac_cs_version="\\
16130package-unused config.status version-unused
Joseph Myers22e05272018-10-31 17:03:16 +000016131configured by $0, generated by GNU Autoconf 2.69,
16132 with options \\"\$ac_cs_config\\"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016133
Rainer Orth0b6e3122019-02-14 17:47:49 +000016134Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000016135This config.status script is free software; the Free Software Foundation
16136gives unlimited permission to copy, distribute and modify it."
16137
16138ac_pwd='$ac_pwd'
16139srcdir='$srcdir'
16140INSTALL='$INSTALL'
16141MKDIR_P='$MKDIR_P'
16142AWK='$AWK'
16143test -n "\$AWK" || AWK=awk
16144_ACEOF
16145
16146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16147# The default lists apply if the user does not specify any file.
16148ac_need_defaults=:
16149while test $# != 0
16150do
16151 case $1 in
Joseph Myers22e05272018-10-31 17:03:16 +000016152 --*=?*)
Iain Buclawb4c522f2018-10-28 19:51:47 +000016153 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16154 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16155 ac_shift=:
16156 ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016157 --*=)
16158 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16159 ac_optarg=
16160 ac_shift=:
16161 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016162 *)
16163 ac_option=$1
16164 ac_optarg=$2
16165 ac_shift=shift
16166 ;;
16167 esac
16168
16169 case $ac_option in
16170 # Handling of the options.
16171 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16172 ac_cs_recheck=: ;;
16173 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16174 $as_echo "$ac_cs_version"; exit ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016175 --config | --confi | --conf | --con | --co | --c )
16176 $as_echo "$ac_cs_config"; exit ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016177 --debug | --debu | --deb | --de | --d | -d )
16178 debug=: ;;
16179 --file | --fil | --fi | --f )
16180 $ac_shift
16181 case $ac_optarg in
16182 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016183 '') as_fn_error $? "missing file argument" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016184 esac
16185 as_fn_append CONFIG_FILES " '$ac_optarg'"
16186 ac_need_defaults=false;;
16187 --header | --heade | --head | --hea )
16188 $ac_shift
16189 case $ac_optarg in
16190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16191 esac
16192 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16193 ac_need_defaults=false;;
16194 --he | --h)
16195 # Conflict between --help and --header
Joseph Myers22e05272018-10-31 17:03:16 +000016196 as_fn_error $? "ambiguous option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016197Try \`$0 --help' for more information.";;
16198 --help | --hel | -h )
16199 $as_echo "$ac_cs_usage"; exit ;;
16200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16201 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16202 ac_cs_silent=: ;;
16203
16204 # This is an error.
Joseph Myers22e05272018-10-31 17:03:16 +000016205 -*) as_fn_error $? "unrecognized option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016206Try \`$0 --help' for more information." ;;
16207
16208 *) as_fn_append ac_config_targets " $1"
16209 ac_need_defaults=false ;;
16210
16211 esac
16212 shift
16213done
16214
16215ac_configure_extra_args=
16216
16217if $ac_cs_silent; then
16218 exec 6>/dev/null
16219 ac_configure_extra_args="$ac_configure_extra_args --silent"
16220fi
16221
16222_ACEOF
16223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16224if \$ac_cs_recheck; then
Joseph Myers22e05272018-10-31 17:03:16 +000016225 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Iain Buclawb4c522f2018-10-28 19:51:47 +000016226 shift
16227 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16228 CONFIG_SHELL='$SHELL'
16229 export CONFIG_SHELL
16230 exec "\$@"
16231fi
16232
16233_ACEOF
16234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16235exec 5>>config.log
16236{
16237 echo
16238 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16239## Running $as_me. ##
16240_ASBOX
16241 $as_echo "$ac_log"
16242} >&5
16243
16244_ACEOF
16245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16246#
16247# INIT-COMMANDS
16248#
16249
16250srcdir="$srcdir"
16251host="$host"
16252target="$target"
16253with_multisubdir="$with_multisubdir"
16254with_multisrctop="$with_multisrctop"
16255with_target_subdir="$with_target_subdir"
16256ac_configure_args="${multilib_arg} ${ac_configure_args}"
16257multi_basedir="$multi_basedir"
16258CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16259CC="$CC"
16260CXX="$CXX"
16261GFORTRAN="$GFORTRAN"
16262GDC="$GDC"
16263
16264
16265# The HP-UX ksh and POSIX shell print the target directory to stdout
16266# if CDPATH is set.
16267(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16268
16269sed_quote_subst='$sed_quote_subst'
16270double_quote_subst='$double_quote_subst'
16271delay_variable_subst='$delay_variable_subst'
16272macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16273macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16274enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16275enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16276pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16277enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16278SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16279ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16280host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16281host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16282host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16283build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16284build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16285build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16286SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16287Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16288GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16289EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16290FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16291LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16292NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16293LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16294max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16295ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16296exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16297lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16298lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16299lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16300reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16301reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16302OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16303deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16304file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16305AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16306AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16307STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16308RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16309old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16310old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16311old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16312lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16313CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16314CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16315compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16316GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16317lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16318lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16319lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16320lt_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"`'
16321objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16322MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16323lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16324lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16325lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16326lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16327lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16328need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16329DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16330NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16331LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16332OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16333OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16334libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16335shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16336extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16337archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16338enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16339export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16340whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16341compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16342old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16343old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16344archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16345archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16346module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16347module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16348with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16349allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16350no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16351hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16352hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16353hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16354hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16355hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16356hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16357hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16358hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16359inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16360link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16361fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16362always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16363export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16364exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16365include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16366prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16367file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16368variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16369need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16370need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16371version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16372runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16373shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16374shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16375libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16376library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16377soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16378install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16379postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16380postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16381finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16382finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16383hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16384sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16385sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16386hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16387enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16388enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16389enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16390old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16391striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16392LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16393reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16394reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16395old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16396compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16397GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16398lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16399lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16400lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16401lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16402lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16403archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16404enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16405export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16406whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16407compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16408old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16409old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16410archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16411archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16412module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16413module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16414with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16415allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16416no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16417hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16418hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16419hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16420hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16421hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16422hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16423hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16424hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16425inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16426link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16427fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16428always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16429export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16430exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16431include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16432prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16433file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16434hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16435
16436LTCC='$LTCC'
16437LTCFLAGS='$LTCFLAGS'
16438compiler='$compiler_DEFAULT'
16439
16440# A function that is used when there is no print builtin or printf.
16441func_fallback_echo ()
16442{
16443 eval 'cat <<_LTECHO_EOF
16444\$1
16445_LTECHO_EOF'
16446}
16447
16448# Quote evaled strings.
16449for var in SHELL \
16450ECHO \
16451SED \
16452GREP \
16453EGREP \
16454FGREP \
16455LD \
16456NM \
16457LN_S \
16458lt_SP2NL \
16459lt_NL2SP \
16460reload_flag \
16461OBJDUMP \
16462deplibs_check_method \
16463file_magic_cmd \
16464AR \
16465AR_FLAGS \
16466STRIP \
16467RANLIB \
16468CC \
16469CFLAGS \
16470compiler \
16471lt_cv_sys_global_symbol_pipe \
16472lt_cv_sys_global_symbol_to_cdecl \
16473lt_cv_sys_global_symbol_to_c_name_address \
16474lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16475lt_prog_compiler_no_builtin_flag \
16476lt_prog_compiler_wl \
16477lt_prog_compiler_pic \
16478lt_prog_compiler_static \
16479lt_cv_prog_compiler_c_o \
16480need_locks \
16481DSYMUTIL \
16482NMEDIT \
16483LIPO \
16484OTOOL \
16485OTOOL64 \
16486shrext_cmds \
16487export_dynamic_flag_spec \
16488whole_archive_flag_spec \
16489compiler_needs_object \
16490with_gnu_ld \
16491allow_undefined_flag \
16492no_undefined_flag \
16493hardcode_libdir_flag_spec \
16494hardcode_libdir_flag_spec_ld \
16495hardcode_libdir_separator \
16496fix_srcfile_path \
16497exclude_expsyms \
16498include_expsyms \
16499file_list_spec \
16500variables_saved_for_relink \
16501libname_spec \
16502library_names_spec \
16503soname_spec \
16504install_override_mode \
16505finish_eval \
16506old_striplib \
16507striplib \
16508LD_D \
16509reload_flag_D \
16510compiler_D \
16511lt_prog_compiler_no_builtin_flag_D \
16512lt_prog_compiler_wl_D \
16513lt_prog_compiler_pic_D \
16514lt_prog_compiler_static_D \
16515lt_cv_prog_compiler_c_o_D \
16516export_dynamic_flag_spec_D \
16517whole_archive_flag_spec_D \
16518compiler_needs_object_D \
16519with_gnu_ld_D \
16520allow_undefined_flag_D \
16521no_undefined_flag_D \
16522hardcode_libdir_flag_spec_D \
16523hardcode_libdir_flag_spec_ld_D \
16524hardcode_libdir_separator_D \
16525fix_srcfile_path_D \
16526exclude_expsyms_D \
16527include_expsyms_D \
16528file_list_spec_D; do
16529 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16530 *[\\\\\\\`\\"\\\$]*)
16531 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16532 ;;
16533 *)
16534 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16535 ;;
16536 esac
16537done
16538
16539# Double-quote double-evaled strings.
16540for var in reload_cmds \
16541old_postinstall_cmds \
16542old_postuninstall_cmds \
16543old_archive_cmds \
16544extract_expsyms_cmds \
16545old_archive_from_new_cmds \
16546old_archive_from_expsyms_cmds \
16547archive_cmds \
16548archive_expsym_cmds \
16549module_cmds \
16550module_expsym_cmds \
16551export_symbols_cmds \
16552prelink_cmds \
16553postinstall_cmds \
16554postuninstall_cmds \
16555finish_cmds \
16556sys_lib_search_path_spec \
16557sys_lib_dlsearch_path_spec \
16558reload_cmds_D \
16559old_archive_cmds_D \
16560old_archive_from_new_cmds_D \
16561old_archive_from_expsyms_cmds_D \
16562archive_cmds_D \
16563archive_expsym_cmds_D \
16564module_cmds_D \
16565module_expsym_cmds_D \
16566export_symbols_cmds_D \
16567prelink_cmds_D; do
16568 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16569 *[\\\\\\\`\\"\\\$]*)
16570 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16571 ;;
16572 *)
16573 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16574 ;;
16575 esac
16576done
16577
16578ac_aux_dir='$ac_aux_dir'
16579xsi_shell='$xsi_shell'
16580lt_shell_append='$lt_shell_append'
16581
16582# See if we are running on zsh, and set the options which allow our
16583# commands through without removal of \ escapes INIT.
16584if test -n "\${ZSH_VERSION+set}" ; then
16585 setopt NO_GLOB_SUBST
16586fi
16587
16588
16589 PACKAGE='$PACKAGE'
16590 VERSION='$VERSION'
16591 TIMESTAMP='$TIMESTAMP'
16592 RM='$RM'
16593 ofile='$ofile'
16594
16595
16596
16597
16598
16599
Iain Buclawb4c522f2018-10-28 19:51:47 +000016600_ACEOF
16601
16602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16603
16604# Handling of arguments.
16605for ac_config_target in $ac_config_targets
16606do
16607 case $ac_config_target in
16608 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16609 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16610 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16611 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016612 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16613 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16614 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16615 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
Iain Buclawac677522018-11-02 08:29:50 +000016616 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16617 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16618 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016619
Joseph Myers22e05272018-10-31 17:03:16 +000016620 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016621 esac
16622done
16623
16624
16625# If the user did not use the arguments to specify the items to instantiate,
16626# then the envvar interface is used. Set only those that are not.
16627# We use the long form for the default assignment because of an extremely
16628# bizarre bug on SunOS 4.1.3.
16629if $ac_need_defaults; then
16630 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16631 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16632 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16633fi
16634
16635# Have a temporary directory for convenience. Make it in the build tree
16636# simply because there is no reason against having it here, and in addition,
16637# creating and moving files from /tmp can sometimes cause problems.
16638# Hook for its removal unless debugging.
16639# Note that there is a small window in which the directory will not be cleaned:
16640# after its creation but before its name has been assigned to `$tmp'.
16641$debug ||
16642{
Joseph Myers22e05272018-10-31 17:03:16 +000016643 tmp= ac_tmp=
Iain Buclawb4c522f2018-10-28 19:51:47 +000016644 trap 'exit_status=$?
Joseph Myers22e05272018-10-31 17:03:16 +000016645 : "${ac_tmp:=$tmp}"
16646 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Iain Buclawb4c522f2018-10-28 19:51:47 +000016647' 0
16648 trap 'as_fn_exit 1' 1 2 13 15
16649}
16650# Create a (secure) tmp directory for tmp files.
16651
16652{
16653 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Joseph Myers22e05272018-10-31 17:03:16 +000016654 test -d "$tmp"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016655} ||
16656{
16657 tmp=./conf$$-$RANDOM
16658 (umask 077 && mkdir "$tmp")
Joseph Myers22e05272018-10-31 17:03:16 +000016659} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16660ac_tmp=$tmp
Iain Buclawb4c522f2018-10-28 19:51:47 +000016661
16662# Set up the scripts for CONFIG_FILES section.
16663# No need to generate them if there are no CONFIG_FILES.
16664# This happens for instance with `./config.status config.h'.
16665if test -n "$CONFIG_FILES"; then
16666
Rainer Orth0b6e3122019-02-14 17:47:49 +000016667if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16668 ac_cs_awk_getline=:
16669 ac_cs_awk_pipe_init=
16670 ac_cs_awk_read_file='
16671 while ((getline aline < (F[key])) > 0)
16672 print(aline)
16673 close(F[key])'
16674 ac_cs_awk_pipe_fini=
16675else
16676 ac_cs_awk_getline=false
16677 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16678 ac_cs_awk_read_file='
16679 print "|#_!!_#|"
16680 print "cat " F[key] " &&"
16681 '$ac_cs_awk_pipe_init
16682 # The final `:' finishes the AND list.
16683 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16684fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000016685ac_cr=`echo X | tr X '\015'`
16686# On cygwin, bash can eat \r inside `` if the user requested igncr.
16687# But we know of no other shell where ac_cr would be empty at this
16688# point, so we can use a bashism as a fallback.
16689if test "x$ac_cr" = x; then
16690 eval ac_cr=\$\'\\r\'
16691fi
16692ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16693if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016694 ac_cs_awk_cr='\\r'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016695else
16696 ac_cs_awk_cr=$ac_cr
16697fi
16698
Joseph Myers22e05272018-10-31 17:03:16 +000016699echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016700_ACEOF
16701
Rainer Orth0b6e3122019-02-14 17:47:49 +000016702# Create commands to substitute file output variables.
16703{
16704 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16705 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16706 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16707 echo "_ACAWK" &&
16708 echo "_ACEOF"
16709} >conf$$files.sh &&
16710. ./conf$$files.sh ||
16711 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16712rm -f conf$$files.sh
Iain Buclawb4c522f2018-10-28 19:51:47 +000016713
16714{
16715 echo "cat >conf$$subs.awk <<_ACEOF" &&
16716 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16717 echo "_ACEOF"
16718} >conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016719 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16720ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Iain Buclawb4c522f2018-10-28 19:51:47 +000016721ac_delim='%!_!# '
16722for ac_last_try in false false false false false :; do
16723 . ./conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016724 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016725
16726 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16727 if test $ac_delim_n = $ac_delim_num; then
16728 break
16729 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016731 else
16732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16733 fi
16734done
16735rm -f conf$$subs.sh
16736
16737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016738cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016739_ACEOF
16740sed -n '
16741h
16742s/^/S["/; s/!.*/"]=/
16743p
16744g
16745s/^[^!]*!//
16746:repl
16747t repl
16748s/'"$ac_delim"'$//
16749t delim
16750:nl
16751h
Joseph Myers22e05272018-10-31 17:03:16 +000016752s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016753t more1
16754s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16755p
16756n
16757b repl
16758:more1
16759s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16760p
16761g
16762s/.\{148\}//
16763t nl
16764:delim
16765h
Joseph Myers22e05272018-10-31 17:03:16 +000016766s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016767t more2
16768s/["\\]/\\&/g; s/^/"/; s/$/"/
16769p
16770b
16771:more2
16772s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16773p
16774g
16775s/.\{148\}//
16776t delim
16777' <conf$$subs.awk | sed '
16778/^[^""]/{
16779 N
16780 s/\n//
16781}
16782' >>$CONFIG_STATUS || ac_write_fail=1
16783rm -f conf$$subs.awk
16784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16785_ACAWK
Joseph Myers22e05272018-10-31 17:03:16 +000016786cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016787 for (key in S) S_is_set[key] = 1
16788 FS = ""
Rainer Orth0b6e3122019-02-14 17:47:49 +000016789 \$ac_cs_awk_pipe_init
Iain Buclawb4c522f2018-10-28 19:51:47 +000016790}
16791{
16792 line = $ 0
16793 nfields = split(line, field, "@")
16794 substed = 0
16795 len = length(field[1])
16796 for (i = 2; i < nfields; i++) {
16797 key = field[i]
16798 keylen = length(key)
16799 if (S_is_set[key]) {
16800 value = S[key]
16801 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16802 len += length(value) + length(field[++i])
16803 substed = 1
16804 } else
16805 len += 1 + keylen
16806 }
Rainer Orth0b6e3122019-02-14 17:47:49 +000016807 if (nfields == 3 && !substed) {
16808 key = field[2]
16809 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16810 \$ac_cs_awk_read_file
16811 next
16812 }
16813 }
Iain Buclawb4c522f2018-10-28 19:51:47 +000016814 print line
16815}
Rainer Orth0b6e3122019-02-14 17:47:49 +000016816\$ac_cs_awk_pipe_fini
Iain Buclawb4c522f2018-10-28 19:51:47 +000016817_ACAWK
16818_ACEOF
16819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16820if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16821 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16822else
16823 cat
Joseph Myers22e05272018-10-31 17:03:16 +000016824fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16825 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016826_ACEOF
16827
Joseph Myers22e05272018-10-31 17:03:16 +000016828# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16829# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Iain Buclawb4c522f2018-10-28 19:51:47 +000016830# trailing colons and then remove the whole line if VPATH becomes empty
16831# (actually we leave an empty line to preserve line numbers).
16832if test "x$srcdir" = x.; then
Joseph Myers22e05272018-10-31 17:03:16 +000016833 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16834h
16835s///
16836s/^/:/
16837s/[ ]*$/:/
16838s/:\$(srcdir):/:/g
16839s/:\${srcdir}:/:/g
16840s/:@srcdir@:/:/g
16841s/^:*//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016842s/:*$//
Joseph Myers22e05272018-10-31 17:03:16 +000016843x
16844s/\(=[ ]*\).*/\1/
16845G
16846s/\n//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016847s/^[^=]*=[ ]*$//
16848}'
16849fi
16850
16851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16852fi # test -n "$CONFIG_FILES"
16853
16854# Set up the scripts for CONFIG_HEADERS section.
16855# No need to generate them if there are no CONFIG_HEADERS.
16856# This happens for instance with `./config.status Makefile'.
16857if test -n "$CONFIG_HEADERS"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016858cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Iain Buclawb4c522f2018-10-28 19:51:47 +000016859BEGIN {
16860_ACEOF
16861
16862# Transform confdefs.h into an awk script `defines.awk', embedded as
16863# here-document in config.status, that substitutes the proper values into
16864# config.h.in to produce config.h.
16865
16866# Create a delimiter string that does not exist in confdefs.h, to ease
16867# handling of long lines.
16868ac_delim='%!_!# '
16869for ac_last_try in false false :; do
Joseph Myers22e05272018-10-31 17:03:16 +000016870 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16871 if test -z "$ac_tt"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000016872 break
16873 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016874 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016875 else
16876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16877 fi
16878done
16879
16880# For the awk script, D is an array of macro values keyed by name,
16881# likewise P contains macro parameters if any. Preserve backslash
16882# newline sequences.
16883
16884ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16885sed -n '
16886s/.\{148\}/&'"$ac_delim"'/g
16887t rset
16888:rset
16889s/^[ ]*#[ ]*define[ ][ ]*/ /
16890t def
16891d
16892:def
16893s/\\$//
16894t bsnl
16895s/["\\]/\\&/g
16896s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16897D["\1"]=" \3"/p
16898s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16899d
16900:bsnl
16901s/["\\]/\\&/g
16902s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16903D["\1"]=" \3\\\\\\n"\\/p
16904t cont
16905s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16906t cont
16907d
16908:cont
16909n
16910s/.\{148\}/&'"$ac_delim"'/g
16911t clear
16912:clear
16913s/\\$//
16914t bsnlc
16915s/["\\]/\\&/g; s/^/"/; s/$/"/p
16916d
16917:bsnlc
16918s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16919b cont
16920' <confdefs.h | sed '
16921s/'"$ac_delim"'/"\\\
16922"/g' >>$CONFIG_STATUS || ac_write_fail=1
16923
16924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16925 for (key in D) D_is_set[key] = 1
16926 FS = ""
16927}
16928/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16929 line = \$ 0
16930 split(line, arg, " ")
16931 if (arg[1] == "#") {
16932 defundef = arg[2]
16933 mac1 = arg[3]
16934 } else {
16935 defundef = substr(arg[1], 2)
16936 mac1 = arg[2]
16937 }
16938 split(mac1, mac2, "(") #)
16939 macro = mac2[1]
16940 prefix = substr(line, 1, index(line, defundef) - 1)
16941 if (D_is_set[macro]) {
16942 # Preserve the white space surrounding the "#".
16943 print prefix "define", macro P[macro] D[macro]
16944 next
16945 } else {
16946 # Replace #undef with comments. This is necessary, for example,
16947 # in the case of _POSIX_SOURCE, which is predefined and required
16948 # on some systems where configure will not decide to define it.
16949 if (defundef == "undef") {
16950 print "/*", prefix defundef, macro, "*/"
16951 next
16952 }
16953 }
16954}
16955{ print }
16956_ACAWK
16957_ACEOF
16958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016959 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016960fi # test -n "$CONFIG_HEADERS"
16961
16962
16963eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16964shift
16965for ac_tag
16966do
16967 case $ac_tag in
16968 :[FHLC]) ac_mode=$ac_tag; continue;;
16969 esac
16970 case $ac_mode$ac_tag in
16971 :[FHL]*:*);;
Joseph Myers22e05272018-10-31 17:03:16 +000016972 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016973 :[FH]-) ac_tag=-:-;;
16974 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16975 esac
16976 ac_save_IFS=$IFS
16977 IFS=:
16978 set x $ac_tag
16979 IFS=$ac_save_IFS
16980 shift
16981 ac_file=$1
16982 shift
16983
16984 case $ac_mode in
16985 :L) ac_source=$1;;
16986 :[FH])
16987 ac_file_inputs=
16988 for ac_f
16989 do
16990 case $ac_f in
Joseph Myers22e05272018-10-31 17:03:16 +000016991 -) ac_f="$ac_tmp/stdin";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016992 *) # Look for the file first in the build tree, then in the source tree
16993 # (if the path is not absolute). The absolute path cannot be DOS-style,
16994 # because $ac_f cannot contain `:'.
16995 test -f "$ac_f" ||
16996 case $ac_f in
16997 [\\/$]*) false;;
16998 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16999 esac ||
Joseph Myers22e05272018-10-31 17:03:16 +000017000 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017001 esac
17002 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17003 as_fn_append ac_file_inputs " '$ac_f'"
17004 done
17005
17006 # Let's still pretend it is `configure' which instantiates (i.e., don't
17007 # use $as_me), people would be surprised to read:
17008 # /* config.h. Generated by config.status. */
17009 configure_input='Generated from '`
17010 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17011 `' by configure.'
17012 if test x"$ac_file" != x-; then
17013 configure_input="$ac_file. $configure_input"
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17015$as_echo "$as_me: creating $ac_file" >&6;}
17016 fi
17017 # Neutralize special characters interpreted by sed in replacement strings.
17018 case $configure_input in #(
17019 *\&* | *\|* | *\\* )
17020 ac_sed_conf_input=`$as_echo "$configure_input" |
17021 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17022 *) ac_sed_conf_input=$configure_input;;
17023 esac
17024
17025 case $ac_tag in
Joseph Myers22e05272018-10-31 17:03:16 +000017026 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017028 esac
17029 ;;
17030 esac
17031
17032 ac_dir=`$as_dirname -- "$ac_file" ||
17033$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17034 X"$ac_file" : 'X\(//\)[^/]' \| \
17035 X"$ac_file" : 'X\(//\)$' \| \
17036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17037$as_echo X"$ac_file" |
17038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17039 s//\1/
17040 q
17041 }
17042 /^X\(\/\/\)[^/].*/{
17043 s//\1/
17044 q
17045 }
17046 /^X\(\/\/\)$/{
17047 s//\1/
17048 q
17049 }
17050 /^X\(\/\).*/{
17051 s//\1/
17052 q
17053 }
17054 s/.*/./; q'`
17055 as_dir="$ac_dir"; as_fn_mkdir_p
17056 ac_builddir=.
17057
17058case "$ac_dir" in
17059.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17060*)
17061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17062 # A ".." for each directory in $ac_dir_suffix.
17063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17064 case $ac_top_builddir_sub in
17065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17067 esac ;;
17068esac
17069ac_abs_top_builddir=$ac_pwd
17070ac_abs_builddir=$ac_pwd$ac_dir_suffix
17071# for backward compatibility:
17072ac_top_builddir=$ac_top_build_prefix
17073
17074case $srcdir in
17075 .) # We are building in place.
17076 ac_srcdir=.
17077 ac_top_srcdir=$ac_top_builddir_sub
17078 ac_abs_top_srcdir=$ac_pwd ;;
17079 [\\/]* | ?:[\\/]* ) # Absolute name.
17080 ac_srcdir=$srcdir$ac_dir_suffix;
17081 ac_top_srcdir=$srcdir
17082 ac_abs_top_srcdir=$srcdir ;;
17083 *) # Relative name.
17084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17085 ac_top_srcdir=$ac_top_build_prefix$srcdir
17086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17087esac
17088ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17089
17090
17091 case $ac_mode in
17092 :F)
17093 #
17094 # CONFIG_FILE
17095 #
17096
17097 case $INSTALL in
17098 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17099 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17100 esac
17101 ac_MKDIR_P=$MKDIR_P
17102 case $MKDIR_P in
17103 [\\/$]* | ?:[\\/]* ) ;;
17104 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17105 esac
17106_ACEOF
17107
17108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17109# If the template does not know about datarootdir, expand it.
17110# FIXME: This hack should be removed a few years after 2.60.
17111ac_datarootdir_hack=; ac_datarootdir_seen=
17112ac_sed_dataroot='
17113/datarootdir/ {
17114 p
17115 q
17116}
17117/@datadir@/p
17118/@docdir@/p
17119/@infodir@/p
17120/@localedir@/p
17121/@mandir@/p'
17122case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17123*datarootdir*) ac_datarootdir_seen=yes;;
17124*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17126$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17127_ACEOF
17128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17129 ac_datarootdir_hack='
17130 s&@datadir@&$datadir&g
17131 s&@docdir@&$docdir&g
17132 s&@infodir@&$infodir&g
17133 s&@localedir@&$localedir&g
17134 s&@mandir@&$mandir&g
17135 s&\\\${datarootdir}&$datarootdir&g' ;;
17136esac
17137_ACEOF
17138
17139# Neutralize VPATH when `$srcdir' = `.'.
17140# Shell code in configure.ac might set extrasub.
17141# FIXME: do we really want to maintain this feature?
17142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17143ac_sed_extra="$ac_vpsub
17144$extrasub
17145_ACEOF
17146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17147:t
17148/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17149s|@configure_input@|$ac_sed_conf_input|;t t
17150s&@top_builddir@&$ac_top_builddir_sub&;t t
17151s&@top_build_prefix@&$ac_top_build_prefix&;t t
17152s&@srcdir@&$ac_srcdir&;t t
17153s&@abs_srcdir@&$ac_abs_srcdir&;t t
17154s&@top_srcdir@&$ac_top_srcdir&;t t
17155s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17156s&@builddir@&$ac_builddir&;t t
17157s&@abs_builddir@&$ac_abs_builddir&;t t
17158s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17159s&@INSTALL@&$ac_INSTALL&;t t
17160s&@MKDIR_P@&$ac_MKDIR_P&;t t
17161$ac_datarootdir_hack
17162"
Rainer Orth0b6e3122019-02-14 17:47:49 +000017163eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17164if $ac_cs_awk_getline; then
17165 $AWK -f "$ac_tmp/subs.awk"
17166else
17167 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17168fi \
Joseph Myers22e05272018-10-31 17:03:16 +000017169 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017170
17171test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Joseph Myers22e05272018-10-31 17:03:16 +000017172 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17173 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17174 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000017175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000017176which seems to be undefined. Please make sure it is defined" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017177$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000017178which seems to be undefined. Please make sure it is defined" >&2;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000017179
Joseph Myers22e05272018-10-31 17:03:16 +000017180 rm -f "$ac_tmp/stdin"
Iain Buclawb4c522f2018-10-28 19:51:47 +000017181 case $ac_file in
Joseph Myers22e05272018-10-31 17:03:16 +000017182 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17183 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017184 esac \
Joseph Myers22e05272018-10-31 17:03:16 +000017185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017186 ;;
17187 :H)
17188 #
17189 # CONFIG_HEADER
17190 #
17191 if test x"$ac_file" != x-; then
17192 {
17193 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000017194 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17195 } >"$ac_tmp/config.h" \
17196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17197 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000017198 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17199$as_echo "$as_me: $ac_file is unchanged" >&6;}
17200 else
17201 rm -f "$ac_file"
Joseph Myers22e05272018-10-31 17:03:16 +000017202 mv "$ac_tmp/config.h" "$ac_file" \
17203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017204 fi
17205 else
17206 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000017207 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17208 || as_fn_error $? "could not create -" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017209 fi
17210# Compute "$ac_file"'s index in $config_headers.
17211_am_arg="$ac_file"
17212_am_stamp_count=1
17213for _am_header in $config_headers :; do
17214 case $_am_header in
17215 $_am_arg | $_am_arg:* )
17216 break ;;
17217 * )
17218 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17219 esac
17220done
17221echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17222$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17223 X"$_am_arg" : 'X\(//\)[^/]' \| \
17224 X"$_am_arg" : 'X\(//\)$' \| \
17225 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17226$as_echo X"$_am_arg" |
17227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17228 s//\1/
17229 q
17230 }
17231 /^X\(\/\/\)[^/].*/{
17232 s//\1/
17233 q
17234 }
17235 /^X\(\/\/\)$/{
17236 s//\1/
17237 q
17238 }
17239 /^X\(\/\).*/{
17240 s//\1/
17241 q
17242 }
17243 s/.*/./; q'`/stamp-h$_am_stamp_count
17244 ;;
17245
17246 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17247$as_echo "$as_me: executing $ac_file commands" >&6;}
17248 ;;
17249 esac
17250
17251
17252 case $ac_file$ac_mode in
17253 "default-1":C)
17254# Only add multilib support code if we just rebuilt the top-level
17255# Makefile.
17256case " $CONFIG_FILES " in
17257 *" Makefile "*)
17258 ac_file=Makefile . ${multi_basedir}/config-ml.in
17259 ;;
17260esac ;;
17261 "libtool":C)
17262
17263 # See if we are running on zsh, and set the options which allow our
17264 # commands through without removal of \ escapes.
17265 if test -n "${ZSH_VERSION+set}" ; then
17266 setopt NO_GLOB_SUBST
17267 fi
17268
17269 cfgfile="${ofile}T"
17270 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17271 $RM "$cfgfile"
17272
17273 cat <<_LT_EOF >> "$cfgfile"
17274#! $SHELL
17275
17276# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17277# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17278# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17279# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17280#
Rainer Orth0b6e3122019-02-14 17:47:49 +000017281# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17282# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000017283# Written by Gordon Matzigkeit, 1996
17284#
17285# This file is part of GNU Libtool.
17286#
17287# GNU Libtool is free software; you can redistribute it and/or
17288# modify it under the terms of the GNU General Public License as
17289# published by the Free Software Foundation; either version 2 of
17290# the License, or (at your option) any later version.
17291#
17292# As a special exception to the GNU General Public License,
17293# if you distribute this file as part of a program or library that
17294# is built using GNU Libtool, you may include this file under the
17295# same distribution terms that you use for the rest of that program.
17296#
17297# GNU Libtool is distributed in the hope that it will be useful,
17298# but WITHOUT ANY WARRANTY; without even the implied warranty of
17299# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17300# GNU General Public License for more details.
17301#
17302# You should have received a copy of the GNU General Public License
17303# along with GNU Libtool; see the file COPYING. If not, a copy
17304# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17305# obtained by writing to the Free Software Foundation, Inc.,
17306# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17307
17308
17309# The names of the tagged configurations supported by this script.
17310available_tags="D "
17311
17312# ### BEGIN LIBTOOL CONFIG
17313
17314# Which release of libtool.m4 was used?
17315macro_version=$macro_version
17316macro_revision=$macro_revision
17317
17318# Whether or not to build shared libraries.
17319build_libtool_libs=$enable_shared
17320
17321# Whether or not to build static libraries.
17322build_old_libs=$enable_static
17323
17324# What type of objects to build.
17325pic_mode=$pic_mode
17326
17327# Whether or not to optimize for fast installation.
17328fast_install=$enable_fast_install
17329
17330# Shell to use when invoking shell scripts.
17331SHELL=$lt_SHELL
17332
17333# An echo program that protects backslashes.
17334ECHO=$lt_ECHO
17335
17336# The host system.
17337host_alias=$host_alias
17338host=$host
17339host_os=$host_os
17340
17341# The build system.
17342build_alias=$build_alias
17343build=$build
17344build_os=$build_os
17345
17346# A sed program that does not truncate output.
17347SED=$lt_SED
17348
17349# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17350Xsed="\$SED -e 1s/^X//"
17351
17352# A grep program that handles long lines.
17353GREP=$lt_GREP
17354
17355# An ERE matcher.
17356EGREP=$lt_EGREP
17357
17358# A literal string matcher.
17359FGREP=$lt_FGREP
17360
17361# A BSD- or MS-compatible name lister.
17362NM=$lt_NM
17363
17364# Whether we need soft or hard links.
17365LN_S=$lt_LN_S
17366
17367# What is the maximum length of a command?
17368max_cmd_len=$max_cmd_len
17369
17370# Object file suffix (normally "o").
17371objext=$ac_objext
17372
17373# Executable file suffix (normally "").
17374exeext=$exeext
17375
17376# whether the shell understands "unset".
17377lt_unset=$lt_unset
17378
17379# turn spaces into newlines.
17380SP2NL=$lt_lt_SP2NL
17381
17382# turn newlines into spaces.
17383NL2SP=$lt_lt_NL2SP
17384
17385# An object symbol dumper.
17386OBJDUMP=$lt_OBJDUMP
17387
17388# Method to check whether dependent libraries are shared objects.
17389deplibs_check_method=$lt_deplibs_check_method
17390
17391# Command to use when deplibs_check_method == "file_magic".
17392file_magic_cmd=$lt_file_magic_cmd
17393
17394# The archiver.
17395AR=$lt_AR
17396AR_FLAGS=$lt_AR_FLAGS
17397
17398# A symbol stripping program.
17399STRIP=$lt_STRIP
17400
17401# Commands used to install an old-style archive.
17402RANLIB=$lt_RANLIB
17403old_postinstall_cmds=$lt_old_postinstall_cmds
17404old_postuninstall_cmds=$lt_old_postuninstall_cmds
17405
17406# Whether to use a lock for old archive extraction.
17407lock_old_archive_extraction=$lock_old_archive_extraction
17408
17409# A C compiler.
17410LTCC=$lt_CC
17411
17412# LTCC compiler flags.
17413LTCFLAGS=$lt_CFLAGS
17414
17415# Take the output of nm and produce a listing of raw symbols and C names.
17416global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17417
17418# Transform the output of nm in a proper C declaration.
17419global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17420
17421# Transform the output of nm in a C name address pair.
17422global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17423
17424# Transform the output of nm in a C name address pair when lib prefix is needed.
17425global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17426
17427# The name of the directory that contains temporary libtool files.
17428objdir=$objdir
17429
17430# Used to examine libraries when file_magic_cmd begins with "file".
17431MAGIC_CMD=$MAGIC_CMD
17432
17433# Must we lock files when doing compilation?
17434need_locks=$lt_need_locks
17435
17436# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17437DSYMUTIL=$lt_DSYMUTIL
17438
17439# Tool to change global to local symbols on Mac OS X.
17440NMEDIT=$lt_NMEDIT
17441
17442# Tool to manipulate fat objects and archives on Mac OS X.
17443LIPO=$lt_LIPO
17444
17445# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17446OTOOL=$lt_OTOOL
17447
17448# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17449OTOOL64=$lt_OTOOL64
17450
17451# Old archive suffix (normally "a").
17452libext=$libext
17453
17454# Shared library suffix (normally ".so").
17455shrext_cmds=$lt_shrext_cmds
17456
17457# The commands to extract the exported symbol list from a shared archive.
17458extract_expsyms_cmds=$lt_extract_expsyms_cmds
17459
17460# Variables whose values should be saved in libtool wrapper scripts and
17461# restored at link time.
17462variables_saved_for_relink=$lt_variables_saved_for_relink
17463
17464# Do we need the "lib" prefix for modules?
17465need_lib_prefix=$need_lib_prefix
17466
17467# Do we need a version for libraries?
17468need_version=$need_version
17469
17470# Library versioning type.
17471version_type=$version_type
17472
17473# Shared library runtime path variable.
17474runpath_var=$runpath_var
17475
17476# Shared library path variable.
17477shlibpath_var=$shlibpath_var
17478
17479# Is shlibpath searched before the hard-coded library search path?
17480shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17481
17482# Format of library name prefix.
17483libname_spec=$lt_libname_spec
17484
17485# List of archive names. First name is the real one, the rest are links.
17486# The last name is the one that the linker finds with -lNAME
17487library_names_spec=$lt_library_names_spec
17488
17489# The coded name of the library, if different from the real name.
17490soname_spec=$lt_soname_spec
17491
17492# Permission mode override for installation of shared libraries.
17493install_override_mode=$lt_install_override_mode
17494
17495# Command to use after installation of a shared archive.
17496postinstall_cmds=$lt_postinstall_cmds
17497
17498# Command to use after uninstallation of a shared archive.
17499postuninstall_cmds=$lt_postuninstall_cmds
17500
17501# Commands used to finish a libtool library installation in a directory.
17502finish_cmds=$lt_finish_cmds
17503
17504# As "finish_cmds", except a single script fragment to be evaled but
17505# not shown.
17506finish_eval=$lt_finish_eval
17507
17508# Whether we should hardcode library paths into libraries.
17509hardcode_into_libs=$hardcode_into_libs
17510
17511# Compile-time system search path for libraries.
17512sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17513
17514# Run-time system search path for libraries.
17515sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17516
17517# Whether dlopen is supported.
17518dlopen_support=$enable_dlopen
17519
17520# Whether dlopen of programs is supported.
17521dlopen_self=$enable_dlopen_self
17522
17523# Whether dlopen of statically linked programs is supported.
17524dlopen_self_static=$enable_dlopen_self_static
17525
17526# Commands to strip libraries.
17527old_striplib=$lt_old_striplib
17528striplib=$lt_striplib
17529
17530
17531# The linker used to build libraries.
17532LD=$lt_LD
17533
17534# How to create reloadable object files.
17535reload_flag=$lt_reload_flag
17536reload_cmds=$lt_reload_cmds
17537
17538# Commands used to build an old-style archive.
17539old_archive_cmds=$lt_old_archive_cmds
17540
17541# A language specific compiler.
17542CC=$lt_compiler
17543
17544# Is the compiler the GNU compiler?
17545with_gcc=$GCC
17546
17547# Compiler flag to turn off builtin functions.
17548no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17549
17550# How to pass a linker flag through the compiler.
17551wl=$lt_lt_prog_compiler_wl
17552
17553# Additional compiler flags for building library objects.
17554pic_flag=$lt_lt_prog_compiler_pic
17555
17556# Compiler flag to prevent dynamic linking.
17557link_static_flag=$lt_lt_prog_compiler_static
17558
17559# Does compiler simultaneously support -c and -o options?
17560compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17561
17562# Whether or not to add -lc for building shared libraries.
17563build_libtool_need_lc=$archive_cmds_need_lc
17564
17565# Whether or not to disallow shared libs when runtime libs are static.
17566allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17567
17568# Compiler flag to allow reflexive dlopens.
17569export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17570
17571# Compiler flag to generate shared objects directly from archives.
17572whole_archive_flag_spec=$lt_whole_archive_flag_spec
17573
17574# Whether the compiler copes with passing no objects directly.
17575compiler_needs_object=$lt_compiler_needs_object
17576
17577# Create an old-style archive from a shared archive.
17578old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17579
17580# Create a temporary old-style archive to link instead of a shared archive.
17581old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17582
17583# Commands used to build a shared archive.
17584archive_cmds=$lt_archive_cmds
17585archive_expsym_cmds=$lt_archive_expsym_cmds
17586
17587# Commands used to build a loadable module if different from building
17588# a shared archive.
17589module_cmds=$lt_module_cmds
17590module_expsym_cmds=$lt_module_expsym_cmds
17591
17592# Whether we are building with GNU ld or not.
17593with_gnu_ld=$lt_with_gnu_ld
17594
17595# Flag that allows shared libraries with undefined symbols to be built.
17596allow_undefined_flag=$lt_allow_undefined_flag
17597
17598# Flag that enforces no undefined symbols.
17599no_undefined_flag=$lt_no_undefined_flag
17600
17601# Flag to hardcode \$libdir into a binary during linking.
17602# This must work even if \$libdir does not exist
17603hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17604
17605# If ld is used when linking, flag to hardcode \$libdir into a binary
17606# during linking. This must work even if \$libdir does not exist.
17607hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17608
17609# Whether we need a single "-rpath" flag with a separated argument.
17610hardcode_libdir_separator=$lt_hardcode_libdir_separator
17611
17612# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17613# DIR into the resulting binary.
17614hardcode_direct=$hardcode_direct
17615
17616# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17617# DIR into the resulting binary and the resulting library dependency is
17618# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17619# library is relocated.
17620hardcode_direct_absolute=$hardcode_direct_absolute
17621
17622# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17623# into the resulting binary.
17624hardcode_minus_L=$hardcode_minus_L
17625
17626# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17627# into the resulting binary.
17628hardcode_shlibpath_var=$hardcode_shlibpath_var
17629
17630# Set to "yes" if building a shared library automatically hardcodes DIR
17631# into the library and all subsequent libraries and executables linked
17632# against it.
17633hardcode_automatic=$hardcode_automatic
17634
17635# Set to yes if linker adds runtime paths of dependent libraries
17636# to runtime path list.
17637inherit_rpath=$inherit_rpath
17638
17639# Whether libtool must link a program against all its dependency libraries.
17640link_all_deplibs=$link_all_deplibs
17641
17642# Fix the shell variable \$srcfile for the compiler.
17643fix_srcfile_path=$lt_fix_srcfile_path
17644
17645# Set to "yes" if exported symbols are required.
17646always_export_symbols=$always_export_symbols
17647
17648# The commands to list exported symbols.
17649export_symbols_cmds=$lt_export_symbols_cmds
17650
17651# Symbols that should not be listed in the preloaded symbols.
17652exclude_expsyms=$lt_exclude_expsyms
17653
17654# Symbols that must always be exported.
17655include_expsyms=$lt_include_expsyms
17656
17657# Commands necessary for linking programs (against libraries) with templates.
17658prelink_cmds=$lt_prelink_cmds
17659
17660# Specify filename containing input files.
17661file_list_spec=$lt_file_list_spec
17662
17663# How to hardcode a shared library path into an executable.
17664hardcode_action=$hardcode_action
17665
17666# ### END LIBTOOL CONFIG
17667
17668_LT_EOF
17669
17670 case $host_os in
17671 aix3*)
17672 cat <<\_LT_EOF >> "$cfgfile"
17673# AIX sometimes has problems with the GCC collect2 program. For some
17674# reason, if we set the COLLECT_NAMES environment variable, the problems
17675# vanish in a puff of smoke.
17676if test "X${COLLECT_NAMES+set}" != Xset; then
17677 COLLECT_NAMES=
17678 export COLLECT_NAMES
17679fi
17680_LT_EOF
17681 ;;
17682 esac
17683
17684
17685ltmain="$ac_aux_dir/ltmain.sh"
17686
17687
17688 # We use sed instead of cat because bash on DJGPP gets confused if
17689 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17690 # text mode, it properly converts lines to CR/LF. This bash problem
17691 # is reportedly fixed, but why not run on old versions too?
17692 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17693 || (rm -f "$cfgfile"; exit 1)
17694
17695 case $xsi_shell in
17696 yes)
17697 cat << \_LT_EOF >> "$cfgfile"
17698
17699# func_dirname file append nondir_replacement
17700# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17701# otherwise set result to NONDIR_REPLACEMENT.
17702func_dirname ()
17703{
17704 case ${1} in
17705 */*) func_dirname_result="${1%/*}${2}" ;;
17706 * ) func_dirname_result="${3}" ;;
17707 esac
17708}
17709
17710# func_basename file
17711func_basename ()
17712{
17713 func_basename_result="${1##*/}"
17714}
17715
17716# func_dirname_and_basename file append nondir_replacement
17717# perform func_basename and func_dirname in a single function
17718# call:
17719# dirname: Compute the dirname of FILE. If nonempty,
17720# add APPEND to the result, otherwise set result
17721# to NONDIR_REPLACEMENT.
17722# value returned in "$func_dirname_result"
17723# basename: Compute filename of FILE.
17724# value retuned in "$func_basename_result"
17725# Implementation must be kept synchronized with func_dirname
17726# and func_basename. For efficiency, we do not delegate to
17727# those functions but instead duplicate the functionality here.
17728func_dirname_and_basename ()
17729{
17730 case ${1} in
17731 */*) func_dirname_result="${1%/*}${2}" ;;
17732 * ) func_dirname_result="${3}" ;;
17733 esac
17734 func_basename_result="${1##*/}"
17735}
17736
17737# func_stripname prefix suffix name
17738# strip PREFIX and SUFFIX off of NAME.
17739# PREFIX and SUFFIX must not contain globbing or regex special
17740# characters, hashes, percent signs, but SUFFIX may contain a leading
17741# dot (in which case that matches only a dot).
17742func_stripname ()
17743{
17744 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17745 # positional parameters, so assign one to ordinary parameter first.
17746 func_stripname_result=${3}
17747 func_stripname_result=${func_stripname_result#"${1}"}
17748 func_stripname_result=${func_stripname_result%"${2}"}
17749}
17750
17751# func_opt_split
17752func_opt_split ()
17753{
17754 func_opt_split_opt=${1%%=*}
17755 func_opt_split_arg=${1#*=}
17756}
17757
17758# func_lo2o object
17759func_lo2o ()
17760{
17761 case ${1} in
17762 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17763 *) func_lo2o_result=${1} ;;
17764 esac
17765}
17766
17767# func_xform libobj-or-source
17768func_xform ()
17769{
17770 func_xform_result=${1%.*}.lo
17771}
17772
17773# func_arith arithmetic-term...
17774func_arith ()
17775{
17776 func_arith_result=$(( $* ))
17777}
17778
17779# func_len string
17780# STRING may not start with a hyphen.
17781func_len ()
17782{
17783 func_len_result=${#1}
17784}
17785
17786_LT_EOF
17787 ;;
17788 *) # Bourne compatible functions.
17789 cat << \_LT_EOF >> "$cfgfile"
17790
17791# func_dirname file append nondir_replacement
17792# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17793# otherwise set result to NONDIR_REPLACEMENT.
17794func_dirname ()
17795{
17796 # Extract subdirectory from the argument.
17797 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17798 if test "X$func_dirname_result" = "X${1}"; then
17799 func_dirname_result="${3}"
17800 else
17801 func_dirname_result="$func_dirname_result${2}"
17802 fi
17803}
17804
17805# func_basename file
17806func_basename ()
17807{
17808 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17809}
17810
17811
17812# func_stripname prefix suffix name
17813# strip PREFIX and SUFFIX off of NAME.
17814# PREFIX and SUFFIX must not contain globbing or regex special
17815# characters, hashes, percent signs, but SUFFIX may contain a leading
17816# dot (in which case that matches only a dot).
17817# func_strip_suffix prefix name
17818func_stripname ()
17819{
17820 case ${2} in
17821 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17822 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17823 esac
17824}
17825
17826# sed scripts:
17827my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17828my_sed_long_arg='1s/^-[^=]*=//'
17829
17830# func_opt_split
17831func_opt_split ()
17832{
17833 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17834 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17835}
17836
17837# func_lo2o object
17838func_lo2o ()
17839{
17840 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17841}
17842
17843# func_xform libobj-or-source
17844func_xform ()
17845{
17846 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17847}
17848
17849# func_arith arithmetic-term...
17850func_arith ()
17851{
17852 func_arith_result=`expr "$@"`
17853}
17854
17855# func_len string
17856# STRING may not start with a hyphen.
17857func_len ()
17858{
17859 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17860}
17861
17862_LT_EOF
17863esac
17864
17865case $lt_shell_append in
17866 yes)
17867 cat << \_LT_EOF >> "$cfgfile"
17868
17869# func_append var value
17870# Append VALUE to the end of shell variable VAR.
17871func_append ()
17872{
17873 eval "$1+=\$2"
17874}
17875_LT_EOF
17876 ;;
17877 *)
17878 cat << \_LT_EOF >> "$cfgfile"
17879
17880# func_append var value
17881# Append VALUE to the end of shell variable VAR.
17882func_append ()
17883{
17884 eval "$1=\$$1\$2"
17885}
17886
17887_LT_EOF
17888 ;;
17889 esac
17890
17891
17892 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17893 || (rm -f "$cfgfile"; exit 1)
17894
17895 mv -f "$cfgfile" "$ofile" ||
17896 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17897 chmod +x "$ofile"
17898
17899
17900 cat <<_LT_EOF >> "$ofile"
17901
17902# ### BEGIN LIBTOOL TAG CONFIG: D
17903
17904# The linker used to build libraries.
17905LD=$lt_LD_D
17906
17907# How to create reloadable object files.
17908reload_flag=$lt_reload_flag_D
17909reload_cmds=$lt_reload_cmds_D
17910
17911# Commands used to build an old-style archive.
17912old_archive_cmds=$lt_old_archive_cmds_D
17913
17914# A language specific compiler.
17915CC=$lt_compiler_D
17916
17917# Is the compiler the GNU compiler?
17918with_gcc=$GCC_D
17919
17920# Compiler flag to turn off builtin functions.
17921no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17922
17923# How to pass a linker flag through the compiler.
17924wl=$lt_lt_prog_compiler_wl_D
17925
17926# Additional compiler flags for building library objects.
17927pic_flag=$lt_lt_prog_compiler_pic_D
17928
17929# Compiler flag to prevent dynamic linking.
17930link_static_flag=$lt_lt_prog_compiler_static_D
17931
17932# Does compiler simultaneously support -c and -o options?
17933compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17934
17935# Whether or not to add -lc for building shared libraries.
17936build_libtool_need_lc=$archive_cmds_need_lc_D
17937
17938# Whether or not to disallow shared libs when runtime libs are static.
17939allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17940
17941# Compiler flag to allow reflexive dlopens.
17942export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17943
17944# Compiler flag to generate shared objects directly from archives.
17945whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17946
17947# Whether the compiler copes with passing no objects directly.
17948compiler_needs_object=$lt_compiler_needs_object_D
17949
17950# Create an old-style archive from a shared archive.
17951old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17952
17953# Create a temporary old-style archive to link instead of a shared archive.
17954old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17955
17956# Commands used to build a shared archive.
17957archive_cmds=$lt_archive_cmds_D
17958archive_expsym_cmds=$lt_archive_expsym_cmds_D
17959
17960# Commands used to build a loadable module if different from building
17961# a shared archive.
17962module_cmds=$lt_module_cmds_D
17963module_expsym_cmds=$lt_module_expsym_cmds_D
17964
17965# Whether we are building with GNU ld or not.
17966with_gnu_ld=$lt_with_gnu_ld_D
17967
17968# Flag that allows shared libraries with undefined symbols to be built.
17969allow_undefined_flag=$lt_allow_undefined_flag_D
17970
17971# Flag that enforces no undefined symbols.
17972no_undefined_flag=$lt_no_undefined_flag_D
17973
17974# Flag to hardcode \$libdir into a binary during linking.
17975# This must work even if \$libdir does not exist
17976hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17977
17978# If ld is used when linking, flag to hardcode \$libdir into a binary
17979# during linking. This must work even if \$libdir does not exist.
17980hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17981
17982# Whether we need a single "-rpath" flag with a separated argument.
17983hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17984
17985# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17986# DIR into the resulting binary.
17987hardcode_direct=$hardcode_direct_D
17988
17989# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17990# DIR into the resulting binary and the resulting library dependency is
17991# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17992# library is relocated.
17993hardcode_direct_absolute=$hardcode_direct_absolute_D
17994
17995# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17996# into the resulting binary.
17997hardcode_minus_L=$hardcode_minus_L_D
17998
17999# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18000# into the resulting binary.
18001hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18002
18003# Set to "yes" if building a shared library automatically hardcodes DIR
18004# into the library and all subsequent libraries and executables linked
18005# against it.
18006hardcode_automatic=$hardcode_automatic_D
18007
18008# Set to yes if linker adds runtime paths of dependent libraries
18009# to runtime path list.
18010inherit_rpath=$inherit_rpath_D
18011
18012# Whether libtool must link a program against all its dependency libraries.
18013link_all_deplibs=$link_all_deplibs_D
18014
18015# Fix the shell variable \$srcfile for the compiler.
18016fix_srcfile_path=$lt_fix_srcfile_path_D
18017
18018# Set to "yes" if exported symbols are required.
18019always_export_symbols=$always_export_symbols_D
18020
18021# The commands to list exported symbols.
18022export_symbols_cmds=$lt_export_symbols_cmds_D
18023
18024# Symbols that should not be listed in the preloaded symbols.
18025exclude_expsyms=$lt_exclude_expsyms_D
18026
18027# Symbols that must always be exported.
18028include_expsyms=$lt_include_expsyms_D
18029
18030# Commands necessary for linking programs (against libraries) with templates.
18031prelink_cmds=$lt_prelink_cmds_D
18032
18033# Specify filename containing input files.
18034file_list_spec=$lt_file_list_spec_D
18035
18036# How to hardcode a shared library path into an executable.
18037hardcode_action=$hardcode_action_D
18038
18039# ### END LIBTOOL TAG CONFIG: D
18040_LT_EOF
18041
18042 ;;
18043 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
Iain Buclawac677522018-11-02 08:29:50 +000018044 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18045s!`test -f '$<' || echo '$(srcdir)/'`!!
Iain Buclawb4c522f2018-10-28 19:51:47 +000018046_EOF
Iain Buclawac677522018-11-02 08:29:50 +000018047 sed -f vpsed$$ $ac_file > tmp$$
18048 mv tmp$$ $ac_file
18049 rm vpsed$$
18050 echo 'MULTISUBDIR =' >> $ac_file
18051 ml_norecursion=yes
18052 . ${multi_basedir}/config-ml.in
18053 { ml_norecursion=; unset ml_norecursion;}
18054 ;;
18055 "src/Makefile":F) cat > vpsed$$ << \_EOF
18056s!`test -f '$<' || echo '$(srcdir)/'`!!
18057_EOF
18058 sed -f vpsed$$ $ac_file > tmp$$
18059 mv tmp$$ $ac_file
18060 rm vpsed$$
18061 echo 'MULTISUBDIR =' >> $ac_file
18062 ml_norecursion=yes
18063 . ${multi_basedir}/config-ml.in
18064 { ml_norecursion=; unset ml_norecursion;}
18065 ;;
18066 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18067s!`test -f '$<' || echo '$(srcdir)/'`!!
18068_EOF
18069 sed -f vpsed$$ $ac_file > tmp$$
18070 mv tmp$$ $ac_file
18071 rm vpsed$$
18072 echo 'MULTISUBDIR =' >> $ac_file
18073 ml_norecursion=yes
18074 . ${multi_basedir}/config-ml.in
18075 { ml_norecursion=; unset ml_norecursion;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000018076 ;;
18077
18078 esac
18079done # for ac_tag
18080
18081
18082as_fn_exit 0
18083_ACEOF
18084ac_clean_files=$ac_clean_files_save
18085
18086test $ac_write_fail = 0 ||
Joseph Myers22e05272018-10-31 17:03:16 +000018087 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000018088
18089
18090# configure is writing to config.log, and then calls config.status.
18091# config.status does its own redirection, appending to config.log.
18092# Unfortunately, on DOS this fails, as config.log is still kept open
18093# by configure, so config.status won't be able to write to it; its
18094# output is simply discarded. So we exec the FD to /dev/null,
18095# effectively closing config.log, so it can be properly (re)opened and
18096# appended to by config.status. When coming back to configure, we
18097# need to make the FD available again.
18098if test "$no_create" != yes; then
18099 ac_cs_success=:
18100 ac_config_status_args=
18101 test "$silent" = yes &&
18102 ac_config_status_args="$ac_config_status_args --quiet"
18103 exec 5>/dev/null
18104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18105 exec 5>>config.log
18106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18107 # would make configure fail if this is the last instruction.
Joseph Myers22e05272018-10-31 17:03:16 +000018108 $ac_cs_success || as_fn_exit 1
Iain Buclawb4c522f2018-10-28 19:51:47 +000018109fi
18110if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18112$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18113fi
18114