blob: 7c019899c5c9610b70570ff04b3d184c24a184fc [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
636GDCFLAGSX
Iain Buclaw85041a52018-11-28 17:54:07 +0000637libtool_VERSION
Iain Buclawb4c522f2018-10-28 19:51:47 +0000638SPEC_PHOBOS_DEPS
639gdc_include_dir
Iain Buclawac677522018-11-02 08:29:50 +0000640libphobos_toolexeclibdir
641libphobos_toolexecdir
Iain Buclawb4c522f2018-10-28 19:51:47 +0000642gcc_version
Iain Buclawbb503122019-04-12 20:13:34 +0000643LIBZ
Iain Buclawb4c522f2018-10-28 19:51:47 +0000644BACKTRACE_SUPPORTS_THREADS
645BACKTRACE_USES_MALLOC
646BACKTRACE_SUPPORTED
647LIBBACKTRACE
648LIBATOMIC
649DCFG_HAVE_LIBATOMIC
650DCFG_HAVE_64BIT_ATOMICS
651DCFG_HAVE_ATOMIC_BUILTINS
Johannes Pfau36d7f152019-02-18 23:29:39 +0000652DCFG_HAVE_QSORT_R
Rainer Orthba838aa2019-04-14 09:24:26 +0000653OS_LINK_SPEC
Rainer Orth235d1c42019-04-14 09:30:42 +0000654DCFG_DLPI_TLS_MODID
Rainer Orth0b6e3122019-02-14 17:47:49 +0000655DRUNTIME_OS_MINFO_BRACKETING_FALSE
656DRUNTIME_OS_MINFO_BRACKETING_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000657DCFG_MINFO_BRACKETING
658DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
659DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
660DCFG_ARM_EABI_UNWINDER
661DCFG_THREAD_MODEL
662DRUNTIME_OS_SOLARIS_FALSE
663DRUNTIME_OS_SOLARIS_TRUE
664DRUNTIME_OS_MINGW_FALSE
665DRUNTIME_OS_MINGW_TRUE
666DRUNTIME_OS_LINUX_FALSE
667DRUNTIME_OS_LINUX_TRUE
668DRUNTIME_OS_OPENBSD_FALSE
669DRUNTIME_OS_OPENBSD_TRUE
670DRUNTIME_OS_NETBSD_FALSE
671DRUNTIME_OS_NETBSD_TRUE
672DRUNTIME_OS_FREEBSD_FALSE
673DRUNTIME_OS_FREEBSD_TRUE
674DRUNTIME_OS_DRAGONFLYBSD_FALSE
675DRUNTIME_OS_DRAGONFLYBSD_TRUE
676DRUNTIME_OS_DARWIN_FALSE
677DRUNTIME_OS_DARWIN_TRUE
678DRUNTIME_OS_ANDROID_FALSE
679DRUNTIME_OS_ANDROID_TRUE
680DRUNTIME_OS_AIX_FALSE
681DRUNTIME_OS_AIX_TRUE
682DRUNTIME_OS_UNIX_FALSE
683DRUNTIME_OS_UNIX_TRUE
684DRUNTIME_GC_ENABLE_FALSE
685DRUNTIME_GC_ENABLE_TRUE
686libphobos_srcdir
687libphobos_builddir
688get_gcc_base_ver
Rainer Orth7d31d332019-04-14 09:38:01 +0000689ENABLE_LIBPHOBOS_FALSE
690ENABLE_LIBPHOBOS_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000691phobos_compiler_shared_flag
692phobos_compiler_pic_flag
Iain Buclawb4c522f2018-10-28 19:51:47 +0000693OTOOL64
694OTOOL
695LIPO
696NMEDIT
697DSYMUTIL
698OBJDUMP
699LN_S
700NM
701ac_ct_DUMPBIN
702DUMPBIN
703LD
704FGREP
Iain Buclawb4c522f2018-10-28 19:51:47 +0000705SED
706LIBTOOL
707CFLAGS_FOR_BUILD
708CC_FOR_BUILD
709AR
710RANLIB
711MAINT
712MAINTAINER_MODE_FALSE
713MAINTAINER_MODE_TRUE
714GDCFLAGS
715GDC
716CCASFLAGS
717CCAS
Joseph Myers22e05272018-10-31 17:03:16 +0000718AM_BACKSLASH
719AM_DEFAULT_VERBOSITY
720AM_DEFAULT_V
721AM_V
Iain Buclawb4c522f2018-10-28 19:51:47 +0000722am__untar
723am__tar
724AMTAR
725am__leading_dot
726SET_MAKE
727AWK
728mkdir_p
729MKDIR_P
730INSTALL_STRIP_PROGRAM
731STRIP
732install_sh
733MAKEINFO
734AUTOHEADER
735AUTOMAKE
736AUTOCONF
737ACLOCAL
738VERSION
739PACKAGE
740CYGPATH_W
741am__isrc
742INSTALL_DATA
743INSTALL_SCRIPT
744INSTALL_PROGRAM
Rainer Orth235d1c42019-04-14 09:30:42 +0000745EGREP
746GREP
747CPP
748OBJEXT
749EXEEXT
750ac_ct_CC
751CPPFLAGS
752LDFLAGS
753CFLAGS
754CC
Iain Buclawb4c522f2018-10-28 19:51:47 +0000755target_os
756target_vendor
757target_cpu
758target
759host_os
760host_vendor
761host_cpu
762host
763build_os
764build_vendor
765build_cpu
766build
767multi_basedir
768target_alias
769host_alias
770build_alias
771LIBS
772ECHO_T
773ECHO_N
774ECHO_C
775DEFS
776mandir
777localedir
778libdir
779psdir
780pdfdir
781dvidir
782htmldir
783infodir
784docdir
785oldincludedir
786includedir
787localstatedir
788sharedstatedir
789sysconfdir
790datadir
791datarootdir
792libexecdir
793sbindir
794bindir
795program_transform_name
796prefix
797exec_prefix
798PACKAGE_URL
799PACKAGE_BUGREPORT
800PACKAGE_STRING
801PACKAGE_VERSION
802PACKAGE_TARNAME
803PACKAGE_NAME
804PATH_SEPARATOR
805SHELL'
Rainer Orth0b6e3122019-02-14 17:47:49 +0000806ac_subst_files='DRTSTUFF_SPEC'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000807ac_user_opts='
808enable_option_checking
809enable_multilib
Joseph Myers22e05272018-10-31 17:03:16 +0000810enable_silent_rules
Iain Buclawb4c522f2018-10-28 19:51:47 +0000811enable_maintainer_mode
812enable_shared
813enable_static
814with_pic
815enable_fast_install
816with_gnu_ld
817enable_libtool_lock
Rainer Orth7d31d332019-04-14 09:38:01 +0000818enable_libphobos
Iain Buclawb4c522f2018-10-28 19:51:47 +0000819with_gcc_major_version_only
820enable_werror
821enable_druntime_gc
822enable_unix
823enable_thread_lib
824with_libatomic
825with_libbacktrace
826with_target_system_zlib
827with_cross_host
Iain Buclawac677522018-11-02 08:29:50 +0000828enable_version_specific_runtime_libs
Iain Buclawb4c522f2018-10-28 19:51:47 +0000829'
830 ac_precious_vars='build_alias
831host_alias
832target_alias
Rainer Orth235d1c42019-04-14 09:30:42 +0000833CC
834CFLAGS
835LDFLAGS
836LIBS
837CPPFLAGS
838CPP'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000839
840
841# Initialize some variables set by options.
842ac_init_help=
843ac_init_version=false
844ac_unrecognized_opts=
845ac_unrecognized_sep=
846# The variables have the same names as the options, with
847# dashes changed to underlines.
848cache_file=/dev/null
849exec_prefix=NONE
850no_create=
851no_recursion=
852prefix=NONE
853program_prefix=NONE
854program_suffix=NONE
855program_transform_name=s,x,x,
856silent=
857site=
858srcdir=
859verbose=
860x_includes=NONE
861x_libraries=NONE
862
863# Installation directory options.
864# These are left unexpanded so users can "make install exec_prefix=/foo"
865# and all the variables that are supposed to be based on exec_prefix
866# by default will actually change.
867# Use braces instead of parens because sh, perl, etc. also accept them.
868# (The list follows the same order as the GNU Coding Standards.)
869bindir='${exec_prefix}/bin'
870sbindir='${exec_prefix}/sbin'
871libexecdir='${exec_prefix}/libexec'
872datarootdir='${prefix}/share'
873datadir='${datarootdir}'
874sysconfdir='${prefix}/etc'
875sharedstatedir='${prefix}/com'
876localstatedir='${prefix}/var'
877includedir='${prefix}/include'
878oldincludedir='/usr/include'
879docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880infodir='${datarootdir}/info'
881htmldir='${docdir}'
882dvidir='${docdir}'
883pdfdir='${docdir}'
884psdir='${docdir}'
885libdir='${exec_prefix}/lib'
886localedir='${datarootdir}/locale'
887mandir='${datarootdir}/man'
888
889ac_prev=
890ac_dashdash=
891for ac_option
892do
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
898 fi
899
900 case $ac_option in
Joseph Myers22e05272018-10-31 17:03:16 +0000901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *=) ac_optarg= ;;
903 *) ac_optarg=yes ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +0000904 esac
905
906 # Accept the important Cygnus configure options, so we can diagnose typos.
907
908 case $ac_dashdash$ac_option in
909 --)
910 ac_dashdash=yes ;;
911
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
916
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
921
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
928
929 --config-cache | -C)
930 cache_file=config.cache ;;
931
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
936
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
943
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000948 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953"enable_$ac_useropt"
954"*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
959
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
964
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
969
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000974 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979"enable_$ac_useropt"
980"*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
985
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
994
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
998
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1005
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1010
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1016
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1023
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1028
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1033
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1040
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1045
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1052
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1057
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1061
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1065
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1069
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1078
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1083
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1090
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1097
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1114
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1119
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1124
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1128
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1134
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1145
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1150
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1155
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1162
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1167
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1170
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1173
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001178 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183"with_$ac_useropt"
1184"*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1189
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001194 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199"with_$ac_useropt"
1200"*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1205
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1209
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1216
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1223
Joseph Myers22e05272018-10-31 17:03:16 +00001224 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225Try \`$0 --help' for more information"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001226 ;;
1227
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
Joseph Myers22e05272018-10-31 17:03:16 +00001233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001234 esac
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1237
1238 *)
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Joseph Myers22e05272018-10-31 17:03:16 +00001243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001244 ;;
1245
1246 esac
1247done
1248
1249if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00001251 as_fn_error $? "missing argument to $ac_option"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001252fi
1253
1254if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00001257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1260fi
1261
1262# Check all directory arguments for consistency.
1263for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Iain Buclawd8b1f492019-02-10 22:10:22 +00001266 libdir localedir mandir
Iain Buclawb4c522f2018-10-28 19:51:47 +00001267do
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
Joseph Myers22e05272018-10-31 17:03:16 +00001280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001281done
1282
1283# There might be people who depend on the old broken behavior: `$host'
1284# used to hold the argument of --host etc.
1285# FIXME: To remove some day.
1286build=$build_alias
1287host=$host_alias
1288target=$target_alias
1289
1290# FIXME: To remove some day.
1291if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
Iain Buclawb4c522f2018-10-28 19:51:47 +00001294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297fi
1298
1299ac_tool_prefix=
1300test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302test "$silent" = yes && exec 6>/dev/null
1303
1304
1305ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306ac_ls_di=`ls -di .` &&
1307ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Joseph Myers22e05272018-10-31 17:03:16 +00001308 as_fn_error $? "working directory cannot be determined"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001309test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Joseph Myers22e05272018-10-31 17:03:16 +00001310 as_fn_error $? "pwd does not report name of working directory"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001311
1312
1313# Find the source files, if location was not specified.
1314if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322$as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1343 fi
1344else
1345 ac_srcdir_defaulted=no
1346fi
1347if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Joseph Myers22e05272018-10-31 17:03:16 +00001349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001350fi
1351ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352ac_abs_confdir=`(
Joseph Myers22e05272018-10-31 17:03:16 +00001353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001354 pwd)`
1355# When building in place, set srcdir=.
1356if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358fi
1359# Remove unnecessary trailing slashes from srcdir.
1360# Double slashes in file names in object file debugging info
1361# mess up M-x gdb in Emacs.
1362case $srcdir in
1363*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364esac
1365for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370done
1371
1372#
1373# Report the --help message.
1374#
1375if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1380
1381Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386Defaults for the options are specified in brackets.
1387
1388Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
Joseph Myers22e05272018-10-31 17:03:16 +00001393 -q, --quiet, --silent do not print \`checking ...' messages
Iain Buclawb4c522f2018-10-28 19:51:47 +00001394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
1399Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1404
1405By default, \`make install' will install all the files in
1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408for instance \`--prefix=\$HOME'.
1409
1410For better control, use the options below.
1411
1412Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432_ACEOF
1433
1434 cat <<\_ACEOF
1435
1436Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445_ACEOF
1446fi
1447
1448if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of package-unused version-unused:";;
1451 esac
1452 cat <<\_ACEOF
1453
1454Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-multilib build many library versions (default)
Joseph Myers22e05272018-10-31 17:03:16 +00001459 --enable-silent-rules less verbose build output (undo: "make V=1")
1460 --disable-silent-rules verbose build output (undo: "make V=0")
1461 --enable-maintainer-mode
1462 enable make rules and dependencies not useful (and
1463 sometimes confusing) to the casual installer
Iain Buclawb4c522f2018-10-28 19:51:47 +00001464 --enable-shared[=PKGS] build shared libraries [default=yes]
1465 --enable-static[=PKGS] build static libraries [default=yes]
1466 --enable-fast-install[=PKGS]
1467 optimize for fast installation [default=yes]
1468 --disable-libtool-lock avoid locking (might break parallel builds)
Rainer Orth7d31d332019-04-14 09:38:01 +00001469 --enable-libphobos Enable libphobos
Iain Buclawb4c522f2018-10-28 19:51:47 +00001470 --enable-werror turns on -Werror [default=no]
1471 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1472 --enable-unix enables Unix runtime (default: yes, for Unix
1473 targets)
1474 --enable-thread-lib=<arg>
1475 specify linker option for the system thread library
1476 (default: autodetect)
Iain Buclawac677522018-11-02 08:29:50 +00001477 --enable-version-specific-runtime-libs
1478 Specify that runtime libraries should be installed
1479 in a compiler-specific directory
Iain Buclawb4c522f2018-10-28 19:51:47 +00001480
1481Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-pic try to use only PIC/non-PIC objects [default=use
1485 both]
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487 --with-gcc-major-version-only
1488 use only GCC major number in filesystem paths
1489 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1490 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1491 auto)
Iain Buclawbb503122019-04-12 20:13:34 +00001492 --with-target-system-zlib={yes,no,auto}
Iain Buclawb4c522f2018-10-28 19:51:47 +00001493 use installed libz (default: no)
1494 --with-cross-host=HOST configuring with a cross compiler
1495
1496Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
Joseph Myers22e05272018-10-31 17:03:16 +00001502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Iain Buclawb4c522f2018-10-28 19:51:47 +00001503 you have headers in a nonstandard directory <include dir>
Rainer Orth235d1c42019-04-14 09:30:42 +00001504 CPP C preprocessor
Iain Buclawb4c522f2018-10-28 19:51:47 +00001505 CCAS assembler compiler command (defaults to CC)
1506 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1507 GDC D compiler command
1508 GDCFLAGS D compiler flags
Iain Buclawb4c522f2018-10-28 19:51:47 +00001509
1510Use these variables to override the choices made by `configure' or to help
1511it to find libraries and programs with nonstandard names/locations.
1512
1513Report bugs to the package provider.
1514_ACEOF
1515ac_status=$?
1516fi
1517
1518if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1525
1526case "$ac_dir" in
1527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528*)
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536esac
1537ac_abs_top_builddir=$ac_pwd
1538ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539# for backward compatibility:
1540ac_top_builddir=$ac_top_build_prefix
1541
1542case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555esac
1556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571fi
1572
1573test -n "$ac_init_help" && exit $ac_status
1574if $ac_init_version; then
1575 cat <<\_ACEOF
1576package-unused configure version-unused
Joseph Myers22e05272018-10-31 17:03:16 +00001577generated by GNU Autoconf 2.69
Iain Buclawb4c522f2018-10-28 19:51:47 +00001578
Rainer Orth0b6e3122019-02-14 17:47:49 +00001579Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +00001580This configure script is free software; the Free Software Foundation
1581gives unlimited permission to copy, distribute and modify it.
1582_ACEOF
1583 exit
1584fi
1585
1586## ------------------------ ##
1587## Autoconf initialization. ##
1588## ------------------------ ##
1589
1590# ac_fn_c_try_compile LINENO
1591# --------------------------
1592# Try to compile conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_compile ()
1594{
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617else
1618 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622fi
Joseph Myers22e05272018-10-31 17:03:16 +00001623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001625
1626} # ac_fn_c_try_compile
1627
Iain Buclawb4c522f2018-10-28 19:51:47 +00001628# ac_fn_c_try_cpp LINENO
1629# ----------------------
1630# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631ac_fn_c_try_cpp ()
1632{
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00001649 test $ac_status = 0; } > conftest.i && {
Iain Buclawb4c522f2018-10-28 19:51:47 +00001650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 }; then :
1653 ac_retval=0
1654else
1655 $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659fi
Joseph Myers22e05272018-10-31 17:03:16 +00001660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001662
1663} # ac_fn_c_try_cpp
1664
Iain Buclawb4c522f2018-10-28 19:51:47 +00001665# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666# -------------------------------------------------------
1667# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668# the include files in INCLUDES and setting the cache variable VAR
1669# accordingly.
1670ac_fn_c_check_header_mongrel ()
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Joseph Myers22e05272018-10-31 17:03:16 +00001673 if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001676if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001677 $as_echo_n "(cached) " >&6
1678fi
1679eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681$as_echo "$ac_res" >&6; }
1682else
1683 # Is the header compilable?
1684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685$as_echo_n "checking $2 usability... " >&6; }
1686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687/* end confdefs.h. */
1688$4
1689#include <$2>
1690_ACEOF
1691if ac_fn_c_try_compile "$LINENO"; then :
1692 ac_header_compiler=yes
1693else
1694 ac_header_compiler=no
1695fi
1696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698$as_echo "$ac_header_compiler" >&6; }
1699
1700# Is the header present?
1701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702$as_echo_n "checking $2 presence... " >&6; }
1703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704/* end confdefs.h. */
1705#include <$2>
1706_ACEOF
1707if ac_fn_c_try_cpp "$LINENO"; then :
1708 ac_header_preproc=yes
1709else
1710 ac_header_preproc=no
1711fi
Joseph Myers22e05272018-10-31 17:03:16 +00001712rm -f conftest.err conftest.i conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00001713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714$as_echo "$ac_header_preproc" >&6; }
1715
1716# So? What about this header?
1717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718 yes:no: )
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723 ;;
1724 no:yes:* )
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1728$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1732$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 ;;
1736esac
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001739if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001740 $as_echo_n "(cached) " >&6
1741else
1742 eval "$3=\$ac_header_compiler"
1743fi
1744eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746$as_echo "$ac_res" >&6; }
1747fi
Joseph Myers22e05272018-10-31 17:03:16 +00001748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Iain Buclawb4c522f2018-10-28 19:51:47 +00001749
1750} # ac_fn_c_check_header_mongrel
Rainer Orth235d1c42019-04-14 09:30:42 +00001751
1752# ac_fn_c_try_run LINENO
1753# ----------------------
1754# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755# that executables *can* be run.
1756ac_fn_c_try_run ()
1757{
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_link"
1760case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_link") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770 { { case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_try") 2>&5
1777 ac_status=$?
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; }; }; then :
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: program exited with status $ac_status" >&5
1783 $as_echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
1785
1786 ac_retval=$ac_status
1787fi
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1791
1792} # ac_fn_c_try_run
1793
1794# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795# -------------------------------------------------------
1796# Tests whether HEADER exists and can be compiled using the include files in
1797# INCLUDES, setting the cache variable VAR accordingly.
1798ac_fn_c_check_header_compile ()
1799{
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805else
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h. */
1808$4
1809#include <$2>
1810_ACEOF
1811if ac_fn_c_try_compile "$LINENO"; then :
1812 eval "$3=yes"
1813else
1814 eval "$3=no"
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817fi
1818eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820$as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823} # ac_fn_c_check_header_compile
1824
1825# ac_fn_d_try_compile LINENO
1826# --------------------------
1827# Try to compile conftest.$ac_ext, and return whether this succeeded.
1828ac_fn_d_try_compile ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1833case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1845 fi
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_d_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1851 ac_retval=0
1852else
1853 $as_echo "$as_me: failed program was:" >&5
1854sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 ac_retval=1
1857fi
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1860
1861} # ac_fn_d_try_compile
1862
1863# ac_fn_c_try_link LINENO
1864# -----------------------
1865# Try to link conftest.$ac_ext, and return whether this succeeded.
1866ac_fn_c_try_link ()
1867{
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext conftest$ac_exeext
1870 if { { ac_try="$ac_link"
1871case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874esac
1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876$as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_link") 2>conftest.err
1878 ac_status=$?
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1883 fi
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_c_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest$ac_exeext && {
1889 test "$cross_compiling" = yes ||
1890 test -x conftest$ac_exeext
1891 }; then :
1892 ac_retval=0
1893else
1894 $as_echo "$as_me: failed program was:" >&5
1895sed 's/^/| /' conftest.$ac_ext >&5
1896
1897 ac_retval=1
1898fi
1899 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901 # interfere with the next link command; also delete a directory that is
1902 # left behind by Apple's compiler. We do this before executing the actions.
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1906
1907} # ac_fn_c_try_link
1908
1909# ac_fn_c_check_func LINENO FUNC VAR
1910# ----------------------------------
1911# Tests whether FUNC exists, setting the cache variable VAR accordingly
1912ac_fn_c_check_func ()
1913{
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916$as_echo_n "checking for $2... " >&6; }
1917if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1919else
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h. */
1922/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1924#define $2 innocuous_$2
1925
1926/* System header to define __stub macros and hopefully few prototypes,
1927 which can conflict with char $2 (); below.
1928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1929 <limits.h> exists even on freestanding compilers. */
1930
1931#ifdef __STDC__
1932# include <limits.h>
1933#else
1934# include <assert.h>
1935#endif
1936
1937#undef $2
1938
1939/* Override any GCC internal prototype to avoid an error.
1940 Use char because int might match the return type of a GCC
1941 builtin and then its argument prototype would still apply. */
1942#ifdef __cplusplus
1943extern "C"
1944#endif
1945char $2 ();
1946/* The GNU C library defines this for functions which it implements
1947 to always fail with ENOSYS. Some functions are actually named
1948 something starting with __ and the normal name is an alias. */
1949#if defined __stub_$2 || defined __stub___$2
1950choke me
1951#endif
1952
1953int
1954main ()
1955{
1956return $2 ();
1957 ;
1958 return 0;
1959}
1960_ACEOF
1961if ac_fn_c_try_link "$LINENO"; then :
1962 eval "$3=yes"
1963else
1964 eval "$3=no"
1965fi
1966rm -f core conftest.err conftest.$ac_objext \
1967 conftest$ac_exeext conftest.$ac_ext
1968fi
1969eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971$as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974} # ac_fn_c_check_func
1975
1976# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1977# ----------------------------------------------------
1978# Tries to find if the field MEMBER exists in type AGGR, after including
1979# INCLUDES, setting cache variable VAR accordingly.
1980ac_fn_c_check_member ()
1981{
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1984$as_echo_n "checking for $2.$3... " >&6; }
1985if eval \${$4+:} false; then :
1986 $as_echo_n "(cached) " >&6
1987else
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h. */
1990$5
1991int
1992main ()
1993{
1994static $2 ac_aggr;
1995if (ac_aggr.$3)
1996return 0;
1997 ;
1998 return 0;
1999}
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002 eval "$4=yes"
2003else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h. */
2006$5
2007int
2008main ()
2009{
2010static $2 ac_aggr;
2011if (sizeof ac_aggr.$3)
2012return 0;
2013 ;
2014 return 0;
2015}
2016_ACEOF
2017if ac_fn_c_try_compile "$LINENO"; then :
2018 eval "$4=yes"
2019else
2020 eval "$4=no"
2021fi
2022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025fi
2026eval ac_res=\$$4
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028$as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030
2031} # ac_fn_c_check_member
2032
2033# ac_fn_d_try_link LINENO
2034# -----------------------
2035# Try to link conftest.$ac_ext, and return whether this succeeded.
2036ac_fn_d_try_link ()
2037{
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 rm -f conftest.$ac_objext conftest$ac_exeext
2040 if { { ac_try="$ac_link"
2041case "(($ac_try" in
2042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043 *) ac_try_echo=$ac_try;;
2044esac
2045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2046$as_echo "$ac_try_echo"; } >&5
2047 (eval "$ac_link") 2>conftest.err
2048 ac_status=$?
2049 if test -s conftest.err; then
2050 grep -v '^ *+' conftest.err >conftest.er1
2051 cat conftest.er1 >&5
2052 mv -f conftest.er1 conftest.err
2053 fi
2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; } && {
2056 test -z "$ac_d_werror_flag" ||
2057 test ! -s conftest.err
2058 } && test -s conftest$ac_exeext && {
2059 test "$cross_compiling" = yes ||
2060 test -x conftest$ac_exeext
2061 }; then :
2062 ac_retval=0
2063else
2064 $as_echo "$as_me: failed program was:" >&5
2065sed 's/^/| /' conftest.$ac_ext >&5
2066
2067 ac_retval=1
2068fi
2069 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2070 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2071 # interfere with the next link command; also delete a directory that is
2072 # left behind by Apple's compiler. We do this before executing the actions.
2073 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 as_fn_set_status $ac_retval
2076
2077} # ac_fn_d_try_link
Iain Buclawb4c522f2018-10-28 19:51:47 +00002078cat >config.log <<_ACEOF
2079This file contains any messages produced by compilers while
2080running configure, to aid debugging if configure makes a mistake.
2081
2082It was created by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +00002083generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +00002084
2085 $ $0 $@
2086
2087_ACEOF
2088exec 5>>config.log
2089{
2090cat <<_ASUNAME
2091## --------- ##
2092## Platform. ##
2093## --------- ##
2094
2095hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2096uname -m = `(uname -m) 2>/dev/null || echo unknown`
2097uname -r = `(uname -r) 2>/dev/null || echo unknown`
2098uname -s = `(uname -s) 2>/dev/null || echo unknown`
2099uname -v = `(uname -v) 2>/dev/null || echo unknown`
2100
2101/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2102/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2103
2104/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2105/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2106/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2107/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2108/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2109/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2110/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2111
2112_ASUNAME
2113
2114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115for as_dir in $PATH
2116do
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 $as_echo "PATH: $as_dir"
2120 done
2121IFS=$as_save_IFS
2122
2123} >&5
2124
2125cat >&5 <<_ACEOF
2126
2127
2128## ----------- ##
2129## Core tests. ##
2130## ----------- ##
2131
2132_ACEOF
2133
2134
2135# Keep a trace of the command line.
2136# Strip out --no-create and --no-recursion so they do not pile up.
2137# Strip out --silent because we don't want to record it for future runs.
2138# Also quote any args containing shell meta-characters.
2139# Make two passes to allow for proper duplicate-argument suppression.
2140ac_configure_args=
2141ac_configure_args0=
2142ac_configure_args1=
2143ac_must_keep_next=false
2144for ac_pass in 1 2
2145do
2146 for ac_arg
2147 do
2148 case $ac_arg in
2149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2151 | -silent | --silent | --silen | --sile | --sil)
2152 continue ;;
2153 *\'*)
2154 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2155 esac
2156 case $ac_pass in
2157 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2158 2)
2159 as_fn_append ac_configure_args1 " '$ac_arg'"
2160 if test $ac_must_keep_next = true; then
2161 ac_must_keep_next=false # Got value, back to normal.
2162 else
2163 case $ac_arg in
2164 *=* | --config-cache | -C | -disable-* | --disable-* \
2165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2167 | -with-* | --with-* | -without-* | --without-* | --x)
2168 case "$ac_configure_args0 " in
2169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2170 esac
2171 ;;
2172 -* ) ac_must_keep_next=true ;;
2173 esac
2174 fi
2175 as_fn_append ac_configure_args " '$ac_arg'"
2176 ;;
2177 esac
2178 done
2179done
2180{ ac_configure_args0=; unset ac_configure_args0;}
2181{ ac_configure_args1=; unset ac_configure_args1;}
2182
2183# When interrupted or exit'd, cleanup temporary files, and complete
2184# config.log. We remove comments because anyway the quotes in there
2185# would cause problems or look ugly.
2186# WARNING: Use '\'' to represent an apostrophe within the trap.
2187# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2188trap 'exit_status=$?
2189 # Save into config.log some information that might help in debugging.
2190 {
2191 echo
2192
Joseph Myers22e05272018-10-31 17:03:16 +00002193 $as_echo "## ---------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002194## Cache variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002195## ---------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002196 echo
2197 # The following way of writing the cache mishandles newlines in values,
2198(
2199 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2200 eval ac_val=\$$ac_var
2201 case $ac_val in #(
2202 *${as_nl}*)
2203 case $ac_var in #(
2204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2205$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2206 esac
2207 case $ac_var in #(
2208 _ | IFS | as_nl) ;; #(
2209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2210 *) { eval $ac_var=; unset $ac_var;} ;;
2211 esac ;;
2212 esac
2213 done
2214 (set) 2>&1 |
2215 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2216 *${as_nl}ac_space=\ *)
2217 sed -n \
2218 "s/'\''/'\''\\\\'\'''\''/g;
2219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2220 ;; #(
2221 *)
2222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2223 ;;
2224 esac |
2225 sort
2226)
2227 echo
2228
Joseph Myers22e05272018-10-31 17:03:16 +00002229 $as_echo "## ----------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002230## Output variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002231## ----------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002232 echo
2233 for ac_var in $ac_subst_vars
2234 do
2235 eval ac_val=\$$ac_var
2236 case $ac_val in
2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238 esac
2239 $as_echo "$ac_var='\''$ac_val'\''"
2240 done | sort
2241 echo
2242
2243 if test -n "$ac_subst_files"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002244 $as_echo "## ------------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002245## File substitutions. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002246## ------------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002247 echo
2248 for ac_var in $ac_subst_files
2249 do
2250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
2255 done | sort
2256 echo
2257 fi
2258
2259 if test -s confdefs.h; then
Joseph Myers22e05272018-10-31 17:03:16 +00002260 $as_echo "## ----------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002261## confdefs.h. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002262## ----------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002263 echo
2264 cat confdefs.h
2265 echo
2266 fi
2267 test "$ac_signal" != 0 &&
2268 $as_echo "$as_me: caught signal $ac_signal"
2269 $as_echo "$as_me: exit $exit_status"
2270 } >&5
2271 rm -f core *.core core.conftest.* &&
2272 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2273 exit $exit_status
2274' 0
2275for ac_signal in 1 2 13 15; do
2276 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2277done
2278ac_signal=0
2279
2280# confdefs.h avoids OS command line length limits that DEFS can exceed.
2281rm -f -r conftest* confdefs.h
2282
2283$as_echo "/* confdefs.h */" > confdefs.h
2284
2285# Predefined preprocessor variables.
2286
2287cat >>confdefs.h <<_ACEOF
2288#define PACKAGE_NAME "$PACKAGE_NAME"
2289_ACEOF
2290
2291cat >>confdefs.h <<_ACEOF
2292#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2293_ACEOF
2294
2295cat >>confdefs.h <<_ACEOF
2296#define PACKAGE_VERSION "$PACKAGE_VERSION"
2297_ACEOF
2298
2299cat >>confdefs.h <<_ACEOF
2300#define PACKAGE_STRING "$PACKAGE_STRING"
2301_ACEOF
2302
2303cat >>confdefs.h <<_ACEOF
2304#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2305_ACEOF
2306
2307cat >>confdefs.h <<_ACEOF
2308#define PACKAGE_URL "$PACKAGE_URL"
2309_ACEOF
2310
2311
2312# Let the site file select an alternate cache file if it wants to.
2313# Prefer an explicitly selected file to automatically selected ones.
2314ac_site_file1=NONE
2315ac_site_file2=NONE
2316if test -n "$CONFIG_SITE"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002317 # We do not want a PATH search for config.site.
2318 case $CONFIG_SITE in #((
2319 -*) ac_site_file1=./$CONFIG_SITE;;
2320 */*) ac_site_file1=$CONFIG_SITE;;
2321 *) ac_site_file1=./$CONFIG_SITE;;
2322 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +00002323elif test "x$prefix" != xNONE; then
2324 ac_site_file1=$prefix/share/config.site
2325 ac_site_file2=$prefix/etc/config.site
2326else
2327 ac_site_file1=$ac_default_prefix/share/config.site
2328 ac_site_file2=$ac_default_prefix/etc/config.site
2329fi
2330for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331do
2332 test "x$ac_site_file" = xNONE && continue
Joseph Myers22e05272018-10-31 17:03:16 +00002333 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2335$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336 sed 's/^/| /' "$ac_site_file" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00002337 . "$ac_site_file" \
2338 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2340as_fn_error $? "failed to load site script $ac_site_file
2341See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002342 fi
2343done
2344
2345if test -r "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002346 # Some versions of bash will fail to source /dev/null (special files
2347 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2348 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2350$as_echo "$as_me: loading cache $cache_file" >&6;}
2351 case $cache_file in
2352 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2353 *) . "./$cache_file";;
2354 esac
2355 fi
2356else
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2358$as_echo "$as_me: creating cache $cache_file" >&6;}
2359 >$cache_file
2360fi
2361
2362# Check that the precious variables saved in the cache have kept the same
2363# value.
2364ac_cache_corrupted=false
2365for ac_var in $ac_precious_vars; do
2366 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2367 eval ac_new_set=\$ac_env_${ac_var}_set
2368 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2369 eval ac_new_val=\$ac_env_${ac_var}_value
2370 case $ac_old_set,$ac_new_set in
2371 set,)
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2373$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2374 ac_cache_corrupted=: ;;
2375 ,set)
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2377$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2378 ac_cache_corrupted=: ;;
2379 ,);;
2380 *)
2381 if test "x$ac_old_val" != "x$ac_new_val"; then
2382 # differences in whitespace do not lead to failure.
2383 ac_old_val_w=`echo x $ac_old_val`
2384 ac_new_val_w=`echo x $ac_new_val`
2385 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2387$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2388 ac_cache_corrupted=:
2389 else
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2391$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2392 eval $ac_var=\$ac_old_val
2393 fi
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2395$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2397$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2398 fi;;
2399 esac
2400 # Pass precious variables to config.status.
2401 if test "$ac_new_set" = set; then
2402 case $ac_new_val in
2403 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2404 *) ac_arg=$ac_var=$ac_new_val ;;
2405 esac
2406 case " $ac_configure_args " in
2407 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2408 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2409 esac
2410 fi
2411done
2412if $ac_cache_corrupted; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2416$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002417 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002418fi
2419## -------------------- ##
2420## Main body of script. ##
2421## -------------------- ##
2422
2423ac_ext=c
2424ac_cpp='$CPP $CPPFLAGS'
2425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428
2429
2430
2431
2432
2433
2434ac_config_headers="$ac_config_headers config.h"
2435
2436
2437# Default to --enable-multilib
2438# Check whether --enable-multilib was given.
2439if test "${enable_multilib+set}" = set; then :
2440 enableval=$enable_multilib; case "$enableval" in
2441 yes) multilib=yes ;;
2442 no) multilib=no ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002443 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002444 esac
2445else
2446 multilib=yes
2447fi
2448
2449
2450# We may get other options which we leave undocumented:
2451# --with-target-subdir, --with-multisrctop, --with-multisubdir
2452# See config-ml.in if you want the gory details.
2453
2454if test "$srcdir" = "."; then
2455 if test "$with_target_subdir" != "."; then
2456 multi_basedir="$srcdir/$with_multisrctop../.."
2457 else
2458 multi_basedir="$srcdir/$with_multisrctop.."
2459 fi
2460else
2461 multi_basedir="$srcdir/.."
2462fi
2463
2464
2465# Even if the default multilib is not a cross compilation,
2466# it may be that some of the other multilibs are.
2467if test $cross_compiling = no && test $multilib = yes \
2468 && test "x${with_multisubdir}" != x ; then
2469 cross_compiling=maybe
2470fi
2471
2472ac_config_commands="$ac_config_commands default-1"
2473
2474ac_aux_dir=
2475for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Joseph Myers22e05272018-10-31 17:03:16 +00002476 if test -f "$ac_dir/install-sh"; then
2477 ac_aux_dir=$ac_dir
2478 ac_install_sh="$ac_aux_dir/install-sh -c"
2479 break
2480 elif test -f "$ac_dir/install.sh"; then
2481 ac_aux_dir=$ac_dir
2482 ac_install_sh="$ac_aux_dir/install.sh -c"
2483 break
2484 elif test -f "$ac_dir/shtool"; then
2485 ac_aux_dir=$ac_dir
2486 ac_install_sh="$ac_aux_dir/shtool install -c"
2487 break
2488 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00002489done
2490if test -z "$ac_aux_dir"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002491 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002492fi
2493
2494# These three variables are undocumented and unsupported,
2495# and are intended to be withdrawn in a future Autoconf release.
2496# They can cause serious problems if a builder's source tree is in a directory
2497# whose full name contains unusual characters.
2498ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2499ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2500ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2501
2502
2503# Make sure we can run config.sub.
2504$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Joseph Myers22e05272018-10-31 17:03:16 +00002505 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002506
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2508$as_echo_n "checking build system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002509if ${ac_cv_build+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002510 $as_echo_n "(cached) " >&6
2511else
2512 ac_build_alias=$build_alias
2513test "x$ac_build_alias" = x &&
2514 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2515test "x$ac_build_alias" = x &&
Joseph Myers22e05272018-10-31 17:03:16 +00002516 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002517ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002518 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002519
2520fi
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2522$as_echo "$ac_cv_build" >&6; }
2523case $ac_cv_build in
2524*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002525*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002526esac
2527build=$ac_cv_build
2528ac_save_IFS=$IFS; IFS='-'
2529set x $ac_cv_build
2530shift
2531build_cpu=$1
2532build_vendor=$2
2533shift; shift
2534# Remember, the first character of IFS is used to create $*,
2535# except with old shells:
2536build_os=$*
2537IFS=$ac_save_IFS
2538case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2539
2540
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2542$as_echo_n "checking host system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002543if ${ac_cv_host+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002544 $as_echo_n "(cached) " >&6
2545else
2546 if test "x$host_alias" = x; then
2547 ac_cv_host=$ac_cv_build
2548else
2549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002550 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002551fi
2552
2553fi
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2555$as_echo "$ac_cv_host" >&6; }
2556case $ac_cv_host in
2557*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002558*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002559esac
2560host=$ac_cv_host
2561ac_save_IFS=$IFS; IFS='-'
2562set x $ac_cv_host
2563shift
2564host_cpu=$1
2565host_vendor=$2
2566shift; shift
2567# Remember, the first character of IFS is used to create $*,
2568# except with old shells:
2569host_os=$*
2570IFS=$ac_save_IFS
2571case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2572
2573
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2575$as_echo_n "checking target system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002576if ${ac_cv_target+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002577 $as_echo_n "(cached) " >&6
2578else
2579 if test "x$target_alias" = x; then
2580 ac_cv_target=$ac_cv_host
2581else
2582 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002583 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002584fi
2585
2586fi
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2588$as_echo "$ac_cv_target" >&6; }
2589case $ac_cv_target in
2590*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002591*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002592esac
2593target=$ac_cv_target
2594ac_save_IFS=$IFS; IFS='-'
2595set x $ac_cv_target
2596shift
2597target_cpu=$1
2598target_vendor=$2
2599shift; shift
2600# Remember, the first character of IFS is used to create $*,
2601# except with old shells:
2602target_os=$*
2603IFS=$ac_save_IFS
2604case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2605
2606
2607# The aliases save the names the user supplied, while $host etc.
2608# will get canonicalized.
2609test -n "$target_alias" &&
2610 test "$program_prefix$program_suffix$program_transform_name" = \
2611 NONENONEs,x,x, &&
2612 program_prefix=${target_alias}-
2613
Joseph Myers22e05272018-10-31 17:03:16 +00002614# Expand $ac_aux_dir to an absolute path.
2615am_aux_dir=`cd "$ac_aux_dir" && pwd`
Iain Buclawb4c522f2018-10-28 19:51:47 +00002616
Iain Buclawb4c522f2018-10-28 19:51:47 +00002617ac_ext=c
2618ac_cpp='$CPP $CPPFLAGS'
2619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622if test -n "$ac_tool_prefix"; then
2623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2624set dummy ${ac_tool_prefix}gcc; ac_word=$2
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002627if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002628 $as_echo_n "(cached) " >&6
2629else
2630 if test -n "$CC"; then
2631 ac_cv_prog_CC="$CC" # Let the user override the test.
2632else
2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002640 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644done
2645 done
2646IFS=$as_save_IFS
2647
2648fi
2649fi
2650CC=$ac_cv_prog_CC
2651if test -n "$CC"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653$as_echo "$CC" >&6; }
2654else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656$as_echo "no" >&6; }
2657fi
2658
2659
2660fi
2661if test -z "$ac_cv_prog_CC"; then
2662 ac_ct_CC=$CC
2663 # Extract the first word of "gcc", so it can be a program name with args.
2664set dummy gcc; ac_word=$2
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002667if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002668 $as_echo_n "(cached) " >&6
2669else
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002680 ac_cv_prog_ac_ct_CC="gcc"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684done
2685 done
2686IFS=$as_save_IFS
2687
2688fi
2689fi
2690ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691if test -n "$ac_ct_CC"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2693$as_echo "$ac_ct_CC" >&6; }
2694else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696$as_echo "no" >&6; }
2697fi
2698
2699 if test "x$ac_ct_CC" = x; then
2700 CC=""
2701 else
2702 case $cross_compiling:$ac_tool_warned in
2703yes:)
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2706ac_tool_warned=yes ;;
2707esac
2708 CC=$ac_ct_CC
2709 fi
2710else
2711 CC="$ac_cv_prog_CC"
2712fi
2713
2714if test -z "$CC"; then
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2717set dummy ${ac_tool_prefix}cc; ac_word=$2
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002720if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002721 $as_echo_n "(cached) " >&6
2722else
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002733 ac_cv_prog_CC="${ac_tool_prefix}cc"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737done
2738 done
2739IFS=$as_save_IFS
2740
2741fi
2742fi
2743CC=$ac_cv_prog_CC
2744if test -n "$CC"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2746$as_echo "$CC" >&6; }
2747else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749$as_echo "no" >&6; }
2750fi
2751
2752
2753 fi
2754fi
2755if test -z "$CC"; then
2756 # Extract the first word of "cc", so it can be a program name with args.
2757set dummy cc; ac_word=$2
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002760if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002761 $as_echo_n "(cached) " >&6
2762else
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2765else
2766 ac_prog_rejected=no
2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2775 ac_prog_rejected=yes
2776 continue
2777 fi
2778 ac_cv_prog_CC="cc"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782done
2783 done
2784IFS=$as_save_IFS
2785
2786if test $ac_prog_rejected = yes; then
2787 # We found a bogon in the path, so make sure we never use it.
2788 set dummy $ac_cv_prog_CC
2789 shift
2790 if test $# != 0; then
2791 # We chose a different compiler from the bogus one.
2792 # However, it has the same basename, so the bogon will be chosen
2793 # first if we set CC to just the basename; use the full file name.
2794 shift
2795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2796 fi
2797fi
2798fi
2799fi
2800CC=$ac_cv_prog_CC
2801if test -n "$CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803$as_echo "$CC" >&6; }
2804else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807fi
2808
2809
2810fi
2811if test -z "$CC"; then
2812 if test -n "$ac_tool_prefix"; then
2813 for ac_prog in cl.exe
2814 do
2815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002819if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002820 $as_echo_n "(cached) " >&6
2821else
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836done
2837 done
2838IFS=$as_save_IFS
2839
2840fi
2841fi
2842CC=$ac_cv_prog_CC
2843if test -n "$CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845$as_echo "$CC" >&6; }
2846else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848$as_echo "no" >&6; }
2849fi
2850
2851
2852 test -n "$CC" && break
2853 done
2854fi
2855if test -z "$CC"; then
2856 ac_ct_CC=$CC
2857 for ac_prog in cl.exe
2858do
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860set dummy $ac_prog; ac_word=$2
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002863if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002864 $as_echo_n "(cached) " >&6
2865else
2866 if test -n "$ac_ct_CC"; then
2867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2868else
2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH
2871do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002876 ac_cv_prog_ac_ct_CC="$ac_prog"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880done
2881 done
2882IFS=$as_save_IFS
2883
2884fi
2885fi
2886ac_ct_CC=$ac_cv_prog_ac_ct_CC
2887if test -n "$ac_ct_CC"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2889$as_echo "$ac_ct_CC" >&6; }
2890else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892$as_echo "no" >&6; }
2893fi
2894
2895
2896 test -n "$ac_ct_CC" && break
2897done
2898
2899 if test "x$ac_ct_CC" = x; then
2900 CC=""
2901 else
2902 case $cross_compiling:$ac_tool_warned in
2903yes:)
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2906ac_tool_warned=yes ;;
2907esac
2908 CC=$ac_ct_CC
2909 fi
2910fi
2911
2912fi
2913
2914
2915test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002917as_fn_error $? "no acceptable C compiler found in \$PATH
2918See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002919
2920# Provide some information about the compiler.
2921$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2922set X $ac_compile
2923ac_compiler=$2
2924for ac_option in --version -v -V -qversion; do
2925 { { ac_try="$ac_compiler $ac_option >&5"
2926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
2930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931$as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2933 ac_status=$?
2934 if test -s conftest.err; then
2935 sed '10a\
2936... rest of stderr output deleted ...
2937 10q' conftest.err >conftest.er1
2938 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002939 fi
Joseph Myers22e05272018-10-31 17:03:16 +00002940 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00002941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942 test $ac_status = 0; }
2943done
2944
2945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946/* end confdefs.h. */
2947
2948int
2949main ()
2950{
2951
2952 ;
2953 return 0;
2954}
2955_ACEOF
2956ac_clean_files_save=$ac_clean_files
Joseph Myers22e05272018-10-31 17:03:16 +00002957ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002958# Try to create an executable without -o first, disregard a.out.
2959# It will help us diagnose broken compilers, and finding out an intuition
2960# of exeext.
Joseph Myers22e05272018-10-31 17:03:16 +00002961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2962$as_echo_n "checking whether the C compiler works... " >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002963ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2964
2965# The possible output files:
2966ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2967
2968ac_rmfiles=
2969for ac_file in $ac_files
2970do
2971 case $ac_file in
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2973 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2974 esac
2975done
2976rm -f $ac_rmfiles
2977
2978if { { ac_try="$ac_link_default"
2979case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982esac
2983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984$as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_link_default") 2>&5
2986 ac_status=$?
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }; then :
2989 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2990# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2991# in a Makefile. We should not override ac_cv_exeext if it was cached,
2992# so that the user can short-circuit this test for compilers unknown to
2993# Autoconf.
2994for ac_file in $ac_files ''
2995do
2996 test -f "$ac_file" || continue
2997 case $ac_file in
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2999 ;;
3000 [ab].out )
3001 # We found the default executable, but exeext='' is most
3002 # certainly right.
3003 break;;
3004 *.* )
3005 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3006 then :; else
3007 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3008 fi
3009 # We set ac_cv_exeext here because the later test for it is not
3010 # safe: cross compilers may not add the suffix if given an `-o'
3011 # argument, so we may need to know it at that point already.
3012 # Even if this section looks crufty: it has the advantage of
3013 # actually working.
3014 break;;
3015 * )
3016 break;;
3017 esac
3018done
3019test "$ac_cv_exeext" = no && ac_cv_exeext=
3020
3021else
3022 ac_file=''
3023fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00003024if test -z "$ac_file"; then :
Joseph Myers22e05272018-10-31 17:03:16 +00003025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026$as_echo "no" >&6; }
3027$as_echo "$as_me: failed program was:" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00003028sed 's/^/| /' conftest.$ac_ext >&5
3029
3030{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003032as_fn_error 77 "C compiler cannot create executables
3033See \`config.log' for more details" "$LINENO" 5; }
3034else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3036$as_echo "yes" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003037fi
Joseph Myers22e05272018-10-31 17:03:16 +00003038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3039$as_echo_n "checking for C compiler default output file name... " >&6; }
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3041$as_echo "$ac_file" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003042ac_exeext=$ac_cv_exeext
3043
Joseph Myers22e05272018-10-31 17:03:16 +00003044rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Iain Buclawb4c522f2018-10-28 19:51:47 +00003045ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3047$as_echo_n "checking for suffix of executables... " >&6; }
3048if { { ac_try="$ac_link"
3049case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052esac
3053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054$as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_link") 2>&5
3056 ac_status=$?
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }; then :
3059 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3060# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3061# work properly (i.e., refer to `conftest.exe'), while it won't with
3062# `rm'.
3063for ac_file in conftest.exe conftest conftest.*; do
3064 test -f "$ac_file" || continue
3065 case $ac_file in
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3067 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068 break;;
3069 * ) break;;
3070 esac
3071done
3072else
3073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003075as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3076See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003077fi
Joseph Myers22e05272018-10-31 17:03:16 +00003078rm -f conftest conftest$ac_cv_exeext
Iain Buclawb4c522f2018-10-28 19:51:47 +00003079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3080$as_echo "$ac_cv_exeext" >&6; }
3081
3082rm -f conftest.$ac_ext
3083EXEEXT=$ac_cv_exeext
3084ac_exeext=$EXEEXT
Joseph Myers22e05272018-10-31 17:03:16 +00003085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086/* end confdefs.h. */
3087#include <stdio.h>
3088int
3089main ()
3090{
3091FILE *f = fopen ("conftest.out", "w");
3092 return ferror (f) || fclose (f) != 0;
3093
3094 ;
3095 return 0;
3096}
3097_ACEOF
3098ac_clean_files="$ac_clean_files conftest.out"
3099# Check that the compiler produces executables we can run. If not, either
3100# the compiler is broken, or we cross compile.
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3102$as_echo_n "checking whether we are cross compiling... " >&6; }
3103if test "$cross_compiling" != yes; then
3104 { { ac_try="$ac_link"
3105case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110$as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_link") 2>&5
3112 ac_status=$?
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }
3115 if { ac_try='./conftest$ac_cv_exeext'
3116 { { case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119esac
3120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121$as_echo "$ac_try_echo"; } >&5
3122 (eval "$ac_try") 2>&5
3123 ac_status=$?
3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125 test $ac_status = 0; }; }; then
3126 cross_compiling=no
3127 else
3128 if test "$cross_compiling" = maybe; then
3129 cross_compiling=yes
3130 else
3131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133as_fn_error $? "cannot run C compiled programs.
3134If you meant to cross compile, use \`--host'.
3135See \`config.log' for more details" "$LINENO" 5; }
3136 fi
3137 fi
3138fi
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3140$as_echo "$cross_compiling" >&6; }
3141
3142rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3143ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3145$as_echo_n "checking for suffix of object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003146if ${ac_cv_objext+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003147 $as_echo_n "(cached) " >&6
3148else
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150/* end confdefs.h. */
3151
3152int
3153main ()
3154{
3155
3156 ;
3157 return 0;
3158}
3159_ACEOF
3160rm -f conftest.o conftest.obj
3161if { { ac_try="$ac_compile"
3162case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
3166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167$as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_compile") 2>&5
3169 ac_status=$?
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; then :
3172 for ac_file in conftest.o conftest.obj conftest.*; do
3173 test -f "$ac_file" || continue;
3174 case $ac_file in
3175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3177 break;;
3178 esac
3179done
3180else
3181 $as_echo "$as_me: failed program was:" >&5
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
3184{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003186as_fn_error $? "cannot compute suffix of object files: cannot compile
3187See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003188fi
3189rm -f conftest.$ac_cv_objext conftest.$ac_ext
3190fi
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3192$as_echo "$ac_cv_objext" >&6; }
3193OBJEXT=$ac_cv_objext
3194ac_objext=$OBJEXT
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3196$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003197if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003198 $as_echo_n "(cached) " >&6
3199else
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201/* end confdefs.h. */
3202
3203int
3204main ()
3205{
3206#ifndef __GNUC__
3207 choke me
3208#endif
3209
3210 ;
3211 return 0;
3212}
3213_ACEOF
3214if ac_fn_c_try_compile "$LINENO"; then :
3215 ac_compiler_gnu=yes
3216else
3217 ac_compiler_gnu=no
3218fi
3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220ac_cv_c_compiler_gnu=$ac_compiler_gnu
3221
3222fi
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3224$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3225if test $ac_compiler_gnu = yes; then
3226 GCC=yes
3227else
3228 GCC=
3229fi
3230ac_test_CFLAGS=${CFLAGS+set}
3231ac_save_CFLAGS=$CFLAGS
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3233$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003234if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003235 $as_echo_n "(cached) " >&6
3236else
3237 ac_save_c_werror_flag=$ac_c_werror_flag
3238 ac_c_werror_flag=yes
3239 ac_cv_prog_cc_g=no
3240 CFLAGS="-g"
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242/* end confdefs.h. */
3243
3244int
3245main ()
3246{
3247
3248 ;
3249 return 0;
3250}
3251_ACEOF
3252if ac_fn_c_try_compile "$LINENO"; then :
3253 ac_cv_prog_cc_g=yes
3254else
3255 CFLAGS=""
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257/* end confdefs.h. */
3258
3259int
3260main ()
3261{
3262
3263 ;
3264 return 0;
3265}
3266_ACEOF
3267if ac_fn_c_try_compile "$LINENO"; then :
3268
3269else
3270 ac_c_werror_flag=$ac_save_c_werror_flag
3271 CFLAGS="-g"
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273/* end confdefs.h. */
3274
3275int
3276main ()
3277{
3278
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283if ac_fn_c_try_compile "$LINENO"; then :
3284 ac_cv_prog_cc_g=yes
3285fi
3286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287fi
3288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289fi
3290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_c_werror_flag=$ac_save_c_werror_flag
3292fi
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3294$as_echo "$ac_cv_prog_cc_g" >&6; }
3295if test "$ac_test_CFLAGS" = set; then
3296 CFLAGS=$ac_save_CFLAGS
3297elif test $ac_cv_prog_cc_g = yes; then
3298 if test "$GCC" = yes; then
3299 CFLAGS="-g -O2"
3300 else
3301 CFLAGS="-g"
3302 fi
3303else
3304 if test "$GCC" = yes; then
3305 CFLAGS="-O2"
3306 else
3307 CFLAGS=
3308 fi
3309fi
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3311$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003312if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003313 $as_echo_n "(cached) " >&6
3314else
3315 ac_cv_prog_cc_c89=no
3316ac_save_CC=$CC
3317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318/* end confdefs.h. */
3319#include <stdarg.h>
3320#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00003321struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00003322/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3323struct buf { int x; };
3324FILE * (*rcsopen) (struct buf *, struct stat *, int);
3325static char *e (p, i)
3326 char **p;
3327 int i;
3328{
3329 return p[i];
3330}
3331static char *f (char * (*g) (char **, int), char **p, ...)
3332{
3333 char *s;
3334 va_list v;
3335 va_start (v,p);
3336 s = g (p, va_arg (v,int));
3337 va_end (v);
3338 return s;
3339}
3340
3341/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3342 function prototypes and stuff, but not '\xHH' hex character constants.
3343 These don't provoke an error unfortunately, instead are silently treated
3344 as 'x'. The following induces an error, until -std is added to get
3345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3346 array size at least. It's necessary to write '\x00'==0 to get something
3347 that's true only with -std. */
3348int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3349
3350/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3351 inside strings and character constants. */
3352#define FOO(x) 'x'
3353int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3354
3355int test (int i, double x);
3356struct s1 {int (*f) (int a);};
3357struct s2 {int (*f) (double a);};
3358int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3359int argc;
3360char **argv;
3361int
3362main ()
3363{
3364return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3365 ;
3366 return 0;
3367}
3368_ACEOF
3369for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3370 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3371do
3372 CC="$ac_save_CC $ac_arg"
3373 if ac_fn_c_try_compile "$LINENO"; then :
3374 ac_cv_prog_cc_c89=$ac_arg
3375fi
3376rm -f core conftest.err conftest.$ac_objext
3377 test "x$ac_cv_prog_cc_c89" != "xno" && break
3378done
3379rm -f conftest.$ac_ext
3380CC=$ac_save_CC
3381
3382fi
3383# AC_CACHE_VAL
3384case "x$ac_cv_prog_cc_c89" in
3385 x)
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3387$as_echo "none needed" >&6; } ;;
3388 xno)
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3390$as_echo "unsupported" >&6; } ;;
3391 *)
3392 CC="$CC $ac_cv_prog_cc_c89"
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3394$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3395esac
3396if test "x$ac_cv_prog_cc_c89" != xno; then :
3397
3398fi
3399
3400ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
Joseph Myers22e05272018-10-31 17:03:16 +00003406ac_ext=c
3407ac_cpp='$CPP $CPPFLAGS'
3408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3412$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3413if ${am_cv_prog_cc_c_o+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415else
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417/* end confdefs.h. */
3418
3419int
3420main ()
3421{
3422
3423 ;
3424 return 0;
3425}
3426_ACEOF
3427 # Make sure it works both with $CC and with simple cc.
3428 # Following AC_PROG_CC_C_O, we do the test twice because some
3429 # compilers refuse to overwrite an existing .o file with -o,
3430 # though they will create one.
3431 am_cv_prog_cc_c_o=yes
3432 for am_i in 1 2; do
3433 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3434 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } \
3438 && test -f conftest2.$ac_objext; then
3439 : OK
3440 else
3441 am_cv_prog_cc_c_o=no
3442 break
3443 fi
3444 done
3445 rm -f core conftest*
3446 unset am_i
3447fi
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3449$as_echo "$am_cv_prog_cc_c_o" >&6; }
3450if test "$am_cv_prog_cc_c_o" != yes; then
3451 # Losing compiler, so override with the script.
3452 # FIXME: It is wrong to rewrite CC.
3453 # But if we don't then we get into trouble of one sort or another.
3454 # A longer-term fix would be to have automake use am__CC in this case,
3455 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3456 CC="$am_aux_dir/compile $CC"
3457fi
3458ac_ext=c
3459ac_cpp='$CPP $CPPFLAGS'
3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
Rainer Orth235d1c42019-04-14 09:30:42 +00003465
3466ac_ext=c
3467ac_cpp='$CPP $CPPFLAGS'
3468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3472$as_echo_n "checking how to run the C preprocessor... " >&6; }
3473# On Suns, sometimes $CPP names a directory.
3474if test -n "$CPP" && test -d "$CPP"; then
3475 CPP=
3476fi
3477if test -z "$CPP"; then
3478 if ${ac_cv_prog_CPP+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480else
3481 # Double quotes because CPP needs to be expanded
3482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3483 do
3484 ac_preproc_ok=false
3485for ac_c_preproc_warn_flag in '' yes
3486do
3487 # Use a header file that comes with gcc, so configuring glibc
3488 # with a fresh cross-compiler works.
3489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3490 # <limits.h> exists even on freestanding compilers.
3491 # On the NeXT, cc -E runs the code through the compiler's parser,
3492 # not just through cpp. "Syntax error" is here to catch this case.
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h. */
3495#ifdef __STDC__
3496# include <limits.h>
3497#else
3498# include <assert.h>
3499#endif
3500 Syntax error
3501_ACEOF
3502if ac_fn_c_try_cpp "$LINENO"; then :
3503
3504else
3505 # Broken: fails on valid input.
3506continue
3507fi
3508rm -f conftest.err conftest.i conftest.$ac_ext
3509
3510 # OK, works on sane cases. Now check whether nonexistent headers
3511 # can be detected and how.
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h. */
3514#include <ac_nonexistent.h>
3515_ACEOF
3516if ac_fn_c_try_cpp "$LINENO"; then :
3517 # Broken: success on invalid input.
3518continue
3519else
3520 # Passes both tests.
3521ac_preproc_ok=:
3522break
3523fi
3524rm -f conftest.err conftest.i conftest.$ac_ext
3525
3526done
3527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528rm -f conftest.i conftest.err conftest.$ac_ext
3529if $ac_preproc_ok; then :
3530 break
3531fi
3532
3533 done
3534 ac_cv_prog_CPP=$CPP
3535
3536fi
3537 CPP=$ac_cv_prog_CPP
3538else
3539 ac_cv_prog_CPP=$CPP
3540fi
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3542$as_echo "$CPP" >&6; }
3543ac_preproc_ok=false
3544for ac_c_preproc_warn_flag in '' yes
3545do
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553/* end confdefs.h. */
3554#ifdef __STDC__
3555# include <limits.h>
3556#else
3557# include <assert.h>
3558#endif
3559 Syntax error
3560_ACEOF
3561if ac_fn_c_try_cpp "$LINENO"; then :
3562
3563else
3564 # Broken: fails on valid input.
3565continue
3566fi
3567rm -f conftest.err conftest.i conftest.$ac_ext
3568
3569 # OK, works on sane cases. Now check whether nonexistent headers
3570 # can be detected and how.
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h. */
3573#include <ac_nonexistent.h>
3574_ACEOF
3575if ac_fn_c_try_cpp "$LINENO"; then :
3576 # Broken: success on invalid input.
3577continue
3578else
3579 # Passes both tests.
3580ac_preproc_ok=:
3581break
3582fi
3583rm -f conftest.err conftest.i conftest.$ac_ext
3584
3585done
3586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587rm -f conftest.i conftest.err conftest.$ac_ext
3588if $ac_preproc_ok; then :
3589
3590else
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3594See \`config.log' for more details" "$LINENO" 5; }
3595fi
3596
3597ac_ext=c
3598ac_cpp='$CPP $CPPFLAGS'
3599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
3603
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3605$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3606if ${ac_cv_path_GREP+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608else
3609 if test -z "$GREP"; then
3610 ac_path_GREP_found=false
3611 # Loop through the user's path and test for each of PROGNAME-LIST
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3614do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_prog in grep ggrep; do
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3620 as_fn_executable_p "$ac_path_GREP" || continue
3621# Check for GNU ac_path_GREP and select it if it is found.
3622 # Check for GNU $ac_path_GREP
3623case `"$ac_path_GREP" --version 2>&1` in
3624*GNU*)
3625 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3626*)
3627 ac_count=0
3628 $as_echo_n 0123456789 >"conftest.in"
3629 while :
3630 do
3631 cat "conftest.in" "conftest.in" >"conftest.tmp"
3632 mv "conftest.tmp" "conftest.in"
3633 cp "conftest.in" "conftest.nl"
3634 $as_echo 'GREP' >> "conftest.nl"
3635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637 as_fn_arith $ac_count + 1 && ac_count=$as_val
3638 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3639 # Best one so far, save it but keep looking for a better one
3640 ac_cv_path_GREP="$ac_path_GREP"
3641 ac_path_GREP_max=$ac_count
3642 fi
3643 # 10*(2^10) chars as input seems more than enough
3644 test $ac_count -gt 10 && break
3645 done
3646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3647esac
3648
3649 $ac_path_GREP_found && break 3
3650 done
3651 done
3652 done
3653IFS=$as_save_IFS
3654 if test -z "$ac_cv_path_GREP"; then
3655 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3656 fi
3657else
3658 ac_cv_path_GREP=$GREP
3659fi
3660
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3663$as_echo "$ac_cv_path_GREP" >&6; }
3664 GREP="$ac_cv_path_GREP"
3665
3666
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3668$as_echo_n "checking for egrep... " >&6; }
3669if ${ac_cv_path_EGREP+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671else
3672 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3673 then ac_cv_path_EGREP="$GREP -E"
3674 else
3675 if test -z "$EGREP"; then
3676 ac_path_EGREP_found=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_prog in egrep; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3686 as_fn_executable_p "$ac_path_EGREP" || continue
3687# Check for GNU ac_path_EGREP and select it if it is found.
3688 # Check for GNU $ac_path_EGREP
3689case `"$ac_path_EGREP" --version 2>&1` in
3690*GNU*)
3691 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3692*)
3693 ac_count=0
3694 $as_echo_n 0123456789 >"conftest.in"
3695 while :
3696 do
3697 cat "conftest.in" "conftest.in" >"conftest.tmp"
3698 mv "conftest.tmp" "conftest.in"
3699 cp "conftest.in" "conftest.nl"
3700 $as_echo 'EGREP' >> "conftest.nl"
3701 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703 as_fn_arith $ac_count + 1 && ac_count=$as_val
3704 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_EGREP="$ac_path_EGREP"
3707 ac_path_EGREP_max=$ac_count
3708 fi
3709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
3711 done
3712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713esac
3714
3715 $ac_path_EGREP_found && break 3
3716 done
3717 done
3718 done
3719IFS=$as_save_IFS
3720 if test -z "$ac_cv_path_EGREP"; then
3721 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3722 fi
3723else
3724 ac_cv_path_EGREP=$EGREP
3725fi
3726
3727 fi
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3730$as_echo "$ac_cv_path_EGREP" >&6; }
3731 EGREP="$ac_cv_path_EGREP"
3732
3733
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3735$as_echo_n "checking for ANSI C header files... " >&6; }
3736if ${ac_cv_header_stdc+:} false; then :
3737 $as_echo_n "(cached) " >&6
3738else
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h. */
3741#include <stdlib.h>
3742#include <stdarg.h>
3743#include <string.h>
3744#include <float.h>
3745
3746int
3747main ()
3748{
3749
3750 ;
3751 return 0;
3752}
3753_ACEOF
3754if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_header_stdc=yes
3756else
3757 ac_cv_header_stdc=no
3758fi
3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760
3761if test $ac_cv_header_stdc = yes; then
3762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h. */
3765#include <string.h>
3766
3767_ACEOF
3768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 $EGREP "memchr" >/dev/null 2>&1; then :
3770
3771else
3772 ac_cv_header_stdc=no
3773fi
3774rm -f conftest*
3775
3776fi
3777
3778if test $ac_cv_header_stdc = yes; then
3779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h. */
3782#include <stdlib.h>
3783
3784_ACEOF
3785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3786 $EGREP "free" >/dev/null 2>&1; then :
3787
3788else
3789 ac_cv_header_stdc=no
3790fi
3791rm -f conftest*
3792
3793fi
3794
3795if test $ac_cv_header_stdc = yes; then
3796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3797 if test "$cross_compiling" = yes; then :
3798 :
3799else
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801/* end confdefs.h. */
3802#include <ctype.h>
3803#include <stdlib.h>
3804#if ((' ' & 0x0FF) == 0x020)
3805# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3806# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3807#else
3808# define ISLOWER(c) \
3809 (('a' <= (c) && (c) <= 'i') \
3810 || ('j' <= (c) && (c) <= 'r') \
3811 || ('s' <= (c) && (c) <= 'z'))
3812# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3813#endif
3814
3815#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3816int
3817main ()
3818{
3819 int i;
3820 for (i = 0; i < 256; i++)
3821 if (XOR (islower (i), ISLOWER (i))
3822 || toupper (i) != TOUPPER (i))
3823 return 2;
3824 return 0;
3825}
3826_ACEOF
3827if ac_fn_c_try_run "$LINENO"; then :
3828
3829else
3830 ac_cv_header_stdc=no
3831fi
3832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3833 conftest.$ac_objext conftest.beam conftest.$ac_ext
3834fi
3835
3836fi
3837fi
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3839$as_echo "$ac_cv_header_stdc" >&6; }
3840if test $ac_cv_header_stdc = yes; then
3841
3842$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3843
3844fi
3845
3846# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3847for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3848 inttypes.h stdint.h unistd.h
3849do :
3850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3852"
3853if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3854 cat >>confdefs.h <<_ACEOF
3855#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3856_ACEOF
3857
3858fi
3859
3860done
3861
3862
3863
3864 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3865if test "x$ac_cv_header_minix_config_h" = xyes; then :
3866 MINIX=yes
3867else
3868 MINIX=
3869fi
3870
3871
3872 if test "$MINIX" = yes; then
3873
3874$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3875
3876
3877$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3878
3879
3880$as_echo "#define _MINIX 1" >>confdefs.h
3881
3882 fi
3883
3884
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3886$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3887if ${ac_cv_safe_to_define___extensions__+:} false; then :
3888 $as_echo_n "(cached) " >&6
3889else
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h. */
3892
3893# define __EXTENSIONS__ 1
3894 $ac_includes_default
3895int
3896main ()
3897{
3898
3899 ;
3900 return 0;
3901}
3902_ACEOF
3903if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_cv_safe_to_define___extensions__=yes
3905else
3906 ac_cv_safe_to_define___extensions__=no
3907fi
3908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3911$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3912 test $ac_cv_safe_to_define___extensions__ = yes &&
3913 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3914
3915 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3916
3917 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3918
3919 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3920
3921 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3922
3923
3924
3925target_alias=${target_alias-$target}
3926
3927
3928# 1.11.1: Require that version of automake.
3929# foreign: Don't require README, INSTALL, NEWS, etc.
3930# no-define: Don't define PACKAGE and VERSION.
3931# no-dependencies: Don't generate automatic dependencies.
3932# (because it breaks when using bootstrap-lean, since some of the
3933# headers are gone at "make install" time).
3934# subdir-objects: Build objects in sub-directories.
3935# -Wall: Issue all automake warnings.
3936# -Wno-portability: Don't warn about constructs supported by GNU make.
3937# (because GCC requires GNU make anyhow).
3938# -Wno-override: Overrides used in testsuite.
3939am__api_version='1.15'
3940
3941# Find a good install program. We prefer a C program (faster),
3942# so one script is as good as another. But avoid the broken or
3943# incompatible versions:
3944# SysV /etc/install, /usr/sbin/install
3945# SunOS /usr/etc/install
3946# IRIX /sbin/install
3947# AIX /bin/install
3948# AmigaOS /C/install, which installs bootblocks on floppy discs
3949# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3950# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3951# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3952# OS/2's system install, which has a completely different semantic
3953# ./install, which can be erroneously created by make from ./install.sh.
3954# Reject install programs that cannot install multiple files.
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3956$as_echo_n "checking for a BSD-compatible install... " >&6; }
3957if test -z "$INSTALL"; then
3958if ${ac_cv_path_install+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 # Account for people who put trailing slashes in PATH elements.
3967case $as_dir/ in #((
3968 ./ | .// | /[cC]/* | \
3969 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3970 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3971 /usr/ucb/* ) ;;
3972 *)
3973 # OSF1 and SCO ODT 3.0 have their own names for install.
3974 # Don't use installbsd from OSF since it installs stuff as root
3975 # by default.
3976 for ac_prog in ginstall scoinst install; do
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3979 if test $ac_prog = install &&
3980 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3981 # AIX install. It has an incompatible calling convention.
3982 :
3983 elif test $ac_prog = install &&
3984 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3985 # program-specific install script used by HP pwplus--don't use.
3986 :
3987 else
3988 rm -rf conftest.one conftest.two conftest.dir
3989 echo one > conftest.one
3990 echo two > conftest.two
3991 mkdir conftest.dir
3992 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3993 test -s conftest.one && test -s conftest.two &&
3994 test -s conftest.dir/conftest.one &&
3995 test -s conftest.dir/conftest.two
3996 then
3997 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3998 break 3
3999 fi
4000 fi
4001 fi
4002 done
4003 done
4004 ;;
4005esac
4006
4007 done
4008IFS=$as_save_IFS
4009
4010rm -rf conftest.one conftest.two conftest.dir
4011
4012fi
4013 if test "${ac_cv_path_install+set}" = set; then
4014 INSTALL=$ac_cv_path_install
4015 else
4016 # As a last resort, use the slow shell script. Don't cache a
4017 # value for INSTALL within a source directory, because that will
4018 # break other packages using the cache if that directory is
4019 # removed, or if the value is a relative name.
4020 INSTALL=$ac_install_sh
4021 fi
4022fi
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4024$as_echo "$INSTALL" >&6; }
4025
4026# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4027# It thinks the first close brace ends the variable substitution.
4028test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4029
4030test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4031
4032test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4033
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4035$as_echo_n "checking whether build environment is sane... " >&6; }
4036# Reject unsafe characters in $srcdir or the absolute working directory
4037# name. Accept space and tab only in the latter.
4038am_lf='
4039'
4040case `pwd` in
4041 *[\\\"\#\$\&\'\`$am_lf]*)
4042 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4043esac
4044case $srcdir in
4045 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4046 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4047esac
4048
4049# Do 'set' in a subshell so we don't clobber the current shell's
4050# arguments. Must try -L first in case configure is actually a
4051# symlink; some systems play weird games with the mod time of symlinks
4052# (eg FreeBSD returns the mod time of the symlink's containing
4053# directory).
4054if (
4055 am_has_slept=no
4056 for am_try in 1 2; do
4057 echo "timestamp, slept: $am_has_slept" > conftest.file
4058 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4059 if test "$*" = "X"; then
4060 # -L didn't work.
4061 set X `ls -t "$srcdir/configure" conftest.file`
4062 fi
4063 if test "$*" != "X $srcdir/configure conftest.file" \
4064 && test "$*" != "X conftest.file $srcdir/configure"; then
4065
4066 # If neither matched, then we have a broken ls. This can happen
4067 # if, for instance, CONFIG_SHELL is bash and it inherits a
4068 # broken ls alias from the environment. This has actually
4069 # happened. Such a system could not be considered "sane".
4070 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4071 alias in your environment" "$LINENO" 5
4072 fi
4073 if test "$2" = conftest.file || test $am_try -eq 2; then
4074 break
4075 fi
4076 # Just in case.
4077 sleep 1
4078 am_has_slept=yes
4079 done
4080 test "$2" = conftest.file
4081 )
4082then
4083 # Ok.
4084 :
4085else
4086 as_fn_error $? "newly created file is older than distributed files!
4087Check your system clock" "$LINENO" 5
4088fi
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4090$as_echo "yes" >&6; }
4091# If we didn't sleep, we still need to ensure time stamps of config.status and
4092# generated files are strictly newer.
4093am_sleep_pid=
4094if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4095 ( sleep 1 ) &
4096 am_sleep_pid=$!
4097fi
4098
4099rm -f conftest.file
4100
4101test "$program_prefix" != NONE &&
4102 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4103# Use a double $ so make ignores it.
4104test "$program_suffix" != NONE &&
4105 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4106# Double any \ or $.
4107# By default was `s,x,x', remove it if useless.
4108ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4109program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4110
4111if test x"${MISSING+set}" != xset; then
4112 case $am_aux_dir in
4113 *\ * | *\ *)
4114 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4115 *)
4116 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4117 esac
4118fi
4119# Use eval to expand $SHELL
4120if eval "$MISSING --is-lightweight"; then
4121 am_missing_run="$MISSING "
4122else
4123 am_missing_run=
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4125$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4126fi
4127
4128if test x"${install_sh+set}" != xset; then
4129 case $am_aux_dir in
4130 *\ * | *\ *)
4131 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4132 *)
4133 install_sh="\${SHELL} $am_aux_dir/install-sh"
4134 esac
4135fi
4136
4137# Installed binaries are usually stripped using 'strip' when the user
4138# run "make install-strip". However 'strip' might not be the right
4139# tool to use in cross-compilation environments, therefore Automake
4140# will honor the 'STRIP' environment variable to overrule this program.
4141if test "$cross_compiling" != no; then
4142 if test -n "$ac_tool_prefix"; then
4143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4144set dummy ${ac_tool_prefix}strip; ac_word=$2
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146$as_echo_n "checking for $ac_word... " >&6; }
4147if ${ac_cv_prog_STRIP+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149else
4150 if test -n "$STRIP"; then
4151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4152else
4153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154for as_dir in $PATH
4155do
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 break 2
4163 fi
4164done
4165 done
4166IFS=$as_save_IFS
4167
4168fi
4169fi
4170STRIP=$ac_cv_prog_STRIP
4171if test -n "$STRIP"; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4173$as_echo "$STRIP" >&6; }
4174else
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176$as_echo "no" >&6; }
4177fi
4178
4179
4180fi
4181if test -z "$ac_cv_prog_STRIP"; then
4182 ac_ct_STRIP=$STRIP
4183 # Extract the first word of "strip", so it can be a program name with args.
4184set dummy strip; ac_word=$2
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186$as_echo_n "checking for $ac_word... " >&6; }
4187if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189else
4190 if test -n "$ac_ct_STRIP"; then
4191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4192else
4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH
4195do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_ac_ct_STRIP="strip"
4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4203 fi
4204done
4205 done
4206IFS=$as_save_IFS
4207
4208fi
4209fi
4210ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4211if test -n "$ac_ct_STRIP"; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4213$as_echo "$ac_ct_STRIP" >&6; }
4214else
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216$as_echo "no" >&6; }
4217fi
4218
4219 if test "x$ac_ct_STRIP" = x; then
4220 STRIP=":"
4221 else
4222 case $cross_compiling:$ac_tool_warned in
4223yes:)
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4226ac_tool_warned=yes ;;
4227esac
4228 STRIP=$ac_ct_STRIP
4229 fi
4230else
4231 STRIP="$ac_cv_prog_STRIP"
4232fi
4233
4234fi
4235INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4236
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4238$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4239if test -z "$MKDIR_P"; then
4240 if ${ac_cv_path_mkdir+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4245do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_prog in mkdir gmkdir; do
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4251 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4252 'mkdir (GNU coreutils) '* | \
4253 'mkdir (coreutils) '* | \
4254 'mkdir (fileutils) '4.1*)
4255 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4256 break 3;;
4257 esac
4258 done
4259 done
4260 done
4261IFS=$as_save_IFS
4262
4263fi
4264
4265 test -d ./--version && rmdir ./--version
4266 if test "${ac_cv_path_mkdir+set}" = set; then
4267 MKDIR_P="$ac_cv_path_mkdir -p"
4268 else
4269 # As a last resort, use the slow shell script. Don't cache a
4270 # value for MKDIR_P within a source directory, because that will
4271 # break other packages using the cache if that directory is
4272 # removed, or if the value is a relative name.
4273 MKDIR_P="$ac_install_sh -d"
4274 fi
4275fi
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4277$as_echo "$MKDIR_P" >&6; }
4278
4279for ac_prog in gawk mawk nawk awk
4280do
4281 # Extract the first word of "$ac_prog", so it can be a program name with args.
4282set dummy $ac_prog; ac_word=$2
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284$as_echo_n "checking for $ac_word... " >&6; }
4285if ${ac_cv_prog_AWK+:} false; then :
4286 $as_echo_n "(cached) " >&6
4287else
4288 if test -n "$AWK"; then
4289 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4290else
4291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH
4293do
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_AWK="$ac_prog"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 break 2
4301 fi
4302done
4303 done
4304IFS=$as_save_IFS
4305
4306fi
4307fi
4308AWK=$ac_cv_prog_AWK
4309if test -n "$AWK"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4311$as_echo "$AWK" >&6; }
4312else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314$as_echo "no" >&6; }
4315fi
4316
4317
4318 test -n "$AWK" && break
4319done
4320
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4322$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4323set x ${MAKE-make}
4324ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4325if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327else
4328 cat >conftest.make <<\_ACEOF
4329SHELL = /bin/sh
4330all:
4331 @echo '@@@%%%=$(MAKE)=@@@%%%'
4332_ACEOF
4333# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4334case `${MAKE-make} -f conftest.make 2>/dev/null` in
4335 *@@@%%%=?*=@@@%%%*)
4336 eval ac_cv_prog_make_${ac_make}_set=yes;;
4337 *)
4338 eval ac_cv_prog_make_${ac_make}_set=no;;
4339esac
4340rm -f conftest.make
4341fi
4342if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4344$as_echo "yes" >&6; }
4345 SET_MAKE=
4346else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348$as_echo "no" >&6; }
4349 SET_MAKE="MAKE=${MAKE-make}"
4350fi
4351
4352rm -rf .tst 2>/dev/null
4353mkdir .tst 2>/dev/null
4354if test -d .tst; then
4355 am__leading_dot=.
4356else
4357 am__leading_dot=_
4358fi
4359rmdir .tst 2>/dev/null
4360
4361# Check whether --enable-silent-rules was given.
4362if test "${enable_silent_rules+set}" = set; then :
4363 enableval=$enable_silent_rules;
4364fi
4365
4366case $enable_silent_rules in # (((
4367 yes) AM_DEFAULT_VERBOSITY=0;;
4368 no) AM_DEFAULT_VERBOSITY=1;;
4369 *) AM_DEFAULT_VERBOSITY=1;;
4370esac
4371am_make=${MAKE-make}
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4373$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4374if ${am_cv_make_support_nested_variables+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376else
4377 if $as_echo 'TRUE=$(BAR$(V))
4378BAR0=false
4379BAR1=true
4380V=1
4381am__doit:
4382 @$(TRUE)
4383.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4384 am_cv_make_support_nested_variables=yes
4385else
4386 am_cv_make_support_nested_variables=no
4387fi
4388fi
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4390$as_echo "$am_cv_make_support_nested_variables" >&6; }
4391if test $am_cv_make_support_nested_variables = yes; then
4392 AM_V='$(V)'
4393 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4394else
4395 AM_V=$AM_DEFAULT_VERBOSITY
4396 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4397fi
4398AM_BACKSLASH='\'
4399
4400if test "`cd $srcdir && pwd`" != "`pwd`"; then
4401 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4402 # is not polluted with repeated "-I."
4403 am__isrc=' -I$(srcdir)'
4404 # test to see if srcdir already configured
4405 if test -f $srcdir/config.status; then
4406 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4407 fi
4408fi
4409
4410# test whether we have cygpath
4411if test -z "$CYGPATH_W"; then
4412 if (cygpath --version) >/dev/null 2>/dev/null; then
4413 CYGPATH_W='cygpath -w'
4414 else
4415 CYGPATH_W=echo
4416 fi
4417fi
4418
4419
4420# Define the identity of the package.
4421 PACKAGE='libphobos'
4422 VERSION='version-unused'
4423
4424
4425# Some tools Automake needs.
4426
4427ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4428
4429
4430AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4431
4432
4433AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4434
4435
4436AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4437
4438
4439MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4440
4441# For better backward compatibility. To be removed once Automake 1.9.x
4442# dies out for good. For more background, see:
4443# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4444# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4445mkdir_p='$(MKDIR_P)'
4446
4447# We need awk for the "check" target (and possibly the TAP driver). The
4448# system "awk" is bad on some platforms.
4449# Always define AMTAR for backward compatibility. Yes, it's still used
4450# in the wild :-( We should find a proper way to deprecate it ...
4451AMTAR='$${TAR-tar}'
4452
4453
4454# We'll loop over all known methods to create a tar archive until one works.
4455_am_tools='gnutar pax cpio none'
4456
4457am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4458
4459
4460
4461
4462
4463
4464# POSIX will say in a future version that running "rm -f" with no argument
4465# is OK; and we want to be able to make that assumption in our Makefile
4466# recipes. So use an aggressive probe to check that the usage we want is
4467# actually supported "in the wild" to an acceptable degree.
4468# See automake bug#10828.
4469# To make any issue more visible, cause the running configure to be aborted
4470# by default if the 'rm' program in use doesn't match our expectations; the
4471# user can still override this though.
4472if rm -f && rm -fr && rm -rf; then : OK; else
4473 cat >&2 <<'END'
4474Oops!
4475
4476Your 'rm' program seems unable to run without file operands specified
4477on the command line, even when the '-f' option is present. This is contrary
4478to the behaviour of most rm programs out there, and not conforming with
4479the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4480
4481Please tell bug-automake@gnu.org about your system, including the value
4482of your $PATH and any error possibly output before this message. This
4483can help us improve future automake versions.
4484
4485END
4486 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4487 echo 'Configuration will proceed anyway, since you have set the' >&2
4488 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4489 echo >&2
4490 else
4491 cat >&2 <<'END'
4492Aborting the configuration process, to ensure you take notice of the issue.
4493
4494You can download and install GNU coreutils to get an 'rm' implementation
4495that behaves properly: <http://www.gnu.org/software/coreutils/>.
4496
4497If you want to complete the configuration process using your problematic
4498'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4499to "yes", and re-run configure.
4500
4501END
4502 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4503 fi
4504fi
4505
4506
4507
4508
Iain Buclawb4c522f2018-10-28 19:51:47 +00004509# By default we simply use the C compiler to build assembly code.
4510
4511test "${CCAS+set}" = set || CCAS=$CC
4512test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4513
4514
4515
4516ac_ext=c
4517ac_cpp='$CPP $CPPFLAGS'
4518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521if test -n "$ac_tool_prefix"; then
4522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4523set dummy ${ac_tool_prefix}gcc; ac_word=$2
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004526if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004527 $as_echo_n "(cached) " >&6
4528else
4529 if test -n "$CC"; then
4530 ac_cv_prog_CC="$CC" # Let the user override the test.
4531else
4532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533for as_dir in $PATH
4534do
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4542 fi
4543done
4544 done
4545IFS=$as_save_IFS
4546
4547fi
4548fi
4549CC=$ac_cv_prog_CC
4550if test -n "$CC"; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4552$as_echo "$CC" >&6; }
4553else
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555$as_echo "no" >&6; }
4556fi
4557
4558
4559fi
4560if test -z "$ac_cv_prog_CC"; then
4561 ac_ct_CC=$CC
4562 # Extract the first word of "gcc", so it can be a program name with args.
4563set dummy gcc; ac_word=$2
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004566if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004567 $as_echo_n "(cached) " >&6
4568else
4569 if test -n "$ac_ct_CC"; then
4570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4571else
4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573for as_dir in $PATH
4574do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004579 ac_cv_prog_ac_ct_CC="gcc"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583done
4584 done
4585IFS=$as_save_IFS
4586
4587fi
4588fi
4589ac_ct_CC=$ac_cv_prog_ac_ct_CC
4590if test -n "$ac_ct_CC"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4592$as_echo "$ac_ct_CC" >&6; }
4593else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595$as_echo "no" >&6; }
4596fi
4597
4598 if test "x$ac_ct_CC" = x; then
4599 CC=""
4600 else
4601 case $cross_compiling:$ac_tool_warned in
4602yes:)
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4605ac_tool_warned=yes ;;
4606esac
4607 CC=$ac_ct_CC
4608 fi
4609else
4610 CC="$ac_cv_prog_CC"
4611fi
4612
4613if test -z "$CC"; then
4614 if test -n "$ac_tool_prefix"; then
4615 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4616set dummy ${ac_tool_prefix}cc; ac_word=$2
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004619if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004620 $as_echo_n "(cached) " >&6
4621else
4622 if test -n "$CC"; then
4623 ac_cv_prog_CC="$CC" # Let the user override the test.
4624else
4625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH
4627do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004632 ac_cv_prog_CC="${ac_tool_prefix}cc"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4635 fi
4636done
4637 done
4638IFS=$as_save_IFS
4639
4640fi
4641fi
4642CC=$ac_cv_prog_CC
4643if test -n "$CC"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4645$as_echo "$CC" >&6; }
4646else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648$as_echo "no" >&6; }
4649fi
4650
4651
4652 fi
4653fi
4654if test -z "$CC"; then
4655 # Extract the first word of "cc", so it can be a program name with args.
4656set dummy cc; ac_word=$2
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004659if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004660 $as_echo_n "(cached) " >&6
4661else
4662 if test -n "$CC"; then
4663 ac_cv_prog_CC="$CC" # Let the user override the test.
4664else
4665 ac_prog_rejected=no
4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004673 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4674 ac_prog_rejected=yes
4675 continue
4676 fi
4677 ac_cv_prog_CC="cc"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681done
4682 done
4683IFS=$as_save_IFS
4684
4685if test $ac_prog_rejected = yes; then
4686 # We found a bogon in the path, so make sure we never use it.
4687 set dummy $ac_cv_prog_CC
4688 shift
4689 if test $# != 0; then
4690 # We chose a different compiler from the bogus one.
4691 # However, it has the same basename, so the bogon will be chosen
4692 # first if we set CC to just the basename; use the full file name.
4693 shift
4694 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4695 fi
4696fi
4697fi
4698fi
4699CC=$ac_cv_prog_CC
4700if test -n "$CC"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4702$as_echo "$CC" >&6; }
4703else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705$as_echo "no" >&6; }
4706fi
4707
4708
4709fi
4710if test -z "$CC"; then
4711 if test -n "$ac_tool_prefix"; then
4712 for ac_prog in cl.exe
4713 do
4714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4715set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004718if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004719 $as_echo_n "(cached) " >&6
4720else
4721 if test -n "$CC"; then
4722 ac_cv_prog_CC="$CC" # Let the user override the test.
4723else
4724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004731 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4734 fi
4735done
4736 done
4737IFS=$as_save_IFS
4738
4739fi
4740fi
4741CC=$ac_cv_prog_CC
4742if test -n "$CC"; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4744$as_echo "$CC" >&6; }
4745else
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747$as_echo "no" >&6; }
4748fi
4749
4750
4751 test -n "$CC" && break
4752 done
4753fi
4754if test -z "$CC"; then
4755 ac_ct_CC=$CC
4756 for ac_prog in cl.exe
4757do
4758 # Extract the first word of "$ac_prog", so it can be a program name with args.
4759set dummy $ac_prog; ac_word=$2
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004762if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004763 $as_echo_n "(cached) " >&6
4764else
4765 if test -n "$ac_ct_CC"; then
4766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4767else
4768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004775 ac_cv_prog_ac_ct_CC="$ac_prog"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4778 fi
4779done
4780 done
4781IFS=$as_save_IFS
4782
4783fi
4784fi
4785ac_ct_CC=$ac_cv_prog_ac_ct_CC
4786if test -n "$ac_ct_CC"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4788$as_echo "$ac_ct_CC" >&6; }
4789else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791$as_echo "no" >&6; }
4792fi
4793
4794
4795 test -n "$ac_ct_CC" && break
4796done
4797
4798 if test "x$ac_ct_CC" = x; then
4799 CC=""
4800 else
4801 case $cross_compiling:$ac_tool_warned in
4802yes:)
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805ac_tool_warned=yes ;;
4806esac
4807 CC=$ac_ct_CC
4808 fi
4809fi
4810
4811fi
4812
4813
4814test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00004816as_fn_error $? "no acceptable C compiler found in \$PATH
4817See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00004818
4819# Provide some information about the compiler.
4820$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4821set X $ac_compile
4822ac_compiler=$2
4823for ac_option in --version -v -V -qversion; do
4824 { { ac_try="$ac_compiler $ac_option >&5"
4825case "(($ac_try" in
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4828esac
4829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4830$as_echo "$ac_try_echo"; } >&5
4831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4832 ac_status=$?
4833 if test -s conftest.err; then
4834 sed '10a\
4835... rest of stderr output deleted ...
4836 10q' conftest.err >conftest.er1
4837 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00004838 fi
Joseph Myers22e05272018-10-31 17:03:16 +00004839 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00004840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4841 test $ac_status = 0; }
4842done
4843
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4845$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004846if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004847 $as_echo_n "(cached) " >&6
4848else
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850/* end confdefs.h. */
4851
4852int
4853main ()
4854{
4855#ifndef __GNUC__
4856 choke me
4857#endif
4858
4859 ;
4860 return 0;
4861}
4862_ACEOF
4863if ac_fn_c_try_compile "$LINENO"; then :
4864 ac_compiler_gnu=yes
4865else
4866 ac_compiler_gnu=no
4867fi
4868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869ac_cv_c_compiler_gnu=$ac_compiler_gnu
4870
4871fi
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4873$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4874if test $ac_compiler_gnu = yes; then
4875 GCC=yes
4876else
4877 GCC=
4878fi
4879ac_test_CFLAGS=${CFLAGS+set}
4880ac_save_CFLAGS=$CFLAGS
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4882$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004883if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004884 $as_echo_n "(cached) " >&6
4885else
4886 ac_save_c_werror_flag=$ac_c_werror_flag
4887 ac_c_werror_flag=yes
4888 ac_cv_prog_cc_g=no
4889 CFLAGS="-g"
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891/* end confdefs.h. */
4892
4893int
4894main ()
4895{
4896
4897 ;
4898 return 0;
4899}
4900_ACEOF
4901if ac_fn_c_try_compile "$LINENO"; then :
4902 ac_cv_prog_cc_g=yes
4903else
4904 CFLAGS=""
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h. */
4907
4908int
4909main ()
4910{
4911
4912 ;
4913 return 0;
4914}
4915_ACEOF
4916if ac_fn_c_try_compile "$LINENO"; then :
4917
4918else
4919 ac_c_werror_flag=$ac_save_c_werror_flag
4920 CFLAGS="-g"
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922/* end confdefs.h. */
4923
4924int
4925main ()
4926{
4927
4928 ;
4929 return 0;
4930}
4931_ACEOF
4932if ac_fn_c_try_compile "$LINENO"; then :
4933 ac_cv_prog_cc_g=yes
4934fi
4935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936fi
4937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938fi
4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 ac_c_werror_flag=$ac_save_c_werror_flag
4941fi
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4943$as_echo "$ac_cv_prog_cc_g" >&6; }
4944if test "$ac_test_CFLAGS" = set; then
4945 CFLAGS=$ac_save_CFLAGS
4946elif test $ac_cv_prog_cc_g = yes; then
4947 if test "$GCC" = yes; then
4948 CFLAGS="-g -O2"
4949 else
4950 CFLAGS="-g"
4951 fi
4952else
4953 if test "$GCC" = yes; then
4954 CFLAGS="-O2"
4955 else
4956 CFLAGS=
4957 fi
4958fi
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4960$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004961if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004962 $as_echo_n "(cached) " >&6
4963else
4964 ac_cv_prog_cc_c89=no
4965ac_save_CC=$CC
4966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967/* end confdefs.h. */
4968#include <stdarg.h>
4969#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00004970struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00004971/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4972struct buf { int x; };
4973FILE * (*rcsopen) (struct buf *, struct stat *, int);
4974static char *e (p, i)
4975 char **p;
4976 int i;
4977{
4978 return p[i];
4979}
4980static char *f (char * (*g) (char **, int), char **p, ...)
4981{
4982 char *s;
4983 va_list v;
4984 va_start (v,p);
4985 s = g (p, va_arg (v,int));
4986 va_end (v);
4987 return s;
4988}
4989
4990/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4991 function prototypes and stuff, but not '\xHH' hex character constants.
4992 These don't provoke an error unfortunately, instead are silently treated
4993 as 'x'. The following induces an error, until -std is added to get
4994 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4995 array size at least. It's necessary to write '\x00'==0 to get something
4996 that's true only with -std. */
4997int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4998
4999/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5000 inside strings and character constants. */
5001#define FOO(x) 'x'
5002int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5003
5004int test (int i, double x);
5005struct s1 {int (*f) (int a);};
5006struct s2 {int (*f) (double a);};
5007int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5008int argc;
5009char **argv;
5010int
5011main ()
5012{
5013return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5014 ;
5015 return 0;
5016}
5017_ACEOF
5018for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5019 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5020do
5021 CC="$ac_save_CC $ac_arg"
5022 if ac_fn_c_try_compile "$LINENO"; then :
5023 ac_cv_prog_cc_c89=$ac_arg
5024fi
5025rm -f core conftest.err conftest.$ac_objext
5026 test "x$ac_cv_prog_cc_c89" != "xno" && break
5027done
5028rm -f conftest.$ac_ext
5029CC=$ac_save_CC
5030
5031fi
5032# AC_CACHE_VAL
5033case "x$ac_cv_prog_cc_c89" in
5034 x)
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5036$as_echo "none needed" >&6; } ;;
5037 xno)
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5039$as_echo "unsupported" >&6; } ;;
5040 *)
5041 CC="$CC $ac_cv_prog_cc_c89"
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5043$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5044esac
5045if test "x$ac_cv_prog_cc_c89" != xno; then :
5046
5047fi
5048
5049ac_ext=c
5050ac_cpp='$CPP $CPPFLAGS'
5051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054
Joseph Myers22e05272018-10-31 17:03:16 +00005055ac_ext=c
5056ac_cpp='$CPP $CPPFLAGS'
5057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5061$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5062if ${am_cv_prog_cc_c_o+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064else
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066/* end confdefs.h. */
5067
5068int
5069main ()
5070{
5071
5072 ;
5073 return 0;
5074}
5075_ACEOF
5076 # Make sure it works both with $CC and with simple cc.
5077 # Following AC_PROG_CC_C_O, we do the test twice because some
5078 # compilers refuse to overwrite an existing .o file with -o,
5079 # though they will create one.
5080 am_cv_prog_cc_c_o=yes
5081 for am_i in 1 2; do
5082 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5083 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } \
5087 && test -f conftest2.$ac_objext; then
5088 : OK
5089 else
5090 am_cv_prog_cc_c_o=no
5091 break
5092 fi
5093 done
5094 rm -f core conftest*
5095 unset am_i
5096fi
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5098$as_echo "$am_cv_prog_cc_c_o" >&6; }
5099if test "$am_cv_prog_cc_c_o" != yes; then
5100 # Losing compiler, so override with the script.
5101 # FIXME: It is wrong to rewrite CC.
5102 # But if we don't then we get into trouble of one sort or another.
5103 # A longer-term fix would be to have automake use am__CC in this case,
5104 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5105 CC="$am_aux_dir/compile $CC"
5106fi
5107ac_ext=c
5108ac_cpp='$CPP $CPPFLAGS'
5109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112
5113
Iain Buclawb4c522f2018-10-28 19:51:47 +00005114ac_ext=d
5115ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5116ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117ac_compiler_gnu=yes
5118if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5120set dummy ${ac_tool_prefix}gdc; ac_word=$2
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005123if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005124 $as_echo_n "(cached) " >&6
5125else
5126 if test -n "$GDC"; then
5127 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5128else
5129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130for as_dir in $PATH
5131do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005136 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5139 fi
5140done
5141 done
5142IFS=$as_save_IFS
5143
5144fi
5145fi
5146GDC=$ac_cv_prog_GDC
5147if test -n "$GDC"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5149$as_echo "$GDC" >&6; }
5150else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152$as_echo "no" >&6; }
5153fi
5154
5155
5156fi
5157if test -z "$ac_cv_prog_GDC"; then
5158 ac_ct_GDC=$GDC
5159 # Extract the first word of "gdc", so it can be a program name with args.
5160set dummy gdc; ac_word=$2
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005163if ${ac_cv_prog_ac_ct_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005164 $as_echo_n "(cached) " >&6
5165else
5166 if test -n "$ac_ct_GDC"; then
5167 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5168else
5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005176 ac_cv_prog_ac_ct_GDC="gdc"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180done
5181 done
5182IFS=$as_save_IFS
5183
5184fi
5185fi
5186ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5187if test -n "$ac_ct_GDC"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5189$as_echo "$ac_ct_GDC" >&6; }
5190else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192$as_echo "no" >&6; }
5193fi
5194
5195 if test "x$ac_ct_GDC" = x; then
5196 GDC=""
5197 else
5198 case $cross_compiling:$ac_tool_warned in
5199yes:)
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202ac_tool_warned=yes ;;
5203esac
5204 GDC=$ac_ct_GDC
5205 fi
5206else
5207 GDC="$ac_cv_prog_GDC"
5208fi
5209
5210if test -z "$GDC"; then
5211 if test -n "$ac_tool_prefix"; then
5212 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5213set dummy ${ac_tool_prefix}gdc; ac_word=$2
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005216if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005217 $as_echo_n "(cached) " >&6
5218else
5219 if test -n "$GDC"; then
5220 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5221else
5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005229 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233done
5234 done
5235IFS=$as_save_IFS
5236
5237fi
5238fi
5239GDC=$ac_cv_prog_GDC
5240if test -n "$GDC"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5242$as_echo "$GDC" >&6; }
5243else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245$as_echo "no" >&6; }
5246fi
5247
5248
5249 fi
5250fi
5251if test -z "$GDC"; then
5252 # Extract the first word of "gdc", so it can be a program name with args.
5253set dummy gdc; ac_word=$2
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005256if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005257 $as_echo_n "(cached) " >&6
5258else
5259 if test -n "$GDC"; then
5260 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5261else
5262 ac_prog_rejected=no
5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005270 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5271 ac_prog_rejected=yes
5272 continue
5273 fi
5274 ac_cv_prog_GDC="gdc"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5277 fi
5278done
5279 done
5280IFS=$as_save_IFS
5281
5282if test $ac_prog_rejected = yes; then
5283 # We found a bogon in the path, so make sure we never use it.
5284 set dummy $ac_cv_prog_GDC
5285 shift
5286 if test $# != 0; then
5287 # We chose a different compiler from the bogus one.
5288 # However, it has the same basename, so the bogon will be chosen
5289 # first if we set GDC to just the basename; use the full file name.
5290 shift
5291 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5292 fi
5293fi
5294fi
5295fi
5296GDC=$ac_cv_prog_GDC
5297if test -n "$GDC"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5299$as_echo "$GDC" >&6; }
5300else
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302$as_echo "no" >&6; }
5303fi
5304
5305
5306fi
5307
5308
5309# Provide some information about the compiler.
5310$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5311set X $ac_compile
5312ac_compiler=$2
5313{ { ac_try="$ac_compiler --version >&5"
5314case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317esac
5318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5319$as_echo "$ac_try_echo"; } >&5
5320 (eval "$ac_compiler --version >&5") 2>conftest.err
5321 ac_status=$?
5322 if test -s conftest.err; then
5323 sed '10a\
5324... rest of stderr output deleted ...
5325 10q' conftest.err >conftest.er1
5326 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005327 fi
Joseph Myers22e05272018-10-31 17:03:16 +00005328 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00005329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5330 test $ac_status = 0; }
5331ac_ext=c
5332ac_cpp='$CPP $CPPFLAGS'
5333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335ac_compiler_gnu=$ac_cv_c_compiler_gnu
5336
5337
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5339$as_echo_n "checking for absolute libphobos source path... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005340if ${phobos_cv_abs_srcdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005341 $as_echo_n "(cached) " >&6
5342else
5343 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5344fi
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5346$as_echo "$phobos_cv_abs_srcdir" >&6; }
5347 if test -d "$phobos_cv_abs_srcdir"; then :
5348
5349else
Joseph Myers22e05272018-10-31 17:03:16 +00005350 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005351fi
5352
5353
5354
5355
5356 gdc_save_DFLAGS=$GDCFLAGS
5357 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5358
5359 ac_ext=d
5360ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5361ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362ac_compiler_gnu=yes
5363
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5365$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5366 cat > conftest.$ac_ext <<_ACEOF
5367module mod;
5368
5369
5370extern(C) int main() {
5371 return 0;
5372}
5373_ACEOF
5374if ac_fn_d_try_compile "$LINENO"; then :
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5376$as_echo "yes" >&6; }
5377else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379$as_echo "no" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005380 as_fn_error $? "can't compile D sources!" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005381fi
5382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 ac_ext=c
5384ac_cpp='$CPP $CPPFLAGS'
5385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388
5389
5390 GDCFLAGS=$gdc_save_DFLAGS
5391
5392
5393
5394
5395
5396
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5398$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5399 # Check whether --enable-maintainer-mode was given.
5400if test "${enable_maintainer_mode+set}" = set; then :
5401 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5402else
5403 USE_MAINTAINER_MODE=no
5404fi
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5407$as_echo "$USE_MAINTAINER_MODE" >&6; }
5408 if test $USE_MAINTAINER_MODE = yes; then
5409 MAINTAINER_MODE_TRUE=
5410 MAINTAINER_MODE_FALSE='#'
5411else
5412 MAINTAINER_MODE_TRUE='#'
5413 MAINTAINER_MODE_FALSE=
5414fi
5415
5416 MAINT=$MAINTAINER_MODE_TRUE
5417
5418
5419if test -n "$ac_tool_prefix"; then
5420 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5421set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005424if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005425 $as_echo_n "(cached) " >&6
5426else
5427 if test -n "$RANLIB"; then
5428 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5429else
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005437 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441done
5442 done
5443IFS=$as_save_IFS
5444
5445fi
5446fi
5447RANLIB=$ac_cv_prog_RANLIB
5448if test -n "$RANLIB"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5450$as_echo "$RANLIB" >&6; }
5451else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453$as_echo "no" >&6; }
5454fi
5455
5456
5457fi
5458if test -z "$ac_cv_prog_RANLIB"; then
5459 ac_ct_RANLIB=$RANLIB
5460 # Extract the first word of "ranlib", so it can be a program name with args.
5461set dummy ranlib; ac_word=$2
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005464if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005465 $as_echo_n "(cached) " >&6
5466else
5467 if test -n "$ac_ct_RANLIB"; then
5468 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005477 ac_cv_prog_ac_ct_RANLIB="ranlib"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481done
5482 done
5483IFS=$as_save_IFS
5484
5485fi
5486fi
5487ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5488if test -n "$ac_ct_RANLIB"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5490$as_echo "$ac_ct_RANLIB" >&6; }
5491else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493$as_echo "no" >&6; }
5494fi
5495
5496 if test "x$ac_ct_RANLIB" = x; then
5497 RANLIB=":"
5498 else
5499 case $cross_compiling:$ac_tool_warned in
5500yes:)
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503ac_tool_warned=yes ;;
5504esac
5505 RANLIB=$ac_ct_RANLIB
5506 fi
5507else
5508 RANLIB="$ac_cv_prog_RANLIB"
5509fi
5510
5511
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5513$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5514set x ${MAKE-make}
5515ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00005516if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005517 $as_echo_n "(cached) " >&6
5518else
5519 cat >conftest.make <<\_ACEOF
5520SHELL = /bin/sh
5521all:
5522 @echo '@@@%%%=$(MAKE)=@@@%%%'
5523_ACEOF
Joseph Myers22e05272018-10-31 17:03:16 +00005524# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Iain Buclawb4c522f2018-10-28 19:51:47 +00005525case `${MAKE-make} -f conftest.make 2>/dev/null` in
5526 *@@@%%%=?*=@@@%%%*)
5527 eval ac_cv_prog_make_${ac_make}_set=yes;;
5528 *)
5529 eval ac_cv_prog_make_${ac_make}_set=no;;
5530esac
5531rm -f conftest.make
5532fi
5533if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5535$as_echo "yes" >&6; }
5536 SET_MAKE=
5537else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539$as_echo "no" >&6; }
5540 SET_MAKE="MAKE=${MAKE-make}"
5541fi
5542
5543
5544# This should be inherited in the recursive make, but ensure it is defined.
5545test "$AR" || AR=ar
5546
5547
5548CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5549
5550
5551
5552# Enable libtool
5553case `pwd` in
5554 *\ * | *\ *)
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5556$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5557esac
5558
5559
5560
5561macro_version='2.2.7a'
5562macro_revision='1.3134'
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576ltmain="$ac_aux_dir/ltmain.sh"
5577
5578# Backslashify metacharacters that are still active within
5579# double-quoted strings.
5580sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5581
5582# Same as above, but do not quote variable references.
5583double_quote_subst='s/\(["`\\]\)/\\\1/g'
5584
5585# Sed substitution to delay expansion of an escaped shell variable in a
5586# double_quote_subst'ed string.
5587delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5588
5589# Sed substitution to delay expansion of an escaped single quote.
5590delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5591
5592# Sed substitution to avoid accidental globbing in evaled expressions
5593no_glob_subst='s/\*/\\\*/g'
5594
5595ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5596ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5597ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5598
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5600$as_echo_n "checking how to print strings... " >&6; }
5601# Test print first, because it will be a builtin if present.
5602if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5603 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5604 ECHO='print -r --'
5605elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5606 ECHO='printf %s\n'
5607else
5608 # Use this function as a fallback that always works.
5609 func_fallback_echo ()
5610 {
5611 eval 'cat <<_LTECHO_EOF
5612$1
5613_LTECHO_EOF'
5614 }
5615 ECHO='func_fallback_echo'
5616fi
5617
5618# func_echo_all arg...
5619# Invoke $ECHO with all args, space-separated.
5620func_echo_all ()
5621{
5622 $ECHO ""
5623}
5624
5625case "$ECHO" in
5626 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5627$as_echo "printf" >&6; } ;;
5628 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5629$as_echo "print -r" >&6; } ;;
5630 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5631$as_echo "cat" >&6; } ;;
5632esac
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5648$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005649if ${ac_cv_path_SED+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005650 $as_echo_n "(cached) " >&6
5651else
5652 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5653 for ac_i in 1 2 3 4 5 6 7; do
5654 ac_script="$ac_script$as_nl$ac_script"
5655 done
5656 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5657 { ac_script=; unset ac_script;}
5658 if test -z "$SED"; then
5659 ac_path_SED_found=false
5660 # Loop through the user's path and test for each of PROGNAME-LIST
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_prog in sed gsed; do
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005669 as_fn_executable_p "$ac_path_SED" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005670# Check for GNU ac_path_SED and select it if it is found.
5671 # Check for GNU $ac_path_SED
5672case `"$ac_path_SED" --version 2>&1` in
5673*GNU*)
5674 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5675*)
5676 ac_count=0
5677 $as_echo_n 0123456789 >"conftest.in"
5678 while :
5679 do
5680 cat "conftest.in" "conftest.in" >"conftest.tmp"
5681 mv "conftest.tmp" "conftest.in"
5682 cp "conftest.in" "conftest.nl"
5683 $as_echo '' >> "conftest.nl"
5684 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5686 as_fn_arith $ac_count + 1 && ac_count=$as_val
5687 if test $ac_count -gt ${ac_path_SED_max-0}; then
5688 # Best one so far, save it but keep looking for a better one
5689 ac_cv_path_SED="$ac_path_SED"
5690 ac_path_SED_max=$ac_count
5691 fi
5692 # 10*(2^10) chars as input seems more than enough
5693 test $ac_count -gt 10 && break
5694 done
5695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5696esac
5697
5698 $ac_path_SED_found && break 3
5699 done
5700 done
5701 done
5702IFS=$as_save_IFS
5703 if test -z "$ac_cv_path_SED"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005704 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005705 fi
5706else
5707 ac_cv_path_SED=$SED
5708fi
5709
5710fi
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5712$as_echo "$ac_cv_path_SED" >&6; }
5713 SED="$ac_cv_path_SED"
5714 rm -f conftest.sed
5715
5716test -z "$SED" && SED=sed
5717Xsed="$SED -e 1s/^X//"
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
Iain Buclawb4c522f2018-10-28 19:51:47 +00005729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5730$as_echo_n "checking for fgrep... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005731if ${ac_cv_path_FGREP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005732 $as_echo_n "(cached) " >&6
5733else
5734 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5735 then ac_cv_path_FGREP="$GREP -F"
5736 else
5737 if test -z "$FGREP"; then
5738 ac_path_FGREP_found=false
5739 # Loop through the user's path and test for each of PROGNAME-LIST
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_prog in fgrep; do
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005748 as_fn_executable_p "$ac_path_FGREP" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005749# Check for GNU ac_path_FGREP and select it if it is found.
5750 # Check for GNU $ac_path_FGREP
5751case `"$ac_path_FGREP" --version 2>&1` in
5752*GNU*)
5753 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5754*)
5755 ac_count=0
5756 $as_echo_n 0123456789 >"conftest.in"
5757 while :
5758 do
5759 cat "conftest.in" "conftest.in" >"conftest.tmp"
5760 mv "conftest.tmp" "conftest.in"
5761 cp "conftest.in" "conftest.nl"
5762 $as_echo 'FGREP' >> "conftest.nl"
5763 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5765 as_fn_arith $ac_count + 1 && ac_count=$as_val
5766 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5767 # Best one so far, save it but keep looking for a better one
5768 ac_cv_path_FGREP="$ac_path_FGREP"
5769 ac_path_FGREP_max=$ac_count
5770 fi
5771 # 10*(2^10) chars as input seems more than enough
5772 test $ac_count -gt 10 && break
5773 done
5774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5775esac
5776
5777 $ac_path_FGREP_found && break 3
5778 done
5779 done
5780 done
5781IFS=$as_save_IFS
5782 if test -z "$ac_cv_path_FGREP"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005783 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 +00005784 fi
5785else
5786 ac_cv_path_FGREP=$FGREP
5787fi
5788
5789 fi
5790fi
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5792$as_echo "$ac_cv_path_FGREP" >&6; }
5793 FGREP="$ac_cv_path_FGREP"
5794
5795
5796test -z "$GREP" && GREP=grep
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816# Check whether --with-gnu-ld was given.
5817if test "${with_gnu_ld+set}" = set; then :
5818 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5819else
5820 with_gnu_ld=no
5821fi
5822
5823ac_prog=ld
5824if test "$GCC" = yes; then
5825 # Check if gcc -print-prog-name=ld gives a path.
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5827$as_echo_n "checking for ld used by $CC... " >&6; }
5828 case $host in
5829 *-*-mingw*)
5830 # gcc leaves a trailing carriage return which upsets mingw
5831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5832 *)
5833 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5834 esac
5835 case $ac_prog in
5836 # Accept absolute paths.
5837 [\\/]* | ?:[\\/]*)
5838 re_direlt='/[^/][^/]*/\.\./'
5839 # Canonicalize the pathname of ld
5840 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5841 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5842 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5843 done
5844 test -z "$LD" && LD="$ac_prog"
5845 ;;
5846 "")
5847 # If it fails, then pretend we aren't using GCC.
5848 ac_prog=ld
5849 ;;
5850 *)
5851 # If it is relative, then search for the first ld in PATH.
5852 with_gnu_ld=unknown
5853 ;;
5854 esac
5855elif test "$with_gnu_ld" = yes; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5857$as_echo_n "checking for GNU ld... " >&6; }
5858else
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5860$as_echo_n "checking for non-GNU ld... " >&6; }
5861fi
Joseph Myers22e05272018-10-31 17:03:16 +00005862if ${lt_cv_path_LD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005863 $as_echo_n "(cached) " >&6
5864else
5865 if test -z "$LD"; then
5866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5867 for ac_dir in $PATH; do
5868 IFS="$lt_save_ifs"
5869 test -z "$ac_dir" && ac_dir=.
5870 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5871 lt_cv_path_LD="$ac_dir/$ac_prog"
5872 # Check to see if the program is GNU ld. I'd rather use --version,
5873 # but apparently some variants of GNU ld only accept -v.
5874 # Break only if it was the GNU/non-GNU ld that we prefer.
5875 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5876 *GNU* | *'with BFD'*)
5877 test "$with_gnu_ld" != no && break
5878 ;;
5879 *)
5880 test "$with_gnu_ld" != yes && break
5881 ;;
5882 esac
5883 fi
5884 done
5885 IFS="$lt_save_ifs"
5886else
5887 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5888fi
5889fi
5890
5891LD="$lt_cv_path_LD"
5892if test -n "$LD"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5894$as_echo "$LD" >&6; }
5895else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897$as_echo "no" >&6; }
5898fi
Joseph Myers22e05272018-10-31 17:03:16 +00005899test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5901$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005902if ${lt_cv_prog_gnu_ld+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005903 $as_echo_n "(cached) " >&6
5904else
5905 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5906case `$LD -v 2>&1 </dev/null` in
5907*GNU* | *'with BFD'*)
5908 lt_cv_prog_gnu_ld=yes
5909 ;;
5910*)
5911 lt_cv_prog_gnu_ld=no
5912 ;;
5913esac
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5916$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5917with_gnu_ld=$lt_cv_prog_gnu_ld
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5928$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005929if ${lt_cv_path_NM+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005930 $as_echo_n "(cached) " >&6
5931else
5932 if test -n "$NM"; then
5933 # Let the user override the test.
5934 lt_cv_path_NM="$NM"
5935else
5936 lt_nm_to_check="${ac_tool_prefix}nm"
5937 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5938 lt_nm_to_check="$lt_nm_to_check nm"
5939 fi
5940 for lt_tmp_nm in $lt_nm_to_check; do
5941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5942 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5943 IFS="$lt_save_ifs"
5944 test -z "$ac_dir" && ac_dir=.
5945 tmp_nm="$ac_dir/$lt_tmp_nm"
5946 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5947 # Check to see if the nm accepts a BSD-compat flag.
5948 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5949 # nm: unknown option "B" ignored
5950 # Tru64's nm complains that /dev/null is an invalid object file
5951 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5952 */dev/null* | *'Invalid file or object type'*)
5953 lt_cv_path_NM="$tmp_nm -B"
5954 break
5955 ;;
5956 *)
5957 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5958 */dev/null*)
5959 lt_cv_path_NM="$tmp_nm -p"
5960 break
5961 ;;
5962 *)
5963 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5964 continue # so that we can try to find one that supports BSD flags
5965 ;;
5966 esac
5967 ;;
5968 esac
5969 fi
5970 done
5971 IFS="$lt_save_ifs"
5972 done
5973 : ${lt_cv_path_NM=no}
5974fi
5975fi
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5977$as_echo "$lt_cv_path_NM" >&6; }
5978if test "$lt_cv_path_NM" != "no"; then
5979 NM="$lt_cv_path_NM"
5980else
5981 # Didn't find any BSD compatible name lister, look for dumpbin.
5982 if test -n "$DUMPBIN"; then :
5983 # Let the user override the test.
5984 else
5985 if test -n "$ac_tool_prefix"; then
5986 for ac_prog in dumpbin "link -dump"
5987 do
5988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5989set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005992if ${ac_cv_prog_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005993 $as_echo_n "(cached) " >&6
5994else
5995 if test -n "$DUMPBIN"; then
5996 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006005 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 break 2
6008 fi
6009done
6010 done
6011IFS=$as_save_IFS
6012
6013fi
6014fi
6015DUMPBIN=$ac_cv_prog_DUMPBIN
6016if test -n "$DUMPBIN"; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6018$as_echo "$DUMPBIN" >&6; }
6019else
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021$as_echo "no" >&6; }
6022fi
6023
6024
6025 test -n "$DUMPBIN" && break
6026 done
6027fi
6028if test -z "$DUMPBIN"; then
6029 ac_ct_DUMPBIN=$DUMPBIN
6030 for ac_prog in dumpbin "link -dump"
6031do
6032 # Extract the first word of "$ac_prog", so it can be a program name with args.
6033set dummy $ac_prog; ac_word=$2
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006036if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006037 $as_echo_n "(cached) " >&6
6038else
6039 if test -n "$ac_ct_DUMPBIN"; then
6040 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6041else
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006049 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053done
6054 done
6055IFS=$as_save_IFS
6056
6057fi
6058fi
6059ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6060if test -n "$ac_ct_DUMPBIN"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6062$as_echo "$ac_ct_DUMPBIN" >&6; }
6063else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065$as_echo "no" >&6; }
6066fi
6067
6068
6069 test -n "$ac_ct_DUMPBIN" && break
6070done
6071
6072 if test "x$ac_ct_DUMPBIN" = x; then
6073 DUMPBIN=":"
6074 else
6075 case $cross_compiling:$ac_tool_warned in
6076yes:)
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6079ac_tool_warned=yes ;;
6080esac
6081 DUMPBIN=$ac_ct_DUMPBIN
6082 fi
6083fi
6084
6085 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6086 *COFF*)
6087 DUMPBIN="$DUMPBIN -symbols"
6088 ;;
6089 *)
6090 DUMPBIN=:
6091 ;;
6092 esac
6093 fi
6094
6095 if test "$DUMPBIN" != ":"; then
6096 NM="$DUMPBIN"
6097 fi
6098fi
6099test -z "$NM" && NM=nm
6100
6101
6102
6103
6104
6105
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6107$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006108if ${lt_cv_nm_interface+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006109 $as_echo_n "(cached) " >&6
6110else
6111 lt_cv_nm_interface="BSD nm"
6112 echo "int some_variable = 0;" > conftest.$ac_ext
6113 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6114 (eval "$ac_compile" 2>conftest.err)
6115 cat conftest.err >&5
6116 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6117 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6118 cat conftest.err >&5
6119 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6120 cat conftest.out >&5
6121 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6122 lt_cv_nm_interface="MS dumpbin"
6123 fi
6124 rm -f conftest*
6125fi
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6127$as_echo "$lt_cv_nm_interface" >&6; }
6128
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6130$as_echo_n "checking whether ln -s works... " >&6; }
6131LN_S=$as_ln_s
6132if test "$LN_S" = "ln -s"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6134$as_echo "yes" >&6; }
6135else
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6137$as_echo "no, using $LN_S" >&6; }
6138fi
6139
6140# find the maximum length of command line arguments
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6142$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006143if ${lt_cv_sys_max_cmd_len+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006144 $as_echo_n "(cached) " >&6
6145else
6146 i=0
6147 teststring="ABCD"
6148
6149 case $build_os in
6150 msdosdjgpp*)
6151 # On DJGPP, this test can blow up pretty badly due to problems in libc
6152 # (any single argument exceeding 2000 bytes causes a buffer overrun
6153 # during glob expansion). Even if it were fixed, the result of this
6154 # check would be larger than it should be.
6155 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6156 ;;
6157
6158 gnu*)
6159 # Under GNU Hurd, this test is not required because there is
6160 # no limit to the length of command line arguments.
6161 # Libtool will interpret -1 as no limit whatsoever
6162 lt_cv_sys_max_cmd_len=-1;
6163 ;;
6164
6165 cygwin* | mingw* | cegcc*)
6166 # On Win9x/ME, this test blows up -- it succeeds, but takes
6167 # about 5 minutes as the teststring grows exponentially.
6168 # Worse, since 9x/ME are not pre-emptively multitasking,
6169 # you end up with a "frozen" computer, even though with patience
6170 # the test eventually succeeds (with a max line length of 256k).
6171 # Instead, let's just punt: use the minimum linelength reported by
6172 # all of the supported platforms: 8192 (on NT/2K/XP).
6173 lt_cv_sys_max_cmd_len=8192;
6174 ;;
6175
6176 mint*)
6177 # On MiNT this can take a long time and run out of memory.
6178 lt_cv_sys_max_cmd_len=8192;
6179 ;;
6180
6181 amigaos*)
6182 # On AmigaOS with pdksh, this test takes hours, literally.
6183 # So we just punt and use a minimum line length of 8192.
6184 lt_cv_sys_max_cmd_len=8192;
6185 ;;
6186
6187 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6188 # This has been around since 386BSD, at least. Likely further.
6189 if test -x /sbin/sysctl; then
6190 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6191 elif test -x /usr/sbin/sysctl; then
6192 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6193 else
6194 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6195 fi
6196 # And add a safety zone
6197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6198 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6199 ;;
6200
6201 interix*)
6202 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6203 lt_cv_sys_max_cmd_len=196608
6204 ;;
6205
6206 osf*)
6207 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6208 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6209 # nice to cause kernel panics so lets avoid the loop below.
6210 # First set a reasonable default.
6211 lt_cv_sys_max_cmd_len=16384
6212 #
6213 if test -x /sbin/sysconfig; then
6214 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6215 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6216 esac
6217 fi
6218 ;;
6219 sco3.2v5*)
6220 lt_cv_sys_max_cmd_len=102400
6221 ;;
6222 sysv5* | sco5v6* | sysv4.2uw2*)
6223 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6224 if test -n "$kargmax"; then
6225 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6226 else
6227 lt_cv_sys_max_cmd_len=32768
6228 fi
6229 ;;
6230 *)
6231 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6232 if test -n "$lt_cv_sys_max_cmd_len"; then
6233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6235 else
6236 # Make teststring a little bigger before we do anything with it.
6237 # a 1K string should be a reasonable start.
6238 for i in 1 2 3 4 5 6 7 8 ; do
6239 teststring=$teststring$teststring
6240 done
6241 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6242 # If test is not a shell built-in, we'll probably end up computing a
6243 # maximum length that is only half of the actual maximum length, but
6244 # we can't tell.
6245 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6246 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6247 test $i != 17 # 1/2 MB should be enough
6248 do
6249 i=`expr $i + 1`
6250 teststring=$teststring$teststring
6251 done
6252 # Only check the string length outside the loop.
6253 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6254 teststring=
6255 # Add a significant safety factor because C++ compilers can tack on
6256 # massive amounts of additional arguments before passing them to the
6257 # linker. It appears as though 1/2 is a usable value.
6258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6259 fi
6260 ;;
6261 esac
6262
6263fi
6264
6265if test -n $lt_cv_sys_max_cmd_len ; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6267$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6268else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6270$as_echo "none" >&6; }
6271fi
6272max_cmd_len=$lt_cv_sys_max_cmd_len
6273
6274
6275
6276
6277
6278
6279: ${CP="cp -f"}
6280: ${MV="mv -f"}
6281: ${RM="rm -f"}
6282
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6284$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6285# Try some XSI features
6286xsi_shell=no
6287( _lt_dummy="a/b/c"
6288 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6289 = c,a/b,, \
6290 && eval 'test $(( 1 + 1 )) -eq 2 \
6291 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6292 && xsi_shell=yes
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6294$as_echo "$xsi_shell" >&6; }
6295
6296
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6298$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6299lt_shell_append=no
6300( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6301 >/dev/null 2>&1 \
6302 && lt_shell_append=yes
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6304$as_echo "$lt_shell_append" >&6; }
6305
6306
6307if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6308 lt_unset=unset
6309else
6310 lt_unset=false
6311fi
6312
6313
6314
6315
6316
6317# test EBCDIC or ASCII
6318case `echo X|tr X '\101'` in
6319 A) # ASCII based system
6320 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6321 lt_SP2NL='tr \040 \012'
6322 lt_NL2SP='tr \015\012 \040\040'
6323 ;;
6324 *) # EBCDIC based system
6325 lt_SP2NL='tr \100 \n'
6326 lt_NL2SP='tr \r\n \100\100'
6327 ;;
6328esac
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6339$as_echo_n "checking for $LD option to reload object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006340if ${lt_cv_ld_reload_flag+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006341 $as_echo_n "(cached) " >&6
6342else
6343 lt_cv_ld_reload_flag='-r'
6344fi
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6346$as_echo "$lt_cv_ld_reload_flag" >&6; }
6347reload_flag=$lt_cv_ld_reload_flag
6348case $reload_flag in
6349"" | " "*) ;;
6350*) reload_flag=" $reload_flag" ;;
6351esac
6352reload_cmds='$LD$reload_flag -o $output$reload_objs'
6353case $host_os in
6354 darwin*)
6355 if test "$GCC" = yes; then
6356 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6357 else
6358 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6359 fi
6360 ;;
6361esac
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6373set dummy ${ac_tool_prefix}objdump; ac_word=$2
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006376if ${ac_cv_prog_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006377 $as_echo_n "(cached) " >&6
6378else
6379 if test -n "$OBJDUMP"; then
6380 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6381else
6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383for as_dir in $PATH
6384do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006389 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393done
6394 done
6395IFS=$as_save_IFS
6396
6397fi
6398fi
6399OBJDUMP=$ac_cv_prog_OBJDUMP
6400if test -n "$OBJDUMP"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6402$as_echo "$OBJDUMP" >&6; }
6403else
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405$as_echo "no" >&6; }
6406fi
6407
6408
6409fi
6410if test -z "$ac_cv_prog_OBJDUMP"; then
6411 ac_ct_OBJDUMP=$OBJDUMP
6412 # Extract the first word of "objdump", so it can be a program name with args.
6413set dummy objdump; ac_word=$2
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006416if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006417 $as_echo_n "(cached) " >&6
6418else
6419 if test -n "$ac_ct_OBJDUMP"; then
6420 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6421else
6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006429 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433done
6434 done
6435IFS=$as_save_IFS
6436
6437fi
6438fi
6439ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6440if test -n "$ac_ct_OBJDUMP"; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6442$as_echo "$ac_ct_OBJDUMP" >&6; }
6443else
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445$as_echo "no" >&6; }
6446fi
6447
6448 if test "x$ac_ct_OBJDUMP" = x; then
6449 OBJDUMP="false"
6450 else
6451 case $cross_compiling:$ac_tool_warned in
6452yes:)
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455ac_tool_warned=yes ;;
6456esac
6457 OBJDUMP=$ac_ct_OBJDUMP
6458 fi
6459else
6460 OBJDUMP="$ac_cv_prog_OBJDUMP"
6461fi
6462
6463test -z "$OBJDUMP" && OBJDUMP=objdump
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6474$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006475if ${lt_cv_deplibs_check_method+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006476 $as_echo_n "(cached) " >&6
6477else
6478 lt_cv_file_magic_cmd='$MAGIC_CMD'
6479lt_cv_file_magic_test_file=
6480lt_cv_deplibs_check_method='unknown'
6481# Need to set the preceding variable on all platforms that support
6482# interlibrary dependencies.
6483# 'none' -- dependencies not supported.
6484# `unknown' -- same as none, but documents that we really don't know.
6485# 'pass_all' -- all dependencies passed with no checks.
6486# 'test_compile' -- check by making test program.
6487# 'file_magic [[regex]]' -- check by looking for files in library path
6488# which responds to the $file_magic_cmd with a given extended regex.
6489# If you have `file' or equivalent on your system and you're not sure
6490# whether `pass_all' will *always* work, you probably want this one.
6491
6492case $host_os in
6493aix[4-9]*)
6494 lt_cv_deplibs_check_method=pass_all
6495 ;;
6496
6497beos*)
6498 lt_cv_deplibs_check_method=pass_all
6499 ;;
6500
6501bsdi[45]*)
6502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6503 lt_cv_file_magic_cmd='/usr/bin/file -L'
6504 lt_cv_file_magic_test_file=/shlib/libc.so
6505 ;;
6506
6507cygwin*)
6508 # func_win32_libid is a shell function defined in ltmain.sh
6509 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6510 lt_cv_file_magic_cmd='func_win32_libid'
6511 ;;
6512
6513mingw* | pw32*)
6514 # Base MSYS/MinGW do not provide the 'file' command needed by
6515 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6516 # unless we find 'file', for example because we are cross-compiling.
6517 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6518 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6519 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6520 lt_cv_file_magic_cmd='func_win32_libid'
6521 else
6522 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6523 lt_cv_file_magic_cmd='$OBJDUMP -f'
6524 fi
6525 ;;
6526
6527cegcc*)
6528 # use the weaker test based on 'objdump'. See mingw*.
6529 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6530 lt_cv_file_magic_cmd='$OBJDUMP -f'
6531 ;;
6532
6533darwin* | rhapsody*)
6534 lt_cv_deplibs_check_method=pass_all
6535 ;;
6536
6537freebsd* | dragonfly*)
6538 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6539 case $host_cpu in
6540 i*86 )
6541 # Not sure whether the presence of OpenBSD here was a mistake.
6542 # Let's accept both of them until this is cleared up.
6543 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6544 lt_cv_file_magic_cmd=/usr/bin/file
6545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6546 ;;
6547 esac
6548 else
6549 lt_cv_deplibs_check_method=pass_all
6550 fi
6551 ;;
6552
6553gnu*)
6554 lt_cv_deplibs_check_method=pass_all
6555 ;;
6556
6557haiku*)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560
6561hpux10.20* | hpux11*)
6562 lt_cv_file_magic_cmd=/usr/bin/file
6563 case $host_cpu in
6564 ia64*)
6565 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6566 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6567 ;;
6568 hppa*64*)
6569 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]'
6570 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6571 ;;
6572 *)
6573 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6574 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6575 ;;
6576 esac
6577 ;;
6578
6579interix[3-9]*)
6580 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6582 ;;
6583
6584irix5* | irix6* | nonstopux*)
6585 case $LD in
6586 *-32|*"-32 ") libmagic=32-bit;;
6587 *-n32|*"-n32 ") libmagic=N32;;
6588 *-64|*"-64 ") libmagic=64-bit;;
6589 *) libmagic=never-match;;
6590 esac
6591 lt_cv_deplibs_check_method=pass_all
6592 ;;
6593
6594# This must be Linux ELF.
6595linux* | k*bsd*-gnu | kopensolaris*-gnu)
6596 lt_cv_deplibs_check_method=pass_all
6597 ;;
6598
6599netbsd*)
6600 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6601 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6602 else
6603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6604 fi
6605 ;;
6606
6607newos6*)
6608 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6609 lt_cv_file_magic_cmd=/usr/bin/file
6610 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6611 ;;
6612
6613*nto* | *qnx*)
6614 lt_cv_deplibs_check_method=pass_all
6615 ;;
6616
6617openbsd*)
6618 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6620 else
6621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6622 fi
6623 ;;
6624
6625osf3* | osf4* | osf5*)
6626 lt_cv_deplibs_check_method=pass_all
6627 ;;
6628
6629rdos*)
6630 lt_cv_deplibs_check_method=pass_all
6631 ;;
6632
6633solaris*)
6634 lt_cv_deplibs_check_method=pass_all
6635 ;;
6636
6637sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6638 lt_cv_deplibs_check_method=pass_all
6639 ;;
6640
6641sysv4 | sysv4.3*)
6642 case $host_vendor in
6643 motorola)
6644 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]'
6645 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6646 ;;
6647 ncr)
6648 lt_cv_deplibs_check_method=pass_all
6649 ;;
6650 sequent)
6651 lt_cv_file_magic_cmd='/bin/file'
6652 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6653 ;;
6654 sni)
6655 lt_cv_file_magic_cmd='/bin/file'
6656 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6657 lt_cv_file_magic_test_file=/lib/libc.so
6658 ;;
6659 siemens)
6660 lt_cv_deplibs_check_method=pass_all
6661 ;;
6662 pc)
6663 lt_cv_deplibs_check_method=pass_all
6664 ;;
6665 esac
6666 ;;
6667
6668tpf*)
6669 lt_cv_deplibs_check_method=pass_all
6670 ;;
6671esac
6672
6673fi
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6675$as_echo "$lt_cv_deplibs_check_method" >&6; }
6676file_magic_cmd=$lt_cv_file_magic_cmd
6677deplibs_check_method=$lt_cv_deplibs_check_method
6678test -z "$deplibs_check_method" && deplibs_check_method=unknown
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6693set dummy ${ac_tool_prefix}ar; ac_word=$2
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006696if ${ac_cv_prog_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006697 $as_echo_n "(cached) " >&6
6698else
6699 if test -n "$AR"; then
6700 ac_cv_prog_AR="$AR" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006709 ac_cv_prog_AR="${ac_tool_prefix}ar"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713done
6714 done
6715IFS=$as_save_IFS
6716
6717fi
6718fi
6719AR=$ac_cv_prog_AR
6720if test -n "$AR"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6722$as_echo "$AR" >&6; }
6723else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725$as_echo "no" >&6; }
6726fi
6727
6728
6729fi
6730if test -z "$ac_cv_prog_AR"; then
6731 ac_ct_AR=$AR
6732 # Extract the first word of "ar", so it can be a program name with args.
6733set dummy ar; ac_word=$2
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006736if ${ac_cv_prog_ac_ct_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006737 $as_echo_n "(cached) " >&6
6738else
6739 if test -n "$ac_ct_AR"; then
6740 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006749 ac_cv_prog_ac_ct_AR="ar"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754 done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759ac_ct_AR=$ac_cv_prog_ac_ct_AR
6760if test -n "$ac_ct_AR"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6762$as_echo "$ac_ct_AR" >&6; }
6763else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768 if test "x$ac_ct_AR" = x; then
6769 AR="false"
6770 else
6771 case $cross_compiling:$ac_tool_warned in
6772yes:)
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775ac_tool_warned=yes ;;
6776esac
6777 AR=$ac_ct_AR
6778 fi
6779else
6780 AR="$ac_cv_prog_AR"
6781fi
6782
6783test -z "$AR" && AR=ar
6784test -z "$AR_FLAGS" && AR_FLAGS=cru
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796if test -n "$ac_tool_prefix"; then
6797 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6798set dummy ${ac_tool_prefix}strip; ac_word=$2
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006801if ${ac_cv_prog_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006802 $as_echo_n "(cached) " >&6
6803else
6804 if test -n "$STRIP"; then
6805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006814 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818done
6819 done
6820IFS=$as_save_IFS
6821
6822fi
6823fi
6824STRIP=$ac_cv_prog_STRIP
6825if test -n "$STRIP"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6827$as_echo "$STRIP" >&6; }
6828else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830$as_echo "no" >&6; }
6831fi
6832
6833
6834fi
6835if test -z "$ac_cv_prog_STRIP"; then
6836 ac_ct_STRIP=$STRIP
6837 # Extract the first word of "strip", so it can be a program name with args.
6838set dummy strip; ac_word=$2
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006841if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006842 $as_echo_n "(cached) " >&6
6843else
6844 if test -n "$ac_ct_STRIP"; then
6845 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6846else
6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006854 ac_cv_prog_ac_ct_STRIP="strip"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6857 fi
6858done
6859 done
6860IFS=$as_save_IFS
6861
6862fi
6863fi
6864ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6865if test -n "$ac_ct_STRIP"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6867$as_echo "$ac_ct_STRIP" >&6; }
6868else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870$as_echo "no" >&6; }
6871fi
6872
6873 if test "x$ac_ct_STRIP" = x; then
6874 STRIP=":"
6875 else
6876 case $cross_compiling:$ac_tool_warned in
6877yes:)
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880ac_tool_warned=yes ;;
6881esac
6882 STRIP=$ac_ct_STRIP
6883 fi
6884else
6885 STRIP="$ac_cv_prog_STRIP"
6886fi
6887
6888test -z "$STRIP" && STRIP=:
6889
6890
6891
6892
6893
6894
6895if test -n "$ac_tool_prefix"; then
6896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6897set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006900if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006901 $as_echo_n "(cached) " >&6
6902else
6903 if test -n "$RANLIB"; then
6904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6905else
6906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907for as_dir in $PATH
6908do
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6916 fi
6917done
6918 done
6919IFS=$as_save_IFS
6920
6921fi
6922fi
6923RANLIB=$ac_cv_prog_RANLIB
6924if test -n "$RANLIB"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6926$as_echo "$RANLIB" >&6; }
6927else
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929$as_echo "no" >&6; }
6930fi
6931
6932
6933fi
6934if test -z "$ac_cv_prog_RANLIB"; then
6935 ac_ct_RANLIB=$RANLIB
6936 # Extract the first word of "ranlib", so it can be a program name with args.
6937set dummy ranlib; ac_word=$2
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006940if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006941 $as_echo_n "(cached) " >&6
6942else
6943 if test -n "$ac_ct_RANLIB"; then
6944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006953 ac_cv_prog_ac_ct_RANLIB="ranlib"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957done
6958 done
6959IFS=$as_save_IFS
6960
6961fi
6962fi
6963ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6964if test -n "$ac_ct_RANLIB"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6966$as_echo "$ac_ct_RANLIB" >&6; }
6967else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969$as_echo "no" >&6; }
6970fi
6971
6972 if test "x$ac_ct_RANLIB" = x; then
6973 RANLIB=":"
6974 else
6975 case $cross_compiling:$ac_tool_warned in
6976yes:)
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979ac_tool_warned=yes ;;
6980esac
6981 RANLIB=$ac_ct_RANLIB
6982 fi
6983else
6984 RANLIB="$ac_cv_prog_RANLIB"
6985fi
6986
6987test -z "$RANLIB" && RANLIB=:
6988
6989
6990
6991
6992
6993
6994# Determine commands to create old-style static archives.
6995old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6996old_postinstall_cmds='chmod 644 $oldlib'
6997old_postuninstall_cmds=
6998
6999if test -n "$RANLIB"; then
7000 case $host_os in
7001 openbsd*)
7002 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7003 ;;
7004 *)
7005 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7006 ;;
7007 esac
7008 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7009fi
7010
7011case $host_os in
7012 darwin*)
7013 lock_old_archive_extraction=yes ;;
7014 *)
7015 lock_old_archive_extraction=no ;;
7016esac
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056# If no C compiler was specified, use CC.
7057LTCC=${LTCC-"$CC"}
7058
7059# If no C compiler flags were specified, use CFLAGS.
7060LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7061
7062# Allow CC to be a program name with arguments.
7063compiler=$CC
7064
7065
7066# Check for command to grab the raw symbol name followed by C symbol from nm.
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7068$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007069if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007070 $as_echo_n "(cached) " >&6
7071else
7072
7073# These are sane defaults that work on at least a few old systems.
7074# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7075
7076# Character class describing NM global symbol codes.
7077symcode='[BCDEGRST]'
7078
7079# Regexp to match symbols that can be accessed directly from C.
7080sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7081
7082# Define system-specific variables.
7083case $host_os in
7084aix*)
7085 symcode='[BCDT]'
7086 ;;
7087cygwin* | mingw* | pw32* | cegcc*)
7088 symcode='[ABCDGISTW]'
7089 ;;
7090hpux*)
7091 if test "$host_cpu" = ia64; then
7092 symcode='[ABCDEGRST]'
7093 fi
7094 ;;
7095irix* | nonstopux*)
7096 symcode='[BCDEGRST]'
7097 ;;
7098osf*)
7099 symcode='[BCDEGQRST]'
7100 ;;
7101solaris*)
7102 symcode='[BDRT]'
7103 ;;
7104sco3.2v5*)
7105 symcode='[DT]'
7106 ;;
7107sysv4.2uw2*)
7108 symcode='[DT]'
7109 ;;
7110sysv5* | sco5v6* | unixware* | OpenUNIX*)
7111 symcode='[ABDT]'
7112 ;;
7113sysv4)
7114 symcode='[DFNSTU]'
7115 ;;
7116esac
7117
7118# If we're using GNU nm, then use its standard symbol codes.
7119case `$NM -V 2>&1` in
7120*GNU* | *'with BFD'*)
7121 symcode='[ABCDGIRSTW]' ;;
7122esac
7123
7124# Transform an extracted symbol line into a proper C declaration.
7125# Some systems (esp. on ia64) link data and code symbols differently,
7126# so use this general approach.
7127lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7128
7129# Transform an extracted symbol line into symbol name and symbol address
7130lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7131lt_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'"
7132
7133# Handle CRLF in mingw tool chain
7134opt_cr=
7135case $build_os in
7136mingw*)
7137 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7138 ;;
7139esac
7140
7141# Try without a prefix underscore, then with it.
7142for ac_symprfx in "" "_"; do
7143
7144 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7145 symxfrm="\\1 $ac_symprfx\\2 \\2"
7146
7147 # Write the raw and C identifiers.
7148 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7149 # Fake it for dumpbin and say T for any non-static function
7150 # and D for any global variable.
7151 # Also find C++ and __fastcall symbols from MSVC++,
7152 # which start with @ or ?.
7153 lt_cv_sys_global_symbol_pipe="$AWK '"\
7154" {last_section=section; section=\$ 3};"\
7155" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7156" \$ 0!~/External *\|/{next};"\
7157" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7158" {if(hide[section]) next};"\
7159" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7160" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7161" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7162" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7163" ' prfx=^$ac_symprfx"
7164 else
7165 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7166 fi
7167
7168 # Check to see that the pipe works correctly.
7169 pipe_works=no
7170
7171 rm -f conftest*
7172 cat > conftest.$ac_ext <<_LT_EOF
7173#ifdef __cplusplus
7174extern "C" {
7175#endif
7176char nm_test_var;
7177void nm_test_func(void);
7178void nm_test_func(void){}
7179#ifdef __cplusplus
7180}
7181#endif
7182int main(){nm_test_var='a';nm_test_func();return(0);}
7183_LT_EOF
7184
7185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7186 (eval $ac_compile) 2>&5
7187 ac_status=$?
7188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189 test $ac_status = 0; }; then
7190 # Now try to grab the symbols.
7191 nlist=conftest.nm
7192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7193 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7194 ac_status=$?
7195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196 test $ac_status = 0; } && test -s "$nlist"; then
7197 # Try sorting and uniquifying the output.
7198 if sort "$nlist" | uniq > "$nlist"T; then
7199 mv -f "$nlist"T "$nlist"
7200 else
7201 rm -f "$nlist"T
7202 fi
7203
7204 # Make sure that we snagged all the symbols we need.
7205 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7206 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7207 cat <<_LT_EOF > conftest.$ac_ext
7208#ifdef __cplusplus
7209extern "C" {
7210#endif
7211
7212_LT_EOF
7213 # Now generate the symbol file.
7214 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7215
7216 cat <<_LT_EOF >> conftest.$ac_ext
7217
7218/* The mapping between symbol names and symbols. */
7219const struct {
7220 const char *name;
7221 void *address;
7222}
7223lt__PROGRAM__LTX_preloaded_symbols[] =
7224{
7225 { "@PROGRAM@", (void *) 0 },
7226_LT_EOF
7227 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7228 cat <<\_LT_EOF >> conftest.$ac_ext
7229 {0, (void *) 0}
7230};
7231
7232/* This works around a problem in FreeBSD linker */
7233#ifdef FREEBSD_WORKAROUND
7234static const void *lt_preloaded_setup() {
7235 return lt__PROGRAM__LTX_preloaded_symbols;
7236}
7237#endif
7238
7239#ifdef __cplusplus
7240}
7241#endif
7242_LT_EOF
7243 # Now try linking the two files.
7244 mv conftest.$ac_objext conftstm.$ac_objext
7245 lt_save_LIBS="$LIBS"
7246 lt_save_CFLAGS="$CFLAGS"
7247 LIBS="conftstm.$ac_objext"
7248 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7250 (eval $ac_link) 2>&5
7251 ac_status=$?
7252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7254 pipe_works=yes
7255 fi
7256 LIBS="$lt_save_LIBS"
7257 CFLAGS="$lt_save_CFLAGS"
7258 else
7259 echo "cannot find nm_test_func in $nlist" >&5
7260 fi
7261 else
7262 echo "cannot find nm_test_var in $nlist" >&5
7263 fi
7264 else
7265 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7266 fi
7267 else
7268 echo "$progname: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 fi
7271 rm -rf conftest* conftst*
7272
7273 # Do not use the global_symbol_pipe unless it works.
7274 if test "$pipe_works" = yes; then
7275 break
7276 else
7277 lt_cv_sys_global_symbol_pipe=
7278 fi
7279done
7280
7281fi
7282
7283if test -z "$lt_cv_sys_global_symbol_pipe"; then
7284 lt_cv_sys_global_symbol_to_cdecl=
7285fi
7286if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7288$as_echo "failed" >&6; }
7289else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7291$as_echo "ok" >&6; }
7292fi
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
Iain Buclawb4c522f2018-10-28 19:51:47 +00007315# Check whether --enable-libtool-lock was given.
7316if test "${enable_libtool_lock+set}" = set; then :
7317 enableval=$enable_libtool_lock;
7318fi
7319
7320test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7321
7322# Some flags need to be propagated to the compiler or linker for good
7323# libtool support.
7324case $host in
7325ia64-*-hpux*)
7326 # Find out which ABI we are using.
7327 echo 'int i;' > conftest.$ac_ext
7328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7329 (eval $ac_compile) 2>&5
7330 ac_status=$?
7331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7332 test $ac_status = 0; }; then
7333 case `/usr/bin/file conftest.$ac_objext` in
7334 *ELF-32*)
7335 HPUX_IA64_MODE="32"
7336 ;;
7337 *ELF-64*)
7338 HPUX_IA64_MODE="64"
7339 ;;
7340 esac
7341 fi
7342 rm -rf conftest*
7343 ;;
7344*-*-irix6*)
7345 # Find out which ABI we are using.
7346 echo '#line '$LINENO' "configure"' > 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 if test "$lt_cv_prog_gnu_ld" = yes; then
7353 case `/usr/bin/file conftest.$ac_objext` in
7354 *32-bit*)
7355 LD="${LD-ld} -melf32bsmip"
7356 ;;
7357 *N32*)
7358 LD="${LD-ld} -melf32bmipn32"
7359 ;;
7360 *64-bit*)
7361 LD="${LD-ld} -melf64bmip"
7362 ;;
7363 esac
7364 else
7365 case `/usr/bin/file conftest.$ac_objext` in
7366 *32-bit*)
7367 LD="${LD-ld} -32"
7368 ;;
7369 *N32*)
7370 LD="${LD-ld} -n32"
7371 ;;
7372 *64-bit*)
7373 LD="${LD-ld} -64"
7374 ;;
7375 esac
7376 fi
7377 fi
7378 rm -rf conftest*
7379 ;;
7380
7381x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7382s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7383 # Find out which ABI we are using.
7384 echo 'int i;' > conftest.$ac_ext
7385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7386 (eval $ac_compile) 2>&5
7387 ac_status=$?
7388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7389 test $ac_status = 0; }; then
7390 case `/usr/bin/file conftest.o` in
7391 *32-bit*)
7392 case $host in
7393 x86_64-*kfreebsd*-gnu)
7394 LD="${LD-ld} -m elf_i386_fbsd"
7395 ;;
7396 x86_64-*linux*)
7397 case `/usr/bin/file conftest.o` in
7398 *x86-64*)
7399 LD="${LD-ld} -m elf32_x86_64"
7400 ;;
7401 *)
7402 LD="${LD-ld} -m elf_i386"
7403 ;;
7404 esac
7405 ;;
7406 powerpc64le-*linux*)
7407 LD="${LD-ld} -m elf32lppclinux"
7408 ;;
7409 powerpc64-*linux*)
7410 LD="${LD-ld} -m elf32ppclinux"
7411 ;;
7412 s390x-*linux*)
7413 LD="${LD-ld} -m elf_s390"
7414 ;;
7415 sparc64-*linux*)
7416 LD="${LD-ld} -m elf32_sparc"
7417 ;;
7418 esac
7419 ;;
7420 *64-bit*)
7421 case $host in
7422 x86_64-*kfreebsd*-gnu)
7423 LD="${LD-ld} -m elf_x86_64_fbsd"
7424 ;;
7425 x86_64-*linux*)
7426 LD="${LD-ld} -m elf_x86_64"
7427 ;;
7428 powerpcle-*linux*)
7429 LD="${LD-ld} -m elf64lppc"
7430 ;;
7431 powerpc-*linux*)
7432 LD="${LD-ld} -m elf64ppc"
7433 ;;
7434 s390*-*linux*|s390*-*tpf*)
7435 LD="${LD-ld} -m elf64_s390"
7436 ;;
7437 sparc*-*linux*)
7438 LD="${LD-ld} -m elf64_sparc"
7439 ;;
7440 esac
7441 ;;
7442 esac
7443 fi
7444 rm -rf conftest*
7445 ;;
7446
7447*-*-sco3.2v5*)
7448 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7449 SAVE_CFLAGS="$CFLAGS"
7450 CFLAGS="$CFLAGS -belf"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7452$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007453if ${lt_cv_cc_needs_belf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007454 $as_echo_n "(cached) " >&6
7455else
7456 ac_ext=c
7457ac_cpp='$CPP $CPPFLAGS'
7458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463/* end confdefs.h. */
7464
7465int
7466main ()
7467{
7468
7469 ;
7470 return 0;
7471}
7472_ACEOF
7473if ac_fn_c_try_link "$LINENO"; then :
7474 lt_cv_cc_needs_belf=yes
7475else
7476 lt_cv_cc_needs_belf=no
7477fi
7478rm -f core conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
7480 ac_ext=c
7481ac_cpp='$CPP $CPPFLAGS'
7482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7484ac_compiler_gnu=$ac_cv_c_compiler_gnu
7485
7486fi
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7488$as_echo "$lt_cv_cc_needs_belf" >&6; }
7489 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7490 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7491 CFLAGS="$SAVE_CFLAGS"
7492 fi
7493 ;;
7494sparc*-*solaris*)
7495 # Find out which ABI we are using.
7496 echo 'int i;' > conftest.$ac_ext
7497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7498 (eval $ac_compile) 2>&5
7499 ac_status=$?
7500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7501 test $ac_status = 0; }; then
7502 case `/usr/bin/file conftest.o` in
7503 *64-bit*)
7504 case $lt_cv_prog_gnu_ld in
7505 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7506 *)
7507 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7508 LD="${LD-ld} -64"
7509 fi
7510 ;;
7511 esac
7512 ;;
7513 esac
7514 fi
7515 rm -rf conftest*
7516 ;;
7517esac
7518
7519need_locks="$enable_libtool_lock"
7520
7521
7522 case $host_os in
7523 rhapsody* | darwin*)
7524 if test -n "$ac_tool_prefix"; then
7525 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7526set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007529if ${ac_cv_prog_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007530 $as_echo_n "(cached) " >&6
7531else
7532 if test -n "$DSYMUTIL"; then
7533 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7534else
7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007542 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546done
7547 done
7548IFS=$as_save_IFS
7549
7550fi
7551fi
7552DSYMUTIL=$ac_cv_prog_DSYMUTIL
7553if test -n "$DSYMUTIL"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7555$as_echo "$DSYMUTIL" >&6; }
7556else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558$as_echo "no" >&6; }
7559fi
7560
7561
7562fi
7563if test -z "$ac_cv_prog_DSYMUTIL"; then
7564 ac_ct_DSYMUTIL=$DSYMUTIL
7565 # Extract the first word of "dsymutil", so it can be a program name with args.
7566set dummy dsymutil; ac_word=$2
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007569if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007570 $as_echo_n "(cached) " >&6
7571else
7572 if test -n "$ac_ct_DSYMUTIL"; then
7573 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007582 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586done
7587 done
7588IFS=$as_save_IFS
7589
7590fi
7591fi
7592ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7593if test -n "$ac_ct_DSYMUTIL"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7595$as_echo "$ac_ct_DSYMUTIL" >&6; }
7596else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
7599fi
7600
7601 if test "x$ac_ct_DSYMUTIL" = x; then
7602 DSYMUTIL=":"
7603 else
7604 case $cross_compiling:$ac_tool_warned in
7605yes:)
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608ac_tool_warned=yes ;;
7609esac
7610 DSYMUTIL=$ac_ct_DSYMUTIL
7611 fi
7612else
7613 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7614fi
7615
7616 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7618set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007621if ${ac_cv_prog_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007622 $as_echo_n "(cached) " >&6
7623else
7624 if test -n "$NMEDIT"; then
7625 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7626else
7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007634 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638done
7639 done
7640IFS=$as_save_IFS
7641
7642fi
7643fi
7644NMEDIT=$ac_cv_prog_NMEDIT
7645if test -n "$NMEDIT"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7647$as_echo "$NMEDIT" >&6; }
7648else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
7651fi
7652
7653
7654fi
7655if test -z "$ac_cv_prog_NMEDIT"; then
7656 ac_ct_NMEDIT=$NMEDIT
7657 # Extract the first word of "nmedit", so it can be a program name with args.
7658set dummy nmedit; ac_word=$2
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007661if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007662 $as_echo_n "(cached) " >&6
7663else
7664 if test -n "$ac_ct_NMEDIT"; then
7665 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007674 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678done
7679 done
7680IFS=$as_save_IFS
7681
7682fi
7683fi
7684ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7685if test -n "$ac_ct_NMEDIT"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7687$as_echo "$ac_ct_NMEDIT" >&6; }
7688else
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690$as_echo "no" >&6; }
7691fi
7692
7693 if test "x$ac_ct_NMEDIT" = x; then
7694 NMEDIT=":"
7695 else
7696 case $cross_compiling:$ac_tool_warned in
7697yes:)
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700ac_tool_warned=yes ;;
7701esac
7702 NMEDIT=$ac_ct_NMEDIT
7703 fi
7704else
7705 NMEDIT="$ac_cv_prog_NMEDIT"
7706fi
7707
7708 if test -n "$ac_tool_prefix"; then
7709 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7710set dummy ${ac_tool_prefix}lipo; ac_word=$2
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007713if ${ac_cv_prog_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007714 $as_echo_n "(cached) " >&6
7715else
7716 if test -n "$LIPO"; then
7717 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7718else
7719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007726 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730done
7731 done
7732IFS=$as_save_IFS
7733
7734fi
7735fi
7736LIPO=$ac_cv_prog_LIPO
7737if test -n "$LIPO"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7739$as_echo "$LIPO" >&6; }
7740else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742$as_echo "no" >&6; }
7743fi
7744
7745
7746fi
7747if test -z "$ac_cv_prog_LIPO"; then
7748 ac_ct_LIPO=$LIPO
7749 # Extract the first word of "lipo", so it can be a program name with args.
7750set dummy lipo; ac_word=$2
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007753if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007754 $as_echo_n "(cached) " >&6
7755else
7756 if test -n "$ac_ct_LIPO"; then
7757 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7758else
7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760for as_dir in $PATH
7761do
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007766 ac_cv_prog_ac_ct_LIPO="lipo"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7769 fi
7770done
7771 done
7772IFS=$as_save_IFS
7773
7774fi
7775fi
7776ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7777if test -n "$ac_ct_LIPO"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7779$as_echo "$ac_ct_LIPO" >&6; }
7780else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782$as_echo "no" >&6; }
7783fi
7784
7785 if test "x$ac_ct_LIPO" = x; then
7786 LIPO=":"
7787 else
7788 case $cross_compiling:$ac_tool_warned in
7789yes:)
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7792ac_tool_warned=yes ;;
7793esac
7794 LIPO=$ac_ct_LIPO
7795 fi
7796else
7797 LIPO="$ac_cv_prog_LIPO"
7798fi
7799
7800 if test -n "$ac_tool_prefix"; then
7801 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7802set dummy ${ac_tool_prefix}otool; ac_word=$2
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007805if ${ac_cv_prog_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007806 $as_echo_n "(cached) " >&6
7807else
7808 if test -n "$OTOOL"; then
7809 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7810else
7811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812for as_dir in $PATH
7813do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007818 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7821 fi
7822done
7823 done
7824IFS=$as_save_IFS
7825
7826fi
7827fi
7828OTOOL=$ac_cv_prog_OTOOL
7829if test -n "$OTOOL"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7831$as_echo "$OTOOL" >&6; }
7832else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834$as_echo "no" >&6; }
7835fi
7836
7837
7838fi
7839if test -z "$ac_cv_prog_OTOOL"; then
7840 ac_ct_OTOOL=$OTOOL
7841 # Extract the first word of "otool", so it can be a program name with args.
7842set dummy otool; ac_word=$2
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007845if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007846 $as_echo_n "(cached) " >&6
7847else
7848 if test -n "$ac_ct_OTOOL"; then
7849 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7850else
7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007858 ac_cv_prog_ac_ct_OTOOL="otool"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862done
7863 done
7864IFS=$as_save_IFS
7865
7866fi
7867fi
7868ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7869if test -n "$ac_ct_OTOOL"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7871$as_echo "$ac_ct_OTOOL" >&6; }
7872else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875fi
7876
7877 if test "x$ac_ct_OTOOL" = x; then
7878 OTOOL=":"
7879 else
7880 case $cross_compiling:$ac_tool_warned in
7881yes:)
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7884ac_tool_warned=yes ;;
7885esac
7886 OTOOL=$ac_ct_OTOOL
7887 fi
7888else
7889 OTOOL="$ac_cv_prog_OTOOL"
7890fi
7891
7892 if test -n "$ac_tool_prefix"; then
7893 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7894set dummy ${ac_tool_prefix}otool64; ac_word=$2
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007897if ${ac_cv_prog_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007898 $as_echo_n "(cached) " >&6
7899else
7900 if test -n "$OTOOL64"; then
7901 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7902else
7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904for as_dir in $PATH
7905do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007910 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7913 fi
7914done
7915 done
7916IFS=$as_save_IFS
7917
7918fi
7919fi
7920OTOOL64=$ac_cv_prog_OTOOL64
7921if test -n "$OTOOL64"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7923$as_echo "$OTOOL64" >&6; }
7924else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926$as_echo "no" >&6; }
7927fi
7928
7929
7930fi
7931if test -z "$ac_cv_prog_OTOOL64"; then
7932 ac_ct_OTOOL64=$OTOOL64
7933 # Extract the first word of "otool64", so it can be a program name with args.
7934set dummy otool64; ac_word=$2
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007937if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007938 $as_echo_n "(cached) " >&6
7939else
7940 if test -n "$ac_ct_OTOOL64"; then
7941 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7942else
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007950 ac_cv_prog_ac_ct_OTOOL64="otool64"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954done
7955 done
7956IFS=$as_save_IFS
7957
7958fi
7959fi
7960ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7961if test -n "$ac_ct_OTOOL64"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7963$as_echo "$ac_ct_OTOOL64" >&6; }
7964else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966$as_echo "no" >&6; }
7967fi
7968
7969 if test "x$ac_ct_OTOOL64" = x; then
7970 OTOOL64=":"
7971 else
7972 case $cross_compiling:$ac_tool_warned in
7973yes:)
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7976ac_tool_warned=yes ;;
7977esac
7978 OTOOL64=$ac_ct_OTOOL64
7979 fi
7980else
7981 OTOOL64="$ac_cv_prog_OTOOL64"
7982fi
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8011$as_echo_n "checking for -single_module linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008012if ${lt_cv_apple_cc_single_mod+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008013 $as_echo_n "(cached) " >&6
8014else
8015 lt_cv_apple_cc_single_mod=no
8016 if test -z "${LT_MULTI_MODULE}"; then
8017 # By default we will add the -single_module flag. You can override
8018 # by either setting the environment variable LT_MULTI_MODULE
8019 # non-empty at configure time, or by adding -multi_module to the
8020 # link flags.
8021 rm -rf libconftest.dylib*
8022 echo "int foo(void){return 1;}" > conftest.c
8023 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8024-dynamiclib -Wl,-single_module conftest.c" >&5
8025 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8026 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8027 _lt_result=$?
8028 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8029 lt_cv_apple_cc_single_mod=yes
8030 else
8031 cat conftest.err >&5
8032 fi
8033 rm -rf libconftest.dylib*
8034 rm -f conftest.*
8035 fi
8036fi
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8038$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8040$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008041if ${lt_cv_ld_exported_symbols_list+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008042 $as_echo_n "(cached) " >&6
8043else
8044 lt_cv_ld_exported_symbols_list=no
8045 save_LDFLAGS=$LDFLAGS
8046 echo "_main" > conftest.sym
8047 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049/* end confdefs.h. */
8050
8051int
8052main ()
8053{
8054
8055 ;
8056 return 0;
8057}
8058_ACEOF
8059if ac_fn_c_try_link "$LINENO"; then :
8060 lt_cv_ld_exported_symbols_list=yes
8061else
8062 lt_cv_ld_exported_symbols_list=no
8063fi
8064rm -f core conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
8066 LDFLAGS="$save_LDFLAGS"
8067
8068fi
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8070$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8072$as_echo_n "checking for -force_load linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008073if ${lt_cv_ld_force_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008074 $as_echo_n "(cached) " >&6
8075else
8076 lt_cv_ld_force_load=no
8077 cat > conftest.c << _LT_EOF
8078int forced_loaded() { return 2;}
8079_LT_EOF
8080 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8081 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8082 echo "$AR cru libconftest.a conftest.o" >&5
8083 $AR cru libconftest.a conftest.o 2>&5
8084 cat > conftest.c << _LT_EOF
8085int main() { return 0;}
8086_LT_EOF
8087 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8088 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8089 _lt_result=$?
8090 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8091 lt_cv_ld_force_load=yes
8092 else
8093 cat conftest.err >&5
8094 fi
8095 rm -f conftest.err libconftest.a conftest conftest.c
8096 rm -rf conftest.dSYM
8097
8098fi
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8100$as_echo "$lt_cv_ld_force_load" >&6; }
8101 case $host_os in
8102 rhapsody* | darwin1.[012])
8103 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8104 darwin1.*)
8105 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8106 darwin*) # darwin 5.x on
8107 # if running on 10.5 or later, the deployment target defaults
8108 # to the OS version, if on x86, and 10.4, the deployment
8109 # target defaults to 10.4. Don't you love it?
8110 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8111 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8112 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8113 10.[012][,.]*)
8114 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8115 10.*)
8116 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8117 esac
8118 ;;
8119 esac
8120 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8121 _lt_dar_single_mod='$single_module'
8122 fi
8123 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8124 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8125 else
8126 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8127 fi
8128 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8129 _lt_dsymutil='~$DSYMUTIL $lib || :'
8130 else
8131 _lt_dsymutil=
8132 fi
8133 ;;
8134 esac
8135
Iain Buclawb4c522f2018-10-28 19:51:47 +00008136for ac_header in dlfcn.h
8137do :
8138 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8139"
Joseph Myers22e05272018-10-31 17:03:16 +00008140if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008141 cat >>confdefs.h <<_ACEOF
8142#define HAVE_DLFCN_H 1
8143_ACEOF
8144
8145fi
8146
8147done
8148
8149
8150
8151
8152
8153# Set options
8154enable_dlopen=yes
8155
8156
8157
8158
8159 enable_win32_dll=no
8160
8161
8162 # Check whether --enable-shared was given.
8163if test "${enable_shared+set}" = set; then :
8164 enableval=$enable_shared; p=${PACKAGE-default}
8165 case $enableval in
8166 yes) enable_shared=yes ;;
8167 no) enable_shared=no ;;
8168 *)
8169 enable_shared=no
8170 # Look at the argument we got. We use all the common list separators.
8171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8172 for pkg in $enableval; do
8173 IFS="$lt_save_ifs"
8174 if test "X$pkg" = "X$p"; then
8175 enable_shared=yes
8176 fi
8177 done
8178 IFS="$lt_save_ifs"
8179 ;;
8180 esac
8181else
8182 enable_shared=yes
8183fi
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193 # Check whether --enable-static was given.
8194if test "${enable_static+set}" = set; then :
8195 enableval=$enable_static; p=${PACKAGE-default}
8196 case $enableval in
8197 yes) enable_static=yes ;;
8198 no) enable_static=no ;;
8199 *)
8200 enable_static=no
8201 # Look at the argument we got. We use all the common list separators.
8202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8203 for pkg in $enableval; do
8204 IFS="$lt_save_ifs"
8205 if test "X$pkg" = "X$p"; then
8206 enable_static=yes
8207 fi
8208 done
8209 IFS="$lt_save_ifs"
8210 ;;
8211 esac
8212else
8213 enable_static=yes
8214fi
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225# Check whether --with-pic was given.
8226if test "${with_pic+set}" = set; then :
8227 withval=$with_pic; pic_mode="$withval"
8228else
8229 pic_mode=default
8230fi
8231
8232
8233test -z "$pic_mode" && pic_mode=default
8234
8235
8236
8237
8238
8239
8240
8241 # Check whether --enable-fast-install was given.
8242if test "${enable_fast_install+set}" = set; then :
8243 enableval=$enable_fast_install; p=${PACKAGE-default}
8244 case $enableval in
8245 yes) enable_fast_install=yes ;;
8246 no) enable_fast_install=no ;;
8247 *)
8248 enable_fast_install=no
8249 # Look at the argument we got. We use all the common list separators.
8250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8251 for pkg in $enableval; do
8252 IFS="$lt_save_ifs"
8253 if test "X$pkg" = "X$p"; then
8254 enable_fast_install=yes
8255 fi
8256 done
8257 IFS="$lt_save_ifs"
8258 ;;
8259 esac
8260else
8261 enable_fast_install=yes
8262fi
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274# This can be used to rebuild libtool when needed
8275LIBTOOL_DEPS="$ltmain"
8276
8277# Always use our own libtool.
8278LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305test -z "$LN_S" && LN_S="ln -s"
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320if test -n "${ZSH_VERSION+set}" ; then
8321 setopt NO_GLOB_SUBST
8322fi
8323
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8325$as_echo_n "checking for objdir... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008326if ${lt_cv_objdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008327 $as_echo_n "(cached) " >&6
8328else
8329 rm -f .libs 2>/dev/null
8330mkdir .libs 2>/dev/null
8331if test -d .libs; then
8332 lt_cv_objdir=.libs
8333else
8334 # MS-DOS does not allow filenames that begin with a dot.
8335 lt_cv_objdir=_libs
8336fi
8337rmdir .libs 2>/dev/null
8338fi
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8340$as_echo "$lt_cv_objdir" >&6; }
8341objdir=$lt_cv_objdir
8342
8343
8344
8345
8346
8347cat >>confdefs.h <<_ACEOF
8348#define LT_OBJDIR "$lt_cv_objdir/"
8349_ACEOF
8350
8351
8352
8353
8354case $host_os in
8355aix3*)
8356 # AIX sometimes has problems with the GCC collect2 program. For some
8357 # reason, if we set the COLLECT_NAMES environment variable, the problems
8358 # vanish in a puff of smoke.
8359 if test "X${COLLECT_NAMES+set}" != Xset; then
8360 COLLECT_NAMES=
8361 export COLLECT_NAMES
8362 fi
8363 ;;
8364esac
8365
8366# Global variables:
8367ofile=libtool
8368can_build_shared=yes
8369
8370# All known linkers require a `.a' archive for static linking (except MSVC,
8371# which needs '.lib').
8372libext=a
8373
8374with_gnu_ld="$lt_cv_prog_gnu_ld"
8375
8376old_CC="$CC"
8377old_CFLAGS="$CFLAGS"
8378
8379# Set sane defaults for various variables
8380test -z "$CC" && CC=cc
8381test -z "$LTCC" && LTCC=$CC
8382test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8383test -z "$LD" && LD=ld
8384test -z "$ac_objext" && ac_objext=o
8385
8386for cc_temp in $compiler""; do
8387 case $cc_temp in
8388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8390 \-*) ;;
8391 *) break;;
8392 esac
8393done
8394cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8395
8396
8397# Only perform the check for file, if the check method requires it
8398test -z "$MAGIC_CMD" && MAGIC_CMD=file
8399case $deplibs_check_method in
8400file_magic*)
8401 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8403$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008404if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008405 $as_echo_n "(cached) " >&6
8406else
8407 case $MAGIC_CMD in
8408[\\/*] | ?:[\\/]*)
8409 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8410 ;;
8411*)
8412 lt_save_MAGIC_CMD="$MAGIC_CMD"
8413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8414 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8415 for ac_dir in $ac_dummy; do
8416 IFS="$lt_save_ifs"
8417 test -z "$ac_dir" && ac_dir=.
8418 if test -f $ac_dir/${ac_tool_prefix}file; then
8419 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8420 if test -n "$file_magic_test_file"; then
8421 case $deplibs_check_method in
8422 "file_magic "*)
8423 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8425 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8426 $EGREP "$file_magic_regex" > /dev/null; then
8427 :
8428 else
8429 cat <<_LT_EOF 1>&2
8430
8431*** Warning: the command libtool uses to detect shared libraries,
8432*** $file_magic_cmd, produces output that libtool cannot recognize.
8433*** The result is that libtool may fail to recognize shared libraries
8434*** as such. This will affect the creation of libtool libraries that
8435*** depend on shared libraries, but programs linked with such libtool
8436*** libraries will work regardless of this problem. Nevertheless, you
8437*** may want to report the problem to your system manager and/or to
8438*** bug-libtool@gnu.org
8439
8440_LT_EOF
8441 fi ;;
8442 esac
8443 fi
8444 break
8445 fi
8446 done
8447 IFS="$lt_save_ifs"
8448 MAGIC_CMD="$lt_save_MAGIC_CMD"
8449 ;;
8450esac
8451fi
8452
8453MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8454if test -n "$MAGIC_CMD"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8456$as_echo "$MAGIC_CMD" >&6; }
8457else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459$as_echo "no" >&6; }
8460fi
8461
8462
8463
8464
8465
8466if test -z "$lt_cv_path_MAGIC_CMD"; then
8467 if test -n "$ac_tool_prefix"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8469$as_echo_n "checking for file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008470if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008471 $as_echo_n "(cached) " >&6
8472else
8473 case $MAGIC_CMD in
8474[\\/*] | ?:[\\/]*)
8475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8476 ;;
8477*)
8478 lt_save_MAGIC_CMD="$MAGIC_CMD"
8479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8481 for ac_dir in $ac_dummy; do
8482 IFS="$lt_save_ifs"
8483 test -z "$ac_dir" && ac_dir=.
8484 if test -f $ac_dir/file; then
8485 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8486 if test -n "$file_magic_test_file"; then
8487 case $deplibs_check_method in
8488 "file_magic "*)
8489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8492 $EGREP "$file_magic_regex" > /dev/null; then
8493 :
8494 else
8495 cat <<_LT_EOF 1>&2
8496
8497*** Warning: the command libtool uses to detect shared libraries,
8498*** $file_magic_cmd, produces output that libtool cannot recognize.
8499*** The result is that libtool may fail to recognize shared libraries
8500*** as such. This will affect the creation of libtool libraries that
8501*** depend on shared libraries, but programs linked with such libtool
8502*** libraries will work regardless of this problem. Nevertheless, you
8503*** may want to report the problem to your system manager and/or to
8504*** bug-libtool@gnu.org
8505
8506_LT_EOF
8507 fi ;;
8508 esac
8509 fi
8510 break
8511 fi
8512 done
8513 IFS="$lt_save_ifs"
8514 MAGIC_CMD="$lt_save_MAGIC_CMD"
8515 ;;
8516esac
8517fi
8518
8519MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8520if test -n "$MAGIC_CMD"; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8522$as_echo "$MAGIC_CMD" >&6; }
8523else
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525$as_echo "no" >&6; }
8526fi
8527
8528
8529 else
8530 MAGIC_CMD=:
8531 fi
8532fi
8533
8534 fi
8535 ;;
8536esac
8537
8538# Use C for the default configuration in the libtool script
8539
8540lt_save_CC="$CC"
8541ac_ext=c
8542ac_cpp='$CPP $CPPFLAGS'
8543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547
8548# Source file extension for C test sources.
8549ac_ext=c
8550
8551# Object file extension for compiled C test sources.
8552objext=o
8553objext=$objext
8554
8555# Code to be used in simple compile tests
8556lt_simple_compile_test_code="int some_variable = 0;"
8557
8558# Code to be used in simple link tests
8559lt_simple_link_test_code='int main(){return(0);}'
8560
8561
8562
8563
8564
8565
8566
8567# If no C compiler was specified, use CC.
8568LTCC=${LTCC-"$CC"}
8569
8570# If no C compiler flags were specified, use CFLAGS.
8571LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8572
8573# Allow CC to be a program name with arguments.
8574compiler=$CC
8575
8576# Save the default compiler, since it gets overwritten when the other
8577# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8578compiler_DEFAULT=$CC
8579
8580# save warnings/boilerplate of simple test code
8581ac_outfile=conftest.$ac_objext
8582echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8583eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8584_lt_compiler_boilerplate=`cat conftest.err`
8585$RM conftest*
8586
8587ac_outfile=conftest.$ac_objext
8588echo "$lt_simple_link_test_code" >conftest.$ac_ext
8589eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8590_lt_linker_boilerplate=`cat conftest.err`
8591$RM -r conftest*
8592
8593
8594## CAVEAT EMPTOR:
8595## There is no encapsulation within the following macros, do not change
8596## the running order or otherwise move them around unless you know exactly
8597## what you are doing...
8598if test -n "$compiler"; then
8599
8600lt_prog_compiler_no_builtin_flag=
8601
8602if test "$GCC" = yes; then
8603 case $cc_basename in
8604 nvcc*)
8605 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8606 *)
8607 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8608 esac
8609
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8611$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008612if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008613 $as_echo_n "(cached) " >&6
8614else
8615 lt_cv_prog_compiler_rtti_exceptions=no
8616 ac_outfile=conftest.$ac_objext
8617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8618 lt_compiler_flag="-fno-rtti -fno-exceptions"
8619 # Insert the option either (1) after the last *FLAGS variable, or
8620 # (2) before a word containing "conftest.", or (3) at the end.
8621 # Note that $ac_compile itself does not contain backslashes and begins
8622 # with a dollar sign (not a hyphen), so the echo should work correctly.
8623 # The option is referenced via a variable to avoid confusing sed.
8624 lt_compile=`echo "$ac_compile" | $SED \
8625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8627 -e 's:$: $lt_compiler_flag:'`
8628 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8629 (eval "$lt_compile" 2>conftest.err)
8630 ac_status=$?
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 if (exit $ac_status) && test -s "$ac_outfile"; then
8634 # The compiler can only warn and ignore the option if not recognized
8635 # So say no if there are warnings other than the usual output.
8636 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8638 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8639 lt_cv_prog_compiler_rtti_exceptions=yes
8640 fi
8641 fi
8642 $RM conftest*
8643
8644fi
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8646$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8647
8648if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8649 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8650else
8651 :
8652fi
8653
8654fi
8655
8656
8657
8658
8659
8660
8661 lt_prog_compiler_wl=
8662lt_prog_compiler_pic=
8663lt_prog_compiler_static=
8664
8665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8666$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8667
8668 if test "$GCC" = yes; then
8669 lt_prog_compiler_wl='-Wl,'
8670 lt_prog_compiler_static='-static'
8671
8672 case $host_os in
8673 aix*)
8674 # All AIX code is PIC.
8675 if test "$host_cpu" = ia64; then
8676 # AIX 5 now supports IA64 processor
8677 lt_prog_compiler_static='-Bstatic'
8678 fi
8679 lt_prog_compiler_pic='-fPIC'
8680 ;;
8681
8682 amigaos*)
8683 case $host_cpu in
8684 powerpc)
8685 # see comment about AmigaOS4 .so support
8686 lt_prog_compiler_pic='-fPIC'
8687 ;;
8688 m68k)
8689 # FIXME: we need at least 68020 code to build shared libraries, but
8690 # adding the `-m68020' flag to GCC prevents building anything better,
8691 # like `-m68040'.
8692 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8693 ;;
8694 esac
8695 ;;
8696
8697 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8698 # PIC is the default for these OSes.
8699 ;;
8700
8701 mingw* | cygwin* | pw32* | os2* | cegcc*)
8702 # This hack is so that the source file can tell whether it is being
8703 # built for inclusion in a dll (and should export symbols for example).
8704 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8705 # (--disable-auto-import) libraries
8706 lt_prog_compiler_pic='-DDLL_EXPORT'
8707 ;;
8708
8709 darwin* | rhapsody*)
8710 # PIC is the default on this platform
8711 # Common symbols not allowed in MH_DYLIB files
8712 lt_prog_compiler_pic='-fno-common'
8713 ;;
8714
8715 haiku*)
8716 # PIC is the default for Haiku.
8717 # The "-static" flag exists, but is broken.
8718 lt_prog_compiler_static=
8719 ;;
8720
8721 hpux*)
8722 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8723 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8724 # sets the default TLS model and affects inlining.
8725 case $host_cpu in
8726 hppa*64*)
8727 # +Z the default
8728 ;;
8729 *)
8730 lt_prog_compiler_pic='-fPIC'
8731 ;;
8732 esac
8733 ;;
8734
8735 interix[3-9]*)
8736 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8737 # Instead, we relocate shared libraries at runtime.
8738 ;;
8739
8740 msdosdjgpp*)
8741 # Just because we use GCC doesn't mean we suddenly get shared libraries
8742 # on systems that don't support them.
8743 lt_prog_compiler_can_build_shared=no
8744 enable_shared=no
8745 ;;
8746
8747 *nto* | *qnx*)
8748 # QNX uses GNU C++, but need to define -shared option too, otherwise
8749 # it will coredump.
8750 lt_prog_compiler_pic='-fPIC -shared'
8751 ;;
8752
8753 sysv4*MP*)
8754 if test -d /usr/nec; then
8755 lt_prog_compiler_pic=-Kconform_pic
8756 fi
8757 ;;
8758
8759 *)
8760 lt_prog_compiler_pic='-fPIC'
8761 ;;
8762 esac
8763
8764 case $cc_basename in
8765 nvcc*) # Cuda Compiler Driver 2.2
8766 lt_prog_compiler_wl='-Xlinker '
8767 lt_prog_compiler_pic='-Xcompiler -fPIC'
8768 ;;
8769 esac
8770 else
8771 # PORTME Check for flag to pass linker flags through the system compiler.
8772 case $host_os in
8773 aix*)
8774 lt_prog_compiler_wl='-Wl,'
8775 if test "$host_cpu" = ia64; then
8776 # AIX 5 now supports IA64 processor
8777 lt_prog_compiler_static='-Bstatic'
8778 else
8779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8780 fi
8781 ;;
8782
8783 mingw* | cygwin* | pw32* | os2* | cegcc*)
8784 # This hack is so that the source file can tell whether it is being
8785 # built for inclusion in a dll (and should export symbols for example).
8786 lt_prog_compiler_pic='-DDLL_EXPORT'
8787 ;;
8788
8789 hpux9* | hpux10* | hpux11*)
8790 lt_prog_compiler_wl='-Wl,'
8791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8792 # not for PA HP-UX.
8793 case $host_cpu in
8794 hppa*64*|ia64*)
8795 # +Z the default
8796 ;;
8797 *)
8798 lt_prog_compiler_pic='+Z'
8799 ;;
8800 esac
8801 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8802 lt_prog_compiler_static='${wl}-a ${wl}archive'
8803 ;;
8804
8805 irix5* | irix6* | nonstopux*)
8806 lt_prog_compiler_wl='-Wl,'
8807 # PIC (with -KPIC) is the default.
8808 lt_prog_compiler_static='-non_shared'
8809 ;;
8810
8811 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8812 case $cc_basename in
8813 # old Intel for x86_64 which still supported -KPIC.
8814 ecc*)
8815 lt_prog_compiler_wl='-Wl,'
8816 lt_prog_compiler_pic='-KPIC'
8817 lt_prog_compiler_static='-static'
8818 ;;
8819 # icc used to be incompatible with GCC.
8820 # ICC 10 doesn't accept -KPIC any more.
8821 icc* | ifort*)
8822 lt_prog_compiler_wl='-Wl,'
8823 lt_prog_compiler_pic='-fPIC'
8824 lt_prog_compiler_static='-static'
8825 ;;
8826 # Lahey Fortran 8.1.
8827 lf95*)
8828 lt_prog_compiler_wl='-Wl,'
8829 lt_prog_compiler_pic='--shared'
8830 lt_prog_compiler_static='--static'
8831 ;;
8832 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8833 # Portland Group compilers (*not* the Pentium gcc compiler,
8834 # which looks to be a dead project)
8835 lt_prog_compiler_wl='-Wl,'
8836 lt_prog_compiler_pic='-fpic'
8837 lt_prog_compiler_static='-Bstatic'
8838 ;;
8839 ccc*)
8840 lt_prog_compiler_wl='-Wl,'
8841 # All Alpha code is PIC.
8842 lt_prog_compiler_static='-non_shared'
8843 ;;
8844 xl* | bgxl* | bgf* | mpixl*)
8845 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8846 lt_prog_compiler_wl='-Wl,'
8847 lt_prog_compiler_pic='-qpic'
8848 lt_prog_compiler_static='-qstaticlink'
8849 ;;
8850 *)
8851 case `$CC -V 2>&1 | sed 5q` in
8852 *Sun\ F* | *Sun*Fortran*)
8853 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8854 lt_prog_compiler_pic='-KPIC'
8855 lt_prog_compiler_static='-Bstatic'
8856 lt_prog_compiler_wl=''
8857 ;;
8858 *Sun\ C*)
8859 # Sun C 5.9
8860 lt_prog_compiler_pic='-KPIC'
8861 lt_prog_compiler_static='-Bstatic'
8862 lt_prog_compiler_wl='-Wl,'
8863 ;;
8864 esac
8865 ;;
8866 esac
8867 ;;
8868
8869 newsos6)
8870 lt_prog_compiler_pic='-KPIC'
8871 lt_prog_compiler_static='-Bstatic'
8872 ;;
8873
8874 *nto* | *qnx*)
8875 # QNX uses GNU C++, but need to define -shared option too, otherwise
8876 # it will coredump.
8877 lt_prog_compiler_pic='-fPIC -shared'
8878 ;;
8879
8880 osf3* | osf4* | osf5*)
8881 lt_prog_compiler_wl='-Wl,'
8882 # All OSF/1 code is PIC.
8883 lt_prog_compiler_static='-non_shared'
8884 ;;
8885
8886 rdos*)
8887 lt_prog_compiler_static='-non_shared'
8888 ;;
8889
8890 solaris*)
8891 lt_prog_compiler_pic='-KPIC'
8892 lt_prog_compiler_static='-Bstatic'
8893 case $cc_basename in
8894 f77* | f90* | f95*)
8895 lt_prog_compiler_wl='-Qoption ld ';;
8896 *)
8897 lt_prog_compiler_wl='-Wl,';;
8898 esac
8899 ;;
8900
8901 sunos4*)
8902 lt_prog_compiler_wl='-Qoption ld '
8903 lt_prog_compiler_pic='-PIC'
8904 lt_prog_compiler_static='-Bstatic'
8905 ;;
8906
8907 sysv4 | sysv4.2uw2* | sysv4.3*)
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-Bstatic'
8911 ;;
8912
8913 sysv4*MP*)
8914 if test -d /usr/nec ;then
8915 lt_prog_compiler_pic='-Kconform_pic'
8916 lt_prog_compiler_static='-Bstatic'
8917 fi
8918 ;;
8919
8920 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8921 lt_prog_compiler_wl='-Wl,'
8922 lt_prog_compiler_pic='-KPIC'
8923 lt_prog_compiler_static='-Bstatic'
8924 ;;
8925
8926 unicos*)
8927 lt_prog_compiler_wl='-Wl,'
8928 lt_prog_compiler_can_build_shared=no
8929 ;;
8930
8931 uts4*)
8932 lt_prog_compiler_pic='-pic'
8933 lt_prog_compiler_static='-Bstatic'
8934 ;;
8935
8936 *)
8937 lt_prog_compiler_can_build_shared=no
8938 ;;
8939 esac
8940 fi
8941
8942case $host_os in
8943 # For platforms which do not support PIC, -DPIC is meaningless:
8944 *djgpp*)
8945 lt_prog_compiler_pic=
8946 ;;
8947 *)
8948 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8949 ;;
8950esac
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8952$as_echo "$lt_prog_compiler_pic" >&6; }
8953
8954
8955
8956
8957
8958
8959#
8960# Check to make sure the PIC flag actually works.
8961#
8962if test -n "$lt_prog_compiler_pic"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8964$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008965if ${lt_cv_prog_compiler_pic_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008966 $as_echo_n "(cached) " >&6
8967else
8968 lt_cv_prog_compiler_pic_works=no
8969 ac_outfile=conftest.$ac_objext
8970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8971 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8972 # Insert the option either (1) after the last *FLAGS variable, or
8973 # (2) before a word containing "conftest.", or (3) at the end.
8974 # Note that $ac_compile itself does not contain backslashes and begins
8975 # with a dollar sign (not a hyphen), so the echo should work correctly.
8976 # The option is referenced via a variable to avoid confusing sed.
8977 lt_compile=`echo "$ac_compile" | $SED \
8978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8980 -e 's:$: $lt_compiler_flag:'`
8981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8982 (eval "$lt_compile" 2>conftest.err)
8983 ac_status=$?
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 if (exit $ac_status) && test -s "$ac_outfile"; then
8987 # The compiler can only warn and ignore the option if not recognized
8988 # So say no if there are warnings other than the usual output.
8989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8992 lt_cv_prog_compiler_pic_works=yes
8993 fi
8994 fi
8995 $RM conftest*
8996
8997fi
8998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8999$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9000
9001if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9002 case $lt_prog_compiler_pic in
9003 "" | " "*) ;;
9004 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9005 esac
9006else
9007 lt_prog_compiler_pic=
9008 lt_prog_compiler_can_build_shared=no
9009fi
9010
9011fi
9012
9013
9014
9015
9016
9017
9018#
9019# Check to make sure the static flag actually works.
9020#
9021wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9023$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009024if ${lt_cv_prog_compiler_static_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009025 $as_echo_n "(cached) " >&6
9026else
9027 lt_cv_prog_compiler_static_works=no
9028 save_LDFLAGS="$LDFLAGS"
9029 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9030 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9031 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9032 # The linker can only warn and ignore the option if not recognized
9033 # So say no if there are warnings
9034 if test -s conftest.err; then
9035 # Append any errors to the config.log.
9036 cat conftest.err 1>&5
9037 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9039 if diff conftest.exp conftest.er2 >/dev/null; then
9040 lt_cv_prog_compiler_static_works=yes
9041 fi
9042 else
9043 lt_cv_prog_compiler_static_works=yes
9044 fi
9045 fi
9046 $RM -r conftest*
9047 LDFLAGS="$save_LDFLAGS"
9048
9049fi
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9051$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9052
9053if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9054 :
9055else
9056 lt_prog_compiler_static=
9057fi
9058
9059
9060
9061
9062
9063
9064
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9066$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009067if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009068 $as_echo_n "(cached) " >&6
9069else
9070 lt_cv_prog_compiler_c_o=no
9071 $RM -r conftest 2>/dev/null
9072 mkdir conftest
9073 cd conftest
9074 mkdir out
9075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9076
9077 lt_compiler_flag="-o out/conftest2.$ac_objext"
9078 # Insert the option either (1) after the last *FLAGS variable, or
9079 # (2) before a word containing "conftest.", or (3) at the end.
9080 # Note that $ac_compile itself does not contain backslashes and begins
9081 # with a dollar sign (not a hyphen), so the echo should work correctly.
9082 lt_compile=`echo "$ac_compile" | $SED \
9083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9085 -e 's:$: $lt_compiler_flag:'`
9086 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9087 (eval "$lt_compile" 2>out/conftest.err)
9088 ac_status=$?
9089 cat out/conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9092 then
9093 # The compiler can only warn and ignore the option if not recognized
9094 # So say no if there are warnings
9095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9098 lt_cv_prog_compiler_c_o=yes
9099 fi
9100 fi
9101 chmod u+w . 2>&5
9102 $RM conftest*
9103 # SGI C++ compiler will create directory out/ii_files/ for
9104 # template instantiation
9105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9106 $RM out/* && rmdir out
9107 cd ..
9108 $RM -r conftest
9109 $RM conftest*
9110
9111fi
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9113$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9114
9115
9116
9117
9118
9119
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9121$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009122if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009123 $as_echo_n "(cached) " >&6
9124else
9125 lt_cv_prog_compiler_c_o=no
9126 $RM -r conftest 2>/dev/null
9127 mkdir conftest
9128 cd conftest
9129 mkdir out
9130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9131
9132 lt_compiler_flag="-o out/conftest2.$ac_objext"
9133 # Insert the option either (1) after the last *FLAGS variable, or
9134 # (2) before a word containing "conftest.", or (3) at the end.
9135 # Note that $ac_compile itself does not contain backslashes and begins
9136 # with a dollar sign (not a hyphen), so the echo should work correctly.
9137 lt_compile=`echo "$ac_compile" | $SED \
9138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9140 -e 's:$: $lt_compiler_flag:'`
9141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9142 (eval "$lt_compile" 2>out/conftest.err)
9143 ac_status=$?
9144 cat out/conftest.err >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9147 then
9148 # The compiler can only warn and ignore the option if not recognized
9149 # So say no if there are warnings
9150 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9151 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9152 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9153 lt_cv_prog_compiler_c_o=yes
9154 fi
9155 fi
9156 chmod u+w . 2>&5
9157 $RM conftest*
9158 # SGI C++ compiler will create directory out/ii_files/ for
9159 # template instantiation
9160 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9161 $RM out/* && rmdir out
9162 cd ..
9163 $RM -r conftest
9164 $RM conftest*
9165
9166fi
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9168$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9169
9170
9171
9172
9173hard_links="nottested"
9174if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9175 # do not overwrite the value of need_locks provided by the user
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9177$as_echo_n "checking if we can lock with hard links... " >&6; }
9178 hard_links=yes
9179 $RM conftest*
9180 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9181 touch conftest.a
9182 ln conftest.a conftest.b 2>&5 || hard_links=no
9183 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9185$as_echo "$hard_links" >&6; }
9186 if test "$hard_links" = no; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9188$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9189 need_locks=warn
9190 fi
9191else
9192 need_locks=no
9193fi
9194
9195
9196
9197
9198
9199
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9201$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9202
9203 runpath_var=
9204 allow_undefined_flag=
9205 always_export_symbols=no
9206 archive_cmds=
9207 archive_expsym_cmds=
9208 compiler_needs_object=no
9209 enable_shared_with_static_runtimes=no
9210 export_dynamic_flag_spec=
9211 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9212 hardcode_automatic=no
9213 hardcode_direct=no
9214 hardcode_direct_absolute=no
9215 hardcode_libdir_flag_spec=
9216 hardcode_libdir_flag_spec_ld=
9217 hardcode_libdir_separator=
9218 hardcode_minus_L=no
9219 hardcode_shlibpath_var=unsupported
9220 inherit_rpath=no
9221 link_all_deplibs=unknown
9222 module_cmds=
9223 module_expsym_cmds=
9224 old_archive_from_new_cmds=
9225 old_archive_from_expsyms_cmds=
9226 thread_safe_flag_spec=
9227 whole_archive_flag_spec=
9228 # include_expsyms should be a list of space-separated symbols to be *always*
9229 # included in the symbol list
9230 include_expsyms=
9231 # exclude_expsyms can be an extended regexp of symbols to exclude
9232 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9233 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9234 # as well as any symbol that contains `d'.
9235 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9237 # platforms (ab)use it in PIC code, but their linkers get confused if
9238 # the symbol is explicitly referenced. Since portable code cannot
9239 # rely on this symbol name, it's probably fine to never include it in
9240 # preloaded symbol tables.
9241 # Exclude shared library initialization/finalization symbols.
9242 extract_expsyms_cmds=
9243
9244 case $host_os in
9245 cygwin* | mingw* | pw32* | cegcc*)
9246 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9247 # When not using gcc, we currently assume that we are using
9248 # Microsoft Visual C++.
9249 if test "$GCC" != yes; then
9250 with_gnu_ld=no
9251 fi
9252 ;;
9253 interix*)
9254 # we just hope/assume this is gcc and not c89 (= MSVC++)
9255 with_gnu_ld=yes
9256 ;;
9257 openbsd*)
9258 with_gnu_ld=no
9259 ;;
9260 esac
9261
9262 ld_shlibs=yes
9263
9264 # On some targets, GNU ld is compatible enough with the native linker
9265 # that we're better off using the native interface for both.
9266 lt_use_gnu_ld_interface=no
9267 if test "$with_gnu_ld" = yes; then
9268 case $host_os in
9269 aix*)
9270 # The AIX port of GNU ld has always aspired to compatibility
9271 # with the native linker. However, as the warning in the GNU ld
9272 # block says, versions before 2.19.5* couldn't really create working
9273 # shared libraries, regardless of the interface used.
9274 case `$LD -v 2>&1` in
9275 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9276 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9277 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9278 *)
9279 lt_use_gnu_ld_interface=yes
9280 ;;
9281 esac
9282 ;;
9283 *)
9284 lt_use_gnu_ld_interface=yes
9285 ;;
9286 esac
9287 fi
9288
9289 if test "$lt_use_gnu_ld_interface" = yes; then
9290 # If archive_cmds runs LD, not CC, wlarc should be empty
9291 wlarc='${wl}'
9292
9293 # Set some defaults for GNU ld with shared library support. These
9294 # are reset later if shared libraries are not supported. Putting them
9295 # here allows them to be overridden if necessary.
9296 runpath_var=LD_RUN_PATH
9297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298 export_dynamic_flag_spec='${wl}--export-dynamic'
9299 # ancient GNU ld didn't support --whole-archive et. al.
9300 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9301 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9302 else
9303 whole_archive_flag_spec=
9304 fi
9305 supports_anon_versioning=no
9306 case `$LD -v 2>&1` in
9307 *GNU\ gold*) supports_anon_versioning=yes ;;
9308 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9309 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9310 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9311 *\ 2.11.*) ;; # other 2.11 versions
9312 *) supports_anon_versioning=yes ;;
9313 esac
9314
9315 # See if GNU ld supports shared libraries.
9316 case $host_os in
9317 aix[3-9]*)
9318 # On AIX/PPC, the GNU linker is very broken
9319 if test "$host_cpu" != ia64; then
9320 ld_shlibs=no
9321 cat <<_LT_EOF 1>&2
9322
9323*** Warning: the GNU linker, at least up to release 2.19, is reported
9324*** to be unable to reliably create shared libraries on AIX.
9325*** Therefore, libtool is disabling shared libraries support. If you
9326*** really care for shared libraries, you may want to install binutils
9327*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9328*** You will then need to restart the configuration process.
9329
9330_LT_EOF
9331 fi
9332 ;;
9333
9334 amigaos*)
9335 case $host_cpu in
9336 powerpc)
9337 # see comment about AmigaOS4 .so support
9338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9339 archive_expsym_cmds=''
9340 ;;
9341 m68k)
9342 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)'
9343 hardcode_libdir_flag_spec='-L$libdir'
9344 hardcode_minus_L=yes
9345 ;;
9346 esac
9347 ;;
9348
9349 beos*)
9350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9351 allow_undefined_flag=unsupported
9352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9353 # support --undefined. This deserves some investigation. FIXME
9354 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9355 else
9356 ld_shlibs=no
9357 fi
9358 ;;
9359
9360 cygwin* | mingw* | pw32* | cegcc*)
9361 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9362 # as there is no search path for DLLs.
9363 hardcode_libdir_flag_spec='-L$libdir'
9364 export_dynamic_flag_spec='${wl}--export-all-symbols'
9365 allow_undefined_flag=unsupported
9366 always_export_symbols=no
9367 enable_shared_with_static_runtimes=yes
9368 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9369
9370 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9372 # If the export-symbols file already is a .def file (1st line
9373 # is EXPORTS), use it as is; otherwise, prepend...
9374 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9375 cp $export_symbols $output_objdir/$soname.def;
9376 else
9377 echo EXPORTS > $output_objdir/$soname.def;
9378 cat $export_symbols >> $output_objdir/$soname.def;
9379 fi~
9380 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9381 else
9382 ld_shlibs=no
9383 fi
9384 ;;
9385
9386 haiku*)
9387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388 link_all_deplibs=yes
9389 ;;
9390
9391 interix[3-9]*)
9392 hardcode_direct=no
9393 hardcode_shlibpath_var=no
9394 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9395 export_dynamic_flag_spec='${wl}-E'
9396 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9397 # Instead, shared libraries are loaded at an image base (0x10000000 by
9398 # default) and relocated if they conflict, which is a slow very memory
9399 # consuming and fragmenting process. To avoid this, we pick a random,
9400 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9401 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9402 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9403 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'
9404 ;;
9405
9406 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9407 tmp_diet=no
9408 if test "$host_os" = linux-dietlibc; then
9409 case $cc_basename in
9410 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9411 esac
9412 fi
9413 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9414 && test "$tmp_diet" = no
9415 then
9416 tmp_addflag=' $pic_flag'
9417 tmp_sharedflag='-shared'
9418 case $cc_basename,$host_cpu in
9419 pgcc*) # Portland Group C compiler
9420 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'
9421 tmp_addflag=' $pic_flag'
9422 ;;
9423 pgf77* | pgf90* | pgf95* | pgfortran*)
9424 # Portland Group f77 and f90 compilers
9425 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'
9426 tmp_addflag=' $pic_flag -Mnomain' ;;
9427 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9428 tmp_addflag=' -i_dynamic' ;;
9429 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9430 tmp_addflag=' -i_dynamic -nofor_main' ;;
9431 ifc* | ifort*) # Intel Fortran compiler
9432 tmp_addflag=' -nofor_main' ;;
9433 lf95*) # Lahey Fortran 8.1
9434 whole_archive_flag_spec=
9435 tmp_sharedflag='--shared' ;;
9436 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9437 tmp_sharedflag='-qmkshrobj'
9438 tmp_addflag= ;;
9439 nvcc*) # Cuda Compiler Driver 2.2
9440 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'
9441 compiler_needs_object=yes
9442 ;;
9443 esac
9444 case `$CC -V 2>&1 | sed 5q` in
9445 *Sun\ C*) # Sun C 5.9
9446 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'
9447 compiler_needs_object=yes
9448 tmp_sharedflag='-G' ;;
9449 *Sun\ F*) # Sun Fortran 8.3
9450 tmp_sharedflag='-G' ;;
9451 esac
9452 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9453
9454 if test "x$supports_anon_versioning" = xyes; then
9455 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9456 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9457 echo "local: *; };" >> $output_objdir/$libname.ver~
9458 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9459 fi
9460
9461 case $cc_basename in
9462 xlf* | bgf* | bgxlf* | mpixlf*)
9463 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9464 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9465 hardcode_libdir_flag_spec=
9466 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9467 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9468 if test "x$supports_anon_versioning" = xyes; then
9469 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9471 echo "local: *; };" >> $output_objdir/$libname.ver~
9472 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9473 fi
9474 ;;
9475 esac
9476 else
9477 ld_shlibs=no
9478 fi
9479 ;;
9480
9481 netbsd*)
9482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9483 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9484 wlarc=
9485 else
9486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9488 fi
9489 ;;
9490
9491 solaris*)
9492 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9493 ld_shlibs=no
9494 cat <<_LT_EOF 1>&2
9495
9496*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9497*** create shared libraries on Solaris systems. Therefore, libtool
9498*** is disabling shared libraries support. We urge you to upgrade GNU
9499*** binutils to release 2.9.1 or newer. Another option is to modify
9500*** your PATH or compiler configuration so that the native linker is
9501*** used, and then restart.
9502
9503_LT_EOF
9504 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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 else
9508 ld_shlibs=no
9509 fi
9510 ;;
9511
9512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9513 case `$LD -v 2>&1` in
9514 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9515 ld_shlibs=no
9516 cat <<_LT_EOF 1>&2
9517
9518*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9519*** reliably create shared libraries on SCO systems. Therefore, libtool
9520*** is disabling shared libraries support. We urge you to upgrade GNU
9521*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9522*** your PATH or compiler configuration so that the native linker is
9523*** used, and then restart.
9524
9525_LT_EOF
9526 ;;
9527 *)
9528 # For security reasons, it is highly recommended that you always
9529 # use absolute paths for naming shared libraries, and exclude the
9530 # DT_RUNPATH tag from executables and libraries. But doing so
9531 # requires that you compile everything twice, which is a pain.
9532 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9536 else
9537 ld_shlibs=no
9538 fi
9539 ;;
9540 esac
9541 ;;
9542
9543 sunos4*)
9544 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9545 wlarc=
9546 hardcode_direct=yes
9547 hardcode_shlibpath_var=no
9548 ;;
9549
9550 *)
9551 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9554 else
9555 ld_shlibs=no
9556 fi
9557 ;;
9558 esac
9559
9560 if test "$ld_shlibs" = no; then
9561 runpath_var=
9562 hardcode_libdir_flag_spec=
9563 export_dynamic_flag_spec=
9564 whole_archive_flag_spec=
9565 fi
9566 else
9567 # PORTME fill in a description of your system's linker (not GNU ld)
9568 case $host_os in
9569 aix3*)
9570 allow_undefined_flag=unsupported
9571 always_export_symbols=yes
9572 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'
9573 # Note: this linker hardcodes the directories in LIBPATH if there
9574 # are no directories specified by -L.
9575 hardcode_minus_L=yes
9576 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9577 # Neither direct hardcoding nor static linking is supported with a
9578 # broken collect2.
9579 hardcode_direct=unsupported
9580 fi
9581 ;;
9582
9583 aix[4-9]*)
9584 if test "$host_cpu" = ia64; then
9585 # On IA64, the linker does run time linking by default, so we don't
9586 # have to do anything special.
9587 aix_use_runtimelinking=no
9588 exp_sym_flag='-Bexport'
9589 no_entry_flag=""
9590 else
9591 # If we're using GNU nm, then we don't want the "-C" option.
9592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9593 # Also, AIX nm treats weak defined symbols like other global
9594 # defined symbols, whereas GNU nm marks them as "W".
9595 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9596 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'
9597 else
9598 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'
9599 fi
9600 aix_use_runtimelinking=no
9601
9602 # Test if we are trying to use run time linking or normal
9603 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9604 # need to do runtime linking.
9605 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9606 for ld_flag in $LDFLAGS; do
9607 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9608 aix_use_runtimelinking=yes
9609 break
9610 fi
9611 done
9612 ;;
9613 esac
9614
9615 exp_sym_flag='-bexport'
9616 no_entry_flag='-bnoentry'
9617 fi
9618
9619 # When large executables or shared objects are built, AIX ld can
9620 # have problems creating the table of contents. If linking a library
9621 # or program results in "error TOC overflow" add -mminimal-toc to
9622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9624
9625 archive_cmds=''
9626 hardcode_direct=yes
9627 hardcode_direct_absolute=yes
9628 hardcode_libdir_separator=':'
9629 link_all_deplibs=yes
9630 file_list_spec='${wl}-f,'
9631
9632 if test "$GCC" = yes; then
9633 case $host_os in aix4.[012]|aix4.[012].*)
9634 # We only want to do this on AIX 4.2 and lower, the check
9635 # below for broken collect2 doesn't work under 4.3+
9636 collect2name=`${CC} -print-prog-name=collect2`
9637 if test -f "$collect2name" &&
9638 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9639 then
9640 # We have reworked collect2
9641 :
9642 else
9643 # We have old collect2
9644 hardcode_direct=unsupported
9645 # It fails to find uninstalled libraries when the uninstalled
9646 # path is not listed in the libpath. Setting hardcode_minus_L
9647 # to unsupported forces relinking
9648 hardcode_minus_L=yes
9649 hardcode_libdir_flag_spec='-L$libdir'
9650 hardcode_libdir_separator=
9651 fi
9652 ;;
9653 esac
9654 shared_flag='-shared'
9655 if test "$aix_use_runtimelinking" = yes; then
9656 shared_flag="$shared_flag "'${wl}-G'
9657 fi
9658 else
9659 # not using gcc
9660 if test "$host_cpu" = ia64; then
9661 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9662 # chokes on -Wl,-G. The following line is correct:
9663 shared_flag='-G'
9664 else
9665 if test "$aix_use_runtimelinking" = yes; then
9666 shared_flag='${wl}-G'
9667 else
9668 shared_flag='${wl}-bM:SRE'
9669 fi
9670 fi
9671 fi
9672
9673 export_dynamic_flag_spec='${wl}-bexpall'
9674 # It seems that -bexpall does not export symbols beginning with
9675 # underscore (_), so it is better to generate a list of symbols to export.
9676 always_export_symbols=yes
9677 if test "$aix_use_runtimelinking" = yes; then
9678 # Warning - without using the other runtime loading flags (-brtl),
9679 # -berok will link without error, but may produce a broken library.
9680 allow_undefined_flag='-berok'
9681 # Determine the default libpath from the value encoded in an
9682 # empty executable.
9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684/* end confdefs.h. */
9685
9686int
9687main ()
9688{
9689
9690 ;
9691 return 0;
9692}
9693_ACEOF
9694if ac_fn_c_try_link "$LINENO"; then :
9695
9696lt_aix_libpath_sed='
9697 /Import File Strings/,/^$/ {
9698 /^0/ {
9699 s/^0 *\(.*\)$/\1/
9700 p
9701 }
9702 }'
9703aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9704# Check for a 64-bit object if we didn't find anything.
9705if test -z "$aix_libpath"; then
9706 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9707fi
9708fi
9709rm -f core conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9711if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9712
9713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9714 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"
9715 else
9716 if test "$host_cpu" = ia64; then
9717 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9718 allow_undefined_flag="-z nodefs"
9719 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"
9720 else
9721 # Determine the default libpath from the value encoded in an
9722 # empty executable.
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724/* end confdefs.h. */
9725
9726int
9727main ()
9728{
9729
9730 ;
9731 return 0;
9732}
9733_ACEOF
9734if ac_fn_c_try_link "$LINENO"; then :
9735
9736lt_aix_libpath_sed='
9737 /Import File Strings/,/^$/ {
9738 /^0/ {
9739 s/^0 *\(.*\)$/\1/
9740 p
9741 }
9742 }'
9743aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9744# Check for a 64-bit object if we didn't find anything.
9745if test -z "$aix_libpath"; then
9746 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9747fi
9748fi
9749rm -f core conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9752
9753 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9754 # Warning - without using the other run time loading flags,
9755 # -berok will link without error, but may produce a broken library.
9756 no_undefined_flag=' ${wl}-bernotok'
9757 allow_undefined_flag=' ${wl}-berok'
9758 if test "$with_gnu_ld" = yes; then
9759 # We only use this code for GNU lds that support --whole-archive.
9760 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9761 else
9762 # Exported symbols can be pulled into shared objects from archives
9763 whole_archive_flag_spec='$convenience'
9764 fi
9765 archive_cmds_need_lc=yes
9766 # This is similar to how AIX traditionally builds its shared libraries.
9767 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'
9768 fi
9769 fi
9770 ;;
9771
9772 amigaos*)
9773 case $host_cpu in
9774 powerpc)
9775 # see comment about AmigaOS4 .so support
9776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777 archive_expsym_cmds=''
9778 ;;
9779 m68k)
9780 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)'
9781 hardcode_libdir_flag_spec='-L$libdir'
9782 hardcode_minus_L=yes
9783 ;;
9784 esac
9785 ;;
9786
9787 bsdi[45]*)
9788 export_dynamic_flag_spec=-rdynamic
9789 ;;
9790
9791 cygwin* | mingw* | pw32* | cegcc*)
9792 # When not using gcc, we currently assume that we are using
9793 # Microsoft Visual C++.
9794 # hardcode_libdir_flag_spec is actually meaningless, as there is
9795 # no search path for DLLs.
9796 hardcode_libdir_flag_spec=' '
9797 allow_undefined_flag=unsupported
9798 # Tell ltmain to make .lib files, not .a files.
9799 libext=lib
9800 # Tell ltmain to make .dll files, not .so files.
9801 shrext_cmds=".dll"
9802 # FIXME: Setting linknames here is a bad hack.
9803 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9804 # The linker will automatically build a .lib file if we build a DLL.
9805 old_archive_from_new_cmds='true'
9806 # FIXME: Should let the user specify the lib program.
9807 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9808 fix_srcfile_path='`cygpath -w "$srcfile"`'
9809 enable_shared_with_static_runtimes=yes
9810 ;;
9811
9812 darwin* | rhapsody*)
9813
9814
9815 archive_cmds_need_lc=no
9816 hardcode_direct=no
9817 hardcode_automatic=yes
9818 hardcode_shlibpath_var=unsupported
9819 if test "$lt_cv_ld_force_load" = "yes"; then
9820 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\"`'
9821 else
9822 whole_archive_flag_spec=''
9823 fi
9824 link_all_deplibs=yes
9825 allow_undefined_flag="$_lt_dar_allow_undefined"
9826 case $cc_basename in
9827 ifort*) _lt_dar_can_shared=yes ;;
9828 *) _lt_dar_can_shared=$GCC ;;
9829 esac
9830 if test "$_lt_dar_can_shared" = "yes"; then
9831 output_verbose_link_cmd=func_echo_all
9832 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9833 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9834 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}"
9835 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}"
9836
9837 else
9838 ld_shlibs=no
9839 fi
9840
9841 ;;
9842
9843 dgux*)
9844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_libdir_flag_spec='-L$libdir'
9846 hardcode_shlibpath_var=no
9847 ;;
9848
9849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9850 # support. Future versions do this automatically, but an explicit c++rt0.o
9851 # does not break anything, and helps significantly (at the cost of a little
9852 # extra space).
9853 freebsd2.2*)
9854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9855 hardcode_libdir_flag_spec='-R$libdir'
9856 hardcode_direct=yes
9857 hardcode_shlibpath_var=no
9858 ;;
9859
9860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9861 freebsd2.*)
9862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9863 hardcode_direct=yes
9864 hardcode_minus_L=yes
9865 hardcode_shlibpath_var=no
9866 ;;
9867
9868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9869 freebsd* | dragonfly*)
9870 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9871 hardcode_libdir_flag_spec='-R$libdir'
9872 hardcode_direct=yes
9873 hardcode_shlibpath_var=no
9874 ;;
9875
9876 hpux9*)
9877 if test "$GCC" = yes; then
9878 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'
9879 else
9880 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'
9881 fi
9882 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9883 hardcode_libdir_separator=:
9884 hardcode_direct=yes
9885
9886 # hardcode_minus_L: Not really in the search PATH,
9887 # but as the default location of the library.
9888 hardcode_minus_L=yes
9889 export_dynamic_flag_spec='${wl}-E'
9890 ;;
9891
9892 hpux10*)
9893 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9894 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9895 else
9896 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9897 fi
9898 if test "$with_gnu_ld" = no; then
9899 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9900 hardcode_libdir_flag_spec_ld='+b $libdir'
9901 hardcode_libdir_separator=:
9902 hardcode_direct=yes
9903 hardcode_direct_absolute=yes
9904 export_dynamic_flag_spec='${wl}-E'
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 fi
9909 ;;
9910
9911 hpux11*)
9912 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9913 case $host_cpu in
9914 hppa*64*)
9915 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9916 ;;
9917 ia64*)
9918 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9919 ;;
9920 *)
9921 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9922 ;;
9923 esac
9924 else
9925 case $host_cpu in
9926 hppa*64*)
9927 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9928 ;;
9929 ia64*)
9930 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9931 ;;
9932 *)
9933
9934 # Older versions of the 11.00 compiler do not understand -b yet
9935 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9937$as_echo_n "checking if $CC understands -b... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009938if ${lt_cv_prog_compiler__b+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009939 $as_echo_n "(cached) " >&6
9940else
9941 lt_cv_prog_compiler__b=no
9942 save_LDFLAGS="$LDFLAGS"
9943 LDFLAGS="$LDFLAGS -b"
9944 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9945 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9946 # The linker can only warn and ignore the option if not recognized
9947 # So say no if there are warnings
9948 if test -s conftest.err; then
9949 # Append any errors to the config.log.
9950 cat conftest.err 1>&5
9951 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9953 if diff conftest.exp conftest.er2 >/dev/null; then
9954 lt_cv_prog_compiler__b=yes
9955 fi
9956 else
9957 lt_cv_prog_compiler__b=yes
9958 fi
9959 fi
9960 $RM -r conftest*
9961 LDFLAGS="$save_LDFLAGS"
9962
9963fi
9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9965$as_echo "$lt_cv_prog_compiler__b" >&6; }
9966
9967if test x"$lt_cv_prog_compiler__b" = xyes; then
9968 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9969else
9970 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9971fi
9972
9973 ;;
9974 esac
9975 fi
9976 if test "$with_gnu_ld" = no; then
9977 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9978 hardcode_libdir_separator=:
9979
9980 case $host_cpu in
9981 hppa*64*|ia64*)
9982 hardcode_direct=no
9983 hardcode_shlibpath_var=no
9984 ;;
9985 *)
9986 hardcode_direct=yes
9987 hardcode_direct_absolute=yes
9988 export_dynamic_flag_spec='${wl}-E'
9989
9990 # hardcode_minus_L: Not really in the search PATH,
9991 # but as the default location of the library.
9992 hardcode_minus_L=yes
9993 ;;
9994 esac
9995 fi
9996 ;;
9997
9998 irix5* | irix6* | nonstopux*)
9999 if test "$GCC" = yes; then
10000 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'
10001 # Try to use the -exported_symbol ld option, if it does not
10002 # work, assume that -exports_file does not work either and
10003 # implicitly export all symbols.
10004 save_LDFLAGS="$LDFLAGS"
10005 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007/* end confdefs.h. */
10008int foo(void) {}
10009_ACEOF
10010if ac_fn_c_try_link "$LINENO"; then :
10011 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'
10012
10013fi
10014rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LDFLAGS="$save_LDFLAGS"
10017 else
10018 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'
10019 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'
10020 fi
10021 archive_cmds_need_lc='no'
10022 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10023 hardcode_libdir_separator=:
10024 inherit_rpath=yes
10025 link_all_deplibs=yes
10026 ;;
10027
10028 netbsd*)
10029 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10031 else
10032 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10033 fi
10034 hardcode_libdir_flag_spec='-R$libdir'
10035 hardcode_direct=yes
10036 hardcode_shlibpath_var=no
10037 ;;
10038
10039 newsos6)
10040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10041 hardcode_direct=yes
10042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043 hardcode_libdir_separator=:
10044 hardcode_shlibpath_var=no
10045 ;;
10046
10047 *nto* | *qnx*)
10048 ;;
10049
10050 openbsd*)
10051 if test -f /usr/libexec/ld.so; then
10052 hardcode_direct=yes
10053 hardcode_shlibpath_var=no
10054 hardcode_direct_absolute=yes
10055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10056 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10058 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10059 export_dynamic_flag_spec='${wl}-E'
10060 else
10061 case $host_os in
10062 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10063 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10064 hardcode_libdir_flag_spec='-R$libdir'
10065 ;;
10066 *)
10067 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10068 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10069 ;;
10070 esac
10071 fi
10072 else
10073 ld_shlibs=no
10074 fi
10075 ;;
10076
10077 os2*)
10078 hardcode_libdir_flag_spec='-L$libdir'
10079 hardcode_minus_L=yes
10080 allow_undefined_flag=unsupported
10081 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'
10082 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10083 ;;
10084
10085 osf3*)
10086 if test "$GCC" = yes; then
10087 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10088 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'
10089 else
10090 allow_undefined_flag=' -expect_unresolved \*'
10091 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'
10092 fi
10093 archive_cmds_need_lc='no'
10094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10095 hardcode_libdir_separator=:
10096 ;;
10097
10098 osf4* | osf5*) # as osf3* with the addition of -msym flag
10099 if test "$GCC" = yes; then
10100 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10101 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'
10102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10103 else
10104 allow_undefined_flag=' -expect_unresolved \*'
10105 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'
10106 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~
10107 $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'
10108
10109 # Both c and cxx compiler support -rpath directly
10110 hardcode_libdir_flag_spec='-rpath $libdir'
10111 fi
10112 archive_cmds_need_lc='no'
10113 hardcode_libdir_separator=:
10114 ;;
10115
10116 solaris*)
10117 no_undefined_flag=' -z defs'
10118 if test "$GCC" = yes; then
10119 wlarc='${wl}'
10120 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10122 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10123 else
10124 case `$CC -V 2>&1` in
10125 *"Compilers 5.0"*)
10126 wlarc=''
10127 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10129 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10130 ;;
10131 *)
10132 wlarc='${wl}'
10133 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10134 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10135 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10136 ;;
10137 esac
10138 fi
10139 hardcode_libdir_flag_spec='-R$libdir'
10140 hardcode_shlibpath_var=no
10141 case $host_os in
10142 solaris2.[0-5] | solaris2.[0-5].*) ;;
10143 *)
10144 # The compiler driver will combine and reorder linker options,
10145 # but understands `-z linker_flag'. GCC discards it without `$wl',
10146 # but is careful enough not to reorder.
10147 # Supported since Solaris 2.6 (maybe 2.5.1?)
10148 if test "$GCC" = yes; then
10149 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10150 else
10151 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10152 fi
10153 ;;
10154 esac
10155 link_all_deplibs=yes
10156 ;;
10157
10158 sunos4*)
10159 if test "x$host_vendor" = xsequent; then
10160 # Use $CC to link under sequent, because it throws in some extra .o
10161 # files that make .init and .fini sections work.
10162 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10163 else
10164 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10165 fi
10166 hardcode_libdir_flag_spec='-L$libdir'
10167 hardcode_direct=yes
10168 hardcode_minus_L=yes
10169 hardcode_shlibpath_var=no
10170 ;;
10171
10172 sysv4)
10173 case $host_vendor in
10174 sni)
10175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176 hardcode_direct=yes # is this really true???
10177 ;;
10178 siemens)
10179 ## LD is ld it makes a PLAMLIB
10180 ## CC just makes a GrossModule.
10181 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10182 reload_cmds='$CC -r -o $output$reload_objs'
10183 hardcode_direct=no
10184 ;;
10185 motorola)
10186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10188 ;;
10189 esac
10190 runpath_var='LD_RUN_PATH'
10191 hardcode_shlibpath_var=no
10192 ;;
10193
10194 sysv4.3*)
10195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196 hardcode_shlibpath_var=no
10197 export_dynamic_flag_spec='-Bexport'
10198 ;;
10199
10200 sysv4*MP*)
10201 if test -d /usr/nec; then
10202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_shlibpath_var=no
10204 runpath_var=LD_RUN_PATH
10205 hardcode_runpath_var=yes
10206 ld_shlibs=yes
10207 fi
10208 ;;
10209
10210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10211 no_undefined_flag='${wl}-z,text'
10212 archive_cmds_need_lc=no
10213 hardcode_shlibpath_var=no
10214 runpath_var='LD_RUN_PATH'
10215
10216 if test "$GCC" = yes; then
10217 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219 else
10220 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 fi
10223 ;;
10224
10225 sysv5* | sco3.2v5* | sco5v6*)
10226 # Note: We can NOT use -z defs as we might desire, because we do not
10227 # link with -lc, and that would cause any symbols used from libc to
10228 # always be unresolved, which means just about no library would
10229 # ever link correctly. If we're not using GNU ld we use -z text
10230 # though, which does catch some bad symbols but isn't as heavy-handed
10231 # as -z defs.
10232 no_undefined_flag='${wl}-z,text'
10233 allow_undefined_flag='${wl}-z,nodefs'
10234 archive_cmds_need_lc=no
10235 hardcode_shlibpath_var=no
10236 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10237 hardcode_libdir_separator=':'
10238 link_all_deplibs=yes
10239 export_dynamic_flag_spec='${wl}-Bexport'
10240 runpath_var='LD_RUN_PATH'
10241
10242 if test "$GCC" = yes; then
10243 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10245 else
10246 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248 fi
10249 ;;
10250
10251 uts4*)
10252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253 hardcode_libdir_flag_spec='-L$libdir'
10254 hardcode_shlibpath_var=no
10255 ;;
10256
10257 *)
10258 ld_shlibs=no
10259 ;;
10260 esac
10261
10262 if test x$host_vendor = xsni; then
10263 case $host in
10264 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10265 export_dynamic_flag_spec='${wl}-Blargedynsym'
10266 ;;
10267 esac
10268 fi
10269 fi
10270
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10272$as_echo "$ld_shlibs" >&6; }
10273test "$ld_shlibs" = no && can_build_shared=no
10274
10275with_gnu_ld=$with_gnu_ld
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291#
10292# Do we need to explicitly link libc?
10293#
10294case "x$archive_cmds_need_lc" in
10295x|xyes)
10296 # Assume -lc should be added
10297 archive_cmds_need_lc=yes
10298
10299 if test "$enable_shared" = yes && test "$GCC" = yes; then
10300 case $archive_cmds in
10301 *'~'*)
10302 # FIXME: we may have to deal with multi-command sequences.
10303 ;;
10304 '$CC '*)
10305 # Test whether the compiler implicitly links with -lc since on some
10306 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10307 # to ld, don't add -lc before -lgcc.
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10309$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000010310if ${lt_cv_archive_cmds_need_lc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010311 $as_echo_n "(cached) " >&6
10312else
10313 $RM conftest*
10314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10315
10316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10317 (eval $ac_compile) 2>&5
10318 ac_status=$?
10319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10320 test $ac_status = 0; } 2>conftest.err; then
10321 soname=conftest
10322 lib=conftest
10323 libobjs=conftest.$ac_objext
10324 deplibs=
10325 wl=$lt_prog_compiler_wl
10326 pic_flag=$lt_prog_compiler_pic
10327 compiler_flags=-v
10328 linker_flags=-v
10329 verstring=
10330 output_objdir=.
10331 libname=conftest
10332 lt_save_allow_undefined_flag=$allow_undefined_flag
10333 allow_undefined_flag=
10334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10335 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10336 ac_status=$?
10337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10338 test $ac_status = 0; }
10339 then
10340 lt_cv_archive_cmds_need_lc=no
10341 else
10342 lt_cv_archive_cmds_need_lc=yes
10343 fi
10344 allow_undefined_flag=$lt_save_allow_undefined_flag
10345 else
10346 cat conftest.err 1>&5
10347 fi
10348 $RM conftest*
10349
10350fi
10351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10352$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10353 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10354 ;;
10355 esac
10356 fi
10357 ;;
10358esac
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10517$as_echo_n "checking dynamic linker characteristics... " >&6; }
10518
10519if test "$GCC" = yes; then
10520 case $host_os in
10521 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10522 *) lt_awk_arg="/^libraries:/" ;;
10523 esac
10524 case $host_os in
10525 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10526 *) lt_sed_strip_eq="s,=/,/,g" ;;
10527 esac
10528 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10529 case $lt_search_path_spec in
10530 *\;*)
10531 # if the path contains ";" then we assume it to be the separator
10532 # otherwise default to the standard path separator (i.e. ":") - it is
10533 # assumed that no part of a normal pathname contains ";" but that should
10534 # okay in the real world where ";" in dirpaths is itself problematic.
10535 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10536 ;;
10537 *)
10538 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10539 ;;
10540 esac
10541 # Ok, now we have the path, separated by spaces, we can step through it
10542 # and add multilib dir if necessary.
10543 lt_tmp_lt_search_path_spec=
10544 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10545 for lt_sys_path in $lt_search_path_spec; do
10546 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10547 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10548 else
10549 test -d "$lt_sys_path" && \
10550 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10551 fi
10552 done
10553 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10554BEGIN {RS=" "; FS="/|\n";} {
10555 lt_foo="";
10556 lt_count=0;
10557 for (lt_i = NF; lt_i > 0; lt_i--) {
10558 if ($lt_i != "" && $lt_i != ".") {
10559 if ($lt_i == "..") {
10560 lt_count++;
10561 } else {
10562 if (lt_count == 0) {
10563 lt_foo="/" $lt_i lt_foo;
10564 } else {
10565 lt_count--;
10566 }
10567 }
10568 }
10569 }
10570 if (lt_foo != "") { lt_freq[lt_foo]++; }
10571 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10572}'`
10573 # AWK program above erroneously prepends '/' to C:/dos/paths
10574 # for these hosts.
10575 case $host_os in
10576 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10577 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10578 esac
10579 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10580else
10581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10582fi
10583library_names_spec=
10584libname_spec='lib$name'
10585soname_spec=
10586shrext_cmds=".so"
10587postinstall_cmds=
10588postuninstall_cmds=
10589finish_cmds=
10590finish_eval=
10591shlibpath_var=
10592shlibpath_overrides_runpath=unknown
10593version_type=none
10594dynamic_linker="$host_os ld.so"
10595sys_lib_dlsearch_path_spec="/lib /usr/lib"
10596need_lib_prefix=unknown
10597hardcode_into_libs=no
10598
10599# when you set need_version to no, make sure it does not cause -set_version
10600# flags to be left without arguments
10601need_version=unknown
10602
10603case $host_os in
10604aix3*)
10605 version_type=linux
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10607 shlibpath_var=LIBPATH
10608
10609 # AIX 3 has no versioning support, so we append a major version to the name.
10610 soname_spec='${libname}${release}${shared_ext}$major'
10611 ;;
10612
10613aix[4-9]*)
10614 version_type=linux
10615 need_lib_prefix=no
10616 need_version=no
10617 hardcode_into_libs=yes
10618 if test "$host_cpu" = ia64; then
10619 # AIX 5 supports IA64
10620 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 else
10623 # With GCC up to 2.95.x, collect2 would create an import file
10624 # for dependence libraries. The import file would start with
10625 # the line `#! .'. This would cause the generated library to
10626 # depend on `.', always an invalid library. This was fixed in
10627 # development snapshots of GCC prior to 3.0.
10628 case $host_os in
10629 aix4 | aix4.[01] | aix4.[01].*)
10630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10631 echo ' yes '
10632 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10633 :
10634 else
10635 can_build_shared=no
10636 fi
10637 ;;
10638 esac
10639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10640 # soname into executable. Probably we can add versioning support to
10641 # collect2, so additional links can be useful in future.
10642 if test "$aix_use_runtimelinking" = yes; then
10643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10644 # instead of lib<name>.a to let people know that these are not
10645 # typical AIX shared libraries.
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 else
10648 # We preserve .a as extension for shared libraries through AIX4.2
10649 # and later when we are not doing run time linking.
10650 library_names_spec='${libname}${release}.a $libname.a'
10651 soname_spec='${libname}${release}${shared_ext}$major'
10652 fi
10653 shlibpath_var=LIBPATH
10654 fi
10655 ;;
10656
10657amigaos*)
10658 case $host_cpu in
10659 powerpc)
10660 # Since July 2007 AmigaOS4 officially supports .so libraries.
10661 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 ;;
10664 m68k)
10665 library_names_spec='$libname.ixlibrary $libname.a'
10666 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10667 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'
10668 ;;
10669 esac
10670 ;;
10671
10672beos*)
10673 library_names_spec='${libname}${shared_ext}'
10674 dynamic_linker="$host_os ld.so"
10675 shlibpath_var=LIBRARY_PATH
10676 ;;
10677
10678bsdi[45]*)
10679 version_type=linux
10680 need_version=no
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10684 shlibpath_var=LD_LIBRARY_PATH
10685 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10686 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10687 # the default ld.so.conf also contains /usr/contrib/lib and
10688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10689 # libtool to hard-code these into programs
10690 ;;
10691
10692cygwin* | mingw* | pw32* | cegcc*)
10693 version_type=windows
10694 shrext_cmds=".dll"
10695 need_version=no
10696 need_lib_prefix=no
10697
10698 case $GCC,$host_os in
10699 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10700 library_names_spec='$libname.dll.a'
10701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10702 postinstall_cmds='base_file=`basename \${file}`~
10703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10704 dldir=$destdir/`dirname \$dlpath`~
10705 test -d \$dldir || mkdir -p \$dldir~
10706 $install_prog $dir/$dlname \$dldir/$dlname~
10707 chmod a+x \$dldir/$dlname~
10708 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10709 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10710 fi'
10711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10712 dlpath=$dir/\$dldll~
10713 $RM \$dlpath'
10714 shlibpath_overrides_runpath=yes
10715
10716 case $host_os in
10717 cygwin*)
10718 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10719 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10720
10721 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10722 ;;
10723 mingw* | cegcc*)
10724 # MinGW DLLs use traditional 'lib' prefix
10725 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10726 ;;
10727 pw32*)
10728 # pw32 DLLs use 'pw' prefix rather than 'lib'
10729 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10730 ;;
10731 esac
10732 ;;
10733
10734 *)
10735 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10736 ;;
10737 esac
10738 dynamic_linker='Win32 ld.exe'
10739 # FIXME: first we should search . and the directory the executable is in
10740 shlibpath_var=PATH
10741 ;;
10742
10743darwin* | rhapsody*)
10744 dynamic_linker="$host_os dyld"
10745 version_type=darwin
10746 need_lib_prefix=no
10747 need_version=no
10748 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10749 soname_spec='${libname}${release}${major}$shared_ext'
10750 shlibpath_overrides_runpath=yes
10751 shlibpath_var=DYLD_LIBRARY_PATH
10752 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10753
10754 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10756 ;;
10757
10758dgux*)
10759 version_type=linux
10760 need_lib_prefix=no
10761 need_version=no
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 ;;
10766
10767freebsd* | dragonfly*)
10768 # DragonFly does not have aout. When/if they implement a new
10769 # versioning mechanism, adjust this.
10770 if test -x /usr/bin/objformat; then
10771 objformat=`/usr/bin/objformat`
10772 else
10773 case $host_os in
10774 freebsd[23].*) objformat=aout ;;
10775 *) objformat=elf ;;
10776 esac
10777 fi
10778 version_type=freebsd-$objformat
10779 case $version_type in
10780 freebsd-elf*)
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10782 need_version=no
10783 need_lib_prefix=no
10784 ;;
10785 freebsd-*)
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10787 need_version=yes
10788 ;;
10789 esac
10790 shlibpath_var=LD_LIBRARY_PATH
10791 case $host_os in
10792 freebsd2.*)
10793 shlibpath_overrides_runpath=yes
10794 ;;
10795 freebsd3.[01]* | freebsdelf3.[01]*)
10796 shlibpath_overrides_runpath=yes
10797 hardcode_into_libs=yes
10798 ;;
10799 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10800 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10801 shlibpath_overrides_runpath=no
10802 hardcode_into_libs=yes
10803 ;;
10804 *) # from 4.6 on, and DragonFly
10805 shlibpath_overrides_runpath=yes
10806 hardcode_into_libs=yes
10807 ;;
10808 esac
10809 ;;
10810
10811gnu*)
10812 version_type=linux
10813 need_lib_prefix=no
10814 need_version=no
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 shlibpath_var=LD_LIBRARY_PATH
10818 hardcode_into_libs=yes
10819 ;;
10820
10821haiku*)
10822 version_type=linux
10823 need_lib_prefix=no
10824 need_version=no
10825 dynamic_linker="$host_os runtime_loader"
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10827 soname_spec='${libname}${release}${shared_ext}$major'
10828 shlibpath_var=LIBRARY_PATH
10829 shlibpath_overrides_runpath=yes
10830 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10831 hardcode_into_libs=yes
10832 ;;
10833
10834hpux9* | hpux10* | hpux11*)
10835 # Give a soname corresponding to the major version so that dld.sl refuses to
10836 # link against other versions.
10837 version_type=sunos
10838 need_lib_prefix=no
10839 need_version=no
10840 case $host_cpu in
10841 ia64*)
10842 shrext_cmds='.so'
10843 hardcode_into_libs=yes
10844 dynamic_linker="$host_os dld.so"
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 if test "X$HPUX_IA64_MODE" = X32; then
10850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10851 else
10852 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10853 fi
10854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10855 ;;
10856 hppa*64*)
10857 shrext_cmds='.sl'
10858 hardcode_into_libs=yes
10859 dynamic_linker="$host_os dld.sl"
10860 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863 soname_spec='${libname}${release}${shared_ext}$major'
10864 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10866 ;;
10867 *)
10868 shrext_cmds='.sl'
10869 dynamic_linker="$host_os dld.sl"
10870 shlibpath_var=SHLIB_PATH
10871 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 ;;
10875 esac
10876 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10877 postinstall_cmds='chmod 555 $lib'
10878 # or fails outright, so override atomically:
10879 install_override_mode=555
10880 ;;
10881
10882interix[3-9]*)
10883 version_type=linux
10884 need_lib_prefix=no
10885 need_version=no
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=no
10891 hardcode_into_libs=yes
10892 ;;
10893
10894irix5* | irix6* | nonstopux*)
10895 case $host_os in
10896 nonstopux*) version_type=nonstopux ;;
10897 *)
10898 if test "$lt_cv_prog_gnu_ld" = yes; then
10899 version_type=linux
10900 else
10901 version_type=irix
10902 fi ;;
10903 esac
10904 need_lib_prefix=no
10905 need_version=no
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10908 case $host_os in
10909 irix5* | nonstopux*)
10910 libsuff= shlibsuff=
10911 ;;
10912 *)
10913 case $LD in # libtool.m4 will add one of these switches to LD
10914 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10915 libsuff= shlibsuff= libmagic=32-bit;;
10916 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10917 libsuff=32 shlibsuff=N32 libmagic=N32;;
10918 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10919 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10920 *) libsuff= shlibsuff= libmagic=never-match;;
10921 esac
10922 ;;
10923 esac
10924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10925 shlibpath_overrides_runpath=no
10926 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10927 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10928 hardcode_into_libs=yes
10929 ;;
10930
10931# No shared lib support for Linux oldld, aout, or coff.
10932linux*oldld* | linux*aout* | linux*coff*)
10933 dynamic_linker=no
10934 ;;
10935
10936# This must be Linux ELF.
10937linux* | k*bsd*-gnu | kopensolaris*-gnu)
10938 version_type=linux
10939 need_lib_prefix=no
10940 need_version=no
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942 soname_spec='${libname}${release}${shared_ext}$major'
10943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=no
10946
10947 # Some binutils ld are patched to set DT_RUNPATH
Joseph Myers22e05272018-10-31 17:03:16 +000010948 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010949 $as_echo_n "(cached) " >&6
10950else
10951 lt_cv_shlibpath_overrides_runpath=no
10952 save_LDFLAGS=$LDFLAGS
10953 save_libdir=$libdir
10954 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10955 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957/* end confdefs.h. */
10958
10959int
10960main ()
10961{
10962
10963 ;
10964 return 0;
10965}
10966_ACEOF
10967if ac_fn_c_try_link "$LINENO"; then :
10968 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10969 lt_cv_shlibpath_overrides_runpath=yes
10970fi
10971fi
10972rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974 LDFLAGS=$save_LDFLAGS
10975 libdir=$save_libdir
10976
10977fi
10978
10979 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10980
10981 # This implies no fast_install, which is unacceptable.
10982 # Some rework will be needed to allow for fast_install
10983 # before this can be enabled.
10984 hardcode_into_libs=yes
10985
10986 # Append ld.so.conf contents to the search path
10987 if test -f /etc/ld.so.conf; then
10988 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' ' '`
10989 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10990 fi
10991
10992 # We used to test for /lib/ld.so.1 and disable shared libraries on
10993 # powerpc, because MkLinux only supported shared libraries with the
10994 # GNU dynamic linker. Since this was broken with cross compilers,
10995 # most powerpc-linux boxes support dynamic linking these days and
10996 # people can always --disable-shared, the test was removed, and we
10997 # assume the GNU/Linux dynamic linker is in use.
10998 dynamic_linker='GNU/Linux ld.so'
10999 ;;
11000
11001netbsd*)
11002 version_type=sunos
11003 need_lib_prefix=no
11004 need_version=no
11005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11008 dynamic_linker='NetBSD (a.out) ld.so'
11009 else
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11011 soname_spec='${libname}${release}${shared_ext}$major'
11012 dynamic_linker='NetBSD ld.elf_so'
11013 fi
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=yes
11016 hardcode_into_libs=yes
11017 ;;
11018
11019newsos6)
11020 version_type=linux
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes
11024 ;;
11025
11026*nto* | *qnx*)
11027 version_type=qnx
11028 need_lib_prefix=no
11029 need_version=no
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=no
11034 hardcode_into_libs=yes
11035 dynamic_linker='ldqnx.so'
11036 ;;
11037
11038openbsd*)
11039 version_type=sunos
11040 sys_lib_dlsearch_path_spec="/usr/lib"
11041 need_lib_prefix=no
11042 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11043 case $host_os in
11044 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11045 *) need_version=no ;;
11046 esac
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11051 case $host_os in
11052 openbsd2.[89] | openbsd2.[89].*)
11053 shlibpath_overrides_runpath=no
11054 ;;
11055 *)
11056 shlibpath_overrides_runpath=yes
11057 ;;
11058 esac
11059 else
11060 shlibpath_overrides_runpath=yes
11061 fi
11062 ;;
11063
11064os2*)
11065 libname_spec='$name'
11066 shrext_cmds=".dll"
11067 need_lib_prefix=no
11068 library_names_spec='$libname${shared_ext} $libname.a'
11069 dynamic_linker='OS/2 ld.exe'
11070 shlibpath_var=LIBPATH
11071 ;;
11072
11073osf3* | osf4* | osf5*)
11074 version_type=osf
11075 need_lib_prefix=no
11076 need_version=no
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079 shlibpath_var=LD_LIBRARY_PATH
11080 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11081 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11082 ;;
11083
11084rdos*)
11085 dynamic_linker=no
11086 ;;
11087
11088solaris*)
11089 version_type=linux
11090 need_lib_prefix=no
11091 need_version=no
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 soname_spec='${libname}${release}${shared_ext}$major'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 shlibpath_overrides_runpath=yes
11096 hardcode_into_libs=yes
11097 # ldd complains unless libraries are executable
11098 postinstall_cmds='chmod +x $lib'
11099 ;;
11100
11101sunos4*)
11102 version_type=sunos
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11104 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 shlibpath_overrides_runpath=yes
11107 if test "$with_gnu_ld" = yes; then
11108 need_lib_prefix=no
11109 fi
11110 need_version=yes
11111 ;;
11112
11113sysv4 | sysv4.3*)
11114 version_type=linux
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 case $host_vendor in
11119 sni)
11120 shlibpath_overrides_runpath=no
11121 need_lib_prefix=no
11122 runpath_var=LD_RUN_PATH
11123 ;;
11124 siemens)
11125 need_lib_prefix=no
11126 ;;
11127 motorola)
11128 need_lib_prefix=no
11129 need_version=no
11130 shlibpath_overrides_runpath=no
11131 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11132 ;;
11133 esac
11134 ;;
11135
11136sysv4*MP*)
11137 if test -d /usr/nec ;then
11138 version_type=linux
11139 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11140 soname_spec='$libname${shared_ext}.$major'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 fi
11143 ;;
11144
11145sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11146 version_type=freebsd-elf
11147 need_lib_prefix=no
11148 need_version=no
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11150 soname_spec='${libname}${release}${shared_ext}$major'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 shlibpath_overrides_runpath=yes
11153 hardcode_into_libs=yes
11154 if test "$with_gnu_ld" = yes; then
11155 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11156 else
11157 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11158 case $host_os in
11159 sco3.2v5*)
11160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11161 ;;
11162 esac
11163 fi
11164 sys_lib_dlsearch_path_spec='/usr/lib'
11165 ;;
11166
11167tpf*)
11168 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11169 version_type=linux
11170 need_lib_prefix=no
11171 need_version=no
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=no
11175 hardcode_into_libs=yes
11176 ;;
11177
11178uts4*)
11179 version_type=linux
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 shlibpath_var=LD_LIBRARY_PATH
11183 ;;
11184
11185*)
11186 dynamic_linker=no
11187 ;;
11188esac
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11190$as_echo "$dynamic_linker" >&6; }
11191test "$dynamic_linker" = no && can_build_shared=no
11192
11193variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11194if test "$GCC" = yes; then
11195 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11196fi
11197
11198if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11199 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11200fi
11201if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11202 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11203fi
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11297$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11298hardcode_action=
11299if test -n "$hardcode_libdir_flag_spec" ||
11300 test -n "$runpath_var" ||
11301 test "X$hardcode_automatic" = "Xyes" ; then
11302
11303 # We can hardcode non-existent directories.
11304 if test "$hardcode_direct" != no &&
11305 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11306 # have to relink, otherwise we might link with an installed library
11307 # when we should be linking with a yet-to-be-installed one
11308 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11309 test "$hardcode_minus_L" != no; then
11310 # Linking always hardcodes the temporary library directory.
11311 hardcode_action=relink
11312 else
11313 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11314 hardcode_action=immediate
11315 fi
11316else
11317 # We cannot hardcode anything, or else we can only hardcode existing
11318 # directories.
11319 hardcode_action=unsupported
11320fi
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11322$as_echo "$hardcode_action" >&6; }
11323
11324if test "$hardcode_action" = relink ||
11325 test "$inherit_rpath" = yes; then
11326 # Fast installation is not supported
11327 enable_fast_install=no
11328elif test "$shlibpath_overrides_runpath" = yes ||
11329 test "$enable_shared" = no; then
11330 # Fast installation is not necessary
11331 enable_fast_install=needless
11332fi
11333
11334
11335
11336
11337
11338
11339 if test "x$enable_dlopen" != xyes; then
11340 enable_dlopen=unknown
11341 enable_dlopen_self=unknown
11342 enable_dlopen_self_static=unknown
11343else
11344 lt_cv_dlopen=no
11345 lt_cv_dlopen_libs=
11346
11347 case $host_os in
11348 beos*)
11349 lt_cv_dlopen="load_add_on"
11350 lt_cv_dlopen_libs=
11351 lt_cv_dlopen_self=yes
11352 ;;
11353
11354 mingw* | pw32* | cegcc*)
11355 lt_cv_dlopen="LoadLibrary"
11356 lt_cv_dlopen_libs=
11357 ;;
11358
11359 cygwin*)
11360 lt_cv_dlopen="dlopen"
11361 lt_cv_dlopen_libs=
11362 ;;
11363
11364 darwin*)
11365 # if libdl is installed we need to link against it
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11367$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011368if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011369 $as_echo_n "(cached) " >&6
11370else
11371 ac_check_lib_save_LIBS=$LIBS
11372LIBS="-ldl $LIBS"
11373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374/* end confdefs.h. */
11375
11376/* Override any GCC internal prototype to avoid an error.
11377 Use char because int might match the return type of a GCC
11378 builtin and then its argument prototype would still apply. */
11379#ifdef __cplusplus
11380extern "C"
11381#endif
11382char dlopen ();
11383int
11384main ()
11385{
11386return dlopen ();
11387 ;
11388 return 0;
11389}
11390_ACEOF
11391if ac_fn_c_try_link "$LINENO"; then :
11392 ac_cv_lib_dl_dlopen=yes
11393else
11394 ac_cv_lib_dl_dlopen=no
11395fi
11396rm -f core conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11398LIBS=$ac_check_lib_save_LIBS
11399fi
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11401$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011402if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11404else
11405
11406 lt_cv_dlopen="dyld"
11407 lt_cv_dlopen_libs=
11408 lt_cv_dlopen_self=yes
11409
11410fi
11411
11412 ;;
11413
11414 *)
11415 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Joseph Myers22e05272018-10-31 17:03:16 +000011416if test "x$ac_cv_func_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011417 lt_cv_dlopen="shl_load"
11418else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11420$as_echo_n "checking for shl_load in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011421if ${ac_cv_lib_dld_shl_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011422 $as_echo_n "(cached) " >&6
11423else
11424 ac_check_lib_save_LIBS=$LIBS
11425LIBS="-ldld $LIBS"
11426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427/* end confdefs.h. */
11428
11429/* Override any GCC internal prototype to avoid an error.
11430 Use char because int might match the return type of a GCC
11431 builtin and then its argument prototype would still apply. */
11432#ifdef __cplusplus
11433extern "C"
11434#endif
11435char shl_load ();
11436int
11437main ()
11438{
11439return shl_load ();
11440 ;
11441 return 0;
11442}
11443_ACEOF
11444if ac_fn_c_try_link "$LINENO"; then :
11445 ac_cv_lib_dld_shl_load=yes
11446else
11447 ac_cv_lib_dld_shl_load=no
11448fi
11449rm -f core conftest.err conftest.$ac_objext \
11450 conftest$ac_exeext conftest.$ac_ext
11451LIBS=$ac_check_lib_save_LIBS
11452fi
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11454$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011455if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011456 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11457else
11458 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Joseph Myers22e05272018-10-31 17:03:16 +000011459if test "x$ac_cv_func_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011460 lt_cv_dlopen="dlopen"
11461else
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11463$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011464if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011465 $as_echo_n "(cached) " >&6
11466else
11467 ac_check_lib_save_LIBS=$LIBS
11468LIBS="-ldl $LIBS"
11469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470/* end confdefs.h. */
11471
11472/* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11475#ifdef __cplusplus
11476extern "C"
11477#endif
11478char dlopen ();
11479int
11480main ()
11481{
11482return dlopen ();
11483 ;
11484 return 0;
11485}
11486_ACEOF
11487if ac_fn_c_try_link "$LINENO"; then :
11488 ac_cv_lib_dl_dlopen=yes
11489else
11490 ac_cv_lib_dl_dlopen=no
11491fi
11492rm -f core conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
11494LIBS=$ac_check_lib_save_LIBS
11495fi
11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11497$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011498if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11500else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11502$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011503if ${ac_cv_lib_svld_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011504 $as_echo_n "(cached) " >&6
11505else
11506 ac_check_lib_save_LIBS=$LIBS
11507LIBS="-lsvld $LIBS"
11508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509/* end confdefs.h. */
11510
11511/* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11514#ifdef __cplusplus
11515extern "C"
11516#endif
11517char dlopen ();
11518int
11519main ()
11520{
11521return dlopen ();
11522 ;
11523 return 0;
11524}
11525_ACEOF
11526if ac_fn_c_try_link "$LINENO"; then :
11527 ac_cv_lib_svld_dlopen=yes
11528else
11529 ac_cv_lib_svld_dlopen=no
11530fi
11531rm -f core conftest.err conftest.$ac_objext \
11532 conftest$ac_exeext conftest.$ac_ext
11533LIBS=$ac_check_lib_save_LIBS
11534fi
11535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11536$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011537if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11539else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11541$as_echo_n "checking for dld_link in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011542if ${ac_cv_lib_dld_dld_link+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011543 $as_echo_n "(cached) " >&6
11544else
11545 ac_check_lib_save_LIBS=$LIBS
11546LIBS="-ldld $LIBS"
11547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548/* end confdefs.h. */
11549
11550/* Override any GCC internal prototype to avoid an error.
11551 Use char because int might match the return type of a GCC
11552 builtin and then its argument prototype would still apply. */
11553#ifdef __cplusplus
11554extern "C"
11555#endif
11556char dld_link ();
11557int
11558main ()
11559{
11560return dld_link ();
11561 ;
11562 return 0;
11563}
11564_ACEOF
11565if ac_fn_c_try_link "$LINENO"; then :
11566 ac_cv_lib_dld_dld_link=yes
11567else
11568 ac_cv_lib_dld_dld_link=no
11569fi
11570rm -f core conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11572LIBS=$ac_check_lib_save_LIBS
11573fi
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11575$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011576if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011577 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11578fi
11579
11580
11581fi
11582
11583
11584fi
11585
11586
11587fi
11588
11589
11590fi
11591
11592
11593fi
11594
11595 ;;
11596 esac
11597
11598 if test "x$lt_cv_dlopen" != xno; then
11599 enable_dlopen=yes
11600 else
11601 enable_dlopen=no
11602 fi
11603
11604 case $lt_cv_dlopen in
11605 dlopen)
11606 save_CPPFLAGS="$CPPFLAGS"
11607 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11608
11609 save_LDFLAGS="$LDFLAGS"
11610 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11611
11612 save_LIBS="$LIBS"
11613 LIBS="$lt_cv_dlopen_libs $LIBS"
11614
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11616$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011617if ${lt_cv_dlopen_self+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011618 $as_echo_n "(cached) " >&6
11619else
11620 if test "$cross_compiling" = yes; then :
11621 lt_cv_dlopen_self=cross
11622else
11623 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11624 lt_status=$lt_dlunknown
11625 cat > conftest.$ac_ext <<_LT_EOF
Rainer Orth7d31d332019-04-14 09:38:01 +000011626#line 11626 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011627#include "confdefs.h"
11628
11629#if HAVE_DLFCN_H
11630#include <dlfcn.h>
11631#endif
11632
11633#include <stdio.h>
11634
11635#ifdef RTLD_GLOBAL
11636# define LT_DLGLOBAL RTLD_GLOBAL
11637#else
11638# ifdef DL_GLOBAL
11639# define LT_DLGLOBAL DL_GLOBAL
11640# else
11641# define LT_DLGLOBAL 0
11642# endif
11643#endif
11644
11645/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11646 find out it does not work in some platform. */
11647#ifndef LT_DLLAZY_OR_NOW
11648# ifdef RTLD_LAZY
11649# define LT_DLLAZY_OR_NOW RTLD_LAZY
11650# else
11651# ifdef DL_LAZY
11652# define LT_DLLAZY_OR_NOW DL_LAZY
11653# else
11654# ifdef RTLD_NOW
11655# define LT_DLLAZY_OR_NOW RTLD_NOW
11656# else
11657# ifdef DL_NOW
11658# define LT_DLLAZY_OR_NOW DL_NOW
11659# else
11660# define LT_DLLAZY_OR_NOW 0
11661# endif
11662# endif
11663# endif
11664# endif
11665#endif
11666
11667/* When -fvisbility=hidden is used, assume the code has been annotated
11668 correspondingly for the symbols needed. */
11669#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11670void fnord () __attribute__((visibility("default")));
11671#endif
11672
11673void fnord () { int i=42; }
11674int main ()
11675{
11676 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11677 int status = $lt_dlunknown;
11678
11679 if (self)
11680 {
11681 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11682 else
11683 {
11684 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11685 else puts (dlerror ());
11686 }
11687 /* dlclose (self); */
11688 }
11689 else
11690 puts (dlerror ());
11691
11692 return status;
11693}
11694_LT_EOF
11695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11696 (eval $ac_link) 2>&5
11697 ac_status=$?
11698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11699 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11700 (./conftest; exit; ) >&5 2>/dev/null
11701 lt_status=$?
11702 case x$lt_status in
11703 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11704 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11705 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11706 esac
11707 else :
11708 # compilation failed
11709 lt_cv_dlopen_self=no
11710 fi
11711fi
11712rm -fr conftest*
11713
11714
11715fi
11716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11717$as_echo "$lt_cv_dlopen_self" >&6; }
11718
11719 if test "x$lt_cv_dlopen_self" = xyes; then
11720 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11722$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011723if ${lt_cv_dlopen_self_static+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011724 $as_echo_n "(cached) " >&6
11725else
11726 if test "$cross_compiling" = yes; then :
11727 lt_cv_dlopen_self_static=cross
11728else
11729 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11730 lt_status=$lt_dlunknown
11731 cat > conftest.$ac_ext <<_LT_EOF
Rainer Orth7d31d332019-04-14 09:38:01 +000011732#line 11732 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011733#include "confdefs.h"
11734
11735#if HAVE_DLFCN_H
11736#include <dlfcn.h>
11737#endif
11738
11739#include <stdio.h>
11740
11741#ifdef RTLD_GLOBAL
11742# define LT_DLGLOBAL RTLD_GLOBAL
11743#else
11744# ifdef DL_GLOBAL
11745# define LT_DLGLOBAL DL_GLOBAL
11746# else
11747# define LT_DLGLOBAL 0
11748# endif
11749#endif
11750
11751/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11752 find out it does not work in some platform. */
11753#ifndef LT_DLLAZY_OR_NOW
11754# ifdef RTLD_LAZY
11755# define LT_DLLAZY_OR_NOW RTLD_LAZY
11756# else
11757# ifdef DL_LAZY
11758# define LT_DLLAZY_OR_NOW DL_LAZY
11759# else
11760# ifdef RTLD_NOW
11761# define LT_DLLAZY_OR_NOW RTLD_NOW
11762# else
11763# ifdef DL_NOW
11764# define LT_DLLAZY_OR_NOW DL_NOW
11765# else
11766# define LT_DLLAZY_OR_NOW 0
11767# endif
11768# endif
11769# endif
11770# endif
11771#endif
11772
11773/* When -fvisbility=hidden is used, assume the code has been annotated
11774 correspondingly for the symbols needed. */
11775#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11776void fnord () __attribute__((visibility("default")));
11777#endif
11778
11779void fnord () { int i=42; }
11780int main ()
11781{
11782 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11783 int status = $lt_dlunknown;
11784
11785 if (self)
11786 {
11787 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11788 else
11789 {
11790 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11791 else puts (dlerror ());
11792 }
11793 /* dlclose (self); */
11794 }
11795 else
11796 puts (dlerror ());
11797
11798 return status;
11799}
11800_LT_EOF
11801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11802 (eval $ac_link) 2>&5
11803 ac_status=$?
11804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11805 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11806 (./conftest; exit; ) >&5 2>/dev/null
11807 lt_status=$?
11808 case x$lt_status in
11809 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11810 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11811 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11812 esac
11813 else :
11814 # compilation failed
11815 lt_cv_dlopen_self_static=no
11816 fi
11817fi
11818rm -fr conftest*
11819
11820
11821fi
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11823$as_echo "$lt_cv_dlopen_self_static" >&6; }
11824 fi
11825
11826 CPPFLAGS="$save_CPPFLAGS"
11827 LDFLAGS="$save_LDFLAGS"
11828 LIBS="$save_LIBS"
11829 ;;
11830 esac
11831
11832 case $lt_cv_dlopen_self in
11833 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11834 *) enable_dlopen_self=unknown ;;
11835 esac
11836
11837 case $lt_cv_dlopen_self_static in
11838 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11839 *) enable_dlopen_self_static=unknown ;;
11840 esac
11841fi
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859striplib=
11860old_striplib=
11861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11862$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11863if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11864 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11865 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11867$as_echo "yes" >&6; }
11868else
11869# FIXME - insert some real tests, host_os isn't really good enough
11870 case $host_os in
11871 darwin*)
11872 if test -n "$STRIP" ; then
11873 striplib="$STRIP -x"
11874 old_striplib="$STRIP -S"
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11876$as_echo "yes" >&6; }
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879$as_echo "no" >&6; }
11880 fi
11881 ;;
11882 *)
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884$as_echo "no" >&6; }
11885 ;;
11886 esac
11887fi
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900 # Report which library types will actually be built
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11902$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11904$as_echo "$can_build_shared" >&6; }
11905
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11907$as_echo_n "checking whether to build shared libraries... " >&6; }
11908 test "$can_build_shared" = "no" && enable_shared=no
11909
11910 # On AIX, shared libraries and static libraries use the same namespace, and
11911 # are all built from PIC.
11912 case $host_os in
11913 aix3*)
11914 test "$enable_shared" = yes && enable_static=no
11915 if test -n "$RANLIB"; then
11916 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11917 postinstall_cmds='$RANLIB $lib'
11918 fi
11919 ;;
11920
11921 aix[4-9]*)
11922 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11923 test "$enable_shared" = yes && enable_static=no
11924 fi
11925 ;;
11926 esac
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11928$as_echo "$enable_shared" >&6; }
11929
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11931$as_echo_n "checking whether to build static libraries... " >&6; }
11932 # Make sure either enable_shared or enable_static is yes.
11933 test "$enable_shared" = yes || enable_static=yes
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11935$as_echo "$enable_static" >&6; }
11936
11937
11938
11939
11940fi
11941ac_ext=c
11942ac_cpp='$CPP $CPPFLAGS'
11943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11945ac_compiler_gnu=$ac_cv_c_compiler_gnu
11946
11947CC="$lt_save_CC"
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961 ac_config_commands="$ac_config_commands libtool"
11962
11963
11964
11965
11966# Only expand once:
11967
11968
11969
11970
11971
11972 gdc_save_DFLAGS=$GDCFLAGS
11973 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11974
11975
11976# Source file extension for D test sources.
11977ac_ext=d
11978
11979# Object file extension for compiled D test sources.
11980objext=o
11981objext_D=$objext
11982
11983# Code to be used in simple compile tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000011984lt_simple_compile_test_code="\
11985 module object;
11986 shared int some_variable = 0;
11987"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011988
11989# Code to be used in simple link tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000011990lt_simple_link_test_code="\
11991 module object;
11992 extern(C) int main() { return 0; }
11993"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011994
11995# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11996
11997
11998
11999
12000
12001
12002# If no C compiler was specified, use CC.
12003LTCC=${LTCC-"$CC"}
12004
12005# If no C compiler flags were specified, use CFLAGS.
12006LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12007
12008# Allow CC to be a program name with arguments.
12009compiler=$CC
12010
12011
12012# save warnings/boilerplate of simple test code
12013ac_outfile=conftest.$ac_objext
12014echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12015eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12016_lt_compiler_boilerplate=`cat conftest.err`
12017$RM conftest*
12018
12019ac_outfile=conftest.$ac_objext
12020echo "$lt_simple_link_test_code" >conftest.$ac_ext
12021eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12022_lt_linker_boilerplate=`cat conftest.err`
12023$RM -r conftest*
12024
12025
12026# Allow CC to be a program name with arguments.
12027lt_save_CC=$CC
12028lt_save_CFLAGS=$CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000012029lt_save_GCC=$GCC
12030GCC=yes
12031CC=${GDC-"gdc"}
Iain Buclawb4c522f2018-10-28 19:51:47 +000012032CFLAGS=$GDCFLAGS
12033compiler=$CC
12034compiler_D=$CC
12035LD_D=$CC
12036for cc_temp in $compiler""; do
12037 case $cc_temp in
12038 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12039 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12040 \-*) ;;
12041 *) break;;
12042 esac
12043done
12044cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12045
12046
12047# GDC did not exist at the time GCC didn't implicitly link libc in.
12048archive_cmds_need_lc_D=no
12049
12050old_archive_cmds_D=$old_archive_cmds
12051reload_flag_D=$reload_flag
12052reload_cmds_D=$reload_cmds
12053
12054## CAVEAT EMPTOR:
12055## There is no encapsulation within the following macros, do not change
12056## the running order or otherwise move them around unless you know exactly
12057## what you are doing...
12058if test -n "$compiler"; then
12059
12060lt_prog_compiler_no_builtin_flag_D=
12061
12062if test "$GCC" = yes; then
12063 case $cc_basename in
12064 nvcc*)
12065 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12066 *)
12067 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12068 esac
12069
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12071$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012072if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012073 $as_echo_n "(cached) " >&6
12074else
12075 lt_cv_prog_compiler_rtti_exceptions=no
12076 ac_outfile=conftest.$ac_objext
12077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12078 lt_compiler_flag="-fno-rtti -fno-exceptions"
12079 # Insert the option either (1) after the last *FLAGS variable, or
12080 # (2) before a word containing "conftest.", or (3) at the end.
12081 # Note that $ac_compile itself does not contain backslashes and begins
12082 # with a dollar sign (not a hyphen), so the echo should work correctly.
12083 # The option is referenced via a variable to avoid confusing sed.
12084 lt_compile=`echo "$ac_compile" | $SED \
12085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12087 -e 's:$: $lt_compiler_flag:'`
12088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12089 (eval "$lt_compile" 2>conftest.err)
12090 ac_status=$?
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 if (exit $ac_status) && test -s "$ac_outfile"; then
12094 # The compiler can only warn and ignore the option if not recognized
12095 # So say no if there are warnings other than the usual output.
12096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12098 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12099 lt_cv_prog_compiler_rtti_exceptions=yes
12100 fi
12101 fi
12102 $RM conftest*
12103
12104fi
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12106$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12107
12108if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12109 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12110else
12111 :
12112fi
12113
12114fi
12115
12116
12117
12118 lt_prog_compiler_wl_D=
12119lt_prog_compiler_pic_D=
12120lt_prog_compiler_static_D=
12121
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12123$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12124
12125 if test "$GCC" = yes; then
12126 lt_prog_compiler_wl_D='-Wl,'
12127 lt_prog_compiler_static_D='-static'
12128
12129 case $host_os in
12130 aix*)
12131 # All AIX code is PIC.
12132 if test "$host_cpu" = ia64; then
12133 # AIX 5 now supports IA64 processor
12134 lt_prog_compiler_static_D='-Bstatic'
12135 fi
12136 lt_prog_compiler_pic_D='-fPIC'
12137 ;;
12138
12139 amigaos*)
12140 case $host_cpu in
12141 powerpc)
12142 # see comment about AmigaOS4 .so support
12143 lt_prog_compiler_pic_D='-fPIC'
12144 ;;
12145 m68k)
12146 # FIXME: we need at least 68020 code to build shared libraries, but
12147 # adding the `-m68020' flag to GCC prevents building anything better,
12148 # like `-m68040'.
12149 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12150 ;;
12151 esac
12152 ;;
12153
12154 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12155 # PIC is the default for these OSes.
12156 ;;
12157
12158 mingw* | cygwin* | pw32* | os2* | cegcc*)
12159 # This hack is so that the source file can tell whether it is being
12160 # built for inclusion in a dll (and should export symbols for example).
12161 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12162 # (--disable-auto-import) libraries
12163 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12164 ;;
12165
12166 darwin* | rhapsody*)
12167 # PIC is the default on this platform
12168 # Common symbols not allowed in MH_DYLIB files
12169 lt_prog_compiler_pic_D='-fno-common'
12170 ;;
12171
12172 haiku*)
12173 # PIC is the default for Haiku.
12174 # The "-static" flag exists, but is broken.
12175 lt_prog_compiler_static_D=
12176 ;;
12177
12178 hpux*)
12179 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12180 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12181 # sets the default TLS model and affects inlining.
12182 case $host_cpu in
12183 hppa*64*)
12184 # +Z the default
12185 ;;
12186 *)
12187 lt_prog_compiler_pic_D='-fPIC'
12188 ;;
12189 esac
12190 ;;
12191
12192 interix[3-9]*)
12193 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12194 # Instead, we relocate shared libraries at runtime.
12195 ;;
12196
12197 msdosdjgpp*)
12198 # Just because we use GCC doesn't mean we suddenly get shared libraries
12199 # on systems that don't support them.
12200 lt_prog_compiler_can_build_shared_D=no
12201 enable_shared=no
12202 ;;
12203
12204 *nto* | *qnx*)
12205 # QNX uses GNU C++, but need to define -shared option too, otherwise
12206 # it will coredump.
12207 lt_prog_compiler_pic_D='-fPIC -shared'
12208 ;;
12209
12210 sysv4*MP*)
12211 if test -d /usr/nec; then
12212 lt_prog_compiler_pic_D=-Kconform_pic
12213 fi
12214 ;;
12215
12216 *)
12217 lt_prog_compiler_pic_D='-fPIC'
12218 ;;
12219 esac
12220
12221 case $cc_basename in
12222 nvcc*) # Cuda Compiler Driver 2.2
12223 lt_prog_compiler_wl_D='-Xlinker '
12224 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12225 ;;
12226 esac
12227 else
12228 # PORTME Check for flag to pass linker flags through the system compiler.
12229 case $host_os in
12230 aix*)
12231 lt_prog_compiler_wl_D='-Wl,'
12232 if test "$host_cpu" = ia64; then
12233 # AIX 5 now supports IA64 processor
12234 lt_prog_compiler_static_D='-Bstatic'
12235 else
12236 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12237 fi
12238 ;;
12239
12240 mingw* | cygwin* | pw32* | os2* | cegcc*)
12241 # This hack is so that the source file can tell whether it is being
12242 # built for inclusion in a dll (and should export symbols for example).
12243 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12244 ;;
12245
12246 hpux9* | hpux10* | hpux11*)
12247 lt_prog_compiler_wl_D='-Wl,'
12248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12249 # not for PA HP-UX.
12250 case $host_cpu in
12251 hppa*64*|ia64*)
12252 # +Z the default
12253 ;;
12254 *)
12255 lt_prog_compiler_pic_D='+Z'
12256 ;;
12257 esac
12258 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12259 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12260 ;;
12261
12262 irix5* | irix6* | nonstopux*)
12263 lt_prog_compiler_wl_D='-Wl,'
12264 # PIC (with -KPIC) is the default.
12265 lt_prog_compiler_static_D='-non_shared'
12266 ;;
12267
12268 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12269 case $cc_basename in
12270 # old Intel for x86_64 which still supported -KPIC.
12271 ecc*)
12272 lt_prog_compiler_wl_D='-Wl,'
12273 lt_prog_compiler_pic_D='-KPIC'
12274 lt_prog_compiler_static_D='-static'
12275 ;;
12276 # icc used to be incompatible with GCC.
12277 # ICC 10 doesn't accept -KPIC any more.
12278 icc* | ifort*)
12279 lt_prog_compiler_wl_D='-Wl,'
12280 lt_prog_compiler_pic_D='-fPIC'
12281 lt_prog_compiler_static_D='-static'
12282 ;;
12283 # Lahey Fortran 8.1.
12284 lf95*)
12285 lt_prog_compiler_wl_D='-Wl,'
12286 lt_prog_compiler_pic_D='--shared'
12287 lt_prog_compiler_static_D='--static'
12288 ;;
12289 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12290 # Portland Group compilers (*not* the Pentium gcc compiler,
12291 # which looks to be a dead project)
12292 lt_prog_compiler_wl_D='-Wl,'
12293 lt_prog_compiler_pic_D='-fpic'
12294 lt_prog_compiler_static_D='-Bstatic'
12295 ;;
12296 ccc*)
12297 lt_prog_compiler_wl_D='-Wl,'
12298 # All Alpha code is PIC.
12299 lt_prog_compiler_static_D='-non_shared'
12300 ;;
12301 xl* | bgxl* | bgf* | mpixl*)
12302 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12303 lt_prog_compiler_wl_D='-Wl,'
12304 lt_prog_compiler_pic_D='-qpic'
12305 lt_prog_compiler_static_D='-qstaticlink'
12306 ;;
12307 *)
12308 case `$CC -V 2>&1 | sed 5q` in
12309 *Sun\ F* | *Sun*Fortran*)
12310 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12311 lt_prog_compiler_pic_D='-KPIC'
12312 lt_prog_compiler_static_D='-Bstatic'
12313 lt_prog_compiler_wl_D=''
12314 ;;
12315 *Sun\ C*)
12316 # Sun C 5.9
12317 lt_prog_compiler_pic_D='-KPIC'
12318 lt_prog_compiler_static_D='-Bstatic'
12319 lt_prog_compiler_wl_D='-Wl,'
12320 ;;
12321 esac
12322 ;;
12323 esac
12324 ;;
12325
12326 newsos6)
12327 lt_prog_compiler_pic_D='-KPIC'
12328 lt_prog_compiler_static_D='-Bstatic'
12329 ;;
12330
12331 *nto* | *qnx*)
12332 # QNX uses GNU C++, but need to define -shared option too, otherwise
12333 # it will coredump.
12334 lt_prog_compiler_pic_D='-fPIC -shared'
12335 ;;
12336
12337 osf3* | osf4* | osf5*)
12338 lt_prog_compiler_wl_D='-Wl,'
12339 # All OSF/1 code is PIC.
12340 lt_prog_compiler_static_D='-non_shared'
12341 ;;
12342
12343 rdos*)
12344 lt_prog_compiler_static_D='-non_shared'
12345 ;;
12346
12347 solaris*)
12348 lt_prog_compiler_pic_D='-KPIC'
12349 lt_prog_compiler_static_D='-Bstatic'
12350 case $cc_basename in
12351 f77* | f90* | f95*)
12352 lt_prog_compiler_wl_D='-Qoption ld ';;
12353 *)
12354 lt_prog_compiler_wl_D='-Wl,';;
12355 esac
12356 ;;
12357
12358 sunos4*)
12359 lt_prog_compiler_wl_D='-Qoption ld '
12360 lt_prog_compiler_pic_D='-PIC'
12361 lt_prog_compiler_static_D='-Bstatic'
12362 ;;
12363
12364 sysv4 | sysv4.2uw2* | sysv4.3*)
12365 lt_prog_compiler_wl_D='-Wl,'
12366 lt_prog_compiler_pic_D='-KPIC'
12367 lt_prog_compiler_static_D='-Bstatic'
12368 ;;
12369
12370 sysv4*MP*)
12371 if test -d /usr/nec ;then
12372 lt_prog_compiler_pic_D='-Kconform_pic'
12373 lt_prog_compiler_static_D='-Bstatic'
12374 fi
12375 ;;
12376
12377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12378 lt_prog_compiler_wl_D='-Wl,'
12379 lt_prog_compiler_pic_D='-KPIC'
12380 lt_prog_compiler_static_D='-Bstatic'
12381 ;;
12382
12383 unicos*)
12384 lt_prog_compiler_wl_D='-Wl,'
12385 lt_prog_compiler_can_build_shared_D=no
12386 ;;
12387
12388 uts4*)
12389 lt_prog_compiler_pic_D='-pic'
12390 lt_prog_compiler_static_D='-Bstatic'
12391 ;;
12392
12393 *)
12394 lt_prog_compiler_can_build_shared_D=no
12395 ;;
12396 esac
12397 fi
12398
12399case $host_os in
12400 # For platforms which do not support PIC, -DPIC is meaningless:
12401 *djgpp*)
12402 lt_prog_compiler_pic_D=
12403 ;;
12404 *)
12405 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12406 ;;
12407esac
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12409$as_echo "$lt_prog_compiler_pic_D" >&6; }
12410
12411
12412
12413#
12414# Check to make sure the PIC flag actually works.
12415#
12416if test -n "$lt_prog_compiler_pic_D"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12418$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012419if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012420 $as_echo_n "(cached) " >&6
12421else
12422 lt_cv_prog_compiler_pic_works_D=no
12423 ac_outfile=conftest.$ac_objext
12424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12425 lt_compiler_flag="$lt_prog_compiler_pic_D"
12426 # Insert the option either (1) after the last *FLAGS variable, or
12427 # (2) before a word containing "conftest.", or (3) at the end.
12428 # Note that $ac_compile itself does not contain backslashes and begins
12429 # with a dollar sign (not a hyphen), so the echo should work correctly.
12430 # The option is referenced via a variable to avoid confusing sed.
12431 lt_compile=`echo "$ac_compile" | $SED \
12432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12434 -e 's:$: $lt_compiler_flag:'`
12435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12436 (eval "$lt_compile" 2>conftest.err)
12437 ac_status=$?
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 if (exit $ac_status) && test -s "$ac_outfile"; then
12441 # The compiler can only warn and ignore the option if not recognized
12442 # So say no if there are warnings other than the usual output.
12443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12446 lt_cv_prog_compiler_pic_works_D=yes
12447 fi
12448 fi
12449 $RM conftest*
12450
12451fi
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12453$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12454
12455if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12456 case $lt_prog_compiler_pic_D in
12457 "" | " "*) ;;
12458 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12459 esac
12460else
12461 lt_prog_compiler_pic_D=
12462 lt_prog_compiler_can_build_shared_D=no
12463fi
12464
12465fi
12466
12467
12468
12469#
12470# Check to make sure the static flag actually works.
12471#
12472wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12474$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012475if ${lt_cv_prog_compiler_static_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012476 $as_echo_n "(cached) " >&6
12477else
12478 lt_cv_prog_compiler_static_works_D=no
12479 save_LDFLAGS="$LDFLAGS"
12480 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12481 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12482 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12483 # The linker can only warn and ignore the option if not recognized
12484 # So say no if there are warnings
12485 if test -s conftest.err; then
12486 # Append any errors to the config.log.
12487 cat conftest.err 1>&5
12488 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12490 if diff conftest.exp conftest.er2 >/dev/null; then
12491 lt_cv_prog_compiler_static_works_D=yes
12492 fi
12493 else
12494 lt_cv_prog_compiler_static_works_D=yes
12495 fi
12496 fi
12497 $RM -r conftest*
12498 LDFLAGS="$save_LDFLAGS"
12499
12500fi
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12502$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12503
12504if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12505 :
12506else
12507 lt_prog_compiler_static_D=
12508fi
12509
12510
12511
12512
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12514$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012515if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012516 $as_echo_n "(cached) " >&6
12517else
12518 lt_cv_prog_compiler_c_o_D=no
12519 $RM -r conftest 2>/dev/null
12520 mkdir conftest
12521 cd conftest
12522 mkdir out
12523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12524
12525 lt_compiler_flag="-o out/conftest2.$ac_objext"
12526 # Insert the option either (1) after the last *FLAGS variable, or
12527 # (2) before a word containing "conftest.", or (3) at the end.
12528 # Note that $ac_compile itself does not contain backslashes and begins
12529 # with a dollar sign (not a hyphen), so the echo should work correctly.
12530 lt_compile=`echo "$ac_compile" | $SED \
12531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12533 -e 's:$: $lt_compiler_flag:'`
12534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12535 (eval "$lt_compile" 2>out/conftest.err)
12536 ac_status=$?
12537 cat out/conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12540 then
12541 # The compiler can only warn and ignore the option if not recognized
12542 # So say no if there are warnings
12543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12546 lt_cv_prog_compiler_c_o_D=yes
12547 fi
12548 fi
12549 chmod u+w . 2>&5
12550 $RM conftest*
12551 # SGI C++ compiler will create directory out/ii_files/ for
12552 # template instantiation
12553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12554 $RM out/* && rmdir out
12555 cd ..
12556 $RM -r conftest
12557 $RM conftest*
12558
12559fi
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12561$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12562
12563
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12566$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012567if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012568 $as_echo_n "(cached) " >&6
12569else
12570 lt_cv_prog_compiler_c_o_D=no
12571 $RM -r conftest 2>/dev/null
12572 mkdir conftest
12573 cd conftest
12574 mkdir out
12575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12576
12577 lt_compiler_flag="-o out/conftest2.$ac_objext"
12578 # Insert the option either (1) after the last *FLAGS variable, or
12579 # (2) before a word containing "conftest.", or (3) at the end.
12580 # Note that $ac_compile itself does not contain backslashes and begins
12581 # with a dollar sign (not a hyphen), so the echo should work correctly.
12582 lt_compile=`echo "$ac_compile" | $SED \
12583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12585 -e 's:$: $lt_compiler_flag:'`
12586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12587 (eval "$lt_compile" 2>out/conftest.err)
12588 ac_status=$?
12589 cat out/conftest.err >&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12592 then
12593 # The compiler can only warn and ignore the option if not recognized
12594 # So say no if there are warnings
12595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12598 lt_cv_prog_compiler_c_o_D=yes
12599 fi
12600 fi
12601 chmod u+w . 2>&5
12602 $RM conftest*
12603 # SGI C++ compiler will create directory out/ii_files/ for
12604 # template instantiation
12605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12606 $RM out/* && rmdir out
12607 cd ..
12608 $RM -r conftest
12609 $RM conftest*
12610
12611fi
12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12613$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12614
12615
12616
12617
12618hard_links="nottested"
12619if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12620 # do not overwrite the value of need_locks provided by the user
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12622$as_echo_n "checking if we can lock with hard links... " >&6; }
12623 hard_links=yes
12624 $RM conftest*
12625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12626 touch conftest.a
12627 ln conftest.a conftest.b 2>&5 || hard_links=no
12628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12630$as_echo "$hard_links" >&6; }
12631 if test "$hard_links" = no; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12633$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12634 need_locks=warn
12635 fi
12636else
12637 need_locks=no
12638fi
12639
12640
12641
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12643$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12644
12645 runpath_var=
12646 allow_undefined_flag_D=
12647 always_export_symbols_D=no
12648 archive_cmds_D=
12649 archive_expsym_cmds_D=
12650 compiler_needs_object_D=no
12651 enable_shared_with_static_runtimes_D=no
12652 export_dynamic_flag_spec_D=
12653 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12654 hardcode_automatic_D=no
12655 hardcode_direct_D=no
12656 hardcode_direct_absolute_D=no
12657 hardcode_libdir_flag_spec_D=
12658 hardcode_libdir_flag_spec_ld_D=
12659 hardcode_libdir_separator_D=
12660 hardcode_minus_L_D=no
12661 hardcode_shlibpath_var_D=unsupported
12662 inherit_rpath_D=no
12663 link_all_deplibs_D=unknown
12664 module_cmds_D=
12665 module_expsym_cmds_D=
12666 old_archive_from_new_cmds_D=
12667 old_archive_from_expsyms_cmds_D=
12668 thread_safe_flag_spec_D=
12669 whole_archive_flag_spec_D=
12670 # include_expsyms should be a list of space-separated symbols to be *always*
12671 # included in the symbol list
12672 include_expsyms_D=
12673 # exclude_expsyms can be an extended regexp of symbols to exclude
12674 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12675 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12676 # as well as any symbol that contains `d'.
12677 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12678 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12679 # platforms (ab)use it in PIC code, but their linkers get confused if
12680 # the symbol is explicitly referenced. Since portable code cannot
12681 # rely on this symbol name, it's probably fine to never include it in
12682 # preloaded symbol tables.
12683 # Exclude shared library initialization/finalization symbols.
12684 extract_expsyms_cmds=
12685
12686 case $host_os in
12687 cygwin* | mingw* | pw32* | cegcc*)
12688 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12689 # When not using gcc, we currently assume that we are using
12690 # Microsoft Visual C++.
12691 if test "$GCC" != yes; then
12692 with_gnu_ld=no
12693 fi
12694 ;;
12695 interix*)
12696 # we just hope/assume this is gcc and not c89 (= MSVC++)
12697 with_gnu_ld=yes
12698 ;;
12699 openbsd*)
12700 with_gnu_ld=no
12701 ;;
12702 esac
12703
12704 ld_shlibs_D=yes
12705
12706 # On some targets, GNU ld is compatible enough with the native linker
12707 # that we're better off using the native interface for both.
12708 lt_use_gnu_ld_interface=no
12709 if test "$with_gnu_ld" = yes; then
12710 case $host_os in
12711 aix*)
12712 # The AIX port of GNU ld has always aspired to compatibility
12713 # with the native linker. However, as the warning in the GNU ld
12714 # block says, versions before 2.19.5* couldn't really create working
12715 # shared libraries, regardless of the interface used.
12716 case `$LD -v 2>&1` in
12717 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12718 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12719 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12720 *)
12721 lt_use_gnu_ld_interface=yes
12722 ;;
12723 esac
12724 ;;
12725 *)
12726 lt_use_gnu_ld_interface=yes
12727 ;;
12728 esac
12729 fi
12730
12731 if test "$lt_use_gnu_ld_interface" = yes; then
12732 # If archive_cmds runs LD, not CC, wlarc should be empty
12733 wlarc='${wl}'
12734
12735 # Set some defaults for GNU ld with shared library support. These
12736 # are reset later if shared libraries are not supported. Putting them
12737 # here allows them to be overridden if necessary.
12738 runpath_var=LD_RUN_PATH
12739 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12740 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12741 # ancient GNU ld didn't support --whole-archive et. al.
12742 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12743 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12744 else
12745 whole_archive_flag_spec_D=
12746 fi
12747 supports_anon_versioning=no
12748 case `$LD -v 2>&1` in
12749 *GNU\ gold*) supports_anon_versioning=yes ;;
12750 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12751 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12752 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12753 *\ 2.11.*) ;; # other 2.11 versions
12754 *) supports_anon_versioning=yes ;;
12755 esac
12756
12757 # See if GNU ld supports shared libraries.
12758 case $host_os in
12759 aix[3-9]*)
12760 # On AIX/PPC, the GNU linker is very broken
12761 if test "$host_cpu" != ia64; then
12762 ld_shlibs_D=no
12763 cat <<_LT_EOF 1>&2
12764
12765*** Warning: the GNU linker, at least up to release 2.19, is reported
12766*** to be unable to reliably create shared libraries on AIX.
12767*** Therefore, libtool is disabling shared libraries support. If you
12768*** really care for shared libraries, you may want to install binutils
12769*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12770*** You will then need to restart the configuration process.
12771
12772_LT_EOF
12773 fi
12774 ;;
12775
12776 amigaos*)
12777 case $host_cpu in
12778 powerpc)
12779 # see comment about AmigaOS4 .so support
12780 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12781 archive_expsym_cmds_D=''
12782 ;;
12783 m68k)
12784 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)'
12785 hardcode_libdir_flag_spec_D='-L$libdir'
12786 hardcode_minus_L_D=yes
12787 ;;
12788 esac
12789 ;;
12790
12791 beos*)
12792 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12793 allow_undefined_flag_D=unsupported
12794 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12795 # support --undefined. This deserves some investigation. FIXME
12796 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12797 else
12798 ld_shlibs_D=no
12799 fi
12800 ;;
12801
12802 cygwin* | mingw* | pw32* | cegcc*)
12803 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12804 # as there is no search path for DLLs.
12805 hardcode_libdir_flag_spec_D='-L$libdir'
12806 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12807 allow_undefined_flag_D=unsupported
12808 always_export_symbols_D=no
12809 enable_shared_with_static_runtimes_D=yes
12810 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12811
12812 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12813 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12814 # If the export-symbols file already is a .def file (1st line
12815 # is EXPORTS), use it as is; otherwise, prepend...
12816 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12817 cp $export_symbols $output_objdir/$soname.def;
12818 else
12819 echo EXPORTS > $output_objdir/$soname.def;
12820 cat $export_symbols >> $output_objdir/$soname.def;
12821 fi~
12822 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12823 else
12824 ld_shlibs_D=no
12825 fi
12826 ;;
12827
12828 haiku*)
12829 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12830 link_all_deplibs_D=yes
12831 ;;
12832
12833 interix[3-9]*)
12834 hardcode_direct_D=no
12835 hardcode_shlibpath_var_D=no
12836 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12837 export_dynamic_flag_spec_D='${wl}-E'
12838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12839 # Instead, shared libraries are loaded at an image base (0x10000000 by
12840 # default) and relocated if they conflict, which is a slow very memory
12841 # consuming and fragmenting process. To avoid this, we pick a random,
12842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12843 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12844 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'
12845 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'
12846 ;;
12847
12848 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12849 tmp_diet=no
12850 if test "$host_os" = linux-dietlibc; then
12851 case $cc_basename in
12852 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12853 esac
12854 fi
12855 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12856 && test "$tmp_diet" = no
12857 then
12858 tmp_addflag=' $pic_flag'
12859 tmp_sharedflag='-shared'
12860 case $cc_basename,$host_cpu in
12861 pgcc*) # Portland Group C compiler
12862 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'
12863 tmp_addflag=' $pic_flag'
12864 ;;
12865 pgf77* | pgf90* | pgf95* | pgfortran*)
12866 # Portland Group f77 and f90 compilers
12867 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'
12868 tmp_addflag=' $pic_flag -Mnomain' ;;
12869 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12870 tmp_addflag=' -i_dynamic' ;;
12871 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12872 tmp_addflag=' -i_dynamic -nofor_main' ;;
12873 ifc* | ifort*) # Intel Fortran compiler
12874 tmp_addflag=' -nofor_main' ;;
12875 lf95*) # Lahey Fortran 8.1
12876 whole_archive_flag_spec_D=
12877 tmp_sharedflag='--shared' ;;
12878 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12879 tmp_sharedflag='-qmkshrobj'
12880 tmp_addflag= ;;
12881 nvcc*) # Cuda Compiler Driver 2.2
12882 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'
12883 compiler_needs_object_D=yes
12884 ;;
12885 esac
12886 case `$CC -V 2>&1 | sed 5q` in
12887 *Sun\ C*) # Sun C 5.9
12888 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'
12889 compiler_needs_object_D=yes
12890 tmp_sharedflag='-G' ;;
12891 *Sun\ F*) # Sun Fortran 8.3
12892 tmp_sharedflag='-G' ;;
12893 esac
12894 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12895
12896 if test "x$supports_anon_versioning" = xyes; then
12897 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12899 echo "local: *; };" >> $output_objdir/$libname.ver~
12900 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12901 fi
12902
12903 case $cc_basename in
12904 xlf* | bgf* | bgxlf* | mpixlf*)
12905 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12906 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12907 hardcode_libdir_flag_spec_D=
12908 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12909 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12910 if test "x$supports_anon_versioning" = xyes; then
12911 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12912 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12913 echo "local: *; };" >> $output_objdir/$libname.ver~
12914 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12915 fi
12916 ;;
12917 esac
12918 else
12919 ld_shlibs_D=no
12920 fi
12921 ;;
12922
12923 netbsd*)
12924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12925 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12926 wlarc=
12927 else
12928 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12929 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12930 fi
12931 ;;
12932
12933 solaris*)
12934 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12935 ld_shlibs_D=no
12936 cat <<_LT_EOF 1>&2
12937
12938*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12939*** create shared libraries on Solaris systems. Therefore, libtool
12940*** is disabling shared libraries support. We urge you to upgrade GNU
12941*** binutils to release 2.9.1 or newer. Another option is to modify
12942*** your PATH or compiler configuration so that the native linker is
12943*** used, and then restart.
12944
12945_LT_EOF
12946 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12947 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12948 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12949 else
12950 ld_shlibs_D=no
12951 fi
12952 ;;
12953
12954 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12955 case `$LD -v 2>&1` in
12956 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12957 ld_shlibs_D=no
12958 cat <<_LT_EOF 1>&2
12959
12960*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12961*** reliably create shared libraries on SCO systems. Therefore, libtool
12962*** is disabling shared libraries support. We urge you to upgrade GNU
12963*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12964*** your PATH or compiler configuration so that the native linker is
12965*** used, and then restart.
12966
12967_LT_EOF
12968 ;;
12969 *)
12970 # For security reasons, it is highly recommended that you always
12971 # use absolute paths for naming shared libraries, and exclude the
12972 # DT_RUNPATH tag from executables and libraries. But doing so
12973 # requires that you compile everything twice, which is a pain.
12974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12975 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12976 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12977 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12978 else
12979 ld_shlibs_D=no
12980 fi
12981 ;;
12982 esac
12983 ;;
12984
12985 sunos4*)
12986 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12987 wlarc=
12988 hardcode_direct_D=yes
12989 hardcode_shlibpath_var_D=no
12990 ;;
12991
12992 *)
12993 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12994 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12996 else
12997 ld_shlibs_D=no
12998 fi
12999 ;;
13000 esac
13001
13002 if test "$ld_shlibs_D" = no; then
13003 runpath_var=
13004 hardcode_libdir_flag_spec_D=
13005 export_dynamic_flag_spec_D=
13006 whole_archive_flag_spec_D=
13007 fi
13008 else
13009 # PORTME fill in a description of your system's linker (not GNU ld)
13010 case $host_os in
13011 aix3*)
13012 allow_undefined_flag_D=unsupported
13013 always_export_symbols_D=yes
13014 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'
13015 # Note: this linker hardcodes the directories in LIBPATH if there
13016 # are no directories specified by -L.
13017 hardcode_minus_L_D=yes
13018 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13019 # Neither direct hardcoding nor static linking is supported with a
13020 # broken collect2.
13021 hardcode_direct_D=unsupported
13022 fi
13023 ;;
13024
13025 aix[4-9]*)
13026 if test "$host_cpu" = ia64; then
13027 # On IA64, the linker does run time linking by default, so we don't
13028 # have to do anything special.
13029 aix_use_runtimelinking=no
13030 exp_sym_flag='-Bexport'
13031 no_entry_flag=""
13032 else
13033 # If we're using GNU nm, then we don't want the "-C" option.
13034 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13035 # Also, AIX nm treats weak defined symbols like other global
13036 # defined symbols, whereas GNU nm marks them as "W".
13037 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13038 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'
13039 else
13040 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'
13041 fi
13042 aix_use_runtimelinking=no
13043
13044 # Test if we are trying to use run time linking or normal
13045 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13046 # need to do runtime linking.
13047 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13048 for ld_flag in $LDFLAGS; do
13049 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13050 aix_use_runtimelinking=yes
13051 break
13052 fi
13053 done
13054 ;;
13055 esac
13056
13057 exp_sym_flag='-bexport'
13058 no_entry_flag='-bnoentry'
13059 fi
13060
13061 # When large executables or shared objects are built, AIX ld can
13062 # have problems creating the table of contents. If linking a library
13063 # or program results in "error TOC overflow" add -mminimal-toc to
13064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13066
13067 archive_cmds_D=''
13068 hardcode_direct_D=yes
13069 hardcode_direct_absolute_D=yes
13070 hardcode_libdir_separator_D=':'
13071 link_all_deplibs_D=yes
13072 file_list_spec_D='${wl}-f,'
13073
13074 if test "$GCC" = yes; then
13075 case $host_os in aix4.[012]|aix4.[012].*)
13076 # We only want to do this on AIX 4.2 and lower, the check
13077 # below for broken collect2 doesn't work under 4.3+
13078 collect2name=`${CC} -print-prog-name=collect2`
13079 if test -f "$collect2name" &&
13080 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13081 then
13082 # We have reworked collect2
13083 :
13084 else
13085 # We have old collect2
13086 hardcode_direct_D=unsupported
13087 # It fails to find uninstalled libraries when the uninstalled
13088 # path is not listed in the libpath. Setting hardcode_minus_L
13089 # to unsupported forces relinking
13090 hardcode_minus_L_D=yes
13091 hardcode_libdir_flag_spec_D='-L$libdir'
13092 hardcode_libdir_separator_D=
13093 fi
13094 ;;
13095 esac
13096 shared_flag='-shared'
13097 if test "$aix_use_runtimelinking" = yes; then
13098 shared_flag="$shared_flag "'${wl}-G'
13099 fi
13100 else
13101 # not using gcc
13102 if test "$host_cpu" = ia64; then
13103 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13104 # chokes on -Wl,-G. The following line is correct:
13105 shared_flag='-G'
13106 else
13107 if test "$aix_use_runtimelinking" = yes; then
13108 shared_flag='${wl}-G'
13109 else
13110 shared_flag='${wl}-bM:SRE'
13111 fi
13112 fi
13113 fi
13114
13115 export_dynamic_flag_spec_D='${wl}-bexpall'
13116 # It seems that -bexpall does not export symbols beginning with
13117 # underscore (_), so it is better to generate a list of symbols to export.
13118 always_export_symbols_D=yes
13119 if test "$aix_use_runtimelinking" = yes; then
13120 # Warning - without using the other runtime loading flags (-brtl),
13121 # -berok will link without error, but may produce a broken library.
13122 allow_undefined_flag_D='-berok'
13123 # Determine the default libpath from the value encoded in an
13124 # empty executable.
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126/* end confdefs.h. */
13127
13128int
13129main ()
13130{
13131
13132 ;
13133 return 0;
13134}
13135_ACEOF
13136if ac_fn_c_try_link "$LINENO"; then :
13137
13138lt_aix_libpath_sed='
13139 /Import File Strings/,/^$/ {
13140 /^0/ {
13141 s/^0 *\(.*\)$/\1/
13142 p
13143 }
13144 }'
13145aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13146# Check for a 64-bit object if we didn't find anything.
13147if test -z "$aix_libpath"; then
13148 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13149fi
13150fi
13151rm -f core conftest.err conftest.$ac_objext \
13152 conftest$ac_exeext conftest.$ac_ext
13153if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13154
13155 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13156 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"
13157 else
13158 if test "$host_cpu" = ia64; then
13159 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13160 allow_undefined_flag_D="-z nodefs"
13161 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"
13162 else
13163 # Determine the default libpath from the value encoded in an
13164 # empty executable.
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166/* end confdefs.h. */
13167
13168int
13169main ()
13170{
13171
13172 ;
13173 return 0;
13174}
13175_ACEOF
13176if ac_fn_c_try_link "$LINENO"; then :
13177
13178lt_aix_libpath_sed='
13179 /Import File Strings/,/^$/ {
13180 /^0/ {
13181 s/^0 *\(.*\)$/\1/
13182 p
13183 }
13184 }'
13185aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13186# Check for a 64-bit object if we didn't find anything.
13187if test -z "$aix_libpath"; then
13188 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13189fi
13190fi
13191rm -f core conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13193if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13194
13195 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13196 # Warning - without using the other run time loading flags,
13197 # -berok will link without error, but may produce a broken library.
13198 no_undefined_flag_D=' ${wl}-bernotok'
13199 allow_undefined_flag_D=' ${wl}-berok'
13200 if test "$with_gnu_ld" = yes; then
13201 # We only use this code for GNU lds that support --whole-archive.
13202 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13203 else
13204 # Exported symbols can be pulled into shared objects from archives
13205 whole_archive_flag_spec_D='$convenience'
13206 fi
13207 archive_cmds_need_lc_D=yes
13208 # This is similar to how AIX traditionally builds its shared libraries.
13209 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'
13210 fi
13211 fi
13212 ;;
13213
13214 amigaos*)
13215 case $host_cpu in
13216 powerpc)
13217 # see comment about AmigaOS4 .so support
13218 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13219 archive_expsym_cmds_D=''
13220 ;;
13221 m68k)
13222 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)'
13223 hardcode_libdir_flag_spec_D='-L$libdir'
13224 hardcode_minus_L_D=yes
13225 ;;
13226 esac
13227 ;;
13228
13229 bsdi[45]*)
13230 export_dynamic_flag_spec_D=-rdynamic
13231 ;;
13232
13233 cygwin* | mingw* | pw32* | cegcc*)
13234 # When not using gcc, we currently assume that we are using
13235 # Microsoft Visual C++.
13236 # hardcode_libdir_flag_spec is actually meaningless, as there is
13237 # no search path for DLLs.
13238 hardcode_libdir_flag_spec_D=' '
13239 allow_undefined_flag_D=unsupported
13240 # Tell ltmain to make .lib files, not .a files.
13241 libext=lib
13242 # Tell ltmain to make .dll files, not .so files.
13243 shrext_cmds=".dll"
13244 # FIXME: Setting linknames here is a bad hack.
13245 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13246 # The linker will automatically build a .lib file if we build a DLL.
13247 old_archive_from_new_cmds_D='true'
13248 # FIXME: Should let the user specify the lib program.
13249 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13250 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13251 enable_shared_with_static_runtimes_D=yes
13252 ;;
13253
13254 darwin* | rhapsody*)
13255
13256
13257 archive_cmds_need_lc_D=no
13258 hardcode_direct_D=no
13259 hardcode_automatic_D=yes
13260 hardcode_shlibpath_var_D=unsupported
13261 if test "$lt_cv_ld_force_load" = "yes"; then
13262 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\"`'
13263 else
13264 whole_archive_flag_spec_D=''
13265 fi
13266 link_all_deplibs_D=yes
13267 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13268 case $cc_basename in
13269 ifort*) _lt_dar_can_shared=yes ;;
13270 *) _lt_dar_can_shared=$GCC ;;
13271 esac
13272 if test "$_lt_dar_can_shared" = "yes"; then
13273 output_verbose_link_cmd=func_echo_all
13274 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}"
13275 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13276 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}"
13277 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}"
13278
13279 else
13280 ld_shlibs_D=no
13281 fi
13282
13283 ;;
13284
13285 dgux*)
13286 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13287 hardcode_libdir_flag_spec_D='-L$libdir'
13288 hardcode_shlibpath_var_D=no
13289 ;;
13290
13291 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13292 # support. Future versions do this automatically, but an explicit c++rt0.o
13293 # does not break anything, and helps significantly (at the cost of a little
13294 # extra space).
13295 freebsd2.2*)
13296 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13297 hardcode_libdir_flag_spec_D='-R$libdir'
13298 hardcode_direct_D=yes
13299 hardcode_shlibpath_var_D=no
13300 ;;
13301
13302 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13303 freebsd2.*)
13304 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13305 hardcode_direct_D=yes
13306 hardcode_minus_L_D=yes
13307 hardcode_shlibpath_var_D=no
13308 ;;
13309
13310 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13311 freebsd* | dragonfly*)
13312 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13313 hardcode_libdir_flag_spec_D='-R$libdir'
13314 hardcode_direct_D=yes
13315 hardcode_shlibpath_var_D=no
13316 ;;
13317
13318 hpux9*)
13319 if test "$GCC" = yes; then
13320 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'
13321 else
13322 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'
13323 fi
13324 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13325 hardcode_libdir_separator_D=:
13326 hardcode_direct_D=yes
13327
13328 # hardcode_minus_L: Not really in the search PATH,
13329 # but as the default location of the library.
13330 hardcode_minus_L_D=yes
13331 export_dynamic_flag_spec_D='${wl}-E'
13332 ;;
13333
13334 hpux10*)
13335 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13336 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13337 else
13338 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13339 fi
13340 if test "$with_gnu_ld" = no; then
13341 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13342 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13343 hardcode_libdir_separator_D=:
13344 hardcode_direct_D=yes
13345 hardcode_direct_absolute_D=yes
13346 export_dynamic_flag_spec_D='${wl}-E'
13347 # hardcode_minus_L: Not really in the search PATH,
13348 # but as the default location of the library.
13349 hardcode_minus_L_D=yes
13350 fi
13351 ;;
13352
13353 hpux11*)
13354 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13355 case $host_cpu in
13356 hppa*64*)
13357 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13358 ;;
13359 ia64*)
13360 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13361 ;;
13362 *)
13363 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13364 ;;
13365 esac
13366 else
13367 case $host_cpu in
13368 hppa*64*)
13369 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13370 ;;
13371 ia64*)
13372 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13373 ;;
13374 *)
13375 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13376 ;;
13377 esac
13378 fi
13379 if test "$with_gnu_ld" = no; then
13380 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13381 hardcode_libdir_separator_D=:
13382
13383 case $host_cpu in
13384 hppa*64*|ia64*)
13385 hardcode_direct_D=no
13386 hardcode_shlibpath_var_D=no
13387 ;;
13388 *)
13389 hardcode_direct_D=yes
13390 hardcode_direct_absolute_D=yes
13391 export_dynamic_flag_spec_D='${wl}-E'
13392
13393 # hardcode_minus_L: Not really in the search PATH,
13394 # but as the default location of the library.
13395 hardcode_minus_L_D=yes
13396 ;;
13397 esac
13398 fi
13399 ;;
13400
13401 irix5* | irix6* | nonstopux*)
13402 if test "$GCC" = yes; then
13403 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'
13404 # Try to use the -exported_symbol ld option, if it does not
13405 # work, assume that -exports_file does not work either and
13406 # implicitly export all symbols.
13407 save_LDFLAGS="$LDFLAGS"
13408 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410/* end confdefs.h. */
13411int foo(void) {}
13412_ACEOF
13413if ac_fn_c_try_link "$LINENO"; then :
13414 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'
13415
13416fi
13417rm -f core conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13419 LDFLAGS="$save_LDFLAGS"
13420 else
13421 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'
13422 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'
13423 fi
13424 archive_cmds_need_lc_D='no'
13425 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13426 hardcode_libdir_separator_D=:
13427 inherit_rpath_D=yes
13428 link_all_deplibs_D=yes
13429 ;;
13430
13431 netbsd*)
13432 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13433 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13434 else
13435 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13436 fi
13437 hardcode_libdir_flag_spec_D='-R$libdir'
13438 hardcode_direct_D=yes
13439 hardcode_shlibpath_var_D=no
13440 ;;
13441
13442 newsos6)
13443 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13444 hardcode_direct_D=yes
13445 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13446 hardcode_libdir_separator_D=:
13447 hardcode_shlibpath_var_D=no
13448 ;;
13449
13450 *nto* | *qnx*)
13451 ;;
13452
13453 openbsd*)
13454 if test -f /usr/libexec/ld.so; then
13455 hardcode_direct_D=yes
13456 hardcode_shlibpath_var_D=no
13457 hardcode_direct_absolute_D=yes
13458 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13459 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13460 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13461 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13462 export_dynamic_flag_spec_D='${wl}-E'
13463 else
13464 case $host_os in
13465 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13466 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13467 hardcode_libdir_flag_spec_D='-R$libdir'
13468 ;;
13469 *)
13470 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13471 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13472 ;;
13473 esac
13474 fi
13475 else
13476 ld_shlibs_D=no
13477 fi
13478 ;;
13479
13480 os2*)
13481 hardcode_libdir_flag_spec_D='-L$libdir'
13482 hardcode_minus_L_D=yes
13483 allow_undefined_flag_D=unsupported
13484 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'
13485 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13486 ;;
13487
13488 osf3*)
13489 if test "$GCC" = yes; then
13490 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13491 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'
13492 else
13493 allow_undefined_flag_D=' -expect_unresolved \*'
13494 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'
13495 fi
13496 archive_cmds_need_lc_D='no'
13497 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13498 hardcode_libdir_separator_D=:
13499 ;;
13500
13501 osf4* | osf5*) # as osf3* with the addition of -msym flag
13502 if test "$GCC" = yes; then
13503 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13504 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'
13505 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13506 else
13507 allow_undefined_flag_D=' -expect_unresolved \*'
13508 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'
13509 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~
13510 $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'
13511
13512 # Both c and cxx compiler support -rpath directly
13513 hardcode_libdir_flag_spec_D='-rpath $libdir'
13514 fi
13515 archive_cmds_need_lc_D='no'
13516 hardcode_libdir_separator_D=:
13517 ;;
13518
13519 solaris*)
13520 no_undefined_flag_D=' -z defs'
13521 if test "$GCC" = yes; then
13522 wlarc='${wl}'
13523 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13524 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13525 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13526 else
13527 case `$CC -V 2>&1` in
13528 *"Compilers 5.0"*)
13529 wlarc=''
13530 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13531 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13532 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13533 ;;
13534 *)
13535 wlarc='${wl}'
13536 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13537 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13538 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13539 ;;
13540 esac
13541 fi
13542 hardcode_libdir_flag_spec_D='-R$libdir'
13543 hardcode_shlibpath_var_D=no
13544 case $host_os in
13545 solaris2.[0-5] | solaris2.[0-5].*) ;;
13546 *)
13547 # The compiler driver will combine and reorder linker options,
13548 # but understands `-z linker_flag'. GCC discards it without `$wl',
13549 # but is careful enough not to reorder.
13550 # Supported since Solaris 2.6 (maybe 2.5.1?)
13551 if test "$GCC" = yes; then
13552 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13553 else
13554 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13555 fi
13556 ;;
13557 esac
13558 link_all_deplibs_D=yes
13559 ;;
13560
13561 sunos4*)
13562 if test "x$host_vendor" = xsequent; then
13563 # Use $CC to link under sequent, because it throws in some extra .o
13564 # files that make .init and .fini sections work.
13565 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13566 else
13567 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13568 fi
13569 hardcode_libdir_flag_spec_D='-L$libdir'
13570 hardcode_direct_D=yes
13571 hardcode_minus_L_D=yes
13572 hardcode_shlibpath_var_D=no
13573 ;;
13574
13575 sysv4)
13576 case $host_vendor in
13577 sni)
13578 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13579 hardcode_direct_D=yes # is this really true???
13580 ;;
13581 siemens)
13582 ## LD is ld it makes a PLAMLIB
13583 ## CC just makes a GrossModule.
13584 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13585 reload_cmds_D='$CC -r -o $output$reload_objs'
13586 hardcode_direct_D=no
13587 ;;
13588 motorola)
13589 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13590 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13591 ;;
13592 esac
13593 runpath_var='LD_RUN_PATH'
13594 hardcode_shlibpath_var_D=no
13595 ;;
13596
13597 sysv4.3*)
13598 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13599 hardcode_shlibpath_var_D=no
13600 export_dynamic_flag_spec_D='-Bexport'
13601 ;;
13602
13603 sysv4*MP*)
13604 if test -d /usr/nec; then
13605 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13606 hardcode_shlibpath_var_D=no
13607 runpath_var=LD_RUN_PATH
13608 hardcode_runpath_var=yes
13609 ld_shlibs_D=yes
13610 fi
13611 ;;
13612
13613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13614 no_undefined_flag_D='${wl}-z,text'
13615 archive_cmds_need_lc_D=no
13616 hardcode_shlibpath_var_D=no
13617 runpath_var='LD_RUN_PATH'
13618
13619 if test "$GCC" = yes; then
13620 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13621 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13622 else
13623 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13624 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13625 fi
13626 ;;
13627
13628 sysv5* | sco3.2v5* | sco5v6*)
13629 # Note: We can NOT use -z defs as we might desire, because we do not
13630 # link with -lc, and that would cause any symbols used from libc to
13631 # always be unresolved, which means just about no library would
13632 # ever link correctly. If we're not using GNU ld we use -z text
13633 # though, which does catch some bad symbols but isn't as heavy-handed
13634 # as -z defs.
13635 no_undefined_flag_D='${wl}-z,text'
13636 allow_undefined_flag_D='${wl}-z,nodefs'
13637 archive_cmds_need_lc_D=no
13638 hardcode_shlibpath_var_D=no
13639 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13640 hardcode_libdir_separator_D=':'
13641 link_all_deplibs_D=yes
13642 export_dynamic_flag_spec_D='${wl}-Bexport'
13643 runpath_var='LD_RUN_PATH'
13644
13645 if test "$GCC" = yes; then
13646 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648 else
13649 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651 fi
13652 ;;
13653
13654 uts4*)
13655 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13656 hardcode_libdir_flag_spec_D='-L$libdir'
13657 hardcode_shlibpath_var_D=no
13658 ;;
13659
13660 *)
13661 ld_shlibs_D=no
13662 ;;
13663 esac
13664
13665 if test x$host_vendor = xsni; then
13666 case $host in
13667 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13668 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13669 ;;
13670 esac
13671 fi
13672 fi
13673
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13675$as_echo "$ld_shlibs_D" >&6; }
13676test "$ld_shlibs_D" = no && can_build_shared=no
13677
13678with_gnu_ld_D=$with_gnu_ld
13679
13680
13681
13682
13683
13684
13685#
13686# Do we need to explicitly link libc?
13687#
13688case "x$archive_cmds_need_lc_D" in
13689x|xyes)
13690 # Assume -lc should be added
13691 archive_cmds_need_lc_D=yes
13692
13693 if test "$enable_shared" = yes && test "$GCC" = yes; then
13694 case $archive_cmds_D in
13695 *'~'*)
13696 # FIXME: we may have to deal with multi-command sequences.
13697 ;;
13698 '$CC '*)
13699 # Test whether the compiler implicitly links with -lc since on some
13700 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13701 # to ld, don't add -lc before -lgcc.
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13703$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000013704if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000013705 $as_echo_n "(cached) " >&6
13706else
13707 $RM conftest*
13708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13709
13710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13711 (eval $ac_compile) 2>&5
13712 ac_status=$?
13713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13714 test $ac_status = 0; } 2>conftest.err; then
13715 soname=conftest
13716 lib=conftest
13717 libobjs=conftest.$ac_objext
13718 deplibs=
13719 wl=$lt_prog_compiler_wl_D
13720 pic_flag=$lt_prog_compiler_pic_D
13721 compiler_flags=-v
13722 linker_flags=-v
13723 verstring=
13724 output_objdir=.
13725 libname=conftest
13726 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13727 allow_undefined_flag_D=
13728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13729 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13730 ac_status=$?
13731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13732 test $ac_status = 0; }
13733 then
13734 lt_cv_archive_cmds_need_lc_D=no
13735 else
13736 lt_cv_archive_cmds_need_lc_D=yes
13737 fi
13738 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13739 else
13740 cat conftest.err 1>&5
13741 fi
13742 $RM conftest*
13743
13744fi
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13746$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13747 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13748 ;;
13749 esac
13750 fi
13751 ;;
13752esac
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13818$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13819hardcode_action_D=
13820if test -n "$hardcode_libdir_flag_spec_D" ||
13821 test -n "$runpath_var_D" ||
13822 test "X$hardcode_automatic_D" = "Xyes" ; then
13823
13824 # We can hardcode non-existent directories.
13825 if test "$hardcode_direct_D" != no &&
13826 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13827 # have to relink, otherwise we might link with an installed library
13828 # when we should be linking with a yet-to-be-installed one
13829 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13830 test "$hardcode_minus_L_D" != no; then
13831 # Linking always hardcodes the temporary library directory.
13832 hardcode_action_D=relink
13833 else
13834 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13835 hardcode_action_D=immediate
13836 fi
13837else
13838 # We cannot hardcode anything, or else we can only hardcode existing
13839 # directories.
13840 hardcode_action_D=unsupported
13841fi
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13843$as_echo "$hardcode_action_D" >&6; }
13844
13845if test "$hardcode_action_D" = relink ||
13846 test "$inherit_rpath_D" = yes; then
13847 # Fast installation is not supported
13848 enable_fast_install=no
13849elif test "$shlibpath_overrides_runpath" = yes ||
13850 test "$enable_shared" = no; then
13851 # Fast installation is not necessary
13852 enable_fast_install=needless
13853fi
13854
13855
13856
13857
13858
13859
13860
13861fi
13862
13863ac_ext=c
13864ac_cpp='$CPP $CPPFLAGS'
13865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13867ac_compiler_gnu=$ac_cv_c_compiler_gnu
13868
13869
13870GCC=$lt_save_GCC
13871CC=$lt_save_CC
13872CFLAGS=$lt_save_CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000013873
13874 GDCFLAGS=$gdc_save_DFLAGS
13875
Iain Buclawb4c522f2018-10-28 19:51:47 +000013876
13877# libtool variables for Phobos shared and position-independent compiles.
13878#
13879# Use phobos_compiler_shared_flag to designate the compile-time flags for
13880# creating shared objects. Default: -fversion=Shared.
13881#
13882# Use phobos_compiler_pic_flag to designate the compile-time flags for
13883# creating position-independent objects. This varies with the target
13884# hardware and operating system, but is often: -fPIC.
13885#
13886# The distinction between pic and shared compilation flags is not present in
13887# libtool, and so we make it here. How it is handled is that in shared
13888# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13889# ensure that conditional compilation of shared runtime code is compiled in.
13890# The original PIC flags are then used in the compilation of every object.
13891#
13892# Why are objects destined for libgphobos.a compiled with -fPIC?
13893# Because -fPIC is not harmful to use for objects destined for static
13894# libraries. In addition, using -fPIC will allow the use of static
13895# libgphobos.a in the creation of other D shared libraries.
13896if test "$enable_shared" = yes; then
13897 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13898 phobos_compiler_shared_flag="-fversion=Shared"
13899else
13900 phobos_compiler_pic_flag=
13901 phobos_compiler_shared_flag=
13902fi
13903
13904
13905
13906# Override the libtool's pic_flag and pic_mode.
13907# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13908# NB: this impacts --with-pic and --without-pic.
13909lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13910pic_mode='default'
13911
Rainer Orth7d31d332019-04-14 09:38:01 +000013912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
13913$as_echo_n "checking for --enable-libphobos... " >&6; }
13914# Check whether --enable-libphobos was given.
13915if test "${enable_libphobos+set}" = set; then :
13916 enableval=$enable_libphobos;
13917fi
13918
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
13920$as_echo "$enable_libphobos" >&6; }
13921
13922# See if supported.
13923unset LIBPHOBOS_SUPPORTED
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
13925$as_echo_n "checking for host support for libphobos... " >&6; }
13926. ${srcdir}/configure.tgt
13927case ${host} in
13928 x86_64-*-solaris2.* | i?86-*-solaris2.*)
13929 # libphobos doesn't compile with the Solaris/x86 assembler due to a
13930 # relatively low linelength limit.
13931 as_prog=`$CC -print-prog-name=as`
13932 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
13933 druntime_cv_use_gas=yes;
13934 else
13935 druntime_cv_use_gas=no;
13936 fi
13937 rm -f a.out
13938 if test x$druntime_cv_use_gas = xno; then
13939 LIBPHOBOS_SUPPORTED=no
13940 fi
13941 ;;
13942esac
13943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
13944$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
13945
13946# Decide if it's usable.
13947case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
13948*:no) use_libphobos=no ;;
13949*:yes) use_libphobos=yes ;;
13950yes:*) use_libphobos=yes ;;
13951*:*) use_libphobos=no ;;
13952esac
13953 if test x$use_libphobos = xyes; then
13954 ENABLE_LIBPHOBOS_TRUE=
13955 ENABLE_LIBPHOBOS_FALSE='#'
13956else
13957 ENABLE_LIBPHOBOS_TRUE='#'
13958 ENABLE_LIBPHOBOS_FALSE=
13959fi
13960
13961
Iain Buclawb4c522f2018-10-28 19:51:47 +000013962# Determine what GCC version number to use in filesystem paths.
13963
13964 get_gcc_base_ver="cat"
13965
13966# Check whether --with-gcc-major-version-only was given.
13967if test "${with_gcc_major_version_only+set}" = set; then :
13968 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13969 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13970 fi
13971
13972fi
13973
13974
13975
13976
13977# libphobos/libdruntime specific options and feature detection
13978
13979 # These need to be absolute paths, yet at the same time need to
13980 # canonicalize only relative paths, because then amd will not unmount
13981 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13982 libphobos_builddir=`${PWDCMD-pwd}`
13983 case $srcdir in
13984 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13985 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13986 esac
13987
13988
13989
13990
13991 if test ${multilib} = yes; then
13992 multilib_arg="--enable-multilib"
13993 else
13994 multilib_arg=
13995 fi
13996
13997
13998 # Check whether --enable-werror was given.
13999if test "${enable_werror+set}" = set; then :
14000 enableval=$enable_werror;
14001fi
14002
14003 WERROR_FLAG=""
14004 if test "x$enable_werror" = "xyes"; then
14005 WERROR_FLAG="-Werror"
14006 fi
14007
14008
14009 # Check whether --enable-druntime-gc was given.
14010if test "${enable_druntime_gc+set}" = set; then :
14011 enableval=$enable_druntime_gc; enable_druntime_gc=no
14012else
14013 enable_druntime_gc=yes
14014fi
14015
14016
14017 if test "$enable_druntime_gc" = "yes"; then
14018 DRUNTIME_GC_ENABLE_TRUE=
14019 DRUNTIME_GC_ENABLE_FALSE='#'
14020else
14021 DRUNTIME_GC_ENABLE_TRUE='#'
14022 DRUNTIME_GC_ENABLE_FALSE=
14023fi
14024
14025
14026
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14028$as_echo_n "checking for target OS... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014029if ${druntime_cv_target_os+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014030 $as_echo_n "(cached) " >&6
14031else
14032 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14033fi
14034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14035$as_echo "$druntime_cv_target_os" >&6; }
14036 if test -z "$druntime_cv_target_os"; then :
Joseph Myers22e05272018-10-31 17:03:16 +000014037 as_fn_error $? "can't detect target OS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014038fi
14039
14040
14041
14042 # Check whether --enable-unix was given.
14043if test "${enable_unix+set}" = set; then :
14044 enableval=$enable_unix; :
14045else
14046 enable_unix=auto
14047fi
14048
14049
14050 case "$druntime_cv_target_os" in
14051 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
14052 esac
14053 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
14054 enable_unix=yes
14055 fi
14056 if test "$enable_unix" = "yes"; then
14057 DRUNTIME_OS_UNIX_TRUE=
14058 DRUNTIME_OS_UNIX_FALSE='#'
14059else
14060 DRUNTIME_OS_UNIX_TRUE='#'
14061 DRUNTIME_OS_UNIX_FALSE=
14062fi
14063
14064
14065
14066
14067
14068 druntime_target_os_parsed=""
14069 case "$druntime_cv_target_os" in
14070 aix*) druntime_target_os_parsed="aix"
14071 ;;
14072 *android*)
14073 druntime_target_os_parsed="android"
14074 ;;
14075 darwin*) druntime_target_os_parsed="darwin"
14076 ;;
14077 dragonfly*)
14078 druntime_target_os_parsed="dragonflybsd"
14079 ;;
14080 freebsd*|k*bsd*-gnu)
14081 druntime_target_os_parsed="freebsd"
14082 ;;
14083 openbsd*)
14084 druntime_target_os_parsed="openbsd"
14085 ;;
14086 netbsd*)
14087 druntime_target_os_parsed="netbsd"
14088 ;;
14089 linux*) druntime_target_os_parsed="linux"
14090 ;;
14091 mingw*) druntime_target_os_parsed="mingw"
14092 ;;
14093 *solaris*) druntime_target_os_parsed="solaris"
14094 esac
14095 if test "$druntime_target_os_parsed" = "aix"; then
14096 DRUNTIME_OS_AIX_TRUE=
14097 DRUNTIME_OS_AIX_FALSE='#'
14098else
14099 DRUNTIME_OS_AIX_TRUE='#'
14100 DRUNTIME_OS_AIX_FALSE=
14101fi
14102
14103 if test "$druntime_target_os_parsed" = "android"; then
14104 DRUNTIME_OS_ANDROID_TRUE=
14105 DRUNTIME_OS_ANDROID_FALSE='#'
14106else
14107 DRUNTIME_OS_ANDROID_TRUE='#'
14108 DRUNTIME_OS_ANDROID_FALSE=
14109fi
14110
14111 if test "$druntime_target_os_parsed" = "darwin"; then
14112 DRUNTIME_OS_DARWIN_TRUE=
14113 DRUNTIME_OS_DARWIN_FALSE='#'
14114else
14115 DRUNTIME_OS_DARWIN_TRUE='#'
14116 DRUNTIME_OS_DARWIN_FALSE=
14117fi
14118
14119 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14120 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14121 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14122else
14123 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14124 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14125fi
14126
14127 if test "$druntime_target_os_parsed" = "freebsd"; then
14128 DRUNTIME_OS_FREEBSD_TRUE=
14129 DRUNTIME_OS_FREEBSD_FALSE='#'
14130else
14131 DRUNTIME_OS_FREEBSD_TRUE='#'
14132 DRUNTIME_OS_FREEBSD_FALSE=
14133fi
14134
14135 if test "$druntime_target_os_parsed" = "netbsd"; then
14136 DRUNTIME_OS_NETBSD_TRUE=
14137 DRUNTIME_OS_NETBSD_FALSE='#'
14138else
14139 DRUNTIME_OS_NETBSD_TRUE='#'
14140 DRUNTIME_OS_NETBSD_FALSE=
14141fi
14142
14143 if test "$druntime_target_os_parsed" = "openbsd"; then
14144 DRUNTIME_OS_OPENBSD_TRUE=
14145 DRUNTIME_OS_OPENBSD_FALSE='#'
14146else
14147 DRUNTIME_OS_OPENBSD_TRUE='#'
14148 DRUNTIME_OS_OPENBSD_FALSE=
14149fi
14150
14151 if test "$druntime_target_os_parsed" = "linux"; then
14152 DRUNTIME_OS_LINUX_TRUE=
14153 DRUNTIME_OS_LINUX_FALSE='#'
14154else
14155 DRUNTIME_OS_LINUX_TRUE='#'
14156 DRUNTIME_OS_LINUX_FALSE=
14157fi
14158
14159 if test "$druntime_target_os_parsed" = "mingw"; then
14160 DRUNTIME_OS_MINGW_TRUE=
14161 DRUNTIME_OS_MINGW_FALSE='#'
14162else
14163 DRUNTIME_OS_MINGW_TRUE='#'
14164 DRUNTIME_OS_MINGW_FALSE=
14165fi
14166
14167 if test "$druntime_target_os_parsed" = "solaris"; then
14168 DRUNTIME_OS_SOLARIS_TRUE=
14169 DRUNTIME_OS_SOLARIS_FALSE='#'
14170else
14171 DRUNTIME_OS_SOLARIS_TRUE='#'
14172 DRUNTIME_OS_SOLARIS_FALSE=
14173fi
14174
14175
14176
14177
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14179$as_echo_n "checking for thread model used by GDC... " >&6; }
14180 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14182$as_echo "$d_thread_model" >&6; }
14183
14184 # Map from thread model to thread interface.
14185
14186case $d_thread_model in
14187 aix) DCFG_THREAD_MODEL="Posix" ;;
14188 lynx) DCFG_THREAD_MODEL="Posix" ;;
14189 posix) DCFG_THREAD_MODEL="Posix" ;;
14190 single) DCFG_THREAD_MODEL="Single" ;;
14191 win32) DCFG_THREAD_MODEL="Win32" ;;
14192 # TODO: These targets need porting.
14193 dce|mipssde|rtems|tpf|vxworks)
14194 DCFG_THREAD_MODEL="Single" ;;
14195 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14196esac
14197
14198
14199
14200
14201 ac_ext=c
14202ac_cpp='$CPP $CPPFLAGS'
14203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14205ac_compiler_gnu=$ac_cv_c_compiler_gnu
14206
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14208$as_echo_n "checking for ARM unwinder... " >&6; }
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210/* end confdefs.h. */
14211#include <unwind.h>
14212int
14213main ()
14214{
14215
14216 #if __ARM_EABI_UNWINDER__
14217 #error Yes, it is.
14218 #endif
14219
14220 ;
14221 return 0;
14222}
14223_ACEOF
14224if ac_fn_c_try_compile "$LINENO"; then :
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226$as_echo "no" >&6; }
14227 DCFG_ARM_EABI_UNWINDER=false
14228else
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14230$as_echo "yes" >&6; }
14231 DCFG_ARM_EABI_UNWINDER=true
14232fi
14233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234
14235 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14236 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14237 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14238else
14239 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14240 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14241fi
14242
14243 ac_ext=c
14244ac_cpp='$CPP $CPPFLAGS'
14245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14247ac_compiler_gnu=$ac_cv_c_compiler_gnu
14248
14249
14250
14251 ac_ext=c
14252ac_cpp='$CPP $CPPFLAGS'
14253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14255ac_compiler_gnu=$ac_cv_c_compiler_gnu
14256
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14258$as_echo_n "checking for minfo section bracketing... " >&6; }
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260/* end confdefs.h. */
14261
14262 void* module_info_ptr __attribute__((section ("minfo")));
14263 extern void* __start_minfo __attribute__((visibility ("hidden")));
14264 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14265
14266 int main()
14267 {
14268 // Never run, just to prevent compiler from optimizing access
14269 return &__start_minfo == &__stop_minfo;
14270 }
14271
14272_ACEOF
14273if ac_fn_c_try_link "$LINENO"; then :
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14275$as_echo "yes" >&6; }
14276 DCFG_MINFO_BRACKETING=true
14277else
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279$as_echo "no" >&6; }
14280 DCFG_MINFO_BRACKETING=false
14281fi
14282rm -f core conftest.err conftest.$ac_objext \
14283 conftest$ac_exeext conftest.$ac_ext
14284
Rainer Orth0b6e3122019-02-14 17:47:49 +000014285 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14286 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14287 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14288else
14289 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14290 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14291fi
14292
Iain Buclawb4c522f2018-10-28 19:51:47 +000014293 ac_ext=c
14294ac_cpp='$CPP $CPPFLAGS'
14295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14297ac_compiler_gnu=$ac_cv_c_compiler_gnu
14298
14299
14300
Rainer Orth235d1c42019-04-14 09:30:42 +000014301 ac_ext=c
14302ac_cpp='$CPP $CPPFLAGS'
14303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14305ac_compiler_gnu=$ac_cv_c_compiler_gnu
14306
14307 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>
14308"
14309if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14310 DCFG_DLPI_TLS_MODID=true
14311else
14312 DCFG_DLPI_TLS_MODID=false
14313fi
14314
14315
14316 ac_ext=c
14317ac_cpp='$CPP $CPPFLAGS'
14318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14320ac_compiler_gnu=$ac_cv_c_compiler_gnu
14321
14322
14323
Rainer Orthba838aa2019-04-14 09:24:26 +000014324 case $target in
14325 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14326 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14327 # relocs. Work around by disabling TLS transitions. Not necessary
14328 # on 32-bit x86, but cannot be distinguished reliably in specs.
14329 druntime_ld_prog=`$CC -print-prog-name=ld`
14330 if test -n "$druntime_ld_prog" \
14331 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14332 :
14333 else
14334 OS_LINK_SPEC='-z relax=transtls'
14335 fi
14336 ;;
14337 esac
14338
14339
14340
Johannes Pfau36d7f152019-02-18 23:29:39 +000014341 ac_ext=c
14342ac_cpp='$CPP $CPPFLAGS'
14343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14345ac_compiler_gnu=$ac_cv_c_compiler_gnu
14346
14347 DCFG_HAVE_QSORT_R=false
14348 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14349if test "x$ac_cv_func_qsort_r" = xyes; then :
14350 DCFG_HAVE_QSORT_R=true
14351fi
14352
14353
14354 ac_ext=c
14355ac_cpp='$CPP $CPPFLAGS'
14356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14358ac_compiler_gnu=$ac_cv_c_compiler_gnu
14359
14360
14361
Iain Buclawb4c522f2018-10-28 19:51:47 +000014362
14363
14364 gdc_save_DFLAGS=$GDCFLAGS
14365 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14366
14367 ac_ext=d
14368ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14369ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14370ac_compiler_gnu=yes
14371
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14373$as_echo_n "checking for library containing malloc... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014374if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014375 $as_echo_n "(cached) " >&6
14376else
14377 ac_func_search_save_LIBS=$LIBS
14378cat > conftest.$ac_ext <<_ACEOF
14379module mod;
14380 extern(C) int malloc();
14381
14382extern(C) int main() {
14383 malloc(); return 0;
14384}
14385_ACEOF
14386for ac_lib in '' c; do
14387 if test -z "$ac_lib"; then
14388 ac_res="none required"
14389 else
14390 ac_res=-l$ac_lib
14391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14392 fi
14393 if ac_fn_d_try_link "$LINENO"; then :
14394 ac_cv_search_malloc=$ac_res
14395fi
14396rm -f core conftest.err conftest.$ac_objext \
14397 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014398 if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014399 break
14400fi
14401done
Joseph Myers22e05272018-10-31 17:03:16 +000014402if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014403
14404else
14405 ac_cv_search_malloc=no
14406fi
14407rm conftest.$ac_ext
14408LIBS=$ac_func_search_save_LIBS
14409fi
14410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14411$as_echo "$ac_cv_search_malloc" >&6; }
14412ac_res=$ac_cv_search_malloc
14413if test "$ac_res" != no; then :
14414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14415
14416fi
14417
14418
14419 enable_thread_lib=yes
14420 # Check whether --enable-thread-lib was given.
14421if test "${enable_thread_lib+set}" = set; then :
14422 enableval=$enable_thread_lib;
14423fi
14424
14425
14426 if test "x$enable_thread_lib" = "xyes"; then :
14427
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14429$as_echo_n "checking for library containing pthread_create... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014430if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014431 $as_echo_n "(cached) " >&6
14432else
14433 ac_func_search_save_LIBS=$LIBS
14434cat > conftest.$ac_ext <<_ACEOF
14435module mod;
14436 extern(C) int pthread_create();
14437
14438extern(C) int main() {
14439 pthread_create(); return 0;
14440}
14441_ACEOF
14442for ac_lib in '' pthread; do
14443 if test -z "$ac_lib"; then
14444 ac_res="none required"
14445 else
14446 ac_res=-l$ac_lib
14447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14448 fi
14449 if ac_fn_d_try_link "$LINENO"; then :
14450 ac_cv_search_pthread_create=$ac_res
14451fi
14452rm -f core conftest.err conftest.$ac_objext \
14453 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014454 if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014455 break
14456fi
14457done
Joseph Myers22e05272018-10-31 17:03:16 +000014458if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014459
14460else
14461 ac_cv_search_pthread_create=no
14462fi
14463rm conftest.$ac_ext
14464LIBS=$ac_func_search_save_LIBS
14465fi
14466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14467$as_echo "$ac_cv_search_pthread_create" >&6; }
14468ac_res=$ac_cv_search_pthread_create
14469if test "$ac_res" != no; then :
14470 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14471
14472fi
14473
14474
14475else
14476
14477 if test "x$enable_thread_lib" = "xno"; then :
14478
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14480$as_echo_n "checking for thread library... " >&6; }
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14482$as_echo "disabled" >&6; }
14483
14484else
14485
14486 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14488$as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014489if eval \${$as_ac_Lib+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014490 $as_echo_n "(cached) " >&6
14491else
14492 ac_check_lib_save_LIBS=$LIBS
14493LIBS="-l$enable_thread_lib $LIBS"
14494cat > conftest.$ac_ext <<_ACEOF
14495module mod;
14496 extern(C) int pthread_create();
14497
14498extern(C) int main() {
14499 pthread_create(); return 0;
14500}
14501_ACEOF
14502if ac_fn_d_try_link "$LINENO"; then :
14503 eval "$as_ac_Lib=yes"
14504else
14505 eval "$as_ac_Lib=no"
14506fi
14507rm -f core conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
14509LIBS=$ac_check_lib_save_LIBS
14510fi
14511eval ac_res=\$$as_ac_Lib
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14513$as_echo "$ac_res" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014514if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014515 cat >>confdefs.h <<_ACEOF
14516#define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14517_ACEOF
14518
14519 LIBS="-l$enable_thread_lib $LIBS"
14520
14521else
14522
Joseph Myers22e05272018-10-31 17:03:16 +000014523 as_fn_error $? "Thread library not found" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014524
14525fi
14526
14527
14528fi
14529
14530fi
14531
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14533$as_echo_n "checking for library containing cosf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014534if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014535 $as_echo_n "(cached) " >&6
14536else
14537 ac_func_search_save_LIBS=$LIBS
14538cat > conftest.$ac_ext <<_ACEOF
14539module mod;
14540 extern(C) int cosf();
14541
14542extern(C) int main() {
14543 cosf(); return 0;
14544}
14545_ACEOF
14546for ac_lib in '' m; do
14547 if test -z "$ac_lib"; then
14548 ac_res="none required"
14549 else
14550 ac_res=-l$ac_lib
14551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14552 fi
14553 if ac_fn_d_try_link "$LINENO"; then :
14554 ac_cv_search_cosf=$ac_res
14555fi
14556rm -f core conftest.err conftest.$ac_objext \
14557 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014558 if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014559 break
14560fi
14561done
Joseph Myers22e05272018-10-31 17:03:16 +000014562if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014563
14564else
14565 ac_cv_search_cosf=no
14566fi
14567rm conftest.$ac_ext
14568LIBS=$ac_func_search_save_LIBS
14569fi
14570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14571$as_echo "$ac_cv_search_cosf" >&6; }
14572ac_res=$ac_cv_search_cosf
14573if test "$ac_res" != no; then :
14574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14575
14576fi
14577
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14579$as_echo_n "checking for library containing clock_gettime... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014580if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014581 $as_echo_n "(cached) " >&6
14582else
14583 ac_func_search_save_LIBS=$LIBS
14584cat > conftest.$ac_ext <<_ACEOF
14585module mod;
14586 extern(C) int clock_gettime();
14587
14588extern(C) int main() {
14589 clock_gettime(); return 0;
14590}
14591_ACEOF
14592for ac_lib in '' rt; do
14593 if test -z "$ac_lib"; then
14594 ac_res="none required"
14595 else
14596 ac_res=-l$ac_lib
14597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14598 fi
14599 if ac_fn_d_try_link "$LINENO"; then :
14600 ac_cv_search_clock_gettime=$ac_res
14601fi
14602rm -f core conftest.err conftest.$ac_objext \
14603 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014604 if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014605 break
14606fi
14607done
Joseph Myers22e05272018-10-31 17:03:16 +000014608if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014609
14610else
14611 ac_cv_search_clock_gettime=no
14612fi
14613rm conftest.$ac_ext
14614LIBS=$ac_func_search_save_LIBS
14615fi
14616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14617$as_echo "$ac_cv_search_clock_gettime" >&6; }
14618ac_res=$ac_cv_search_clock_gettime
14619if test "$ac_res" != no; then :
14620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14621
14622fi
14623
14624
14625 # This checks to see if the host supports the compiler-generated builtins
14626 # for atomic operations for various integral sizes. Note, this is intended
14627 # to be an all-or-nothing switch, so all the atomic operations that are
14628 # used should be checked.
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14630$as_echo_n "checking for atomic builtins for byte... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014631 if ${druntime_cv_atomic_byte+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014632 $as_echo_n "(cached) " >&6
14633else
14634
14635 cat > conftest.$ac_ext <<_ACEOF
14636module mod;
14637import gcc.builtins;
14638
14639extern(C) int main() {
14640
14641 shared(byte) c1;
14642 byte c2, c3;
14643 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14644 __atomic_load_1(&c1, 5);
14645 __atomic_store_1(&c1, c2, 5);
14646 return 0;
14647
14648}
14649_ACEOF
14650if ac_fn_d_try_link "$LINENO"; then :
14651 druntime_cv_atomic_byte=yes
14652else
14653 druntime_cv_atomic_byte=no
14654fi
14655rm -f core conftest.err conftest.$ac_objext \
14656 conftest$ac_exeext conftest.$ac_ext
14657
14658fi
14659
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14661$as_echo "$druntime_cv_atomic_byte" >&6; }
14662
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14664$as_echo_n "checking for atomic builtins for short... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014665 if ${druntime_cv_atomic_short+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014666 $as_echo_n "(cached) " >&6
14667else
14668
14669 cat > conftest.$ac_ext <<_ACEOF
14670module mod;
14671import gcc.builtins;
14672
14673extern(C) int main() {
14674
14675 shared(short) c1;
14676 short c2, c3;
14677 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14678 __atomic_load_2(&c1, 5);
14679 __atomic_store_2(&c1, c2, 5);
14680 return 0;
14681
14682}
14683_ACEOF
14684if ac_fn_d_try_link "$LINENO"; then :
14685 druntime_cv_atomic_short=yes
14686else
14687 druntime_cv_atomic_short=no
14688fi
14689rm -f core conftest.err conftest.$ac_objext \
14690 conftest$ac_exeext conftest.$ac_ext
14691
14692fi
14693
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14695$as_echo "$druntime_cv_atomic_short" >&6; }
14696
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14698$as_echo_n "checking for atomic builtins for int... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014699 if ${druntime_cv_atomic_int+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014700 $as_echo_n "(cached) " >&6
14701else
14702
14703 cat > conftest.$ac_ext <<_ACEOF
14704module mod;
14705import gcc.builtins;
14706
14707extern(C) int main() {
14708
14709 shared(int) c1;
14710 int c2, c3;
14711 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14712 __atomic_load_4(&c1, 5);
14713 __atomic_store_4(&c1, c2, 5);
14714 return 0;
14715
14716}
14717_ACEOF
14718if ac_fn_d_try_link "$LINENO"; then :
14719 druntime_cv_atomic_int=yes
14720else
14721 druntime_cv_atomic_int=no
14722fi
14723rm -f core conftest.err conftest.$ac_objext \
14724 conftest$ac_exeext conftest.$ac_ext
14725
14726fi
14727
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14729$as_echo "$druntime_cv_atomic_int" >&6; }
14730
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14732$as_echo_n "checking for atomic builtins for long... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014733 if ${druntime_cv_atomic_long+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014734 $as_echo_n "(cached) " >&6
14735else
14736
14737 cat > conftest.$ac_ext <<_ACEOF
14738module mod;
14739import gcc.builtins;
14740
14741extern(C) int main() {
14742
14743 shared(long) c1;
14744 long c2, c3;
14745 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14746 __atomic_load_8(&c1, 5);
14747 __atomic_store_8(&c1, c2, 5);
14748 return 0;
14749
14750}
14751_ACEOF
14752if ac_fn_d_try_link "$LINENO"; then :
14753 druntime_cv_atomic_long=yes
14754else
14755 druntime_cv_atomic_long=no
14756fi
14757rm -f core conftest.err conftest.$ac_objext \
14758 conftest$ac_exeext conftest.$ac_ext
14759
14760fi
14761
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14763$as_echo "$druntime_cv_atomic_long" >&6; }
14764
14765 # Have atomic builtin support if all but the long test above passes.
14766 DCFG_HAVE_ATOMIC_BUILTINS=false
14767 if test "$druntime_cv_atomic_byte" = yes \
14768 && test "$druntime_cv_atomic_short" = yes \
14769 && test "$druntime_cv_atomic_int" = yes; then \
14770 DCFG_HAVE_ATOMIC_BUILTINS=true
14771 fi
14772
14773 # Have 64-bit atomic support if the long test above passes.
14774 DCFG_HAVE_64BIT_ATOMICS=false
14775 if test "$druntime_cv_atomic_long" = yes; then
14776 DCFG_HAVE_64BIT_ATOMICS=true
14777 fi
14778
14779
14780
14781
14782 ac_ext=c
14783ac_cpp='$CPP $CPPFLAGS'
14784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14786ac_compiler_gnu=$ac_cv_c_compiler_gnu
14787
14788
14789 GDCFLAGS=$gdc_save_DFLAGS
14790
14791
14792
14793
14794# Check whether --with-libatomic was given.
14795if test "${with_libatomic+set}" = set; then :
14796 withval=$with_libatomic;
14797fi
14798
14799
14800 DCFG_HAVE_LIBATOMIC=false
14801 LIBATOMIC=
14802 if test "x$with_libatomic" != "xno"; then :
14803
14804 DCFG_HAVE_LIBATOMIC=true
14805 LIBATOMIC=../../libatomic/libatomic_convenience.la
14806
14807else
14808
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14810$as_echo_n "checking for libatomic... " >&6; }
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14812$as_echo "disabled" >&6; }
14813
14814fi
14815
14816
14817
14818
14819
14820 ac_ext=c
14821ac_cpp='$CPP $CPPFLAGS'
14822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14824ac_compiler_gnu=$ac_cv_c_compiler_gnu
14825
14826 BACKTRACE_SUPPORTED=false
14827 BACKTRACE_USES_MALLOC=false
14828 BACKTRACE_SUPPORTS_THREADS=false
14829 LIBBACKTRACE=""
14830
14831
14832# Check whether --with-libbacktrace was given.
14833if test "${with_libbacktrace+set}" = set; then :
14834 withval=$with_libbacktrace;
14835fi
14836
14837
14838 if test "x$with_libbacktrace" != "xno"; then :
14839
14840 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14841
14842 gdc_save_CPPFLAGS=$CPPFLAGS
Iain Buclaw5d71d6f2019-04-16 05:58:25 +000014843 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
Iain Buclawb4c522f2018-10-28 19:51:47 +000014844
14845 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 +000014846if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014847 have_libbacktrace_h=true
14848else
14849 have_libbacktrace_h=false
14850fi
14851
14852
14853
14854 if $have_libbacktrace_h; then
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14856$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858/* end confdefs.h. */
14859
14860 #include <backtrace-supported.h>
14861 #if BACKTRACE_SUPPORTED
14862 FOUND_LIBBACKTRACE_RESULT_GDC
14863 #endif
14864
14865_ACEOF
14866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14867 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14868 BACKTRACE_SUPPORTED=true
14869else
14870 BACKTRACE_SUPPORTED=false
14871fi
14872rm -f conftest*
14873
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14875$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14876
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14878$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880/* end confdefs.h. */
14881
14882 #include <backtrace-supported.h>
14883 #if BACKTRACE_USES_MALLOC
14884 FOUND_LIBBACKTRACE_RESULT_GDC
14885 #endif
14886
14887_ACEOF
14888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14889 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14890 BACKTRACE_USES_MALLOC=true
14891else
14892 BACKTRACE_USES_MALLOC=false
14893fi
14894rm -f conftest*
14895
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14897$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14898
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14900$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902/* end confdefs.h. */
14903
14904 #include <backtrace-supported.h>
14905 #if BACKTRACE_SUPPORTS_THREADS
14906 FOUND_LIBBACKTRACE_RESULT_GDC
14907 #endif
14908
14909_ACEOF
14910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14911 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14912 BACKTRACE_SUPPORTS_THREADS=true
14913else
14914 BACKTRACE_SUPPORTS_THREADS=false
14915fi
14916rm -f conftest*
14917
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14919$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14920 fi
14921 CPPFLAGS=$gdc_save_CPPFLAGS
14922
14923else
14924
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14926$as_echo_n "checking for libbacktrace... " >&6; }
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14928$as_echo "disabled" >&6; }
14929
14930fi
14931
14932
14933
14934
14935
14936 ac_ext=c
14937ac_cpp='$CPP $CPPFLAGS'
14938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14940ac_compiler_gnu=$ac_cv_c_compiler_gnu
14941
14942
14943
14944 # Libtool has already checked this, so re-use the inferred dlopen lib.
14945 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14946
14947 LIBS="$LIBS $lt_cv_dlopen_libs"
14948
14949fi
14950
14951
Rainer Orth1d679132019-02-19 09:24:50 +000014952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14953$as_echo_n "checking for socket libraries... " >&6; }
14954if ${druntime_cv_lib_sockets+:} false; then :
14955 $as_echo_n "(cached) " >&6
14956else
14957 druntime_cv_lib_sockets=
14958 druntime_check_both=no
14959 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14960if test "x$ac_cv_func_connect" = xyes; then :
14961 druntime_check_socket=no
14962else
14963 druntime_check_socket=yes
14964fi
14965
14966 if test "$druntime_check_socket" = "yes"; then
14967 unset ac_cv_func_connect
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14969$as_echo_n "checking for main in -lsocket... " >&6; }
14970if ${ac_cv_lib_socket_main+:} false; then :
14971 $as_echo_n "(cached) " >&6
14972else
14973 ac_check_lib_save_LIBS=$LIBS
14974LIBS="-lsocket $LIBS"
14975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976/* end confdefs.h. */
14977
14978
14979int
14980main ()
14981{
14982return main ();
14983 ;
14984 return 0;
14985}
14986_ACEOF
14987if ac_fn_c_try_link "$LINENO"; then :
14988 ac_cv_lib_socket_main=yes
14989else
14990 ac_cv_lib_socket_main=no
14991fi
14992rm -f core conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14994LIBS=$ac_check_lib_save_LIBS
14995fi
14996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14997$as_echo "$ac_cv_lib_socket_main" >&6; }
14998if test "x$ac_cv_lib_socket_main" = xyes; then :
14999 druntime_cv_lib_sockets="-lsocket"
15000else
15001 druntime_check_both=yes
15002fi
15003
15004 fi
15005 if test "$druntime_check_both" = "yes"; then
15006 druntime_old_libs=$LIBS
15007 LIBS="$LIBS -lsocket -lnsl"
15008 unset ac_cv_func_accept
15009 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15010if test "x$ac_cv_func_accept" = xyes; then :
15011 druntime_check_nsl=no
15012 druntime_cv_lib_sockets="-lsocket -lnsl"
15013fi
15014
15015 unset ac_cv_func_accept
15016 LIBS=$druntime_old_libs
15017 fi
15018 unset ac_cv_func_gethostbyname
15019 druntime_old_libs="$LIBS"
15020 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15021if test "x$ac_cv_func_gethostbyname" = xyes; then :
15022
15023else
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15025$as_echo_n "checking for main in -lnsl... " >&6; }
15026if ${ac_cv_lib_nsl_main+:} false; then :
15027 $as_echo_n "(cached) " >&6
15028else
15029 ac_check_lib_save_LIBS=$LIBS
15030LIBS="-lnsl $LIBS"
15031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032/* end confdefs.h. */
15033
15034
15035int
15036main ()
15037{
15038return main ();
15039 ;
15040 return 0;
15041}
15042_ACEOF
15043if ac_fn_c_try_link "$LINENO"; then :
15044 ac_cv_lib_nsl_main=yes
15045else
15046 ac_cv_lib_nsl_main=no
15047fi
15048rm -f core conftest.err conftest.$ac_objext \
15049 conftest$ac_exeext conftest.$ac_ext
15050LIBS=$ac_check_lib_save_LIBS
15051fi
15052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15053$as_echo "$ac_cv_lib_nsl_main" >&6; }
15054if test "x$ac_cv_lib_nsl_main" = xyes; then :
15055 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15056fi
15057
15058fi
15059
15060
15061fi
15062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15063$as_echo "$druntime_cv_lib_sockets" >&6; }
15064 LIBS="$LIBS $druntime_cv_lib_sockets"
15065
15066
Iain Buclawbb503122019-04-12 20:13:34 +000015067 ac_ext=c
15068ac_cpp='$CPP $CPPFLAGS'
15069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15071ac_compiler_gnu=$ac_cv_c_compiler_gnu
15072
15073 LIBZ=""
15074
Iain Buclawb4c522f2018-10-28 19:51:47 +000015075
15076# Check whether --with-target-system-zlib was given.
15077if test "${with_target_system_zlib+set}" = set; then :
15078 withval=$with_target_system_zlib;
Iain Buclawbb503122019-04-12 20:13:34 +000015079else
15080 with_target_system_zlib=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015081fi
15082
15083
Iain Buclawbb503122019-04-12 20:13:34 +000015084 case "$with_target_system_zlib" in
15085 yes|no|auto) ;;
15086 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15087 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015088
Iain Buclawbb503122019-04-12 20:13:34 +000015089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15090$as_echo_n "checking for system zlib... " >&6; }
15091 save_LIBS=$LIBS
15092 LIBS="$LIBS -lz"
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +000015094/* end confdefs.h. */
Iain Buclawbb503122019-04-12 20:13:34 +000015095#include <zlib.h>
Iain Buclawb4c522f2018-10-28 19:51:47 +000015096int
15097main ()
15098{
Iain Buclawbb503122019-04-12 20:13:34 +000015099gzopen("none", "rb")
Iain Buclawb4c522f2018-10-28 19:51:47 +000015100 ;
15101 return 0;
15102}
15103_ACEOF
15104if ac_fn_c_try_link "$LINENO"; then :
Iain Buclawbb503122019-04-12 20:13:34 +000015105
15106 if test "$cross_compiling" = yes; then :
15107 system_zlib_found=no
15108
Iain Buclawb4c522f2018-10-28 19:51:47 +000015109else
Iain Buclawbb503122019-04-12 20:13:34 +000015110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111/* end confdefs.h. */
15112
15113 #include <zlib.h>
15114 int main() {
15115 gzFile file = gzopen("none", "rb");
15116 return 0;
15117 }
15118
15119_ACEOF
15120if ac_fn_c_try_run "$LINENO"; then :
15121 system_zlib_found=yes
15122else
15123 system_zlib_found=no
15124fi
15125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15126 conftest.$ac_objext conftest.beam conftest.$ac_ext
15127fi
15128
15129
15130else
15131 system_zlib_found=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015132fi
15133rm -f core conftest.err conftest.$ac_objext \
15134 conftest$ac_exeext conftest.$ac_ext
Iain Buclawbb503122019-04-12 20:13:34 +000015135 LIBS=$save_LIBS
Iain Buclawb4c522f2018-10-28 19:51:47 +000015136
Iain Buclawbb503122019-04-12 20:13:34 +000015137 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15139$as_echo "found" >&6; }
15140 LIBS="$LIBS -lz"
15141 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15142 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15143 else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15145$as_echo "just compiled" >&6; }
Iain Buclawbb503122019-04-12 20:13:34 +000015146 LIBZ=../../zlib/libz_convenience.la
15147 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015148
Iain Buclawb4c522f2018-10-28 19:51:47 +000015149
Iain Buclawbb503122019-04-12 20:13:34 +000015150 ac_ext=c
15151ac_cpp='$CPP $CPPFLAGS'
15152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15154ac_compiler_gnu=$ac_cv_c_compiler_gnu
Iain Buclawb4c522f2018-10-28 19:51:47 +000015155
15156
15157
15158
15159
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15161$as_echo_n "checking D GCC version... " >&6; }
15162 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15164$as_echo "$gcc_version" >&6; }
15165
15166
15167
15168# Check whether --with-cross-host was given.
15169if test "${with_cross_host+set}" = set; then :
15170 withval=$with_cross_host;
15171fi
15172
15173
Iain Buclawac677522018-11-02 08:29:50 +000015174 libphobos_toolexecdir=no
15175 libphobos_toolexeclibdir=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015176
Iain Buclawac677522018-11-02 08:29:50 +000015177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15178$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15179 # Check whether --enable-version-specific-runtime-libs was given.
15180if test "${enable_version_specific_runtime_libs+set}" = set; then :
15181 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15182 yes) version_specific_libs=yes ;;
15183 no) version_specific_libs=no ;;
15184 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15185 esac
15186else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015187 version_specific_libs=no
Iain Buclawac677522018-11-02 08:29:50 +000015188fi
15189
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15191$as_echo "$version_specific_libs" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015192
15193 # Version-specific runtime libs processing.
15194 if test $version_specific_libs = yes; then
Iain Buclawac677522018-11-02 08:29:50 +000015195 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15196 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015197 else
Iain Buclawac677522018-11-02 08:29:50 +000015198 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15199 # Install a library built with a cross compiler in tooldir, not libdir.
15200 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15201 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15202 libphobos_toolexeclibdir='${toolexecdir}/lib'
15203 else
15204 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15205 libphobos_toolexeclibdir='${libdir}'
15206 fi
15207 multi_os_directory=`$GDC -print-multi-os-directory`
15208 case $multi_os_directory in
15209 .) ;; # Avoid trailing /.
15210 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15211 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015212 fi
15213
15214
15215
15216 # Default case for install directory for D sources files.
15217 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15218
15219
15220
Rainer Orth0b6e3122019-02-14 17:47:49 +000015221# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15222if test "$DCFG_MINFO_BRACKETING" = "false"; then
15223 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15224else
15225 DRTSTUFF_SPEC=/dev/null
15226fi
15227
15228
Iain Buclawb4c522f2018-10-28 19:51:47 +000015229# Add dependencies for libgphobos.spec file
15230SPEC_PHOBOS_DEPS="$LIBS"
15231
15232
15233# Libdruntime / phobos soname version
Iain Buclaw85041a52018-11-28 17:54:07 +000015234libtool_VERSION=76:3:0
Iain Buclawb4c522f2018-10-28 19:51:47 +000015235
15236
15237# Set default flags (after DRUNTIME_WERROR!)
15238if test -z "$GDCFLAGS"; then
15239 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15240fi
15241
15242
15243if test -z "$GDCFLAGSX"; then
15244 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15245fi
15246
15247
15248# Sanity check for the cross-compilation case:
15249ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
Joseph Myers22e05272018-10-31 17:03:16 +000015250if test "x$ac_cv_header_stdio_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000015251 :
15252else
Joseph Myers22e05272018-10-31 17:03:16 +000015253 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000015254fi
15255
15256
15257
Iain Buclawac677522018-11-02 08:29:50 +000015258ac_config_files="$ac_config_files Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015259
15260
15261ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15262
15263ac_config_files="$ac_config_files src/libgphobos.spec"
15264
15265ac_config_files="$ac_config_files testsuite/testsuite_flags"
15266
15267
Iain Buclawac677522018-11-02 08:29:50 +000015268# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15269# that multilib installs will end up installed in the correct place.
15270# The testsuite needs it for multilib-aware ABI baseline files.
15271# To work around this not being passed down from config-ml.in ->
15272# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15273# append it here. Only modify Makefiles that have just been created.
15274#
15275# Also, get rid of this simulated-VPATH thing that automake does.
15276ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015277
15278
15279cat >confcache <<\_ACEOF
15280# This file is a shell script that caches the results of configure
15281# tests run on this system so they can be shared between configure
15282# scripts and configure runs, see configure's option --config-cache.
15283# It is not useful on other systems. If it contains results you don't
15284# want to keep, you may remove or edit it.
15285#
15286# config.status only pays attention to the cache file if you give it
15287# the --recheck option to rerun configure.
15288#
15289# `ac_cv_env_foo' variables (set or unset) will be overridden when
15290# loading this file, other *unset* `ac_cv_foo' will be assigned the
15291# following values.
15292
15293_ACEOF
15294
15295# The following way of writing the cache mishandles newlines in values,
15296# but we know of no workaround that is simple, portable, and efficient.
15297# So, we kill variables containing newlines.
15298# Ultrix sh set writes to stderr and can't be redirected directly,
15299# and sets the high bit in the cache file unless we assign to the vars.
15300(
15301 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15302 eval ac_val=\$$ac_var
15303 case $ac_val in #(
15304 *${as_nl}*)
15305 case $ac_var in #(
15306 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15307$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15308 esac
15309 case $ac_var in #(
15310 _ | IFS | as_nl) ;; #(
15311 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15312 *) { eval $ac_var=; unset $ac_var;} ;;
15313 esac ;;
15314 esac
15315 done
15316
15317 (set) 2>&1 |
15318 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15319 *${as_nl}ac_space=\ *)
15320 # `set' does not quote correctly, so add quotes: double-quote
15321 # substitution turns \\\\ into \\, and sed turns \\ into \.
15322 sed -n \
15323 "s/'/'\\\\''/g;
15324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15325 ;; #(
15326 *)
15327 # `set' quotes correctly as required by POSIX, so do not add quotes.
15328 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15329 ;;
15330 esac |
15331 sort
15332) |
15333 sed '
15334 /^ac_cv_env_/b end
15335 t clear
15336 :clear
15337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15338 t end
15339 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15340 :end' >>confcache
15341if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15342 if test -w "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015343 if test "x$cache_file" != "x/dev/null"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000015344 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15345$as_echo "$as_me: updating cache $cache_file" >&6;}
Joseph Myers22e05272018-10-31 17:03:16 +000015346 if test ! -f "$cache_file" || test -h "$cache_file"; then
15347 cat confcache >"$cache_file"
15348 else
15349 case $cache_file in #(
15350 */* | ?:*)
15351 mv -f confcache "$cache_file"$$ &&
15352 mv -f "$cache_file"$$ "$cache_file" ;; #(
15353 *)
15354 mv -f confcache "$cache_file" ;;
15355 esac
15356 fi
15357 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015358 else
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15360$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15361 fi
15362fi
15363rm -f confcache
15364
15365test "x$prefix" = xNONE && prefix=$ac_default_prefix
15366# Let make expand exec_prefix.
15367test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15368
15369DEFS=-DHAVE_CONFIG_H
15370
15371ac_libobjs=
15372ac_ltlibobjs=
Joseph Myers22e05272018-10-31 17:03:16 +000015373U=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015374for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15375 # 1. Remove the extension, and $U if already installed.
15376 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15377 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15378 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15379 # will be set to the directory where LIBOBJS objects are built.
15380 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15381 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15382done
15383LIBOBJS=$ac_libobjs
15384
15385LTLIBOBJS=$ac_ltlibobjs
15386
15387
Joseph Myers22e05272018-10-31 17:03:16 +000015388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15389$as_echo_n "checking that generated files are newer than configure... " >&6; }
15390 if test -n "$am_sleep_pid"; then
15391 # Hide warnings about reused PIDs.
15392 wait $am_sleep_pid 2>/dev/null
15393 fi
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15395$as_echo "done" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015396 if test -n "$EXEEXT"; then
15397 am__EXEEXT_TRUE=
15398 am__EXEEXT_FALSE='#'
15399else
15400 am__EXEEXT_TRUE='#'
15401 am__EXEEXT_FALSE=
15402fi
15403
15404if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015405 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015406Usually this means the macro was only invoked conditionally." "$LINENO" 5
15407fi
Rainer Orth7d31d332019-04-14 09:38:01 +000015408if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15409 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15410Usually this means the macro was only invoked conditionally." "$LINENO" 5
15411fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015412if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015413 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015414Usually this means the macro was only invoked conditionally." "$LINENO" 5
15415fi
15416if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015417 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015418Usually this means the macro was only invoked conditionally." "$LINENO" 5
15419fi
15420if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015421 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015422Usually this means the macro was only invoked conditionally." "$LINENO" 5
15423fi
15424if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015425 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015426Usually this means the macro was only invoked conditionally." "$LINENO" 5
15427fi
15428if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015429 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015430Usually this means the macro was only invoked conditionally." "$LINENO" 5
15431fi
15432if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015433 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015434Usually this means the macro was only invoked conditionally." "$LINENO" 5
15435fi
15436if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015437 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015438Usually this means the macro was only invoked conditionally." "$LINENO" 5
15439fi
15440if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015441 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015442Usually this means the macro was only invoked conditionally." "$LINENO" 5
15443fi
15444if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015445 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015446Usually this means the macro was only invoked conditionally." "$LINENO" 5
15447fi
15448if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015449 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015450Usually this means the macro was only invoked conditionally." "$LINENO" 5
15451fi
15452if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015453 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015454Usually this means the macro was only invoked conditionally." "$LINENO" 5
15455fi
15456if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015457 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015458Usually this means the macro was only invoked conditionally." "$LINENO" 5
15459fi
15460if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015461 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015462Usually this means the macro was only invoked conditionally." "$LINENO" 5
15463fi
Rainer Orth0b6e3122019-02-14 17:47:49 +000015464if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15465 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15466Usually this means the macro was only invoked conditionally." "$LINENO" 5
15467fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015468
Joseph Myers22e05272018-10-31 17:03:16 +000015469: "${CONFIG_STATUS=./config.status}"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015470ac_write_fail=0
15471ac_clean_files_save=$ac_clean_files
15472ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15473{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15474$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15475as_write_fail=0
15476cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15477#! $SHELL
15478# Generated by $as_me.
15479# Run this file to recreate the current configuration.
15480# Compiler output produced by configure, useful for debugging
15481# configure, is in config.log if it exists.
15482
15483debug=false
15484ac_cs_recheck=false
15485ac_cs_silent=false
15486
15487SHELL=\${CONFIG_SHELL-$SHELL}
15488export SHELL
15489_ASEOF
15490cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15491## -------------------- ##
15492## M4sh Initialization. ##
15493## -------------------- ##
15494
15495# Be more Bourne compatible
15496DUALCASE=1; export DUALCASE # for MKS sh
15497if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15498 emulate sh
15499 NULLCMD=:
15500 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15501 # is contrary to our usage. Disable this feature.
15502 alias -g '${1+"$@"}'='"$@"'
15503 setopt NO_GLOB_SUBST
15504else
15505 case `(set -o) 2>/dev/null` in #(
15506 *posix*) :
15507 set -o posix ;; #(
15508 *) :
15509 ;;
15510esac
15511fi
15512
15513
15514as_nl='
15515'
15516export as_nl
15517# Printing a long string crashes Solaris 7 /usr/bin/printf.
15518as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15519as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15520as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15521# Prefer a ksh shell builtin over an external printf program on Solaris,
15522# but without wasting forks for bash or zsh.
15523if test -z "$BASH_VERSION$ZSH_VERSION" \
15524 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15525 as_echo='print -r --'
15526 as_echo_n='print -rn --'
15527elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15528 as_echo='printf %s\n'
15529 as_echo_n='printf %s'
15530else
15531 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15532 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15533 as_echo_n='/usr/ucb/echo -n'
15534 else
15535 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15536 as_echo_n_body='eval
15537 arg=$1;
15538 case $arg in #(
15539 *"$as_nl"*)
15540 expr "X$arg" : "X\\(.*\\)$as_nl";
15541 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15542 esac;
15543 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15544 '
15545 export as_echo_n_body
15546 as_echo_n='sh -c $as_echo_n_body as_echo'
15547 fi
15548 export as_echo_body
15549 as_echo='sh -c $as_echo_body as_echo'
15550fi
15551
15552# The user is always right.
15553if test "${PATH_SEPARATOR+set}" != set; then
15554 PATH_SEPARATOR=:
15555 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15556 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15557 PATH_SEPARATOR=';'
15558 }
15559fi
15560
15561
15562# IFS
15563# We need space, tab and new line, in precisely that order. Quoting is
15564# there to prevent editors from complaining about space-tab.
15565# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15566# splitting by setting IFS to empty value.)
15567IFS=" "" $as_nl"
15568
15569# Find who we are. Look in the path if we contain no directory separator.
Joseph Myers22e05272018-10-31 17:03:16 +000015570as_myself=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015571case $0 in #((
15572 *[\\/]* ) as_myself=$0 ;;
15573 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15574for as_dir in $PATH
15575do
15576 IFS=$as_save_IFS
15577 test -z "$as_dir" && as_dir=.
15578 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15579 done
15580IFS=$as_save_IFS
15581
15582 ;;
15583esac
15584# We did not find ourselves, most probably we were run as `sh COMMAND'
15585# in which case we are not to be found in the path.
15586if test "x$as_myself" = x; then
15587 as_myself=$0
15588fi
15589if test ! -f "$as_myself"; then
15590 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15591 exit 1
15592fi
15593
15594# Unset variables that we do not need and which cause bugs (e.g. in
15595# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15596# suppresses any "Segmentation fault" message there. '((' could
15597# trigger a bug in pdksh 5.2.14.
15598for as_var in BASH_ENV ENV MAIL MAILPATH
15599do eval test x\${$as_var+set} = xset \
15600 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15601done
15602PS1='$ '
15603PS2='> '
15604PS4='+ '
15605
15606# NLS nuisances.
15607LC_ALL=C
15608export LC_ALL
15609LANGUAGE=C
15610export LANGUAGE
15611
15612# CDPATH.
15613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15614
15615
Joseph Myers22e05272018-10-31 17:03:16 +000015616# as_fn_error STATUS ERROR [LINENO LOG_FD]
15617# ----------------------------------------
Iain Buclawb4c522f2018-10-28 19:51:47 +000015618# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15619# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Joseph Myers22e05272018-10-31 17:03:16 +000015620# script with STATUS, using 1 if that was 0.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015621as_fn_error ()
15622{
Joseph Myers22e05272018-10-31 17:03:16 +000015623 as_status=$1; test $as_status -eq 0 && as_status=1
15624 if test "$4"; then
15625 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15626 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Iain Buclawb4c522f2018-10-28 19:51:47 +000015627 fi
Joseph Myers22e05272018-10-31 17:03:16 +000015628 $as_echo "$as_me: error: $2" >&2
Iain Buclawb4c522f2018-10-28 19:51:47 +000015629 as_fn_exit $as_status
15630} # as_fn_error
15631
15632
15633# as_fn_set_status STATUS
15634# -----------------------
15635# Set $? to STATUS, without forking.
15636as_fn_set_status ()
15637{
15638 return $1
15639} # as_fn_set_status
15640
15641# as_fn_exit STATUS
15642# -----------------
15643# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15644as_fn_exit ()
15645{
15646 set +e
15647 as_fn_set_status $1
15648 exit $1
15649} # as_fn_exit
15650
15651# as_fn_unset VAR
15652# ---------------
15653# Portably unset VAR.
15654as_fn_unset ()
15655{
15656 { eval $1=; unset $1;}
15657}
15658as_unset=as_fn_unset
15659# as_fn_append VAR VALUE
15660# ----------------------
15661# Append the text in VALUE to the end of the definition contained in VAR. Take
15662# advantage of any shell optimizations that allow amortized linear growth over
15663# repeated appends, instead of the typical quadratic growth present in naive
15664# implementations.
15665if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15666 eval 'as_fn_append ()
15667 {
15668 eval $1+=\$2
15669 }'
15670else
15671 as_fn_append ()
15672 {
15673 eval $1=\$$1\$2
15674 }
15675fi # as_fn_append
15676
15677# as_fn_arith ARG...
15678# ------------------
15679# Perform arithmetic evaluation on the ARGs, and store the result in the
15680# global $as_val. Take advantage of shells that can avoid forks. The arguments
15681# must be portable across $(()) and expr.
15682if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15683 eval 'as_fn_arith ()
15684 {
15685 as_val=$(( $* ))
15686 }'
15687else
15688 as_fn_arith ()
15689 {
15690 as_val=`expr "$@" || test $? -eq 1`
15691 }
15692fi # as_fn_arith
15693
15694
15695if expr a : '\(a\)' >/dev/null 2>&1 &&
15696 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15697 as_expr=expr
15698else
15699 as_expr=false
15700fi
15701
15702if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15703 as_basename=basename
15704else
15705 as_basename=false
15706fi
15707
15708if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15709 as_dirname=dirname
15710else
15711 as_dirname=false
15712fi
15713
15714as_me=`$as_basename -- "$0" ||
15715$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15716 X"$0" : 'X\(//\)$' \| \
15717 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15718$as_echo X/"$0" |
15719 sed '/^.*\/\([^/][^/]*\)\/*$/{
15720 s//\1/
15721 q
15722 }
15723 /^X\/\(\/\/\)$/{
15724 s//\1/
15725 q
15726 }
15727 /^X\/\(\/\).*/{
15728 s//\1/
15729 q
15730 }
15731 s/.*/./; q'`
15732
15733# Avoid depending upon Character Ranges.
15734as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15735as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15736as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15737as_cr_digits='0123456789'
15738as_cr_alnum=$as_cr_Letters$as_cr_digits
15739
15740ECHO_C= ECHO_N= ECHO_T=
15741case `echo -n x` in #(((((
15742-n*)
15743 case `echo 'xy\c'` in
15744 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15745 xy) ECHO_C='\c';;
15746 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15747 ECHO_T=' ';;
15748 esac;;
15749*)
15750 ECHO_N='-n';;
15751esac
15752
15753rm -f conf$$ conf$$.exe conf$$.file
15754if test -d conf$$.dir; then
15755 rm -f conf$$.dir/conf$$.file
15756else
15757 rm -f conf$$.dir
15758 mkdir conf$$.dir 2>/dev/null
15759fi
15760if (echo >conf$$.file) 2>/dev/null; then
15761 if ln -s conf$$.file conf$$ 2>/dev/null; then
15762 as_ln_s='ln -s'
15763 # ... but there are two gotchas:
15764 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15765 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Joseph Myers22e05272018-10-31 17:03:16 +000015766 # In both cases, we have to default to `cp -pR'.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015767 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Joseph Myers22e05272018-10-31 17:03:16 +000015768 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015769 elif ln conf$$.file conf$$ 2>/dev/null; then
15770 as_ln_s=ln
15771 else
Joseph Myers22e05272018-10-31 17:03:16 +000015772 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015773 fi
15774else
Joseph Myers22e05272018-10-31 17:03:16 +000015775 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015776fi
15777rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15778rmdir conf$$.dir 2>/dev/null
15779
15780
15781# as_fn_mkdir_p
15782# -------------
15783# Create "$as_dir" as a directory, including parents if necessary.
15784as_fn_mkdir_p ()
15785{
15786
15787 case $as_dir in #(
15788 -*) as_dir=./$as_dir;;
15789 esac
15790 test -d "$as_dir" || eval $as_mkdir_p || {
15791 as_dirs=
15792 while :; do
15793 case $as_dir in #(
15794 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15795 *) as_qdir=$as_dir;;
15796 esac
15797 as_dirs="'$as_qdir' $as_dirs"
15798 as_dir=`$as_dirname -- "$as_dir" ||
15799$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15800 X"$as_dir" : 'X\(//\)[^/]' \| \
15801 X"$as_dir" : 'X\(//\)$' \| \
15802 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15803$as_echo X"$as_dir" |
15804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15805 s//\1/
15806 q
15807 }
15808 /^X\(\/\/\)[^/].*/{
15809 s//\1/
15810 q
15811 }
15812 /^X\(\/\/\)$/{
15813 s//\1/
15814 q
15815 }
15816 /^X\(\/\).*/{
15817 s//\1/
15818 q
15819 }
15820 s/.*/./; q'`
15821 test -d "$as_dir" && break
15822 done
15823 test -z "$as_dirs" || eval "mkdir $as_dirs"
Joseph Myers22e05272018-10-31 17:03:16 +000015824 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015825
15826
15827} # as_fn_mkdir_p
15828if mkdir -p . 2>/dev/null; then
15829 as_mkdir_p='mkdir -p "$as_dir"'
15830else
15831 test -d ./-p && rmdir ./-p
15832 as_mkdir_p=false
15833fi
15834
Joseph Myers22e05272018-10-31 17:03:16 +000015835
15836# as_fn_executable_p FILE
15837# -----------------------
15838# Test if FILE is an executable regular file.
15839as_fn_executable_p ()
15840{
15841 test -f "$1" && test -x "$1"
15842} # as_fn_executable_p
15843as_test_x='test -x'
15844as_executable_p=as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +000015845
15846# Sed expression to map a string onto a valid CPP name.
15847as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15848
15849# Sed expression to map a string onto a valid variable name.
15850as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15851
15852
15853exec 6>&1
15854## ----------------------------------- ##
15855## Main body of $CONFIG_STATUS script. ##
15856## ----------------------------------- ##
15857_ASEOF
15858test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15859
15860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15861# Save the log message, to keep $0 and so on meaningful, and to
15862# report actual input values of CONFIG_FILES etc. instead of their
15863# values after options handling.
15864ac_log="
15865This file was extended by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +000015866generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +000015867
15868 CONFIG_FILES = $CONFIG_FILES
15869 CONFIG_HEADERS = $CONFIG_HEADERS
15870 CONFIG_LINKS = $CONFIG_LINKS
15871 CONFIG_COMMANDS = $CONFIG_COMMANDS
15872 $ $0 $@
15873
15874on `(hostname || uname -n) 2>/dev/null | sed 1q`
15875"
15876
15877_ACEOF
15878
15879case $ac_config_files in *"
15880"*) set x $ac_config_files; shift; ac_config_files=$*;;
15881esac
15882
15883case $ac_config_headers in *"
15884"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15885esac
15886
15887
15888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15889# Files that config.status was made for.
15890config_files="$ac_config_files"
15891config_headers="$ac_config_headers"
15892config_commands="$ac_config_commands"
15893
15894_ACEOF
15895
15896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15897ac_cs_usage="\
15898\`$as_me' instantiates files and other configuration actions
15899from templates according to the current configuration. Unless the files
15900and actions are specified as TAGs, all are instantiated by default.
15901
15902Usage: $0 [OPTION]... [TAG]...
15903
15904 -h, --help print this help, then exit
15905 -V, --version print version number and configuration settings, then exit
Joseph Myers22e05272018-10-31 17:03:16 +000015906 --config print configuration, then exit
Iain Buclawb4c522f2018-10-28 19:51:47 +000015907 -q, --quiet, --silent
15908 do not print progress messages
15909 -d, --debug don't remove temporary files
15910 --recheck update $as_me by reconfiguring in the same conditions
15911 --file=FILE[:TEMPLATE]
15912 instantiate the configuration file FILE
15913 --header=FILE[:TEMPLATE]
15914 instantiate the configuration header FILE
15915
15916Configuration files:
15917$config_files
15918
15919Configuration headers:
15920$config_headers
15921
15922Configuration commands:
15923$config_commands
15924
15925Report bugs to the package provider."
15926
15927_ACEOF
15928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000015929ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015930ac_cs_version="\\
15931package-unused config.status version-unused
Joseph Myers22e05272018-10-31 17:03:16 +000015932configured by $0, generated by GNU Autoconf 2.69,
15933 with options \\"\$ac_cs_config\\"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015934
Rainer Orth0b6e3122019-02-14 17:47:49 +000015935Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015936This config.status script is free software; the Free Software Foundation
15937gives unlimited permission to copy, distribute and modify it."
15938
15939ac_pwd='$ac_pwd'
15940srcdir='$srcdir'
15941INSTALL='$INSTALL'
15942MKDIR_P='$MKDIR_P'
15943AWK='$AWK'
15944test -n "\$AWK" || AWK=awk
15945_ACEOF
15946
15947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15948# The default lists apply if the user does not specify any file.
15949ac_need_defaults=:
15950while test $# != 0
15951do
15952 case $1 in
Joseph Myers22e05272018-10-31 17:03:16 +000015953 --*=?*)
Iain Buclawb4c522f2018-10-28 19:51:47 +000015954 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15955 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15956 ac_shift=:
15957 ;;
Joseph Myers22e05272018-10-31 17:03:16 +000015958 --*=)
15959 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15960 ac_optarg=
15961 ac_shift=:
15962 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000015963 *)
15964 ac_option=$1
15965 ac_optarg=$2
15966 ac_shift=shift
15967 ;;
15968 esac
15969
15970 case $ac_option in
15971 # Handling of the options.
15972 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15973 ac_cs_recheck=: ;;
15974 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15975 $as_echo "$ac_cs_version"; exit ;;
Joseph Myers22e05272018-10-31 17:03:16 +000015976 --config | --confi | --conf | --con | --co | --c )
15977 $as_echo "$ac_cs_config"; exit ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000015978 --debug | --debu | --deb | --de | --d | -d )
15979 debug=: ;;
15980 --file | --fil | --fi | --f )
15981 $ac_shift
15982 case $ac_optarg in
15983 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Joseph Myers22e05272018-10-31 17:03:16 +000015984 '') as_fn_error $? "missing file argument" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000015985 esac
15986 as_fn_append CONFIG_FILES " '$ac_optarg'"
15987 ac_need_defaults=false;;
15988 --header | --heade | --head | --hea )
15989 $ac_shift
15990 case $ac_optarg in
15991 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15992 esac
15993 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15994 ac_need_defaults=false;;
15995 --he | --h)
15996 # Conflict between --help and --header
Joseph Myers22e05272018-10-31 17:03:16 +000015997 as_fn_error $? "ambiguous option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015998Try \`$0 --help' for more information.";;
15999 --help | --hel | -h )
16000 $as_echo "$ac_cs_usage"; exit ;;
16001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16002 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16003 ac_cs_silent=: ;;
16004
16005 # This is an error.
Joseph Myers22e05272018-10-31 17:03:16 +000016006 -*) as_fn_error $? "unrecognized option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016007Try \`$0 --help' for more information." ;;
16008
16009 *) as_fn_append ac_config_targets " $1"
16010 ac_need_defaults=false ;;
16011
16012 esac
16013 shift
16014done
16015
16016ac_configure_extra_args=
16017
16018if $ac_cs_silent; then
16019 exec 6>/dev/null
16020 ac_configure_extra_args="$ac_configure_extra_args --silent"
16021fi
16022
16023_ACEOF
16024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16025if \$ac_cs_recheck; then
Joseph Myers22e05272018-10-31 17:03:16 +000016026 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Iain Buclawb4c522f2018-10-28 19:51:47 +000016027 shift
16028 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16029 CONFIG_SHELL='$SHELL'
16030 export CONFIG_SHELL
16031 exec "\$@"
16032fi
16033
16034_ACEOF
16035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16036exec 5>>config.log
16037{
16038 echo
16039 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16040## Running $as_me. ##
16041_ASBOX
16042 $as_echo "$ac_log"
16043} >&5
16044
16045_ACEOF
16046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16047#
16048# INIT-COMMANDS
16049#
16050
16051srcdir="$srcdir"
16052host="$host"
16053target="$target"
16054with_multisubdir="$with_multisubdir"
16055with_multisrctop="$with_multisrctop"
16056with_target_subdir="$with_target_subdir"
16057ac_configure_args="${multilib_arg} ${ac_configure_args}"
16058multi_basedir="$multi_basedir"
16059CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16060CC="$CC"
16061CXX="$CXX"
16062GFORTRAN="$GFORTRAN"
16063GDC="$GDC"
16064
16065
16066# The HP-UX ksh and POSIX shell print the target directory to stdout
16067# if CDPATH is set.
16068(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16069
16070sed_quote_subst='$sed_quote_subst'
16071double_quote_subst='$double_quote_subst'
16072delay_variable_subst='$delay_variable_subst'
16073macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16074macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16075enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16076enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16077pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16078enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16079SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16080ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16081host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16082host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16083host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16084build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16085build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16086build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16087SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16088Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16089GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16090EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16091FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16092LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16093NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16094LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16095max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16096ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16097exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16098lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16099lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16100lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16101reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16102reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16103OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16104deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16105file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16106AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16107AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16108STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16109RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16110old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16111old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16112old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16113lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16114CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16115CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16116compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16117GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16118lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16119lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16120lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16121lt_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"`'
16122objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16123MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16124lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16125lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16126lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16127lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16128lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16129need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16130DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16131NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16132LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16133OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16134OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16135libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16136shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16137extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16138archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16139enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16140export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16141whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16142compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16143old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16144old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16145archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16146archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16147module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16148module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16149with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16150allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16151no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16152hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16153hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16154hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16155hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16156hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16157hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16158hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16159hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16160inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16161link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16162fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16163always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16164export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16165exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16166include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16167prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16168file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16169variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16170need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16171need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16172version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16173runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16174shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16175shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16176libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16177library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16178soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16179install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16180postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16181postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16182finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16183finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16184hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16185sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16186sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16187hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16188enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16189enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16190enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16191old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16192striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16193LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16194reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16195reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16196old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16197compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16198GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16199lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16200lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16201lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16202lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16203lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16204archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16205enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16206export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16207whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16208compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16209old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16210old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16211archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16212archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16213module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16214module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16215with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16216allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16217no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16218hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16219hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16220hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16221hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16222hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16223hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16224hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16225hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16226inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16227link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16228fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16229always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16230export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16231exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16232include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16233prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16234file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16235hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16236
16237LTCC='$LTCC'
16238LTCFLAGS='$LTCFLAGS'
16239compiler='$compiler_DEFAULT'
16240
16241# A function that is used when there is no print builtin or printf.
16242func_fallback_echo ()
16243{
16244 eval 'cat <<_LTECHO_EOF
16245\$1
16246_LTECHO_EOF'
16247}
16248
16249# Quote evaled strings.
16250for var in SHELL \
16251ECHO \
16252SED \
16253GREP \
16254EGREP \
16255FGREP \
16256LD \
16257NM \
16258LN_S \
16259lt_SP2NL \
16260lt_NL2SP \
16261reload_flag \
16262OBJDUMP \
16263deplibs_check_method \
16264file_magic_cmd \
16265AR \
16266AR_FLAGS \
16267STRIP \
16268RANLIB \
16269CC \
16270CFLAGS \
16271compiler \
16272lt_cv_sys_global_symbol_pipe \
16273lt_cv_sys_global_symbol_to_cdecl \
16274lt_cv_sys_global_symbol_to_c_name_address \
16275lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16276lt_prog_compiler_no_builtin_flag \
16277lt_prog_compiler_wl \
16278lt_prog_compiler_pic \
16279lt_prog_compiler_static \
16280lt_cv_prog_compiler_c_o \
16281need_locks \
16282DSYMUTIL \
16283NMEDIT \
16284LIPO \
16285OTOOL \
16286OTOOL64 \
16287shrext_cmds \
16288export_dynamic_flag_spec \
16289whole_archive_flag_spec \
16290compiler_needs_object \
16291with_gnu_ld \
16292allow_undefined_flag \
16293no_undefined_flag \
16294hardcode_libdir_flag_spec \
16295hardcode_libdir_flag_spec_ld \
16296hardcode_libdir_separator \
16297fix_srcfile_path \
16298exclude_expsyms \
16299include_expsyms \
16300file_list_spec \
16301variables_saved_for_relink \
16302libname_spec \
16303library_names_spec \
16304soname_spec \
16305install_override_mode \
16306finish_eval \
16307old_striplib \
16308striplib \
16309LD_D \
16310reload_flag_D \
16311compiler_D \
16312lt_prog_compiler_no_builtin_flag_D \
16313lt_prog_compiler_wl_D \
16314lt_prog_compiler_pic_D \
16315lt_prog_compiler_static_D \
16316lt_cv_prog_compiler_c_o_D \
16317export_dynamic_flag_spec_D \
16318whole_archive_flag_spec_D \
16319compiler_needs_object_D \
16320with_gnu_ld_D \
16321allow_undefined_flag_D \
16322no_undefined_flag_D \
16323hardcode_libdir_flag_spec_D \
16324hardcode_libdir_flag_spec_ld_D \
16325hardcode_libdir_separator_D \
16326fix_srcfile_path_D \
16327exclude_expsyms_D \
16328include_expsyms_D \
16329file_list_spec_D; do
16330 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16331 *[\\\\\\\`\\"\\\$]*)
16332 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16333 ;;
16334 *)
16335 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16336 ;;
16337 esac
16338done
16339
16340# Double-quote double-evaled strings.
16341for var in reload_cmds \
16342old_postinstall_cmds \
16343old_postuninstall_cmds \
16344old_archive_cmds \
16345extract_expsyms_cmds \
16346old_archive_from_new_cmds \
16347old_archive_from_expsyms_cmds \
16348archive_cmds \
16349archive_expsym_cmds \
16350module_cmds \
16351module_expsym_cmds \
16352export_symbols_cmds \
16353prelink_cmds \
16354postinstall_cmds \
16355postuninstall_cmds \
16356finish_cmds \
16357sys_lib_search_path_spec \
16358sys_lib_dlsearch_path_spec \
16359reload_cmds_D \
16360old_archive_cmds_D \
16361old_archive_from_new_cmds_D \
16362old_archive_from_expsyms_cmds_D \
16363archive_cmds_D \
16364archive_expsym_cmds_D \
16365module_cmds_D \
16366module_expsym_cmds_D \
16367export_symbols_cmds_D \
16368prelink_cmds_D; do
16369 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16370 *[\\\\\\\`\\"\\\$]*)
16371 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16372 ;;
16373 *)
16374 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16375 ;;
16376 esac
16377done
16378
16379ac_aux_dir='$ac_aux_dir'
16380xsi_shell='$xsi_shell'
16381lt_shell_append='$lt_shell_append'
16382
16383# See if we are running on zsh, and set the options which allow our
16384# commands through without removal of \ escapes INIT.
16385if test -n "\${ZSH_VERSION+set}" ; then
16386 setopt NO_GLOB_SUBST
16387fi
16388
16389
16390 PACKAGE='$PACKAGE'
16391 VERSION='$VERSION'
16392 TIMESTAMP='$TIMESTAMP'
16393 RM='$RM'
16394 ofile='$ofile'
16395
16396
16397
16398
16399
16400
Iain Buclawb4c522f2018-10-28 19:51:47 +000016401_ACEOF
16402
16403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16404
16405# Handling of arguments.
16406for ac_config_target in $ac_config_targets
16407do
16408 case $ac_config_target in
16409 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16410 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16411 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16412 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016413 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16414 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16415 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16416 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
Iain Buclawac677522018-11-02 08:29:50 +000016417 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16418 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16419 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016420
Joseph Myers22e05272018-10-31 17:03:16 +000016421 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016422 esac
16423done
16424
16425
16426# If the user did not use the arguments to specify the items to instantiate,
16427# then the envvar interface is used. Set only those that are not.
16428# We use the long form for the default assignment because of an extremely
16429# bizarre bug on SunOS 4.1.3.
16430if $ac_need_defaults; then
16431 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16432 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16433 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16434fi
16435
16436# Have a temporary directory for convenience. Make it in the build tree
16437# simply because there is no reason against having it here, and in addition,
16438# creating and moving files from /tmp can sometimes cause problems.
16439# Hook for its removal unless debugging.
16440# Note that there is a small window in which the directory will not be cleaned:
16441# after its creation but before its name has been assigned to `$tmp'.
16442$debug ||
16443{
Joseph Myers22e05272018-10-31 17:03:16 +000016444 tmp= ac_tmp=
Iain Buclawb4c522f2018-10-28 19:51:47 +000016445 trap 'exit_status=$?
Joseph Myers22e05272018-10-31 17:03:16 +000016446 : "${ac_tmp:=$tmp}"
16447 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Iain Buclawb4c522f2018-10-28 19:51:47 +000016448' 0
16449 trap 'as_fn_exit 1' 1 2 13 15
16450}
16451# Create a (secure) tmp directory for tmp files.
16452
16453{
16454 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Joseph Myers22e05272018-10-31 17:03:16 +000016455 test -d "$tmp"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016456} ||
16457{
16458 tmp=./conf$$-$RANDOM
16459 (umask 077 && mkdir "$tmp")
Joseph Myers22e05272018-10-31 17:03:16 +000016460} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16461ac_tmp=$tmp
Iain Buclawb4c522f2018-10-28 19:51:47 +000016462
16463# Set up the scripts for CONFIG_FILES section.
16464# No need to generate them if there are no CONFIG_FILES.
16465# This happens for instance with `./config.status config.h'.
16466if test -n "$CONFIG_FILES"; then
16467
Rainer Orth0b6e3122019-02-14 17:47:49 +000016468if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16469 ac_cs_awk_getline=:
16470 ac_cs_awk_pipe_init=
16471 ac_cs_awk_read_file='
16472 while ((getline aline < (F[key])) > 0)
16473 print(aline)
16474 close(F[key])'
16475 ac_cs_awk_pipe_fini=
16476else
16477 ac_cs_awk_getline=false
16478 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16479 ac_cs_awk_read_file='
16480 print "|#_!!_#|"
16481 print "cat " F[key] " &&"
16482 '$ac_cs_awk_pipe_init
16483 # The final `:' finishes the AND list.
16484 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16485fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000016486ac_cr=`echo X | tr X '\015'`
16487# On cygwin, bash can eat \r inside `` if the user requested igncr.
16488# But we know of no other shell where ac_cr would be empty at this
16489# point, so we can use a bashism as a fallback.
16490if test "x$ac_cr" = x; then
16491 eval ac_cr=\$\'\\r\'
16492fi
16493ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16494if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016495 ac_cs_awk_cr='\\r'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016496else
16497 ac_cs_awk_cr=$ac_cr
16498fi
16499
Joseph Myers22e05272018-10-31 17:03:16 +000016500echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016501_ACEOF
16502
Rainer Orth0b6e3122019-02-14 17:47:49 +000016503# Create commands to substitute file output variables.
16504{
16505 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16506 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16507 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16508 echo "_ACAWK" &&
16509 echo "_ACEOF"
16510} >conf$$files.sh &&
16511. ./conf$$files.sh ||
16512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16513rm -f conf$$files.sh
Iain Buclawb4c522f2018-10-28 19:51:47 +000016514
16515{
16516 echo "cat >conf$$subs.awk <<_ACEOF" &&
16517 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16518 echo "_ACEOF"
16519} >conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016520 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16521ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Iain Buclawb4c522f2018-10-28 19:51:47 +000016522ac_delim='%!_!# '
16523for ac_last_try in false false false false false :; do
16524 . ./conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016526
16527 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16528 if test $ac_delim_n = $ac_delim_num; then
16529 break
16530 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016531 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016532 else
16533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16534 fi
16535done
16536rm -f conf$$subs.sh
16537
16538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016539cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016540_ACEOF
16541sed -n '
16542h
16543s/^/S["/; s/!.*/"]=/
16544p
16545g
16546s/^[^!]*!//
16547:repl
16548t repl
16549s/'"$ac_delim"'$//
16550t delim
16551:nl
16552h
Joseph Myers22e05272018-10-31 17:03:16 +000016553s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016554t more1
16555s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16556p
16557n
16558b repl
16559:more1
16560s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16561p
16562g
16563s/.\{148\}//
16564t nl
16565:delim
16566h
Joseph Myers22e05272018-10-31 17:03:16 +000016567s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016568t more2
16569s/["\\]/\\&/g; s/^/"/; s/$/"/
16570p
16571b
16572:more2
16573s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16574p
16575g
16576s/.\{148\}//
16577t delim
16578' <conf$$subs.awk | sed '
16579/^[^""]/{
16580 N
16581 s/\n//
16582}
16583' >>$CONFIG_STATUS || ac_write_fail=1
16584rm -f conf$$subs.awk
16585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16586_ACAWK
Joseph Myers22e05272018-10-31 17:03:16 +000016587cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016588 for (key in S) S_is_set[key] = 1
16589 FS = ""
Rainer Orth0b6e3122019-02-14 17:47:49 +000016590 \$ac_cs_awk_pipe_init
Iain Buclawb4c522f2018-10-28 19:51:47 +000016591}
16592{
16593 line = $ 0
16594 nfields = split(line, field, "@")
16595 substed = 0
16596 len = length(field[1])
16597 for (i = 2; i < nfields; i++) {
16598 key = field[i]
16599 keylen = length(key)
16600 if (S_is_set[key]) {
16601 value = S[key]
16602 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16603 len += length(value) + length(field[++i])
16604 substed = 1
16605 } else
16606 len += 1 + keylen
16607 }
Rainer Orth0b6e3122019-02-14 17:47:49 +000016608 if (nfields == 3 && !substed) {
16609 key = field[2]
16610 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16611 \$ac_cs_awk_read_file
16612 next
16613 }
16614 }
Iain Buclawb4c522f2018-10-28 19:51:47 +000016615 print line
16616}
Rainer Orth0b6e3122019-02-14 17:47:49 +000016617\$ac_cs_awk_pipe_fini
Iain Buclawb4c522f2018-10-28 19:51:47 +000016618_ACAWK
16619_ACEOF
16620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16621if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16622 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16623else
16624 cat
Joseph Myers22e05272018-10-31 17:03:16 +000016625fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16626 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016627_ACEOF
16628
Joseph Myers22e05272018-10-31 17:03:16 +000016629# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16630# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Iain Buclawb4c522f2018-10-28 19:51:47 +000016631# trailing colons and then remove the whole line if VPATH becomes empty
16632# (actually we leave an empty line to preserve line numbers).
16633if test "x$srcdir" = x.; then
Joseph Myers22e05272018-10-31 17:03:16 +000016634 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16635h
16636s///
16637s/^/:/
16638s/[ ]*$/:/
16639s/:\$(srcdir):/:/g
16640s/:\${srcdir}:/:/g
16641s/:@srcdir@:/:/g
16642s/^:*//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016643s/:*$//
Joseph Myers22e05272018-10-31 17:03:16 +000016644x
16645s/\(=[ ]*\).*/\1/
16646G
16647s/\n//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016648s/^[^=]*=[ ]*$//
16649}'
16650fi
16651
16652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16653fi # test -n "$CONFIG_FILES"
16654
16655# Set up the scripts for CONFIG_HEADERS section.
16656# No need to generate them if there are no CONFIG_HEADERS.
16657# This happens for instance with `./config.status Makefile'.
16658if test -n "$CONFIG_HEADERS"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016659cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Iain Buclawb4c522f2018-10-28 19:51:47 +000016660BEGIN {
16661_ACEOF
16662
16663# Transform confdefs.h into an awk script `defines.awk', embedded as
16664# here-document in config.status, that substitutes the proper values into
16665# config.h.in to produce config.h.
16666
16667# Create a delimiter string that does not exist in confdefs.h, to ease
16668# handling of long lines.
16669ac_delim='%!_!# '
16670for ac_last_try in false false :; do
Joseph Myers22e05272018-10-31 17:03:16 +000016671 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16672 if test -z "$ac_tt"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000016673 break
16674 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016675 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016676 else
16677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16678 fi
16679done
16680
16681# For the awk script, D is an array of macro values keyed by name,
16682# likewise P contains macro parameters if any. Preserve backslash
16683# newline sequences.
16684
16685ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16686sed -n '
16687s/.\{148\}/&'"$ac_delim"'/g
16688t rset
16689:rset
16690s/^[ ]*#[ ]*define[ ][ ]*/ /
16691t def
16692d
16693:def
16694s/\\$//
16695t bsnl
16696s/["\\]/\\&/g
16697s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16698D["\1"]=" \3"/p
16699s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16700d
16701:bsnl
16702s/["\\]/\\&/g
16703s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16704D["\1"]=" \3\\\\\\n"\\/p
16705t cont
16706s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16707t cont
16708d
16709:cont
16710n
16711s/.\{148\}/&'"$ac_delim"'/g
16712t clear
16713:clear
16714s/\\$//
16715t bsnlc
16716s/["\\]/\\&/g; s/^/"/; s/$/"/p
16717d
16718:bsnlc
16719s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16720b cont
16721' <confdefs.h | sed '
16722s/'"$ac_delim"'/"\\\
16723"/g' >>$CONFIG_STATUS || ac_write_fail=1
16724
16725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16726 for (key in D) D_is_set[key] = 1
16727 FS = ""
16728}
16729/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16730 line = \$ 0
16731 split(line, arg, " ")
16732 if (arg[1] == "#") {
16733 defundef = arg[2]
16734 mac1 = arg[3]
16735 } else {
16736 defundef = substr(arg[1], 2)
16737 mac1 = arg[2]
16738 }
16739 split(mac1, mac2, "(") #)
16740 macro = mac2[1]
16741 prefix = substr(line, 1, index(line, defundef) - 1)
16742 if (D_is_set[macro]) {
16743 # Preserve the white space surrounding the "#".
16744 print prefix "define", macro P[macro] D[macro]
16745 next
16746 } else {
16747 # Replace #undef with comments. This is necessary, for example,
16748 # in the case of _POSIX_SOURCE, which is predefined and required
16749 # on some systems where configure will not decide to define it.
16750 if (defundef == "undef") {
16751 print "/*", prefix defundef, macro, "*/"
16752 next
16753 }
16754 }
16755}
16756{ print }
16757_ACAWK
16758_ACEOF
16759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016760 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016761fi # test -n "$CONFIG_HEADERS"
16762
16763
16764eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16765shift
16766for ac_tag
16767do
16768 case $ac_tag in
16769 :[FHLC]) ac_mode=$ac_tag; continue;;
16770 esac
16771 case $ac_mode$ac_tag in
16772 :[FHL]*:*);;
Joseph Myers22e05272018-10-31 17:03:16 +000016773 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016774 :[FH]-) ac_tag=-:-;;
16775 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16776 esac
16777 ac_save_IFS=$IFS
16778 IFS=:
16779 set x $ac_tag
16780 IFS=$ac_save_IFS
16781 shift
16782 ac_file=$1
16783 shift
16784
16785 case $ac_mode in
16786 :L) ac_source=$1;;
16787 :[FH])
16788 ac_file_inputs=
16789 for ac_f
16790 do
16791 case $ac_f in
Joseph Myers22e05272018-10-31 17:03:16 +000016792 -) ac_f="$ac_tmp/stdin";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016793 *) # Look for the file first in the build tree, then in the source tree
16794 # (if the path is not absolute). The absolute path cannot be DOS-style,
16795 # because $ac_f cannot contain `:'.
16796 test -f "$ac_f" ||
16797 case $ac_f in
16798 [\\/$]*) false;;
16799 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16800 esac ||
Joseph Myers22e05272018-10-31 17:03:16 +000016801 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016802 esac
16803 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16804 as_fn_append ac_file_inputs " '$ac_f'"
16805 done
16806
16807 # Let's still pretend it is `configure' which instantiates (i.e., don't
16808 # use $as_me), people would be surprised to read:
16809 # /* config.h. Generated by config.status. */
16810 configure_input='Generated from '`
16811 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16812 `' by configure.'
16813 if test x"$ac_file" != x-; then
16814 configure_input="$ac_file. $configure_input"
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16816$as_echo "$as_me: creating $ac_file" >&6;}
16817 fi
16818 # Neutralize special characters interpreted by sed in replacement strings.
16819 case $configure_input in #(
16820 *\&* | *\|* | *\\* )
16821 ac_sed_conf_input=`$as_echo "$configure_input" |
16822 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16823 *) ac_sed_conf_input=$configure_input;;
16824 esac
16825
16826 case $ac_tag in
Joseph Myers22e05272018-10-31 17:03:16 +000016827 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016829 esac
16830 ;;
16831 esac
16832
16833 ac_dir=`$as_dirname -- "$ac_file" ||
16834$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16835 X"$ac_file" : 'X\(//\)[^/]' \| \
16836 X"$ac_file" : 'X\(//\)$' \| \
16837 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16838$as_echo X"$ac_file" |
16839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16840 s//\1/
16841 q
16842 }
16843 /^X\(\/\/\)[^/].*/{
16844 s//\1/
16845 q
16846 }
16847 /^X\(\/\/\)$/{
16848 s//\1/
16849 q
16850 }
16851 /^X\(\/\).*/{
16852 s//\1/
16853 q
16854 }
16855 s/.*/./; q'`
16856 as_dir="$ac_dir"; as_fn_mkdir_p
16857 ac_builddir=.
16858
16859case "$ac_dir" in
16860.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16861*)
16862 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16863 # A ".." for each directory in $ac_dir_suffix.
16864 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16865 case $ac_top_builddir_sub in
16866 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16867 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16868 esac ;;
16869esac
16870ac_abs_top_builddir=$ac_pwd
16871ac_abs_builddir=$ac_pwd$ac_dir_suffix
16872# for backward compatibility:
16873ac_top_builddir=$ac_top_build_prefix
16874
16875case $srcdir in
16876 .) # We are building in place.
16877 ac_srcdir=.
16878 ac_top_srcdir=$ac_top_builddir_sub
16879 ac_abs_top_srcdir=$ac_pwd ;;
16880 [\\/]* | ?:[\\/]* ) # Absolute name.
16881 ac_srcdir=$srcdir$ac_dir_suffix;
16882 ac_top_srcdir=$srcdir
16883 ac_abs_top_srcdir=$srcdir ;;
16884 *) # Relative name.
16885 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16886 ac_top_srcdir=$ac_top_build_prefix$srcdir
16887 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16888esac
16889ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16890
16891
16892 case $ac_mode in
16893 :F)
16894 #
16895 # CONFIG_FILE
16896 #
16897
16898 case $INSTALL in
16899 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16900 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16901 esac
16902 ac_MKDIR_P=$MKDIR_P
16903 case $MKDIR_P in
16904 [\\/$]* | ?:[\\/]* ) ;;
16905 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16906 esac
16907_ACEOF
16908
16909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16910# If the template does not know about datarootdir, expand it.
16911# FIXME: This hack should be removed a few years after 2.60.
16912ac_datarootdir_hack=; ac_datarootdir_seen=
16913ac_sed_dataroot='
16914/datarootdir/ {
16915 p
16916 q
16917}
16918/@datadir@/p
16919/@docdir@/p
16920/@infodir@/p
16921/@localedir@/p
16922/@mandir@/p'
16923case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16924*datarootdir*) ac_datarootdir_seen=yes;;
16925*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16927$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16928_ACEOF
16929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16930 ac_datarootdir_hack='
16931 s&@datadir@&$datadir&g
16932 s&@docdir@&$docdir&g
16933 s&@infodir@&$infodir&g
16934 s&@localedir@&$localedir&g
16935 s&@mandir@&$mandir&g
16936 s&\\\${datarootdir}&$datarootdir&g' ;;
16937esac
16938_ACEOF
16939
16940# Neutralize VPATH when `$srcdir' = `.'.
16941# Shell code in configure.ac might set extrasub.
16942# FIXME: do we really want to maintain this feature?
16943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16944ac_sed_extra="$ac_vpsub
16945$extrasub
16946_ACEOF
16947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16948:t
16949/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16950s|@configure_input@|$ac_sed_conf_input|;t t
16951s&@top_builddir@&$ac_top_builddir_sub&;t t
16952s&@top_build_prefix@&$ac_top_build_prefix&;t t
16953s&@srcdir@&$ac_srcdir&;t t
16954s&@abs_srcdir@&$ac_abs_srcdir&;t t
16955s&@top_srcdir@&$ac_top_srcdir&;t t
16956s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16957s&@builddir@&$ac_builddir&;t t
16958s&@abs_builddir@&$ac_abs_builddir&;t t
16959s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16960s&@INSTALL@&$ac_INSTALL&;t t
16961s&@MKDIR_P@&$ac_MKDIR_P&;t t
16962$ac_datarootdir_hack
16963"
Rainer Orth0b6e3122019-02-14 17:47:49 +000016964eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16965if $ac_cs_awk_getline; then
16966 $AWK -f "$ac_tmp/subs.awk"
16967else
16968 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16969fi \
Joseph Myers22e05272018-10-31 17:03:16 +000016970 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016971
16972test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Joseph Myers22e05272018-10-31 17:03:16 +000016973 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16974 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16975 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000016977which seems to be undefined. Please make sure it is defined" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016978$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000016979which seems to be undefined. Please make sure it is defined" >&2;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000016980
Joseph Myers22e05272018-10-31 17:03:16 +000016981 rm -f "$ac_tmp/stdin"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016982 case $ac_file in
Joseph Myers22e05272018-10-31 17:03:16 +000016983 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16984 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016985 esac \
Joseph Myers22e05272018-10-31 17:03:16 +000016986 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016987 ;;
16988 :H)
16989 #
16990 # CONFIG_HEADER
16991 #
16992 if test x"$ac_file" != x-; then
16993 {
16994 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000016995 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16996 } >"$ac_tmp/config.h" \
16997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16998 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000016999 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17000$as_echo "$as_me: $ac_file is unchanged" >&6;}
17001 else
17002 rm -f "$ac_file"
Joseph Myers22e05272018-10-31 17:03:16 +000017003 mv "$ac_tmp/config.h" "$ac_file" \
17004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017005 fi
17006 else
17007 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000017008 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17009 || as_fn_error $? "could not create -" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017010 fi
17011# Compute "$ac_file"'s index in $config_headers.
17012_am_arg="$ac_file"
17013_am_stamp_count=1
17014for _am_header in $config_headers :; do
17015 case $_am_header in
17016 $_am_arg | $_am_arg:* )
17017 break ;;
17018 * )
17019 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17020 esac
17021done
17022echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17023$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17024 X"$_am_arg" : 'X\(//\)[^/]' \| \
17025 X"$_am_arg" : 'X\(//\)$' \| \
17026 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17027$as_echo X"$_am_arg" |
17028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17029 s//\1/
17030 q
17031 }
17032 /^X\(\/\/\)[^/].*/{
17033 s//\1/
17034 q
17035 }
17036 /^X\(\/\/\)$/{
17037 s//\1/
17038 q
17039 }
17040 /^X\(\/\).*/{
17041 s//\1/
17042 q
17043 }
17044 s/.*/./; q'`/stamp-h$_am_stamp_count
17045 ;;
17046
17047 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17048$as_echo "$as_me: executing $ac_file commands" >&6;}
17049 ;;
17050 esac
17051
17052
17053 case $ac_file$ac_mode in
17054 "default-1":C)
17055# Only add multilib support code if we just rebuilt the top-level
17056# Makefile.
17057case " $CONFIG_FILES " in
17058 *" Makefile "*)
17059 ac_file=Makefile . ${multi_basedir}/config-ml.in
17060 ;;
17061esac ;;
17062 "libtool":C)
17063
17064 # See if we are running on zsh, and set the options which allow our
17065 # commands through without removal of \ escapes.
17066 if test -n "${ZSH_VERSION+set}" ; then
17067 setopt NO_GLOB_SUBST
17068 fi
17069
17070 cfgfile="${ofile}T"
17071 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17072 $RM "$cfgfile"
17073
17074 cat <<_LT_EOF >> "$cfgfile"
17075#! $SHELL
17076
17077# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17078# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17079# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17080# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17081#
Rainer Orth0b6e3122019-02-14 17:47:49 +000017082# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17083# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000017084# Written by Gordon Matzigkeit, 1996
17085#
17086# This file is part of GNU Libtool.
17087#
17088# GNU Libtool is free software; you can redistribute it and/or
17089# modify it under the terms of the GNU General Public License as
17090# published by the Free Software Foundation; either version 2 of
17091# the License, or (at your option) any later version.
17092#
17093# As a special exception to the GNU General Public License,
17094# if you distribute this file as part of a program or library that
17095# is built using GNU Libtool, you may include this file under the
17096# same distribution terms that you use for the rest of that program.
17097#
17098# GNU Libtool is distributed in the hope that it will be useful,
17099# but WITHOUT ANY WARRANTY; without even the implied warranty of
17100# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17101# GNU General Public License for more details.
17102#
17103# You should have received a copy of the GNU General Public License
17104# along with GNU Libtool; see the file COPYING. If not, a copy
17105# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17106# obtained by writing to the Free Software Foundation, Inc.,
17107# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17108
17109
17110# The names of the tagged configurations supported by this script.
17111available_tags="D "
17112
17113# ### BEGIN LIBTOOL CONFIG
17114
17115# Which release of libtool.m4 was used?
17116macro_version=$macro_version
17117macro_revision=$macro_revision
17118
17119# Whether or not to build shared libraries.
17120build_libtool_libs=$enable_shared
17121
17122# Whether or not to build static libraries.
17123build_old_libs=$enable_static
17124
17125# What type of objects to build.
17126pic_mode=$pic_mode
17127
17128# Whether or not to optimize for fast installation.
17129fast_install=$enable_fast_install
17130
17131# Shell to use when invoking shell scripts.
17132SHELL=$lt_SHELL
17133
17134# An echo program that protects backslashes.
17135ECHO=$lt_ECHO
17136
17137# The host system.
17138host_alias=$host_alias
17139host=$host
17140host_os=$host_os
17141
17142# The build system.
17143build_alias=$build_alias
17144build=$build
17145build_os=$build_os
17146
17147# A sed program that does not truncate output.
17148SED=$lt_SED
17149
17150# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17151Xsed="\$SED -e 1s/^X//"
17152
17153# A grep program that handles long lines.
17154GREP=$lt_GREP
17155
17156# An ERE matcher.
17157EGREP=$lt_EGREP
17158
17159# A literal string matcher.
17160FGREP=$lt_FGREP
17161
17162# A BSD- or MS-compatible name lister.
17163NM=$lt_NM
17164
17165# Whether we need soft or hard links.
17166LN_S=$lt_LN_S
17167
17168# What is the maximum length of a command?
17169max_cmd_len=$max_cmd_len
17170
17171# Object file suffix (normally "o").
17172objext=$ac_objext
17173
17174# Executable file suffix (normally "").
17175exeext=$exeext
17176
17177# whether the shell understands "unset".
17178lt_unset=$lt_unset
17179
17180# turn spaces into newlines.
17181SP2NL=$lt_lt_SP2NL
17182
17183# turn newlines into spaces.
17184NL2SP=$lt_lt_NL2SP
17185
17186# An object symbol dumper.
17187OBJDUMP=$lt_OBJDUMP
17188
17189# Method to check whether dependent libraries are shared objects.
17190deplibs_check_method=$lt_deplibs_check_method
17191
17192# Command to use when deplibs_check_method == "file_magic".
17193file_magic_cmd=$lt_file_magic_cmd
17194
17195# The archiver.
17196AR=$lt_AR
17197AR_FLAGS=$lt_AR_FLAGS
17198
17199# A symbol stripping program.
17200STRIP=$lt_STRIP
17201
17202# Commands used to install an old-style archive.
17203RANLIB=$lt_RANLIB
17204old_postinstall_cmds=$lt_old_postinstall_cmds
17205old_postuninstall_cmds=$lt_old_postuninstall_cmds
17206
17207# Whether to use a lock for old archive extraction.
17208lock_old_archive_extraction=$lock_old_archive_extraction
17209
17210# A C compiler.
17211LTCC=$lt_CC
17212
17213# LTCC compiler flags.
17214LTCFLAGS=$lt_CFLAGS
17215
17216# Take the output of nm and produce a listing of raw symbols and C names.
17217global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17218
17219# Transform the output of nm in a proper C declaration.
17220global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17221
17222# Transform the output of nm in a C name address pair.
17223global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17224
17225# Transform the output of nm in a C name address pair when lib prefix is needed.
17226global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17227
17228# The name of the directory that contains temporary libtool files.
17229objdir=$objdir
17230
17231# Used to examine libraries when file_magic_cmd begins with "file".
17232MAGIC_CMD=$MAGIC_CMD
17233
17234# Must we lock files when doing compilation?
17235need_locks=$lt_need_locks
17236
17237# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17238DSYMUTIL=$lt_DSYMUTIL
17239
17240# Tool to change global to local symbols on Mac OS X.
17241NMEDIT=$lt_NMEDIT
17242
17243# Tool to manipulate fat objects and archives on Mac OS X.
17244LIPO=$lt_LIPO
17245
17246# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17247OTOOL=$lt_OTOOL
17248
17249# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17250OTOOL64=$lt_OTOOL64
17251
17252# Old archive suffix (normally "a").
17253libext=$libext
17254
17255# Shared library suffix (normally ".so").
17256shrext_cmds=$lt_shrext_cmds
17257
17258# The commands to extract the exported symbol list from a shared archive.
17259extract_expsyms_cmds=$lt_extract_expsyms_cmds
17260
17261# Variables whose values should be saved in libtool wrapper scripts and
17262# restored at link time.
17263variables_saved_for_relink=$lt_variables_saved_for_relink
17264
17265# Do we need the "lib" prefix for modules?
17266need_lib_prefix=$need_lib_prefix
17267
17268# Do we need a version for libraries?
17269need_version=$need_version
17270
17271# Library versioning type.
17272version_type=$version_type
17273
17274# Shared library runtime path variable.
17275runpath_var=$runpath_var
17276
17277# Shared library path variable.
17278shlibpath_var=$shlibpath_var
17279
17280# Is shlibpath searched before the hard-coded library search path?
17281shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17282
17283# Format of library name prefix.
17284libname_spec=$lt_libname_spec
17285
17286# List of archive names. First name is the real one, the rest are links.
17287# The last name is the one that the linker finds with -lNAME
17288library_names_spec=$lt_library_names_spec
17289
17290# The coded name of the library, if different from the real name.
17291soname_spec=$lt_soname_spec
17292
17293# Permission mode override for installation of shared libraries.
17294install_override_mode=$lt_install_override_mode
17295
17296# Command to use after installation of a shared archive.
17297postinstall_cmds=$lt_postinstall_cmds
17298
17299# Command to use after uninstallation of a shared archive.
17300postuninstall_cmds=$lt_postuninstall_cmds
17301
17302# Commands used to finish a libtool library installation in a directory.
17303finish_cmds=$lt_finish_cmds
17304
17305# As "finish_cmds", except a single script fragment to be evaled but
17306# not shown.
17307finish_eval=$lt_finish_eval
17308
17309# Whether we should hardcode library paths into libraries.
17310hardcode_into_libs=$hardcode_into_libs
17311
17312# Compile-time system search path for libraries.
17313sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17314
17315# Run-time system search path for libraries.
17316sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17317
17318# Whether dlopen is supported.
17319dlopen_support=$enable_dlopen
17320
17321# Whether dlopen of programs is supported.
17322dlopen_self=$enable_dlopen_self
17323
17324# Whether dlopen of statically linked programs is supported.
17325dlopen_self_static=$enable_dlopen_self_static
17326
17327# Commands to strip libraries.
17328old_striplib=$lt_old_striplib
17329striplib=$lt_striplib
17330
17331
17332# The linker used to build libraries.
17333LD=$lt_LD
17334
17335# How to create reloadable object files.
17336reload_flag=$lt_reload_flag
17337reload_cmds=$lt_reload_cmds
17338
17339# Commands used to build an old-style archive.
17340old_archive_cmds=$lt_old_archive_cmds
17341
17342# A language specific compiler.
17343CC=$lt_compiler
17344
17345# Is the compiler the GNU compiler?
17346with_gcc=$GCC
17347
17348# Compiler flag to turn off builtin functions.
17349no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17350
17351# How to pass a linker flag through the compiler.
17352wl=$lt_lt_prog_compiler_wl
17353
17354# Additional compiler flags for building library objects.
17355pic_flag=$lt_lt_prog_compiler_pic
17356
17357# Compiler flag to prevent dynamic linking.
17358link_static_flag=$lt_lt_prog_compiler_static
17359
17360# Does compiler simultaneously support -c and -o options?
17361compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17362
17363# Whether or not to add -lc for building shared libraries.
17364build_libtool_need_lc=$archive_cmds_need_lc
17365
17366# Whether or not to disallow shared libs when runtime libs are static.
17367allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17368
17369# Compiler flag to allow reflexive dlopens.
17370export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17371
17372# Compiler flag to generate shared objects directly from archives.
17373whole_archive_flag_spec=$lt_whole_archive_flag_spec
17374
17375# Whether the compiler copes with passing no objects directly.
17376compiler_needs_object=$lt_compiler_needs_object
17377
17378# Create an old-style archive from a shared archive.
17379old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17380
17381# Create a temporary old-style archive to link instead of a shared archive.
17382old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17383
17384# Commands used to build a shared archive.
17385archive_cmds=$lt_archive_cmds
17386archive_expsym_cmds=$lt_archive_expsym_cmds
17387
17388# Commands used to build a loadable module if different from building
17389# a shared archive.
17390module_cmds=$lt_module_cmds
17391module_expsym_cmds=$lt_module_expsym_cmds
17392
17393# Whether we are building with GNU ld or not.
17394with_gnu_ld=$lt_with_gnu_ld
17395
17396# Flag that allows shared libraries with undefined symbols to be built.
17397allow_undefined_flag=$lt_allow_undefined_flag
17398
17399# Flag that enforces no undefined symbols.
17400no_undefined_flag=$lt_no_undefined_flag
17401
17402# Flag to hardcode \$libdir into a binary during linking.
17403# This must work even if \$libdir does not exist
17404hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17405
17406# If ld is used when linking, flag to hardcode \$libdir into a binary
17407# during linking. This must work even if \$libdir does not exist.
17408hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17409
17410# Whether we need a single "-rpath" flag with a separated argument.
17411hardcode_libdir_separator=$lt_hardcode_libdir_separator
17412
17413# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17414# DIR into the resulting binary.
17415hardcode_direct=$hardcode_direct
17416
17417# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17418# DIR into the resulting binary and the resulting library dependency is
17419# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17420# library is relocated.
17421hardcode_direct_absolute=$hardcode_direct_absolute
17422
17423# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17424# into the resulting binary.
17425hardcode_minus_L=$hardcode_minus_L
17426
17427# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17428# into the resulting binary.
17429hardcode_shlibpath_var=$hardcode_shlibpath_var
17430
17431# Set to "yes" if building a shared library automatically hardcodes DIR
17432# into the library and all subsequent libraries and executables linked
17433# against it.
17434hardcode_automatic=$hardcode_automatic
17435
17436# Set to yes if linker adds runtime paths of dependent libraries
17437# to runtime path list.
17438inherit_rpath=$inherit_rpath
17439
17440# Whether libtool must link a program against all its dependency libraries.
17441link_all_deplibs=$link_all_deplibs
17442
17443# Fix the shell variable \$srcfile for the compiler.
17444fix_srcfile_path=$lt_fix_srcfile_path
17445
17446# Set to "yes" if exported symbols are required.
17447always_export_symbols=$always_export_symbols
17448
17449# The commands to list exported symbols.
17450export_symbols_cmds=$lt_export_symbols_cmds
17451
17452# Symbols that should not be listed in the preloaded symbols.
17453exclude_expsyms=$lt_exclude_expsyms
17454
17455# Symbols that must always be exported.
17456include_expsyms=$lt_include_expsyms
17457
17458# Commands necessary for linking programs (against libraries) with templates.
17459prelink_cmds=$lt_prelink_cmds
17460
17461# Specify filename containing input files.
17462file_list_spec=$lt_file_list_spec
17463
17464# How to hardcode a shared library path into an executable.
17465hardcode_action=$hardcode_action
17466
17467# ### END LIBTOOL CONFIG
17468
17469_LT_EOF
17470
17471 case $host_os in
17472 aix3*)
17473 cat <<\_LT_EOF >> "$cfgfile"
17474# AIX sometimes has problems with the GCC collect2 program. For some
17475# reason, if we set the COLLECT_NAMES environment variable, the problems
17476# vanish in a puff of smoke.
17477if test "X${COLLECT_NAMES+set}" != Xset; then
17478 COLLECT_NAMES=
17479 export COLLECT_NAMES
17480fi
17481_LT_EOF
17482 ;;
17483 esac
17484
17485
17486ltmain="$ac_aux_dir/ltmain.sh"
17487
17488
17489 # We use sed instead of cat because bash on DJGPP gets confused if
17490 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17491 # text mode, it properly converts lines to CR/LF. This bash problem
17492 # is reportedly fixed, but why not run on old versions too?
17493 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17494 || (rm -f "$cfgfile"; exit 1)
17495
17496 case $xsi_shell in
17497 yes)
17498 cat << \_LT_EOF >> "$cfgfile"
17499
17500# func_dirname file append nondir_replacement
17501# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17502# otherwise set result to NONDIR_REPLACEMENT.
17503func_dirname ()
17504{
17505 case ${1} in
17506 */*) func_dirname_result="${1%/*}${2}" ;;
17507 * ) func_dirname_result="${3}" ;;
17508 esac
17509}
17510
17511# func_basename file
17512func_basename ()
17513{
17514 func_basename_result="${1##*/}"
17515}
17516
17517# func_dirname_and_basename file append nondir_replacement
17518# perform func_basename and func_dirname in a single function
17519# call:
17520# dirname: Compute the dirname of FILE. If nonempty,
17521# add APPEND to the result, otherwise set result
17522# to NONDIR_REPLACEMENT.
17523# value returned in "$func_dirname_result"
17524# basename: Compute filename of FILE.
17525# value retuned in "$func_basename_result"
17526# Implementation must be kept synchronized with func_dirname
17527# and func_basename. For efficiency, we do not delegate to
17528# those functions but instead duplicate the functionality here.
17529func_dirname_and_basename ()
17530{
17531 case ${1} in
17532 */*) func_dirname_result="${1%/*}${2}" ;;
17533 * ) func_dirname_result="${3}" ;;
17534 esac
17535 func_basename_result="${1##*/}"
17536}
17537
17538# func_stripname prefix suffix name
17539# strip PREFIX and SUFFIX off of NAME.
17540# PREFIX and SUFFIX must not contain globbing or regex special
17541# characters, hashes, percent signs, but SUFFIX may contain a leading
17542# dot (in which case that matches only a dot).
17543func_stripname ()
17544{
17545 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17546 # positional parameters, so assign one to ordinary parameter first.
17547 func_stripname_result=${3}
17548 func_stripname_result=${func_stripname_result#"${1}"}
17549 func_stripname_result=${func_stripname_result%"${2}"}
17550}
17551
17552# func_opt_split
17553func_opt_split ()
17554{
17555 func_opt_split_opt=${1%%=*}
17556 func_opt_split_arg=${1#*=}
17557}
17558
17559# func_lo2o object
17560func_lo2o ()
17561{
17562 case ${1} in
17563 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17564 *) func_lo2o_result=${1} ;;
17565 esac
17566}
17567
17568# func_xform libobj-or-source
17569func_xform ()
17570{
17571 func_xform_result=${1%.*}.lo
17572}
17573
17574# func_arith arithmetic-term...
17575func_arith ()
17576{
17577 func_arith_result=$(( $* ))
17578}
17579
17580# func_len string
17581# STRING may not start with a hyphen.
17582func_len ()
17583{
17584 func_len_result=${#1}
17585}
17586
17587_LT_EOF
17588 ;;
17589 *) # Bourne compatible functions.
17590 cat << \_LT_EOF >> "$cfgfile"
17591
17592# func_dirname file append nondir_replacement
17593# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17594# otherwise set result to NONDIR_REPLACEMENT.
17595func_dirname ()
17596{
17597 # Extract subdirectory from the argument.
17598 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17599 if test "X$func_dirname_result" = "X${1}"; then
17600 func_dirname_result="${3}"
17601 else
17602 func_dirname_result="$func_dirname_result${2}"
17603 fi
17604}
17605
17606# func_basename file
17607func_basename ()
17608{
17609 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17610}
17611
17612
17613# func_stripname prefix suffix name
17614# strip PREFIX and SUFFIX off of NAME.
17615# PREFIX and SUFFIX must not contain globbing or regex special
17616# characters, hashes, percent signs, but SUFFIX may contain a leading
17617# dot (in which case that matches only a dot).
17618# func_strip_suffix prefix name
17619func_stripname ()
17620{
17621 case ${2} in
17622 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17623 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17624 esac
17625}
17626
17627# sed scripts:
17628my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17629my_sed_long_arg='1s/^-[^=]*=//'
17630
17631# func_opt_split
17632func_opt_split ()
17633{
17634 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17635 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17636}
17637
17638# func_lo2o object
17639func_lo2o ()
17640{
17641 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17642}
17643
17644# func_xform libobj-or-source
17645func_xform ()
17646{
17647 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17648}
17649
17650# func_arith arithmetic-term...
17651func_arith ()
17652{
17653 func_arith_result=`expr "$@"`
17654}
17655
17656# func_len string
17657# STRING may not start with a hyphen.
17658func_len ()
17659{
17660 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17661}
17662
17663_LT_EOF
17664esac
17665
17666case $lt_shell_append in
17667 yes)
17668 cat << \_LT_EOF >> "$cfgfile"
17669
17670# func_append var value
17671# Append VALUE to the end of shell variable VAR.
17672func_append ()
17673{
17674 eval "$1+=\$2"
17675}
17676_LT_EOF
17677 ;;
17678 *)
17679 cat << \_LT_EOF >> "$cfgfile"
17680
17681# func_append var value
17682# Append VALUE to the end of shell variable VAR.
17683func_append ()
17684{
17685 eval "$1=\$$1\$2"
17686}
17687
17688_LT_EOF
17689 ;;
17690 esac
17691
17692
17693 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17694 || (rm -f "$cfgfile"; exit 1)
17695
17696 mv -f "$cfgfile" "$ofile" ||
17697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17698 chmod +x "$ofile"
17699
17700
17701 cat <<_LT_EOF >> "$ofile"
17702
17703# ### BEGIN LIBTOOL TAG CONFIG: D
17704
17705# The linker used to build libraries.
17706LD=$lt_LD_D
17707
17708# How to create reloadable object files.
17709reload_flag=$lt_reload_flag_D
17710reload_cmds=$lt_reload_cmds_D
17711
17712# Commands used to build an old-style archive.
17713old_archive_cmds=$lt_old_archive_cmds_D
17714
17715# A language specific compiler.
17716CC=$lt_compiler_D
17717
17718# Is the compiler the GNU compiler?
17719with_gcc=$GCC_D
17720
17721# Compiler flag to turn off builtin functions.
17722no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17723
17724# How to pass a linker flag through the compiler.
17725wl=$lt_lt_prog_compiler_wl_D
17726
17727# Additional compiler flags for building library objects.
17728pic_flag=$lt_lt_prog_compiler_pic_D
17729
17730# Compiler flag to prevent dynamic linking.
17731link_static_flag=$lt_lt_prog_compiler_static_D
17732
17733# Does compiler simultaneously support -c and -o options?
17734compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17735
17736# Whether or not to add -lc for building shared libraries.
17737build_libtool_need_lc=$archive_cmds_need_lc_D
17738
17739# Whether or not to disallow shared libs when runtime libs are static.
17740allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17741
17742# Compiler flag to allow reflexive dlopens.
17743export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17744
17745# Compiler flag to generate shared objects directly from archives.
17746whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17747
17748# Whether the compiler copes with passing no objects directly.
17749compiler_needs_object=$lt_compiler_needs_object_D
17750
17751# Create an old-style archive from a shared archive.
17752old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17753
17754# Create a temporary old-style archive to link instead of a shared archive.
17755old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17756
17757# Commands used to build a shared archive.
17758archive_cmds=$lt_archive_cmds_D
17759archive_expsym_cmds=$lt_archive_expsym_cmds_D
17760
17761# Commands used to build a loadable module if different from building
17762# a shared archive.
17763module_cmds=$lt_module_cmds_D
17764module_expsym_cmds=$lt_module_expsym_cmds_D
17765
17766# Whether we are building with GNU ld or not.
17767with_gnu_ld=$lt_with_gnu_ld_D
17768
17769# Flag that allows shared libraries with undefined symbols to be built.
17770allow_undefined_flag=$lt_allow_undefined_flag_D
17771
17772# Flag that enforces no undefined symbols.
17773no_undefined_flag=$lt_no_undefined_flag_D
17774
17775# Flag to hardcode \$libdir into a binary during linking.
17776# This must work even if \$libdir does not exist
17777hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17778
17779# If ld is used when linking, flag to hardcode \$libdir into a binary
17780# during linking. This must work even if \$libdir does not exist.
17781hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17782
17783# Whether we need a single "-rpath" flag with a separated argument.
17784hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17785
17786# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17787# DIR into the resulting binary.
17788hardcode_direct=$hardcode_direct_D
17789
17790# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17791# DIR into the resulting binary and the resulting library dependency is
17792# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17793# library is relocated.
17794hardcode_direct_absolute=$hardcode_direct_absolute_D
17795
17796# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17797# into the resulting binary.
17798hardcode_minus_L=$hardcode_minus_L_D
17799
17800# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17801# into the resulting binary.
17802hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17803
17804# Set to "yes" if building a shared library automatically hardcodes DIR
17805# into the library and all subsequent libraries and executables linked
17806# against it.
17807hardcode_automatic=$hardcode_automatic_D
17808
17809# Set to yes if linker adds runtime paths of dependent libraries
17810# to runtime path list.
17811inherit_rpath=$inherit_rpath_D
17812
17813# Whether libtool must link a program against all its dependency libraries.
17814link_all_deplibs=$link_all_deplibs_D
17815
17816# Fix the shell variable \$srcfile for the compiler.
17817fix_srcfile_path=$lt_fix_srcfile_path_D
17818
17819# Set to "yes" if exported symbols are required.
17820always_export_symbols=$always_export_symbols_D
17821
17822# The commands to list exported symbols.
17823export_symbols_cmds=$lt_export_symbols_cmds_D
17824
17825# Symbols that should not be listed in the preloaded symbols.
17826exclude_expsyms=$lt_exclude_expsyms_D
17827
17828# Symbols that must always be exported.
17829include_expsyms=$lt_include_expsyms_D
17830
17831# Commands necessary for linking programs (against libraries) with templates.
17832prelink_cmds=$lt_prelink_cmds_D
17833
17834# Specify filename containing input files.
17835file_list_spec=$lt_file_list_spec_D
17836
17837# How to hardcode a shared library path into an executable.
17838hardcode_action=$hardcode_action_D
17839
17840# ### END LIBTOOL TAG CONFIG: D
17841_LT_EOF
17842
17843 ;;
17844 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
Iain Buclawac677522018-11-02 08:29:50 +000017845 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17846s!`test -f '$<' || echo '$(srcdir)/'`!!
Iain Buclawb4c522f2018-10-28 19:51:47 +000017847_EOF
Iain Buclawac677522018-11-02 08:29:50 +000017848 sed -f vpsed$$ $ac_file > tmp$$
17849 mv tmp$$ $ac_file
17850 rm vpsed$$
17851 echo 'MULTISUBDIR =' >> $ac_file
17852 ml_norecursion=yes
17853 . ${multi_basedir}/config-ml.in
17854 { ml_norecursion=; unset ml_norecursion;}
17855 ;;
17856 "src/Makefile":F) cat > vpsed$$ << \_EOF
17857s!`test -f '$<' || echo '$(srcdir)/'`!!
17858_EOF
17859 sed -f vpsed$$ $ac_file > tmp$$
17860 mv tmp$$ $ac_file
17861 rm vpsed$$
17862 echo 'MULTISUBDIR =' >> $ac_file
17863 ml_norecursion=yes
17864 . ${multi_basedir}/config-ml.in
17865 { ml_norecursion=; unset ml_norecursion;}
17866 ;;
17867 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17868s!`test -f '$<' || echo '$(srcdir)/'`!!
17869_EOF
17870 sed -f vpsed$$ $ac_file > tmp$$
17871 mv tmp$$ $ac_file
17872 rm vpsed$$
17873 echo 'MULTISUBDIR =' >> $ac_file
17874 ml_norecursion=yes
17875 . ${multi_basedir}/config-ml.in
17876 { ml_norecursion=; unset ml_norecursion;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000017877 ;;
17878
17879 esac
17880done # for ac_tag
17881
17882
17883as_fn_exit 0
17884_ACEOF
17885ac_clean_files=$ac_clean_files_save
17886
17887test $ac_write_fail = 0 ||
Joseph Myers22e05272018-10-31 17:03:16 +000017888 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017889
17890
17891# configure is writing to config.log, and then calls config.status.
17892# config.status does its own redirection, appending to config.log.
17893# Unfortunately, on DOS this fails, as config.log is still kept open
17894# by configure, so config.status won't be able to write to it; its
17895# output is simply discarded. So we exec the FD to /dev/null,
17896# effectively closing config.log, so it can be properly (re)opened and
17897# appended to by config.status. When coming back to configure, we
17898# need to make the FD available again.
17899if test "$no_create" != yes; then
17900 ac_cs_success=:
17901 ac_config_status_args=
17902 test "$silent" = yes &&
17903 ac_config_status_args="$ac_config_status_args --quiet"
17904 exec 5>/dev/null
17905 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17906 exec 5>>config.log
17907 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17908 # would make configure fail if this is the last instruction.
Joseph Myers22e05272018-10-31 17:03:16 +000017909 $ac_cs_success || as_fn_exit 1
Iain Buclawb4c522f2018-10-28 19:51:47 +000017910fi
17911if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17913$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17914fi
17915