blob: ead96d11bb4ef2a86efbc83d6b70621c032a69fb [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
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208 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 Orth0b6e3122019-02-14 17:47:49 +0000653DRUNTIME_OS_MINFO_BRACKETING_FALSE
654DRUNTIME_OS_MINFO_BRACKETING_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000655DCFG_MINFO_BRACKETING
656DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
657DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
658DCFG_ARM_EABI_UNWINDER
659DCFG_THREAD_MODEL
660DRUNTIME_OS_SOLARIS_FALSE
661DRUNTIME_OS_SOLARIS_TRUE
662DRUNTIME_OS_MINGW_FALSE
663DRUNTIME_OS_MINGW_TRUE
664DRUNTIME_OS_LINUX_FALSE
665DRUNTIME_OS_LINUX_TRUE
666DRUNTIME_OS_OPENBSD_FALSE
667DRUNTIME_OS_OPENBSD_TRUE
668DRUNTIME_OS_NETBSD_FALSE
669DRUNTIME_OS_NETBSD_TRUE
670DRUNTIME_OS_FREEBSD_FALSE
671DRUNTIME_OS_FREEBSD_TRUE
672DRUNTIME_OS_DRAGONFLYBSD_FALSE
673DRUNTIME_OS_DRAGONFLYBSD_TRUE
674DRUNTIME_OS_DARWIN_FALSE
675DRUNTIME_OS_DARWIN_TRUE
676DRUNTIME_OS_ANDROID_FALSE
677DRUNTIME_OS_ANDROID_TRUE
678DRUNTIME_OS_AIX_FALSE
679DRUNTIME_OS_AIX_TRUE
680DRUNTIME_OS_UNIX_FALSE
681DRUNTIME_OS_UNIX_TRUE
682DRUNTIME_GC_ENABLE_FALSE
683DRUNTIME_GC_ENABLE_TRUE
684libphobos_srcdir
685libphobos_builddir
686get_gcc_base_ver
687phobos_compiler_shared_flag
688phobos_compiler_pic_flag
Iain Buclawb4c522f2018-10-28 19:51:47 +0000689CPP
690OTOOL64
691OTOOL
692LIPO
693NMEDIT
694DSYMUTIL
695OBJDUMP
696LN_S
697NM
698ac_ct_DUMPBIN
699DUMPBIN
700LD
701FGREP
702EGREP
703GREP
704SED
705LIBTOOL
706CFLAGS_FOR_BUILD
707CC_FOR_BUILD
708AR
709RANLIB
710MAINT
711MAINTAINER_MODE_FALSE
712MAINTAINER_MODE_TRUE
713GDCFLAGS
714GDC
715CCASFLAGS
716CCAS
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
Joseph Myers22e05272018-10-31 17:03:16 +0000724AM_BACKSLASH
725AM_DEFAULT_VERBOSITY
726AM_DEFAULT_V
727AM_V
Iain Buclawb4c522f2018-10-28 19:51:47 +0000728am__untar
729am__tar
730AMTAR
731am__leading_dot
732SET_MAKE
733AWK
734mkdir_p
735MKDIR_P
736INSTALL_STRIP_PROGRAM
737STRIP
738install_sh
739MAKEINFO
740AUTOHEADER
741AUTOMAKE
742AUTOCONF
743ACLOCAL
744VERSION
745PACKAGE
746CYGPATH_W
747am__isrc
748INSTALL_DATA
749INSTALL_SCRIPT
750INSTALL_PROGRAM
751target_os
752target_vendor
753target_cpu
754target
755host_os
756host_vendor
757host_cpu
758host
759build_os
760build_vendor
761build_cpu
762build
763multi_basedir
764target_alias
765host_alias
766build_alias
767LIBS
768ECHO_T
769ECHO_N
770ECHO_C
771DEFS
772mandir
773localedir
774libdir
775psdir
776pdfdir
777dvidir
778htmldir
779infodir
780docdir
781oldincludedir
782includedir
783localstatedir
784sharedstatedir
785sysconfdir
786datadir
787datarootdir
788libexecdir
789sbindir
790bindir
791program_transform_name
792prefix
793exec_prefix
794PACKAGE_URL
795PACKAGE_BUGREPORT
796PACKAGE_STRING
797PACKAGE_VERSION
798PACKAGE_TARNAME
799PACKAGE_NAME
800PATH_SEPARATOR
801SHELL'
Rainer Orth0b6e3122019-02-14 17:47:49 +0000802ac_subst_files='DRTSTUFF_SPEC'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000803ac_user_opts='
804enable_option_checking
805enable_multilib
Joseph Myers22e05272018-10-31 17:03:16 +0000806enable_silent_rules
Iain Buclawb4c522f2018-10-28 19:51:47 +0000807enable_maintainer_mode
808enable_shared
809enable_static
810with_pic
811enable_fast_install
812with_gnu_ld
813enable_libtool_lock
814with_gcc_major_version_only
815enable_werror
816enable_druntime_gc
817enable_unix
818enable_thread_lib
819with_libatomic
820with_libbacktrace
821with_target_system_zlib
822with_cross_host
Iain Buclawac677522018-11-02 08:29:50 +0000823enable_version_specific_runtime_libs
Iain Buclawb4c522f2018-10-28 19:51:47 +0000824'
825 ac_precious_vars='build_alias
826host_alias
827target_alias
828CPP
829CPPFLAGS'
830
831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835ac_unrecognized_opts=
836ac_unrecognized_sep=
837# The variables have the same names as the options, with
838# dashes changed to underlines.
839cache_file=/dev/null
840exec_prefix=NONE
841no_create=
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
850verbose=
851x_includes=NONE
852x_libraries=NONE
853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
859# (The list follows the same order as the GNU Coding Standards.)
860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
868includedir='${prefix}/include'
869oldincludedir='/usr/include'
870docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
879
880ac_prev=
881ac_dashdash=
882for ac_option
883do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
890
891 case $ac_option in
Joseph Myers22e05272018-10-31 17:03:16 +0000892 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *=) ac_optarg= ;;
894 *) ac_optarg=yes ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +0000895 esac
896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 bindir=$ac_optarg ;;
907
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
922
923 -datadir | --datadir | --datadi | --datad)
924 ac_prev=datadir ;;
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
927
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
935 -disable-* | --disable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000939 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944"enable_$ac_useropt"
945"*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
960
961 -enable-* | --enable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000965 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970"enable_$ac_useropt"
971"*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=\$ac_optarg ;;
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
996
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1001
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1031
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1105
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1164
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001169 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174"with_$ac_useropt"
1175"*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1180
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001185 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1214
Joseph Myers22e05272018-10-31 17:03:16 +00001215 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001217 ;;
1218
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
Joseph Myers22e05272018-10-31 17:03:16 +00001224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1228
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Joseph Myers22e05272018-10-31 17:03:16 +00001234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001235 ;;
1236
1237 esac
1238done
1239
1240if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00001242 as_fn_error $? "missing argument to $ac_option"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001243fi
1244
1245if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00001248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251fi
1252
1253# Check all directory arguments for consistency.
1254for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Iain Buclawd8b1f492019-02-10 22:10:22 +00001257 libdir localedir mandir
Iain Buclawb4c522f2018-10-28 19:51:47 +00001258do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
Joseph Myers22e05272018-10-31 17:03:16 +00001271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001272done
1273
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
1280
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
Iain Buclawb4c522f2018-10-28 19:51:47 +00001285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288fi
1289
1290ac_tool_prefix=
1291test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293test "$silent" = yes && exec 6>/dev/null
1294
1295
1296ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297ac_ls_di=`ls -di .` &&
1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Joseph Myers22e05272018-10-31 17:03:16 +00001299 as_fn_error $? "working directory cannot be determined"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001300test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Joseph Myers22e05272018-10-31 17:03:16 +00001301 as_fn_error $? "pwd does not report name of working directory"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001302
1303
1304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313$as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335else
1336 ac_srcdir_defaulted=no
1337fi
1338if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Joseph Myers22e05272018-10-31 17:03:16 +00001340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001341fi
1342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343ac_abs_confdir=`(
Joseph Myers22e05272018-10-31 17:03:16 +00001344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001345 pwd)`
1346# When building in place, set srcdir=.
1347if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349fi
1350# Remove unnecessary trailing slashes from srcdir.
1351# Double slashes in file names in object file debugging info
1352# mess up M-x gdb in Emacs.
1353case $srcdir in
1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355esac
1356for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361done
1362
1363#
1364# Report the --help message.
1365#
1366if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1371
1372Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377Defaults for the options are specified in brackets.
1378
1379Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
Joseph Myers22e05272018-10-31 17:03:16 +00001384 -q, --quiet, --silent do not print \`checking ...' messages
Iain Buclawb4c522f2018-10-28 19:51:47 +00001385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
1390Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1395
1396By default, \`make install' will install all the files in
1397\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399for instance \`--prefix=\$HOME'.
1400
1401For better control, use the options below.
1402
1403Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1423_ACEOF
1424
1425 cat <<\_ACEOF
1426
1427Program names:
1428 --program-prefix=PREFIX prepend PREFIX to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1431
1432System types:
1433 --build=BUILD configure for building on BUILD [guessed]
1434 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1435 --target=TARGET configure for building compilers for TARGET [HOST]
1436_ACEOF
1437fi
1438
1439if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of package-unused version-unused:";;
1442 esac
1443 cat <<\_ACEOF
1444
1445Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-multilib build many library versions (default)
Joseph Myers22e05272018-10-31 17:03:16 +00001450 --enable-silent-rules less verbose build output (undo: "make V=1")
1451 --disable-silent-rules verbose build output (undo: "make V=0")
1452 --enable-maintainer-mode
1453 enable make rules and dependencies not useful (and
1454 sometimes confusing) to the casual installer
Iain Buclawb4c522f2018-10-28 19:51:47 +00001455 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 --enable-static[=PKGS] build static libraries [default=yes]
1457 --enable-fast-install[=PKGS]
1458 optimize for fast installation [default=yes]
1459 --disable-libtool-lock avoid locking (might break parallel builds)
1460 --enable-werror turns on -Werror [default=no]
1461 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1462 --enable-unix enables Unix runtime (default: yes, for Unix
1463 targets)
1464 --enable-thread-lib=<arg>
1465 specify linker option for the system thread library
1466 (default: autodetect)
Iain Buclawac677522018-11-02 08:29:50 +00001467 --enable-version-specific-runtime-libs
1468 Specify that runtime libraries should be installed
1469 in a compiler-specific directory
Iain Buclawb4c522f2018-10-28 19:51:47 +00001470
1471Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-pic try to use only PIC/non-PIC objects [default=use
1475 both]
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-gcc-major-version-only
1478 use only GCC major number in filesystem paths
1479 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1480 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1481 auto)
Iain Buclawbb503122019-04-12 20:13:34 +00001482 --with-target-system-zlib={yes,no,auto}
Iain Buclawb4c522f2018-10-28 19:51:47 +00001483 use installed libz (default: no)
1484 --with-cross-host=HOST configuring with a cross compiler
1485
1486Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
Joseph Myers22e05272018-10-31 17:03:16 +00001492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Iain Buclawb4c522f2018-10-28 19:51:47 +00001493 you have headers in a nonstandard directory <include dir>
1494 CCAS assembler compiler command (defaults to CC)
1495 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1496 GDC D compiler command
1497 GDCFLAGS D compiler flags
1498 CPP C preprocessor
1499
1500Use these variables to override the choices made by `configure' or to help
1501it to find libraries and programs with nonstandard names/locations.
1502
1503Report bugs to the package provider.
1504_ACEOF
1505ac_status=$?
1506fi
1507
1508if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" ||
1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513 continue
1514 ac_builddir=.
1515
1516case "$ac_dir" in
1517.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518*)
1519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526esac
1527ac_abs_top_builddir=$ac_pwd
1528ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529# for backward compatibility:
1530ac_top_builddir=$ac_top_build_prefix
1531
1532case $srcdir in
1533 .) # We are building in place.
1534 ac_srcdir=.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545esac
1546ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1556 else
1557 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 fi || ac_status=$?
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1560 done
1561fi
1562
1563test -n "$ac_init_help" && exit $ac_status
1564if $ac_init_version; then
1565 cat <<\_ACEOF
1566package-unused configure version-unused
Joseph Myers22e05272018-10-31 17:03:16 +00001567generated by GNU Autoconf 2.69
Iain Buclawb4c522f2018-10-28 19:51:47 +00001568
Rainer Orth0b6e3122019-02-14 17:47:49 +00001569Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +00001570This configure script is free software; the Free Software Foundation
1571gives unlimited permission to copy, distribute and modify it.
1572_ACEOF
1573 exit
1574fi
1575
1576## ------------------------ ##
1577## Autoconf initialization. ##
1578## ------------------------ ##
1579
1580# ac_fn_c_try_compile LINENO
1581# --------------------------
1582# Try to compile conftest.$ac_ext, and return whether this succeeded.
1583ac_fn_c_try_compile ()
1584{
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext
1587 if { { ac_try="$ac_compile"
1588case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_compile") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest.$ac_objext; then :
1606 ac_retval=0
1607else
1608 $as_echo "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=1
1612fi
Joseph Myers22e05272018-10-31 17:03:16 +00001613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001615
1616} # ac_fn_c_try_compile
1617
1618# ac_fn_d_try_compile LINENO
1619# --------------------------
1620# Try to compile conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_d_try_compile ()
1622{
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1626case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_d_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650fi
Joseph Myers22e05272018-10-31 17:03:16 +00001651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001653
1654} # ac_fn_d_try_compile
1655
1656# ac_fn_c_try_link LINENO
1657# -----------------------
1658# Try to link conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_link ()
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest$ac_exeext
1663 if { { ac_try="$ac_link"
1664case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest$ac_exeext && {
1682 test "$cross_compiling" = yes ||
Joseph Myers22e05272018-10-31 17:03:16 +00001683 test -x conftest$ac_exeext
Iain Buclawb4c522f2018-10-28 19:51:47 +00001684 }; then :
1685 ac_retval=0
1686else
1687 $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=1
1691fi
1692 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1693 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1694 # interfere with the next link command; also delete a directory that is
1695 # left behind by Apple's compiler. We do this before executing the actions.
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Joseph Myers22e05272018-10-31 17:03:16 +00001697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001699
1700} # ac_fn_c_try_link
1701
1702# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1703# -------------------------------------------------------
1704# Tests whether HEADER exists and can be compiled using the include files in
1705# INCLUDES, setting the cache variable VAR accordingly.
1706ac_fn_c_check_header_compile ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001711if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001712 $as_echo_n "(cached) " >&6
1713else
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715/* end confdefs.h. */
1716$4
1717#include <$2>
1718_ACEOF
1719if ac_fn_c_try_compile "$LINENO"; then :
1720 eval "$3=yes"
1721else
1722 eval "$3=no"
1723fi
1724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725fi
1726eval ac_res=\$$3
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728$as_echo "$ac_res" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Iain Buclawb4c522f2018-10-28 19:51:47 +00001730
1731} # ac_fn_c_check_header_compile
1732
1733# ac_fn_c_try_cpp LINENO
1734# ----------------------
1735# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736ac_fn_c_try_cpp ()
1737{
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_cpp conftest.$ac_ext"
1740case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00001754 test $ac_status = 0; } > conftest.i && {
Iain Buclawb4c522f2018-10-28 19:51:47 +00001755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 }; then :
1758 ac_retval=0
1759else
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764fi
Joseph Myers22e05272018-10-31 17:03:16 +00001765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001767
1768} # ac_fn_c_try_cpp
1769
1770# ac_fn_c_try_run LINENO
1771# ----------------------
1772# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1773# that executables *can* be run.
1774ac_fn_c_try_run ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if { { ac_try="$ac_link"
1778case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>&5
1785 ac_status=$?
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1788 { { case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_try") 2>&5
1795 ac_status=$?
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; }; }; then :
1798 ac_retval=0
1799else
1800 $as_echo "$as_me: program exited with status $ac_status" >&5
1801 $as_echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=$ac_status
1805fi
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Joseph Myers22e05272018-10-31 17:03:16 +00001807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001809
1810} # ac_fn_c_try_run
1811
1812# ac_fn_c_check_func LINENO FUNC VAR
1813# ----------------------------------
1814# Tests whether FUNC exists, setting the cache variable VAR accordingly
1815ac_fn_c_check_func ()
1816{
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001820if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001821 $as_echo_n "(cached) " >&6
1822else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h. */
1825/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827#define $2 innocuous_$2
1828
1829/* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1833
1834#ifdef __STDC__
1835# include <limits.h>
1836#else
1837# include <assert.h>
1838#endif
1839
1840#undef $2
1841
1842/* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1845#ifdef __cplusplus
1846extern "C"
1847#endif
1848char $2 ();
1849/* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852#if defined __stub_$2 || defined __stub___$2
1853choke me
1854#endif
1855
1856int
1857main ()
1858{
1859return $2 ();
1860 ;
1861 return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_link "$LINENO"; then :
1865 eval "$3=yes"
1866else
1867 eval "$3=no"
1868fi
1869rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1871fi
1872eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Iain Buclawb4c522f2018-10-28 19:51:47 +00001876
1877} # ac_fn_c_check_func
1878
1879# ac_fn_d_try_link LINENO
1880# -----------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded.
1882ac_fn_d_try_link ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_d_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
Joseph Myers22e05272018-10-31 17:03:16 +00001906 test -x conftest$ac_exeext
Iain Buclawb4c522f2018-10-28 19:51:47 +00001907 }; then :
1908 ac_retval=0
1909else
1910 $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914fi
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Joseph Myers22e05272018-10-31 17:03:16 +00001920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001922
1923} # ac_fn_d_try_link
1924
1925# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926# -------------------------------------------------------
1927# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928# the include files in INCLUDES and setting the cache variable VAR
1929# accordingly.
1930ac_fn_c_check_header_mongrel ()
1931{
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Joseph Myers22e05272018-10-31 17:03:16 +00001933 if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001936if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001937 $as_echo_n "(cached) " >&6
1938fi
1939eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941$as_echo "$ac_res" >&6; }
1942else
1943 # Is the header compilable?
1944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945$as_echo_n "checking $2 usability... " >&6; }
1946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h. */
1948$4
1949#include <$2>
1950_ACEOF
1951if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_header_compiler=yes
1953else
1954 ac_header_compiler=no
1955fi
1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958$as_echo "$ac_header_compiler" >&6; }
1959
1960# Is the header present?
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962$as_echo_n "checking $2 presence... " >&6; }
1963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h. */
1965#include <$2>
1966_ACEOF
1967if ac_fn_c_try_cpp "$LINENO"; then :
1968 ac_header_preproc=yes
1969else
1970 ac_header_preproc=no
1971fi
Joseph Myers22e05272018-10-31 17:03:16 +00001972rm -f conftest.err conftest.i conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00001973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974$as_echo "$ac_header_preproc" >&6; }
1975
1976# So? What about this header?
1977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1978 yes:no: )
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 ;;
1984 no:yes:* )
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1988$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1992$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995 ;;
1996esac
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001999if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002000 $as_echo_n "(cached) " >&6
2001else
2002 eval "$3=\$ac_header_compiler"
2003fi
2004eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006$as_echo "$ac_res" >&6; }
2007fi
Joseph Myers22e05272018-10-31 17:03:16 +00002008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Iain Buclawb4c522f2018-10-28 19:51:47 +00002009
2010} # ac_fn_c_check_header_mongrel
2011cat >config.log <<_ACEOF
2012This file contains any messages produced by compilers while
2013running configure, to aid debugging if configure makes a mistake.
2014
2015It was created by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +00002016generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +00002017
2018 $ $0 $@
2019
2020_ACEOF
2021exec 5>>config.log
2022{
2023cat <<_ASUNAME
2024## --------- ##
2025## Platform. ##
2026## --------- ##
2027
2028hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2029uname -m = `(uname -m) 2>/dev/null || echo unknown`
2030uname -r = `(uname -r) 2>/dev/null || echo unknown`
2031uname -s = `(uname -s) 2>/dev/null || echo unknown`
2032uname -v = `(uname -v) 2>/dev/null || echo unknown`
2033
2034/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2035/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2036
2037/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2038/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2039/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2040/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2041/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2042/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2043/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2044
2045_ASUNAME
2046
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 $as_echo "PATH: $as_dir"
2053 done
2054IFS=$as_save_IFS
2055
2056} >&5
2057
2058cat >&5 <<_ACEOF
2059
2060
2061## ----------- ##
2062## Core tests. ##
2063## ----------- ##
2064
2065_ACEOF
2066
2067
2068# Keep a trace of the command line.
2069# Strip out --no-create and --no-recursion so they do not pile up.
2070# Strip out --silent because we don't want to record it for future runs.
2071# Also quote any args containing shell meta-characters.
2072# Make two passes to allow for proper duplicate-argument suppression.
2073ac_configure_args=
2074ac_configure_args0=
2075ac_configure_args1=
2076ac_must_keep_next=false
2077for ac_pass in 1 2
2078do
2079 for ac_arg
2080 do
2081 case $ac_arg in
2082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2084 | -silent | --silent | --silen | --sile | --sil)
2085 continue ;;
2086 *\'*)
2087 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2088 esac
2089 case $ac_pass in
2090 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2091 2)
2092 as_fn_append ac_configure_args1 " '$ac_arg'"
2093 if test $ac_must_keep_next = true; then
2094 ac_must_keep_next=false # Got value, back to normal.
2095 else
2096 case $ac_arg in
2097 *=* | --config-cache | -C | -disable-* | --disable-* \
2098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2100 | -with-* | --with-* | -without-* | --without-* | --x)
2101 case "$ac_configure_args0 " in
2102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2103 esac
2104 ;;
2105 -* ) ac_must_keep_next=true ;;
2106 esac
2107 fi
2108 as_fn_append ac_configure_args " '$ac_arg'"
2109 ;;
2110 esac
2111 done
2112done
2113{ ac_configure_args0=; unset ac_configure_args0;}
2114{ ac_configure_args1=; unset ac_configure_args1;}
2115
2116# When interrupted or exit'd, cleanup temporary files, and complete
2117# config.log. We remove comments because anyway the quotes in there
2118# would cause problems or look ugly.
2119# WARNING: Use '\'' to represent an apostrophe within the trap.
2120# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2121trap 'exit_status=$?
2122 # Save into config.log some information that might help in debugging.
2123 {
2124 echo
2125
Joseph Myers22e05272018-10-31 17:03:16 +00002126 $as_echo "## ---------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002127## Cache variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002128## ---------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002129 echo
2130 # The following way of writing the cache mishandles newlines in values,
2131(
2132 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2133 eval ac_val=\$$ac_var
2134 case $ac_val in #(
2135 *${as_nl}*)
2136 case $ac_var in #(
2137 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2138$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2139 esac
2140 case $ac_var in #(
2141 _ | IFS | as_nl) ;; #(
2142 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2143 *) { eval $ac_var=; unset $ac_var;} ;;
2144 esac ;;
2145 esac
2146 done
2147 (set) 2>&1 |
2148 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2149 *${as_nl}ac_space=\ *)
2150 sed -n \
2151 "s/'\''/'\''\\\\'\'''\''/g;
2152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2153 ;; #(
2154 *)
2155 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2156 ;;
2157 esac |
2158 sort
2159)
2160 echo
2161
Joseph Myers22e05272018-10-31 17:03:16 +00002162 $as_echo "## ----------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002163## Output variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002164## ----------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002165 echo
2166 for ac_var in $ac_subst_vars
2167 do
2168 eval ac_val=\$$ac_var
2169 case $ac_val in
2170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171 esac
2172 $as_echo "$ac_var='\''$ac_val'\''"
2173 done | sort
2174 echo
2175
2176 if test -n "$ac_subst_files"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002177 $as_echo "## ------------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002178## File substitutions. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002179## ------------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002180 echo
2181 for ac_var in $ac_subst_files
2182 do
2183 eval ac_val=\$$ac_var
2184 case $ac_val in
2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186 esac
2187 $as_echo "$ac_var='\''$ac_val'\''"
2188 done | sort
2189 echo
2190 fi
2191
2192 if test -s confdefs.h; then
Joseph Myers22e05272018-10-31 17:03:16 +00002193 $as_echo "## ----------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002194## confdefs.h. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002195## ----------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002196 echo
2197 cat confdefs.h
2198 echo
2199 fi
2200 test "$ac_signal" != 0 &&
2201 $as_echo "$as_me: caught signal $ac_signal"
2202 $as_echo "$as_me: exit $exit_status"
2203 } >&5
2204 rm -f core *.core core.conftest.* &&
2205 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2206 exit $exit_status
2207' 0
2208for ac_signal in 1 2 13 15; do
2209 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2210done
2211ac_signal=0
2212
2213# confdefs.h avoids OS command line length limits that DEFS can exceed.
2214rm -f -r conftest* confdefs.h
2215
2216$as_echo "/* confdefs.h */" > confdefs.h
2217
2218# Predefined preprocessor variables.
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_NAME "$PACKAGE_NAME"
2222_ACEOF
2223
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2226_ACEOF
2227
2228cat >>confdefs.h <<_ACEOF
2229#define PACKAGE_VERSION "$PACKAGE_VERSION"
2230_ACEOF
2231
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_STRING "$PACKAGE_STRING"
2234_ACEOF
2235
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2238_ACEOF
2239
2240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_URL "$PACKAGE_URL"
2242_ACEOF
2243
2244
2245# Let the site file select an alternate cache file if it wants to.
2246# Prefer an explicitly selected file to automatically selected ones.
2247ac_site_file1=NONE
2248ac_site_file2=NONE
2249if test -n "$CONFIG_SITE"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002250 # We do not want a PATH search for config.site.
2251 case $CONFIG_SITE in #((
2252 -*) ac_site_file1=./$CONFIG_SITE;;
2253 */*) ac_site_file1=$CONFIG_SITE;;
2254 *) ac_site_file1=./$CONFIG_SITE;;
2255 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +00002256elif test "x$prefix" != xNONE; then
2257 ac_site_file1=$prefix/share/config.site
2258 ac_site_file2=$prefix/etc/config.site
2259else
2260 ac_site_file1=$ac_default_prefix/share/config.site
2261 ac_site_file2=$ac_default_prefix/etc/config.site
2262fi
2263for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2264do
2265 test "x$ac_site_file" = xNONE && continue
Joseph Myers22e05272018-10-31 17:03:16 +00002266 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2268$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2269 sed 's/^/| /' "$ac_site_file" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00002270 . "$ac_site_file" \
2271 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273as_fn_error $? "failed to load site script $ac_site_file
2274See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002275 fi
2276done
2277
2278if test -r "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002279 # Some versions of bash will fail to source /dev/null (special files
2280 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2281 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2283$as_echo "$as_me: loading cache $cache_file" >&6;}
2284 case $cache_file in
2285 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2286 *) . "./$cache_file";;
2287 esac
2288 fi
2289else
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2291$as_echo "$as_me: creating cache $cache_file" >&6;}
2292 >$cache_file
2293fi
2294
2295# Check that the precious variables saved in the cache have kept the same
2296# value.
2297ac_cache_corrupted=false
2298for ac_var in $ac_precious_vars; do
2299 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2300 eval ac_new_set=\$ac_env_${ac_var}_set
2301 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2302 eval ac_new_val=\$ac_env_${ac_var}_value
2303 case $ac_old_set,$ac_new_set in
2304 set,)
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2306$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2307 ac_cache_corrupted=: ;;
2308 ,set)
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2310$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2311 ac_cache_corrupted=: ;;
2312 ,);;
2313 *)
2314 if test "x$ac_old_val" != "x$ac_new_val"; then
2315 # differences in whitespace do not lead to failure.
2316 ac_old_val_w=`echo x $ac_old_val`
2317 ac_new_val_w=`echo x $ac_new_val`
2318 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2320$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2321 ac_cache_corrupted=:
2322 else
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2324$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2325 eval $ac_var=\$ac_old_val
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2328$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2330$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2331 fi;;
2332 esac
2333 # Pass precious variables to config.status.
2334 if test "$ac_new_set" = set; then
2335 case $ac_new_val in
2336 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2337 *) ac_arg=$ac_var=$ac_new_val ;;
2338 esac
2339 case " $ac_configure_args " in
2340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2341 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2342 esac
2343 fi
2344done
2345if $ac_cache_corrupted; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2349$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002350 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002351fi
2352## -------------------- ##
2353## Main body of script. ##
2354## -------------------- ##
2355
2356ac_ext=c
2357ac_cpp='$CPP $CPPFLAGS'
2358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361
2362
2363
2364
2365
2366
2367ac_config_headers="$ac_config_headers config.h"
2368
2369
2370# Default to --enable-multilib
2371# Check whether --enable-multilib was given.
2372if test "${enable_multilib+set}" = set; then :
2373 enableval=$enable_multilib; case "$enableval" in
2374 yes) multilib=yes ;;
2375 no) multilib=no ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002376 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002377 esac
2378else
2379 multilib=yes
2380fi
2381
2382
2383# We may get other options which we leave undocumented:
2384# --with-target-subdir, --with-multisrctop, --with-multisubdir
2385# See config-ml.in if you want the gory details.
2386
2387if test "$srcdir" = "."; then
2388 if test "$with_target_subdir" != "."; then
2389 multi_basedir="$srcdir/$with_multisrctop../.."
2390 else
2391 multi_basedir="$srcdir/$with_multisrctop.."
2392 fi
2393else
2394 multi_basedir="$srcdir/.."
2395fi
2396
2397
2398# Even if the default multilib is not a cross compilation,
2399# it may be that some of the other multilibs are.
2400if test $cross_compiling = no && test $multilib = yes \
2401 && test "x${with_multisubdir}" != x ; then
2402 cross_compiling=maybe
2403fi
2404
2405ac_config_commands="$ac_config_commands default-1"
2406
2407ac_aux_dir=
2408for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Joseph Myers22e05272018-10-31 17:03:16 +00002409 if test -f "$ac_dir/install-sh"; then
2410 ac_aux_dir=$ac_dir
2411 ac_install_sh="$ac_aux_dir/install-sh -c"
2412 break
2413 elif test -f "$ac_dir/install.sh"; then
2414 ac_aux_dir=$ac_dir
2415 ac_install_sh="$ac_aux_dir/install.sh -c"
2416 break
2417 elif test -f "$ac_dir/shtool"; then
2418 ac_aux_dir=$ac_dir
2419 ac_install_sh="$ac_aux_dir/shtool install -c"
2420 break
2421 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00002422done
2423if test -z "$ac_aux_dir"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002424 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002425fi
2426
2427# These three variables are undocumented and unsupported,
2428# and are intended to be withdrawn in a future Autoconf release.
2429# They can cause serious problems if a builder's source tree is in a directory
2430# whose full name contains unusual characters.
2431ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2432ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2433ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2434
2435
2436# Make sure we can run config.sub.
2437$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Joseph Myers22e05272018-10-31 17:03:16 +00002438 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002439
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2441$as_echo_n "checking build system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002442if ${ac_cv_build+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002443 $as_echo_n "(cached) " >&6
2444else
2445 ac_build_alias=$build_alias
2446test "x$ac_build_alias" = x &&
2447 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2448test "x$ac_build_alias" = x &&
Joseph Myers22e05272018-10-31 17:03:16 +00002449 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002450ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002452
2453fi
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2455$as_echo "$ac_cv_build" >&6; }
2456case $ac_cv_build in
2457*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002458*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002459esac
2460build=$ac_cv_build
2461ac_save_IFS=$IFS; IFS='-'
2462set x $ac_cv_build
2463shift
2464build_cpu=$1
2465build_vendor=$2
2466shift; shift
2467# Remember, the first character of IFS is used to create $*,
2468# except with old shells:
2469build_os=$*
2470IFS=$ac_save_IFS
2471case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2472
2473
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2475$as_echo_n "checking host system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002476if ${ac_cv_host+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002477 $as_echo_n "(cached) " >&6
2478else
2479 if test "x$host_alias" = x; then
2480 ac_cv_host=$ac_cv_build
2481else
2482 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002483 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002484fi
2485
2486fi
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2488$as_echo "$ac_cv_host" >&6; }
2489case $ac_cv_host in
2490*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002491*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002492esac
2493host=$ac_cv_host
2494ac_save_IFS=$IFS; IFS='-'
2495set x $ac_cv_host
2496shift
2497host_cpu=$1
2498host_vendor=$2
2499shift; shift
2500# Remember, the first character of IFS is used to create $*,
2501# except with old shells:
2502host_os=$*
2503IFS=$ac_save_IFS
2504case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2505
2506
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2508$as_echo_n "checking target system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002509if ${ac_cv_target+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002510 $as_echo_n "(cached) " >&6
2511else
2512 if test "x$target_alias" = x; then
2513 ac_cv_target=$ac_cv_host
2514else
2515 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002517fi
2518
2519fi
2520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2521$as_echo "$ac_cv_target" >&6; }
2522case $ac_cv_target in
2523*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002524*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002525esac
2526target=$ac_cv_target
2527ac_save_IFS=$IFS; IFS='-'
2528set x $ac_cv_target
2529shift
2530target_cpu=$1
2531target_vendor=$2
2532shift; shift
2533# Remember, the first character of IFS is used to create $*,
2534# except with old shells:
2535target_os=$*
2536IFS=$ac_save_IFS
2537case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2538
2539
2540# The aliases save the names the user supplied, while $host etc.
2541# will get canonicalized.
2542test -n "$target_alias" &&
2543 test "$program_prefix$program_suffix$program_transform_name" = \
2544 NONENONEs,x,x, &&
2545 program_prefix=${target_alias}-
2546
2547
2548target_alias=${target_alias-$target}
2549
2550
2551# 1.11.1: Require that version of automake.
2552# foreign: Don't require README, INSTALL, NEWS, etc.
2553# no-define: Don't define PACKAGE and VERSION.
2554# no-dependencies: Don't generate automatic dependencies.
2555# (because it breaks when using bootstrap-lean, since some of the
2556# headers are gone at "make install" time).
2557# -Wall: Issue all automake warnings.
2558# -Wno-portability: Don't warn about constructs supported by GNU make.
2559# (because GCC requires GNU make anyhow).
Joseph Myers22e05272018-10-31 17:03:16 +00002560# -Wno-override: Overrides used in testsuite.
2561am__api_version='1.15'
Iain Buclawb4c522f2018-10-28 19:51:47 +00002562
2563# Find a good install program. We prefer a C program (faster),
2564# so one script is as good as another. But avoid the broken or
2565# incompatible versions:
2566# SysV /etc/install, /usr/sbin/install
2567# SunOS /usr/etc/install
2568# IRIX /sbin/install
2569# AIX /bin/install
2570# AmigaOS /C/install, which installs bootblocks on floppy discs
2571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2574# OS/2's system install, which has a completely different semantic
2575# ./install, which can be erroneously created by make from ./install.sh.
2576# Reject install programs that cannot install multiple files.
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2578$as_echo_n "checking for a BSD-compatible install... " >&6; }
2579if test -z "$INSTALL"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002580if ${ac_cv_path_install+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002581 $as_echo_n "(cached) " >&6
2582else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 # Account for people who put trailing slashes in PATH elements.
2589case $as_dir/ in #((
2590 ./ | .// | /[cC]/* | \
2591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2592 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2593 /usr/ucb/* ) ;;
2594 *)
2595 # OSF1 and SCO ODT 3.0 have their own names for install.
2596 # Don't use installbsd from OSF since it installs stuff as root
2597 # by default.
2598 for ac_prog in ginstall scoinst install; do
2599 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002600 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002601 if test $ac_prog = install &&
2602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # AIX install. It has an incompatible calling convention.
2604 :
2605 elif test $ac_prog = install &&
2606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2607 # program-specific install script used by HP pwplus--don't use.
2608 :
2609 else
2610 rm -rf conftest.one conftest.two conftest.dir
2611 echo one > conftest.one
2612 echo two > conftest.two
2613 mkdir conftest.dir
2614 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2615 test -s conftest.one && test -s conftest.two &&
2616 test -s conftest.dir/conftest.one &&
2617 test -s conftest.dir/conftest.two
2618 then
2619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2620 break 3
2621 fi
2622 fi
2623 fi
2624 done
2625 done
2626 ;;
2627esac
2628
2629 done
2630IFS=$as_save_IFS
2631
2632rm -rf conftest.one conftest.two conftest.dir
2633
2634fi
2635 if test "${ac_cv_path_install+set}" = set; then
2636 INSTALL=$ac_cv_path_install
2637 else
2638 # As a last resort, use the slow shell script. Don't cache a
2639 # value for INSTALL within a source directory, because that will
2640 # break other packages using the cache if that directory is
2641 # removed, or if the value is a relative name.
2642 INSTALL=$ac_install_sh
2643 fi
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2646$as_echo "$INSTALL" >&6; }
2647
2648# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2649# It thinks the first close brace ends the variable substitution.
2650test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2651
2652test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2653
2654test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2655
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2657$as_echo_n "checking whether build environment is sane... " >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002658# Reject unsafe characters in $srcdir or the absolute working directory
2659# name. Accept space and tab only in the latter.
2660am_lf='
2661'
2662case `pwd` in
2663 *[\\\"\#\$\&\'\`$am_lf]*)
Joseph Myers22e05272018-10-31 17:03:16 +00002664 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002665esac
2666case $srcdir in
2667 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Joseph Myers22e05272018-10-31 17:03:16 +00002668 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002669esac
2670
Joseph Myers22e05272018-10-31 17:03:16 +00002671# Do 'set' in a subshell so we don't clobber the current shell's
Iain Buclawb4c522f2018-10-28 19:51:47 +00002672# arguments. Must try -L first in case configure is actually a
2673# symlink; some systems play weird games with the mod time of symlinks
2674# (eg FreeBSD returns the mod time of the symlink's containing
2675# directory).
2676if (
Joseph Myers22e05272018-10-31 17:03:16 +00002677 am_has_slept=no
2678 for am_try in 1 2; do
2679 echo "timestamp, slept: $am_has_slept" > conftest.file
2680 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2681 if test "$*" = "X"; then
2682 # -L didn't work.
2683 set X `ls -t "$srcdir/configure" conftest.file`
2684 fi
2685 if test "$*" != "X $srcdir/configure conftest.file" \
2686 && test "$*" != "X conftest.file $srcdir/configure"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002687
Joseph Myers22e05272018-10-31 17:03:16 +00002688 # If neither matched, then we have a broken ls. This can happen
2689 # if, for instance, CONFIG_SHELL is bash and it inherits a
2690 # broken ls alias from the environment. This has actually
2691 # happened. Such a system could not be considered "sane".
2692 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2693 alias in your environment" "$LINENO" 5
2694 fi
2695 if test "$2" = conftest.file || test $am_try -eq 2; then
2696 break
2697 fi
2698 # Just in case.
2699 sleep 1
2700 am_has_slept=yes
2701 done
Iain Buclawb4c522f2018-10-28 19:51:47 +00002702 test "$2" = conftest.file
2703 )
2704then
2705 # Ok.
2706 :
2707else
Joseph Myers22e05272018-10-31 17:03:16 +00002708 as_fn_error $? "newly created file is older than distributed files!
Iain Buclawb4c522f2018-10-28 19:51:47 +00002709Check your system clock" "$LINENO" 5
2710fi
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712$as_echo "yes" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002713# If we didn't sleep, we still need to ensure time stamps of config.status and
2714# generated files are strictly newer.
2715am_sleep_pid=
2716if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2717 ( sleep 1 ) &
2718 am_sleep_pid=$!
2719fi
2720
2721rm -f conftest.file
2722
Iain Buclawb4c522f2018-10-28 19:51:47 +00002723test "$program_prefix" != NONE &&
2724 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2725# Use a double $ so make ignores it.
2726test "$program_suffix" != NONE &&
2727 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2728# Double any \ or $.
2729# By default was `s,x,x', remove it if useless.
2730ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2731program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2732
Joseph Myers22e05272018-10-31 17:03:16 +00002733# Expand $ac_aux_dir to an absolute path.
2734am_aux_dir=`cd "$ac_aux_dir" && pwd`
Iain Buclawb4c522f2018-10-28 19:51:47 +00002735
2736if test x"${MISSING+set}" != xset; then
2737 case $am_aux_dir in
2738 *\ * | *\ *)
2739 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2740 *)
2741 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2742 esac
2743fi
2744# Use eval to expand $SHELL
Joseph Myers22e05272018-10-31 17:03:16 +00002745if eval "$MISSING --is-lightweight"; then
2746 am_missing_run="$MISSING "
Iain Buclawb4c522f2018-10-28 19:51:47 +00002747else
2748 am_missing_run=
Joseph Myers22e05272018-10-31 17:03:16 +00002749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2750$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Iain Buclawb4c522f2018-10-28 19:51:47 +00002751fi
2752
Joseph Myers22e05272018-10-31 17:03:16 +00002753if test x"${install_sh+set}" != xset; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002754 case $am_aux_dir in
2755 *\ * | *\ *)
2756 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2757 *)
2758 install_sh="\${SHELL} $am_aux_dir/install-sh"
2759 esac
2760fi
2761
Joseph Myers22e05272018-10-31 17:03:16 +00002762# Installed binaries are usually stripped using 'strip' when the user
2763# run "make install-strip". However 'strip' might not be the right
Iain Buclawb4c522f2018-10-28 19:51:47 +00002764# tool to use in cross-compilation environments, therefore Automake
Joseph Myers22e05272018-10-31 17:03:16 +00002765# will honor the 'STRIP' environment variable to overrule this program.
Iain Buclawb4c522f2018-10-28 19:51:47 +00002766if test "$cross_compiling" != no; then
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2769set dummy ${ac_tool_prefix}strip; ac_word=$2
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002772if ${ac_cv_prog_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002773 $as_echo_n "(cached) " >&6
2774else
2775 if test -n "$STRIP"; then
2776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002785 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789done
2790 done
2791IFS=$as_save_IFS
2792
2793fi
2794fi
2795STRIP=$ac_cv_prog_STRIP
2796if test -n "$STRIP"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2798$as_echo "$STRIP" >&6; }
2799else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802fi
2803
2804
2805fi
2806if test -z "$ac_cv_prog_STRIP"; then
2807 ac_ct_STRIP=$STRIP
2808 # Extract the first word of "strip", so it can be a program name with args.
2809set dummy strip; ac_word=$2
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002812if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002813 $as_echo_n "(cached) " >&6
2814else
2815 if test -n "$ac_ct_STRIP"; then
2816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002825 ac_cv_prog_ac_ct_STRIP="strip"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829done
2830 done
2831IFS=$as_save_IFS
2832
2833fi
2834fi
2835ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2836if test -n "$ac_ct_STRIP"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2838$as_echo "$ac_ct_STRIP" >&6; }
2839else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841$as_echo "no" >&6; }
2842fi
2843
2844 if test "x$ac_ct_STRIP" = x; then
2845 STRIP=":"
2846 else
2847 case $cross_compiling:$ac_tool_warned in
2848yes:)
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2851ac_tool_warned=yes ;;
2852esac
2853 STRIP=$ac_ct_STRIP
2854 fi
2855else
2856 STRIP="$ac_cv_prog_STRIP"
2857fi
2858
2859fi
2860INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2861
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2863$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2864if test -z "$MKDIR_P"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002865 if ${ac_cv_path_mkdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002866 $as_echo_n "(cached) " >&6
2867else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_prog in mkdir gmkdir; do
2874 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002875 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00002876 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2877 'mkdir (GNU coreutils) '* | \
2878 'mkdir (coreutils) '* | \
2879 'mkdir (fileutils) '4.1*)
2880 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2881 break 3;;
2882 esac
2883 done
2884 done
2885 done
2886IFS=$as_save_IFS
2887
2888fi
2889
Joseph Myers22e05272018-10-31 17:03:16 +00002890 test -d ./--version && rmdir ./--version
Iain Buclawb4c522f2018-10-28 19:51:47 +00002891 if test "${ac_cv_path_mkdir+set}" = set; then
2892 MKDIR_P="$ac_cv_path_mkdir -p"
2893 else
2894 # As a last resort, use the slow shell script. Don't cache a
2895 # value for MKDIR_P within a source directory, because that will
2896 # break other packages using the cache if that directory is
2897 # removed, or if the value is a relative name.
Iain Buclawb4c522f2018-10-28 19:51:47 +00002898 MKDIR_P="$ac_install_sh -d"
2899 fi
2900fi
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2902$as_echo "$MKDIR_P" >&6; }
2903
Iain Buclawb4c522f2018-10-28 19:51:47 +00002904for ac_prog in gawk mawk nawk awk
2905do
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907set dummy $ac_prog; ac_word=$2
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002910if ${ac_cv_prog_AWK+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002911 $as_echo_n "(cached) " >&6
2912else
2913 if test -n "$AWK"; then
2914 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2915else
2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917for as_dir in $PATH
2918do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002923 ac_cv_prog_AWK="$ac_prog"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927done
2928 done
2929IFS=$as_save_IFS
2930
2931fi
2932fi
2933AWK=$ac_cv_prog_AWK
2934if test -n "$AWK"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2936$as_echo "$AWK" >&6; }
2937else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939$as_echo "no" >&6; }
2940fi
2941
2942
2943 test -n "$AWK" && break
2944done
2945
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2947$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2948set x ${MAKE-make}
2949ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00002950if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002951 $as_echo_n "(cached) " >&6
2952else
2953 cat >conftest.make <<\_ACEOF
2954SHELL = /bin/sh
2955all:
2956 @echo '@@@%%%=$(MAKE)=@@@%%%'
2957_ACEOF
Joseph Myers22e05272018-10-31 17:03:16 +00002958# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Iain Buclawb4c522f2018-10-28 19:51:47 +00002959case `${MAKE-make} -f conftest.make 2>/dev/null` in
2960 *@@@%%%=?*=@@@%%%*)
2961 eval ac_cv_prog_make_${ac_make}_set=yes;;
2962 *)
2963 eval ac_cv_prog_make_${ac_make}_set=no;;
2964esac
2965rm -f conftest.make
2966fi
2967if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2969$as_echo "yes" >&6; }
2970 SET_MAKE=
2971else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974 SET_MAKE="MAKE=${MAKE-make}"
2975fi
2976
2977rm -rf .tst 2>/dev/null
2978mkdir .tst 2>/dev/null
2979if test -d .tst; then
2980 am__leading_dot=.
2981else
2982 am__leading_dot=_
2983fi
2984rmdir .tst 2>/dev/null
2985
Joseph Myers22e05272018-10-31 17:03:16 +00002986# Check whether --enable-silent-rules was given.
2987if test "${enable_silent_rules+set}" = set; then :
2988 enableval=$enable_silent_rules;
2989fi
2990
2991case $enable_silent_rules in # (((
2992 yes) AM_DEFAULT_VERBOSITY=0;;
2993 no) AM_DEFAULT_VERBOSITY=1;;
2994 *) AM_DEFAULT_VERBOSITY=1;;
2995esac
2996am_make=${MAKE-make}
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2998$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2999if ${am_cv_make_support_nested_variables+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001else
3002 if $as_echo 'TRUE=$(BAR$(V))
3003BAR0=false
3004BAR1=true
3005V=1
3006am__doit:
3007 @$(TRUE)
3008.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3009 am_cv_make_support_nested_variables=yes
3010else
3011 am_cv_make_support_nested_variables=no
3012fi
3013fi
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3015$as_echo "$am_cv_make_support_nested_variables" >&6; }
3016if test $am_cv_make_support_nested_variables = yes; then
3017 AM_V='$(V)'
3018 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3019else
3020 AM_V=$AM_DEFAULT_VERBOSITY
3021 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3022fi
3023AM_BACKSLASH='\'
3024
Iain Buclawb4c522f2018-10-28 19:51:47 +00003025if test "`cd $srcdir && pwd`" != "`pwd`"; then
3026 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3027 # is not polluted with repeated "-I."
3028 am__isrc=' -I$(srcdir)'
3029 # test to see if srcdir already configured
3030 if test -f $srcdir/config.status; then
Joseph Myers22e05272018-10-31 17:03:16 +00003031 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00003032 fi
3033fi
3034
3035# test whether we have cygpath
3036if test -z "$CYGPATH_W"; then
3037 if (cygpath --version) >/dev/null 2>/dev/null; then
3038 CYGPATH_W='cygpath -w'
3039 else
3040 CYGPATH_W=echo
3041 fi
3042fi
3043
3044
3045# Define the identity of the package.
3046 PACKAGE='libphobos'
3047 VERSION='version-unused'
3048
3049
3050# Some tools Automake needs.
3051
3052ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3053
3054
3055AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3056
3057
3058AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3059
3060
3061AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3062
3063
3064MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3065
Joseph Myers22e05272018-10-31 17:03:16 +00003066# For better backward compatibility. To be removed once Automake 1.9.x
3067# dies out for good. For more background, see:
3068# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3069# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3070mkdir_p='$(MKDIR_P)'
3071
3072# We need awk for the "check" target (and possibly the TAP driver). The
3073# system "awk" is bad on some platforms.
Iain Buclawb4c522f2018-10-28 19:51:47 +00003074# Always define AMTAR for backward compatibility. Yes, it's still used
3075# in the wild :-( We should find a proper way to deprecate it ...
3076AMTAR='$${TAR-tar}'
3077
Joseph Myers22e05272018-10-31 17:03:16 +00003078
3079# We'll loop over all known methods to create a tar archive until one works.
3080_am_tools='gnutar pax cpio none'
3081
Iain Buclawb4c522f2018-10-28 19:51:47 +00003082am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3083
3084
3085
3086
3087
3088
Joseph Myers22e05272018-10-31 17:03:16 +00003089# POSIX will say in a future version that running "rm -f" with no argument
3090# is OK; and we want to be able to make that assumption in our Makefile
3091# recipes. So use an aggressive probe to check that the usage we want is
3092# actually supported "in the wild" to an acceptable degree.
3093# See automake bug#10828.
3094# To make any issue more visible, cause the running configure to be aborted
3095# by default if the 'rm' program in use doesn't match our expectations; the
3096# user can still override this though.
3097if rm -f && rm -fr && rm -rf; then : OK; else
3098 cat >&2 <<'END'
3099Oops!
3100
3101Your 'rm' program seems unable to run without file operands specified
3102on the command line, even when the '-f' option is present. This is contrary
3103to the behaviour of most rm programs out there, and not conforming with
3104the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3105
3106Please tell bug-automake@gnu.org about your system, including the value
3107of your $PATH and any error possibly output before this message. This
3108can help us improve future automake versions.
3109
3110END
3111 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3112 echo 'Configuration will proceed anyway, since you have set the' >&2
3113 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3114 echo >&2
3115 else
3116 cat >&2 <<'END'
3117Aborting the configuration process, to ensure you take notice of the issue.
3118
3119You can download and install GNU coreutils to get an 'rm' implementation
3120that behaves properly: <http://www.gnu.org/software/coreutils/>.
3121
3122If you want to complete the configuration process using your problematic
3123'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3124to "yes", and re-run configure.
3125
3126END
3127 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3128 fi
3129fi
3130
3131
Iain Buclawb4c522f2018-10-28 19:51:47 +00003132
3133
3134ac_ext=c
3135ac_cpp='$CPP $CPPFLAGS'
3136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3141set dummy ${ac_tool_prefix}gcc; ac_word=$2
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003144if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003145 $as_echo_n "(cached) " >&6
3146else
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
3149else
3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00003156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00003157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3160 fi
3161done
3162 done
3163IFS=$as_save_IFS
3164
3165fi
3166fi
3167CC=$ac_cv_prog_CC
3168if test -n "$CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170$as_echo "$CC" >&6; }
3171else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173$as_echo "no" >&6; }
3174fi
3175
3176
3177fi
3178if test -z "$ac_cv_prog_CC"; then
3179 ac_ct_CC=$CC
3180 # Extract the first word of "gcc", so it can be a program name with args.
3181set dummy gcc; ac_word=$2
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003184if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003185 $as_echo_n "(cached) " >&6
3186else
3187 if test -n "$ac_ct_CC"; then
3188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00003196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00003197 ac_cv_prog_ac_ct_CC="gcc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201done
3202 done
3203IFS=$as_save_IFS
3204
3205fi
3206fi
3207ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208if test -n "$ac_ct_CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3210$as_echo "$ac_ct_CC" >&6; }
3211else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213$as_echo "no" >&6; }
3214fi
3215
3216 if test "x$ac_ct_CC" = x; then
3217 CC=""
3218 else
3219 case $cross_compiling:$ac_tool_warned in
3220yes:)
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223ac_tool_warned=yes ;;
3224esac
3225 CC=$ac_ct_CC
3226 fi
3227else
3228 CC="$ac_cv_prog_CC"
3229fi
3230
3231if test -z "$CC"; then
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3234set dummy ${ac_tool_prefix}cc; ac_word=$2
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003237if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003238 $as_echo_n "(cached) " >&6
3239else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242else
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00003249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00003250 ac_cv_prog_CC="${ac_tool_prefix}cc"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3253 fi
3254done
3255 done
3256IFS=$as_save_IFS
3257
3258fi
3259fi
3260CC=$ac_cv_prog_CC
3261if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263$as_echo "$CC" >&6; }
3264else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
3267fi
3268
3269
3270 fi
3271fi
3272if test -z "$CC"; then
3273 # Extract the first word of "cc", so it can be a program name with args.
3274set dummy cc; ac_word=$2
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003277if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003278 $as_echo_n "(cached) " >&6
3279else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282else
3283 ac_prog_rejected=no
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00003290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00003291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3292 ac_prog_rejected=yes
3293 continue
3294 fi
3295 ac_cv_prog_CC="cc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299done
3300 done
3301IFS=$as_save_IFS
3302
3303if test $ac_prog_rejected = yes; then
3304 # We found a bogon in the path, so make sure we never use it.
3305 set dummy $ac_cv_prog_CC
3306 shift
3307 if test $# != 0; then
3308 # We chose a different compiler from the bogus one.
3309 # However, it has the same basename, so the bogon will be chosen
3310 # first if we set CC to just the basename; use the full file name.
3311 shift
3312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3313 fi
3314fi
3315fi
3316fi
3317CC=$ac_cv_prog_CC
3318if test -n "$CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320$as_echo "$CC" >&6; }
3321else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323$as_echo "no" >&6; }
3324fi
3325
3326
3327fi
3328if test -z "$CC"; then
3329 if test -n "$ac_tool_prefix"; then
3330 for ac_prog in cl.exe
3331 do
3332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003336if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003337 $as_echo_n "(cached) " >&6
3338else
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3341else
3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00003348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00003349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3352 fi
3353done
3354 done
3355IFS=$as_save_IFS
3356
3357fi
3358fi
3359CC=$ac_cv_prog_CC
3360if test -n "$CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362$as_echo "$CC" >&6; }
3363else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365$as_echo "no" >&6; }
3366fi
3367
3368
3369 test -n "$CC" && break
3370 done
3371fi
3372if test -z "$CC"; then
3373 ac_ct_CC=$CC
3374 for ac_prog in cl.exe
3375do
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377set dummy $ac_prog; ac_word=$2
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003380if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003381 $as_echo_n "(cached) " >&6
3382else
3383 if test -n "$ac_ct_CC"; then
3384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385else
3386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387for as_dir in $PATH
3388do
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00003392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00003393 ac_cv_prog_ac_ct_CC="$ac_prog"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397done
3398 done
3399IFS=$as_save_IFS
3400
3401fi
3402fi
3403ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404if test -n "$ac_ct_CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3406$as_echo "$ac_ct_CC" >&6; }
3407else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409$as_echo "no" >&6; }
3410fi
3411
3412
3413 test -n "$ac_ct_CC" && break
3414done
3415
3416 if test "x$ac_ct_CC" = x; then
3417 CC=""
3418 else
3419 case $cross_compiling:$ac_tool_warned in
3420yes:)
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423ac_tool_warned=yes ;;
3424esac
3425 CC=$ac_ct_CC
3426 fi
3427fi
3428
3429fi
3430
3431
3432test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003434as_fn_error $? "no acceptable C compiler found in \$PATH
3435See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003436
3437# Provide some information about the compiler.
3438$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439set X $ac_compile
3440ac_compiler=$2
3441for ac_option in --version -v -V -qversion; do
3442 { { ac_try="$ac_compiler $ac_option >&5"
3443case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446esac
3447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448$as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3450 ac_status=$?
3451 if test -s conftest.err; then
3452 sed '10a\
3453... rest of stderr output deleted ...
3454 10q' conftest.err >conftest.er1
3455 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00003456 fi
Joseph Myers22e05272018-10-31 17:03:16 +00003457 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00003458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }
3460done
3461
3462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463/* end confdefs.h. */
3464
3465int
3466main ()
3467{
3468
3469 ;
3470 return 0;
3471}
3472_ACEOF
3473ac_clean_files_save=$ac_clean_files
Joseph Myers22e05272018-10-31 17:03:16 +00003474ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Iain Buclawb4c522f2018-10-28 19:51:47 +00003475# Try to create an executable without -o first, disregard a.out.
3476# It will help us diagnose broken compilers, and finding out an intuition
3477# of exeext.
Joseph Myers22e05272018-10-31 17:03:16 +00003478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3479$as_echo_n "checking whether the C compiler works... " >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003480ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3481
3482# The possible output files:
3483ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3484
3485ac_rmfiles=
3486for ac_file in $ac_files
3487do
3488 case $ac_file in
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3490 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3491 esac
3492done
3493rm -f $ac_rmfiles
3494
3495if { { ac_try="$ac_link_default"
3496case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499esac
3500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501$as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_link_default") 2>&5
3503 ac_status=$?
3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 test $ac_status = 0; }; then :
3506 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3507# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3508# in a Makefile. We should not override ac_cv_exeext if it was cached,
3509# so that the user can short-circuit this test for compilers unknown to
3510# Autoconf.
3511for ac_file in $ac_files ''
3512do
3513 test -f "$ac_file" || continue
3514 case $ac_file in
3515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3516 ;;
3517 [ab].out )
3518 # We found the default executable, but exeext='' is most
3519 # certainly right.
3520 break;;
3521 *.* )
3522 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3523 then :; else
3524 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525 fi
3526 # We set ac_cv_exeext here because the later test for it is not
3527 # safe: cross compilers may not add the suffix if given an `-o'
3528 # argument, so we may need to know it at that point already.
3529 # Even if this section looks crufty: it has the advantage of
3530 # actually working.
3531 break;;
3532 * )
3533 break;;
3534 esac
3535done
3536test "$ac_cv_exeext" = no && ac_cv_exeext=
3537
3538else
3539 ac_file=''
3540fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00003541if test -z "$ac_file"; then :
Joseph Myers22e05272018-10-31 17:03:16 +00003542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543$as_echo "no" >&6; }
3544$as_echo "$as_me: failed program was:" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00003545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003549as_fn_error 77 "C compiler cannot create executables
3550See \`config.log' for more details" "$LINENO" 5; }
3551else
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3553$as_echo "yes" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003554fi
Joseph Myers22e05272018-10-31 17:03:16 +00003555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3556$as_echo_n "checking for C compiler default output file name... " >&6; }
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3558$as_echo "$ac_file" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003559ac_exeext=$ac_cv_exeext
3560
Joseph Myers22e05272018-10-31 17:03:16 +00003561rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Iain Buclawb4c522f2018-10-28 19:51:47 +00003562ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3564$as_echo_n "checking for suffix of executables... " >&6; }
3565if { { ac_try="$ac_link"
3566case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569esac
3570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571$as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_link") 2>&5
3573 ac_status=$?
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }; then :
3576 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3577# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3578# work properly (i.e., refer to `conftest.exe'), while it won't with
3579# `rm'.
3580for ac_file in conftest.exe conftest conftest.*; do
3581 test -f "$ac_file" || continue
3582 case $ac_file in
3583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3585 break;;
3586 * ) break;;
3587 esac
3588done
3589else
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003592as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3593See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003594fi
Joseph Myers22e05272018-10-31 17:03:16 +00003595rm -f conftest conftest$ac_cv_exeext
Iain Buclawb4c522f2018-10-28 19:51:47 +00003596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3597$as_echo "$ac_cv_exeext" >&6; }
3598
3599rm -f conftest.$ac_ext
3600EXEEXT=$ac_cv_exeext
3601ac_exeext=$EXEEXT
Joseph Myers22e05272018-10-31 17:03:16 +00003602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603/* end confdefs.h. */
3604#include <stdio.h>
3605int
3606main ()
3607{
3608FILE *f = fopen ("conftest.out", "w");
3609 return ferror (f) || fclose (f) != 0;
3610
3611 ;
3612 return 0;
3613}
3614_ACEOF
3615ac_clean_files="$ac_clean_files conftest.out"
3616# Check that the compiler produces executables we can run. If not, either
3617# the compiler is broken, or we cross compile.
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3619$as_echo_n "checking whether we are cross compiling... " >&6; }
3620if test "$cross_compiling" != yes; then
3621 { { ac_try="$ac_link"
3622case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625esac
3626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627$as_echo "$ac_try_echo"; } >&5
3628 (eval "$ac_link") 2>&5
3629 ac_status=$?
3630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631 test $ac_status = 0; }
3632 if { ac_try='./conftest$ac_cv_exeext'
3633 { { case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636esac
3637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638$as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_try") 2>&5
3640 ac_status=$?
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }; }; then
3643 cross_compiling=no
3644 else
3645 if test "$cross_compiling" = maybe; then
3646 cross_compiling=yes
3647 else
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650as_fn_error $? "cannot run C compiled programs.
3651If you meant to cross compile, use \`--host'.
3652See \`config.log' for more details" "$LINENO" 5; }
3653 fi
3654 fi
3655fi
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3657$as_echo "$cross_compiling" >&6; }
3658
3659rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3660ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3662$as_echo_n "checking for suffix of object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003663if ${ac_cv_objext+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003664 $as_echo_n "(cached) " >&6
3665else
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h. */
3668
3669int
3670main ()
3671{
3672
3673 ;
3674 return 0;
3675}
3676_ACEOF
3677rm -f conftest.o conftest.obj
3678if { { ac_try="$ac_compile"
3679case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682esac
3683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684$as_echo "$ac_try_echo"; } >&5
3685 (eval "$ac_compile") 2>&5
3686 ac_status=$?
3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }; then :
3689 for ac_file in conftest.o conftest.obj conftest.*; do
3690 test -f "$ac_file" || continue;
3691 case $ac_file in
3692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3694 break;;
3695 esac
3696done
3697else
3698 $as_echo "$as_me: failed program was:" >&5
3699sed 's/^/| /' conftest.$ac_ext >&5
3700
3701{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003703as_fn_error $? "cannot compute suffix of object files: cannot compile
3704See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003705fi
3706rm -f conftest.$ac_cv_objext conftest.$ac_ext
3707fi
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3709$as_echo "$ac_cv_objext" >&6; }
3710OBJEXT=$ac_cv_objext
3711ac_objext=$OBJEXT
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3713$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003714if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003715 $as_echo_n "(cached) " >&6
3716else
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718/* end confdefs.h. */
3719
3720int
3721main ()
3722{
3723#ifndef __GNUC__
3724 choke me
3725#endif
3726
3727 ;
3728 return 0;
3729}
3730_ACEOF
3731if ac_fn_c_try_compile "$LINENO"; then :
3732 ac_compiler_gnu=yes
3733else
3734 ac_compiler_gnu=no
3735fi
3736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738
3739fi
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3741$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3742if test $ac_compiler_gnu = yes; then
3743 GCC=yes
3744else
3745 GCC=
3746fi
3747ac_test_CFLAGS=${CFLAGS+set}
3748ac_save_CFLAGS=$CFLAGS
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3750$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003751if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003752 $as_echo_n "(cached) " >&6
3753else
3754 ac_save_c_werror_flag=$ac_c_werror_flag
3755 ac_c_werror_flag=yes
3756 ac_cv_prog_cc_g=no
3757 CFLAGS="-g"
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759/* end confdefs.h. */
3760
3761int
3762main ()
3763{
3764
3765 ;
3766 return 0;
3767}
3768_ACEOF
3769if ac_fn_c_try_compile "$LINENO"; then :
3770 ac_cv_prog_cc_g=yes
3771else
3772 CFLAGS=""
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774/* end confdefs.h. */
3775
3776int
3777main ()
3778{
3779
3780 ;
3781 return 0;
3782}
3783_ACEOF
3784if ac_fn_c_try_compile "$LINENO"; then :
3785
3786else
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3788 CFLAGS="-g"
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h. */
3791
3792int
3793main ()
3794{
3795
3796 ;
3797 return 0;
3798}
3799_ACEOF
3800if ac_fn_c_try_compile "$LINENO"; then :
3801 ac_cv_prog_cc_g=yes
3802fi
3803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804fi
3805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806fi
3807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 ac_c_werror_flag=$ac_save_c_werror_flag
3809fi
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3811$as_echo "$ac_cv_prog_cc_g" >&6; }
3812if test "$ac_test_CFLAGS" = set; then
3813 CFLAGS=$ac_save_CFLAGS
3814elif test $ac_cv_prog_cc_g = yes; then
3815 if test "$GCC" = yes; then
3816 CFLAGS="-g -O2"
3817 else
3818 CFLAGS="-g"
3819 fi
3820else
3821 if test "$GCC" = yes; then
3822 CFLAGS="-O2"
3823 else
3824 CFLAGS=
3825 fi
3826fi
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3828$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003829if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003830 $as_echo_n "(cached) " >&6
3831else
3832 ac_cv_prog_cc_c89=no
3833ac_save_CC=$CC
3834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h. */
3836#include <stdarg.h>
3837#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00003838struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00003839/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3840struct buf { int x; };
3841FILE * (*rcsopen) (struct buf *, struct stat *, int);
3842static char *e (p, i)
3843 char **p;
3844 int i;
3845{
3846 return p[i];
3847}
3848static char *f (char * (*g) (char **, int), char **p, ...)
3849{
3850 char *s;
3851 va_list v;
3852 va_start (v,p);
3853 s = g (p, va_arg (v,int));
3854 va_end (v);
3855 return s;
3856}
3857
3858/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3859 function prototypes and stuff, but not '\xHH' hex character constants.
3860 These don't provoke an error unfortunately, instead are silently treated
3861 as 'x'. The following induces an error, until -std is added to get
3862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3863 array size at least. It's necessary to write '\x00'==0 to get something
3864 that's true only with -std. */
3865int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3866
3867/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3868 inside strings and character constants. */
3869#define FOO(x) 'x'
3870int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3871
3872int test (int i, double x);
3873struct s1 {int (*f) (int a);};
3874struct s2 {int (*f) (double a);};
3875int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3876int argc;
3877char **argv;
3878int
3879main ()
3880{
3881return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3882 ;
3883 return 0;
3884}
3885_ACEOF
3886for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3888do
3889 CC="$ac_save_CC $ac_arg"
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_cv_prog_cc_c89=$ac_arg
3892fi
3893rm -f core conftest.err conftest.$ac_objext
3894 test "x$ac_cv_prog_cc_c89" != "xno" && break
3895done
3896rm -f conftest.$ac_ext
3897CC=$ac_save_CC
3898
3899fi
3900# AC_CACHE_VAL
3901case "x$ac_cv_prog_cc_c89" in
3902 x)
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3904$as_echo "none needed" >&6; } ;;
3905 xno)
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3907$as_echo "unsupported" >&6; } ;;
3908 *)
3909 CC="$CC $ac_cv_prog_cc_c89"
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3911$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3912esac
3913if test "x$ac_cv_prog_cc_c89" != xno; then :
3914
3915fi
3916
3917ac_ext=c
3918ac_cpp='$CPP $CPPFLAGS'
3919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
Joseph Myers22e05272018-10-31 17:03:16 +00003923ac_ext=c
3924ac_cpp='$CPP $CPPFLAGS'
3925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3929$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3930if ${am_cv_prog_cc_c_o+:} false; then :
3931 $as_echo_n "(cached) " >&6
3932else
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934/* end confdefs.h. */
3935
3936int
3937main ()
3938{
3939
3940 ;
3941 return 0;
3942}
3943_ACEOF
3944 # Make sure it works both with $CC and with simple cc.
3945 # Following AC_PROG_CC_C_O, we do the test twice because some
3946 # compilers refuse to overwrite an existing .o file with -o,
3947 # though they will create one.
3948 am_cv_prog_cc_c_o=yes
3949 for am_i in 1 2; do
3950 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3951 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } \
3955 && test -f conftest2.$ac_objext; then
3956 : OK
3957 else
3958 am_cv_prog_cc_c_o=no
3959 break
3960 fi
3961 done
3962 rm -f core conftest*
3963 unset am_i
3964fi
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3966$as_echo "$am_cv_prog_cc_c_o" >&6; }
3967if test "$am_cv_prog_cc_c_o" != yes; then
3968 # Losing compiler, so override with the script.
3969 # FIXME: It is wrong to rewrite CC.
3970 # But if we don't then we get into trouble of one sort or another.
3971 # A longer-term fix would be to have automake use am__CC in this case,
3972 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3973 CC="$am_aux_dir/compile $CC"
3974fi
3975ac_ext=c
3976ac_cpp='$CPP $CPPFLAGS'
3977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980
3981
Iain Buclawb4c522f2018-10-28 19:51:47 +00003982# By default we simply use the C compiler to build assembly code.
3983
3984test "${CCAS+set}" = set || CCAS=$CC
3985test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3986
3987
3988
3989ac_ext=c
3990ac_cpp='$CPP $CPPFLAGS'
3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994if test -n "$ac_tool_prefix"; then
3995 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3996set dummy ${ac_tool_prefix}gcc; ac_word=$2
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003999if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004000 $as_echo_n "(cached) " >&6
4001else
4002 if test -n "$CC"; then
4003 ac_cv_prog_CC="$CC" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004012 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016done
4017 done
4018IFS=$as_save_IFS
4019
4020fi
4021fi
4022CC=$ac_cv_prog_CC
4023if test -n "$CC"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4025$as_echo "$CC" >&6; }
4026else
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028$as_echo "no" >&6; }
4029fi
4030
4031
4032fi
4033if test -z "$ac_cv_prog_CC"; then
4034 ac_ct_CC=$CC
4035 # Extract the first word of "gcc", so it can be a program name with args.
4036set dummy gcc; ac_word=$2
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004039if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004040 $as_echo_n "(cached) " >&6
4041else
4042 if test -n "$ac_ct_CC"; then
4043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004052 ac_cv_prog_ac_ct_CC="gcc"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056done
4057 done
4058IFS=$as_save_IFS
4059
4060fi
4061fi
4062ac_ct_CC=$ac_cv_prog_ac_ct_CC
4063if test -n "$ac_ct_CC"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4065$as_echo "$ac_ct_CC" >&6; }
4066else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068$as_echo "no" >&6; }
4069fi
4070
4071 if test "x$ac_ct_CC" = x; then
4072 CC=""
4073 else
4074 case $cross_compiling:$ac_tool_warned in
4075yes:)
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4078ac_tool_warned=yes ;;
4079esac
4080 CC=$ac_ct_CC
4081 fi
4082else
4083 CC="$ac_cv_prog_CC"
4084fi
4085
4086if test -z "$CC"; then
4087 if test -n "$ac_tool_prefix"; then
4088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4089set dummy ${ac_tool_prefix}cc; ac_word=$2
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004092if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004093 $as_echo_n "(cached) " >&6
4094else
4095 if test -n "$CC"; then
4096 ac_cv_prog_CC="$CC" # Let the user override the test.
4097else
4098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099for as_dir in $PATH
4100do
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004105 ac_cv_prog_CC="${ac_tool_prefix}cc"
4106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 break 2
4108 fi
4109done
4110 done
4111IFS=$as_save_IFS
4112
4113fi
4114fi
4115CC=$ac_cv_prog_CC
4116if test -n "$CC"; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4118$as_echo "$CC" >&6; }
4119else
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121$as_echo "no" >&6; }
4122fi
4123
4124
4125 fi
4126fi
4127if test -z "$CC"; then
4128 # Extract the first word of "cc", so it can be a program name with args.
4129set dummy cc; ac_word=$2
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004132if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004133 $as_echo_n "(cached) " >&6
4134else
4135 if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4137else
4138 ac_prog_rejected=no
4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004146 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4147 ac_prog_rejected=yes
4148 continue
4149 fi
4150 ac_cv_prog_CC="cc"
4151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 break 2
4153 fi
4154done
4155 done
4156IFS=$as_save_IFS
4157
4158if test $ac_prog_rejected = yes; then
4159 # We found a bogon in the path, so make sure we never use it.
4160 set dummy $ac_cv_prog_CC
4161 shift
4162 if test $# != 0; then
4163 # We chose a different compiler from the bogus one.
4164 # However, it has the same basename, so the bogon will be chosen
4165 # first if we set CC to just the basename; use the full file name.
4166 shift
4167 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4168 fi
4169fi
4170fi
4171fi
4172CC=$ac_cv_prog_CC
4173if test -n "$CC"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4175$as_echo "$CC" >&6; }
4176else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178$as_echo "no" >&6; }
4179fi
4180
4181
4182fi
4183if test -z "$CC"; then
4184 if test -n "$ac_tool_prefix"; then
4185 for ac_prog in cl.exe
4186 do
4187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4188set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004191if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004192 $as_echo_n "(cached) " >&6
4193else
4194 if test -n "$CC"; then
4195 ac_cv_prog_CC="$CC" # Let the user override the test.
4196else
4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004204 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4207 fi
4208done
4209 done
4210IFS=$as_save_IFS
4211
4212fi
4213fi
4214CC=$ac_cv_prog_CC
4215if test -n "$CC"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4217$as_echo "$CC" >&6; }
4218else
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220$as_echo "no" >&6; }
4221fi
4222
4223
4224 test -n "$CC" && break
4225 done
4226fi
4227if test -z "$CC"; then
4228 ac_ct_CC=$CC
4229 for ac_prog in cl.exe
4230do
4231 # Extract the first word of "$ac_prog", so it can be a program name with args.
4232set dummy $ac_prog; ac_word=$2
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004235if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004236 $as_echo_n "(cached) " >&6
4237else
4238 if test -n "$ac_ct_CC"; then
4239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4240else
4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH
4243do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004248 ac_cv_prog_ac_ct_CC="$ac_prog"
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4251 fi
4252done
4253 done
4254IFS=$as_save_IFS
4255
4256fi
4257fi
4258ac_ct_CC=$ac_cv_prog_ac_ct_CC
4259if test -n "$ac_ct_CC"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4261$as_echo "$ac_ct_CC" >&6; }
4262else
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264$as_echo "no" >&6; }
4265fi
4266
4267
4268 test -n "$ac_ct_CC" && break
4269done
4270
4271 if test "x$ac_ct_CC" = x; then
4272 CC=""
4273 else
4274 case $cross_compiling:$ac_tool_warned in
4275yes:)
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4278ac_tool_warned=yes ;;
4279esac
4280 CC=$ac_ct_CC
4281 fi
4282fi
4283
4284fi
4285
4286
4287test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00004289as_fn_error $? "no acceptable C compiler found in \$PATH
4290See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00004291
4292# Provide some information about the compiler.
4293$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4294set X $ac_compile
4295ac_compiler=$2
4296for ac_option in --version -v -V -qversion; do
4297 { { ac_try="$ac_compiler $ac_option >&5"
4298case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301esac
4302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303$as_echo "$ac_try_echo"; } >&5
4304 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4305 ac_status=$?
4306 if test -s conftest.err; then
4307 sed '10a\
4308... rest of stderr output deleted ...
4309 10q' conftest.err >conftest.er1
4310 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00004311 fi
Joseph Myers22e05272018-10-31 17:03:16 +00004312 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00004313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }
4315done
4316
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4318$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004319if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004320 $as_echo_n "(cached) " >&6
4321else
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323/* end confdefs.h. */
4324
4325int
4326main ()
4327{
4328#ifndef __GNUC__
4329 choke me
4330#endif
4331
4332 ;
4333 return 0;
4334}
4335_ACEOF
4336if ac_fn_c_try_compile "$LINENO"; then :
4337 ac_compiler_gnu=yes
4338else
4339 ac_compiler_gnu=no
4340fi
4341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342ac_cv_c_compiler_gnu=$ac_compiler_gnu
4343
4344fi
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4346$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4347if test $ac_compiler_gnu = yes; then
4348 GCC=yes
4349else
4350 GCC=
4351fi
4352ac_test_CFLAGS=${CFLAGS+set}
4353ac_save_CFLAGS=$CFLAGS
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4355$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004356if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004357 $as_echo_n "(cached) " >&6
4358else
4359 ac_save_c_werror_flag=$ac_c_werror_flag
4360 ac_c_werror_flag=yes
4361 ac_cv_prog_cc_g=no
4362 CFLAGS="-g"
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364/* end confdefs.h. */
4365
4366int
4367main ()
4368{
4369
4370 ;
4371 return 0;
4372}
4373_ACEOF
4374if ac_fn_c_try_compile "$LINENO"; then :
4375 ac_cv_prog_cc_g=yes
4376else
4377 CFLAGS=""
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379/* end confdefs.h. */
4380
4381int
4382main ()
4383{
4384
4385 ;
4386 return 0;
4387}
4388_ACEOF
4389if ac_fn_c_try_compile "$LINENO"; then :
4390
4391else
4392 ac_c_werror_flag=$ac_save_c_werror_flag
4393 CFLAGS="-g"
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395/* end confdefs.h. */
4396
4397int
4398main ()
4399{
4400
4401 ;
4402 return 0;
4403}
4404_ACEOF
4405if ac_fn_c_try_compile "$LINENO"; then :
4406 ac_cv_prog_cc_g=yes
4407fi
4408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409fi
4410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411fi
4412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 ac_c_werror_flag=$ac_save_c_werror_flag
4414fi
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4416$as_echo "$ac_cv_prog_cc_g" >&6; }
4417if test "$ac_test_CFLAGS" = set; then
4418 CFLAGS=$ac_save_CFLAGS
4419elif test $ac_cv_prog_cc_g = yes; then
4420 if test "$GCC" = yes; then
4421 CFLAGS="-g -O2"
4422 else
4423 CFLAGS="-g"
4424 fi
4425else
4426 if test "$GCC" = yes; then
4427 CFLAGS="-O2"
4428 else
4429 CFLAGS=
4430 fi
4431fi
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4433$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004434if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004435 $as_echo_n "(cached) " >&6
4436else
4437 ac_cv_prog_cc_c89=no
4438ac_save_CC=$CC
4439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440/* end confdefs.h. */
4441#include <stdarg.h>
4442#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00004443struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00004444/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4445struct buf { int x; };
4446FILE * (*rcsopen) (struct buf *, struct stat *, int);
4447static char *e (p, i)
4448 char **p;
4449 int i;
4450{
4451 return p[i];
4452}
4453static char *f (char * (*g) (char **, int), char **p, ...)
4454{
4455 char *s;
4456 va_list v;
4457 va_start (v,p);
4458 s = g (p, va_arg (v,int));
4459 va_end (v);
4460 return s;
4461}
4462
4463/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4464 function prototypes and stuff, but not '\xHH' hex character constants.
4465 These don't provoke an error unfortunately, instead are silently treated
4466 as 'x'. The following induces an error, until -std is added to get
4467 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4468 array size at least. It's necessary to write '\x00'==0 to get something
4469 that's true only with -std. */
4470int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4471
4472/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4473 inside strings and character constants. */
4474#define FOO(x) 'x'
4475int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4476
4477int test (int i, double x);
4478struct s1 {int (*f) (int a);};
4479struct s2 {int (*f) (double a);};
4480int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4481int argc;
4482char **argv;
4483int
4484main ()
4485{
4486return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4487 ;
4488 return 0;
4489}
4490_ACEOF
4491for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4492 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4493do
4494 CC="$ac_save_CC $ac_arg"
4495 if ac_fn_c_try_compile "$LINENO"; then :
4496 ac_cv_prog_cc_c89=$ac_arg
4497fi
4498rm -f core conftest.err conftest.$ac_objext
4499 test "x$ac_cv_prog_cc_c89" != "xno" && break
4500done
4501rm -f conftest.$ac_ext
4502CC=$ac_save_CC
4503
4504fi
4505# AC_CACHE_VAL
4506case "x$ac_cv_prog_cc_c89" in
4507 x)
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4509$as_echo "none needed" >&6; } ;;
4510 xno)
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4512$as_echo "unsupported" >&6; } ;;
4513 *)
4514 CC="$CC $ac_cv_prog_cc_c89"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4516$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4517esac
4518if test "x$ac_cv_prog_cc_c89" != xno; then :
4519
4520fi
4521
4522ac_ext=c
4523ac_cpp='$CPP $CPPFLAGS'
4524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527
Joseph Myers22e05272018-10-31 17:03:16 +00004528ac_ext=c
4529ac_cpp='$CPP $CPPFLAGS'
4530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4534$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4535if ${am_cv_prog_cc_c_o+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537else
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539/* end confdefs.h. */
4540
4541int
4542main ()
4543{
4544
4545 ;
4546 return 0;
4547}
4548_ACEOF
4549 # Make sure it works both with $CC and with simple cc.
4550 # Following AC_PROG_CC_C_O, we do the test twice because some
4551 # compilers refuse to overwrite an existing .o file with -o,
4552 # though they will create one.
4553 am_cv_prog_cc_c_o=yes
4554 for am_i in 1 2; do
4555 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4556 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } \
4560 && test -f conftest2.$ac_objext; then
4561 : OK
4562 else
4563 am_cv_prog_cc_c_o=no
4564 break
4565 fi
4566 done
4567 rm -f core conftest*
4568 unset am_i
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4571$as_echo "$am_cv_prog_cc_c_o" >&6; }
4572if test "$am_cv_prog_cc_c_o" != yes; then
4573 # Losing compiler, so override with the script.
4574 # FIXME: It is wrong to rewrite CC.
4575 # But if we don't then we get into trouble of one sort or another.
4576 # A longer-term fix would be to have automake use am__CC in this case,
4577 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4578 CC="$am_aux_dir/compile $CC"
4579fi
4580ac_ext=c
4581ac_cpp='$CPP $CPPFLAGS'
4582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
4586
Iain Buclawb4c522f2018-10-28 19:51:47 +00004587ac_ext=d
4588ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4589ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590ac_compiler_gnu=yes
4591if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4593set dummy ${ac_tool_prefix}gdc; ac_word=$2
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004596if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004597 $as_echo_n "(cached) " >&6
4598else
4599 if test -n "$GDC"; then
4600 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4601else
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004609 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4612 fi
4613done
4614 done
4615IFS=$as_save_IFS
4616
4617fi
4618fi
4619GDC=$ac_cv_prog_GDC
4620if test -n "$GDC"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4622$as_echo "$GDC" >&6; }
4623else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625$as_echo "no" >&6; }
4626fi
4627
4628
4629fi
4630if test -z "$ac_cv_prog_GDC"; then
4631 ac_ct_GDC=$GDC
4632 # Extract the first word of "gdc", so it can be a program name with args.
4633set dummy gdc; ac_word=$2
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004636if ${ac_cv_prog_ac_ct_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004637 $as_echo_n "(cached) " >&6
4638else
4639 if test -n "$ac_ct_GDC"; then
4640 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
4641else
4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004649 ac_cv_prog_ac_ct_GDC="gdc"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653done
4654 done
4655IFS=$as_save_IFS
4656
4657fi
4658fi
4659ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
4660if test -n "$ac_ct_GDC"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
4662$as_echo "$ac_ct_GDC" >&6; }
4663else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665$as_echo "no" >&6; }
4666fi
4667
4668 if test "x$ac_ct_GDC" = x; then
4669 GDC=""
4670 else
4671 case $cross_compiling:$ac_tool_warned in
4672yes:)
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675ac_tool_warned=yes ;;
4676esac
4677 GDC=$ac_ct_GDC
4678 fi
4679else
4680 GDC="$ac_cv_prog_GDC"
4681fi
4682
4683if test -z "$GDC"; then
4684 if test -n "$ac_tool_prefix"; then
4685 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4686set dummy ${ac_tool_prefix}gdc; ac_word=$2
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004689if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004690 $as_echo_n "(cached) " >&6
4691else
4692 if test -n "$GDC"; then
4693 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4694else
4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004702 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4705 fi
4706done
4707 done
4708IFS=$as_save_IFS
4709
4710fi
4711fi
4712GDC=$ac_cv_prog_GDC
4713if test -n "$GDC"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4715$as_echo "$GDC" >&6; }
4716else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718$as_echo "no" >&6; }
4719fi
4720
4721
4722 fi
4723fi
4724if test -z "$GDC"; then
4725 # Extract the first word of "gdc", so it can be a program name with args.
4726set dummy gdc; ac_word=$2
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004729if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004730 $as_echo_n "(cached) " >&6
4731else
4732 if test -n "$GDC"; then
4733 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4734else
4735 ac_prog_rejected=no
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004743 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4744 ac_prog_rejected=yes
4745 continue
4746 fi
4747 ac_cv_prog_GDC="gdc"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751done
4752 done
4753IFS=$as_save_IFS
4754
4755if test $ac_prog_rejected = yes; then
4756 # We found a bogon in the path, so make sure we never use it.
4757 set dummy $ac_cv_prog_GDC
4758 shift
4759 if test $# != 0; then
4760 # We chose a different compiler from the bogus one.
4761 # However, it has the same basename, so the bogon will be chosen
4762 # first if we set GDC to just the basename; use the full file name.
4763 shift
4764 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
4765 fi
4766fi
4767fi
4768fi
4769GDC=$ac_cv_prog_GDC
4770if test -n "$GDC"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4772$as_echo "$GDC" >&6; }
4773else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775$as_echo "no" >&6; }
4776fi
4777
4778
4779fi
4780
4781
4782# Provide some information about the compiler.
4783$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
4784set X $ac_compile
4785ac_compiler=$2
4786{ { ac_try="$ac_compiler --version >&5"
4787case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790esac
4791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4792$as_echo "$ac_try_echo"; } >&5
4793 (eval "$ac_compiler --version >&5") 2>conftest.err
4794 ac_status=$?
4795 if test -s conftest.err; then
4796 sed '10a\
4797... rest of stderr output deleted ...
4798 10q' conftest.err >conftest.er1
4799 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00004800 fi
Joseph Myers22e05272018-10-31 17:03:16 +00004801 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00004802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4803 test $ac_status = 0; }
4804ac_ext=c
4805ac_cpp='$CPP $CPPFLAGS'
4806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808ac_compiler_gnu=$ac_cv_c_compiler_gnu
4809
4810
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
4812$as_echo_n "checking for absolute libphobos source path... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004813if ${phobos_cv_abs_srcdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004814 $as_echo_n "(cached) " >&6
4815else
4816 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
4817fi
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
4819$as_echo "$phobos_cv_abs_srcdir" >&6; }
4820 if test -d "$phobos_cv_abs_srcdir"; then :
4821
4822else
Joseph Myers22e05272018-10-31 17:03:16 +00004823 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00004824fi
4825
4826
4827
4828
4829 gdc_save_DFLAGS=$GDCFLAGS
4830 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
4831
4832 ac_ext=d
4833ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4834ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835ac_compiler_gnu=yes
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
4838$as_echo_n "checking If $GDC can compile D sources... " >&6; }
4839 cat > conftest.$ac_ext <<_ACEOF
4840module mod;
4841
4842
4843extern(C) int main() {
4844 return 0;
4845}
4846_ACEOF
4847if ac_fn_d_try_compile "$LINENO"; then :
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4849$as_echo "yes" >&6; }
4850else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004853 as_fn_error $? "can't compile D sources!" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00004854fi
4855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 ac_ext=c
4857ac_cpp='$CPP $CPPFLAGS'
4858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861
4862
4863 GDCFLAGS=$gdc_save_DFLAGS
4864
4865
4866
4867
4868
4869
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4871$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4872 # Check whether --enable-maintainer-mode was given.
4873if test "${enable_maintainer_mode+set}" = set; then :
4874 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4875else
4876 USE_MAINTAINER_MODE=no
4877fi
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4880$as_echo "$USE_MAINTAINER_MODE" >&6; }
4881 if test $USE_MAINTAINER_MODE = yes; then
4882 MAINTAINER_MODE_TRUE=
4883 MAINTAINER_MODE_FALSE='#'
4884else
4885 MAINTAINER_MODE_TRUE='#'
4886 MAINTAINER_MODE_FALSE=
4887fi
4888
4889 MAINT=$MAINTAINER_MODE_TRUE
4890
4891
4892if test -n "$ac_tool_prefix"; then
4893 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4894set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004897if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004898 $as_echo_n "(cached) " >&6
4899else
4900 if test -n "$RANLIB"; then
4901 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4902else
4903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904for as_dir in $PATH
4905do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004910 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4913 fi
4914done
4915 done
4916IFS=$as_save_IFS
4917
4918fi
4919fi
4920RANLIB=$ac_cv_prog_RANLIB
4921if test -n "$RANLIB"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4923$as_echo "$RANLIB" >&6; }
4924else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926$as_echo "no" >&6; }
4927fi
4928
4929
4930fi
4931if test -z "$ac_cv_prog_RANLIB"; then
4932 ac_ct_RANLIB=$RANLIB
4933 # Extract the first word of "ranlib", so it can be a program name with args.
4934set dummy ranlib; ac_word=$2
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004937if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004938 $as_echo_n "(cached) " >&6
4939else
4940 if test -n "$ac_ct_RANLIB"; then
4941 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4942else
4943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944for as_dir in $PATH
4945do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004950 ac_cv_prog_ac_ct_RANLIB="ranlib"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4953 fi
4954done
4955 done
4956IFS=$as_save_IFS
4957
4958fi
4959fi
4960ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4961if test -n "$ac_ct_RANLIB"; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4963$as_echo "$ac_ct_RANLIB" >&6; }
4964else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966$as_echo "no" >&6; }
4967fi
4968
4969 if test "x$ac_ct_RANLIB" = x; then
4970 RANLIB=":"
4971 else
4972 case $cross_compiling:$ac_tool_warned in
4973yes:)
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4976ac_tool_warned=yes ;;
4977esac
4978 RANLIB=$ac_ct_RANLIB
4979 fi
4980else
4981 RANLIB="$ac_cv_prog_RANLIB"
4982fi
4983
4984
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4986$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4987set x ${MAKE-make}
4988ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00004989if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004990 $as_echo_n "(cached) " >&6
4991else
4992 cat >conftest.make <<\_ACEOF
4993SHELL = /bin/sh
4994all:
4995 @echo '@@@%%%=$(MAKE)=@@@%%%'
4996_ACEOF
Joseph Myers22e05272018-10-31 17:03:16 +00004997# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Iain Buclawb4c522f2018-10-28 19:51:47 +00004998case `${MAKE-make} -f conftest.make 2>/dev/null` in
4999 *@@@%%%=?*=@@@%%%*)
5000 eval ac_cv_prog_make_${ac_make}_set=yes;;
5001 *)
5002 eval ac_cv_prog_make_${ac_make}_set=no;;
5003esac
5004rm -f conftest.make
5005fi
5006if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5008$as_echo "yes" >&6; }
5009 SET_MAKE=
5010else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012$as_echo "no" >&6; }
5013 SET_MAKE="MAKE=${MAKE-make}"
5014fi
5015
5016
5017# This should be inherited in the recursive make, but ensure it is defined.
5018test "$AR" || AR=ar
5019
5020
5021CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5022
5023
5024
5025# Enable libtool
5026case `pwd` in
5027 *\ * | *\ *)
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5029$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5030esac
5031
5032
5033
5034macro_version='2.2.7a'
5035macro_revision='1.3134'
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049ltmain="$ac_aux_dir/ltmain.sh"
5050
5051# Backslashify metacharacters that are still active within
5052# double-quoted strings.
5053sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5054
5055# Same as above, but do not quote variable references.
5056double_quote_subst='s/\(["`\\]\)/\\\1/g'
5057
5058# Sed substitution to delay expansion of an escaped shell variable in a
5059# double_quote_subst'ed string.
5060delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5061
5062# Sed substitution to delay expansion of an escaped single quote.
5063delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5064
5065# Sed substitution to avoid accidental globbing in evaled expressions
5066no_glob_subst='s/\*/\\\*/g'
5067
5068ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5069ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5070ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5071
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5073$as_echo_n "checking how to print strings... " >&6; }
5074# Test print first, because it will be a builtin if present.
5075if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5076 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5077 ECHO='print -r --'
5078elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5079 ECHO='printf %s\n'
5080else
5081 # Use this function as a fallback that always works.
5082 func_fallback_echo ()
5083 {
5084 eval 'cat <<_LTECHO_EOF
5085$1
5086_LTECHO_EOF'
5087 }
5088 ECHO='func_fallback_echo'
5089fi
5090
5091# func_echo_all arg...
5092# Invoke $ECHO with all args, space-separated.
5093func_echo_all ()
5094{
5095 $ECHO ""
5096}
5097
5098case "$ECHO" in
5099 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5100$as_echo "printf" >&6; } ;;
5101 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5102$as_echo "print -r" >&6; } ;;
5103 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5104$as_echo "cat" >&6; } ;;
5105esac
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5121$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005122if ${ac_cv_path_SED+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005123 $as_echo_n "(cached) " >&6
5124else
5125 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5126 for ac_i in 1 2 3 4 5 6 7; do
5127 ac_script="$ac_script$as_nl$ac_script"
5128 done
5129 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5130 { ac_script=; unset ac_script;}
5131 if test -z "$SED"; then
5132 ac_path_SED_found=false
5133 # Loop through the user's path and test for each of PROGNAME-LIST
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_prog in sed gsed; do
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005142 as_fn_executable_p "$ac_path_SED" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005143# Check for GNU ac_path_SED and select it if it is found.
5144 # Check for GNU $ac_path_SED
5145case `"$ac_path_SED" --version 2>&1` in
5146*GNU*)
5147 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5148*)
5149 ac_count=0
5150 $as_echo_n 0123456789 >"conftest.in"
5151 while :
5152 do
5153 cat "conftest.in" "conftest.in" >"conftest.tmp"
5154 mv "conftest.tmp" "conftest.in"
5155 cp "conftest.in" "conftest.nl"
5156 $as_echo '' >> "conftest.nl"
5157 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5159 as_fn_arith $ac_count + 1 && ac_count=$as_val
5160 if test $ac_count -gt ${ac_path_SED_max-0}; then
5161 # Best one so far, save it but keep looking for a better one
5162 ac_cv_path_SED="$ac_path_SED"
5163 ac_path_SED_max=$ac_count
5164 fi
5165 # 10*(2^10) chars as input seems more than enough
5166 test $ac_count -gt 10 && break
5167 done
5168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5169esac
5170
5171 $ac_path_SED_found && break 3
5172 done
5173 done
5174 done
5175IFS=$as_save_IFS
5176 if test -z "$ac_cv_path_SED"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005177 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005178 fi
5179else
5180 ac_cv_path_SED=$SED
5181fi
5182
5183fi
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5185$as_echo "$ac_cv_path_SED" >&6; }
5186 SED="$ac_cv_path_SED"
5187 rm -f conftest.sed
5188
5189test -z "$SED" && SED=sed
5190Xsed="$SED -e 1s/^X//"
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5203$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005204if ${ac_cv_path_GREP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005205 $as_echo_n "(cached) " >&6
5206else
5207 if test -z "$GREP"; then
5208 ac_path_GREP_found=false
5209 # Loop through the user's path and test for each of PROGNAME-LIST
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5212do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_prog in grep ggrep; do
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005218 as_fn_executable_p "$ac_path_GREP" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005219# Check for GNU ac_path_GREP and select it if it is found.
5220 # Check for GNU $ac_path_GREP
5221case `"$ac_path_GREP" --version 2>&1` in
5222*GNU*)
5223 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5224*)
5225 ac_count=0
5226 $as_echo_n 0123456789 >"conftest.in"
5227 while :
5228 do
5229 cat "conftest.in" "conftest.in" >"conftest.tmp"
5230 mv "conftest.tmp" "conftest.in"
5231 cp "conftest.in" "conftest.nl"
5232 $as_echo 'GREP' >> "conftest.nl"
5233 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5235 as_fn_arith $ac_count + 1 && ac_count=$as_val
5236 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5237 # Best one so far, save it but keep looking for a better one
5238 ac_cv_path_GREP="$ac_path_GREP"
5239 ac_path_GREP_max=$ac_count
5240 fi
5241 # 10*(2^10) chars as input seems more than enough
5242 test $ac_count -gt 10 && break
5243 done
5244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5245esac
5246
5247 $ac_path_GREP_found && break 3
5248 done
5249 done
5250 done
5251IFS=$as_save_IFS
5252 if test -z "$ac_cv_path_GREP"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005253 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005254 fi
5255else
5256 ac_cv_path_GREP=$GREP
5257fi
5258
5259fi
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5261$as_echo "$ac_cv_path_GREP" >&6; }
5262 GREP="$ac_cv_path_GREP"
5263
5264
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5266$as_echo_n "checking for egrep... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005267if ${ac_cv_path_EGREP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005268 $as_echo_n "(cached) " >&6
5269else
5270 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5271 then ac_cv_path_EGREP="$GREP -E"
5272 else
5273 if test -z "$EGREP"; then
5274 ac_path_EGREP_found=false
5275 # Loop through the user's path and test for each of PROGNAME-LIST
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5278do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_prog in egrep; do
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005284 as_fn_executable_p "$ac_path_EGREP" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005285# Check for GNU ac_path_EGREP and select it if it is found.
5286 # Check for GNU $ac_path_EGREP
5287case `"$ac_path_EGREP" --version 2>&1` in
5288*GNU*)
5289 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5290*)
5291 ac_count=0
5292 $as_echo_n 0123456789 >"conftest.in"
5293 while :
5294 do
5295 cat "conftest.in" "conftest.in" >"conftest.tmp"
5296 mv "conftest.tmp" "conftest.in"
5297 cp "conftest.in" "conftest.nl"
5298 $as_echo 'EGREP' >> "conftest.nl"
5299 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5301 as_fn_arith $ac_count + 1 && ac_count=$as_val
5302 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5303 # Best one so far, save it but keep looking for a better one
5304 ac_cv_path_EGREP="$ac_path_EGREP"
5305 ac_path_EGREP_max=$ac_count
5306 fi
5307 # 10*(2^10) chars as input seems more than enough
5308 test $ac_count -gt 10 && break
5309 done
5310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5311esac
5312
5313 $ac_path_EGREP_found && break 3
5314 done
5315 done
5316 done
5317IFS=$as_save_IFS
5318 if test -z "$ac_cv_path_EGREP"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005319 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005320 fi
5321else
5322 ac_cv_path_EGREP=$EGREP
5323fi
5324
5325 fi
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5328$as_echo "$ac_cv_path_EGREP" >&6; }
5329 EGREP="$ac_cv_path_EGREP"
5330
5331
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5333$as_echo_n "checking for fgrep... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005334if ${ac_cv_path_FGREP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005335 $as_echo_n "(cached) " >&6
5336else
5337 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5338 then ac_cv_path_FGREP="$GREP -F"
5339 else
5340 if test -z "$FGREP"; then
5341 ac_path_FGREP_found=false
5342 # Loop through the user's path and test for each of PROGNAME-LIST
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5345do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_prog in fgrep; do
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005351 as_fn_executable_p "$ac_path_FGREP" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005352# Check for GNU ac_path_FGREP and select it if it is found.
5353 # Check for GNU $ac_path_FGREP
5354case `"$ac_path_FGREP" --version 2>&1` in
5355*GNU*)
5356 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5357*)
5358 ac_count=0
5359 $as_echo_n 0123456789 >"conftest.in"
5360 while :
5361 do
5362 cat "conftest.in" "conftest.in" >"conftest.tmp"
5363 mv "conftest.tmp" "conftest.in"
5364 cp "conftest.in" "conftest.nl"
5365 $as_echo 'FGREP' >> "conftest.nl"
5366 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5367 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5368 as_fn_arith $ac_count + 1 && ac_count=$as_val
5369 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5370 # Best one so far, save it but keep looking for a better one
5371 ac_cv_path_FGREP="$ac_path_FGREP"
5372 ac_path_FGREP_max=$ac_count
5373 fi
5374 # 10*(2^10) chars as input seems more than enough
5375 test $ac_count -gt 10 && break
5376 done
5377 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5378esac
5379
5380 $ac_path_FGREP_found && break 3
5381 done
5382 done
5383 done
5384IFS=$as_save_IFS
5385 if test -z "$ac_cv_path_FGREP"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005386 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 +00005387 fi
5388else
5389 ac_cv_path_FGREP=$FGREP
5390fi
5391
5392 fi
5393fi
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5395$as_echo "$ac_cv_path_FGREP" >&6; }
5396 FGREP="$ac_cv_path_FGREP"
5397
5398
5399test -z "$GREP" && GREP=grep
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419# Check whether --with-gnu-ld was given.
5420if test "${with_gnu_ld+set}" = set; then :
5421 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5422else
5423 with_gnu_ld=no
5424fi
5425
5426ac_prog=ld
5427if test "$GCC" = yes; then
5428 # Check if gcc -print-prog-name=ld gives a path.
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5430$as_echo_n "checking for ld used by $CC... " >&6; }
5431 case $host in
5432 *-*-mingw*)
5433 # gcc leaves a trailing carriage return which upsets mingw
5434 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5435 *)
5436 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5437 esac
5438 case $ac_prog in
5439 # Accept absolute paths.
5440 [\\/]* | ?:[\\/]*)
5441 re_direlt='/[^/][^/]*/\.\./'
5442 # Canonicalize the pathname of ld
5443 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5444 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5445 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5446 done
5447 test -z "$LD" && LD="$ac_prog"
5448 ;;
5449 "")
5450 # If it fails, then pretend we aren't using GCC.
5451 ac_prog=ld
5452 ;;
5453 *)
5454 # If it is relative, then search for the first ld in PATH.
5455 with_gnu_ld=unknown
5456 ;;
5457 esac
5458elif test "$with_gnu_ld" = yes; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5460$as_echo_n "checking for GNU ld... " >&6; }
5461else
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5463$as_echo_n "checking for non-GNU ld... " >&6; }
5464fi
Joseph Myers22e05272018-10-31 17:03:16 +00005465if ${lt_cv_path_LD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005466 $as_echo_n "(cached) " >&6
5467else
5468 if test -z "$LD"; then
5469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5470 for ac_dir in $PATH; do
5471 IFS="$lt_save_ifs"
5472 test -z "$ac_dir" && ac_dir=.
5473 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5474 lt_cv_path_LD="$ac_dir/$ac_prog"
5475 # Check to see if the program is GNU ld. I'd rather use --version,
5476 # but apparently some variants of GNU ld only accept -v.
5477 # Break only if it was the GNU/non-GNU ld that we prefer.
5478 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5479 *GNU* | *'with BFD'*)
5480 test "$with_gnu_ld" != no && break
5481 ;;
5482 *)
5483 test "$with_gnu_ld" != yes && break
5484 ;;
5485 esac
5486 fi
5487 done
5488 IFS="$lt_save_ifs"
5489else
5490 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5491fi
5492fi
5493
5494LD="$lt_cv_path_LD"
5495if test -n "$LD"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5497$as_echo "$LD" >&6; }
5498else
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500$as_echo "no" >&6; }
5501fi
Joseph Myers22e05272018-10-31 17:03:16 +00005502test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5504$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005505if ${lt_cv_prog_gnu_ld+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005506 $as_echo_n "(cached) " >&6
5507else
5508 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5509case `$LD -v 2>&1 </dev/null` in
5510*GNU* | *'with BFD'*)
5511 lt_cv_prog_gnu_ld=yes
5512 ;;
5513*)
5514 lt_cv_prog_gnu_ld=no
5515 ;;
5516esac
5517fi
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5519$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5520with_gnu_ld=$lt_cv_prog_gnu_ld
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5531$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005532if ${lt_cv_path_NM+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005533 $as_echo_n "(cached) " >&6
5534else
5535 if test -n "$NM"; then
5536 # Let the user override the test.
5537 lt_cv_path_NM="$NM"
5538else
5539 lt_nm_to_check="${ac_tool_prefix}nm"
5540 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5541 lt_nm_to_check="$lt_nm_to_check nm"
5542 fi
5543 for lt_tmp_nm in $lt_nm_to_check; do
5544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5545 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5546 IFS="$lt_save_ifs"
5547 test -z "$ac_dir" && ac_dir=.
5548 tmp_nm="$ac_dir/$lt_tmp_nm"
5549 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5550 # Check to see if the nm accepts a BSD-compat flag.
5551 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5552 # nm: unknown option "B" ignored
5553 # Tru64's nm complains that /dev/null is an invalid object file
5554 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5555 */dev/null* | *'Invalid file or object type'*)
5556 lt_cv_path_NM="$tmp_nm -B"
5557 break
5558 ;;
5559 *)
5560 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5561 */dev/null*)
5562 lt_cv_path_NM="$tmp_nm -p"
5563 break
5564 ;;
5565 *)
5566 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5567 continue # so that we can try to find one that supports BSD flags
5568 ;;
5569 esac
5570 ;;
5571 esac
5572 fi
5573 done
5574 IFS="$lt_save_ifs"
5575 done
5576 : ${lt_cv_path_NM=no}
5577fi
5578fi
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5580$as_echo "$lt_cv_path_NM" >&6; }
5581if test "$lt_cv_path_NM" != "no"; then
5582 NM="$lt_cv_path_NM"
5583else
5584 # Didn't find any BSD compatible name lister, look for dumpbin.
5585 if test -n "$DUMPBIN"; then :
5586 # Let the user override the test.
5587 else
5588 if test -n "$ac_tool_prefix"; then
5589 for ac_prog in dumpbin "link -dump"
5590 do
5591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5592set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005595if ${ac_cv_prog_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005596 $as_echo_n "(cached) " >&6
5597else
5598 if test -n "$DUMPBIN"; then
5599 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5600else
5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602for as_dir in $PATH
5603do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005608 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5611 fi
5612done
5613 done
5614IFS=$as_save_IFS
5615
5616fi
5617fi
5618DUMPBIN=$ac_cv_prog_DUMPBIN
5619if test -n "$DUMPBIN"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5621$as_echo "$DUMPBIN" >&6; }
5622else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624$as_echo "no" >&6; }
5625fi
5626
5627
5628 test -n "$DUMPBIN" && break
5629 done
5630fi
5631if test -z "$DUMPBIN"; then
5632 ac_ct_DUMPBIN=$DUMPBIN
5633 for ac_prog in dumpbin "link -dump"
5634do
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636set dummy $ac_prog; ac_word=$2
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005639if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005640 $as_echo_n "(cached) " >&6
5641else
5642 if test -n "$ac_ct_DUMPBIN"; then
5643 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5644else
5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646for as_dir in $PATH
5647do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005652 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5655 fi
5656done
5657 done
5658IFS=$as_save_IFS
5659
5660fi
5661fi
5662ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5663if test -n "$ac_ct_DUMPBIN"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5665$as_echo "$ac_ct_DUMPBIN" >&6; }
5666else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668$as_echo "no" >&6; }
5669fi
5670
5671
5672 test -n "$ac_ct_DUMPBIN" && break
5673done
5674
5675 if test "x$ac_ct_DUMPBIN" = x; then
5676 DUMPBIN=":"
5677 else
5678 case $cross_compiling:$ac_tool_warned in
5679yes:)
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682ac_tool_warned=yes ;;
5683esac
5684 DUMPBIN=$ac_ct_DUMPBIN
5685 fi
5686fi
5687
5688 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5689 *COFF*)
5690 DUMPBIN="$DUMPBIN -symbols"
5691 ;;
5692 *)
5693 DUMPBIN=:
5694 ;;
5695 esac
5696 fi
5697
5698 if test "$DUMPBIN" != ":"; then
5699 NM="$DUMPBIN"
5700 fi
5701fi
5702test -z "$NM" && NM=nm
5703
5704
5705
5706
5707
5708
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5710$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005711if ${lt_cv_nm_interface+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005712 $as_echo_n "(cached) " >&6
5713else
5714 lt_cv_nm_interface="BSD nm"
5715 echo "int some_variable = 0;" > conftest.$ac_ext
5716 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5717 (eval "$ac_compile" 2>conftest.err)
5718 cat conftest.err >&5
5719 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5720 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5721 cat conftest.err >&5
5722 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5723 cat conftest.out >&5
5724 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5725 lt_cv_nm_interface="MS dumpbin"
5726 fi
5727 rm -f conftest*
5728fi
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5730$as_echo "$lt_cv_nm_interface" >&6; }
5731
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5733$as_echo_n "checking whether ln -s works... " >&6; }
5734LN_S=$as_ln_s
5735if test "$LN_S" = "ln -s"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5737$as_echo "yes" >&6; }
5738else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5740$as_echo "no, using $LN_S" >&6; }
5741fi
5742
5743# find the maximum length of command line arguments
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5745$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005746if ${lt_cv_sys_max_cmd_len+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005747 $as_echo_n "(cached) " >&6
5748else
5749 i=0
5750 teststring="ABCD"
5751
5752 case $build_os in
5753 msdosdjgpp*)
5754 # On DJGPP, this test can blow up pretty badly due to problems in libc
5755 # (any single argument exceeding 2000 bytes causes a buffer overrun
5756 # during glob expansion). Even if it were fixed, the result of this
5757 # check would be larger than it should be.
5758 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5759 ;;
5760
5761 gnu*)
5762 # Under GNU Hurd, this test is not required because there is
5763 # no limit to the length of command line arguments.
5764 # Libtool will interpret -1 as no limit whatsoever
5765 lt_cv_sys_max_cmd_len=-1;
5766 ;;
5767
5768 cygwin* | mingw* | cegcc*)
5769 # On Win9x/ME, this test blows up -- it succeeds, but takes
5770 # about 5 minutes as the teststring grows exponentially.
5771 # Worse, since 9x/ME are not pre-emptively multitasking,
5772 # you end up with a "frozen" computer, even though with patience
5773 # the test eventually succeeds (with a max line length of 256k).
5774 # Instead, let's just punt: use the minimum linelength reported by
5775 # all of the supported platforms: 8192 (on NT/2K/XP).
5776 lt_cv_sys_max_cmd_len=8192;
5777 ;;
5778
5779 mint*)
5780 # On MiNT this can take a long time and run out of memory.
5781 lt_cv_sys_max_cmd_len=8192;
5782 ;;
5783
5784 amigaos*)
5785 # On AmigaOS with pdksh, this test takes hours, literally.
5786 # So we just punt and use a minimum line length of 8192.
5787 lt_cv_sys_max_cmd_len=8192;
5788 ;;
5789
5790 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5791 # This has been around since 386BSD, at least. Likely further.
5792 if test -x /sbin/sysctl; then
5793 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5794 elif test -x /usr/sbin/sysctl; then
5795 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5796 else
5797 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5798 fi
5799 # And add a safety zone
5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5802 ;;
5803
5804 interix*)
5805 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5806 lt_cv_sys_max_cmd_len=196608
5807 ;;
5808
5809 osf*)
5810 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5811 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5812 # nice to cause kernel panics so lets avoid the loop below.
5813 # First set a reasonable default.
5814 lt_cv_sys_max_cmd_len=16384
5815 #
5816 if test -x /sbin/sysconfig; then
5817 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5818 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5819 esac
5820 fi
5821 ;;
5822 sco3.2v5*)
5823 lt_cv_sys_max_cmd_len=102400
5824 ;;
5825 sysv5* | sco5v6* | sysv4.2uw2*)
5826 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5827 if test -n "$kargmax"; then
5828 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5829 else
5830 lt_cv_sys_max_cmd_len=32768
5831 fi
5832 ;;
5833 *)
5834 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5835 if test -n "$lt_cv_sys_max_cmd_len"; then
5836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5838 else
5839 # Make teststring a little bigger before we do anything with it.
5840 # a 1K string should be a reasonable start.
5841 for i in 1 2 3 4 5 6 7 8 ; do
5842 teststring=$teststring$teststring
5843 done
5844 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5845 # If test is not a shell built-in, we'll probably end up computing a
5846 # maximum length that is only half of the actual maximum length, but
5847 # we can't tell.
5848 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5849 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5850 test $i != 17 # 1/2 MB should be enough
5851 do
5852 i=`expr $i + 1`
5853 teststring=$teststring$teststring
5854 done
5855 # Only check the string length outside the loop.
5856 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5857 teststring=
5858 # Add a significant safety factor because C++ compilers can tack on
5859 # massive amounts of additional arguments before passing them to the
5860 # linker. It appears as though 1/2 is a usable value.
5861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5862 fi
5863 ;;
5864 esac
5865
5866fi
5867
5868if test -n $lt_cv_sys_max_cmd_len ; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5870$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5871else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5873$as_echo "none" >&6; }
5874fi
5875max_cmd_len=$lt_cv_sys_max_cmd_len
5876
5877
5878
5879
5880
5881
5882: ${CP="cp -f"}
5883: ${MV="mv -f"}
5884: ${RM="rm -f"}
5885
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5887$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5888# Try some XSI features
5889xsi_shell=no
5890( _lt_dummy="a/b/c"
5891 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5892 = c,a/b,, \
5893 && eval 'test $(( 1 + 1 )) -eq 2 \
5894 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5895 && xsi_shell=yes
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5897$as_echo "$xsi_shell" >&6; }
5898
5899
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5901$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5902lt_shell_append=no
5903( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5904 >/dev/null 2>&1 \
5905 && lt_shell_append=yes
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5907$as_echo "$lt_shell_append" >&6; }
5908
5909
5910if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5911 lt_unset=unset
5912else
5913 lt_unset=false
5914fi
5915
5916
5917
5918
5919
5920# test EBCDIC or ASCII
5921case `echo X|tr X '\101'` in
5922 A) # ASCII based system
5923 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5924 lt_SP2NL='tr \040 \012'
5925 lt_NL2SP='tr \015\012 \040\040'
5926 ;;
5927 *) # EBCDIC based system
5928 lt_SP2NL='tr \100 \n'
5929 lt_NL2SP='tr \r\n \100\100'
5930 ;;
5931esac
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5942$as_echo_n "checking for $LD option to reload object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005943if ${lt_cv_ld_reload_flag+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005944 $as_echo_n "(cached) " >&6
5945else
5946 lt_cv_ld_reload_flag='-r'
5947fi
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5949$as_echo "$lt_cv_ld_reload_flag" >&6; }
5950reload_flag=$lt_cv_ld_reload_flag
5951case $reload_flag in
5952"" | " "*) ;;
5953*) reload_flag=" $reload_flag" ;;
5954esac
5955reload_cmds='$LD$reload_flag -o $output$reload_objs'
5956case $host_os in
5957 darwin*)
5958 if test "$GCC" = yes; then
5959 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5960 else
5961 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5962 fi
5963 ;;
5964esac
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974if test -n "$ac_tool_prefix"; then
5975 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5976set dummy ${ac_tool_prefix}objdump; ac_word=$2
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005979if ${ac_cv_prog_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005980 $as_echo_n "(cached) " >&6
5981else
5982 if test -n "$OBJDUMP"; then
5983 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5984else
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005992 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996done
5997 done
5998IFS=$as_save_IFS
5999
6000fi
6001fi
6002OBJDUMP=$ac_cv_prog_OBJDUMP
6003if test -n "$OBJDUMP"; then
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6005$as_echo "$OBJDUMP" >&6; }
6006else
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008$as_echo "no" >&6; }
6009fi
6010
6011
6012fi
6013if test -z "$ac_cv_prog_OBJDUMP"; then
6014 ac_ct_OBJDUMP=$OBJDUMP
6015 # Extract the first word of "objdump", so it can be a program name with args.
6016set dummy objdump; ac_word=$2
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006019if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006020 $as_echo_n "(cached) " >&6
6021else
6022 if test -n "$ac_ct_OBJDUMP"; then
6023 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6024else
6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH
6027do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006032 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036done
6037 done
6038IFS=$as_save_IFS
6039
6040fi
6041fi
6042ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6043if test -n "$ac_ct_OBJDUMP"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6045$as_echo "$ac_ct_OBJDUMP" >&6; }
6046else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048$as_echo "no" >&6; }
6049fi
6050
6051 if test "x$ac_ct_OBJDUMP" = x; then
6052 OBJDUMP="false"
6053 else
6054 case $cross_compiling:$ac_tool_warned in
6055yes:)
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6058ac_tool_warned=yes ;;
6059esac
6060 OBJDUMP=$ac_ct_OBJDUMP
6061 fi
6062else
6063 OBJDUMP="$ac_cv_prog_OBJDUMP"
6064fi
6065
6066test -z "$OBJDUMP" && OBJDUMP=objdump
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6077$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006078if ${lt_cv_deplibs_check_method+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006079 $as_echo_n "(cached) " >&6
6080else
6081 lt_cv_file_magic_cmd='$MAGIC_CMD'
6082lt_cv_file_magic_test_file=
6083lt_cv_deplibs_check_method='unknown'
6084# Need to set the preceding variable on all platforms that support
6085# interlibrary dependencies.
6086# 'none' -- dependencies not supported.
6087# `unknown' -- same as none, but documents that we really don't know.
6088# 'pass_all' -- all dependencies passed with no checks.
6089# 'test_compile' -- check by making test program.
6090# 'file_magic [[regex]]' -- check by looking for files in library path
6091# which responds to the $file_magic_cmd with a given extended regex.
6092# If you have `file' or equivalent on your system and you're not sure
6093# whether `pass_all' will *always* work, you probably want this one.
6094
6095case $host_os in
6096aix[4-9]*)
6097 lt_cv_deplibs_check_method=pass_all
6098 ;;
6099
6100beos*)
6101 lt_cv_deplibs_check_method=pass_all
6102 ;;
6103
6104bsdi[45]*)
6105 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6106 lt_cv_file_magic_cmd='/usr/bin/file -L'
6107 lt_cv_file_magic_test_file=/shlib/libc.so
6108 ;;
6109
6110cygwin*)
6111 # func_win32_libid is a shell function defined in ltmain.sh
6112 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6113 lt_cv_file_magic_cmd='func_win32_libid'
6114 ;;
6115
6116mingw* | pw32*)
6117 # Base MSYS/MinGW do not provide the 'file' command needed by
6118 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6119 # unless we find 'file', for example because we are cross-compiling.
6120 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6121 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6122 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6123 lt_cv_file_magic_cmd='func_win32_libid'
6124 else
6125 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6126 lt_cv_file_magic_cmd='$OBJDUMP -f'
6127 fi
6128 ;;
6129
6130cegcc*)
6131 # use the weaker test based on 'objdump'. See mingw*.
6132 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6133 lt_cv_file_magic_cmd='$OBJDUMP -f'
6134 ;;
6135
6136darwin* | rhapsody*)
6137 lt_cv_deplibs_check_method=pass_all
6138 ;;
6139
6140freebsd* | dragonfly*)
6141 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6142 case $host_cpu in
6143 i*86 )
6144 # Not sure whether the presence of OpenBSD here was a mistake.
6145 # Let's accept both of them until this is cleared up.
6146 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6147 lt_cv_file_magic_cmd=/usr/bin/file
6148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6149 ;;
6150 esac
6151 else
6152 lt_cv_deplibs_check_method=pass_all
6153 fi
6154 ;;
6155
6156gnu*)
6157 lt_cv_deplibs_check_method=pass_all
6158 ;;
6159
6160haiku*)
6161 lt_cv_deplibs_check_method=pass_all
6162 ;;
6163
6164hpux10.20* | hpux11*)
6165 lt_cv_file_magic_cmd=/usr/bin/file
6166 case $host_cpu in
6167 ia64*)
6168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6169 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6170 ;;
6171 hppa*64*)
6172 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]'
6173 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6174 ;;
6175 *)
6176 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6177 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6178 ;;
6179 esac
6180 ;;
6181
6182interix[3-9]*)
6183 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6185 ;;
6186
6187irix5* | irix6* | nonstopux*)
6188 case $LD in
6189 *-32|*"-32 ") libmagic=32-bit;;
6190 *-n32|*"-n32 ") libmagic=N32;;
6191 *-64|*"-64 ") libmagic=64-bit;;
6192 *) libmagic=never-match;;
6193 esac
6194 lt_cv_deplibs_check_method=pass_all
6195 ;;
6196
6197# This must be Linux ELF.
6198linux* | k*bsd*-gnu | kopensolaris*-gnu)
6199 lt_cv_deplibs_check_method=pass_all
6200 ;;
6201
6202netbsd*)
6203 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6205 else
6206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6207 fi
6208 ;;
6209
6210newos6*)
6211 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6212 lt_cv_file_magic_cmd=/usr/bin/file
6213 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6214 ;;
6215
6216*nto* | *qnx*)
6217 lt_cv_deplibs_check_method=pass_all
6218 ;;
6219
6220openbsd*)
6221 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6223 else
6224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6225 fi
6226 ;;
6227
6228osf3* | osf4* | osf5*)
6229 lt_cv_deplibs_check_method=pass_all
6230 ;;
6231
6232rdos*)
6233 lt_cv_deplibs_check_method=pass_all
6234 ;;
6235
6236solaris*)
6237 lt_cv_deplibs_check_method=pass_all
6238 ;;
6239
6240sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6241 lt_cv_deplibs_check_method=pass_all
6242 ;;
6243
6244sysv4 | sysv4.3*)
6245 case $host_vendor in
6246 motorola)
6247 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]'
6248 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6249 ;;
6250 ncr)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253 sequent)
6254 lt_cv_file_magic_cmd='/bin/file'
6255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6256 ;;
6257 sni)
6258 lt_cv_file_magic_cmd='/bin/file'
6259 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6260 lt_cv_file_magic_test_file=/lib/libc.so
6261 ;;
6262 siemens)
6263 lt_cv_deplibs_check_method=pass_all
6264 ;;
6265 pc)
6266 lt_cv_deplibs_check_method=pass_all
6267 ;;
6268 esac
6269 ;;
6270
6271tpf*)
6272 lt_cv_deplibs_check_method=pass_all
6273 ;;
6274esac
6275
6276fi
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6278$as_echo "$lt_cv_deplibs_check_method" >&6; }
6279file_magic_cmd=$lt_cv_file_magic_cmd
6280deplibs_check_method=$lt_cv_deplibs_check_method
6281test -z "$deplibs_check_method" && deplibs_check_method=unknown
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294if test -n "$ac_tool_prefix"; then
6295 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6296set dummy ${ac_tool_prefix}ar; ac_word=$2
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006299if ${ac_cv_prog_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006300 $as_echo_n "(cached) " >&6
6301else
6302 if test -n "$AR"; then
6303 ac_cv_prog_AR="$AR" # Let the user override the test.
6304else
6305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306for as_dir in $PATH
6307do
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006312 ac_cv_prog_AR="${ac_tool_prefix}ar"
6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 break 2
6315 fi
6316done
6317 done
6318IFS=$as_save_IFS
6319
6320fi
6321fi
6322AR=$ac_cv_prog_AR
6323if test -n "$AR"; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6325$as_echo "$AR" >&6; }
6326else
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328$as_echo "no" >&6; }
6329fi
6330
6331
6332fi
6333if test -z "$ac_cv_prog_AR"; then
6334 ac_ct_AR=$AR
6335 # Extract the first word of "ar", so it can be a program name with args.
6336set dummy ar; ac_word=$2
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006339if ${ac_cv_prog_ac_ct_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006340 $as_echo_n "(cached) " >&6
6341else
6342 if test -n "$ac_ct_AR"; then
6343 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6344else
6345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346for as_dir in $PATH
6347do
6348 IFS=$as_save_IFS
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006352 ac_cv_prog_ac_ct_AR="ar"
6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 break 2
6355 fi
6356done
6357 done
6358IFS=$as_save_IFS
6359
6360fi
6361fi
6362ac_ct_AR=$ac_cv_prog_ac_ct_AR
6363if test -n "$ac_ct_AR"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6365$as_echo "$ac_ct_AR" >&6; }
6366else
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368$as_echo "no" >&6; }
6369fi
6370
6371 if test "x$ac_ct_AR" = x; then
6372 AR="false"
6373 else
6374 case $cross_compiling:$ac_tool_warned in
6375yes:)
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378ac_tool_warned=yes ;;
6379esac
6380 AR=$ac_ct_AR
6381 fi
6382else
6383 AR="$ac_cv_prog_AR"
6384fi
6385
6386test -z "$AR" && AR=ar
6387test -z "$AR_FLAGS" && AR_FLAGS=cru
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6401set dummy ${ac_tool_prefix}strip; ac_word=$2
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006404if ${ac_cv_prog_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006405 $as_echo_n "(cached) " >&6
6406else
6407 if test -n "$STRIP"; then
6408 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6409else
6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006417 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 break 2
6420 fi
6421done
6422 done
6423IFS=$as_save_IFS
6424
6425fi
6426fi
6427STRIP=$ac_cv_prog_STRIP
6428if test -n "$STRIP"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6430$as_echo "$STRIP" >&6; }
6431else
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433$as_echo "no" >&6; }
6434fi
6435
6436
6437fi
6438if test -z "$ac_cv_prog_STRIP"; then
6439 ac_ct_STRIP=$STRIP
6440 # Extract the first word of "strip", so it can be a program name with args.
6441set dummy strip; ac_word=$2
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006444if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006445 $as_echo_n "(cached) " >&6
6446else
6447 if test -n "$ac_ct_STRIP"; then
6448 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6449else
6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH
6452do
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006457 ac_cv_prog_ac_ct_STRIP="strip"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 break 2
6460 fi
6461done
6462 done
6463IFS=$as_save_IFS
6464
6465fi
6466fi
6467ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6468if test -n "$ac_ct_STRIP"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6470$as_echo "$ac_ct_STRIP" >&6; }
6471else
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473$as_echo "no" >&6; }
6474fi
6475
6476 if test "x$ac_ct_STRIP" = x; then
6477 STRIP=":"
6478 else
6479 case $cross_compiling:$ac_tool_warned in
6480yes:)
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483ac_tool_warned=yes ;;
6484esac
6485 STRIP=$ac_ct_STRIP
6486 fi
6487else
6488 STRIP="$ac_cv_prog_STRIP"
6489fi
6490
6491test -z "$STRIP" && STRIP=:
6492
6493
6494
6495
6496
6497
6498if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6500set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006503if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006504 $as_echo_n "(cached) " >&6
6505else
6506 if test -n "$RANLIB"; then
6507 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6508else
6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006516 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520done
6521 done
6522IFS=$as_save_IFS
6523
6524fi
6525fi
6526RANLIB=$ac_cv_prog_RANLIB
6527if test -n "$RANLIB"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6529$as_echo "$RANLIB" >&6; }
6530else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532$as_echo "no" >&6; }
6533fi
6534
6535
6536fi
6537if test -z "$ac_cv_prog_RANLIB"; then
6538 ac_ct_RANLIB=$RANLIB
6539 # Extract the first word of "ranlib", so it can be a program name with args.
6540set dummy ranlib; ac_word=$2
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006543if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006544 $as_echo_n "(cached) " >&6
6545else
6546 if test -n "$ac_ct_RANLIB"; then
6547 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6548else
6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006556 ac_cv_prog_ac_ct_RANLIB="ranlib"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560done
6561 done
6562IFS=$as_save_IFS
6563
6564fi
6565fi
6566ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6567if test -n "$ac_ct_RANLIB"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6569$as_echo "$ac_ct_RANLIB" >&6; }
6570else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572$as_echo "no" >&6; }
6573fi
6574
6575 if test "x$ac_ct_RANLIB" = x; then
6576 RANLIB=":"
6577 else
6578 case $cross_compiling:$ac_tool_warned in
6579yes:)
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582ac_tool_warned=yes ;;
6583esac
6584 RANLIB=$ac_ct_RANLIB
6585 fi
6586else
6587 RANLIB="$ac_cv_prog_RANLIB"
6588fi
6589
6590test -z "$RANLIB" && RANLIB=:
6591
6592
6593
6594
6595
6596
6597# Determine commands to create old-style static archives.
6598old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6599old_postinstall_cmds='chmod 644 $oldlib'
6600old_postuninstall_cmds=
6601
6602if test -n "$RANLIB"; then
6603 case $host_os in
6604 openbsd*)
6605 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6606 ;;
6607 *)
6608 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6609 ;;
6610 esac
6611 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6612fi
6613
6614case $host_os in
6615 darwin*)
6616 lock_old_archive_extraction=yes ;;
6617 *)
6618 lock_old_archive_extraction=no ;;
6619esac
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659# If no C compiler was specified, use CC.
6660LTCC=${LTCC-"$CC"}
6661
6662# If no C compiler flags were specified, use CFLAGS.
6663LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6664
6665# Allow CC to be a program name with arguments.
6666compiler=$CC
6667
6668
6669# Check for command to grab the raw symbol name followed by C symbol from nm.
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6671$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006672if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006673 $as_echo_n "(cached) " >&6
6674else
6675
6676# These are sane defaults that work on at least a few old systems.
6677# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6678
6679# Character class describing NM global symbol codes.
6680symcode='[BCDEGRST]'
6681
6682# Regexp to match symbols that can be accessed directly from C.
6683sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6684
6685# Define system-specific variables.
6686case $host_os in
6687aix*)
6688 symcode='[BCDT]'
6689 ;;
6690cygwin* | mingw* | pw32* | cegcc*)
6691 symcode='[ABCDGISTW]'
6692 ;;
6693hpux*)
6694 if test "$host_cpu" = ia64; then
6695 symcode='[ABCDEGRST]'
6696 fi
6697 ;;
6698irix* | nonstopux*)
6699 symcode='[BCDEGRST]'
6700 ;;
6701osf*)
6702 symcode='[BCDEGQRST]'
6703 ;;
6704solaris*)
6705 symcode='[BDRT]'
6706 ;;
6707sco3.2v5*)
6708 symcode='[DT]'
6709 ;;
6710sysv4.2uw2*)
6711 symcode='[DT]'
6712 ;;
6713sysv5* | sco5v6* | unixware* | OpenUNIX*)
6714 symcode='[ABDT]'
6715 ;;
6716sysv4)
6717 symcode='[DFNSTU]'
6718 ;;
6719esac
6720
6721# If we're using GNU nm, then use its standard symbol codes.
6722case `$NM -V 2>&1` in
6723*GNU* | *'with BFD'*)
6724 symcode='[ABCDGIRSTW]' ;;
6725esac
6726
6727# Transform an extracted symbol line into a proper C declaration.
6728# Some systems (esp. on ia64) link data and code symbols differently,
6729# so use this general approach.
6730lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6731
6732# Transform an extracted symbol line into symbol name and symbol address
6733lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6734lt_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'"
6735
6736# Handle CRLF in mingw tool chain
6737opt_cr=
6738case $build_os in
6739mingw*)
6740 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6741 ;;
6742esac
6743
6744# Try without a prefix underscore, then with it.
6745for ac_symprfx in "" "_"; do
6746
6747 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6748 symxfrm="\\1 $ac_symprfx\\2 \\2"
6749
6750 # Write the raw and C identifiers.
6751 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6752 # Fake it for dumpbin and say T for any non-static function
6753 # and D for any global variable.
6754 # Also find C++ and __fastcall symbols from MSVC++,
6755 # which start with @ or ?.
6756 lt_cv_sys_global_symbol_pipe="$AWK '"\
6757" {last_section=section; section=\$ 3};"\
6758" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6759" \$ 0!~/External *\|/{next};"\
6760" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6761" {if(hide[section]) next};"\
6762" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6763" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6764" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6765" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6766" ' prfx=^$ac_symprfx"
6767 else
6768 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6769 fi
6770
6771 # Check to see that the pipe works correctly.
6772 pipe_works=no
6773
6774 rm -f conftest*
6775 cat > conftest.$ac_ext <<_LT_EOF
6776#ifdef __cplusplus
6777extern "C" {
6778#endif
6779char nm_test_var;
6780void nm_test_func(void);
6781void nm_test_func(void){}
6782#ifdef __cplusplus
6783}
6784#endif
6785int main(){nm_test_var='a';nm_test_func();return(0);}
6786_LT_EOF
6787
6788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6789 (eval $ac_compile) 2>&5
6790 ac_status=$?
6791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792 test $ac_status = 0; }; then
6793 # Now try to grab the symbols.
6794 nlist=conftest.nm
6795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6796 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6797 ac_status=$?
6798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6799 test $ac_status = 0; } && test -s "$nlist"; then
6800 # Try sorting and uniquifying the output.
6801 if sort "$nlist" | uniq > "$nlist"T; then
6802 mv -f "$nlist"T "$nlist"
6803 else
6804 rm -f "$nlist"T
6805 fi
6806
6807 # Make sure that we snagged all the symbols we need.
6808 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6809 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6810 cat <<_LT_EOF > conftest.$ac_ext
6811#ifdef __cplusplus
6812extern "C" {
6813#endif
6814
6815_LT_EOF
6816 # Now generate the symbol file.
6817 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6818
6819 cat <<_LT_EOF >> conftest.$ac_ext
6820
6821/* The mapping between symbol names and symbols. */
6822const struct {
6823 const char *name;
6824 void *address;
6825}
6826lt__PROGRAM__LTX_preloaded_symbols[] =
6827{
6828 { "@PROGRAM@", (void *) 0 },
6829_LT_EOF
6830 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6831 cat <<\_LT_EOF >> conftest.$ac_ext
6832 {0, (void *) 0}
6833};
6834
6835/* This works around a problem in FreeBSD linker */
6836#ifdef FREEBSD_WORKAROUND
6837static const void *lt_preloaded_setup() {
6838 return lt__PROGRAM__LTX_preloaded_symbols;
6839}
6840#endif
6841
6842#ifdef __cplusplus
6843}
6844#endif
6845_LT_EOF
6846 # Now try linking the two files.
6847 mv conftest.$ac_objext conftstm.$ac_objext
6848 lt_save_LIBS="$LIBS"
6849 lt_save_CFLAGS="$CFLAGS"
6850 LIBS="conftstm.$ac_objext"
6851 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6853 (eval $ac_link) 2>&5
6854 ac_status=$?
6855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6857 pipe_works=yes
6858 fi
6859 LIBS="$lt_save_LIBS"
6860 CFLAGS="$lt_save_CFLAGS"
6861 else
6862 echo "cannot find nm_test_func in $nlist" >&5
6863 fi
6864 else
6865 echo "cannot find nm_test_var in $nlist" >&5
6866 fi
6867 else
6868 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6869 fi
6870 else
6871 echo "$progname: failed program was:" >&5
6872 cat conftest.$ac_ext >&5
6873 fi
6874 rm -rf conftest* conftst*
6875
6876 # Do not use the global_symbol_pipe unless it works.
6877 if test "$pipe_works" = yes; then
6878 break
6879 else
6880 lt_cv_sys_global_symbol_pipe=
6881 fi
6882done
6883
6884fi
6885
6886if test -z "$lt_cv_sys_global_symbol_pipe"; then
6887 lt_cv_sys_global_symbol_to_cdecl=
6888fi
6889if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6891$as_echo "failed" >&6; }
6892else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6894$as_echo "ok" >&6; }
6895fi
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919# Check whether --enable-libtool-lock was given.
6920if test "${enable_libtool_lock+set}" = set; then :
6921 enableval=$enable_libtool_lock;
6922fi
6923
6924test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6925
6926# Some flags need to be propagated to the compiler or linker for good
6927# libtool support.
6928case $host in
6929ia64-*-hpux*)
6930 # Find out which ABI we are using.
6931 echo 'int i;' > conftest.$ac_ext
6932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6933 (eval $ac_compile) 2>&5
6934 ac_status=$?
6935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6936 test $ac_status = 0; }; then
6937 case `/usr/bin/file conftest.$ac_objext` in
6938 *ELF-32*)
6939 HPUX_IA64_MODE="32"
6940 ;;
6941 *ELF-64*)
6942 HPUX_IA64_MODE="64"
6943 ;;
6944 esac
6945 fi
6946 rm -rf conftest*
6947 ;;
6948*-*-irix6*)
6949 # Find out which ABI we are using.
6950 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6952 (eval $ac_compile) 2>&5
6953 ac_status=$?
6954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6955 test $ac_status = 0; }; then
6956 if test "$lt_cv_prog_gnu_ld" = yes; then
6957 case `/usr/bin/file conftest.$ac_objext` in
6958 *32-bit*)
6959 LD="${LD-ld} -melf32bsmip"
6960 ;;
6961 *N32*)
6962 LD="${LD-ld} -melf32bmipn32"
6963 ;;
6964 *64-bit*)
6965 LD="${LD-ld} -melf64bmip"
6966 ;;
6967 esac
6968 else
6969 case `/usr/bin/file conftest.$ac_objext` in
6970 *32-bit*)
6971 LD="${LD-ld} -32"
6972 ;;
6973 *N32*)
6974 LD="${LD-ld} -n32"
6975 ;;
6976 *64-bit*)
6977 LD="${LD-ld} -64"
6978 ;;
6979 esac
6980 fi
6981 fi
6982 rm -rf conftest*
6983 ;;
6984
6985x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6986s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6987 # Find out which ABI we are using.
6988 echo 'int i;' > conftest.$ac_ext
6989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6990 (eval $ac_compile) 2>&5
6991 ac_status=$?
6992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6993 test $ac_status = 0; }; then
6994 case `/usr/bin/file conftest.o` in
6995 *32-bit*)
6996 case $host in
6997 x86_64-*kfreebsd*-gnu)
6998 LD="${LD-ld} -m elf_i386_fbsd"
6999 ;;
7000 x86_64-*linux*)
7001 case `/usr/bin/file conftest.o` in
7002 *x86-64*)
7003 LD="${LD-ld} -m elf32_x86_64"
7004 ;;
7005 *)
7006 LD="${LD-ld} -m elf_i386"
7007 ;;
7008 esac
7009 ;;
7010 powerpc64le-*linux*)
7011 LD="${LD-ld} -m elf32lppclinux"
7012 ;;
7013 powerpc64-*linux*)
7014 LD="${LD-ld} -m elf32ppclinux"
7015 ;;
7016 s390x-*linux*)
7017 LD="${LD-ld} -m elf_s390"
7018 ;;
7019 sparc64-*linux*)
7020 LD="${LD-ld} -m elf32_sparc"
7021 ;;
7022 esac
7023 ;;
7024 *64-bit*)
7025 case $host in
7026 x86_64-*kfreebsd*-gnu)
7027 LD="${LD-ld} -m elf_x86_64_fbsd"
7028 ;;
7029 x86_64-*linux*)
7030 LD="${LD-ld} -m elf_x86_64"
7031 ;;
7032 powerpcle-*linux*)
7033 LD="${LD-ld} -m elf64lppc"
7034 ;;
7035 powerpc-*linux*)
7036 LD="${LD-ld} -m elf64ppc"
7037 ;;
7038 s390*-*linux*|s390*-*tpf*)
7039 LD="${LD-ld} -m elf64_s390"
7040 ;;
7041 sparc*-*linux*)
7042 LD="${LD-ld} -m elf64_sparc"
7043 ;;
7044 esac
7045 ;;
7046 esac
7047 fi
7048 rm -rf conftest*
7049 ;;
7050
7051*-*-sco3.2v5*)
7052 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7053 SAVE_CFLAGS="$CFLAGS"
7054 CFLAGS="$CFLAGS -belf"
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7056$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007057if ${lt_cv_cc_needs_belf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007058 $as_echo_n "(cached) " >&6
7059else
7060 ac_ext=c
7061ac_cpp='$CPP $CPPFLAGS'
7062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7064ac_compiler_gnu=$ac_cv_c_compiler_gnu
7065
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067/* end confdefs.h. */
7068
7069int
7070main ()
7071{
7072
7073 ;
7074 return 0;
7075}
7076_ACEOF
7077if ac_fn_c_try_link "$LINENO"; then :
7078 lt_cv_cc_needs_belf=yes
7079else
7080 lt_cv_cc_needs_belf=no
7081fi
7082rm -f core conftest.err conftest.$ac_objext \
7083 conftest$ac_exeext conftest.$ac_ext
7084 ac_ext=c
7085ac_cpp='$CPP $CPPFLAGS'
7086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7088ac_compiler_gnu=$ac_cv_c_compiler_gnu
7089
7090fi
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7092$as_echo "$lt_cv_cc_needs_belf" >&6; }
7093 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7094 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7095 CFLAGS="$SAVE_CFLAGS"
7096 fi
7097 ;;
7098sparc*-*solaris*)
7099 # Find out which ABI we are using.
7100 echo 'int i;' > conftest.$ac_ext
7101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7102 (eval $ac_compile) 2>&5
7103 ac_status=$?
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
7106 case `/usr/bin/file conftest.o` in
7107 *64-bit*)
7108 case $lt_cv_prog_gnu_ld in
7109 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7110 *)
7111 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7112 LD="${LD-ld} -64"
7113 fi
7114 ;;
7115 esac
7116 ;;
7117 esac
7118 fi
7119 rm -rf conftest*
7120 ;;
7121esac
7122
7123need_locks="$enable_libtool_lock"
7124
7125
7126 case $host_os in
7127 rhapsody* | darwin*)
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7130set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007133if ${ac_cv_prog_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007134 $as_echo_n "(cached) " >&6
7135else
7136 if test -n "$DSYMUTIL"; then
7137 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7138else
7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140for as_dir in $PATH
7141do
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007146 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150done
7151 done
7152IFS=$as_save_IFS
7153
7154fi
7155fi
7156DSYMUTIL=$ac_cv_prog_DSYMUTIL
7157if test -n "$DSYMUTIL"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7159$as_echo "$DSYMUTIL" >&6; }
7160else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162$as_echo "no" >&6; }
7163fi
7164
7165
7166fi
7167if test -z "$ac_cv_prog_DSYMUTIL"; then
7168 ac_ct_DSYMUTIL=$DSYMUTIL
7169 # Extract the first word of "dsymutil", so it can be a program name with args.
7170set dummy dsymutil; ac_word=$2
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007173if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007174 $as_echo_n "(cached) " >&6
7175else
7176 if test -n "$ac_ct_DSYMUTIL"; then
7177 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7178else
7179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007186 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190done
7191 done
7192IFS=$as_save_IFS
7193
7194fi
7195fi
7196ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7197if test -n "$ac_ct_DSYMUTIL"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7199$as_echo "$ac_ct_DSYMUTIL" >&6; }
7200else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202$as_echo "no" >&6; }
7203fi
7204
7205 if test "x$ac_ct_DSYMUTIL" = x; then
7206 DSYMUTIL=":"
7207 else
7208 case $cross_compiling:$ac_tool_warned in
7209yes:)
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212ac_tool_warned=yes ;;
7213esac
7214 DSYMUTIL=$ac_ct_DSYMUTIL
7215 fi
7216else
7217 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7218fi
7219
7220 if test -n "$ac_tool_prefix"; then
7221 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7222set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007225if ${ac_cv_prog_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007226 $as_echo_n "(cached) " >&6
7227else
7228 if test -n "$NMEDIT"; then
7229 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7230else
7231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007238 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7241 fi
7242done
7243 done
7244IFS=$as_save_IFS
7245
7246fi
7247fi
7248NMEDIT=$ac_cv_prog_NMEDIT
7249if test -n "$NMEDIT"; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7251$as_echo "$NMEDIT" >&6; }
7252else
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254$as_echo "no" >&6; }
7255fi
7256
7257
7258fi
7259if test -z "$ac_cv_prog_NMEDIT"; then
7260 ac_ct_NMEDIT=$NMEDIT
7261 # Extract the first word of "nmedit", so it can be a program name with args.
7262set dummy nmedit; ac_word=$2
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007265if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007266 $as_echo_n "(cached) " >&6
7267else
7268 if test -n "$ac_ct_NMEDIT"; then
7269 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7270else
7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007278 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7281 fi
7282done
7283 done
7284IFS=$as_save_IFS
7285
7286fi
7287fi
7288ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7289if test -n "$ac_ct_NMEDIT"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7291$as_echo "$ac_ct_NMEDIT" >&6; }
7292else
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294$as_echo "no" >&6; }
7295fi
7296
7297 if test "x$ac_ct_NMEDIT" = x; then
7298 NMEDIT=":"
7299 else
7300 case $cross_compiling:$ac_tool_warned in
7301yes:)
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7304ac_tool_warned=yes ;;
7305esac
7306 NMEDIT=$ac_ct_NMEDIT
7307 fi
7308else
7309 NMEDIT="$ac_cv_prog_NMEDIT"
7310fi
7311
7312 if test -n "$ac_tool_prefix"; then
7313 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7314set dummy ${ac_tool_prefix}lipo; ac_word=$2
7315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007317if ${ac_cv_prog_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007318 $as_echo_n "(cached) " >&6
7319else
7320 if test -n "$LIPO"; then
7321 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7322else
7323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007330 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7333 fi
7334done
7335 done
7336IFS=$as_save_IFS
7337
7338fi
7339fi
7340LIPO=$ac_cv_prog_LIPO
7341if test -n "$LIPO"; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7343$as_echo "$LIPO" >&6; }
7344else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346$as_echo "no" >&6; }
7347fi
7348
7349
7350fi
7351if test -z "$ac_cv_prog_LIPO"; then
7352 ac_ct_LIPO=$LIPO
7353 # Extract the first word of "lipo", so it can be a program name with args.
7354set dummy lipo; ac_word=$2
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007357if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007358 $as_echo_n "(cached) " >&6
7359else
7360 if test -n "$ac_ct_LIPO"; then
7361 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7362else
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007370 ac_cv_prog_ac_ct_LIPO="lipo"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374done
7375 done
7376IFS=$as_save_IFS
7377
7378fi
7379fi
7380ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7381if test -n "$ac_ct_LIPO"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7383$as_echo "$ac_ct_LIPO" >&6; }
7384else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386$as_echo "no" >&6; }
7387fi
7388
7389 if test "x$ac_ct_LIPO" = x; then
7390 LIPO=":"
7391 else
7392 case $cross_compiling:$ac_tool_warned in
7393yes:)
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7396ac_tool_warned=yes ;;
7397esac
7398 LIPO=$ac_ct_LIPO
7399 fi
7400else
7401 LIPO="$ac_cv_prog_LIPO"
7402fi
7403
7404 if test -n "$ac_tool_prefix"; then
7405 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7406set dummy ${ac_tool_prefix}otool; ac_word=$2
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007409if ${ac_cv_prog_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007410 $as_echo_n "(cached) " >&6
7411else
7412 if test -n "$OTOOL"; then
7413 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7414else
7415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416for as_dir in $PATH
7417do
7418 IFS=$as_save_IFS
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007422 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 break 2
7425 fi
7426done
7427 done
7428IFS=$as_save_IFS
7429
7430fi
7431fi
7432OTOOL=$ac_cv_prog_OTOOL
7433if test -n "$OTOOL"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7435$as_echo "$OTOOL" >&6; }
7436else
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438$as_echo "no" >&6; }
7439fi
7440
7441
7442fi
7443if test -z "$ac_cv_prog_OTOOL"; then
7444 ac_ct_OTOOL=$OTOOL
7445 # Extract the first word of "otool", so it can be a program name with args.
7446set dummy otool; ac_word=$2
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007449if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007450 $as_echo_n "(cached) " >&6
7451else
7452 if test -n "$ac_ct_OTOOL"; then
7453 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7454else
7455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007462 ac_cv_prog_ac_ct_OTOOL="otool"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7465 fi
7466done
7467 done
7468IFS=$as_save_IFS
7469
7470fi
7471fi
7472ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7473if test -n "$ac_ct_OTOOL"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7475$as_echo "$ac_ct_OTOOL" >&6; }
7476else
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478$as_echo "no" >&6; }
7479fi
7480
7481 if test "x$ac_ct_OTOOL" = x; then
7482 OTOOL=":"
7483 else
7484 case $cross_compiling:$ac_tool_warned in
7485yes:)
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7488ac_tool_warned=yes ;;
7489esac
7490 OTOOL=$ac_ct_OTOOL
7491 fi
7492else
7493 OTOOL="$ac_cv_prog_OTOOL"
7494fi
7495
7496 if test -n "$ac_tool_prefix"; then
7497 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7498set dummy ${ac_tool_prefix}otool64; ac_word=$2
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007501if ${ac_cv_prog_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007502 $as_echo_n "(cached) " >&6
7503else
7504 if test -n "$OTOOL64"; then
7505 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7506else
7507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007514 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 break 2
7517 fi
7518done
7519 done
7520IFS=$as_save_IFS
7521
7522fi
7523fi
7524OTOOL64=$ac_cv_prog_OTOOL64
7525if test -n "$OTOOL64"; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7527$as_echo "$OTOOL64" >&6; }
7528else
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530$as_echo "no" >&6; }
7531fi
7532
7533
7534fi
7535if test -z "$ac_cv_prog_OTOOL64"; then
7536 ac_ct_OTOOL64=$OTOOL64
7537 # Extract the first word of "otool64", so it can be a program name with args.
7538set dummy otool64; ac_word=$2
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007541if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007542 $as_echo_n "(cached) " >&6
7543else
7544 if test -n "$ac_ct_OTOOL64"; then
7545 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7546else
7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007554 ac_cv_prog_ac_ct_OTOOL64="otool64"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7557 fi
7558done
7559 done
7560IFS=$as_save_IFS
7561
7562fi
7563fi
7564ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7565if test -n "$ac_ct_OTOOL64"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7567$as_echo "$ac_ct_OTOOL64" >&6; }
7568else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570$as_echo "no" >&6; }
7571fi
7572
7573 if test "x$ac_ct_OTOOL64" = x; then
7574 OTOOL64=":"
7575 else
7576 case $cross_compiling:$ac_tool_warned in
7577yes:)
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7580ac_tool_warned=yes ;;
7581esac
7582 OTOOL64=$ac_ct_OTOOL64
7583 fi
7584else
7585 OTOOL64="$ac_cv_prog_OTOOL64"
7586fi
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7615$as_echo_n "checking for -single_module linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007616if ${lt_cv_apple_cc_single_mod+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007617 $as_echo_n "(cached) " >&6
7618else
7619 lt_cv_apple_cc_single_mod=no
7620 if test -z "${LT_MULTI_MODULE}"; then
7621 # By default we will add the -single_module flag. You can override
7622 # by either setting the environment variable LT_MULTI_MODULE
7623 # non-empty at configure time, or by adding -multi_module to the
7624 # link flags.
7625 rm -rf libconftest.dylib*
7626 echo "int foo(void){return 1;}" > conftest.c
7627 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7628-dynamiclib -Wl,-single_module conftest.c" >&5
7629 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7630 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7631 _lt_result=$?
7632 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7633 lt_cv_apple_cc_single_mod=yes
7634 else
7635 cat conftest.err >&5
7636 fi
7637 rm -rf libconftest.dylib*
7638 rm -f conftest.*
7639 fi
7640fi
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7642$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7644$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007645if ${lt_cv_ld_exported_symbols_list+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007646 $as_echo_n "(cached) " >&6
7647else
7648 lt_cv_ld_exported_symbols_list=no
7649 save_LDFLAGS=$LDFLAGS
7650 echo "_main" > conftest.sym
7651 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653/* end confdefs.h. */
7654
7655int
7656main ()
7657{
7658
7659 ;
7660 return 0;
7661}
7662_ACEOF
7663if ac_fn_c_try_link "$LINENO"; then :
7664 lt_cv_ld_exported_symbols_list=yes
7665else
7666 lt_cv_ld_exported_symbols_list=no
7667fi
7668rm -f core conftest.err conftest.$ac_objext \
7669 conftest$ac_exeext conftest.$ac_ext
7670 LDFLAGS="$save_LDFLAGS"
7671
7672fi
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7674$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7676$as_echo_n "checking for -force_load linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007677if ${lt_cv_ld_force_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007678 $as_echo_n "(cached) " >&6
7679else
7680 lt_cv_ld_force_load=no
7681 cat > conftest.c << _LT_EOF
7682int forced_loaded() { return 2;}
7683_LT_EOF
7684 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7685 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7686 echo "$AR cru libconftest.a conftest.o" >&5
7687 $AR cru libconftest.a conftest.o 2>&5
7688 cat > conftest.c << _LT_EOF
7689int main() { return 0;}
7690_LT_EOF
7691 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7692 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7693 _lt_result=$?
7694 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7695 lt_cv_ld_force_load=yes
7696 else
7697 cat conftest.err >&5
7698 fi
7699 rm -f conftest.err libconftest.a conftest conftest.c
7700 rm -rf conftest.dSYM
7701
7702fi
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7704$as_echo "$lt_cv_ld_force_load" >&6; }
7705 case $host_os in
7706 rhapsody* | darwin1.[012])
7707 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7708 darwin1.*)
7709 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7710 darwin*) # darwin 5.x on
7711 # if running on 10.5 or later, the deployment target defaults
7712 # to the OS version, if on x86, and 10.4, the deployment
7713 # target defaults to 10.4. Don't you love it?
7714 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7715 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7716 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7717 10.[012][,.]*)
7718 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7719 10.*)
7720 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7721 esac
7722 ;;
7723 esac
7724 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7725 _lt_dar_single_mod='$single_module'
7726 fi
7727 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7728 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7729 else
7730 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7731 fi
7732 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7733 _lt_dsymutil='~$DSYMUTIL $lib || :'
7734 else
7735 _lt_dsymutil=
7736 fi
7737 ;;
7738 esac
7739
7740ac_ext=c
7741ac_cpp='$CPP $CPPFLAGS'
7742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7744ac_compiler_gnu=$ac_cv_c_compiler_gnu
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7746$as_echo_n "checking how to run the C preprocessor... " >&6; }
7747# On Suns, sometimes $CPP names a directory.
7748if test -n "$CPP" && test -d "$CPP"; then
7749 CPP=
7750fi
7751if test -z "$CPP"; then
Joseph Myers22e05272018-10-31 17:03:16 +00007752 if ${ac_cv_prog_CPP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007753 $as_echo_n "(cached) " >&6
7754else
7755 # Double quotes because CPP needs to be expanded
7756 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7757 do
7758 ac_preproc_ok=false
7759for ac_c_preproc_warn_flag in '' yes
7760do
7761 # Use a header file that comes with gcc, so configuring glibc
7762 # with a fresh cross-compiler works.
7763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7764 # <limits.h> exists even on freestanding compilers.
7765 # On the NeXT, cc -E runs the code through the compiler's parser,
7766 # not just through cpp. "Syntax error" is here to catch this case.
7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768/* end confdefs.h. */
7769#ifdef __STDC__
7770# include <limits.h>
7771#else
7772# include <assert.h>
7773#endif
7774 Syntax error
7775_ACEOF
7776if ac_fn_c_try_cpp "$LINENO"; then :
7777
7778else
7779 # Broken: fails on valid input.
7780continue
7781fi
Joseph Myers22e05272018-10-31 17:03:16 +00007782rm -f conftest.err conftest.i conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00007783
7784 # OK, works on sane cases. Now check whether nonexistent headers
7785 # can be detected and how.
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787/* end confdefs.h. */
7788#include <ac_nonexistent.h>
7789_ACEOF
7790if ac_fn_c_try_cpp "$LINENO"; then :
7791 # Broken: success on invalid input.
7792continue
7793else
7794 # Passes both tests.
7795ac_preproc_ok=:
7796break
7797fi
Joseph Myers22e05272018-10-31 17:03:16 +00007798rm -f conftest.err conftest.i conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00007799
7800done
7801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Joseph Myers22e05272018-10-31 17:03:16 +00007802rm -f conftest.i conftest.err conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00007803if $ac_preproc_ok; then :
7804 break
7805fi
7806
7807 done
7808 ac_cv_prog_CPP=$CPP
7809
7810fi
7811 CPP=$ac_cv_prog_CPP
7812else
7813 ac_cv_prog_CPP=$CPP
7814fi
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7816$as_echo "$CPP" >&6; }
7817ac_preproc_ok=false
7818for ac_c_preproc_warn_flag in '' yes
7819do
7820 # Use a header file that comes with gcc, so configuring glibc
7821 # with a fresh cross-compiler works.
7822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7823 # <limits.h> exists even on freestanding compilers.
7824 # On the NeXT, cc -E runs the code through the compiler's parser,
7825 # not just through cpp. "Syntax error" is here to catch this case.
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827/* end confdefs.h. */
7828#ifdef __STDC__
7829# include <limits.h>
7830#else
7831# include <assert.h>
7832#endif
7833 Syntax error
7834_ACEOF
7835if ac_fn_c_try_cpp "$LINENO"; then :
7836
7837else
7838 # Broken: fails on valid input.
7839continue
7840fi
Joseph Myers22e05272018-10-31 17:03:16 +00007841rm -f conftest.err conftest.i conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00007842
7843 # OK, works on sane cases. Now check whether nonexistent headers
7844 # can be detected and how.
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846/* end confdefs.h. */
7847#include <ac_nonexistent.h>
7848_ACEOF
7849if ac_fn_c_try_cpp "$LINENO"; then :
7850 # Broken: success on invalid input.
7851continue
7852else
7853 # Passes both tests.
7854ac_preproc_ok=:
7855break
7856fi
Joseph Myers22e05272018-10-31 17:03:16 +00007857rm -f conftest.err conftest.i conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00007858
7859done
7860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Joseph Myers22e05272018-10-31 17:03:16 +00007861rm -f conftest.i conftest.err conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00007862if $ac_preproc_ok; then :
7863
7864else
7865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00007867as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7868See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00007869fi
7870
7871ac_ext=c
7872ac_cpp='$CPP $CPPFLAGS'
7873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875ac_compiler_gnu=$ac_cv_c_compiler_gnu
7876
7877
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7879$as_echo_n "checking for ANSI C header files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007880if ${ac_cv_header_stdc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007881 $as_echo_n "(cached) " >&6
7882else
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884/* end confdefs.h. */
7885#include <stdlib.h>
7886#include <stdarg.h>
7887#include <string.h>
7888#include <float.h>
7889
7890int
7891main ()
7892{
7893
7894 ;
7895 return 0;
7896}
7897_ACEOF
7898if ac_fn_c_try_compile "$LINENO"; then :
7899 ac_cv_header_stdc=yes
7900else
7901 ac_cv_header_stdc=no
7902fi
7903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904
7905if test $ac_cv_header_stdc = yes; then
7906 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908/* end confdefs.h. */
7909#include <string.h>
7910
7911_ACEOF
7912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7913 $EGREP "memchr" >/dev/null 2>&1; then :
7914
7915else
7916 ac_cv_header_stdc=no
7917fi
7918rm -f conftest*
7919
7920fi
7921
7922if test $ac_cv_header_stdc = yes; then
7923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h. */
7926#include <stdlib.h>
7927
7928_ACEOF
7929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7930 $EGREP "free" >/dev/null 2>&1; then :
7931
7932else
7933 ac_cv_header_stdc=no
7934fi
7935rm -f conftest*
7936
7937fi
7938
7939if test $ac_cv_header_stdc = yes; then
7940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7941 if test "$cross_compiling" = yes; then :
7942 :
7943else
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945/* end confdefs.h. */
7946#include <ctype.h>
7947#include <stdlib.h>
7948#if ((' ' & 0x0FF) == 0x020)
7949# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7950# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7951#else
7952# define ISLOWER(c) \
7953 (('a' <= (c) && (c) <= 'i') \
7954 || ('j' <= (c) && (c) <= 'r') \
7955 || ('s' <= (c) && (c) <= 'z'))
7956# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7957#endif
7958
7959#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7960int
7961main ()
7962{
7963 int i;
7964 for (i = 0; i < 256; i++)
7965 if (XOR (islower (i), ISLOWER (i))
7966 || toupper (i) != TOUPPER (i))
7967 return 2;
7968 return 0;
7969}
7970_ACEOF
7971if ac_fn_c_try_run "$LINENO"; then :
7972
7973else
7974 ac_cv_header_stdc=no
7975fi
7976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7977 conftest.$ac_objext conftest.beam conftest.$ac_ext
7978fi
7979
7980fi
7981fi
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7983$as_echo "$ac_cv_header_stdc" >&6; }
7984if test $ac_cv_header_stdc = yes; then
7985
7986$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7987
7988fi
7989
7990# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7991for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7992 inttypes.h stdint.h unistd.h
7993do :
7994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7995ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7996"
Joseph Myers22e05272018-10-31 17:03:16 +00007997if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007998 cat >>confdefs.h <<_ACEOF
7999#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8000_ACEOF
8001
8002fi
8003
8004done
8005
8006
8007for ac_header in dlfcn.h
8008do :
8009 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8010"
Joseph Myers22e05272018-10-31 17:03:16 +00008011if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008012 cat >>confdefs.h <<_ACEOF
8013#define HAVE_DLFCN_H 1
8014_ACEOF
8015
8016fi
8017
8018done
8019
8020
8021
8022
8023
8024# Set options
8025enable_dlopen=yes
8026
8027
8028
8029
8030 enable_win32_dll=no
8031
8032
8033 # Check whether --enable-shared was given.
8034if test "${enable_shared+set}" = set; then :
8035 enableval=$enable_shared; p=${PACKAGE-default}
8036 case $enableval in
8037 yes) enable_shared=yes ;;
8038 no) enable_shared=no ;;
8039 *)
8040 enable_shared=no
8041 # Look at the argument we got. We use all the common list separators.
8042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8043 for pkg in $enableval; do
8044 IFS="$lt_save_ifs"
8045 if test "X$pkg" = "X$p"; then
8046 enable_shared=yes
8047 fi
8048 done
8049 IFS="$lt_save_ifs"
8050 ;;
8051 esac
8052else
8053 enable_shared=yes
8054fi
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064 # Check whether --enable-static was given.
8065if test "${enable_static+set}" = set; then :
8066 enableval=$enable_static; p=${PACKAGE-default}
8067 case $enableval in
8068 yes) enable_static=yes ;;
8069 no) enable_static=no ;;
8070 *)
8071 enable_static=no
8072 # Look at the argument we got. We use all the common list separators.
8073 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8074 for pkg in $enableval; do
8075 IFS="$lt_save_ifs"
8076 if test "X$pkg" = "X$p"; then
8077 enable_static=yes
8078 fi
8079 done
8080 IFS="$lt_save_ifs"
8081 ;;
8082 esac
8083else
8084 enable_static=yes
8085fi
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096# Check whether --with-pic was given.
8097if test "${with_pic+set}" = set; then :
8098 withval=$with_pic; pic_mode="$withval"
8099else
8100 pic_mode=default
8101fi
8102
8103
8104test -z "$pic_mode" && pic_mode=default
8105
8106
8107
8108
8109
8110
8111
8112 # Check whether --enable-fast-install was given.
8113if test "${enable_fast_install+set}" = set; then :
8114 enableval=$enable_fast_install; p=${PACKAGE-default}
8115 case $enableval in
8116 yes) enable_fast_install=yes ;;
8117 no) enable_fast_install=no ;;
8118 *)
8119 enable_fast_install=no
8120 # Look at the argument we got. We use all the common list separators.
8121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8122 for pkg in $enableval; do
8123 IFS="$lt_save_ifs"
8124 if test "X$pkg" = "X$p"; then
8125 enable_fast_install=yes
8126 fi
8127 done
8128 IFS="$lt_save_ifs"
8129 ;;
8130 esac
8131else
8132 enable_fast_install=yes
8133fi
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145# This can be used to rebuild libtool when needed
8146LIBTOOL_DEPS="$ltmain"
8147
8148# Always use our own libtool.
8149LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176test -z "$LN_S" && LN_S="ln -s"
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191if test -n "${ZSH_VERSION+set}" ; then
8192 setopt NO_GLOB_SUBST
8193fi
8194
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8196$as_echo_n "checking for objdir... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008197if ${lt_cv_objdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008198 $as_echo_n "(cached) " >&6
8199else
8200 rm -f .libs 2>/dev/null
8201mkdir .libs 2>/dev/null
8202if test -d .libs; then
8203 lt_cv_objdir=.libs
8204else
8205 # MS-DOS does not allow filenames that begin with a dot.
8206 lt_cv_objdir=_libs
8207fi
8208rmdir .libs 2>/dev/null
8209fi
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8211$as_echo "$lt_cv_objdir" >&6; }
8212objdir=$lt_cv_objdir
8213
8214
8215
8216
8217
8218cat >>confdefs.h <<_ACEOF
8219#define LT_OBJDIR "$lt_cv_objdir/"
8220_ACEOF
8221
8222
8223
8224
8225case $host_os in
8226aix3*)
8227 # AIX sometimes has problems with the GCC collect2 program. For some
8228 # reason, if we set the COLLECT_NAMES environment variable, the problems
8229 # vanish in a puff of smoke.
8230 if test "X${COLLECT_NAMES+set}" != Xset; then
8231 COLLECT_NAMES=
8232 export COLLECT_NAMES
8233 fi
8234 ;;
8235esac
8236
8237# Global variables:
8238ofile=libtool
8239can_build_shared=yes
8240
8241# All known linkers require a `.a' archive for static linking (except MSVC,
8242# which needs '.lib').
8243libext=a
8244
8245with_gnu_ld="$lt_cv_prog_gnu_ld"
8246
8247old_CC="$CC"
8248old_CFLAGS="$CFLAGS"
8249
8250# Set sane defaults for various variables
8251test -z "$CC" && CC=cc
8252test -z "$LTCC" && LTCC=$CC
8253test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8254test -z "$LD" && LD=ld
8255test -z "$ac_objext" && ac_objext=o
8256
8257for cc_temp in $compiler""; do
8258 case $cc_temp in
8259 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8260 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8261 \-*) ;;
8262 *) break;;
8263 esac
8264done
8265cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8266
8267
8268# Only perform the check for file, if the check method requires it
8269test -z "$MAGIC_CMD" && MAGIC_CMD=file
8270case $deplibs_check_method in
8271file_magic*)
8272 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8274$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008275if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008276 $as_echo_n "(cached) " >&6
8277else
8278 case $MAGIC_CMD in
8279[\\/*] | ?:[\\/]*)
8280 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8281 ;;
8282*)
8283 lt_save_MAGIC_CMD="$MAGIC_CMD"
8284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8285 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8286 for ac_dir in $ac_dummy; do
8287 IFS="$lt_save_ifs"
8288 test -z "$ac_dir" && ac_dir=.
8289 if test -f $ac_dir/${ac_tool_prefix}file; then
8290 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8291 if test -n "$file_magic_test_file"; then
8292 case $deplibs_check_method in
8293 "file_magic "*)
8294 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8296 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8297 $EGREP "$file_magic_regex" > /dev/null; then
8298 :
8299 else
8300 cat <<_LT_EOF 1>&2
8301
8302*** Warning: the command libtool uses to detect shared libraries,
8303*** $file_magic_cmd, produces output that libtool cannot recognize.
8304*** The result is that libtool may fail to recognize shared libraries
8305*** as such. This will affect the creation of libtool libraries that
8306*** depend on shared libraries, but programs linked with such libtool
8307*** libraries will work regardless of this problem. Nevertheless, you
8308*** may want to report the problem to your system manager and/or to
8309*** bug-libtool@gnu.org
8310
8311_LT_EOF
8312 fi ;;
8313 esac
8314 fi
8315 break
8316 fi
8317 done
8318 IFS="$lt_save_ifs"
8319 MAGIC_CMD="$lt_save_MAGIC_CMD"
8320 ;;
8321esac
8322fi
8323
8324MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8325if test -n "$MAGIC_CMD"; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8327$as_echo "$MAGIC_CMD" >&6; }
8328else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330$as_echo "no" >&6; }
8331fi
8332
8333
8334
8335
8336
8337if test -z "$lt_cv_path_MAGIC_CMD"; then
8338 if test -n "$ac_tool_prefix"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8340$as_echo_n "checking for file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008341if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008342 $as_echo_n "(cached) " >&6
8343else
8344 case $MAGIC_CMD in
8345[\\/*] | ?:[\\/]*)
8346 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8347 ;;
8348*)
8349 lt_save_MAGIC_CMD="$MAGIC_CMD"
8350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8352 for ac_dir in $ac_dummy; do
8353 IFS="$lt_save_ifs"
8354 test -z "$ac_dir" && ac_dir=.
8355 if test -f $ac_dir/file; then
8356 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8357 if test -n "$file_magic_test_file"; then
8358 case $deplibs_check_method in
8359 "file_magic "*)
8360 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8363 $EGREP "$file_magic_regex" > /dev/null; then
8364 :
8365 else
8366 cat <<_LT_EOF 1>&2
8367
8368*** Warning: the command libtool uses to detect shared libraries,
8369*** $file_magic_cmd, produces output that libtool cannot recognize.
8370*** The result is that libtool may fail to recognize shared libraries
8371*** as such. This will affect the creation of libtool libraries that
8372*** depend on shared libraries, but programs linked with such libtool
8373*** libraries will work regardless of this problem. Nevertheless, you
8374*** may want to report the problem to your system manager and/or to
8375*** bug-libtool@gnu.org
8376
8377_LT_EOF
8378 fi ;;
8379 esac
8380 fi
8381 break
8382 fi
8383 done
8384 IFS="$lt_save_ifs"
8385 MAGIC_CMD="$lt_save_MAGIC_CMD"
8386 ;;
8387esac
8388fi
8389
8390MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8391if test -n "$MAGIC_CMD"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8393$as_echo "$MAGIC_CMD" >&6; }
8394else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
8397fi
8398
8399
8400 else
8401 MAGIC_CMD=:
8402 fi
8403fi
8404
8405 fi
8406 ;;
8407esac
8408
8409# Use C for the default configuration in the libtool script
8410
8411lt_save_CC="$CC"
8412ac_ext=c
8413ac_cpp='$CPP $CPPFLAGS'
8414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416ac_compiler_gnu=$ac_cv_c_compiler_gnu
8417
8418
8419# Source file extension for C test sources.
8420ac_ext=c
8421
8422# Object file extension for compiled C test sources.
8423objext=o
8424objext=$objext
8425
8426# Code to be used in simple compile tests
8427lt_simple_compile_test_code="int some_variable = 0;"
8428
8429# Code to be used in simple link tests
8430lt_simple_link_test_code='int main(){return(0);}'
8431
8432
8433
8434
8435
8436
8437
8438# If no C compiler was specified, use CC.
8439LTCC=${LTCC-"$CC"}
8440
8441# If no C compiler flags were specified, use CFLAGS.
8442LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8443
8444# Allow CC to be a program name with arguments.
8445compiler=$CC
8446
8447# Save the default compiler, since it gets overwritten when the other
8448# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8449compiler_DEFAULT=$CC
8450
8451# save warnings/boilerplate of simple test code
8452ac_outfile=conftest.$ac_objext
8453echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8454eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8455_lt_compiler_boilerplate=`cat conftest.err`
8456$RM conftest*
8457
8458ac_outfile=conftest.$ac_objext
8459echo "$lt_simple_link_test_code" >conftest.$ac_ext
8460eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8461_lt_linker_boilerplate=`cat conftest.err`
8462$RM -r conftest*
8463
8464
8465## CAVEAT EMPTOR:
8466## There is no encapsulation within the following macros, do not change
8467## the running order or otherwise move them around unless you know exactly
8468## what you are doing...
8469if test -n "$compiler"; then
8470
8471lt_prog_compiler_no_builtin_flag=
8472
8473if test "$GCC" = yes; then
8474 case $cc_basename in
8475 nvcc*)
8476 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8477 *)
8478 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8479 esac
8480
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8482$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008483if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008484 $as_echo_n "(cached) " >&6
8485else
8486 lt_cv_prog_compiler_rtti_exceptions=no
8487 ac_outfile=conftest.$ac_objext
8488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8489 lt_compiler_flag="-fno-rtti -fno-exceptions"
8490 # Insert the option either (1) after the last *FLAGS variable, or
8491 # (2) before a word containing "conftest.", or (3) at the end.
8492 # Note that $ac_compile itself does not contain backslashes and begins
8493 # with a dollar sign (not a hyphen), so the echo should work correctly.
8494 # The option is referenced via a variable to avoid confusing sed.
8495 lt_compile=`echo "$ac_compile" | $SED \
8496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8498 -e 's:$: $lt_compiler_flag:'`
8499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8500 (eval "$lt_compile" 2>conftest.err)
8501 ac_status=$?
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 if (exit $ac_status) && test -s "$ac_outfile"; then
8505 # The compiler can only warn and ignore the option if not recognized
8506 # So say no if there are warnings other than the usual output.
8507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8509 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8510 lt_cv_prog_compiler_rtti_exceptions=yes
8511 fi
8512 fi
8513 $RM conftest*
8514
8515fi
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8517$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8518
8519if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8520 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8521else
8522 :
8523fi
8524
8525fi
8526
8527
8528
8529
8530
8531
8532 lt_prog_compiler_wl=
8533lt_prog_compiler_pic=
8534lt_prog_compiler_static=
8535
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8537$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8538
8539 if test "$GCC" = yes; then
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_static='-static'
8542
8543 case $host_os in
8544 aix*)
8545 # All AIX code is PIC.
8546 if test "$host_cpu" = ia64; then
8547 # AIX 5 now supports IA64 processor
8548 lt_prog_compiler_static='-Bstatic'
8549 fi
8550 lt_prog_compiler_pic='-fPIC'
8551 ;;
8552
8553 amigaos*)
8554 case $host_cpu in
8555 powerpc)
8556 # see comment about AmigaOS4 .so support
8557 lt_prog_compiler_pic='-fPIC'
8558 ;;
8559 m68k)
8560 # FIXME: we need at least 68020 code to build shared libraries, but
8561 # adding the `-m68020' flag to GCC prevents building anything better,
8562 # like `-m68040'.
8563 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8564 ;;
8565 esac
8566 ;;
8567
8568 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8569 # PIC is the default for these OSes.
8570 ;;
8571
8572 mingw* | cygwin* | pw32* | os2* | cegcc*)
8573 # This hack is so that the source file can tell whether it is being
8574 # built for inclusion in a dll (and should export symbols for example).
8575 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8576 # (--disable-auto-import) libraries
8577 lt_prog_compiler_pic='-DDLL_EXPORT'
8578 ;;
8579
8580 darwin* | rhapsody*)
8581 # PIC is the default on this platform
8582 # Common symbols not allowed in MH_DYLIB files
8583 lt_prog_compiler_pic='-fno-common'
8584 ;;
8585
8586 haiku*)
8587 # PIC is the default for Haiku.
8588 # The "-static" flag exists, but is broken.
8589 lt_prog_compiler_static=
8590 ;;
8591
8592 hpux*)
8593 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8594 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8595 # sets the default TLS model and affects inlining.
8596 case $host_cpu in
8597 hppa*64*)
8598 # +Z the default
8599 ;;
8600 *)
8601 lt_prog_compiler_pic='-fPIC'
8602 ;;
8603 esac
8604 ;;
8605
8606 interix[3-9]*)
8607 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8608 # Instead, we relocate shared libraries at runtime.
8609 ;;
8610
8611 msdosdjgpp*)
8612 # Just because we use GCC doesn't mean we suddenly get shared libraries
8613 # on systems that don't support them.
8614 lt_prog_compiler_can_build_shared=no
8615 enable_shared=no
8616 ;;
8617
8618 *nto* | *qnx*)
8619 # QNX uses GNU C++, but need to define -shared option too, otherwise
8620 # it will coredump.
8621 lt_prog_compiler_pic='-fPIC -shared'
8622 ;;
8623
8624 sysv4*MP*)
8625 if test -d /usr/nec; then
8626 lt_prog_compiler_pic=-Kconform_pic
8627 fi
8628 ;;
8629
8630 *)
8631 lt_prog_compiler_pic='-fPIC'
8632 ;;
8633 esac
8634
8635 case $cc_basename in
8636 nvcc*) # Cuda Compiler Driver 2.2
8637 lt_prog_compiler_wl='-Xlinker '
8638 lt_prog_compiler_pic='-Xcompiler -fPIC'
8639 ;;
8640 esac
8641 else
8642 # PORTME Check for flag to pass linker flags through the system compiler.
8643 case $host_os in
8644 aix*)
8645 lt_prog_compiler_wl='-Wl,'
8646 if test "$host_cpu" = ia64; then
8647 # AIX 5 now supports IA64 processor
8648 lt_prog_compiler_static='-Bstatic'
8649 else
8650 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8651 fi
8652 ;;
8653
8654 mingw* | cygwin* | pw32* | os2* | cegcc*)
8655 # This hack is so that the source file can tell whether it is being
8656 # built for inclusion in a dll (and should export symbols for example).
8657 lt_prog_compiler_pic='-DDLL_EXPORT'
8658 ;;
8659
8660 hpux9* | hpux10* | hpux11*)
8661 lt_prog_compiler_wl='-Wl,'
8662 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8663 # not for PA HP-UX.
8664 case $host_cpu in
8665 hppa*64*|ia64*)
8666 # +Z the default
8667 ;;
8668 *)
8669 lt_prog_compiler_pic='+Z'
8670 ;;
8671 esac
8672 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8673 lt_prog_compiler_static='${wl}-a ${wl}archive'
8674 ;;
8675
8676 irix5* | irix6* | nonstopux*)
8677 lt_prog_compiler_wl='-Wl,'
8678 # PIC (with -KPIC) is the default.
8679 lt_prog_compiler_static='-non_shared'
8680 ;;
8681
8682 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8683 case $cc_basename in
8684 # old Intel for x86_64 which still supported -KPIC.
8685 ecc*)
8686 lt_prog_compiler_wl='-Wl,'
8687 lt_prog_compiler_pic='-KPIC'
8688 lt_prog_compiler_static='-static'
8689 ;;
8690 # icc used to be incompatible with GCC.
8691 # ICC 10 doesn't accept -KPIC any more.
8692 icc* | ifort*)
8693 lt_prog_compiler_wl='-Wl,'
8694 lt_prog_compiler_pic='-fPIC'
8695 lt_prog_compiler_static='-static'
8696 ;;
8697 # Lahey Fortran 8.1.
8698 lf95*)
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_pic='--shared'
8701 lt_prog_compiler_static='--static'
8702 ;;
8703 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8704 # Portland Group compilers (*not* the Pentium gcc compiler,
8705 # which looks to be a dead project)
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_pic='-fpic'
8708 lt_prog_compiler_static='-Bstatic'
8709 ;;
8710 ccc*)
8711 lt_prog_compiler_wl='-Wl,'
8712 # All Alpha code is PIC.
8713 lt_prog_compiler_static='-non_shared'
8714 ;;
8715 xl* | bgxl* | bgf* | mpixl*)
8716 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8717 lt_prog_compiler_wl='-Wl,'
8718 lt_prog_compiler_pic='-qpic'
8719 lt_prog_compiler_static='-qstaticlink'
8720 ;;
8721 *)
8722 case `$CC -V 2>&1 | sed 5q` in
8723 *Sun\ F* | *Sun*Fortran*)
8724 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8725 lt_prog_compiler_pic='-KPIC'
8726 lt_prog_compiler_static='-Bstatic'
8727 lt_prog_compiler_wl=''
8728 ;;
8729 *Sun\ C*)
8730 # Sun C 5.9
8731 lt_prog_compiler_pic='-KPIC'
8732 lt_prog_compiler_static='-Bstatic'
8733 lt_prog_compiler_wl='-Wl,'
8734 ;;
8735 esac
8736 ;;
8737 esac
8738 ;;
8739
8740 newsos6)
8741 lt_prog_compiler_pic='-KPIC'
8742 lt_prog_compiler_static='-Bstatic'
8743 ;;
8744
8745 *nto* | *qnx*)
8746 # QNX uses GNU C++, but need to define -shared option too, otherwise
8747 # it will coredump.
8748 lt_prog_compiler_pic='-fPIC -shared'
8749 ;;
8750
8751 osf3* | osf4* | osf5*)
8752 lt_prog_compiler_wl='-Wl,'
8753 # All OSF/1 code is PIC.
8754 lt_prog_compiler_static='-non_shared'
8755 ;;
8756
8757 rdos*)
8758 lt_prog_compiler_static='-non_shared'
8759 ;;
8760
8761 solaris*)
8762 lt_prog_compiler_pic='-KPIC'
8763 lt_prog_compiler_static='-Bstatic'
8764 case $cc_basename in
8765 f77* | f90* | f95*)
8766 lt_prog_compiler_wl='-Qoption ld ';;
8767 *)
8768 lt_prog_compiler_wl='-Wl,';;
8769 esac
8770 ;;
8771
8772 sunos4*)
8773 lt_prog_compiler_wl='-Qoption ld '
8774 lt_prog_compiler_pic='-PIC'
8775 lt_prog_compiler_static='-Bstatic'
8776 ;;
8777
8778 sysv4 | sysv4.2uw2* | sysv4.3*)
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_pic='-KPIC'
8781 lt_prog_compiler_static='-Bstatic'
8782 ;;
8783
8784 sysv4*MP*)
8785 if test -d /usr/nec ;then
8786 lt_prog_compiler_pic='-Kconform_pic'
8787 lt_prog_compiler_static='-Bstatic'
8788 fi
8789 ;;
8790
8791 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8792 lt_prog_compiler_wl='-Wl,'
8793 lt_prog_compiler_pic='-KPIC'
8794 lt_prog_compiler_static='-Bstatic'
8795 ;;
8796
8797 unicos*)
8798 lt_prog_compiler_wl='-Wl,'
8799 lt_prog_compiler_can_build_shared=no
8800 ;;
8801
8802 uts4*)
8803 lt_prog_compiler_pic='-pic'
8804 lt_prog_compiler_static='-Bstatic'
8805 ;;
8806
8807 *)
8808 lt_prog_compiler_can_build_shared=no
8809 ;;
8810 esac
8811 fi
8812
8813case $host_os in
8814 # For platforms which do not support PIC, -DPIC is meaningless:
8815 *djgpp*)
8816 lt_prog_compiler_pic=
8817 ;;
8818 *)
8819 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8820 ;;
8821esac
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8823$as_echo "$lt_prog_compiler_pic" >&6; }
8824
8825
8826
8827
8828
8829
8830#
8831# Check to make sure the PIC flag actually works.
8832#
8833if test -n "$lt_prog_compiler_pic"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8835$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008836if ${lt_cv_prog_compiler_pic_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008837 $as_echo_n "(cached) " >&6
8838else
8839 lt_cv_prog_compiler_pic_works=no
8840 ac_outfile=conftest.$ac_objext
8841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8842 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8843 # Insert the option either (1) after the last *FLAGS variable, or
8844 # (2) before a word containing "conftest.", or (3) at the end.
8845 # Note that $ac_compile itself does not contain backslashes and begins
8846 # with a dollar sign (not a hyphen), so the echo should work correctly.
8847 # The option is referenced via a variable to avoid confusing sed.
8848 lt_compile=`echo "$ac_compile" | $SED \
8849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8851 -e 's:$: $lt_compiler_flag:'`
8852 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8853 (eval "$lt_compile" 2>conftest.err)
8854 ac_status=$?
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 if (exit $ac_status) && test -s "$ac_outfile"; then
8858 # The compiler can only warn and ignore the option if not recognized
8859 # So say no if there are warnings other than the usual output.
8860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8862 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8863 lt_cv_prog_compiler_pic_works=yes
8864 fi
8865 fi
8866 $RM conftest*
8867
8868fi
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8870$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8871
8872if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8873 case $lt_prog_compiler_pic in
8874 "" | " "*) ;;
8875 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8876 esac
8877else
8878 lt_prog_compiler_pic=
8879 lt_prog_compiler_can_build_shared=no
8880fi
8881
8882fi
8883
8884
8885
8886
8887
8888
8889#
8890# Check to make sure the static flag actually works.
8891#
8892wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8894$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008895if ${lt_cv_prog_compiler_static_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008896 $as_echo_n "(cached) " >&6
8897else
8898 lt_cv_prog_compiler_static_works=no
8899 save_LDFLAGS="$LDFLAGS"
8900 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8901 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8902 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8903 # The linker can only warn and ignore the option if not recognized
8904 # So say no if there are warnings
8905 if test -s conftest.err; then
8906 # Append any errors to the config.log.
8907 cat conftest.err 1>&5
8908 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8910 if diff conftest.exp conftest.er2 >/dev/null; then
8911 lt_cv_prog_compiler_static_works=yes
8912 fi
8913 else
8914 lt_cv_prog_compiler_static_works=yes
8915 fi
8916 fi
8917 $RM -r conftest*
8918 LDFLAGS="$save_LDFLAGS"
8919
8920fi
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8922$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8923
8924if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8925 :
8926else
8927 lt_prog_compiler_static=
8928fi
8929
8930
8931
8932
8933
8934
8935
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8937$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008938if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008939 $as_echo_n "(cached) " >&6
8940else
8941 lt_cv_prog_compiler_c_o=no
8942 $RM -r conftest 2>/dev/null
8943 mkdir conftest
8944 cd conftest
8945 mkdir out
8946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8947
8948 lt_compiler_flag="-o out/conftest2.$ac_objext"
8949 # Insert the option either (1) after the last *FLAGS variable, or
8950 # (2) before a word containing "conftest.", or (3) at the end.
8951 # Note that $ac_compile itself does not contain backslashes and begins
8952 # with a dollar sign (not a hyphen), so the echo should work correctly.
8953 lt_compile=`echo "$ac_compile" | $SED \
8954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8956 -e 's:$: $lt_compiler_flag:'`
8957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8958 (eval "$lt_compile" 2>out/conftest.err)
8959 ac_status=$?
8960 cat out/conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8963 then
8964 # The compiler can only warn and ignore the option if not recognized
8965 # So say no if there are warnings
8966 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8967 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8968 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8969 lt_cv_prog_compiler_c_o=yes
8970 fi
8971 fi
8972 chmod u+w . 2>&5
8973 $RM conftest*
8974 # SGI C++ compiler will create directory out/ii_files/ for
8975 # template instantiation
8976 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8977 $RM out/* && rmdir out
8978 cd ..
8979 $RM -r conftest
8980 $RM conftest*
8981
8982fi
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8984$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8985
8986
8987
8988
8989
8990
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8992$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008993if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008994 $as_echo_n "(cached) " >&6
8995else
8996 lt_cv_prog_compiler_c_o=no
8997 $RM -r conftest 2>/dev/null
8998 mkdir conftest
8999 cd conftest
9000 mkdir out
9001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9002
9003 lt_compiler_flag="-o out/conftest2.$ac_objext"
9004 # Insert the option either (1) after the last *FLAGS variable, or
9005 # (2) before a word containing "conftest.", or (3) at the end.
9006 # Note that $ac_compile itself does not contain backslashes and begins
9007 # with a dollar sign (not a hyphen), so the echo should work correctly.
9008 lt_compile=`echo "$ac_compile" | $SED \
9009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9011 -e 's:$: $lt_compiler_flag:'`
9012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9013 (eval "$lt_compile" 2>out/conftest.err)
9014 ac_status=$?
9015 cat out/conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9018 then
9019 # The compiler can only warn and ignore the option if not recognized
9020 # So say no if there are warnings
9021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9024 lt_cv_prog_compiler_c_o=yes
9025 fi
9026 fi
9027 chmod u+w . 2>&5
9028 $RM conftest*
9029 # SGI C++ compiler will create directory out/ii_files/ for
9030 # template instantiation
9031 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9032 $RM out/* && rmdir out
9033 cd ..
9034 $RM -r conftest
9035 $RM conftest*
9036
9037fi
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9039$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9040
9041
9042
9043
9044hard_links="nottested"
9045if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9046 # do not overwrite the value of need_locks provided by the user
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9048$as_echo_n "checking if we can lock with hard links... " >&6; }
9049 hard_links=yes
9050 $RM conftest*
9051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9052 touch conftest.a
9053 ln conftest.a conftest.b 2>&5 || hard_links=no
9054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9056$as_echo "$hard_links" >&6; }
9057 if test "$hard_links" = no; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9059$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9060 need_locks=warn
9061 fi
9062else
9063 need_locks=no
9064fi
9065
9066
9067
9068
9069
9070
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9072$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9073
9074 runpath_var=
9075 allow_undefined_flag=
9076 always_export_symbols=no
9077 archive_cmds=
9078 archive_expsym_cmds=
9079 compiler_needs_object=no
9080 enable_shared_with_static_runtimes=no
9081 export_dynamic_flag_spec=
9082 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9083 hardcode_automatic=no
9084 hardcode_direct=no
9085 hardcode_direct_absolute=no
9086 hardcode_libdir_flag_spec=
9087 hardcode_libdir_flag_spec_ld=
9088 hardcode_libdir_separator=
9089 hardcode_minus_L=no
9090 hardcode_shlibpath_var=unsupported
9091 inherit_rpath=no
9092 link_all_deplibs=unknown
9093 module_cmds=
9094 module_expsym_cmds=
9095 old_archive_from_new_cmds=
9096 old_archive_from_expsyms_cmds=
9097 thread_safe_flag_spec=
9098 whole_archive_flag_spec=
9099 # include_expsyms should be a list of space-separated symbols to be *always*
9100 # included in the symbol list
9101 include_expsyms=
9102 # exclude_expsyms can be an extended regexp of symbols to exclude
9103 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9104 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9105 # as well as any symbol that contains `d'.
9106 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9107 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9108 # platforms (ab)use it in PIC code, but their linkers get confused if
9109 # the symbol is explicitly referenced. Since portable code cannot
9110 # rely on this symbol name, it's probably fine to never include it in
9111 # preloaded symbol tables.
9112 # Exclude shared library initialization/finalization symbols.
9113 extract_expsyms_cmds=
9114
9115 case $host_os in
9116 cygwin* | mingw* | pw32* | cegcc*)
9117 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9118 # When not using gcc, we currently assume that we are using
9119 # Microsoft Visual C++.
9120 if test "$GCC" != yes; then
9121 with_gnu_ld=no
9122 fi
9123 ;;
9124 interix*)
9125 # we just hope/assume this is gcc and not c89 (= MSVC++)
9126 with_gnu_ld=yes
9127 ;;
9128 openbsd*)
9129 with_gnu_ld=no
9130 ;;
9131 esac
9132
9133 ld_shlibs=yes
9134
9135 # On some targets, GNU ld is compatible enough with the native linker
9136 # that we're better off using the native interface for both.
9137 lt_use_gnu_ld_interface=no
9138 if test "$with_gnu_ld" = yes; then
9139 case $host_os in
9140 aix*)
9141 # The AIX port of GNU ld has always aspired to compatibility
9142 # with the native linker. However, as the warning in the GNU ld
9143 # block says, versions before 2.19.5* couldn't really create working
9144 # shared libraries, regardless of the interface used.
9145 case `$LD -v 2>&1` in
9146 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9147 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9148 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9149 *)
9150 lt_use_gnu_ld_interface=yes
9151 ;;
9152 esac
9153 ;;
9154 *)
9155 lt_use_gnu_ld_interface=yes
9156 ;;
9157 esac
9158 fi
9159
9160 if test "$lt_use_gnu_ld_interface" = yes; then
9161 # If archive_cmds runs LD, not CC, wlarc should be empty
9162 wlarc='${wl}'
9163
9164 # Set some defaults for GNU ld with shared library support. These
9165 # are reset later if shared libraries are not supported. Putting them
9166 # here allows them to be overridden if necessary.
9167 runpath_var=LD_RUN_PATH
9168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9169 export_dynamic_flag_spec='${wl}--export-dynamic'
9170 # ancient GNU ld didn't support --whole-archive et. al.
9171 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9172 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9173 else
9174 whole_archive_flag_spec=
9175 fi
9176 supports_anon_versioning=no
9177 case `$LD -v 2>&1` in
9178 *GNU\ gold*) supports_anon_versioning=yes ;;
9179 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9180 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9181 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9182 *\ 2.11.*) ;; # other 2.11 versions
9183 *) supports_anon_versioning=yes ;;
9184 esac
9185
9186 # See if GNU ld supports shared libraries.
9187 case $host_os in
9188 aix[3-9]*)
9189 # On AIX/PPC, the GNU linker is very broken
9190 if test "$host_cpu" != ia64; then
9191 ld_shlibs=no
9192 cat <<_LT_EOF 1>&2
9193
9194*** Warning: the GNU linker, at least up to release 2.19, is reported
9195*** to be unable to reliably create shared libraries on AIX.
9196*** Therefore, libtool is disabling shared libraries support. If you
9197*** really care for shared libraries, you may want to install binutils
9198*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9199*** You will then need to restart the configuration process.
9200
9201_LT_EOF
9202 fi
9203 ;;
9204
9205 amigaos*)
9206 case $host_cpu in
9207 powerpc)
9208 # see comment about AmigaOS4 .so support
9209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9210 archive_expsym_cmds=''
9211 ;;
9212 m68k)
9213 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)'
9214 hardcode_libdir_flag_spec='-L$libdir'
9215 hardcode_minus_L=yes
9216 ;;
9217 esac
9218 ;;
9219
9220 beos*)
9221 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9222 allow_undefined_flag=unsupported
9223 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9224 # support --undefined. This deserves some investigation. FIXME
9225 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226 else
9227 ld_shlibs=no
9228 fi
9229 ;;
9230
9231 cygwin* | mingw* | pw32* | cegcc*)
9232 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9233 # as there is no search path for DLLs.
9234 hardcode_libdir_flag_spec='-L$libdir'
9235 export_dynamic_flag_spec='${wl}--export-all-symbols'
9236 allow_undefined_flag=unsupported
9237 always_export_symbols=no
9238 enable_shared_with_static_runtimes=yes
9239 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9240
9241 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9243 # If the export-symbols file already is a .def file (1st line
9244 # is EXPORTS), use it as is; otherwise, prepend...
9245 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9246 cp $export_symbols $output_objdir/$soname.def;
9247 else
9248 echo EXPORTS > $output_objdir/$soname.def;
9249 cat $export_symbols >> $output_objdir/$soname.def;
9250 fi~
9251 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9252 else
9253 ld_shlibs=no
9254 fi
9255 ;;
9256
9257 haiku*)
9258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259 link_all_deplibs=yes
9260 ;;
9261
9262 interix[3-9]*)
9263 hardcode_direct=no
9264 hardcode_shlibpath_var=no
9265 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9266 export_dynamic_flag_spec='${wl}-E'
9267 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9268 # Instead, shared libraries are loaded at an image base (0x10000000 by
9269 # default) and relocated if they conflict, which is a slow very memory
9270 # consuming and fragmenting process. To avoid this, we pick a random,
9271 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9272 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9273 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9274 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'
9275 ;;
9276
9277 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9278 tmp_diet=no
9279 if test "$host_os" = linux-dietlibc; then
9280 case $cc_basename in
9281 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9282 esac
9283 fi
9284 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9285 && test "$tmp_diet" = no
9286 then
9287 tmp_addflag=' $pic_flag'
9288 tmp_sharedflag='-shared'
9289 case $cc_basename,$host_cpu in
9290 pgcc*) # Portland Group C compiler
9291 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'
9292 tmp_addflag=' $pic_flag'
9293 ;;
9294 pgf77* | pgf90* | pgf95* | pgfortran*)
9295 # Portland Group f77 and f90 compilers
9296 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'
9297 tmp_addflag=' $pic_flag -Mnomain' ;;
9298 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9299 tmp_addflag=' -i_dynamic' ;;
9300 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9301 tmp_addflag=' -i_dynamic -nofor_main' ;;
9302 ifc* | ifort*) # Intel Fortran compiler
9303 tmp_addflag=' -nofor_main' ;;
9304 lf95*) # Lahey Fortran 8.1
9305 whole_archive_flag_spec=
9306 tmp_sharedflag='--shared' ;;
9307 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9308 tmp_sharedflag='-qmkshrobj'
9309 tmp_addflag= ;;
9310 nvcc*) # Cuda Compiler Driver 2.2
9311 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'
9312 compiler_needs_object=yes
9313 ;;
9314 esac
9315 case `$CC -V 2>&1 | sed 5q` in
9316 *Sun\ C*) # Sun C 5.9
9317 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'
9318 compiler_needs_object=yes
9319 tmp_sharedflag='-G' ;;
9320 *Sun\ F*) # Sun Fortran 8.3
9321 tmp_sharedflag='-G' ;;
9322 esac
9323 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324
9325 if test "x$supports_anon_versioning" = xyes; then
9326 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9328 echo "local: *; };" >> $output_objdir/$libname.ver~
9329 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9330 fi
9331
9332 case $cc_basename in
9333 xlf* | bgf* | bgxlf* | mpixlf*)
9334 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9335 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9336 hardcode_libdir_flag_spec=
9337 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9338 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9339 if test "x$supports_anon_versioning" = xyes; then
9340 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9342 echo "local: *; };" >> $output_objdir/$libname.ver~
9343 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9344 fi
9345 ;;
9346 esac
9347 else
9348 ld_shlibs=no
9349 fi
9350 ;;
9351
9352 netbsd*)
9353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9354 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9355 wlarc=
9356 else
9357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9359 fi
9360 ;;
9361
9362 solaris*)
9363 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9364 ld_shlibs=no
9365 cat <<_LT_EOF 1>&2
9366
9367*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9368*** create shared libraries on Solaris systems. Therefore, libtool
9369*** is disabling shared libraries support. We urge you to upgrade GNU
9370*** binutils to release 2.9.1 or newer. Another option is to modify
9371*** your PATH or compiler configuration so that the native linker is
9372*** used, and then restart.
9373
9374_LT_EOF
9375 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9377 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9378 else
9379 ld_shlibs=no
9380 fi
9381 ;;
9382
9383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9384 case `$LD -v 2>&1` in
9385 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9386 ld_shlibs=no
9387 cat <<_LT_EOF 1>&2
9388
9389*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9390*** reliably create shared libraries on SCO systems. Therefore, libtool
9391*** is disabling shared libraries support. We urge you to upgrade GNU
9392*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9393*** your PATH or compiler configuration so that the native linker is
9394*** used, and then restart.
9395
9396_LT_EOF
9397 ;;
9398 *)
9399 # For security reasons, it is highly recommended that you always
9400 # use absolute paths for naming shared libraries, and exclude the
9401 # DT_RUNPATH tag from executables and libraries. But doing so
9402 # requires that you compile everything twice, which is a pain.
9403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9406 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9407 else
9408 ld_shlibs=no
9409 fi
9410 ;;
9411 esac
9412 ;;
9413
9414 sunos4*)
9415 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9416 wlarc=
9417 hardcode_direct=yes
9418 hardcode_shlibpath_var=no
9419 ;;
9420
9421 *)
9422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9425 else
9426 ld_shlibs=no
9427 fi
9428 ;;
9429 esac
9430
9431 if test "$ld_shlibs" = no; then
9432 runpath_var=
9433 hardcode_libdir_flag_spec=
9434 export_dynamic_flag_spec=
9435 whole_archive_flag_spec=
9436 fi
9437 else
9438 # PORTME fill in a description of your system's linker (not GNU ld)
9439 case $host_os in
9440 aix3*)
9441 allow_undefined_flag=unsupported
9442 always_export_symbols=yes
9443 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'
9444 # Note: this linker hardcodes the directories in LIBPATH if there
9445 # are no directories specified by -L.
9446 hardcode_minus_L=yes
9447 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9448 # Neither direct hardcoding nor static linking is supported with a
9449 # broken collect2.
9450 hardcode_direct=unsupported
9451 fi
9452 ;;
9453
9454 aix[4-9]*)
9455 if test "$host_cpu" = ia64; then
9456 # On IA64, the linker does run time linking by default, so we don't
9457 # have to do anything special.
9458 aix_use_runtimelinking=no
9459 exp_sym_flag='-Bexport'
9460 no_entry_flag=""
9461 else
9462 # If we're using GNU nm, then we don't want the "-C" option.
9463 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9464 # Also, AIX nm treats weak defined symbols like other global
9465 # defined symbols, whereas GNU nm marks them as "W".
9466 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9467 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'
9468 else
9469 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'
9470 fi
9471 aix_use_runtimelinking=no
9472
9473 # Test if we are trying to use run time linking or normal
9474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9475 # need to do runtime linking.
9476 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9477 for ld_flag in $LDFLAGS; do
9478 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9479 aix_use_runtimelinking=yes
9480 break
9481 fi
9482 done
9483 ;;
9484 esac
9485
9486 exp_sym_flag='-bexport'
9487 no_entry_flag='-bnoentry'
9488 fi
9489
9490 # When large executables or shared objects are built, AIX ld can
9491 # have problems creating the table of contents. If linking a library
9492 # or program results in "error TOC overflow" add -mminimal-toc to
9493 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9494 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9495
9496 archive_cmds=''
9497 hardcode_direct=yes
9498 hardcode_direct_absolute=yes
9499 hardcode_libdir_separator=':'
9500 link_all_deplibs=yes
9501 file_list_spec='${wl}-f,'
9502
9503 if test "$GCC" = yes; then
9504 case $host_os in aix4.[012]|aix4.[012].*)
9505 # We only want to do this on AIX 4.2 and lower, the check
9506 # below for broken collect2 doesn't work under 4.3+
9507 collect2name=`${CC} -print-prog-name=collect2`
9508 if test -f "$collect2name" &&
9509 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9510 then
9511 # We have reworked collect2
9512 :
9513 else
9514 # We have old collect2
9515 hardcode_direct=unsupported
9516 # It fails to find uninstalled libraries when the uninstalled
9517 # path is not listed in the libpath. Setting hardcode_minus_L
9518 # to unsupported forces relinking
9519 hardcode_minus_L=yes
9520 hardcode_libdir_flag_spec='-L$libdir'
9521 hardcode_libdir_separator=
9522 fi
9523 ;;
9524 esac
9525 shared_flag='-shared'
9526 if test "$aix_use_runtimelinking" = yes; then
9527 shared_flag="$shared_flag "'${wl}-G'
9528 fi
9529 else
9530 # not using gcc
9531 if test "$host_cpu" = ia64; then
9532 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9533 # chokes on -Wl,-G. The following line is correct:
9534 shared_flag='-G'
9535 else
9536 if test "$aix_use_runtimelinking" = yes; then
9537 shared_flag='${wl}-G'
9538 else
9539 shared_flag='${wl}-bM:SRE'
9540 fi
9541 fi
9542 fi
9543
9544 export_dynamic_flag_spec='${wl}-bexpall'
9545 # It seems that -bexpall does not export symbols beginning with
9546 # underscore (_), so it is better to generate a list of symbols to export.
9547 always_export_symbols=yes
9548 if test "$aix_use_runtimelinking" = yes; then
9549 # Warning - without using the other runtime loading flags (-brtl),
9550 # -berok will link without error, but may produce a broken library.
9551 allow_undefined_flag='-berok'
9552 # Determine the default libpath from the value encoded in an
9553 # empty executable.
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555/* end confdefs.h. */
9556
9557int
9558main ()
9559{
9560
9561 ;
9562 return 0;
9563}
9564_ACEOF
9565if ac_fn_c_try_link "$LINENO"; then :
9566
9567lt_aix_libpath_sed='
9568 /Import File Strings/,/^$/ {
9569 /^0/ {
9570 s/^0 *\(.*\)$/\1/
9571 p
9572 }
9573 }'
9574aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9575# Check for a 64-bit object if we didn't find anything.
9576if test -z "$aix_libpath"; then
9577 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9578fi
9579fi
9580rm -f core conftest.err conftest.$ac_objext \
9581 conftest$ac_exeext conftest.$ac_ext
9582if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9583
9584 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9585 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"
9586 else
9587 if test "$host_cpu" = ia64; then
9588 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9589 allow_undefined_flag="-z nodefs"
9590 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"
9591 else
9592 # Determine the default libpath from the value encoded in an
9593 # empty executable.
9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595/* end confdefs.h. */
9596
9597int
9598main ()
9599{
9600
9601 ;
9602 return 0;
9603}
9604_ACEOF
9605if ac_fn_c_try_link "$LINENO"; then :
9606
9607lt_aix_libpath_sed='
9608 /Import File Strings/,/^$/ {
9609 /^0/ {
9610 s/^0 *\(.*\)$/\1/
9611 p
9612 }
9613 }'
9614aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9615# Check for a 64-bit object if we didn't find anything.
9616if test -z "$aix_libpath"; then
9617 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618fi
9619fi
9620rm -f core conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext conftest.$ac_ext
9622if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9623
9624 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9625 # Warning - without using the other run time loading flags,
9626 # -berok will link without error, but may produce a broken library.
9627 no_undefined_flag=' ${wl}-bernotok'
9628 allow_undefined_flag=' ${wl}-berok'
9629 if test "$with_gnu_ld" = yes; then
9630 # We only use this code for GNU lds that support --whole-archive.
9631 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9632 else
9633 # Exported symbols can be pulled into shared objects from archives
9634 whole_archive_flag_spec='$convenience'
9635 fi
9636 archive_cmds_need_lc=yes
9637 # This is similar to how AIX traditionally builds its shared libraries.
9638 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'
9639 fi
9640 fi
9641 ;;
9642
9643 amigaos*)
9644 case $host_cpu in
9645 powerpc)
9646 # see comment about AmigaOS4 .so support
9647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648 archive_expsym_cmds=''
9649 ;;
9650 m68k)
9651 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)'
9652 hardcode_libdir_flag_spec='-L$libdir'
9653 hardcode_minus_L=yes
9654 ;;
9655 esac
9656 ;;
9657
9658 bsdi[45]*)
9659 export_dynamic_flag_spec=-rdynamic
9660 ;;
9661
9662 cygwin* | mingw* | pw32* | cegcc*)
9663 # When not using gcc, we currently assume that we are using
9664 # Microsoft Visual C++.
9665 # hardcode_libdir_flag_spec is actually meaningless, as there is
9666 # no search path for DLLs.
9667 hardcode_libdir_flag_spec=' '
9668 allow_undefined_flag=unsupported
9669 # Tell ltmain to make .lib files, not .a files.
9670 libext=lib
9671 # Tell ltmain to make .dll files, not .so files.
9672 shrext_cmds=".dll"
9673 # FIXME: Setting linknames here is a bad hack.
9674 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9675 # The linker will automatically build a .lib file if we build a DLL.
9676 old_archive_from_new_cmds='true'
9677 # FIXME: Should let the user specify the lib program.
9678 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9679 fix_srcfile_path='`cygpath -w "$srcfile"`'
9680 enable_shared_with_static_runtimes=yes
9681 ;;
9682
9683 darwin* | rhapsody*)
9684
9685
9686 archive_cmds_need_lc=no
9687 hardcode_direct=no
9688 hardcode_automatic=yes
9689 hardcode_shlibpath_var=unsupported
9690 if test "$lt_cv_ld_force_load" = "yes"; then
9691 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\"`'
9692 else
9693 whole_archive_flag_spec=''
9694 fi
9695 link_all_deplibs=yes
9696 allow_undefined_flag="$_lt_dar_allow_undefined"
9697 case $cc_basename in
9698 ifort*) _lt_dar_can_shared=yes ;;
9699 *) _lt_dar_can_shared=$GCC ;;
9700 esac
9701 if test "$_lt_dar_can_shared" = "yes"; then
9702 output_verbose_link_cmd=func_echo_all
9703 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9704 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9705 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}"
9706 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}"
9707
9708 else
9709 ld_shlibs=no
9710 fi
9711
9712 ;;
9713
9714 dgux*)
9715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_libdir_flag_spec='-L$libdir'
9717 hardcode_shlibpath_var=no
9718 ;;
9719
9720 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9721 # support. Future versions do this automatically, but an explicit c++rt0.o
9722 # does not break anything, and helps significantly (at the cost of a little
9723 # extra space).
9724 freebsd2.2*)
9725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9726 hardcode_libdir_flag_spec='-R$libdir'
9727 hardcode_direct=yes
9728 hardcode_shlibpath_var=no
9729 ;;
9730
9731 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9732 freebsd2.*)
9733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_direct=yes
9735 hardcode_minus_L=yes
9736 hardcode_shlibpath_var=no
9737 ;;
9738
9739 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9740 freebsd* | dragonfly*)
9741 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9742 hardcode_libdir_flag_spec='-R$libdir'
9743 hardcode_direct=yes
9744 hardcode_shlibpath_var=no
9745 ;;
9746
9747 hpux9*)
9748 if test "$GCC" = yes; then
9749 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'
9750 else
9751 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'
9752 fi
9753 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9754 hardcode_libdir_separator=:
9755 hardcode_direct=yes
9756
9757 # hardcode_minus_L: Not really in the search PATH,
9758 # but as the default location of the library.
9759 hardcode_minus_L=yes
9760 export_dynamic_flag_spec='${wl}-E'
9761 ;;
9762
9763 hpux10*)
9764 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9765 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9766 else
9767 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9768 fi
9769 if test "$with_gnu_ld" = no; then
9770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9771 hardcode_libdir_flag_spec_ld='+b $libdir'
9772 hardcode_libdir_separator=:
9773 hardcode_direct=yes
9774 hardcode_direct_absolute=yes
9775 export_dynamic_flag_spec='${wl}-E'
9776 # hardcode_minus_L: Not really in the search PATH,
9777 # but as the default location of the library.
9778 hardcode_minus_L=yes
9779 fi
9780 ;;
9781
9782 hpux11*)
9783 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9784 case $host_cpu in
9785 hppa*64*)
9786 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9787 ;;
9788 ia64*)
9789 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9790 ;;
9791 *)
9792 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9793 ;;
9794 esac
9795 else
9796 case $host_cpu in
9797 hppa*64*)
9798 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9799 ;;
9800 ia64*)
9801 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9802 ;;
9803 *)
9804
9805 # Older versions of the 11.00 compiler do not understand -b yet
9806 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9808$as_echo_n "checking if $CC understands -b... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009809if ${lt_cv_prog_compiler__b+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009810 $as_echo_n "(cached) " >&6
9811else
9812 lt_cv_prog_compiler__b=no
9813 save_LDFLAGS="$LDFLAGS"
9814 LDFLAGS="$LDFLAGS -b"
9815 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9816 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9817 # The linker can only warn and ignore the option if not recognized
9818 # So say no if there are warnings
9819 if test -s conftest.err; then
9820 # Append any errors to the config.log.
9821 cat conftest.err 1>&5
9822 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9824 if diff conftest.exp conftest.er2 >/dev/null; then
9825 lt_cv_prog_compiler__b=yes
9826 fi
9827 else
9828 lt_cv_prog_compiler__b=yes
9829 fi
9830 fi
9831 $RM -r conftest*
9832 LDFLAGS="$save_LDFLAGS"
9833
9834fi
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9836$as_echo "$lt_cv_prog_compiler__b" >&6; }
9837
9838if test x"$lt_cv_prog_compiler__b" = xyes; then
9839 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9840else
9841 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9842fi
9843
9844 ;;
9845 esac
9846 fi
9847 if test "$with_gnu_ld" = no; then
9848 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9849 hardcode_libdir_separator=:
9850
9851 case $host_cpu in
9852 hppa*64*|ia64*)
9853 hardcode_direct=no
9854 hardcode_shlibpath_var=no
9855 ;;
9856 *)
9857 hardcode_direct=yes
9858 hardcode_direct_absolute=yes
9859 export_dynamic_flag_spec='${wl}-E'
9860
9861 # hardcode_minus_L: Not really in the search PATH,
9862 # but as the default location of the library.
9863 hardcode_minus_L=yes
9864 ;;
9865 esac
9866 fi
9867 ;;
9868
9869 irix5* | irix6* | nonstopux*)
9870 if test "$GCC" = yes; then
9871 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'
9872 # Try to use the -exported_symbol ld option, if it does not
9873 # work, assume that -exports_file does not work either and
9874 # implicitly export all symbols.
9875 save_LDFLAGS="$LDFLAGS"
9876 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878/* end confdefs.h. */
9879int foo(void) {}
9880_ACEOF
9881if ac_fn_c_try_link "$LINENO"; then :
9882 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'
9883
9884fi
9885rm -f core conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9887 LDFLAGS="$save_LDFLAGS"
9888 else
9889 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'
9890 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'
9891 fi
9892 archive_cmds_need_lc='no'
9893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9894 hardcode_libdir_separator=:
9895 inherit_rpath=yes
9896 link_all_deplibs=yes
9897 ;;
9898
9899 netbsd*)
9900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9902 else
9903 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9904 fi
9905 hardcode_libdir_flag_spec='-R$libdir'
9906 hardcode_direct=yes
9907 hardcode_shlibpath_var=no
9908 ;;
9909
9910 newsos6)
9911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9912 hardcode_direct=yes
9913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9914 hardcode_libdir_separator=:
9915 hardcode_shlibpath_var=no
9916 ;;
9917
9918 *nto* | *qnx*)
9919 ;;
9920
9921 openbsd*)
9922 if test -f /usr/libexec/ld.so; then
9923 hardcode_direct=yes
9924 hardcode_shlibpath_var=no
9925 hardcode_direct_absolute=yes
9926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9928 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9929 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9930 export_dynamic_flag_spec='${wl}-E'
9931 else
9932 case $host_os in
9933 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9935 hardcode_libdir_flag_spec='-R$libdir'
9936 ;;
9937 *)
9938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9939 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9940 ;;
9941 esac
9942 fi
9943 else
9944 ld_shlibs=no
9945 fi
9946 ;;
9947
9948 os2*)
9949 hardcode_libdir_flag_spec='-L$libdir'
9950 hardcode_minus_L=yes
9951 allow_undefined_flag=unsupported
9952 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'
9953 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9954 ;;
9955
9956 osf3*)
9957 if test "$GCC" = yes; then
9958 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9959 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'
9960 else
9961 allow_undefined_flag=' -expect_unresolved \*'
9962 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'
9963 fi
9964 archive_cmds_need_lc='no'
9965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9966 hardcode_libdir_separator=:
9967 ;;
9968
9969 osf4* | osf5*) # as osf3* with the addition of -msym flag
9970 if test "$GCC" = yes; then
9971 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9972 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'
9973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9974 else
9975 allow_undefined_flag=' -expect_unresolved \*'
9976 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'
9977 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~
9978 $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'
9979
9980 # Both c and cxx compiler support -rpath directly
9981 hardcode_libdir_flag_spec='-rpath $libdir'
9982 fi
9983 archive_cmds_need_lc='no'
9984 hardcode_libdir_separator=:
9985 ;;
9986
9987 solaris*)
9988 no_undefined_flag=' -z defs'
9989 if test "$GCC" = yes; then
9990 wlarc='${wl}'
9991 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9992 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9993 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9994 else
9995 case `$CC -V 2>&1` in
9996 *"Compilers 5.0"*)
9997 wlarc=''
9998 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10000 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10001 ;;
10002 *)
10003 wlarc='${wl}'
10004 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10005 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10006 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10007 ;;
10008 esac
10009 fi
10010 hardcode_libdir_flag_spec='-R$libdir'
10011 hardcode_shlibpath_var=no
10012 case $host_os in
10013 solaris2.[0-5] | solaris2.[0-5].*) ;;
10014 *)
10015 # The compiler driver will combine and reorder linker options,
10016 # but understands `-z linker_flag'. GCC discards it without `$wl',
10017 # but is careful enough not to reorder.
10018 # Supported since Solaris 2.6 (maybe 2.5.1?)
10019 if test "$GCC" = yes; then
10020 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10021 else
10022 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10023 fi
10024 ;;
10025 esac
10026 link_all_deplibs=yes
10027 ;;
10028
10029 sunos4*)
10030 if test "x$host_vendor" = xsequent; then
10031 # Use $CC to link under sequent, because it throws in some extra .o
10032 # files that make .init and .fini sections work.
10033 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10034 else
10035 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10036 fi
10037 hardcode_libdir_flag_spec='-L$libdir'
10038 hardcode_direct=yes
10039 hardcode_minus_L=yes
10040 hardcode_shlibpath_var=no
10041 ;;
10042
10043 sysv4)
10044 case $host_vendor in
10045 sni)
10046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047 hardcode_direct=yes # is this really true???
10048 ;;
10049 siemens)
10050 ## LD is ld it makes a PLAMLIB
10051 ## CC just makes a GrossModule.
10052 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10053 reload_cmds='$CC -r -o $output$reload_objs'
10054 hardcode_direct=no
10055 ;;
10056 motorola)
10057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10059 ;;
10060 esac
10061 runpath_var='LD_RUN_PATH'
10062 hardcode_shlibpath_var=no
10063 ;;
10064
10065 sysv4.3*)
10066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10067 hardcode_shlibpath_var=no
10068 export_dynamic_flag_spec='-Bexport'
10069 ;;
10070
10071 sysv4*MP*)
10072 if test -d /usr/nec; then
10073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 hardcode_shlibpath_var=no
10075 runpath_var=LD_RUN_PATH
10076 hardcode_runpath_var=yes
10077 ld_shlibs=yes
10078 fi
10079 ;;
10080
10081 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10082 no_undefined_flag='${wl}-z,text'
10083 archive_cmds_need_lc=no
10084 hardcode_shlibpath_var=no
10085 runpath_var='LD_RUN_PATH'
10086
10087 if test "$GCC" = yes; then
10088 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 else
10091 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 fi
10094 ;;
10095
10096 sysv5* | sco3.2v5* | sco5v6*)
10097 # Note: We can NOT use -z defs as we might desire, because we do not
10098 # link with -lc, and that would cause any symbols used from libc to
10099 # always be unresolved, which means just about no library would
10100 # ever link correctly. If we're not using GNU ld we use -z text
10101 # though, which does catch some bad symbols but isn't as heavy-handed
10102 # as -z defs.
10103 no_undefined_flag='${wl}-z,text'
10104 allow_undefined_flag='${wl}-z,nodefs'
10105 archive_cmds_need_lc=no
10106 hardcode_shlibpath_var=no
10107 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10108 hardcode_libdir_separator=':'
10109 link_all_deplibs=yes
10110 export_dynamic_flag_spec='${wl}-Bexport'
10111 runpath_var='LD_RUN_PATH'
10112
10113 if test "$GCC" = yes; then
10114 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 else
10117 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 fi
10120 ;;
10121
10122 uts4*)
10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124 hardcode_libdir_flag_spec='-L$libdir'
10125 hardcode_shlibpath_var=no
10126 ;;
10127
10128 *)
10129 ld_shlibs=no
10130 ;;
10131 esac
10132
10133 if test x$host_vendor = xsni; then
10134 case $host in
10135 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10136 export_dynamic_flag_spec='${wl}-Blargedynsym'
10137 ;;
10138 esac
10139 fi
10140 fi
10141
10142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10143$as_echo "$ld_shlibs" >&6; }
10144test "$ld_shlibs" = no && can_build_shared=no
10145
10146with_gnu_ld=$with_gnu_ld
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162#
10163# Do we need to explicitly link libc?
10164#
10165case "x$archive_cmds_need_lc" in
10166x|xyes)
10167 # Assume -lc should be added
10168 archive_cmds_need_lc=yes
10169
10170 if test "$enable_shared" = yes && test "$GCC" = yes; then
10171 case $archive_cmds in
10172 *'~'*)
10173 # FIXME: we may have to deal with multi-command sequences.
10174 ;;
10175 '$CC '*)
10176 # Test whether the compiler implicitly links with -lc since on some
10177 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10178 # to ld, don't add -lc before -lgcc.
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10180$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000010181if ${lt_cv_archive_cmds_need_lc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010182 $as_echo_n "(cached) " >&6
10183else
10184 $RM conftest*
10185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10186
10187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10188 (eval $ac_compile) 2>&5
10189 ac_status=$?
10190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10191 test $ac_status = 0; } 2>conftest.err; then
10192 soname=conftest
10193 lib=conftest
10194 libobjs=conftest.$ac_objext
10195 deplibs=
10196 wl=$lt_prog_compiler_wl
10197 pic_flag=$lt_prog_compiler_pic
10198 compiler_flags=-v
10199 linker_flags=-v
10200 verstring=
10201 output_objdir=.
10202 libname=conftest
10203 lt_save_allow_undefined_flag=$allow_undefined_flag
10204 allow_undefined_flag=
10205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10206 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10207 ac_status=$?
10208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10209 test $ac_status = 0; }
10210 then
10211 lt_cv_archive_cmds_need_lc=no
10212 else
10213 lt_cv_archive_cmds_need_lc=yes
10214 fi
10215 allow_undefined_flag=$lt_save_allow_undefined_flag
10216 else
10217 cat conftest.err 1>&5
10218 fi
10219 $RM conftest*
10220
10221fi
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10223$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10224 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10225 ;;
10226 esac
10227 fi
10228 ;;
10229esac
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10388$as_echo_n "checking dynamic linker characteristics... " >&6; }
10389
10390if test "$GCC" = yes; then
10391 case $host_os in
10392 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10393 *) lt_awk_arg="/^libraries:/" ;;
10394 esac
10395 case $host_os in
10396 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10397 *) lt_sed_strip_eq="s,=/,/,g" ;;
10398 esac
10399 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10400 case $lt_search_path_spec in
10401 *\;*)
10402 # if the path contains ";" then we assume it to be the separator
10403 # otherwise default to the standard path separator (i.e. ":") - it is
10404 # assumed that no part of a normal pathname contains ";" but that should
10405 # okay in the real world where ";" in dirpaths is itself problematic.
10406 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10407 ;;
10408 *)
10409 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10410 ;;
10411 esac
10412 # Ok, now we have the path, separated by spaces, we can step through it
10413 # and add multilib dir if necessary.
10414 lt_tmp_lt_search_path_spec=
10415 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10416 for lt_sys_path in $lt_search_path_spec; do
10417 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10418 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10419 else
10420 test -d "$lt_sys_path" && \
10421 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10422 fi
10423 done
10424 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10425BEGIN {RS=" "; FS="/|\n";} {
10426 lt_foo="";
10427 lt_count=0;
10428 for (lt_i = NF; lt_i > 0; lt_i--) {
10429 if ($lt_i != "" && $lt_i != ".") {
10430 if ($lt_i == "..") {
10431 lt_count++;
10432 } else {
10433 if (lt_count == 0) {
10434 lt_foo="/" $lt_i lt_foo;
10435 } else {
10436 lt_count--;
10437 }
10438 }
10439 }
10440 }
10441 if (lt_foo != "") { lt_freq[lt_foo]++; }
10442 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10443}'`
10444 # AWK program above erroneously prepends '/' to C:/dos/paths
10445 # for these hosts.
10446 case $host_os in
10447 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10448 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10449 esac
10450 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10451else
10452 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10453fi
10454library_names_spec=
10455libname_spec='lib$name'
10456soname_spec=
10457shrext_cmds=".so"
10458postinstall_cmds=
10459postuninstall_cmds=
10460finish_cmds=
10461finish_eval=
10462shlibpath_var=
10463shlibpath_overrides_runpath=unknown
10464version_type=none
10465dynamic_linker="$host_os ld.so"
10466sys_lib_dlsearch_path_spec="/lib /usr/lib"
10467need_lib_prefix=unknown
10468hardcode_into_libs=no
10469
10470# when you set need_version to no, make sure it does not cause -set_version
10471# flags to be left without arguments
10472need_version=unknown
10473
10474case $host_os in
10475aix3*)
10476 version_type=linux
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10478 shlibpath_var=LIBPATH
10479
10480 # AIX 3 has no versioning support, so we append a major version to the name.
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 ;;
10483
10484aix[4-9]*)
10485 version_type=linux
10486 need_lib_prefix=no
10487 need_version=no
10488 hardcode_into_libs=yes
10489 if test "$host_cpu" = ia64; then
10490 # AIX 5 supports IA64
10491 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 else
10494 # With GCC up to 2.95.x, collect2 would create an import file
10495 # for dependence libraries. The import file would start with
10496 # the line `#! .'. This would cause the generated library to
10497 # depend on `.', always an invalid library. This was fixed in
10498 # development snapshots of GCC prior to 3.0.
10499 case $host_os in
10500 aix4 | aix4.[01] | aix4.[01].*)
10501 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10502 echo ' yes '
10503 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10504 :
10505 else
10506 can_build_shared=no
10507 fi
10508 ;;
10509 esac
10510 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10511 # soname into executable. Probably we can add versioning support to
10512 # collect2, so additional links can be useful in future.
10513 if test "$aix_use_runtimelinking" = yes; then
10514 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10515 # instead of lib<name>.a to let people know that these are not
10516 # typical AIX shared libraries.
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 else
10519 # We preserve .a as extension for shared libraries through AIX4.2
10520 # and later when we are not doing run time linking.
10521 library_names_spec='${libname}${release}.a $libname.a'
10522 soname_spec='${libname}${release}${shared_ext}$major'
10523 fi
10524 shlibpath_var=LIBPATH
10525 fi
10526 ;;
10527
10528amigaos*)
10529 case $host_cpu in
10530 powerpc)
10531 # Since July 2007 AmigaOS4 officially supports .so libraries.
10532 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 ;;
10535 m68k)
10536 library_names_spec='$libname.ixlibrary $libname.a'
10537 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10538 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'
10539 ;;
10540 esac
10541 ;;
10542
10543beos*)
10544 library_names_spec='${libname}${shared_ext}'
10545 dynamic_linker="$host_os ld.so"
10546 shlibpath_var=LIBRARY_PATH
10547 ;;
10548
10549bsdi[45]*)
10550 version_type=linux
10551 need_version=no
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10557 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10558 # the default ld.so.conf also contains /usr/contrib/lib and
10559 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10560 # libtool to hard-code these into programs
10561 ;;
10562
10563cygwin* | mingw* | pw32* | cegcc*)
10564 version_type=windows
10565 shrext_cmds=".dll"
10566 need_version=no
10567 need_lib_prefix=no
10568
10569 case $GCC,$host_os in
10570 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10571 library_names_spec='$libname.dll.a'
10572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10573 postinstall_cmds='base_file=`basename \${file}`~
10574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10575 dldir=$destdir/`dirname \$dlpath`~
10576 test -d \$dldir || mkdir -p \$dldir~
10577 $install_prog $dir/$dlname \$dldir/$dlname~
10578 chmod a+x \$dldir/$dlname~
10579 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10580 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10581 fi'
10582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10583 dlpath=$dir/\$dldll~
10584 $RM \$dlpath'
10585 shlibpath_overrides_runpath=yes
10586
10587 case $host_os in
10588 cygwin*)
10589 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10590 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10591
10592 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10593 ;;
10594 mingw* | cegcc*)
10595 # MinGW DLLs use traditional 'lib' prefix
10596 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10597 ;;
10598 pw32*)
10599 # pw32 DLLs use 'pw' prefix rather than 'lib'
10600 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10601 ;;
10602 esac
10603 ;;
10604
10605 *)
10606 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10607 ;;
10608 esac
10609 dynamic_linker='Win32 ld.exe'
10610 # FIXME: first we should search . and the directory the executable is in
10611 shlibpath_var=PATH
10612 ;;
10613
10614darwin* | rhapsody*)
10615 dynamic_linker="$host_os dyld"
10616 version_type=darwin
10617 need_lib_prefix=no
10618 need_version=no
10619 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10620 soname_spec='${libname}${release}${major}$shared_ext'
10621 shlibpath_overrides_runpath=yes
10622 shlibpath_var=DYLD_LIBRARY_PATH
10623 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10624
10625 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10626 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10627 ;;
10628
10629dgux*)
10630 version_type=linux
10631 need_lib_prefix=no
10632 need_version=no
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 ;;
10637
10638freebsd* | dragonfly*)
10639 # DragonFly does not have aout. When/if they implement a new
10640 # versioning mechanism, adjust this.
10641 if test -x /usr/bin/objformat; then
10642 objformat=`/usr/bin/objformat`
10643 else
10644 case $host_os in
10645 freebsd[23].*) objformat=aout ;;
10646 *) objformat=elf ;;
10647 esac
10648 fi
10649 version_type=freebsd-$objformat
10650 case $version_type in
10651 freebsd-elf*)
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10653 need_version=no
10654 need_lib_prefix=no
10655 ;;
10656 freebsd-*)
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10658 need_version=yes
10659 ;;
10660 esac
10661 shlibpath_var=LD_LIBRARY_PATH
10662 case $host_os in
10663 freebsd2.*)
10664 shlibpath_overrides_runpath=yes
10665 ;;
10666 freebsd3.[01]* | freebsdelf3.[01]*)
10667 shlibpath_overrides_runpath=yes
10668 hardcode_into_libs=yes
10669 ;;
10670 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10671 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10672 shlibpath_overrides_runpath=no
10673 hardcode_into_libs=yes
10674 ;;
10675 *) # from 4.6 on, and DragonFly
10676 shlibpath_overrides_runpath=yes
10677 hardcode_into_libs=yes
10678 ;;
10679 esac
10680 ;;
10681
10682gnu*)
10683 version_type=linux
10684 need_lib_prefix=no
10685 need_version=no
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 hardcode_into_libs=yes
10690 ;;
10691
10692haiku*)
10693 version_type=linux
10694 need_lib_prefix=no
10695 need_version=no
10696 dynamic_linker="$host_os runtime_loader"
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 shlibpath_var=LIBRARY_PATH
10700 shlibpath_overrides_runpath=yes
10701 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10702 hardcode_into_libs=yes
10703 ;;
10704
10705hpux9* | hpux10* | hpux11*)
10706 # Give a soname corresponding to the major version so that dld.sl refuses to
10707 # link against other versions.
10708 version_type=sunos
10709 need_lib_prefix=no
10710 need_version=no
10711 case $host_cpu in
10712 ia64*)
10713 shrext_cmds='.so'
10714 hardcode_into_libs=yes
10715 dynamic_linker="$host_os dld.so"
10716 shlibpath_var=LD_LIBRARY_PATH
10717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 if test "X$HPUX_IA64_MODE" = X32; then
10721 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10722 else
10723 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10724 fi
10725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10726 ;;
10727 hppa*64*)
10728 shrext_cmds='.sl'
10729 hardcode_into_libs=yes
10730 dynamic_linker="$host_os dld.sl"
10731 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10737 ;;
10738 *)
10739 shrext_cmds='.sl'
10740 dynamic_linker="$host_os dld.sl"
10741 shlibpath_var=SHLIB_PATH
10742 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 ;;
10746 esac
10747 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10748 postinstall_cmds='chmod 555 $lib'
10749 # or fails outright, so override atomically:
10750 install_override_mode=555
10751 ;;
10752
10753interix[3-9]*)
10754 version_type=linux
10755 need_lib_prefix=no
10756 need_version=no
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10760 shlibpath_var=LD_LIBRARY_PATH
10761 shlibpath_overrides_runpath=no
10762 hardcode_into_libs=yes
10763 ;;
10764
10765irix5* | irix6* | nonstopux*)
10766 case $host_os in
10767 nonstopux*) version_type=nonstopux ;;
10768 *)
10769 if test "$lt_cv_prog_gnu_ld" = yes; then
10770 version_type=linux
10771 else
10772 version_type=irix
10773 fi ;;
10774 esac
10775 need_lib_prefix=no
10776 need_version=no
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10779 case $host_os in
10780 irix5* | nonstopux*)
10781 libsuff= shlibsuff=
10782 ;;
10783 *)
10784 case $LD in # libtool.m4 will add one of these switches to LD
10785 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10786 libsuff= shlibsuff= libmagic=32-bit;;
10787 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10788 libsuff=32 shlibsuff=N32 libmagic=N32;;
10789 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10790 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10791 *) libsuff= shlibsuff= libmagic=never-match;;
10792 esac
10793 ;;
10794 esac
10795 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10796 shlibpath_overrides_runpath=no
10797 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10798 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10799 hardcode_into_libs=yes
10800 ;;
10801
10802# No shared lib support for Linux oldld, aout, or coff.
10803linux*oldld* | linux*aout* | linux*coff*)
10804 dynamic_linker=no
10805 ;;
10806
10807# This must be Linux ELF.
10808linux* | k*bsd*-gnu | kopensolaris*-gnu)
10809 version_type=linux
10810 need_lib_prefix=no
10811 need_version=no
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10815 shlibpath_var=LD_LIBRARY_PATH
10816 shlibpath_overrides_runpath=no
10817
10818 # Some binutils ld are patched to set DT_RUNPATH
Joseph Myers22e05272018-10-31 17:03:16 +000010819 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010820 $as_echo_n "(cached) " >&6
10821else
10822 lt_cv_shlibpath_overrides_runpath=no
10823 save_LDFLAGS=$LDFLAGS
10824 save_libdir=$libdir
10825 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10826 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828/* end confdefs.h. */
10829
10830int
10831main ()
10832{
10833
10834 ;
10835 return 0;
10836}
10837_ACEOF
10838if ac_fn_c_try_link "$LINENO"; then :
10839 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10840 lt_cv_shlibpath_overrides_runpath=yes
10841fi
10842fi
10843rm -f core conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845 LDFLAGS=$save_LDFLAGS
10846 libdir=$save_libdir
10847
10848fi
10849
10850 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10851
10852 # This implies no fast_install, which is unacceptable.
10853 # Some rework will be needed to allow for fast_install
10854 # before this can be enabled.
10855 hardcode_into_libs=yes
10856
10857 # Append ld.so.conf contents to the search path
10858 if test -f /etc/ld.so.conf; then
10859 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' ' '`
10860 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10861 fi
10862
10863 # We used to test for /lib/ld.so.1 and disable shared libraries on
10864 # powerpc, because MkLinux only supported shared libraries with the
10865 # GNU dynamic linker. Since this was broken with cross compilers,
10866 # most powerpc-linux boxes support dynamic linking these days and
10867 # people can always --disable-shared, the test was removed, and we
10868 # assume the GNU/Linux dynamic linker is in use.
10869 dynamic_linker='GNU/Linux ld.so'
10870 ;;
10871
10872netbsd*)
10873 version_type=sunos
10874 need_lib_prefix=no
10875 need_version=no
10876 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10879 dynamic_linker='NetBSD (a.out) ld.so'
10880 else
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10882 soname_spec='${libname}${release}${shared_ext}$major'
10883 dynamic_linker='NetBSD ld.elf_so'
10884 fi
10885 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=yes
10887 hardcode_into_libs=yes
10888 ;;
10889
10890newsos6)
10891 version_type=linux
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=yes
10895 ;;
10896
10897*nto* | *qnx*)
10898 version_type=qnx
10899 need_lib_prefix=no
10900 need_version=no
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 shlibpath_var=LD_LIBRARY_PATH
10904 shlibpath_overrides_runpath=no
10905 hardcode_into_libs=yes
10906 dynamic_linker='ldqnx.so'
10907 ;;
10908
10909openbsd*)
10910 version_type=sunos
10911 sys_lib_dlsearch_path_spec="/usr/lib"
10912 need_lib_prefix=no
10913 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10914 case $host_os in
10915 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10916 *) need_version=no ;;
10917 esac
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10922 case $host_os in
10923 openbsd2.[89] | openbsd2.[89].*)
10924 shlibpath_overrides_runpath=no
10925 ;;
10926 *)
10927 shlibpath_overrides_runpath=yes
10928 ;;
10929 esac
10930 else
10931 shlibpath_overrides_runpath=yes
10932 fi
10933 ;;
10934
10935os2*)
10936 libname_spec='$name'
10937 shrext_cmds=".dll"
10938 need_lib_prefix=no
10939 library_names_spec='$libname${shared_ext} $libname.a'
10940 dynamic_linker='OS/2 ld.exe'
10941 shlibpath_var=LIBPATH
10942 ;;
10943
10944osf3* | osf4* | osf5*)
10945 version_type=osf
10946 need_lib_prefix=no
10947 need_version=no
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10952 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10953 ;;
10954
10955rdos*)
10956 dynamic_linker=no
10957 ;;
10958
10959solaris*)
10960 version_type=linux
10961 need_lib_prefix=no
10962 need_version=no
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964 soname_spec='${libname}${release}${shared_ext}$major'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=yes
10967 hardcode_into_libs=yes
10968 # ldd complains unless libraries are executable
10969 postinstall_cmds='chmod +x $lib'
10970 ;;
10971
10972sunos4*)
10973 version_type=sunos
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10975 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=yes
10978 if test "$with_gnu_ld" = yes; then
10979 need_lib_prefix=no
10980 fi
10981 need_version=yes
10982 ;;
10983
10984sysv4 | sysv4.3*)
10985 version_type=linux
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 case $host_vendor in
10990 sni)
10991 shlibpath_overrides_runpath=no
10992 need_lib_prefix=no
10993 runpath_var=LD_RUN_PATH
10994 ;;
10995 siemens)
10996 need_lib_prefix=no
10997 ;;
10998 motorola)
10999 need_lib_prefix=no
11000 need_version=no
11001 shlibpath_overrides_runpath=no
11002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11003 ;;
11004 esac
11005 ;;
11006
11007sysv4*MP*)
11008 if test -d /usr/nec ;then
11009 version_type=linux
11010 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11011 soname_spec='$libname${shared_ext}.$major'
11012 shlibpath_var=LD_LIBRARY_PATH
11013 fi
11014 ;;
11015
11016sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11017 version_type=freebsd-elf
11018 need_lib_prefix=no
11019 need_version=no
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11021 soname_spec='${libname}${release}${shared_ext}$major'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes
11024 hardcode_into_libs=yes
11025 if test "$with_gnu_ld" = yes; then
11026 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11027 else
11028 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11029 case $host_os in
11030 sco3.2v5*)
11031 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11032 ;;
11033 esac
11034 fi
11035 sys_lib_dlsearch_path_spec='/usr/lib'
11036 ;;
11037
11038tpf*)
11039 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11040 version_type=linux
11041 need_lib_prefix=no
11042 need_version=no
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=no
11046 hardcode_into_libs=yes
11047 ;;
11048
11049uts4*)
11050 version_type=linux
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 soname_spec='${libname}${release}${shared_ext}$major'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 ;;
11055
11056*)
11057 dynamic_linker=no
11058 ;;
11059esac
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11061$as_echo "$dynamic_linker" >&6; }
11062test "$dynamic_linker" = no && can_build_shared=no
11063
11064variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11065if test "$GCC" = yes; then
11066 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11067fi
11068
11069if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11070 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11071fi
11072if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11073 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11074fi
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11168$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11169hardcode_action=
11170if test -n "$hardcode_libdir_flag_spec" ||
11171 test -n "$runpath_var" ||
11172 test "X$hardcode_automatic" = "Xyes" ; then
11173
11174 # We can hardcode non-existent directories.
11175 if test "$hardcode_direct" != no &&
11176 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11177 # have to relink, otherwise we might link with an installed library
11178 # when we should be linking with a yet-to-be-installed one
11179 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11180 test "$hardcode_minus_L" != no; then
11181 # Linking always hardcodes the temporary library directory.
11182 hardcode_action=relink
11183 else
11184 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11185 hardcode_action=immediate
11186 fi
11187else
11188 # We cannot hardcode anything, or else we can only hardcode existing
11189 # directories.
11190 hardcode_action=unsupported
11191fi
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11193$as_echo "$hardcode_action" >&6; }
11194
11195if test "$hardcode_action" = relink ||
11196 test "$inherit_rpath" = yes; then
11197 # Fast installation is not supported
11198 enable_fast_install=no
11199elif test "$shlibpath_overrides_runpath" = yes ||
11200 test "$enable_shared" = no; then
11201 # Fast installation is not necessary
11202 enable_fast_install=needless
11203fi
11204
11205
11206
11207
11208
11209
11210 if test "x$enable_dlopen" != xyes; then
11211 enable_dlopen=unknown
11212 enable_dlopen_self=unknown
11213 enable_dlopen_self_static=unknown
11214else
11215 lt_cv_dlopen=no
11216 lt_cv_dlopen_libs=
11217
11218 case $host_os in
11219 beos*)
11220 lt_cv_dlopen="load_add_on"
11221 lt_cv_dlopen_libs=
11222 lt_cv_dlopen_self=yes
11223 ;;
11224
11225 mingw* | pw32* | cegcc*)
11226 lt_cv_dlopen="LoadLibrary"
11227 lt_cv_dlopen_libs=
11228 ;;
11229
11230 cygwin*)
11231 lt_cv_dlopen="dlopen"
11232 lt_cv_dlopen_libs=
11233 ;;
11234
11235 darwin*)
11236 # if libdl is installed we need to link against it
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11238$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011239if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011240 $as_echo_n "(cached) " >&6
11241else
11242 ac_check_lib_save_LIBS=$LIBS
11243LIBS="-ldl $LIBS"
11244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245/* end confdefs.h. */
11246
11247/* Override any GCC internal prototype to avoid an error.
11248 Use char because int might match the return type of a GCC
11249 builtin and then its argument prototype would still apply. */
11250#ifdef __cplusplus
11251extern "C"
11252#endif
11253char dlopen ();
11254int
11255main ()
11256{
11257return dlopen ();
11258 ;
11259 return 0;
11260}
11261_ACEOF
11262if ac_fn_c_try_link "$LINENO"; then :
11263 ac_cv_lib_dl_dlopen=yes
11264else
11265 ac_cv_lib_dl_dlopen=no
11266fi
11267rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269LIBS=$ac_check_lib_save_LIBS
11270fi
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11272$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011273if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11275else
11276
11277 lt_cv_dlopen="dyld"
11278 lt_cv_dlopen_libs=
11279 lt_cv_dlopen_self=yes
11280
11281fi
11282
11283 ;;
11284
11285 *)
11286 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Joseph Myers22e05272018-10-31 17:03:16 +000011287if test "x$ac_cv_func_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011288 lt_cv_dlopen="shl_load"
11289else
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11291$as_echo_n "checking for shl_load in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011292if ${ac_cv_lib_dld_shl_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011293 $as_echo_n "(cached) " >&6
11294else
11295 ac_check_lib_save_LIBS=$LIBS
11296LIBS="-ldld $LIBS"
11297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298/* end confdefs.h. */
11299
11300/* Override any GCC internal prototype to avoid an error.
11301 Use char because int might match the return type of a GCC
11302 builtin and then its argument prototype would still apply. */
11303#ifdef __cplusplus
11304extern "C"
11305#endif
11306char shl_load ();
11307int
11308main ()
11309{
11310return shl_load ();
11311 ;
11312 return 0;
11313}
11314_ACEOF
11315if ac_fn_c_try_link "$LINENO"; then :
11316 ac_cv_lib_dld_shl_load=yes
11317else
11318 ac_cv_lib_dld_shl_load=no
11319fi
11320rm -f core conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
11322LIBS=$ac_check_lib_save_LIBS
11323fi
11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11325$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011326if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011327 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11328else
11329 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Joseph Myers22e05272018-10-31 17:03:16 +000011330if test "x$ac_cv_func_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011331 lt_cv_dlopen="dlopen"
11332else
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11334$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011335if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011336 $as_echo_n "(cached) " >&6
11337else
11338 ac_check_lib_save_LIBS=$LIBS
11339LIBS="-ldl $LIBS"
11340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341/* end confdefs.h. */
11342
11343/* Override any GCC internal prototype to avoid an error.
11344 Use char because int might match the return type of a GCC
11345 builtin and then its argument prototype would still apply. */
11346#ifdef __cplusplus
11347extern "C"
11348#endif
11349char dlopen ();
11350int
11351main ()
11352{
11353return dlopen ();
11354 ;
11355 return 0;
11356}
11357_ACEOF
11358if ac_fn_c_try_link "$LINENO"; then :
11359 ac_cv_lib_dl_dlopen=yes
11360else
11361 ac_cv_lib_dl_dlopen=no
11362fi
11363rm -f core conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11365LIBS=$ac_check_lib_save_LIBS
11366fi
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11368$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011369if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11371else
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11373$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011374if ${ac_cv_lib_svld_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011375 $as_echo_n "(cached) " >&6
11376else
11377 ac_check_lib_save_LIBS=$LIBS
11378LIBS="-lsvld $LIBS"
11379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380/* end confdefs.h. */
11381
11382/* Override any GCC internal prototype to avoid an error.
11383 Use char because int might match the return type of a GCC
11384 builtin and then its argument prototype would still apply. */
11385#ifdef __cplusplus
11386extern "C"
11387#endif
11388char dlopen ();
11389int
11390main ()
11391{
11392return dlopen ();
11393 ;
11394 return 0;
11395}
11396_ACEOF
11397if ac_fn_c_try_link "$LINENO"; then :
11398 ac_cv_lib_svld_dlopen=yes
11399else
11400 ac_cv_lib_svld_dlopen=no
11401fi
11402rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404LIBS=$ac_check_lib_save_LIBS
11405fi
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11407$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011408if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11410else
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11412$as_echo_n "checking for dld_link in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011413if ${ac_cv_lib_dld_dld_link+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011414 $as_echo_n "(cached) " >&6
11415else
11416 ac_check_lib_save_LIBS=$LIBS
11417LIBS="-ldld $LIBS"
11418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419/* end confdefs.h. */
11420
11421/* Override any GCC internal prototype to avoid an error.
11422 Use char because int might match the return type of a GCC
11423 builtin and then its argument prototype would still apply. */
11424#ifdef __cplusplus
11425extern "C"
11426#endif
11427char dld_link ();
11428int
11429main ()
11430{
11431return dld_link ();
11432 ;
11433 return 0;
11434}
11435_ACEOF
11436if ac_fn_c_try_link "$LINENO"; then :
11437 ac_cv_lib_dld_dld_link=yes
11438else
11439 ac_cv_lib_dld_dld_link=no
11440fi
11441rm -f core conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11443LIBS=$ac_check_lib_save_LIBS
11444fi
11445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11446$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011447if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011448 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11449fi
11450
11451
11452fi
11453
11454
11455fi
11456
11457
11458fi
11459
11460
11461fi
11462
11463
11464fi
11465
11466 ;;
11467 esac
11468
11469 if test "x$lt_cv_dlopen" != xno; then
11470 enable_dlopen=yes
11471 else
11472 enable_dlopen=no
11473 fi
11474
11475 case $lt_cv_dlopen in
11476 dlopen)
11477 save_CPPFLAGS="$CPPFLAGS"
11478 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11479
11480 save_LDFLAGS="$LDFLAGS"
11481 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11482
11483 save_LIBS="$LIBS"
11484 LIBS="$lt_cv_dlopen_libs $LIBS"
11485
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11487$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011488if ${lt_cv_dlopen_self+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011489 $as_echo_n "(cached) " >&6
11490else
11491 if test "$cross_compiling" = yes; then :
11492 lt_cv_dlopen_self=cross
11493else
11494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11495 lt_status=$lt_dlunknown
11496 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclawbb503122019-04-12 20:13:34 +000011497#line 11497 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011498#include "confdefs.h"
11499
11500#if HAVE_DLFCN_H
11501#include <dlfcn.h>
11502#endif
11503
11504#include <stdio.h>
11505
11506#ifdef RTLD_GLOBAL
11507# define LT_DLGLOBAL RTLD_GLOBAL
11508#else
11509# ifdef DL_GLOBAL
11510# define LT_DLGLOBAL DL_GLOBAL
11511# else
11512# define LT_DLGLOBAL 0
11513# endif
11514#endif
11515
11516/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11517 find out it does not work in some platform. */
11518#ifndef LT_DLLAZY_OR_NOW
11519# ifdef RTLD_LAZY
11520# define LT_DLLAZY_OR_NOW RTLD_LAZY
11521# else
11522# ifdef DL_LAZY
11523# define LT_DLLAZY_OR_NOW DL_LAZY
11524# else
11525# ifdef RTLD_NOW
11526# define LT_DLLAZY_OR_NOW RTLD_NOW
11527# else
11528# ifdef DL_NOW
11529# define LT_DLLAZY_OR_NOW DL_NOW
11530# else
11531# define LT_DLLAZY_OR_NOW 0
11532# endif
11533# endif
11534# endif
11535# endif
11536#endif
11537
11538/* When -fvisbility=hidden is used, assume the code has been annotated
11539 correspondingly for the symbols needed. */
11540#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11541void fnord () __attribute__((visibility("default")));
11542#endif
11543
11544void fnord () { int i=42; }
11545int main ()
11546{
11547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11548 int status = $lt_dlunknown;
11549
11550 if (self)
11551 {
11552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11553 else
11554 {
11555 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11556 else puts (dlerror ());
11557 }
11558 /* dlclose (self); */
11559 }
11560 else
11561 puts (dlerror ());
11562
11563 return status;
11564}
11565_LT_EOF
11566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11567 (eval $ac_link) 2>&5
11568 ac_status=$?
11569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11570 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11571 (./conftest; exit; ) >&5 2>/dev/null
11572 lt_status=$?
11573 case x$lt_status in
11574 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11575 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11576 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11577 esac
11578 else :
11579 # compilation failed
11580 lt_cv_dlopen_self=no
11581 fi
11582fi
11583rm -fr conftest*
11584
11585
11586fi
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11588$as_echo "$lt_cv_dlopen_self" >&6; }
11589
11590 if test "x$lt_cv_dlopen_self" = xyes; then
11591 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11593$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011594if ${lt_cv_dlopen_self_static+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011595 $as_echo_n "(cached) " >&6
11596else
11597 if test "$cross_compiling" = yes; then :
11598 lt_cv_dlopen_self_static=cross
11599else
11600 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11601 lt_status=$lt_dlunknown
11602 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclawbb503122019-04-12 20:13:34 +000011603#line 11603 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011604#include "confdefs.h"
11605
11606#if HAVE_DLFCN_H
11607#include <dlfcn.h>
11608#endif
11609
11610#include <stdio.h>
11611
11612#ifdef RTLD_GLOBAL
11613# define LT_DLGLOBAL RTLD_GLOBAL
11614#else
11615# ifdef DL_GLOBAL
11616# define LT_DLGLOBAL DL_GLOBAL
11617# else
11618# define LT_DLGLOBAL 0
11619# endif
11620#endif
11621
11622/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11623 find out it does not work in some platform. */
11624#ifndef LT_DLLAZY_OR_NOW
11625# ifdef RTLD_LAZY
11626# define LT_DLLAZY_OR_NOW RTLD_LAZY
11627# else
11628# ifdef DL_LAZY
11629# define LT_DLLAZY_OR_NOW DL_LAZY
11630# else
11631# ifdef RTLD_NOW
11632# define LT_DLLAZY_OR_NOW RTLD_NOW
11633# else
11634# ifdef DL_NOW
11635# define LT_DLLAZY_OR_NOW DL_NOW
11636# else
11637# define LT_DLLAZY_OR_NOW 0
11638# endif
11639# endif
11640# endif
11641# endif
11642#endif
11643
11644/* When -fvisbility=hidden is used, assume the code has been annotated
11645 correspondingly for the symbols needed. */
11646#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11647void fnord () __attribute__((visibility("default")));
11648#endif
11649
11650void fnord () { int i=42; }
11651int main ()
11652{
11653 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11654 int status = $lt_dlunknown;
11655
11656 if (self)
11657 {
11658 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11659 else
11660 {
11661 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11662 else puts (dlerror ());
11663 }
11664 /* dlclose (self); */
11665 }
11666 else
11667 puts (dlerror ());
11668
11669 return status;
11670}
11671_LT_EOF
11672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11673 (eval $ac_link) 2>&5
11674 ac_status=$?
11675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11676 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11677 (./conftest; exit; ) >&5 2>/dev/null
11678 lt_status=$?
11679 case x$lt_status in
11680 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11681 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11682 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11683 esac
11684 else :
11685 # compilation failed
11686 lt_cv_dlopen_self_static=no
11687 fi
11688fi
11689rm -fr conftest*
11690
11691
11692fi
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11694$as_echo "$lt_cv_dlopen_self_static" >&6; }
11695 fi
11696
11697 CPPFLAGS="$save_CPPFLAGS"
11698 LDFLAGS="$save_LDFLAGS"
11699 LIBS="$save_LIBS"
11700 ;;
11701 esac
11702
11703 case $lt_cv_dlopen_self in
11704 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11705 *) enable_dlopen_self=unknown ;;
11706 esac
11707
11708 case $lt_cv_dlopen_self_static in
11709 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11710 *) enable_dlopen_self_static=unknown ;;
11711 esac
11712fi
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730striplib=
11731old_striplib=
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11733$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11734if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11735 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11736 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11738$as_echo "yes" >&6; }
11739else
11740# FIXME - insert some real tests, host_os isn't really good enough
11741 case $host_os in
11742 darwin*)
11743 if test -n "$STRIP" ; then
11744 striplib="$STRIP -x"
11745 old_striplib="$STRIP -S"
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11747$as_echo "yes" >&6; }
11748 else
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750$as_echo "no" >&6; }
11751 fi
11752 ;;
11753 *)
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755$as_echo "no" >&6; }
11756 ;;
11757 esac
11758fi
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771 # Report which library types will actually be built
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11773$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11775$as_echo "$can_build_shared" >&6; }
11776
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11778$as_echo_n "checking whether to build shared libraries... " >&6; }
11779 test "$can_build_shared" = "no" && enable_shared=no
11780
11781 # On AIX, shared libraries and static libraries use the same namespace, and
11782 # are all built from PIC.
11783 case $host_os in
11784 aix3*)
11785 test "$enable_shared" = yes && enable_static=no
11786 if test -n "$RANLIB"; then
11787 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11788 postinstall_cmds='$RANLIB $lib'
11789 fi
11790 ;;
11791
11792 aix[4-9]*)
11793 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11794 test "$enable_shared" = yes && enable_static=no
11795 fi
11796 ;;
11797 esac
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11799$as_echo "$enable_shared" >&6; }
11800
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11802$as_echo_n "checking whether to build static libraries... " >&6; }
11803 # Make sure either enable_shared or enable_static is yes.
11804 test "$enable_shared" = yes || enable_static=yes
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11806$as_echo "$enable_static" >&6; }
11807
11808
11809
11810
11811fi
11812ac_ext=c
11813ac_cpp='$CPP $CPPFLAGS'
11814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11816ac_compiler_gnu=$ac_cv_c_compiler_gnu
11817
11818CC="$lt_save_CC"
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832 ac_config_commands="$ac_config_commands libtool"
11833
11834
11835
11836
11837# Only expand once:
11838
11839
11840
11841
11842
11843 gdc_save_DFLAGS=$GDCFLAGS
11844 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11845
11846
11847# Source file extension for D test sources.
11848ac_ext=d
11849
11850# Object file extension for compiled D test sources.
11851objext=o
11852objext_D=$objext
11853
11854# Code to be used in simple compile tests
11855lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }"
11856
11857# Code to be used in simple link tests
11858lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }'
11859
11860# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11861
11862
11863
11864
11865
11866
11867# If no C compiler was specified, use CC.
11868LTCC=${LTCC-"$CC"}
11869
11870# If no C compiler flags were specified, use CFLAGS.
11871LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11872
11873# Allow CC to be a program name with arguments.
11874compiler=$CC
11875
11876
11877# save warnings/boilerplate of simple test code
11878ac_outfile=conftest.$ac_objext
11879echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11880eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11881_lt_compiler_boilerplate=`cat conftest.err`
11882$RM conftest*
11883
11884ac_outfile=conftest.$ac_objext
11885echo "$lt_simple_link_test_code" >conftest.$ac_ext
11886eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11887_lt_linker_boilerplate=`cat conftest.err`
11888$RM -r conftest*
11889
11890
11891# Allow CC to be a program name with arguments.
11892lt_save_CC=$CC
11893lt_save_CFLAGS=$CFLAGS
11894lt_save_DFLAGS=$GDCFLAGS
11895lt_save_GCC=$GCC
11896GCC=yes
11897CC=${GDC-"gdc"}
11898# Need to specify location for object.d
11899GDCFLAGS="-nophoboslib $GDCFLAGS"
11900CFLAGS=$GDCFLAGS
11901compiler=$CC
11902compiler_D=$CC
11903LD_D=$CC
11904for cc_temp in $compiler""; do
11905 case $cc_temp in
11906 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11907 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11908 \-*) ;;
11909 *) break;;
11910 esac
11911done
11912cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11913
11914
11915# GDC did not exist at the time GCC didn't implicitly link libc in.
11916archive_cmds_need_lc_D=no
11917
11918old_archive_cmds_D=$old_archive_cmds
11919reload_flag_D=$reload_flag
11920reload_cmds_D=$reload_cmds
11921
11922## CAVEAT EMPTOR:
11923## There is no encapsulation within the following macros, do not change
11924## the running order or otherwise move them around unless you know exactly
11925## what you are doing...
11926if test -n "$compiler"; then
11927
11928lt_prog_compiler_no_builtin_flag_D=
11929
11930if test "$GCC" = yes; then
11931 case $cc_basename in
11932 nvcc*)
11933 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
11934 *)
11935 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
11936 esac
11937
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11939$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011940if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011941 $as_echo_n "(cached) " >&6
11942else
11943 lt_cv_prog_compiler_rtti_exceptions=no
11944 ac_outfile=conftest.$ac_objext
11945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11946 lt_compiler_flag="-fno-rtti -fno-exceptions"
11947 # Insert the option either (1) after the last *FLAGS variable, or
11948 # (2) before a word containing "conftest.", or (3) at the end.
11949 # Note that $ac_compile itself does not contain backslashes and begins
11950 # with a dollar sign (not a hyphen), so the echo should work correctly.
11951 # The option is referenced via a variable to avoid confusing sed.
11952 lt_compile=`echo "$ac_compile" | $SED \
11953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11955 -e 's:$: $lt_compiler_flag:'`
11956 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11957 (eval "$lt_compile" 2>conftest.err)
11958 ac_status=$?
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 if (exit $ac_status) && test -s "$ac_outfile"; then
11962 # The compiler can only warn and ignore the option if not recognized
11963 # So say no if there are warnings other than the usual output.
11964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11966 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11967 lt_cv_prog_compiler_rtti_exceptions=yes
11968 fi
11969 fi
11970 $RM conftest*
11971
11972fi
11973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11974$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11975
11976if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11977 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
11978else
11979 :
11980fi
11981
11982fi
11983
11984
11985
11986 lt_prog_compiler_wl_D=
11987lt_prog_compiler_pic_D=
11988lt_prog_compiler_static_D=
11989
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11991$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11992
11993 if test "$GCC" = yes; then
11994 lt_prog_compiler_wl_D='-Wl,'
11995 lt_prog_compiler_static_D='-static'
11996
11997 case $host_os in
11998 aix*)
11999 # All AIX code is PIC.
12000 if test "$host_cpu" = ia64; then
12001 # AIX 5 now supports IA64 processor
12002 lt_prog_compiler_static_D='-Bstatic'
12003 fi
12004 lt_prog_compiler_pic_D='-fPIC'
12005 ;;
12006
12007 amigaos*)
12008 case $host_cpu in
12009 powerpc)
12010 # see comment about AmigaOS4 .so support
12011 lt_prog_compiler_pic_D='-fPIC'
12012 ;;
12013 m68k)
12014 # FIXME: we need at least 68020 code to build shared libraries, but
12015 # adding the `-m68020' flag to GCC prevents building anything better,
12016 # like `-m68040'.
12017 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12018 ;;
12019 esac
12020 ;;
12021
12022 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12023 # PIC is the default for these OSes.
12024 ;;
12025
12026 mingw* | cygwin* | pw32* | os2* | cegcc*)
12027 # This hack is so that the source file can tell whether it is being
12028 # built for inclusion in a dll (and should export symbols for example).
12029 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12030 # (--disable-auto-import) libraries
12031 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12032 ;;
12033
12034 darwin* | rhapsody*)
12035 # PIC is the default on this platform
12036 # Common symbols not allowed in MH_DYLIB files
12037 lt_prog_compiler_pic_D='-fno-common'
12038 ;;
12039
12040 haiku*)
12041 # PIC is the default for Haiku.
12042 # The "-static" flag exists, but is broken.
12043 lt_prog_compiler_static_D=
12044 ;;
12045
12046 hpux*)
12047 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12048 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12049 # sets the default TLS model and affects inlining.
12050 case $host_cpu in
12051 hppa*64*)
12052 # +Z the default
12053 ;;
12054 *)
12055 lt_prog_compiler_pic_D='-fPIC'
12056 ;;
12057 esac
12058 ;;
12059
12060 interix[3-9]*)
12061 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12062 # Instead, we relocate shared libraries at runtime.
12063 ;;
12064
12065 msdosdjgpp*)
12066 # Just because we use GCC doesn't mean we suddenly get shared libraries
12067 # on systems that don't support them.
12068 lt_prog_compiler_can_build_shared_D=no
12069 enable_shared=no
12070 ;;
12071
12072 *nto* | *qnx*)
12073 # QNX uses GNU C++, but need to define -shared option too, otherwise
12074 # it will coredump.
12075 lt_prog_compiler_pic_D='-fPIC -shared'
12076 ;;
12077
12078 sysv4*MP*)
12079 if test -d /usr/nec; then
12080 lt_prog_compiler_pic_D=-Kconform_pic
12081 fi
12082 ;;
12083
12084 *)
12085 lt_prog_compiler_pic_D='-fPIC'
12086 ;;
12087 esac
12088
12089 case $cc_basename in
12090 nvcc*) # Cuda Compiler Driver 2.2
12091 lt_prog_compiler_wl_D='-Xlinker '
12092 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12093 ;;
12094 esac
12095 else
12096 # PORTME Check for flag to pass linker flags through the system compiler.
12097 case $host_os in
12098 aix*)
12099 lt_prog_compiler_wl_D='-Wl,'
12100 if test "$host_cpu" = ia64; then
12101 # AIX 5 now supports IA64 processor
12102 lt_prog_compiler_static_D='-Bstatic'
12103 else
12104 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12105 fi
12106 ;;
12107
12108 mingw* | cygwin* | pw32* | os2* | cegcc*)
12109 # This hack is so that the source file can tell whether it is being
12110 # built for inclusion in a dll (and should export symbols for example).
12111 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12112 ;;
12113
12114 hpux9* | hpux10* | hpux11*)
12115 lt_prog_compiler_wl_D='-Wl,'
12116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12117 # not for PA HP-UX.
12118 case $host_cpu in
12119 hppa*64*|ia64*)
12120 # +Z the default
12121 ;;
12122 *)
12123 lt_prog_compiler_pic_D='+Z'
12124 ;;
12125 esac
12126 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12127 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12128 ;;
12129
12130 irix5* | irix6* | nonstopux*)
12131 lt_prog_compiler_wl_D='-Wl,'
12132 # PIC (with -KPIC) is the default.
12133 lt_prog_compiler_static_D='-non_shared'
12134 ;;
12135
12136 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12137 case $cc_basename in
12138 # old Intel for x86_64 which still supported -KPIC.
12139 ecc*)
12140 lt_prog_compiler_wl_D='-Wl,'
12141 lt_prog_compiler_pic_D='-KPIC'
12142 lt_prog_compiler_static_D='-static'
12143 ;;
12144 # icc used to be incompatible with GCC.
12145 # ICC 10 doesn't accept -KPIC any more.
12146 icc* | ifort*)
12147 lt_prog_compiler_wl_D='-Wl,'
12148 lt_prog_compiler_pic_D='-fPIC'
12149 lt_prog_compiler_static_D='-static'
12150 ;;
12151 # Lahey Fortran 8.1.
12152 lf95*)
12153 lt_prog_compiler_wl_D='-Wl,'
12154 lt_prog_compiler_pic_D='--shared'
12155 lt_prog_compiler_static_D='--static'
12156 ;;
12157 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12158 # Portland Group compilers (*not* the Pentium gcc compiler,
12159 # which looks to be a dead project)
12160 lt_prog_compiler_wl_D='-Wl,'
12161 lt_prog_compiler_pic_D='-fpic'
12162 lt_prog_compiler_static_D='-Bstatic'
12163 ;;
12164 ccc*)
12165 lt_prog_compiler_wl_D='-Wl,'
12166 # All Alpha code is PIC.
12167 lt_prog_compiler_static_D='-non_shared'
12168 ;;
12169 xl* | bgxl* | bgf* | mpixl*)
12170 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12171 lt_prog_compiler_wl_D='-Wl,'
12172 lt_prog_compiler_pic_D='-qpic'
12173 lt_prog_compiler_static_D='-qstaticlink'
12174 ;;
12175 *)
12176 case `$CC -V 2>&1 | sed 5q` in
12177 *Sun\ F* | *Sun*Fortran*)
12178 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12179 lt_prog_compiler_pic_D='-KPIC'
12180 lt_prog_compiler_static_D='-Bstatic'
12181 lt_prog_compiler_wl_D=''
12182 ;;
12183 *Sun\ C*)
12184 # Sun C 5.9
12185 lt_prog_compiler_pic_D='-KPIC'
12186 lt_prog_compiler_static_D='-Bstatic'
12187 lt_prog_compiler_wl_D='-Wl,'
12188 ;;
12189 esac
12190 ;;
12191 esac
12192 ;;
12193
12194 newsos6)
12195 lt_prog_compiler_pic_D='-KPIC'
12196 lt_prog_compiler_static_D='-Bstatic'
12197 ;;
12198
12199 *nto* | *qnx*)
12200 # QNX uses GNU C++, but need to define -shared option too, otherwise
12201 # it will coredump.
12202 lt_prog_compiler_pic_D='-fPIC -shared'
12203 ;;
12204
12205 osf3* | osf4* | osf5*)
12206 lt_prog_compiler_wl_D='-Wl,'
12207 # All OSF/1 code is PIC.
12208 lt_prog_compiler_static_D='-non_shared'
12209 ;;
12210
12211 rdos*)
12212 lt_prog_compiler_static_D='-non_shared'
12213 ;;
12214
12215 solaris*)
12216 lt_prog_compiler_pic_D='-KPIC'
12217 lt_prog_compiler_static_D='-Bstatic'
12218 case $cc_basename in
12219 f77* | f90* | f95*)
12220 lt_prog_compiler_wl_D='-Qoption ld ';;
12221 *)
12222 lt_prog_compiler_wl_D='-Wl,';;
12223 esac
12224 ;;
12225
12226 sunos4*)
12227 lt_prog_compiler_wl_D='-Qoption ld '
12228 lt_prog_compiler_pic_D='-PIC'
12229 lt_prog_compiler_static_D='-Bstatic'
12230 ;;
12231
12232 sysv4 | sysv4.2uw2* | sysv4.3*)
12233 lt_prog_compiler_wl_D='-Wl,'
12234 lt_prog_compiler_pic_D='-KPIC'
12235 lt_prog_compiler_static_D='-Bstatic'
12236 ;;
12237
12238 sysv4*MP*)
12239 if test -d /usr/nec ;then
12240 lt_prog_compiler_pic_D='-Kconform_pic'
12241 lt_prog_compiler_static_D='-Bstatic'
12242 fi
12243 ;;
12244
12245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12246 lt_prog_compiler_wl_D='-Wl,'
12247 lt_prog_compiler_pic_D='-KPIC'
12248 lt_prog_compiler_static_D='-Bstatic'
12249 ;;
12250
12251 unicos*)
12252 lt_prog_compiler_wl_D='-Wl,'
12253 lt_prog_compiler_can_build_shared_D=no
12254 ;;
12255
12256 uts4*)
12257 lt_prog_compiler_pic_D='-pic'
12258 lt_prog_compiler_static_D='-Bstatic'
12259 ;;
12260
12261 *)
12262 lt_prog_compiler_can_build_shared_D=no
12263 ;;
12264 esac
12265 fi
12266
12267case $host_os in
12268 # For platforms which do not support PIC, -DPIC is meaningless:
12269 *djgpp*)
12270 lt_prog_compiler_pic_D=
12271 ;;
12272 *)
12273 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12274 ;;
12275esac
12276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12277$as_echo "$lt_prog_compiler_pic_D" >&6; }
12278
12279
12280
12281#
12282# Check to make sure the PIC flag actually works.
12283#
12284if test -n "$lt_prog_compiler_pic_D"; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12286$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012287if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012288 $as_echo_n "(cached) " >&6
12289else
12290 lt_cv_prog_compiler_pic_works_D=no
12291 ac_outfile=conftest.$ac_objext
12292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12293 lt_compiler_flag="$lt_prog_compiler_pic_D"
12294 # Insert the option either (1) after the last *FLAGS variable, or
12295 # (2) before a word containing "conftest.", or (3) at the end.
12296 # Note that $ac_compile itself does not contain backslashes and begins
12297 # with a dollar sign (not a hyphen), so the echo should work correctly.
12298 # The option is referenced via a variable to avoid confusing sed.
12299 lt_compile=`echo "$ac_compile" | $SED \
12300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12302 -e 's:$: $lt_compiler_flag:'`
12303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12304 (eval "$lt_compile" 2>conftest.err)
12305 ac_status=$?
12306 cat conftest.err >&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 if (exit $ac_status) && test -s "$ac_outfile"; then
12309 # The compiler can only warn and ignore the option if not recognized
12310 # So say no if there are warnings other than the usual output.
12311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12313 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12314 lt_cv_prog_compiler_pic_works_D=yes
12315 fi
12316 fi
12317 $RM conftest*
12318
12319fi
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12321$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12322
12323if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12324 case $lt_prog_compiler_pic_D in
12325 "" | " "*) ;;
12326 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12327 esac
12328else
12329 lt_prog_compiler_pic_D=
12330 lt_prog_compiler_can_build_shared_D=no
12331fi
12332
12333fi
12334
12335
12336
12337#
12338# Check to make sure the static flag actually works.
12339#
12340wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12342$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012343if ${lt_cv_prog_compiler_static_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012344 $as_echo_n "(cached) " >&6
12345else
12346 lt_cv_prog_compiler_static_works_D=no
12347 save_LDFLAGS="$LDFLAGS"
12348 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12349 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12351 # The linker can only warn and ignore the option if not recognized
12352 # So say no if there are warnings
12353 if test -s conftest.err; then
12354 # Append any errors to the config.log.
12355 cat conftest.err 1>&5
12356 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12358 if diff conftest.exp conftest.er2 >/dev/null; then
12359 lt_cv_prog_compiler_static_works_D=yes
12360 fi
12361 else
12362 lt_cv_prog_compiler_static_works_D=yes
12363 fi
12364 fi
12365 $RM -r conftest*
12366 LDFLAGS="$save_LDFLAGS"
12367
12368fi
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12370$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12371
12372if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12373 :
12374else
12375 lt_prog_compiler_static_D=
12376fi
12377
12378
12379
12380
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12382$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012383if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012384 $as_echo_n "(cached) " >&6
12385else
12386 lt_cv_prog_compiler_c_o_D=no
12387 $RM -r conftest 2>/dev/null
12388 mkdir conftest
12389 cd conftest
12390 mkdir out
12391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12392
12393 lt_compiler_flag="-o out/conftest2.$ac_objext"
12394 # Insert the option either (1) after the last *FLAGS variable, or
12395 # (2) before a word containing "conftest.", or (3) at the end.
12396 # Note that $ac_compile itself does not contain backslashes and begins
12397 # with a dollar sign (not a hyphen), so the echo should work correctly.
12398 lt_compile=`echo "$ac_compile" | $SED \
12399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12401 -e 's:$: $lt_compiler_flag:'`
12402 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12403 (eval "$lt_compile" 2>out/conftest.err)
12404 ac_status=$?
12405 cat out/conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12408 then
12409 # The compiler can only warn and ignore the option if not recognized
12410 # So say no if there are warnings
12411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12414 lt_cv_prog_compiler_c_o_D=yes
12415 fi
12416 fi
12417 chmod u+w . 2>&5
12418 $RM conftest*
12419 # SGI C++ compiler will create directory out/ii_files/ for
12420 # template instantiation
12421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12422 $RM out/* && rmdir out
12423 cd ..
12424 $RM -r conftest
12425 $RM conftest*
12426
12427fi
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12429$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12430
12431
12432
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12434$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012435if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012436 $as_echo_n "(cached) " >&6
12437else
12438 lt_cv_prog_compiler_c_o_D=no
12439 $RM -r conftest 2>/dev/null
12440 mkdir conftest
12441 cd conftest
12442 mkdir out
12443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12444
12445 lt_compiler_flag="-o out/conftest2.$ac_objext"
12446 # Insert the option either (1) after the last *FLAGS variable, or
12447 # (2) before a word containing "conftest.", or (3) at the end.
12448 # Note that $ac_compile itself does not contain backslashes and begins
12449 # with a dollar sign (not a hyphen), so the echo should work correctly.
12450 lt_compile=`echo "$ac_compile" | $SED \
12451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12453 -e 's:$: $lt_compiler_flag:'`
12454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12455 (eval "$lt_compile" 2>out/conftest.err)
12456 ac_status=$?
12457 cat out/conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12460 then
12461 # The compiler can only warn and ignore the option if not recognized
12462 # So say no if there are warnings
12463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12464 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12465 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12466 lt_cv_prog_compiler_c_o_D=yes
12467 fi
12468 fi
12469 chmod u+w . 2>&5
12470 $RM conftest*
12471 # SGI C++ compiler will create directory out/ii_files/ for
12472 # template instantiation
12473 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12474 $RM out/* && rmdir out
12475 cd ..
12476 $RM -r conftest
12477 $RM conftest*
12478
12479fi
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12481$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12482
12483
12484
12485
12486hard_links="nottested"
12487if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12488 # do not overwrite the value of need_locks provided by the user
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12490$as_echo_n "checking if we can lock with hard links... " >&6; }
12491 hard_links=yes
12492 $RM conftest*
12493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12494 touch conftest.a
12495 ln conftest.a conftest.b 2>&5 || hard_links=no
12496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12498$as_echo "$hard_links" >&6; }
12499 if test "$hard_links" = no; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12501$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12502 need_locks=warn
12503 fi
12504else
12505 need_locks=no
12506fi
12507
12508
12509
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12511$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12512
12513 runpath_var=
12514 allow_undefined_flag_D=
12515 always_export_symbols_D=no
12516 archive_cmds_D=
12517 archive_expsym_cmds_D=
12518 compiler_needs_object_D=no
12519 enable_shared_with_static_runtimes_D=no
12520 export_dynamic_flag_spec_D=
12521 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12522 hardcode_automatic_D=no
12523 hardcode_direct_D=no
12524 hardcode_direct_absolute_D=no
12525 hardcode_libdir_flag_spec_D=
12526 hardcode_libdir_flag_spec_ld_D=
12527 hardcode_libdir_separator_D=
12528 hardcode_minus_L_D=no
12529 hardcode_shlibpath_var_D=unsupported
12530 inherit_rpath_D=no
12531 link_all_deplibs_D=unknown
12532 module_cmds_D=
12533 module_expsym_cmds_D=
12534 old_archive_from_new_cmds_D=
12535 old_archive_from_expsyms_cmds_D=
12536 thread_safe_flag_spec_D=
12537 whole_archive_flag_spec_D=
12538 # include_expsyms should be a list of space-separated symbols to be *always*
12539 # included in the symbol list
12540 include_expsyms_D=
12541 # exclude_expsyms can be an extended regexp of symbols to exclude
12542 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12543 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12544 # as well as any symbol that contains `d'.
12545 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12546 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12547 # platforms (ab)use it in PIC code, but their linkers get confused if
12548 # the symbol is explicitly referenced. Since portable code cannot
12549 # rely on this symbol name, it's probably fine to never include it in
12550 # preloaded symbol tables.
12551 # Exclude shared library initialization/finalization symbols.
12552 extract_expsyms_cmds=
12553
12554 case $host_os in
12555 cygwin* | mingw* | pw32* | cegcc*)
12556 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12557 # When not using gcc, we currently assume that we are using
12558 # Microsoft Visual C++.
12559 if test "$GCC" != yes; then
12560 with_gnu_ld=no
12561 fi
12562 ;;
12563 interix*)
12564 # we just hope/assume this is gcc and not c89 (= MSVC++)
12565 with_gnu_ld=yes
12566 ;;
12567 openbsd*)
12568 with_gnu_ld=no
12569 ;;
12570 esac
12571
12572 ld_shlibs_D=yes
12573
12574 # On some targets, GNU ld is compatible enough with the native linker
12575 # that we're better off using the native interface for both.
12576 lt_use_gnu_ld_interface=no
12577 if test "$with_gnu_ld" = yes; then
12578 case $host_os in
12579 aix*)
12580 # The AIX port of GNU ld has always aspired to compatibility
12581 # with the native linker. However, as the warning in the GNU ld
12582 # block says, versions before 2.19.5* couldn't really create working
12583 # shared libraries, regardless of the interface used.
12584 case `$LD -v 2>&1` in
12585 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12586 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12587 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12588 *)
12589 lt_use_gnu_ld_interface=yes
12590 ;;
12591 esac
12592 ;;
12593 *)
12594 lt_use_gnu_ld_interface=yes
12595 ;;
12596 esac
12597 fi
12598
12599 if test "$lt_use_gnu_ld_interface" = yes; then
12600 # If archive_cmds runs LD, not CC, wlarc should be empty
12601 wlarc='${wl}'
12602
12603 # Set some defaults for GNU ld with shared library support. These
12604 # are reset later if shared libraries are not supported. Putting them
12605 # here allows them to be overridden if necessary.
12606 runpath_var=LD_RUN_PATH
12607 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12608 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12609 # ancient GNU ld didn't support --whole-archive et. al.
12610 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12611 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12612 else
12613 whole_archive_flag_spec_D=
12614 fi
12615 supports_anon_versioning=no
12616 case `$LD -v 2>&1` in
12617 *GNU\ gold*) supports_anon_versioning=yes ;;
12618 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12619 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12620 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12621 *\ 2.11.*) ;; # other 2.11 versions
12622 *) supports_anon_versioning=yes ;;
12623 esac
12624
12625 # See if GNU ld supports shared libraries.
12626 case $host_os in
12627 aix[3-9]*)
12628 # On AIX/PPC, the GNU linker is very broken
12629 if test "$host_cpu" != ia64; then
12630 ld_shlibs_D=no
12631 cat <<_LT_EOF 1>&2
12632
12633*** Warning: the GNU linker, at least up to release 2.19, is reported
12634*** to be unable to reliably create shared libraries on AIX.
12635*** Therefore, libtool is disabling shared libraries support. If you
12636*** really care for shared libraries, you may want to install binutils
12637*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12638*** You will then need to restart the configuration process.
12639
12640_LT_EOF
12641 fi
12642 ;;
12643
12644 amigaos*)
12645 case $host_cpu in
12646 powerpc)
12647 # see comment about AmigaOS4 .so support
12648 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12649 archive_expsym_cmds_D=''
12650 ;;
12651 m68k)
12652 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)'
12653 hardcode_libdir_flag_spec_D='-L$libdir'
12654 hardcode_minus_L_D=yes
12655 ;;
12656 esac
12657 ;;
12658
12659 beos*)
12660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12661 allow_undefined_flag_D=unsupported
12662 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12663 # support --undefined. This deserves some investigation. FIXME
12664 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12665 else
12666 ld_shlibs_D=no
12667 fi
12668 ;;
12669
12670 cygwin* | mingw* | pw32* | cegcc*)
12671 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12672 # as there is no search path for DLLs.
12673 hardcode_libdir_flag_spec_D='-L$libdir'
12674 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12675 allow_undefined_flag_D=unsupported
12676 always_export_symbols_D=no
12677 enable_shared_with_static_runtimes_D=yes
12678 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12679
12680 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12681 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12682 # If the export-symbols file already is a .def file (1st line
12683 # is EXPORTS), use it as is; otherwise, prepend...
12684 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12685 cp $export_symbols $output_objdir/$soname.def;
12686 else
12687 echo EXPORTS > $output_objdir/$soname.def;
12688 cat $export_symbols >> $output_objdir/$soname.def;
12689 fi~
12690 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12691 else
12692 ld_shlibs_D=no
12693 fi
12694 ;;
12695
12696 haiku*)
12697 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12698 link_all_deplibs_D=yes
12699 ;;
12700
12701 interix[3-9]*)
12702 hardcode_direct_D=no
12703 hardcode_shlibpath_var_D=no
12704 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12705 export_dynamic_flag_spec_D='${wl}-E'
12706 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12707 # Instead, shared libraries are loaded at an image base (0x10000000 by
12708 # default) and relocated if they conflict, which is a slow very memory
12709 # consuming and fragmenting process. To avoid this, we pick a random,
12710 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12711 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12712 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'
12713 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'
12714 ;;
12715
12716 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12717 tmp_diet=no
12718 if test "$host_os" = linux-dietlibc; then
12719 case $cc_basename in
12720 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12721 esac
12722 fi
12723 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12724 && test "$tmp_diet" = no
12725 then
12726 tmp_addflag=' $pic_flag'
12727 tmp_sharedflag='-shared'
12728 case $cc_basename,$host_cpu in
12729 pgcc*) # Portland Group C compiler
12730 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'
12731 tmp_addflag=' $pic_flag'
12732 ;;
12733 pgf77* | pgf90* | pgf95* | pgfortran*)
12734 # Portland Group f77 and f90 compilers
12735 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'
12736 tmp_addflag=' $pic_flag -Mnomain' ;;
12737 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12738 tmp_addflag=' -i_dynamic' ;;
12739 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12740 tmp_addflag=' -i_dynamic -nofor_main' ;;
12741 ifc* | ifort*) # Intel Fortran compiler
12742 tmp_addflag=' -nofor_main' ;;
12743 lf95*) # Lahey Fortran 8.1
12744 whole_archive_flag_spec_D=
12745 tmp_sharedflag='--shared' ;;
12746 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12747 tmp_sharedflag='-qmkshrobj'
12748 tmp_addflag= ;;
12749 nvcc*) # Cuda Compiler Driver 2.2
12750 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'
12751 compiler_needs_object_D=yes
12752 ;;
12753 esac
12754 case `$CC -V 2>&1 | sed 5q` in
12755 *Sun\ C*) # Sun C 5.9
12756 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'
12757 compiler_needs_object_D=yes
12758 tmp_sharedflag='-G' ;;
12759 *Sun\ F*) # Sun Fortran 8.3
12760 tmp_sharedflag='-G' ;;
12761 esac
12762 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12763
12764 if test "x$supports_anon_versioning" = xyes; then
12765 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12766 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12767 echo "local: *; };" >> $output_objdir/$libname.ver~
12768 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12769 fi
12770
12771 case $cc_basename in
12772 xlf* | bgf* | bgxlf* | mpixlf*)
12773 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12774 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12775 hardcode_libdir_flag_spec_D=
12776 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12777 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12778 if test "x$supports_anon_versioning" = xyes; then
12779 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12781 echo "local: *; };" >> $output_objdir/$libname.ver~
12782 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12783 fi
12784 ;;
12785 esac
12786 else
12787 ld_shlibs_D=no
12788 fi
12789 ;;
12790
12791 netbsd*)
12792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12793 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12794 wlarc=
12795 else
12796 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12797 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12798 fi
12799 ;;
12800
12801 solaris*)
12802 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12803 ld_shlibs_D=no
12804 cat <<_LT_EOF 1>&2
12805
12806*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12807*** create shared libraries on Solaris systems. Therefore, libtool
12808*** is disabling shared libraries support. We urge you to upgrade GNU
12809*** binutils to release 2.9.1 or newer. Another option is to modify
12810*** your PATH or compiler configuration so that the native linker is
12811*** used, and then restart.
12812
12813_LT_EOF
12814 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12815 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12816 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12817 else
12818 ld_shlibs_D=no
12819 fi
12820 ;;
12821
12822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12823 case `$LD -v 2>&1` in
12824 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12825 ld_shlibs_D=no
12826 cat <<_LT_EOF 1>&2
12827
12828*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12829*** reliably create shared libraries on SCO systems. Therefore, libtool
12830*** is disabling shared libraries support. We urge you to upgrade GNU
12831*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12832*** your PATH or compiler configuration so that the native linker is
12833*** used, and then restart.
12834
12835_LT_EOF
12836 ;;
12837 *)
12838 # For security reasons, it is highly recommended that you always
12839 # use absolute paths for naming shared libraries, and exclude the
12840 # DT_RUNPATH tag from executables and libraries. But doing so
12841 # requires that you compile everything twice, which is a pain.
12842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12843 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12844 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12845 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12846 else
12847 ld_shlibs_D=no
12848 fi
12849 ;;
12850 esac
12851 ;;
12852
12853 sunos4*)
12854 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12855 wlarc=
12856 hardcode_direct_D=yes
12857 hardcode_shlibpath_var_D=no
12858 ;;
12859
12860 *)
12861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12862 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12863 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12864 else
12865 ld_shlibs_D=no
12866 fi
12867 ;;
12868 esac
12869
12870 if test "$ld_shlibs_D" = no; then
12871 runpath_var=
12872 hardcode_libdir_flag_spec_D=
12873 export_dynamic_flag_spec_D=
12874 whole_archive_flag_spec_D=
12875 fi
12876 else
12877 # PORTME fill in a description of your system's linker (not GNU ld)
12878 case $host_os in
12879 aix3*)
12880 allow_undefined_flag_D=unsupported
12881 always_export_symbols_D=yes
12882 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'
12883 # Note: this linker hardcodes the directories in LIBPATH if there
12884 # are no directories specified by -L.
12885 hardcode_minus_L_D=yes
12886 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12887 # Neither direct hardcoding nor static linking is supported with a
12888 # broken collect2.
12889 hardcode_direct_D=unsupported
12890 fi
12891 ;;
12892
12893 aix[4-9]*)
12894 if test "$host_cpu" = ia64; then
12895 # On IA64, the linker does run time linking by default, so we don't
12896 # have to do anything special.
12897 aix_use_runtimelinking=no
12898 exp_sym_flag='-Bexport'
12899 no_entry_flag=""
12900 else
12901 # If we're using GNU nm, then we don't want the "-C" option.
12902 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12903 # Also, AIX nm treats weak defined symbols like other global
12904 # defined symbols, whereas GNU nm marks them as "W".
12905 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12906 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'
12907 else
12908 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'
12909 fi
12910 aix_use_runtimelinking=no
12911
12912 # Test if we are trying to use run time linking or normal
12913 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12914 # need to do runtime linking.
12915 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12916 for ld_flag in $LDFLAGS; do
12917 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12918 aix_use_runtimelinking=yes
12919 break
12920 fi
12921 done
12922 ;;
12923 esac
12924
12925 exp_sym_flag='-bexport'
12926 no_entry_flag='-bnoentry'
12927 fi
12928
12929 # When large executables or shared objects are built, AIX ld can
12930 # have problems creating the table of contents. If linking a library
12931 # or program results in "error TOC overflow" add -mminimal-toc to
12932 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12933 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12934
12935 archive_cmds_D=''
12936 hardcode_direct_D=yes
12937 hardcode_direct_absolute_D=yes
12938 hardcode_libdir_separator_D=':'
12939 link_all_deplibs_D=yes
12940 file_list_spec_D='${wl}-f,'
12941
12942 if test "$GCC" = yes; then
12943 case $host_os in aix4.[012]|aix4.[012].*)
12944 # We only want to do this on AIX 4.2 and lower, the check
12945 # below for broken collect2 doesn't work under 4.3+
12946 collect2name=`${CC} -print-prog-name=collect2`
12947 if test -f "$collect2name" &&
12948 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12949 then
12950 # We have reworked collect2
12951 :
12952 else
12953 # We have old collect2
12954 hardcode_direct_D=unsupported
12955 # It fails to find uninstalled libraries when the uninstalled
12956 # path is not listed in the libpath. Setting hardcode_minus_L
12957 # to unsupported forces relinking
12958 hardcode_minus_L_D=yes
12959 hardcode_libdir_flag_spec_D='-L$libdir'
12960 hardcode_libdir_separator_D=
12961 fi
12962 ;;
12963 esac
12964 shared_flag='-shared'
12965 if test "$aix_use_runtimelinking" = yes; then
12966 shared_flag="$shared_flag "'${wl}-G'
12967 fi
12968 else
12969 # not using gcc
12970 if test "$host_cpu" = ia64; then
12971 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12972 # chokes on -Wl,-G. The following line is correct:
12973 shared_flag='-G'
12974 else
12975 if test "$aix_use_runtimelinking" = yes; then
12976 shared_flag='${wl}-G'
12977 else
12978 shared_flag='${wl}-bM:SRE'
12979 fi
12980 fi
12981 fi
12982
12983 export_dynamic_flag_spec_D='${wl}-bexpall'
12984 # It seems that -bexpall does not export symbols beginning with
12985 # underscore (_), so it is better to generate a list of symbols to export.
12986 always_export_symbols_D=yes
12987 if test "$aix_use_runtimelinking" = yes; then
12988 # Warning - without using the other runtime loading flags (-brtl),
12989 # -berok will link without error, but may produce a broken library.
12990 allow_undefined_flag_D='-berok'
12991 # Determine the default libpath from the value encoded in an
12992 # empty executable.
12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994/* end confdefs.h. */
12995
12996int
12997main ()
12998{
12999
13000 ;
13001 return 0;
13002}
13003_ACEOF
13004if ac_fn_c_try_link "$LINENO"; then :
13005
13006lt_aix_libpath_sed='
13007 /Import File Strings/,/^$/ {
13008 /^0/ {
13009 s/^0 *\(.*\)$/\1/
13010 p
13011 }
13012 }'
13013aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13014# Check for a 64-bit object if we didn't find anything.
13015if test -z "$aix_libpath"; then
13016 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13017fi
13018fi
13019rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13021if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13022
13023 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13024 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"
13025 else
13026 if test "$host_cpu" = ia64; then
13027 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13028 allow_undefined_flag_D="-z nodefs"
13029 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"
13030 else
13031 # Determine the default libpath from the value encoded in an
13032 # empty executable.
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034/* end confdefs.h. */
13035
13036int
13037main ()
13038{
13039
13040 ;
13041 return 0;
13042}
13043_ACEOF
13044if ac_fn_c_try_link "$LINENO"; then :
13045
13046lt_aix_libpath_sed='
13047 /Import File Strings/,/^$/ {
13048 /^0/ {
13049 s/^0 *\(.*\)$/\1/
13050 p
13051 }
13052 }'
13053aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13054# Check for a 64-bit object if we didn't find anything.
13055if test -z "$aix_libpath"; then
13056 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13057fi
13058fi
13059rm -f core conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
13061if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13062
13063 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13064 # Warning - without using the other run time loading flags,
13065 # -berok will link without error, but may produce a broken library.
13066 no_undefined_flag_D=' ${wl}-bernotok'
13067 allow_undefined_flag_D=' ${wl}-berok'
13068 if test "$with_gnu_ld" = yes; then
13069 # We only use this code for GNU lds that support --whole-archive.
13070 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13071 else
13072 # Exported symbols can be pulled into shared objects from archives
13073 whole_archive_flag_spec_D='$convenience'
13074 fi
13075 archive_cmds_need_lc_D=yes
13076 # This is similar to how AIX traditionally builds its shared libraries.
13077 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'
13078 fi
13079 fi
13080 ;;
13081
13082 amigaos*)
13083 case $host_cpu in
13084 powerpc)
13085 # see comment about AmigaOS4 .so support
13086 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13087 archive_expsym_cmds_D=''
13088 ;;
13089 m68k)
13090 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)'
13091 hardcode_libdir_flag_spec_D='-L$libdir'
13092 hardcode_minus_L_D=yes
13093 ;;
13094 esac
13095 ;;
13096
13097 bsdi[45]*)
13098 export_dynamic_flag_spec_D=-rdynamic
13099 ;;
13100
13101 cygwin* | mingw* | pw32* | cegcc*)
13102 # When not using gcc, we currently assume that we are using
13103 # Microsoft Visual C++.
13104 # hardcode_libdir_flag_spec is actually meaningless, as there is
13105 # no search path for DLLs.
13106 hardcode_libdir_flag_spec_D=' '
13107 allow_undefined_flag_D=unsupported
13108 # Tell ltmain to make .lib files, not .a files.
13109 libext=lib
13110 # Tell ltmain to make .dll files, not .so files.
13111 shrext_cmds=".dll"
13112 # FIXME: Setting linknames here is a bad hack.
13113 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13114 # The linker will automatically build a .lib file if we build a DLL.
13115 old_archive_from_new_cmds_D='true'
13116 # FIXME: Should let the user specify the lib program.
13117 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13118 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13119 enable_shared_with_static_runtimes_D=yes
13120 ;;
13121
13122 darwin* | rhapsody*)
13123
13124
13125 archive_cmds_need_lc_D=no
13126 hardcode_direct_D=no
13127 hardcode_automatic_D=yes
13128 hardcode_shlibpath_var_D=unsupported
13129 if test "$lt_cv_ld_force_load" = "yes"; then
13130 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\"`'
13131 else
13132 whole_archive_flag_spec_D=''
13133 fi
13134 link_all_deplibs_D=yes
13135 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13136 case $cc_basename in
13137 ifort*) _lt_dar_can_shared=yes ;;
13138 *) _lt_dar_can_shared=$GCC ;;
13139 esac
13140 if test "$_lt_dar_can_shared" = "yes"; then
13141 output_verbose_link_cmd=func_echo_all
13142 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}"
13143 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13144 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}"
13145 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}"
13146
13147 else
13148 ld_shlibs_D=no
13149 fi
13150
13151 ;;
13152
13153 dgux*)
13154 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13155 hardcode_libdir_flag_spec_D='-L$libdir'
13156 hardcode_shlibpath_var_D=no
13157 ;;
13158
13159 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13160 # support. Future versions do this automatically, but an explicit c++rt0.o
13161 # does not break anything, and helps significantly (at the cost of a little
13162 # extra space).
13163 freebsd2.2*)
13164 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13165 hardcode_libdir_flag_spec_D='-R$libdir'
13166 hardcode_direct_D=yes
13167 hardcode_shlibpath_var_D=no
13168 ;;
13169
13170 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13171 freebsd2.*)
13172 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13173 hardcode_direct_D=yes
13174 hardcode_minus_L_D=yes
13175 hardcode_shlibpath_var_D=no
13176 ;;
13177
13178 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13179 freebsd* | dragonfly*)
13180 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13181 hardcode_libdir_flag_spec_D='-R$libdir'
13182 hardcode_direct_D=yes
13183 hardcode_shlibpath_var_D=no
13184 ;;
13185
13186 hpux9*)
13187 if test "$GCC" = yes; then
13188 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'
13189 else
13190 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'
13191 fi
13192 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13193 hardcode_libdir_separator_D=:
13194 hardcode_direct_D=yes
13195
13196 # hardcode_minus_L: Not really in the search PATH,
13197 # but as the default location of the library.
13198 hardcode_minus_L_D=yes
13199 export_dynamic_flag_spec_D='${wl}-E'
13200 ;;
13201
13202 hpux10*)
13203 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13204 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13205 else
13206 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13207 fi
13208 if test "$with_gnu_ld" = no; then
13209 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13210 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13211 hardcode_libdir_separator_D=:
13212 hardcode_direct_D=yes
13213 hardcode_direct_absolute_D=yes
13214 export_dynamic_flag_spec_D='${wl}-E'
13215 # hardcode_minus_L: Not really in the search PATH,
13216 # but as the default location of the library.
13217 hardcode_minus_L_D=yes
13218 fi
13219 ;;
13220
13221 hpux11*)
13222 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13223 case $host_cpu in
13224 hppa*64*)
13225 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13226 ;;
13227 ia64*)
13228 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13229 ;;
13230 *)
13231 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13232 ;;
13233 esac
13234 else
13235 case $host_cpu in
13236 hppa*64*)
13237 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13238 ;;
13239 ia64*)
13240 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13241 ;;
13242 *)
13243 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13244 ;;
13245 esac
13246 fi
13247 if test "$with_gnu_ld" = no; then
13248 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13249 hardcode_libdir_separator_D=:
13250
13251 case $host_cpu in
13252 hppa*64*|ia64*)
13253 hardcode_direct_D=no
13254 hardcode_shlibpath_var_D=no
13255 ;;
13256 *)
13257 hardcode_direct_D=yes
13258 hardcode_direct_absolute_D=yes
13259 export_dynamic_flag_spec_D='${wl}-E'
13260
13261 # hardcode_minus_L: Not really in the search PATH,
13262 # but as the default location of the library.
13263 hardcode_minus_L_D=yes
13264 ;;
13265 esac
13266 fi
13267 ;;
13268
13269 irix5* | irix6* | nonstopux*)
13270 if test "$GCC" = yes; then
13271 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'
13272 # Try to use the -exported_symbol ld option, if it does not
13273 # work, assume that -exports_file does not work either and
13274 # implicitly export all symbols.
13275 save_LDFLAGS="$LDFLAGS"
13276 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278/* end confdefs.h. */
13279int foo(void) {}
13280_ACEOF
13281if ac_fn_c_try_link "$LINENO"; then :
13282 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'
13283
13284fi
13285rm -f core conftest.err conftest.$ac_objext \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LDFLAGS="$save_LDFLAGS"
13288 else
13289 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'
13290 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'
13291 fi
13292 archive_cmds_need_lc_D='no'
13293 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13294 hardcode_libdir_separator_D=:
13295 inherit_rpath_D=yes
13296 link_all_deplibs_D=yes
13297 ;;
13298
13299 netbsd*)
13300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13301 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13302 else
13303 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13304 fi
13305 hardcode_libdir_flag_spec_D='-R$libdir'
13306 hardcode_direct_D=yes
13307 hardcode_shlibpath_var_D=no
13308 ;;
13309
13310 newsos6)
13311 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13312 hardcode_direct_D=yes
13313 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13314 hardcode_libdir_separator_D=:
13315 hardcode_shlibpath_var_D=no
13316 ;;
13317
13318 *nto* | *qnx*)
13319 ;;
13320
13321 openbsd*)
13322 if test -f /usr/libexec/ld.so; then
13323 hardcode_direct_D=yes
13324 hardcode_shlibpath_var_D=no
13325 hardcode_direct_absolute_D=yes
13326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13327 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13328 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13329 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13330 export_dynamic_flag_spec_D='${wl}-E'
13331 else
13332 case $host_os in
13333 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13334 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13335 hardcode_libdir_flag_spec_D='-R$libdir'
13336 ;;
13337 *)
13338 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13339 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13340 ;;
13341 esac
13342 fi
13343 else
13344 ld_shlibs_D=no
13345 fi
13346 ;;
13347
13348 os2*)
13349 hardcode_libdir_flag_spec_D='-L$libdir'
13350 hardcode_minus_L_D=yes
13351 allow_undefined_flag_D=unsupported
13352 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'
13353 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13354 ;;
13355
13356 osf3*)
13357 if test "$GCC" = yes; then
13358 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13359 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'
13360 else
13361 allow_undefined_flag_D=' -expect_unresolved \*'
13362 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'
13363 fi
13364 archive_cmds_need_lc_D='no'
13365 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13366 hardcode_libdir_separator_D=:
13367 ;;
13368
13369 osf4* | osf5*) # as osf3* with the addition of -msym flag
13370 if test "$GCC" = yes; then
13371 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13372 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'
13373 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13374 else
13375 allow_undefined_flag_D=' -expect_unresolved \*'
13376 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'
13377 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~
13378 $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'
13379
13380 # Both c and cxx compiler support -rpath directly
13381 hardcode_libdir_flag_spec_D='-rpath $libdir'
13382 fi
13383 archive_cmds_need_lc_D='no'
13384 hardcode_libdir_separator_D=:
13385 ;;
13386
13387 solaris*)
13388 no_undefined_flag_D=' -z defs'
13389 if test "$GCC" = yes; then
13390 wlarc='${wl}'
13391 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13392 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13393 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13394 else
13395 case `$CC -V 2>&1` in
13396 *"Compilers 5.0"*)
13397 wlarc=''
13398 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13399 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13400 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13401 ;;
13402 *)
13403 wlarc='${wl}'
13404 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13405 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13406 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13407 ;;
13408 esac
13409 fi
13410 hardcode_libdir_flag_spec_D='-R$libdir'
13411 hardcode_shlibpath_var_D=no
13412 case $host_os in
13413 solaris2.[0-5] | solaris2.[0-5].*) ;;
13414 *)
13415 # The compiler driver will combine and reorder linker options,
13416 # but understands `-z linker_flag'. GCC discards it without `$wl',
13417 # but is careful enough not to reorder.
13418 # Supported since Solaris 2.6 (maybe 2.5.1?)
13419 if test "$GCC" = yes; then
13420 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13421 else
13422 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13423 fi
13424 ;;
13425 esac
13426 link_all_deplibs_D=yes
13427 ;;
13428
13429 sunos4*)
13430 if test "x$host_vendor" = xsequent; then
13431 # Use $CC to link under sequent, because it throws in some extra .o
13432 # files that make .init and .fini sections work.
13433 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13434 else
13435 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13436 fi
13437 hardcode_libdir_flag_spec_D='-L$libdir'
13438 hardcode_direct_D=yes
13439 hardcode_minus_L_D=yes
13440 hardcode_shlibpath_var_D=no
13441 ;;
13442
13443 sysv4)
13444 case $host_vendor in
13445 sni)
13446 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13447 hardcode_direct_D=yes # is this really true???
13448 ;;
13449 siemens)
13450 ## LD is ld it makes a PLAMLIB
13451 ## CC just makes a GrossModule.
13452 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13453 reload_cmds_D='$CC -r -o $output$reload_objs'
13454 hardcode_direct_D=no
13455 ;;
13456 motorola)
13457 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13458 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13459 ;;
13460 esac
13461 runpath_var='LD_RUN_PATH'
13462 hardcode_shlibpath_var_D=no
13463 ;;
13464
13465 sysv4.3*)
13466 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13467 hardcode_shlibpath_var_D=no
13468 export_dynamic_flag_spec_D='-Bexport'
13469 ;;
13470
13471 sysv4*MP*)
13472 if test -d /usr/nec; then
13473 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13474 hardcode_shlibpath_var_D=no
13475 runpath_var=LD_RUN_PATH
13476 hardcode_runpath_var=yes
13477 ld_shlibs_D=yes
13478 fi
13479 ;;
13480
13481 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13482 no_undefined_flag_D='${wl}-z,text'
13483 archive_cmds_need_lc_D=no
13484 hardcode_shlibpath_var_D=no
13485 runpath_var='LD_RUN_PATH'
13486
13487 if test "$GCC" = yes; then
13488 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13489 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490 else
13491 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13492 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13493 fi
13494 ;;
13495
13496 sysv5* | sco3.2v5* | sco5v6*)
13497 # Note: We can NOT use -z defs as we might desire, because we do not
13498 # link with -lc, and that would cause any symbols used from libc to
13499 # always be unresolved, which means just about no library would
13500 # ever link correctly. If we're not using GNU ld we use -z text
13501 # though, which does catch some bad symbols but isn't as heavy-handed
13502 # as -z defs.
13503 no_undefined_flag_D='${wl}-z,text'
13504 allow_undefined_flag_D='${wl}-z,nodefs'
13505 archive_cmds_need_lc_D=no
13506 hardcode_shlibpath_var_D=no
13507 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13508 hardcode_libdir_separator_D=':'
13509 link_all_deplibs_D=yes
13510 export_dynamic_flag_spec_D='${wl}-Bexport'
13511 runpath_var='LD_RUN_PATH'
13512
13513 if test "$GCC" = yes; then
13514 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13515 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13516 else
13517 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13518 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13519 fi
13520 ;;
13521
13522 uts4*)
13523 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13524 hardcode_libdir_flag_spec_D='-L$libdir'
13525 hardcode_shlibpath_var_D=no
13526 ;;
13527
13528 *)
13529 ld_shlibs_D=no
13530 ;;
13531 esac
13532
13533 if test x$host_vendor = xsni; then
13534 case $host in
13535 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13536 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13537 ;;
13538 esac
13539 fi
13540 fi
13541
13542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13543$as_echo "$ld_shlibs_D" >&6; }
13544test "$ld_shlibs_D" = no && can_build_shared=no
13545
13546with_gnu_ld_D=$with_gnu_ld
13547
13548
13549
13550
13551
13552
13553#
13554# Do we need to explicitly link libc?
13555#
13556case "x$archive_cmds_need_lc_D" in
13557x|xyes)
13558 # Assume -lc should be added
13559 archive_cmds_need_lc_D=yes
13560
13561 if test "$enable_shared" = yes && test "$GCC" = yes; then
13562 case $archive_cmds_D in
13563 *'~'*)
13564 # FIXME: we may have to deal with multi-command sequences.
13565 ;;
13566 '$CC '*)
13567 # Test whether the compiler implicitly links with -lc since on some
13568 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13569 # to ld, don't add -lc before -lgcc.
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13571$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000013572if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000013573 $as_echo_n "(cached) " >&6
13574else
13575 $RM conftest*
13576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13577
13578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13579 (eval $ac_compile) 2>&5
13580 ac_status=$?
13581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13582 test $ac_status = 0; } 2>conftest.err; then
13583 soname=conftest
13584 lib=conftest
13585 libobjs=conftest.$ac_objext
13586 deplibs=
13587 wl=$lt_prog_compiler_wl_D
13588 pic_flag=$lt_prog_compiler_pic_D
13589 compiler_flags=-v
13590 linker_flags=-v
13591 verstring=
13592 output_objdir=.
13593 libname=conftest
13594 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13595 allow_undefined_flag_D=
13596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13597 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13598 ac_status=$?
13599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13600 test $ac_status = 0; }
13601 then
13602 lt_cv_archive_cmds_need_lc_D=no
13603 else
13604 lt_cv_archive_cmds_need_lc_D=yes
13605 fi
13606 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13607 else
13608 cat conftest.err 1>&5
13609 fi
13610 $RM conftest*
13611
13612fi
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13614$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13615 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13616 ;;
13617 esac
13618 fi
13619 ;;
13620esac
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13686$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13687hardcode_action_D=
13688if test -n "$hardcode_libdir_flag_spec_D" ||
13689 test -n "$runpath_var_D" ||
13690 test "X$hardcode_automatic_D" = "Xyes" ; then
13691
13692 # We can hardcode non-existent directories.
13693 if test "$hardcode_direct_D" != no &&
13694 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13695 # have to relink, otherwise we might link with an installed library
13696 # when we should be linking with a yet-to-be-installed one
13697 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13698 test "$hardcode_minus_L_D" != no; then
13699 # Linking always hardcodes the temporary library directory.
13700 hardcode_action_D=relink
13701 else
13702 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13703 hardcode_action_D=immediate
13704 fi
13705else
13706 # We cannot hardcode anything, or else we can only hardcode existing
13707 # directories.
13708 hardcode_action_D=unsupported
13709fi
13710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13711$as_echo "$hardcode_action_D" >&6; }
13712
13713if test "$hardcode_action_D" = relink ||
13714 test "$inherit_rpath_D" = yes; then
13715 # Fast installation is not supported
13716 enable_fast_install=no
13717elif test "$shlibpath_overrides_runpath" = yes ||
13718 test "$enable_shared" = no; then
13719 # Fast installation is not necessary
13720 enable_fast_install=needless
13721fi
13722
13723
13724
13725
13726
13727
13728
13729fi
13730
13731ac_ext=c
13732ac_cpp='$CPP $CPPFLAGS'
13733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13735ac_compiler_gnu=$ac_cv_c_compiler_gnu
13736
13737
13738GCC=$lt_save_GCC
13739CC=$lt_save_CC
13740CFLAGS=$lt_save_CFLAGS
13741GDCFLAGS=$lt_save_DFLAGS
13742
13743 GDCFLAGS=$gdc_save_DFLAGS
13744
Iain Buclawb4c522f2018-10-28 19:51:47 +000013745
13746# libtool variables for Phobos shared and position-independent compiles.
13747#
13748# Use phobos_compiler_shared_flag to designate the compile-time flags for
13749# creating shared objects. Default: -fversion=Shared.
13750#
13751# Use phobos_compiler_pic_flag to designate the compile-time flags for
13752# creating position-independent objects. This varies with the target
13753# hardware and operating system, but is often: -fPIC.
13754#
13755# The distinction between pic and shared compilation flags is not present in
13756# libtool, and so we make it here. How it is handled is that in shared
13757# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13758# ensure that conditional compilation of shared runtime code is compiled in.
13759# The original PIC flags are then used in the compilation of every object.
13760#
13761# Why are objects destined for libgphobos.a compiled with -fPIC?
13762# Because -fPIC is not harmful to use for objects destined for static
13763# libraries. In addition, using -fPIC will allow the use of static
13764# libgphobos.a in the creation of other D shared libraries.
13765if test "$enable_shared" = yes; then
13766 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13767 phobos_compiler_shared_flag="-fversion=Shared"
13768else
13769 phobos_compiler_pic_flag=
13770 phobos_compiler_shared_flag=
13771fi
13772
13773
13774
13775# Override the libtool's pic_flag and pic_mode.
13776# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13777# NB: this impacts --with-pic and --without-pic.
13778lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13779pic_mode='default'
13780
13781# Determine what GCC version number to use in filesystem paths.
13782
13783 get_gcc_base_ver="cat"
13784
13785# Check whether --with-gcc-major-version-only was given.
13786if test "${with_gcc_major_version_only+set}" = set; then :
13787 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13788 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13789 fi
13790
13791fi
13792
13793
13794
13795
13796# libphobos/libdruntime specific options and feature detection
13797
13798 # These need to be absolute paths, yet at the same time need to
13799 # canonicalize only relative paths, because then amd will not unmount
13800 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13801 libphobos_builddir=`${PWDCMD-pwd}`
13802 case $srcdir in
13803 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13804 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13805 esac
13806
13807
13808
13809
13810 if test ${multilib} = yes; then
13811 multilib_arg="--enable-multilib"
13812 else
13813 multilib_arg=
13814 fi
13815
13816
13817 # Check whether --enable-werror was given.
13818if test "${enable_werror+set}" = set; then :
13819 enableval=$enable_werror;
13820fi
13821
13822 WERROR_FLAG=""
13823 if test "x$enable_werror" = "xyes"; then
13824 WERROR_FLAG="-Werror"
13825 fi
13826
13827
13828 # Check whether --enable-druntime-gc was given.
13829if test "${enable_druntime_gc+set}" = set; then :
13830 enableval=$enable_druntime_gc; enable_druntime_gc=no
13831else
13832 enable_druntime_gc=yes
13833fi
13834
13835
13836 if test "$enable_druntime_gc" = "yes"; then
13837 DRUNTIME_GC_ENABLE_TRUE=
13838 DRUNTIME_GC_ENABLE_FALSE='#'
13839else
13840 DRUNTIME_GC_ENABLE_TRUE='#'
13841 DRUNTIME_GC_ENABLE_FALSE=
13842fi
13843
13844
13845
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13847$as_echo_n "checking for target OS... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000013848if ${druntime_cv_target_os+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000013849 $as_echo_n "(cached) " >&6
13850else
13851 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13852fi
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13854$as_echo "$druntime_cv_target_os" >&6; }
13855 if test -z "$druntime_cv_target_os"; then :
Joseph Myers22e05272018-10-31 17:03:16 +000013856 as_fn_error $? "can't detect target OS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000013857fi
13858
13859
13860
13861 # Check whether --enable-unix was given.
13862if test "${enable_unix+set}" = set; then :
13863 enableval=$enable_unix; :
13864else
13865 enable_unix=auto
13866fi
13867
13868
13869 case "$druntime_cv_target_os" in
13870 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
13871 esac
13872 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
13873 enable_unix=yes
13874 fi
13875 if test "$enable_unix" = "yes"; then
13876 DRUNTIME_OS_UNIX_TRUE=
13877 DRUNTIME_OS_UNIX_FALSE='#'
13878else
13879 DRUNTIME_OS_UNIX_TRUE='#'
13880 DRUNTIME_OS_UNIX_FALSE=
13881fi
13882
13883
13884
13885
13886
13887 druntime_target_os_parsed=""
13888 case "$druntime_cv_target_os" in
13889 aix*) druntime_target_os_parsed="aix"
13890 ;;
13891 *android*)
13892 druntime_target_os_parsed="android"
13893 ;;
13894 darwin*) druntime_target_os_parsed="darwin"
13895 ;;
13896 dragonfly*)
13897 druntime_target_os_parsed="dragonflybsd"
13898 ;;
13899 freebsd*|k*bsd*-gnu)
13900 druntime_target_os_parsed="freebsd"
13901 ;;
13902 openbsd*)
13903 druntime_target_os_parsed="openbsd"
13904 ;;
13905 netbsd*)
13906 druntime_target_os_parsed="netbsd"
13907 ;;
13908 linux*) druntime_target_os_parsed="linux"
13909 ;;
13910 mingw*) druntime_target_os_parsed="mingw"
13911 ;;
13912 *solaris*) druntime_target_os_parsed="solaris"
13913 esac
13914 if test "$druntime_target_os_parsed" = "aix"; then
13915 DRUNTIME_OS_AIX_TRUE=
13916 DRUNTIME_OS_AIX_FALSE='#'
13917else
13918 DRUNTIME_OS_AIX_TRUE='#'
13919 DRUNTIME_OS_AIX_FALSE=
13920fi
13921
13922 if test "$druntime_target_os_parsed" = "android"; then
13923 DRUNTIME_OS_ANDROID_TRUE=
13924 DRUNTIME_OS_ANDROID_FALSE='#'
13925else
13926 DRUNTIME_OS_ANDROID_TRUE='#'
13927 DRUNTIME_OS_ANDROID_FALSE=
13928fi
13929
13930 if test "$druntime_target_os_parsed" = "darwin"; then
13931 DRUNTIME_OS_DARWIN_TRUE=
13932 DRUNTIME_OS_DARWIN_FALSE='#'
13933else
13934 DRUNTIME_OS_DARWIN_TRUE='#'
13935 DRUNTIME_OS_DARWIN_FALSE=
13936fi
13937
13938 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
13939 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
13940 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
13941else
13942 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
13943 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
13944fi
13945
13946 if test "$druntime_target_os_parsed" = "freebsd"; then
13947 DRUNTIME_OS_FREEBSD_TRUE=
13948 DRUNTIME_OS_FREEBSD_FALSE='#'
13949else
13950 DRUNTIME_OS_FREEBSD_TRUE='#'
13951 DRUNTIME_OS_FREEBSD_FALSE=
13952fi
13953
13954 if test "$druntime_target_os_parsed" = "netbsd"; then
13955 DRUNTIME_OS_NETBSD_TRUE=
13956 DRUNTIME_OS_NETBSD_FALSE='#'
13957else
13958 DRUNTIME_OS_NETBSD_TRUE='#'
13959 DRUNTIME_OS_NETBSD_FALSE=
13960fi
13961
13962 if test "$druntime_target_os_parsed" = "openbsd"; then
13963 DRUNTIME_OS_OPENBSD_TRUE=
13964 DRUNTIME_OS_OPENBSD_FALSE='#'
13965else
13966 DRUNTIME_OS_OPENBSD_TRUE='#'
13967 DRUNTIME_OS_OPENBSD_FALSE=
13968fi
13969
13970 if test "$druntime_target_os_parsed" = "linux"; then
13971 DRUNTIME_OS_LINUX_TRUE=
13972 DRUNTIME_OS_LINUX_FALSE='#'
13973else
13974 DRUNTIME_OS_LINUX_TRUE='#'
13975 DRUNTIME_OS_LINUX_FALSE=
13976fi
13977
13978 if test "$druntime_target_os_parsed" = "mingw"; then
13979 DRUNTIME_OS_MINGW_TRUE=
13980 DRUNTIME_OS_MINGW_FALSE='#'
13981else
13982 DRUNTIME_OS_MINGW_TRUE='#'
13983 DRUNTIME_OS_MINGW_FALSE=
13984fi
13985
13986 if test "$druntime_target_os_parsed" = "solaris"; then
13987 DRUNTIME_OS_SOLARIS_TRUE=
13988 DRUNTIME_OS_SOLARIS_FALSE='#'
13989else
13990 DRUNTIME_OS_SOLARIS_TRUE='#'
13991 DRUNTIME_OS_SOLARIS_FALSE=
13992fi
13993
13994
13995
13996
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
13998$as_echo_n "checking for thread model used by GDC... " >&6; }
13999 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14001$as_echo "$d_thread_model" >&6; }
14002
14003 # Map from thread model to thread interface.
14004
14005case $d_thread_model in
14006 aix) DCFG_THREAD_MODEL="Posix" ;;
14007 lynx) DCFG_THREAD_MODEL="Posix" ;;
14008 posix) DCFG_THREAD_MODEL="Posix" ;;
14009 single) DCFG_THREAD_MODEL="Single" ;;
14010 win32) DCFG_THREAD_MODEL="Win32" ;;
14011 # TODO: These targets need porting.
14012 dce|mipssde|rtems|tpf|vxworks)
14013 DCFG_THREAD_MODEL="Single" ;;
14014 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14015esac
14016
14017
14018
14019
14020 ac_ext=c
14021ac_cpp='$CPP $CPPFLAGS'
14022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14024ac_compiler_gnu=$ac_cv_c_compiler_gnu
14025
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14027$as_echo_n "checking for ARM unwinder... " >&6; }
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029/* end confdefs.h. */
14030#include <unwind.h>
14031int
14032main ()
14033{
14034
14035 #if __ARM_EABI_UNWINDER__
14036 #error Yes, it is.
14037 #endif
14038
14039 ;
14040 return 0;
14041}
14042_ACEOF
14043if ac_fn_c_try_compile "$LINENO"; then :
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14045$as_echo "no" >&6; }
14046 DCFG_ARM_EABI_UNWINDER=false
14047else
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14049$as_echo "yes" >&6; }
14050 DCFG_ARM_EABI_UNWINDER=true
14051fi
14052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053
14054 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14055 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14056 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14057else
14058 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14059 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14060fi
14061
14062 ac_ext=c
14063ac_cpp='$CPP $CPPFLAGS'
14064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14066ac_compiler_gnu=$ac_cv_c_compiler_gnu
14067
14068
14069
14070 ac_ext=c
14071ac_cpp='$CPP $CPPFLAGS'
14072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14074ac_compiler_gnu=$ac_cv_c_compiler_gnu
14075
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14077$as_echo_n "checking for minfo section bracketing... " >&6; }
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079/* end confdefs.h. */
14080
14081 void* module_info_ptr __attribute__((section ("minfo")));
14082 extern void* __start_minfo __attribute__((visibility ("hidden")));
14083 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14084
14085 int main()
14086 {
14087 // Never run, just to prevent compiler from optimizing access
14088 return &__start_minfo == &__stop_minfo;
14089 }
14090
14091_ACEOF
14092if ac_fn_c_try_link "$LINENO"; then :
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14094$as_echo "yes" >&6; }
14095 DCFG_MINFO_BRACKETING=true
14096else
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14098$as_echo "no" >&6; }
14099 DCFG_MINFO_BRACKETING=false
14100fi
14101rm -f core conftest.err conftest.$ac_objext \
14102 conftest$ac_exeext conftest.$ac_ext
14103
Rainer Orth0b6e3122019-02-14 17:47:49 +000014104 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14105 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14106 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14107else
14108 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14109 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14110fi
14111
Iain Buclawb4c522f2018-10-28 19:51:47 +000014112 ac_ext=c
14113ac_cpp='$CPP $CPPFLAGS'
14114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14116ac_compiler_gnu=$ac_cv_c_compiler_gnu
14117
14118
14119
Johannes Pfau36d7f152019-02-18 23:29:39 +000014120 ac_ext=c
14121ac_cpp='$CPP $CPPFLAGS'
14122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14124ac_compiler_gnu=$ac_cv_c_compiler_gnu
14125
14126 DCFG_HAVE_QSORT_R=false
14127 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14128if test "x$ac_cv_func_qsort_r" = xyes; then :
14129 DCFG_HAVE_QSORT_R=true
14130fi
14131
14132
14133 ac_ext=c
14134ac_cpp='$CPP $CPPFLAGS'
14135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14137ac_compiler_gnu=$ac_cv_c_compiler_gnu
14138
14139
14140
Iain Buclawb4c522f2018-10-28 19:51:47 +000014141
14142
14143 gdc_save_DFLAGS=$GDCFLAGS
14144 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14145
14146 ac_ext=d
14147ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14148ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14149ac_compiler_gnu=yes
14150
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14152$as_echo_n "checking for library containing malloc... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014153if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014154 $as_echo_n "(cached) " >&6
14155else
14156 ac_func_search_save_LIBS=$LIBS
14157cat > conftest.$ac_ext <<_ACEOF
14158module mod;
14159 extern(C) int malloc();
14160
14161extern(C) int main() {
14162 malloc(); return 0;
14163}
14164_ACEOF
14165for ac_lib in '' c; do
14166 if test -z "$ac_lib"; then
14167 ac_res="none required"
14168 else
14169 ac_res=-l$ac_lib
14170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14171 fi
14172 if ac_fn_d_try_link "$LINENO"; then :
14173 ac_cv_search_malloc=$ac_res
14174fi
14175rm -f core conftest.err conftest.$ac_objext \
14176 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014177 if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014178 break
14179fi
14180done
Joseph Myers22e05272018-10-31 17:03:16 +000014181if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014182
14183else
14184 ac_cv_search_malloc=no
14185fi
14186rm conftest.$ac_ext
14187LIBS=$ac_func_search_save_LIBS
14188fi
14189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14190$as_echo "$ac_cv_search_malloc" >&6; }
14191ac_res=$ac_cv_search_malloc
14192if test "$ac_res" != no; then :
14193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14194
14195fi
14196
14197
14198 enable_thread_lib=yes
14199 # Check whether --enable-thread-lib was given.
14200if test "${enable_thread_lib+set}" = set; then :
14201 enableval=$enable_thread_lib;
14202fi
14203
14204
14205 if test "x$enable_thread_lib" = "xyes"; then :
14206
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14208$as_echo_n "checking for library containing pthread_create... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014209if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014210 $as_echo_n "(cached) " >&6
14211else
14212 ac_func_search_save_LIBS=$LIBS
14213cat > conftest.$ac_ext <<_ACEOF
14214module mod;
14215 extern(C) int pthread_create();
14216
14217extern(C) int main() {
14218 pthread_create(); return 0;
14219}
14220_ACEOF
14221for ac_lib in '' pthread; do
14222 if test -z "$ac_lib"; then
14223 ac_res="none required"
14224 else
14225 ac_res=-l$ac_lib
14226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14227 fi
14228 if ac_fn_d_try_link "$LINENO"; then :
14229 ac_cv_search_pthread_create=$ac_res
14230fi
14231rm -f core conftest.err conftest.$ac_objext \
14232 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014233 if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014234 break
14235fi
14236done
Joseph Myers22e05272018-10-31 17:03:16 +000014237if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014238
14239else
14240 ac_cv_search_pthread_create=no
14241fi
14242rm conftest.$ac_ext
14243LIBS=$ac_func_search_save_LIBS
14244fi
14245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14246$as_echo "$ac_cv_search_pthread_create" >&6; }
14247ac_res=$ac_cv_search_pthread_create
14248if test "$ac_res" != no; then :
14249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14250
14251fi
14252
14253
14254else
14255
14256 if test "x$enable_thread_lib" = "xno"; then :
14257
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14259$as_echo_n "checking for thread library... " >&6; }
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14261$as_echo "disabled" >&6; }
14262
14263else
14264
14265 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14267$as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014268if eval \${$as_ac_Lib+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014269 $as_echo_n "(cached) " >&6
14270else
14271 ac_check_lib_save_LIBS=$LIBS
14272LIBS="-l$enable_thread_lib $LIBS"
14273cat > conftest.$ac_ext <<_ACEOF
14274module mod;
14275 extern(C) int pthread_create();
14276
14277extern(C) int main() {
14278 pthread_create(); return 0;
14279}
14280_ACEOF
14281if ac_fn_d_try_link "$LINENO"; then :
14282 eval "$as_ac_Lib=yes"
14283else
14284 eval "$as_ac_Lib=no"
14285fi
14286rm -f core conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288LIBS=$ac_check_lib_save_LIBS
14289fi
14290eval ac_res=\$$as_ac_Lib
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14292$as_echo "$ac_res" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014293if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014294 cat >>confdefs.h <<_ACEOF
14295#define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14296_ACEOF
14297
14298 LIBS="-l$enable_thread_lib $LIBS"
14299
14300else
14301
Joseph Myers22e05272018-10-31 17:03:16 +000014302 as_fn_error $? "Thread library not found" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014303
14304fi
14305
14306
14307fi
14308
14309fi
14310
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14312$as_echo_n "checking for library containing cosf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014313if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014314 $as_echo_n "(cached) " >&6
14315else
14316 ac_func_search_save_LIBS=$LIBS
14317cat > conftest.$ac_ext <<_ACEOF
14318module mod;
14319 extern(C) int cosf();
14320
14321extern(C) int main() {
14322 cosf(); return 0;
14323}
14324_ACEOF
14325for ac_lib in '' m; do
14326 if test -z "$ac_lib"; then
14327 ac_res="none required"
14328 else
14329 ac_res=-l$ac_lib
14330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14331 fi
14332 if ac_fn_d_try_link "$LINENO"; then :
14333 ac_cv_search_cosf=$ac_res
14334fi
14335rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014337 if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014338 break
14339fi
14340done
Joseph Myers22e05272018-10-31 17:03:16 +000014341if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014342
14343else
14344 ac_cv_search_cosf=no
14345fi
14346rm conftest.$ac_ext
14347LIBS=$ac_func_search_save_LIBS
14348fi
14349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14350$as_echo "$ac_cv_search_cosf" >&6; }
14351ac_res=$ac_cv_search_cosf
14352if test "$ac_res" != no; then :
14353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14354
14355fi
14356
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14358$as_echo_n "checking for library containing clock_gettime... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014359if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014360 $as_echo_n "(cached) " >&6
14361else
14362 ac_func_search_save_LIBS=$LIBS
14363cat > conftest.$ac_ext <<_ACEOF
14364module mod;
14365 extern(C) int clock_gettime();
14366
14367extern(C) int main() {
14368 clock_gettime(); return 0;
14369}
14370_ACEOF
14371for ac_lib in '' rt; do
14372 if test -z "$ac_lib"; then
14373 ac_res="none required"
14374 else
14375 ac_res=-l$ac_lib
14376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14377 fi
14378 if ac_fn_d_try_link "$LINENO"; then :
14379 ac_cv_search_clock_gettime=$ac_res
14380fi
14381rm -f core conftest.err conftest.$ac_objext \
14382 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014383 if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014384 break
14385fi
14386done
Joseph Myers22e05272018-10-31 17:03:16 +000014387if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014388
14389else
14390 ac_cv_search_clock_gettime=no
14391fi
14392rm conftest.$ac_ext
14393LIBS=$ac_func_search_save_LIBS
14394fi
14395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14396$as_echo "$ac_cv_search_clock_gettime" >&6; }
14397ac_res=$ac_cv_search_clock_gettime
14398if test "$ac_res" != no; then :
14399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14400
14401fi
14402
14403
14404 # This checks to see if the host supports the compiler-generated builtins
14405 # for atomic operations for various integral sizes. Note, this is intended
14406 # to be an all-or-nothing switch, so all the atomic operations that are
14407 # used should be checked.
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14409$as_echo_n "checking for atomic builtins for byte... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014410 if ${druntime_cv_atomic_byte+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014411 $as_echo_n "(cached) " >&6
14412else
14413
14414 cat > conftest.$ac_ext <<_ACEOF
14415module mod;
14416import gcc.builtins;
14417
14418extern(C) int main() {
14419
14420 shared(byte) c1;
14421 byte c2, c3;
14422 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14423 __atomic_load_1(&c1, 5);
14424 __atomic_store_1(&c1, c2, 5);
14425 return 0;
14426
14427}
14428_ACEOF
14429if ac_fn_d_try_link "$LINENO"; then :
14430 druntime_cv_atomic_byte=yes
14431else
14432 druntime_cv_atomic_byte=no
14433fi
14434rm -f core conftest.err conftest.$ac_objext \
14435 conftest$ac_exeext conftest.$ac_ext
14436
14437fi
14438
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14440$as_echo "$druntime_cv_atomic_byte" >&6; }
14441
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14443$as_echo_n "checking for atomic builtins for short... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014444 if ${druntime_cv_atomic_short+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014445 $as_echo_n "(cached) " >&6
14446else
14447
14448 cat > conftest.$ac_ext <<_ACEOF
14449module mod;
14450import gcc.builtins;
14451
14452extern(C) int main() {
14453
14454 shared(short) c1;
14455 short c2, c3;
14456 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14457 __atomic_load_2(&c1, 5);
14458 __atomic_store_2(&c1, c2, 5);
14459 return 0;
14460
14461}
14462_ACEOF
14463if ac_fn_d_try_link "$LINENO"; then :
14464 druntime_cv_atomic_short=yes
14465else
14466 druntime_cv_atomic_short=no
14467fi
14468rm -f core conftest.err conftest.$ac_objext \
14469 conftest$ac_exeext conftest.$ac_ext
14470
14471fi
14472
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14474$as_echo "$druntime_cv_atomic_short" >&6; }
14475
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14477$as_echo_n "checking for atomic builtins for int... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014478 if ${druntime_cv_atomic_int+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014479 $as_echo_n "(cached) " >&6
14480else
14481
14482 cat > conftest.$ac_ext <<_ACEOF
14483module mod;
14484import gcc.builtins;
14485
14486extern(C) int main() {
14487
14488 shared(int) c1;
14489 int c2, c3;
14490 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14491 __atomic_load_4(&c1, 5);
14492 __atomic_store_4(&c1, c2, 5);
14493 return 0;
14494
14495}
14496_ACEOF
14497if ac_fn_d_try_link "$LINENO"; then :
14498 druntime_cv_atomic_int=yes
14499else
14500 druntime_cv_atomic_int=no
14501fi
14502rm -f core conftest.err conftest.$ac_objext \
14503 conftest$ac_exeext conftest.$ac_ext
14504
14505fi
14506
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14508$as_echo "$druntime_cv_atomic_int" >&6; }
14509
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14511$as_echo_n "checking for atomic builtins for long... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014512 if ${druntime_cv_atomic_long+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014513 $as_echo_n "(cached) " >&6
14514else
14515
14516 cat > conftest.$ac_ext <<_ACEOF
14517module mod;
14518import gcc.builtins;
14519
14520extern(C) int main() {
14521
14522 shared(long) c1;
14523 long c2, c3;
14524 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14525 __atomic_load_8(&c1, 5);
14526 __atomic_store_8(&c1, c2, 5);
14527 return 0;
14528
14529}
14530_ACEOF
14531if ac_fn_d_try_link "$LINENO"; then :
14532 druntime_cv_atomic_long=yes
14533else
14534 druntime_cv_atomic_long=no
14535fi
14536rm -f core conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
14538
14539fi
14540
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14542$as_echo "$druntime_cv_atomic_long" >&6; }
14543
14544 # Have atomic builtin support if all but the long test above passes.
14545 DCFG_HAVE_ATOMIC_BUILTINS=false
14546 if test "$druntime_cv_atomic_byte" = yes \
14547 && test "$druntime_cv_atomic_short" = yes \
14548 && test "$druntime_cv_atomic_int" = yes; then \
14549 DCFG_HAVE_ATOMIC_BUILTINS=true
14550 fi
14551
14552 # Have 64-bit atomic support if the long test above passes.
14553 DCFG_HAVE_64BIT_ATOMICS=false
14554 if test "$druntime_cv_atomic_long" = yes; then
14555 DCFG_HAVE_64BIT_ATOMICS=true
14556 fi
14557
14558
14559
14560
14561 ac_ext=c
14562ac_cpp='$CPP $CPPFLAGS'
14563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14565ac_compiler_gnu=$ac_cv_c_compiler_gnu
14566
14567
14568 GDCFLAGS=$gdc_save_DFLAGS
14569
14570
14571
14572
14573# Check whether --with-libatomic was given.
14574if test "${with_libatomic+set}" = set; then :
14575 withval=$with_libatomic;
14576fi
14577
14578
14579 DCFG_HAVE_LIBATOMIC=false
14580 LIBATOMIC=
14581 if test "x$with_libatomic" != "xno"; then :
14582
14583 DCFG_HAVE_LIBATOMIC=true
14584 LIBATOMIC=../../libatomic/libatomic_convenience.la
14585
14586else
14587
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14589$as_echo_n "checking for libatomic... " >&6; }
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14591$as_echo "disabled" >&6; }
14592
14593fi
14594
14595
14596
14597
14598
14599 ac_ext=c
14600ac_cpp='$CPP $CPPFLAGS'
14601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14603ac_compiler_gnu=$ac_cv_c_compiler_gnu
14604
14605 BACKTRACE_SUPPORTED=false
14606 BACKTRACE_USES_MALLOC=false
14607 BACKTRACE_SUPPORTS_THREADS=false
14608 LIBBACKTRACE=""
14609
14610
14611# Check whether --with-libbacktrace was given.
14612if test "${with_libbacktrace+set}" = set; then :
14613 withval=$with_libbacktrace;
14614fi
14615
14616
14617 if test "x$with_libbacktrace" != "xno"; then :
14618
14619 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14620
14621 gdc_save_CPPFLAGS=$CPPFLAGS
14622 CPPFLAGS+=" -I../libbacktrace "
14623
14624 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 +000014625if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014626 have_libbacktrace_h=true
14627else
14628 have_libbacktrace_h=false
14629fi
14630
14631
14632
14633 if $have_libbacktrace_h; then
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14635$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637/* end confdefs.h. */
14638
14639 #include <backtrace-supported.h>
14640 #if BACKTRACE_SUPPORTED
14641 FOUND_LIBBACKTRACE_RESULT_GDC
14642 #endif
14643
14644_ACEOF
14645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14646 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14647 BACKTRACE_SUPPORTED=true
14648else
14649 BACKTRACE_SUPPORTED=false
14650fi
14651rm -f conftest*
14652
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14654$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14655
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14657$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659/* end confdefs.h. */
14660
14661 #include <backtrace-supported.h>
14662 #if BACKTRACE_USES_MALLOC
14663 FOUND_LIBBACKTRACE_RESULT_GDC
14664 #endif
14665
14666_ACEOF
14667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14668 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14669 BACKTRACE_USES_MALLOC=true
14670else
14671 BACKTRACE_USES_MALLOC=false
14672fi
14673rm -f conftest*
14674
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14676$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14677
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14679$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681/* end confdefs.h. */
14682
14683 #include <backtrace-supported.h>
14684 #if BACKTRACE_SUPPORTS_THREADS
14685 FOUND_LIBBACKTRACE_RESULT_GDC
14686 #endif
14687
14688_ACEOF
14689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14690 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14691 BACKTRACE_SUPPORTS_THREADS=true
14692else
14693 BACKTRACE_SUPPORTS_THREADS=false
14694fi
14695rm -f conftest*
14696
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14698$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14699 fi
14700 CPPFLAGS=$gdc_save_CPPFLAGS
14701
14702else
14703
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14705$as_echo_n "checking for libbacktrace... " >&6; }
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14707$as_echo "disabled" >&6; }
14708
14709fi
14710
14711
14712
14713
14714
14715 ac_ext=c
14716ac_cpp='$CPP $CPPFLAGS'
14717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14719ac_compiler_gnu=$ac_cv_c_compiler_gnu
14720
14721
14722
14723 # Libtool has already checked this, so re-use the inferred dlopen lib.
14724 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14725
14726 LIBS="$LIBS $lt_cv_dlopen_libs"
14727
14728fi
14729
14730
Rainer Orth1d679132019-02-19 09:24:50 +000014731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14732$as_echo_n "checking for socket libraries... " >&6; }
14733if ${druntime_cv_lib_sockets+:} false; then :
14734 $as_echo_n "(cached) " >&6
14735else
14736 druntime_cv_lib_sockets=
14737 druntime_check_both=no
14738 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14739if test "x$ac_cv_func_connect" = xyes; then :
14740 druntime_check_socket=no
14741else
14742 druntime_check_socket=yes
14743fi
14744
14745 if test "$druntime_check_socket" = "yes"; then
14746 unset ac_cv_func_connect
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14748$as_echo_n "checking for main in -lsocket... " >&6; }
14749if ${ac_cv_lib_socket_main+:} false; then :
14750 $as_echo_n "(cached) " >&6
14751else
14752 ac_check_lib_save_LIBS=$LIBS
14753LIBS="-lsocket $LIBS"
14754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755/* end confdefs.h. */
14756
14757
14758int
14759main ()
14760{
14761return main ();
14762 ;
14763 return 0;
14764}
14765_ACEOF
14766if ac_fn_c_try_link "$LINENO"; then :
14767 ac_cv_lib_socket_main=yes
14768else
14769 ac_cv_lib_socket_main=no
14770fi
14771rm -f core conftest.err conftest.$ac_objext \
14772 conftest$ac_exeext conftest.$ac_ext
14773LIBS=$ac_check_lib_save_LIBS
14774fi
14775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14776$as_echo "$ac_cv_lib_socket_main" >&6; }
14777if test "x$ac_cv_lib_socket_main" = xyes; then :
14778 druntime_cv_lib_sockets="-lsocket"
14779else
14780 druntime_check_both=yes
14781fi
14782
14783 fi
14784 if test "$druntime_check_both" = "yes"; then
14785 druntime_old_libs=$LIBS
14786 LIBS="$LIBS -lsocket -lnsl"
14787 unset ac_cv_func_accept
14788 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14789if test "x$ac_cv_func_accept" = xyes; then :
14790 druntime_check_nsl=no
14791 druntime_cv_lib_sockets="-lsocket -lnsl"
14792fi
14793
14794 unset ac_cv_func_accept
14795 LIBS=$druntime_old_libs
14796 fi
14797 unset ac_cv_func_gethostbyname
14798 druntime_old_libs="$LIBS"
14799 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14800if test "x$ac_cv_func_gethostbyname" = xyes; then :
14801
14802else
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14804$as_echo_n "checking for main in -lnsl... " >&6; }
14805if ${ac_cv_lib_nsl_main+:} false; then :
14806 $as_echo_n "(cached) " >&6
14807else
14808 ac_check_lib_save_LIBS=$LIBS
14809LIBS="-lnsl $LIBS"
14810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811/* end confdefs.h. */
14812
14813
14814int
14815main ()
14816{
14817return main ();
14818 ;
14819 return 0;
14820}
14821_ACEOF
14822if ac_fn_c_try_link "$LINENO"; then :
14823 ac_cv_lib_nsl_main=yes
14824else
14825 ac_cv_lib_nsl_main=no
14826fi
14827rm -f core conftest.err conftest.$ac_objext \
14828 conftest$ac_exeext conftest.$ac_ext
14829LIBS=$ac_check_lib_save_LIBS
14830fi
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14832$as_echo "$ac_cv_lib_nsl_main" >&6; }
14833if test "x$ac_cv_lib_nsl_main" = xyes; then :
14834 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
14835fi
14836
14837fi
14838
14839
14840fi
14841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
14842$as_echo "$druntime_cv_lib_sockets" >&6; }
14843 LIBS="$LIBS $druntime_cv_lib_sockets"
14844
14845
Iain Buclawbb503122019-04-12 20:13:34 +000014846 ac_ext=c
14847ac_cpp='$CPP $CPPFLAGS'
14848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14850ac_compiler_gnu=$ac_cv_c_compiler_gnu
14851
14852 LIBZ=""
14853
Iain Buclawb4c522f2018-10-28 19:51:47 +000014854
14855# Check whether --with-target-system-zlib was given.
14856if test "${with_target_system_zlib+set}" = set; then :
14857 withval=$with_target_system_zlib;
Iain Buclawbb503122019-04-12 20:13:34 +000014858else
14859 with_target_system_zlib=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000014860fi
14861
14862
Iain Buclawbb503122019-04-12 20:13:34 +000014863 case "$with_target_system_zlib" in
14864 yes|no|auto) ;;
14865 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
14866 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000014867
Iain Buclawbb503122019-04-12 20:13:34 +000014868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
14869$as_echo_n "checking for system zlib... " >&6; }
14870 save_LIBS=$LIBS
14871 LIBS="$LIBS -lz"
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +000014873/* end confdefs.h. */
Iain Buclawbb503122019-04-12 20:13:34 +000014874#include <zlib.h>
Iain Buclawb4c522f2018-10-28 19:51:47 +000014875int
14876main ()
14877{
Iain Buclawbb503122019-04-12 20:13:34 +000014878gzopen("none", "rb")
Iain Buclawb4c522f2018-10-28 19:51:47 +000014879 ;
14880 return 0;
14881}
14882_ACEOF
14883if ac_fn_c_try_link "$LINENO"; then :
Iain Buclawbb503122019-04-12 20:13:34 +000014884
14885 if test "$cross_compiling" = yes; then :
14886 system_zlib_found=no
14887
Iain Buclawb4c522f2018-10-28 19:51:47 +000014888else
Iain Buclawbb503122019-04-12 20:13:34 +000014889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890/* end confdefs.h. */
14891
14892 #include <zlib.h>
14893 int main() {
14894 gzFile file = gzopen("none", "rb");
14895 return 0;
14896 }
14897
14898_ACEOF
14899if ac_fn_c_try_run "$LINENO"; then :
14900 system_zlib_found=yes
14901else
14902 system_zlib_found=no
14903fi
14904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14905 conftest.$ac_objext conftest.beam conftest.$ac_ext
14906fi
14907
14908
14909else
14910 system_zlib_found=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000014911fi
14912rm -f core conftest.err conftest.$ac_objext \
14913 conftest$ac_exeext conftest.$ac_ext
Iain Buclawbb503122019-04-12 20:13:34 +000014914 LIBS=$save_LIBS
Iain Buclawb4c522f2018-10-28 19:51:47 +000014915
Iain Buclawbb503122019-04-12 20:13:34 +000014916 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14918$as_echo "found" >&6; }
14919 LIBS="$LIBS -lz"
14920 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
14921 as_fn_error $? "system zlib required but not found" "$LINENO" 5
14922 else
Iain Buclawb4c522f2018-10-28 19:51:47 +000014923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14924$as_echo "just compiled" >&6; }
Iain Buclawbb503122019-04-12 20:13:34 +000014925 LIBZ=../../zlib/libz_convenience.la
14926 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000014927
Iain Buclawb4c522f2018-10-28 19:51:47 +000014928
Iain Buclawbb503122019-04-12 20:13:34 +000014929 ac_ext=c
14930ac_cpp='$CPP $CPPFLAGS'
14931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14933ac_compiler_gnu=$ac_cv_c_compiler_gnu
Iain Buclawb4c522f2018-10-28 19:51:47 +000014934
14935
14936
14937
14938
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
14940$as_echo_n "checking D GCC version... " >&6; }
14941 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
14943$as_echo "$gcc_version" >&6; }
14944
14945
14946
14947# Check whether --with-cross-host was given.
14948if test "${with_cross_host+set}" = set; then :
14949 withval=$with_cross_host;
14950fi
14951
14952
Iain Buclawac677522018-11-02 08:29:50 +000014953 libphobos_toolexecdir=no
14954 libphobos_toolexeclibdir=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000014955
Iain Buclawac677522018-11-02 08:29:50 +000014956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
14957$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
14958 # Check whether --enable-version-specific-runtime-libs was given.
14959if test "${enable_version_specific_runtime_libs+set}" = set; then :
14960 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
14961 yes) version_specific_libs=yes ;;
14962 no) version_specific_libs=no ;;
14963 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
14964 esac
14965else
Iain Buclawb4c522f2018-10-28 19:51:47 +000014966 version_specific_libs=no
Iain Buclawac677522018-11-02 08:29:50 +000014967fi
14968
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
14970$as_echo "$version_specific_libs" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000014971
14972 # Version-specific runtime libs processing.
14973 if test $version_specific_libs = yes; then
Iain Buclawac677522018-11-02 08:29:50 +000014974 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
14975 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
Iain Buclawb4c522f2018-10-28 19:51:47 +000014976 else
Iain Buclawac677522018-11-02 08:29:50 +000014977 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
14978 # Install a library built with a cross compiler in tooldir, not libdir.
14979 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
14980 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
14981 libphobos_toolexeclibdir='${toolexecdir}/lib'
14982 else
14983 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
14984 libphobos_toolexeclibdir='${libdir}'
14985 fi
14986 multi_os_directory=`$GDC -print-multi-os-directory`
14987 case $multi_os_directory in
14988 .) ;; # Avoid trailing /.
14989 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
14990 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000014991 fi
14992
14993
14994
14995 # Default case for install directory for D sources files.
14996 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
14997
14998
14999
Rainer Orth0b6e3122019-02-14 17:47:49 +000015000# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15001if test "$DCFG_MINFO_BRACKETING" = "false"; then
15002 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15003else
15004 DRTSTUFF_SPEC=/dev/null
15005fi
15006
15007
Iain Buclawb4c522f2018-10-28 19:51:47 +000015008# Add dependencies for libgphobos.spec file
15009SPEC_PHOBOS_DEPS="$LIBS"
15010
15011
15012# Libdruntime / phobos soname version
Iain Buclaw85041a52018-11-28 17:54:07 +000015013libtool_VERSION=76:3:0
Iain Buclawb4c522f2018-10-28 19:51:47 +000015014
15015
15016# Set default flags (after DRUNTIME_WERROR!)
15017if test -z "$GDCFLAGS"; then
15018 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15019fi
15020
15021
15022if test -z "$GDCFLAGSX"; then
15023 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15024fi
15025
15026
15027# Sanity check for the cross-compilation case:
15028ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
Joseph Myers22e05272018-10-31 17:03:16 +000015029if test "x$ac_cv_header_stdio_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000015030 :
15031else
Joseph Myers22e05272018-10-31 17:03:16 +000015032 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000015033fi
15034
15035
15036
Iain Buclawac677522018-11-02 08:29:50 +000015037ac_config_files="$ac_config_files Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015038
15039
15040ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15041
15042ac_config_files="$ac_config_files src/libgphobos.spec"
15043
15044ac_config_files="$ac_config_files testsuite/testsuite_flags"
15045
15046
Iain Buclawac677522018-11-02 08:29:50 +000015047# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15048# that multilib installs will end up installed in the correct place.
15049# The testsuite needs it for multilib-aware ABI baseline files.
15050# To work around this not being passed down from config-ml.in ->
15051# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15052# append it here. Only modify Makefiles that have just been created.
15053#
15054# Also, get rid of this simulated-VPATH thing that automake does.
15055ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015056
15057
15058cat >confcache <<\_ACEOF
15059# This file is a shell script that caches the results of configure
15060# tests run on this system so they can be shared between configure
15061# scripts and configure runs, see configure's option --config-cache.
15062# It is not useful on other systems. If it contains results you don't
15063# want to keep, you may remove or edit it.
15064#
15065# config.status only pays attention to the cache file if you give it
15066# the --recheck option to rerun configure.
15067#
15068# `ac_cv_env_foo' variables (set or unset) will be overridden when
15069# loading this file, other *unset* `ac_cv_foo' will be assigned the
15070# following values.
15071
15072_ACEOF
15073
15074# The following way of writing the cache mishandles newlines in values,
15075# but we know of no workaround that is simple, portable, and efficient.
15076# So, we kill variables containing newlines.
15077# Ultrix sh set writes to stderr and can't be redirected directly,
15078# and sets the high bit in the cache file unless we assign to the vars.
15079(
15080 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15081 eval ac_val=\$$ac_var
15082 case $ac_val in #(
15083 *${as_nl}*)
15084 case $ac_var in #(
15085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15086$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15087 esac
15088 case $ac_var in #(
15089 _ | IFS | as_nl) ;; #(
15090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15091 *) { eval $ac_var=; unset $ac_var;} ;;
15092 esac ;;
15093 esac
15094 done
15095
15096 (set) 2>&1 |
15097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15098 *${as_nl}ac_space=\ *)
15099 # `set' does not quote correctly, so add quotes: double-quote
15100 # substitution turns \\\\ into \\, and sed turns \\ into \.
15101 sed -n \
15102 "s/'/'\\\\''/g;
15103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15104 ;; #(
15105 *)
15106 # `set' quotes correctly as required by POSIX, so do not add quotes.
15107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15108 ;;
15109 esac |
15110 sort
15111) |
15112 sed '
15113 /^ac_cv_env_/b end
15114 t clear
15115 :clear
15116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15117 t end
15118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15119 :end' >>confcache
15120if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15121 if test -w "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015122 if test "x$cache_file" != "x/dev/null"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000015123 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15124$as_echo "$as_me: updating cache $cache_file" >&6;}
Joseph Myers22e05272018-10-31 17:03:16 +000015125 if test ! -f "$cache_file" || test -h "$cache_file"; then
15126 cat confcache >"$cache_file"
15127 else
15128 case $cache_file in #(
15129 */* | ?:*)
15130 mv -f confcache "$cache_file"$$ &&
15131 mv -f "$cache_file"$$ "$cache_file" ;; #(
15132 *)
15133 mv -f confcache "$cache_file" ;;
15134 esac
15135 fi
15136 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015137 else
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15139$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15140 fi
15141fi
15142rm -f confcache
15143
15144test "x$prefix" = xNONE && prefix=$ac_default_prefix
15145# Let make expand exec_prefix.
15146test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15147
15148DEFS=-DHAVE_CONFIG_H
15149
15150ac_libobjs=
15151ac_ltlibobjs=
Joseph Myers22e05272018-10-31 17:03:16 +000015152U=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015153for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15154 # 1. Remove the extension, and $U if already installed.
15155 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15156 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15157 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15158 # will be set to the directory where LIBOBJS objects are built.
15159 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15160 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15161done
15162LIBOBJS=$ac_libobjs
15163
15164LTLIBOBJS=$ac_ltlibobjs
15165
15166
Joseph Myers22e05272018-10-31 17:03:16 +000015167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15168$as_echo_n "checking that generated files are newer than configure... " >&6; }
15169 if test -n "$am_sleep_pid"; then
15170 # Hide warnings about reused PIDs.
15171 wait $am_sleep_pid 2>/dev/null
15172 fi
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15174$as_echo "done" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015175 if test -n "$EXEEXT"; then
15176 am__EXEEXT_TRUE=
15177 am__EXEEXT_FALSE='#'
15178else
15179 am__EXEEXT_TRUE='#'
15180 am__EXEEXT_FALSE=
15181fi
15182
15183if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015184 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015185Usually this means the macro was only invoked conditionally." "$LINENO" 5
15186fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015187if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015188 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015189Usually this means the macro was only invoked conditionally." "$LINENO" 5
15190fi
15191if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015192 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015193Usually this means the macro was only invoked conditionally." "$LINENO" 5
15194fi
15195if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015196 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015197Usually this means the macro was only invoked conditionally." "$LINENO" 5
15198fi
15199if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015200 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015201Usually this means the macro was only invoked conditionally." "$LINENO" 5
15202fi
15203if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015204 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015205Usually this means the macro was only invoked conditionally." "$LINENO" 5
15206fi
15207if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015208 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015209Usually this means the macro was only invoked conditionally." "$LINENO" 5
15210fi
15211if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015212 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015213Usually this means the macro was only invoked conditionally." "$LINENO" 5
15214fi
15215if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015216 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015217Usually this means the macro was only invoked conditionally." "$LINENO" 5
15218fi
15219if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015220 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015221Usually this means the macro was only invoked conditionally." "$LINENO" 5
15222fi
15223if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015224 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015225Usually this means the macro was only invoked conditionally." "$LINENO" 5
15226fi
15227if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015228 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015229Usually this means the macro was only invoked conditionally." "$LINENO" 5
15230fi
15231if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015232 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015233Usually this means the macro was only invoked conditionally." "$LINENO" 5
15234fi
15235if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015236 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015237Usually this means the macro was only invoked conditionally." "$LINENO" 5
15238fi
Rainer Orth0b6e3122019-02-14 17:47:49 +000015239if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15240 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15241Usually this means the macro was only invoked conditionally." "$LINENO" 5
15242fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015243
Joseph Myers22e05272018-10-31 17:03:16 +000015244: "${CONFIG_STATUS=./config.status}"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015245ac_write_fail=0
15246ac_clean_files_save=$ac_clean_files
15247ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15248{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15249$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15250as_write_fail=0
15251cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15252#! $SHELL
15253# Generated by $as_me.
15254# Run this file to recreate the current configuration.
15255# Compiler output produced by configure, useful for debugging
15256# configure, is in config.log if it exists.
15257
15258debug=false
15259ac_cs_recheck=false
15260ac_cs_silent=false
15261
15262SHELL=\${CONFIG_SHELL-$SHELL}
15263export SHELL
15264_ASEOF
15265cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15266## -------------------- ##
15267## M4sh Initialization. ##
15268## -------------------- ##
15269
15270# Be more Bourne compatible
15271DUALCASE=1; export DUALCASE # for MKS sh
15272if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15273 emulate sh
15274 NULLCMD=:
15275 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15276 # is contrary to our usage. Disable this feature.
15277 alias -g '${1+"$@"}'='"$@"'
15278 setopt NO_GLOB_SUBST
15279else
15280 case `(set -o) 2>/dev/null` in #(
15281 *posix*) :
15282 set -o posix ;; #(
15283 *) :
15284 ;;
15285esac
15286fi
15287
15288
15289as_nl='
15290'
15291export as_nl
15292# Printing a long string crashes Solaris 7 /usr/bin/printf.
15293as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15294as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15295as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15296# Prefer a ksh shell builtin over an external printf program on Solaris,
15297# but without wasting forks for bash or zsh.
15298if test -z "$BASH_VERSION$ZSH_VERSION" \
15299 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15300 as_echo='print -r --'
15301 as_echo_n='print -rn --'
15302elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15303 as_echo='printf %s\n'
15304 as_echo_n='printf %s'
15305else
15306 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15307 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15308 as_echo_n='/usr/ucb/echo -n'
15309 else
15310 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15311 as_echo_n_body='eval
15312 arg=$1;
15313 case $arg in #(
15314 *"$as_nl"*)
15315 expr "X$arg" : "X\\(.*\\)$as_nl";
15316 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15317 esac;
15318 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15319 '
15320 export as_echo_n_body
15321 as_echo_n='sh -c $as_echo_n_body as_echo'
15322 fi
15323 export as_echo_body
15324 as_echo='sh -c $as_echo_body as_echo'
15325fi
15326
15327# The user is always right.
15328if test "${PATH_SEPARATOR+set}" != set; then
15329 PATH_SEPARATOR=:
15330 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15331 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15332 PATH_SEPARATOR=';'
15333 }
15334fi
15335
15336
15337# IFS
15338# We need space, tab and new line, in precisely that order. Quoting is
15339# there to prevent editors from complaining about space-tab.
15340# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15341# splitting by setting IFS to empty value.)
15342IFS=" "" $as_nl"
15343
15344# Find who we are. Look in the path if we contain no directory separator.
Joseph Myers22e05272018-10-31 17:03:16 +000015345as_myself=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015346case $0 in #((
15347 *[\\/]* ) as_myself=$0 ;;
15348 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15349for as_dir in $PATH
15350do
15351 IFS=$as_save_IFS
15352 test -z "$as_dir" && as_dir=.
15353 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15354 done
15355IFS=$as_save_IFS
15356
15357 ;;
15358esac
15359# We did not find ourselves, most probably we were run as `sh COMMAND'
15360# in which case we are not to be found in the path.
15361if test "x$as_myself" = x; then
15362 as_myself=$0
15363fi
15364if test ! -f "$as_myself"; then
15365 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15366 exit 1
15367fi
15368
15369# Unset variables that we do not need and which cause bugs (e.g. in
15370# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15371# suppresses any "Segmentation fault" message there. '((' could
15372# trigger a bug in pdksh 5.2.14.
15373for as_var in BASH_ENV ENV MAIL MAILPATH
15374do eval test x\${$as_var+set} = xset \
15375 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15376done
15377PS1='$ '
15378PS2='> '
15379PS4='+ '
15380
15381# NLS nuisances.
15382LC_ALL=C
15383export LC_ALL
15384LANGUAGE=C
15385export LANGUAGE
15386
15387# CDPATH.
15388(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15389
15390
Joseph Myers22e05272018-10-31 17:03:16 +000015391# as_fn_error STATUS ERROR [LINENO LOG_FD]
15392# ----------------------------------------
Iain Buclawb4c522f2018-10-28 19:51:47 +000015393# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15394# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Joseph Myers22e05272018-10-31 17:03:16 +000015395# script with STATUS, using 1 if that was 0.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015396as_fn_error ()
15397{
Joseph Myers22e05272018-10-31 17:03:16 +000015398 as_status=$1; test $as_status -eq 0 && as_status=1
15399 if test "$4"; then
15400 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15401 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Iain Buclawb4c522f2018-10-28 19:51:47 +000015402 fi
Joseph Myers22e05272018-10-31 17:03:16 +000015403 $as_echo "$as_me: error: $2" >&2
Iain Buclawb4c522f2018-10-28 19:51:47 +000015404 as_fn_exit $as_status
15405} # as_fn_error
15406
15407
15408# as_fn_set_status STATUS
15409# -----------------------
15410# Set $? to STATUS, without forking.
15411as_fn_set_status ()
15412{
15413 return $1
15414} # as_fn_set_status
15415
15416# as_fn_exit STATUS
15417# -----------------
15418# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15419as_fn_exit ()
15420{
15421 set +e
15422 as_fn_set_status $1
15423 exit $1
15424} # as_fn_exit
15425
15426# as_fn_unset VAR
15427# ---------------
15428# Portably unset VAR.
15429as_fn_unset ()
15430{
15431 { eval $1=; unset $1;}
15432}
15433as_unset=as_fn_unset
15434# as_fn_append VAR VALUE
15435# ----------------------
15436# Append the text in VALUE to the end of the definition contained in VAR. Take
15437# advantage of any shell optimizations that allow amortized linear growth over
15438# repeated appends, instead of the typical quadratic growth present in naive
15439# implementations.
15440if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15441 eval 'as_fn_append ()
15442 {
15443 eval $1+=\$2
15444 }'
15445else
15446 as_fn_append ()
15447 {
15448 eval $1=\$$1\$2
15449 }
15450fi # as_fn_append
15451
15452# as_fn_arith ARG...
15453# ------------------
15454# Perform arithmetic evaluation on the ARGs, and store the result in the
15455# global $as_val. Take advantage of shells that can avoid forks. The arguments
15456# must be portable across $(()) and expr.
15457if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15458 eval 'as_fn_arith ()
15459 {
15460 as_val=$(( $* ))
15461 }'
15462else
15463 as_fn_arith ()
15464 {
15465 as_val=`expr "$@" || test $? -eq 1`
15466 }
15467fi # as_fn_arith
15468
15469
15470if expr a : '\(a\)' >/dev/null 2>&1 &&
15471 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15472 as_expr=expr
15473else
15474 as_expr=false
15475fi
15476
15477if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15478 as_basename=basename
15479else
15480 as_basename=false
15481fi
15482
15483if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15484 as_dirname=dirname
15485else
15486 as_dirname=false
15487fi
15488
15489as_me=`$as_basename -- "$0" ||
15490$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15491 X"$0" : 'X\(//\)$' \| \
15492 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15493$as_echo X/"$0" |
15494 sed '/^.*\/\([^/][^/]*\)\/*$/{
15495 s//\1/
15496 q
15497 }
15498 /^X\/\(\/\/\)$/{
15499 s//\1/
15500 q
15501 }
15502 /^X\/\(\/\).*/{
15503 s//\1/
15504 q
15505 }
15506 s/.*/./; q'`
15507
15508# Avoid depending upon Character Ranges.
15509as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15510as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15511as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15512as_cr_digits='0123456789'
15513as_cr_alnum=$as_cr_Letters$as_cr_digits
15514
15515ECHO_C= ECHO_N= ECHO_T=
15516case `echo -n x` in #(((((
15517-n*)
15518 case `echo 'xy\c'` in
15519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15520 xy) ECHO_C='\c';;
15521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15522 ECHO_T=' ';;
15523 esac;;
15524*)
15525 ECHO_N='-n';;
15526esac
15527
15528rm -f conf$$ conf$$.exe conf$$.file
15529if test -d conf$$.dir; then
15530 rm -f conf$$.dir/conf$$.file
15531else
15532 rm -f conf$$.dir
15533 mkdir conf$$.dir 2>/dev/null
15534fi
15535if (echo >conf$$.file) 2>/dev/null; then
15536 if ln -s conf$$.file conf$$ 2>/dev/null; then
15537 as_ln_s='ln -s'
15538 # ... but there are two gotchas:
15539 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15540 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Joseph Myers22e05272018-10-31 17:03:16 +000015541 # In both cases, we have to default to `cp -pR'.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015542 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Joseph Myers22e05272018-10-31 17:03:16 +000015543 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015544 elif ln conf$$.file conf$$ 2>/dev/null; then
15545 as_ln_s=ln
15546 else
Joseph Myers22e05272018-10-31 17:03:16 +000015547 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015548 fi
15549else
Joseph Myers22e05272018-10-31 17:03:16 +000015550 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015551fi
15552rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15553rmdir conf$$.dir 2>/dev/null
15554
15555
15556# as_fn_mkdir_p
15557# -------------
15558# Create "$as_dir" as a directory, including parents if necessary.
15559as_fn_mkdir_p ()
15560{
15561
15562 case $as_dir in #(
15563 -*) as_dir=./$as_dir;;
15564 esac
15565 test -d "$as_dir" || eval $as_mkdir_p || {
15566 as_dirs=
15567 while :; do
15568 case $as_dir in #(
15569 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15570 *) as_qdir=$as_dir;;
15571 esac
15572 as_dirs="'$as_qdir' $as_dirs"
15573 as_dir=`$as_dirname -- "$as_dir" ||
15574$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15575 X"$as_dir" : 'X\(//\)[^/]' \| \
15576 X"$as_dir" : 'X\(//\)$' \| \
15577 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15578$as_echo X"$as_dir" |
15579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15580 s//\1/
15581 q
15582 }
15583 /^X\(\/\/\)[^/].*/{
15584 s//\1/
15585 q
15586 }
15587 /^X\(\/\/\)$/{
15588 s//\1/
15589 q
15590 }
15591 /^X\(\/\).*/{
15592 s//\1/
15593 q
15594 }
15595 s/.*/./; q'`
15596 test -d "$as_dir" && break
15597 done
15598 test -z "$as_dirs" || eval "mkdir $as_dirs"
Joseph Myers22e05272018-10-31 17:03:16 +000015599 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015600
15601
15602} # as_fn_mkdir_p
15603if mkdir -p . 2>/dev/null; then
15604 as_mkdir_p='mkdir -p "$as_dir"'
15605else
15606 test -d ./-p && rmdir ./-p
15607 as_mkdir_p=false
15608fi
15609
Joseph Myers22e05272018-10-31 17:03:16 +000015610
15611# as_fn_executable_p FILE
15612# -----------------------
15613# Test if FILE is an executable regular file.
15614as_fn_executable_p ()
15615{
15616 test -f "$1" && test -x "$1"
15617} # as_fn_executable_p
15618as_test_x='test -x'
15619as_executable_p=as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +000015620
15621# Sed expression to map a string onto a valid CPP name.
15622as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15623
15624# Sed expression to map a string onto a valid variable name.
15625as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15626
15627
15628exec 6>&1
15629## ----------------------------------- ##
15630## Main body of $CONFIG_STATUS script. ##
15631## ----------------------------------- ##
15632_ASEOF
15633test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15634
15635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15636# Save the log message, to keep $0 and so on meaningful, and to
15637# report actual input values of CONFIG_FILES etc. instead of their
15638# values after options handling.
15639ac_log="
15640This file was extended by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +000015641generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +000015642
15643 CONFIG_FILES = $CONFIG_FILES
15644 CONFIG_HEADERS = $CONFIG_HEADERS
15645 CONFIG_LINKS = $CONFIG_LINKS
15646 CONFIG_COMMANDS = $CONFIG_COMMANDS
15647 $ $0 $@
15648
15649on `(hostname || uname -n) 2>/dev/null | sed 1q`
15650"
15651
15652_ACEOF
15653
15654case $ac_config_files in *"
15655"*) set x $ac_config_files; shift; ac_config_files=$*;;
15656esac
15657
15658case $ac_config_headers in *"
15659"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15660esac
15661
15662
15663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15664# Files that config.status was made for.
15665config_files="$ac_config_files"
15666config_headers="$ac_config_headers"
15667config_commands="$ac_config_commands"
15668
15669_ACEOF
15670
15671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15672ac_cs_usage="\
15673\`$as_me' instantiates files and other configuration actions
15674from templates according to the current configuration. Unless the files
15675and actions are specified as TAGs, all are instantiated by default.
15676
15677Usage: $0 [OPTION]... [TAG]...
15678
15679 -h, --help print this help, then exit
15680 -V, --version print version number and configuration settings, then exit
Joseph Myers22e05272018-10-31 17:03:16 +000015681 --config print configuration, then exit
Iain Buclawb4c522f2018-10-28 19:51:47 +000015682 -q, --quiet, --silent
15683 do not print progress messages
15684 -d, --debug don't remove temporary files
15685 --recheck update $as_me by reconfiguring in the same conditions
15686 --file=FILE[:TEMPLATE]
15687 instantiate the configuration file FILE
15688 --header=FILE[:TEMPLATE]
15689 instantiate the configuration header FILE
15690
15691Configuration files:
15692$config_files
15693
15694Configuration headers:
15695$config_headers
15696
15697Configuration commands:
15698$config_commands
15699
15700Report bugs to the package provider."
15701
15702_ACEOF
15703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000015704ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015705ac_cs_version="\\
15706package-unused config.status version-unused
Joseph Myers22e05272018-10-31 17:03:16 +000015707configured by $0, generated by GNU Autoconf 2.69,
15708 with options \\"\$ac_cs_config\\"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015709
Rainer Orth0b6e3122019-02-14 17:47:49 +000015710Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015711This config.status script is free software; the Free Software Foundation
15712gives unlimited permission to copy, distribute and modify it."
15713
15714ac_pwd='$ac_pwd'
15715srcdir='$srcdir'
15716INSTALL='$INSTALL'
15717MKDIR_P='$MKDIR_P'
15718AWK='$AWK'
15719test -n "\$AWK" || AWK=awk
15720_ACEOF
15721
15722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15723# The default lists apply if the user does not specify any file.
15724ac_need_defaults=:
15725while test $# != 0
15726do
15727 case $1 in
Joseph Myers22e05272018-10-31 17:03:16 +000015728 --*=?*)
Iain Buclawb4c522f2018-10-28 19:51:47 +000015729 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15730 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15731 ac_shift=:
15732 ;;
Joseph Myers22e05272018-10-31 17:03:16 +000015733 --*=)
15734 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15735 ac_optarg=
15736 ac_shift=:
15737 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000015738 *)
15739 ac_option=$1
15740 ac_optarg=$2
15741 ac_shift=shift
15742 ;;
15743 esac
15744
15745 case $ac_option in
15746 # Handling of the options.
15747 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15748 ac_cs_recheck=: ;;
15749 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15750 $as_echo "$ac_cs_version"; exit ;;
Joseph Myers22e05272018-10-31 17:03:16 +000015751 --config | --confi | --conf | --con | --co | --c )
15752 $as_echo "$ac_cs_config"; exit ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000015753 --debug | --debu | --deb | --de | --d | -d )
15754 debug=: ;;
15755 --file | --fil | --fi | --f )
15756 $ac_shift
15757 case $ac_optarg in
15758 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Joseph Myers22e05272018-10-31 17:03:16 +000015759 '') as_fn_error $? "missing file argument" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000015760 esac
15761 as_fn_append CONFIG_FILES " '$ac_optarg'"
15762 ac_need_defaults=false;;
15763 --header | --heade | --head | --hea )
15764 $ac_shift
15765 case $ac_optarg in
15766 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15767 esac
15768 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15769 ac_need_defaults=false;;
15770 --he | --h)
15771 # Conflict between --help and --header
Joseph Myers22e05272018-10-31 17:03:16 +000015772 as_fn_error $? "ambiguous option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015773Try \`$0 --help' for more information.";;
15774 --help | --hel | -h )
15775 $as_echo "$ac_cs_usage"; exit ;;
15776 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15777 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15778 ac_cs_silent=: ;;
15779
15780 # This is an error.
Joseph Myers22e05272018-10-31 17:03:16 +000015781 -*) as_fn_error $? "unrecognized option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015782Try \`$0 --help' for more information." ;;
15783
15784 *) as_fn_append ac_config_targets " $1"
15785 ac_need_defaults=false ;;
15786
15787 esac
15788 shift
15789done
15790
15791ac_configure_extra_args=
15792
15793if $ac_cs_silent; then
15794 exec 6>/dev/null
15795 ac_configure_extra_args="$ac_configure_extra_args --silent"
15796fi
15797
15798_ACEOF
15799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15800if \$ac_cs_recheck; then
Joseph Myers22e05272018-10-31 17:03:16 +000015801 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Iain Buclawb4c522f2018-10-28 19:51:47 +000015802 shift
15803 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15804 CONFIG_SHELL='$SHELL'
15805 export CONFIG_SHELL
15806 exec "\$@"
15807fi
15808
15809_ACEOF
15810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15811exec 5>>config.log
15812{
15813 echo
15814 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15815## Running $as_me. ##
15816_ASBOX
15817 $as_echo "$ac_log"
15818} >&5
15819
15820_ACEOF
15821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15822#
15823# INIT-COMMANDS
15824#
15825
15826srcdir="$srcdir"
15827host="$host"
15828target="$target"
15829with_multisubdir="$with_multisubdir"
15830with_multisrctop="$with_multisrctop"
15831with_target_subdir="$with_target_subdir"
15832ac_configure_args="${multilib_arg} ${ac_configure_args}"
15833multi_basedir="$multi_basedir"
15834CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15835CC="$CC"
15836CXX="$CXX"
15837GFORTRAN="$GFORTRAN"
15838GDC="$GDC"
15839
15840
15841# The HP-UX ksh and POSIX shell print the target directory to stdout
15842# if CDPATH is set.
15843(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15844
15845sed_quote_subst='$sed_quote_subst'
15846double_quote_subst='$double_quote_subst'
15847delay_variable_subst='$delay_variable_subst'
15848macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15849macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15850enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15851enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15852pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15853enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15854SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15855ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15856host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15857host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15858host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15859build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15860build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15861build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15862SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15863Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15864GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15865EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15866FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15867LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15868NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15869LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15870max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15871ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15872exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15873lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15874lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15875lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15876reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15877reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15878OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15879deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15880file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15881AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15882AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15883STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15884RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15885old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15886old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15887old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15888lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15889CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15890CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15891compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15892GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15893lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15894lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15895lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15896lt_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"`'
15897objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15898MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15899lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15900lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15901lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15902lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15903lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15904need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15905DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15906NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15907LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15908OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15909OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15910libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15911shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15912extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15913archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15914enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15915export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15916whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15917compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15918old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15919old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15920archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15921archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15922module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15923module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15924with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15925allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15926no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15927hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15928hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15929hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15930hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15931hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15932hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15933hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15934hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15935inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15936link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15937fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15938always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15939export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15940exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15941include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15942prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15943file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15944variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15945need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15946need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15947version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15948runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15949shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15950shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15951libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15952library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15953soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15954install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15955postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15956postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15957finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15958finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15959hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15960sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15961sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15962hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15963enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15964enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15965enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15966old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15967striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15968LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
15969reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
15970reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
15971old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15972compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
15973GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
15974lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
15975lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
15976lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
15977lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
15978lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
15979archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
15980enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
15981export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15982whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15983compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
15984old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
15985old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
15986archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15987archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15988module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
15989module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15990with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
15991allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15992no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15993hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15994hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
15995hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
15996hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
15997hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
15998hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
15999hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16000hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16001inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16002link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16003fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16004always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16005export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16006exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16007include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16008prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16009file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16010hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16011
16012LTCC='$LTCC'
16013LTCFLAGS='$LTCFLAGS'
16014compiler='$compiler_DEFAULT'
16015
16016# A function that is used when there is no print builtin or printf.
16017func_fallback_echo ()
16018{
16019 eval 'cat <<_LTECHO_EOF
16020\$1
16021_LTECHO_EOF'
16022}
16023
16024# Quote evaled strings.
16025for var in SHELL \
16026ECHO \
16027SED \
16028GREP \
16029EGREP \
16030FGREP \
16031LD \
16032NM \
16033LN_S \
16034lt_SP2NL \
16035lt_NL2SP \
16036reload_flag \
16037OBJDUMP \
16038deplibs_check_method \
16039file_magic_cmd \
16040AR \
16041AR_FLAGS \
16042STRIP \
16043RANLIB \
16044CC \
16045CFLAGS \
16046compiler \
16047lt_cv_sys_global_symbol_pipe \
16048lt_cv_sys_global_symbol_to_cdecl \
16049lt_cv_sys_global_symbol_to_c_name_address \
16050lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16051lt_prog_compiler_no_builtin_flag \
16052lt_prog_compiler_wl \
16053lt_prog_compiler_pic \
16054lt_prog_compiler_static \
16055lt_cv_prog_compiler_c_o \
16056need_locks \
16057DSYMUTIL \
16058NMEDIT \
16059LIPO \
16060OTOOL \
16061OTOOL64 \
16062shrext_cmds \
16063export_dynamic_flag_spec \
16064whole_archive_flag_spec \
16065compiler_needs_object \
16066with_gnu_ld \
16067allow_undefined_flag \
16068no_undefined_flag \
16069hardcode_libdir_flag_spec \
16070hardcode_libdir_flag_spec_ld \
16071hardcode_libdir_separator \
16072fix_srcfile_path \
16073exclude_expsyms \
16074include_expsyms \
16075file_list_spec \
16076variables_saved_for_relink \
16077libname_spec \
16078library_names_spec \
16079soname_spec \
16080install_override_mode \
16081finish_eval \
16082old_striplib \
16083striplib \
16084LD_D \
16085reload_flag_D \
16086compiler_D \
16087lt_prog_compiler_no_builtin_flag_D \
16088lt_prog_compiler_wl_D \
16089lt_prog_compiler_pic_D \
16090lt_prog_compiler_static_D \
16091lt_cv_prog_compiler_c_o_D \
16092export_dynamic_flag_spec_D \
16093whole_archive_flag_spec_D \
16094compiler_needs_object_D \
16095with_gnu_ld_D \
16096allow_undefined_flag_D \
16097no_undefined_flag_D \
16098hardcode_libdir_flag_spec_D \
16099hardcode_libdir_flag_spec_ld_D \
16100hardcode_libdir_separator_D \
16101fix_srcfile_path_D \
16102exclude_expsyms_D \
16103include_expsyms_D \
16104file_list_spec_D; do
16105 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16106 *[\\\\\\\`\\"\\\$]*)
16107 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16108 ;;
16109 *)
16110 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16111 ;;
16112 esac
16113done
16114
16115# Double-quote double-evaled strings.
16116for var in reload_cmds \
16117old_postinstall_cmds \
16118old_postuninstall_cmds \
16119old_archive_cmds \
16120extract_expsyms_cmds \
16121old_archive_from_new_cmds \
16122old_archive_from_expsyms_cmds \
16123archive_cmds \
16124archive_expsym_cmds \
16125module_cmds \
16126module_expsym_cmds \
16127export_symbols_cmds \
16128prelink_cmds \
16129postinstall_cmds \
16130postuninstall_cmds \
16131finish_cmds \
16132sys_lib_search_path_spec \
16133sys_lib_dlsearch_path_spec \
16134reload_cmds_D \
16135old_archive_cmds_D \
16136old_archive_from_new_cmds_D \
16137old_archive_from_expsyms_cmds_D \
16138archive_cmds_D \
16139archive_expsym_cmds_D \
16140module_cmds_D \
16141module_expsym_cmds_D \
16142export_symbols_cmds_D \
16143prelink_cmds_D; do
16144 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16145 *[\\\\\\\`\\"\\\$]*)
16146 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16147 ;;
16148 *)
16149 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16150 ;;
16151 esac
16152done
16153
16154ac_aux_dir='$ac_aux_dir'
16155xsi_shell='$xsi_shell'
16156lt_shell_append='$lt_shell_append'
16157
16158# See if we are running on zsh, and set the options which allow our
16159# commands through without removal of \ escapes INIT.
16160if test -n "\${ZSH_VERSION+set}" ; then
16161 setopt NO_GLOB_SUBST
16162fi
16163
16164
16165 PACKAGE='$PACKAGE'
16166 VERSION='$VERSION'
16167 TIMESTAMP='$TIMESTAMP'
16168 RM='$RM'
16169 ofile='$ofile'
16170
16171
16172
16173
16174
16175
Iain Buclawb4c522f2018-10-28 19:51:47 +000016176_ACEOF
16177
16178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16179
16180# Handling of arguments.
16181for ac_config_target in $ac_config_targets
16182do
16183 case $ac_config_target in
16184 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16185 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16186 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16187 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016188 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16189 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16190 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16191 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
Iain Buclawac677522018-11-02 08:29:50 +000016192 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16193 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16194 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016195
Joseph Myers22e05272018-10-31 17:03:16 +000016196 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016197 esac
16198done
16199
16200
16201# If the user did not use the arguments to specify the items to instantiate,
16202# then the envvar interface is used. Set only those that are not.
16203# We use the long form for the default assignment because of an extremely
16204# bizarre bug on SunOS 4.1.3.
16205if $ac_need_defaults; then
16206 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16207 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16208 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16209fi
16210
16211# Have a temporary directory for convenience. Make it in the build tree
16212# simply because there is no reason against having it here, and in addition,
16213# creating and moving files from /tmp can sometimes cause problems.
16214# Hook for its removal unless debugging.
16215# Note that there is a small window in which the directory will not be cleaned:
16216# after its creation but before its name has been assigned to `$tmp'.
16217$debug ||
16218{
Joseph Myers22e05272018-10-31 17:03:16 +000016219 tmp= ac_tmp=
Iain Buclawb4c522f2018-10-28 19:51:47 +000016220 trap 'exit_status=$?
Joseph Myers22e05272018-10-31 17:03:16 +000016221 : "${ac_tmp:=$tmp}"
16222 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Iain Buclawb4c522f2018-10-28 19:51:47 +000016223' 0
16224 trap 'as_fn_exit 1' 1 2 13 15
16225}
16226# Create a (secure) tmp directory for tmp files.
16227
16228{
16229 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Joseph Myers22e05272018-10-31 17:03:16 +000016230 test -d "$tmp"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016231} ||
16232{
16233 tmp=./conf$$-$RANDOM
16234 (umask 077 && mkdir "$tmp")
Joseph Myers22e05272018-10-31 17:03:16 +000016235} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16236ac_tmp=$tmp
Iain Buclawb4c522f2018-10-28 19:51:47 +000016237
16238# Set up the scripts for CONFIG_FILES section.
16239# No need to generate them if there are no CONFIG_FILES.
16240# This happens for instance with `./config.status config.h'.
16241if test -n "$CONFIG_FILES"; then
16242
Rainer Orth0b6e3122019-02-14 17:47:49 +000016243if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16244 ac_cs_awk_getline=:
16245 ac_cs_awk_pipe_init=
16246 ac_cs_awk_read_file='
16247 while ((getline aline < (F[key])) > 0)
16248 print(aline)
16249 close(F[key])'
16250 ac_cs_awk_pipe_fini=
16251else
16252 ac_cs_awk_getline=false
16253 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16254 ac_cs_awk_read_file='
16255 print "|#_!!_#|"
16256 print "cat " F[key] " &&"
16257 '$ac_cs_awk_pipe_init
16258 # The final `:' finishes the AND list.
16259 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16260fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000016261ac_cr=`echo X | tr X '\015'`
16262# On cygwin, bash can eat \r inside `` if the user requested igncr.
16263# But we know of no other shell where ac_cr would be empty at this
16264# point, so we can use a bashism as a fallback.
16265if test "x$ac_cr" = x; then
16266 eval ac_cr=\$\'\\r\'
16267fi
16268ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16269if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016270 ac_cs_awk_cr='\\r'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016271else
16272 ac_cs_awk_cr=$ac_cr
16273fi
16274
Joseph Myers22e05272018-10-31 17:03:16 +000016275echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016276_ACEOF
16277
Rainer Orth0b6e3122019-02-14 17:47:49 +000016278# Create commands to substitute file output variables.
16279{
16280 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16281 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16282 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16283 echo "_ACAWK" &&
16284 echo "_ACEOF"
16285} >conf$$files.sh &&
16286. ./conf$$files.sh ||
16287 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16288rm -f conf$$files.sh
Iain Buclawb4c522f2018-10-28 19:51:47 +000016289
16290{
16291 echo "cat >conf$$subs.awk <<_ACEOF" &&
16292 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16293 echo "_ACEOF"
16294} >conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16296ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Iain Buclawb4c522f2018-10-28 19:51:47 +000016297ac_delim='%!_!# '
16298for ac_last_try in false false false false false :; do
16299 . ./conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016300 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016301
16302 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16303 if test $ac_delim_n = $ac_delim_num; then
16304 break
16305 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016306 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016307 else
16308 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16309 fi
16310done
16311rm -f conf$$subs.sh
16312
16313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016314cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016315_ACEOF
16316sed -n '
16317h
16318s/^/S["/; s/!.*/"]=/
16319p
16320g
16321s/^[^!]*!//
16322:repl
16323t repl
16324s/'"$ac_delim"'$//
16325t delim
16326:nl
16327h
Joseph Myers22e05272018-10-31 17:03:16 +000016328s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016329t more1
16330s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16331p
16332n
16333b repl
16334:more1
16335s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16336p
16337g
16338s/.\{148\}//
16339t nl
16340:delim
16341h
Joseph Myers22e05272018-10-31 17:03:16 +000016342s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016343t more2
16344s/["\\]/\\&/g; s/^/"/; s/$/"/
16345p
16346b
16347:more2
16348s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16349p
16350g
16351s/.\{148\}//
16352t delim
16353' <conf$$subs.awk | sed '
16354/^[^""]/{
16355 N
16356 s/\n//
16357}
16358' >>$CONFIG_STATUS || ac_write_fail=1
16359rm -f conf$$subs.awk
16360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16361_ACAWK
Joseph Myers22e05272018-10-31 17:03:16 +000016362cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016363 for (key in S) S_is_set[key] = 1
16364 FS = ""
Rainer Orth0b6e3122019-02-14 17:47:49 +000016365 \$ac_cs_awk_pipe_init
Iain Buclawb4c522f2018-10-28 19:51:47 +000016366}
16367{
16368 line = $ 0
16369 nfields = split(line, field, "@")
16370 substed = 0
16371 len = length(field[1])
16372 for (i = 2; i < nfields; i++) {
16373 key = field[i]
16374 keylen = length(key)
16375 if (S_is_set[key]) {
16376 value = S[key]
16377 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16378 len += length(value) + length(field[++i])
16379 substed = 1
16380 } else
16381 len += 1 + keylen
16382 }
Rainer Orth0b6e3122019-02-14 17:47:49 +000016383 if (nfields == 3 && !substed) {
16384 key = field[2]
16385 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16386 \$ac_cs_awk_read_file
16387 next
16388 }
16389 }
Iain Buclawb4c522f2018-10-28 19:51:47 +000016390 print line
16391}
Rainer Orth0b6e3122019-02-14 17:47:49 +000016392\$ac_cs_awk_pipe_fini
Iain Buclawb4c522f2018-10-28 19:51:47 +000016393_ACAWK
16394_ACEOF
16395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16396if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16397 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16398else
16399 cat
Joseph Myers22e05272018-10-31 17:03:16 +000016400fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16401 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016402_ACEOF
16403
Joseph Myers22e05272018-10-31 17:03:16 +000016404# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16405# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Iain Buclawb4c522f2018-10-28 19:51:47 +000016406# trailing colons and then remove the whole line if VPATH becomes empty
16407# (actually we leave an empty line to preserve line numbers).
16408if test "x$srcdir" = x.; then
Joseph Myers22e05272018-10-31 17:03:16 +000016409 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16410h
16411s///
16412s/^/:/
16413s/[ ]*$/:/
16414s/:\$(srcdir):/:/g
16415s/:\${srcdir}:/:/g
16416s/:@srcdir@:/:/g
16417s/^:*//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016418s/:*$//
Joseph Myers22e05272018-10-31 17:03:16 +000016419x
16420s/\(=[ ]*\).*/\1/
16421G
16422s/\n//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016423s/^[^=]*=[ ]*$//
16424}'
16425fi
16426
16427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16428fi # test -n "$CONFIG_FILES"
16429
16430# Set up the scripts for CONFIG_HEADERS section.
16431# No need to generate them if there are no CONFIG_HEADERS.
16432# This happens for instance with `./config.status Makefile'.
16433if test -n "$CONFIG_HEADERS"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016434cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Iain Buclawb4c522f2018-10-28 19:51:47 +000016435BEGIN {
16436_ACEOF
16437
16438# Transform confdefs.h into an awk script `defines.awk', embedded as
16439# here-document in config.status, that substitutes the proper values into
16440# config.h.in to produce config.h.
16441
16442# Create a delimiter string that does not exist in confdefs.h, to ease
16443# handling of long lines.
16444ac_delim='%!_!# '
16445for ac_last_try in false false :; do
Joseph Myers22e05272018-10-31 17:03:16 +000016446 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16447 if test -z "$ac_tt"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000016448 break
16449 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016450 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016451 else
16452 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16453 fi
16454done
16455
16456# For the awk script, D is an array of macro values keyed by name,
16457# likewise P contains macro parameters if any. Preserve backslash
16458# newline sequences.
16459
16460ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16461sed -n '
16462s/.\{148\}/&'"$ac_delim"'/g
16463t rset
16464:rset
16465s/^[ ]*#[ ]*define[ ][ ]*/ /
16466t def
16467d
16468:def
16469s/\\$//
16470t bsnl
16471s/["\\]/\\&/g
16472s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16473D["\1"]=" \3"/p
16474s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16475d
16476:bsnl
16477s/["\\]/\\&/g
16478s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16479D["\1"]=" \3\\\\\\n"\\/p
16480t cont
16481s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16482t cont
16483d
16484:cont
16485n
16486s/.\{148\}/&'"$ac_delim"'/g
16487t clear
16488:clear
16489s/\\$//
16490t bsnlc
16491s/["\\]/\\&/g; s/^/"/; s/$/"/p
16492d
16493:bsnlc
16494s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16495b cont
16496' <confdefs.h | sed '
16497s/'"$ac_delim"'/"\\\
16498"/g' >>$CONFIG_STATUS || ac_write_fail=1
16499
16500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16501 for (key in D) D_is_set[key] = 1
16502 FS = ""
16503}
16504/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16505 line = \$ 0
16506 split(line, arg, " ")
16507 if (arg[1] == "#") {
16508 defundef = arg[2]
16509 mac1 = arg[3]
16510 } else {
16511 defundef = substr(arg[1], 2)
16512 mac1 = arg[2]
16513 }
16514 split(mac1, mac2, "(") #)
16515 macro = mac2[1]
16516 prefix = substr(line, 1, index(line, defundef) - 1)
16517 if (D_is_set[macro]) {
16518 # Preserve the white space surrounding the "#".
16519 print prefix "define", macro P[macro] D[macro]
16520 next
16521 } else {
16522 # Replace #undef with comments. This is necessary, for example,
16523 # in the case of _POSIX_SOURCE, which is predefined and required
16524 # on some systems where configure will not decide to define it.
16525 if (defundef == "undef") {
16526 print "/*", prefix defundef, macro, "*/"
16527 next
16528 }
16529 }
16530}
16531{ print }
16532_ACAWK
16533_ACEOF
16534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016535 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016536fi # test -n "$CONFIG_HEADERS"
16537
16538
16539eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16540shift
16541for ac_tag
16542do
16543 case $ac_tag in
16544 :[FHLC]) ac_mode=$ac_tag; continue;;
16545 esac
16546 case $ac_mode$ac_tag in
16547 :[FHL]*:*);;
Joseph Myers22e05272018-10-31 17:03:16 +000016548 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016549 :[FH]-) ac_tag=-:-;;
16550 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16551 esac
16552 ac_save_IFS=$IFS
16553 IFS=:
16554 set x $ac_tag
16555 IFS=$ac_save_IFS
16556 shift
16557 ac_file=$1
16558 shift
16559
16560 case $ac_mode in
16561 :L) ac_source=$1;;
16562 :[FH])
16563 ac_file_inputs=
16564 for ac_f
16565 do
16566 case $ac_f in
Joseph Myers22e05272018-10-31 17:03:16 +000016567 -) ac_f="$ac_tmp/stdin";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016568 *) # Look for the file first in the build tree, then in the source tree
16569 # (if the path is not absolute). The absolute path cannot be DOS-style,
16570 # because $ac_f cannot contain `:'.
16571 test -f "$ac_f" ||
16572 case $ac_f in
16573 [\\/$]*) false;;
16574 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16575 esac ||
Joseph Myers22e05272018-10-31 17:03:16 +000016576 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016577 esac
16578 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16579 as_fn_append ac_file_inputs " '$ac_f'"
16580 done
16581
16582 # Let's still pretend it is `configure' which instantiates (i.e., don't
16583 # use $as_me), people would be surprised to read:
16584 # /* config.h. Generated by config.status. */
16585 configure_input='Generated from '`
16586 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16587 `' by configure.'
16588 if test x"$ac_file" != x-; then
16589 configure_input="$ac_file. $configure_input"
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16591$as_echo "$as_me: creating $ac_file" >&6;}
16592 fi
16593 # Neutralize special characters interpreted by sed in replacement strings.
16594 case $configure_input in #(
16595 *\&* | *\|* | *\\* )
16596 ac_sed_conf_input=`$as_echo "$configure_input" |
16597 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16598 *) ac_sed_conf_input=$configure_input;;
16599 esac
16600
16601 case $ac_tag in
Joseph Myers22e05272018-10-31 17:03:16 +000016602 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16603 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016604 esac
16605 ;;
16606 esac
16607
16608 ac_dir=`$as_dirname -- "$ac_file" ||
16609$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16610 X"$ac_file" : 'X\(//\)[^/]' \| \
16611 X"$ac_file" : 'X\(//\)$' \| \
16612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16613$as_echo X"$ac_file" |
16614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16615 s//\1/
16616 q
16617 }
16618 /^X\(\/\/\)[^/].*/{
16619 s//\1/
16620 q
16621 }
16622 /^X\(\/\/\)$/{
16623 s//\1/
16624 q
16625 }
16626 /^X\(\/\).*/{
16627 s//\1/
16628 q
16629 }
16630 s/.*/./; q'`
16631 as_dir="$ac_dir"; as_fn_mkdir_p
16632 ac_builddir=.
16633
16634case "$ac_dir" in
16635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16636*)
16637 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16638 # A ".." for each directory in $ac_dir_suffix.
16639 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16640 case $ac_top_builddir_sub in
16641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16643 esac ;;
16644esac
16645ac_abs_top_builddir=$ac_pwd
16646ac_abs_builddir=$ac_pwd$ac_dir_suffix
16647# for backward compatibility:
16648ac_top_builddir=$ac_top_build_prefix
16649
16650case $srcdir in
16651 .) # We are building in place.
16652 ac_srcdir=.
16653 ac_top_srcdir=$ac_top_builddir_sub
16654 ac_abs_top_srcdir=$ac_pwd ;;
16655 [\\/]* | ?:[\\/]* ) # Absolute name.
16656 ac_srcdir=$srcdir$ac_dir_suffix;
16657 ac_top_srcdir=$srcdir
16658 ac_abs_top_srcdir=$srcdir ;;
16659 *) # Relative name.
16660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16661 ac_top_srcdir=$ac_top_build_prefix$srcdir
16662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16663esac
16664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16665
16666
16667 case $ac_mode in
16668 :F)
16669 #
16670 # CONFIG_FILE
16671 #
16672
16673 case $INSTALL in
16674 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16675 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16676 esac
16677 ac_MKDIR_P=$MKDIR_P
16678 case $MKDIR_P in
16679 [\\/$]* | ?:[\\/]* ) ;;
16680 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16681 esac
16682_ACEOF
16683
16684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16685# If the template does not know about datarootdir, expand it.
16686# FIXME: This hack should be removed a few years after 2.60.
16687ac_datarootdir_hack=; ac_datarootdir_seen=
16688ac_sed_dataroot='
16689/datarootdir/ {
16690 p
16691 q
16692}
16693/@datadir@/p
16694/@docdir@/p
16695/@infodir@/p
16696/@localedir@/p
16697/@mandir@/p'
16698case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16699*datarootdir*) ac_datarootdir_seen=yes;;
16700*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16702$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16703_ACEOF
16704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16705 ac_datarootdir_hack='
16706 s&@datadir@&$datadir&g
16707 s&@docdir@&$docdir&g
16708 s&@infodir@&$infodir&g
16709 s&@localedir@&$localedir&g
16710 s&@mandir@&$mandir&g
16711 s&\\\${datarootdir}&$datarootdir&g' ;;
16712esac
16713_ACEOF
16714
16715# Neutralize VPATH when `$srcdir' = `.'.
16716# Shell code in configure.ac might set extrasub.
16717# FIXME: do we really want to maintain this feature?
16718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16719ac_sed_extra="$ac_vpsub
16720$extrasub
16721_ACEOF
16722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16723:t
16724/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16725s|@configure_input@|$ac_sed_conf_input|;t t
16726s&@top_builddir@&$ac_top_builddir_sub&;t t
16727s&@top_build_prefix@&$ac_top_build_prefix&;t t
16728s&@srcdir@&$ac_srcdir&;t t
16729s&@abs_srcdir@&$ac_abs_srcdir&;t t
16730s&@top_srcdir@&$ac_top_srcdir&;t t
16731s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16732s&@builddir@&$ac_builddir&;t t
16733s&@abs_builddir@&$ac_abs_builddir&;t t
16734s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16735s&@INSTALL@&$ac_INSTALL&;t t
16736s&@MKDIR_P@&$ac_MKDIR_P&;t t
16737$ac_datarootdir_hack
16738"
Rainer Orth0b6e3122019-02-14 17:47:49 +000016739eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16740if $ac_cs_awk_getline; then
16741 $AWK -f "$ac_tmp/subs.awk"
16742else
16743 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16744fi \
Joseph Myers22e05272018-10-31 17:03:16 +000016745 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016746
16747test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Joseph Myers22e05272018-10-31 17:03:16 +000016748 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16749 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16750 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000016752which seems to be undefined. Please make sure it is defined" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016753$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000016754which seems to be undefined. Please make sure it is defined" >&2;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000016755
Joseph Myers22e05272018-10-31 17:03:16 +000016756 rm -f "$ac_tmp/stdin"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016757 case $ac_file in
Joseph Myers22e05272018-10-31 17:03:16 +000016758 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16759 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016760 esac \
Joseph Myers22e05272018-10-31 17:03:16 +000016761 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016762 ;;
16763 :H)
16764 #
16765 # CONFIG_HEADER
16766 #
16767 if test x"$ac_file" != x-; then
16768 {
16769 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000016770 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16771 } >"$ac_tmp/config.h" \
16772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16773 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000016774 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16775$as_echo "$as_me: $ac_file is unchanged" >&6;}
16776 else
16777 rm -f "$ac_file"
Joseph Myers22e05272018-10-31 17:03:16 +000016778 mv "$ac_tmp/config.h" "$ac_file" \
16779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016780 fi
16781 else
16782 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000016783 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16784 || as_fn_error $? "could not create -" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016785 fi
16786# Compute "$ac_file"'s index in $config_headers.
16787_am_arg="$ac_file"
16788_am_stamp_count=1
16789for _am_header in $config_headers :; do
16790 case $_am_header in
16791 $_am_arg | $_am_arg:* )
16792 break ;;
16793 * )
16794 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16795 esac
16796done
16797echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16798$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16799 X"$_am_arg" : 'X\(//\)[^/]' \| \
16800 X"$_am_arg" : 'X\(//\)$' \| \
16801 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16802$as_echo X"$_am_arg" |
16803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16804 s//\1/
16805 q
16806 }
16807 /^X\(\/\/\)[^/].*/{
16808 s//\1/
16809 q
16810 }
16811 /^X\(\/\/\)$/{
16812 s//\1/
16813 q
16814 }
16815 /^X\(\/\).*/{
16816 s//\1/
16817 q
16818 }
16819 s/.*/./; q'`/stamp-h$_am_stamp_count
16820 ;;
16821
16822 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16823$as_echo "$as_me: executing $ac_file commands" >&6;}
16824 ;;
16825 esac
16826
16827
16828 case $ac_file$ac_mode in
16829 "default-1":C)
16830# Only add multilib support code if we just rebuilt the top-level
16831# Makefile.
16832case " $CONFIG_FILES " in
16833 *" Makefile "*)
16834 ac_file=Makefile . ${multi_basedir}/config-ml.in
16835 ;;
16836esac ;;
16837 "libtool":C)
16838
16839 # See if we are running on zsh, and set the options which allow our
16840 # commands through without removal of \ escapes.
16841 if test -n "${ZSH_VERSION+set}" ; then
16842 setopt NO_GLOB_SUBST
16843 fi
16844
16845 cfgfile="${ofile}T"
16846 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16847 $RM "$cfgfile"
16848
16849 cat <<_LT_EOF >> "$cfgfile"
16850#! $SHELL
16851
16852# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16853# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16854# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16855# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16856#
Rainer Orth0b6e3122019-02-14 17:47:49 +000016857# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16858# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000016859# Written by Gordon Matzigkeit, 1996
16860#
16861# This file is part of GNU Libtool.
16862#
16863# GNU Libtool is free software; you can redistribute it and/or
16864# modify it under the terms of the GNU General Public License as
16865# published by the Free Software Foundation; either version 2 of
16866# the License, or (at your option) any later version.
16867#
16868# As a special exception to the GNU General Public License,
16869# if you distribute this file as part of a program or library that
16870# is built using GNU Libtool, you may include this file under the
16871# same distribution terms that you use for the rest of that program.
16872#
16873# GNU Libtool is distributed in the hope that it will be useful,
16874# but WITHOUT ANY WARRANTY; without even the implied warranty of
16875# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16876# GNU General Public License for more details.
16877#
16878# You should have received a copy of the GNU General Public License
16879# along with GNU Libtool; see the file COPYING. If not, a copy
16880# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16881# obtained by writing to the Free Software Foundation, Inc.,
16882# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16883
16884
16885# The names of the tagged configurations supported by this script.
16886available_tags="D "
16887
16888# ### BEGIN LIBTOOL CONFIG
16889
16890# Which release of libtool.m4 was used?
16891macro_version=$macro_version
16892macro_revision=$macro_revision
16893
16894# Whether or not to build shared libraries.
16895build_libtool_libs=$enable_shared
16896
16897# Whether or not to build static libraries.
16898build_old_libs=$enable_static
16899
16900# What type of objects to build.
16901pic_mode=$pic_mode
16902
16903# Whether or not to optimize for fast installation.
16904fast_install=$enable_fast_install
16905
16906# Shell to use when invoking shell scripts.
16907SHELL=$lt_SHELL
16908
16909# An echo program that protects backslashes.
16910ECHO=$lt_ECHO
16911
16912# The host system.
16913host_alias=$host_alias
16914host=$host
16915host_os=$host_os
16916
16917# The build system.
16918build_alias=$build_alias
16919build=$build
16920build_os=$build_os
16921
16922# A sed program that does not truncate output.
16923SED=$lt_SED
16924
16925# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16926Xsed="\$SED -e 1s/^X//"
16927
16928# A grep program that handles long lines.
16929GREP=$lt_GREP
16930
16931# An ERE matcher.
16932EGREP=$lt_EGREP
16933
16934# A literal string matcher.
16935FGREP=$lt_FGREP
16936
16937# A BSD- or MS-compatible name lister.
16938NM=$lt_NM
16939
16940# Whether we need soft or hard links.
16941LN_S=$lt_LN_S
16942
16943# What is the maximum length of a command?
16944max_cmd_len=$max_cmd_len
16945
16946# Object file suffix (normally "o").
16947objext=$ac_objext
16948
16949# Executable file suffix (normally "").
16950exeext=$exeext
16951
16952# whether the shell understands "unset".
16953lt_unset=$lt_unset
16954
16955# turn spaces into newlines.
16956SP2NL=$lt_lt_SP2NL
16957
16958# turn newlines into spaces.
16959NL2SP=$lt_lt_NL2SP
16960
16961# An object symbol dumper.
16962OBJDUMP=$lt_OBJDUMP
16963
16964# Method to check whether dependent libraries are shared objects.
16965deplibs_check_method=$lt_deplibs_check_method
16966
16967# Command to use when deplibs_check_method == "file_magic".
16968file_magic_cmd=$lt_file_magic_cmd
16969
16970# The archiver.
16971AR=$lt_AR
16972AR_FLAGS=$lt_AR_FLAGS
16973
16974# A symbol stripping program.
16975STRIP=$lt_STRIP
16976
16977# Commands used to install an old-style archive.
16978RANLIB=$lt_RANLIB
16979old_postinstall_cmds=$lt_old_postinstall_cmds
16980old_postuninstall_cmds=$lt_old_postuninstall_cmds
16981
16982# Whether to use a lock for old archive extraction.
16983lock_old_archive_extraction=$lock_old_archive_extraction
16984
16985# A C compiler.
16986LTCC=$lt_CC
16987
16988# LTCC compiler flags.
16989LTCFLAGS=$lt_CFLAGS
16990
16991# Take the output of nm and produce a listing of raw symbols and C names.
16992global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16993
16994# Transform the output of nm in a proper C declaration.
16995global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16996
16997# Transform the output of nm in a C name address pair.
16998global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16999
17000# Transform the output of nm in a C name address pair when lib prefix is needed.
17001global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17002
17003# The name of the directory that contains temporary libtool files.
17004objdir=$objdir
17005
17006# Used to examine libraries when file_magic_cmd begins with "file".
17007MAGIC_CMD=$MAGIC_CMD
17008
17009# Must we lock files when doing compilation?
17010need_locks=$lt_need_locks
17011
17012# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17013DSYMUTIL=$lt_DSYMUTIL
17014
17015# Tool to change global to local symbols on Mac OS X.
17016NMEDIT=$lt_NMEDIT
17017
17018# Tool to manipulate fat objects and archives on Mac OS X.
17019LIPO=$lt_LIPO
17020
17021# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17022OTOOL=$lt_OTOOL
17023
17024# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17025OTOOL64=$lt_OTOOL64
17026
17027# Old archive suffix (normally "a").
17028libext=$libext
17029
17030# Shared library suffix (normally ".so").
17031shrext_cmds=$lt_shrext_cmds
17032
17033# The commands to extract the exported symbol list from a shared archive.
17034extract_expsyms_cmds=$lt_extract_expsyms_cmds
17035
17036# Variables whose values should be saved in libtool wrapper scripts and
17037# restored at link time.
17038variables_saved_for_relink=$lt_variables_saved_for_relink
17039
17040# Do we need the "lib" prefix for modules?
17041need_lib_prefix=$need_lib_prefix
17042
17043# Do we need a version for libraries?
17044need_version=$need_version
17045
17046# Library versioning type.
17047version_type=$version_type
17048
17049# Shared library runtime path variable.
17050runpath_var=$runpath_var
17051
17052# Shared library path variable.
17053shlibpath_var=$shlibpath_var
17054
17055# Is shlibpath searched before the hard-coded library search path?
17056shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17057
17058# Format of library name prefix.
17059libname_spec=$lt_libname_spec
17060
17061# List of archive names. First name is the real one, the rest are links.
17062# The last name is the one that the linker finds with -lNAME
17063library_names_spec=$lt_library_names_spec
17064
17065# The coded name of the library, if different from the real name.
17066soname_spec=$lt_soname_spec
17067
17068# Permission mode override for installation of shared libraries.
17069install_override_mode=$lt_install_override_mode
17070
17071# Command to use after installation of a shared archive.
17072postinstall_cmds=$lt_postinstall_cmds
17073
17074# Command to use after uninstallation of a shared archive.
17075postuninstall_cmds=$lt_postuninstall_cmds
17076
17077# Commands used to finish a libtool library installation in a directory.
17078finish_cmds=$lt_finish_cmds
17079
17080# As "finish_cmds", except a single script fragment to be evaled but
17081# not shown.
17082finish_eval=$lt_finish_eval
17083
17084# Whether we should hardcode library paths into libraries.
17085hardcode_into_libs=$hardcode_into_libs
17086
17087# Compile-time system search path for libraries.
17088sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17089
17090# Run-time system search path for libraries.
17091sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17092
17093# Whether dlopen is supported.
17094dlopen_support=$enable_dlopen
17095
17096# Whether dlopen of programs is supported.
17097dlopen_self=$enable_dlopen_self
17098
17099# Whether dlopen of statically linked programs is supported.
17100dlopen_self_static=$enable_dlopen_self_static
17101
17102# Commands to strip libraries.
17103old_striplib=$lt_old_striplib
17104striplib=$lt_striplib
17105
17106
17107# The linker used to build libraries.
17108LD=$lt_LD
17109
17110# How to create reloadable object files.
17111reload_flag=$lt_reload_flag
17112reload_cmds=$lt_reload_cmds
17113
17114# Commands used to build an old-style archive.
17115old_archive_cmds=$lt_old_archive_cmds
17116
17117# A language specific compiler.
17118CC=$lt_compiler
17119
17120# Is the compiler the GNU compiler?
17121with_gcc=$GCC
17122
17123# Compiler flag to turn off builtin functions.
17124no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17125
17126# How to pass a linker flag through the compiler.
17127wl=$lt_lt_prog_compiler_wl
17128
17129# Additional compiler flags for building library objects.
17130pic_flag=$lt_lt_prog_compiler_pic
17131
17132# Compiler flag to prevent dynamic linking.
17133link_static_flag=$lt_lt_prog_compiler_static
17134
17135# Does compiler simultaneously support -c and -o options?
17136compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17137
17138# Whether or not to add -lc for building shared libraries.
17139build_libtool_need_lc=$archive_cmds_need_lc
17140
17141# Whether or not to disallow shared libs when runtime libs are static.
17142allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17143
17144# Compiler flag to allow reflexive dlopens.
17145export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17146
17147# Compiler flag to generate shared objects directly from archives.
17148whole_archive_flag_spec=$lt_whole_archive_flag_spec
17149
17150# Whether the compiler copes with passing no objects directly.
17151compiler_needs_object=$lt_compiler_needs_object
17152
17153# Create an old-style archive from a shared archive.
17154old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17155
17156# Create a temporary old-style archive to link instead of a shared archive.
17157old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17158
17159# Commands used to build a shared archive.
17160archive_cmds=$lt_archive_cmds
17161archive_expsym_cmds=$lt_archive_expsym_cmds
17162
17163# Commands used to build a loadable module if different from building
17164# a shared archive.
17165module_cmds=$lt_module_cmds
17166module_expsym_cmds=$lt_module_expsym_cmds
17167
17168# Whether we are building with GNU ld or not.
17169with_gnu_ld=$lt_with_gnu_ld
17170
17171# Flag that allows shared libraries with undefined symbols to be built.
17172allow_undefined_flag=$lt_allow_undefined_flag
17173
17174# Flag that enforces no undefined symbols.
17175no_undefined_flag=$lt_no_undefined_flag
17176
17177# Flag to hardcode \$libdir into a binary during linking.
17178# This must work even if \$libdir does not exist
17179hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17180
17181# If ld is used when linking, flag to hardcode \$libdir into a binary
17182# during linking. This must work even if \$libdir does not exist.
17183hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17184
17185# Whether we need a single "-rpath" flag with a separated argument.
17186hardcode_libdir_separator=$lt_hardcode_libdir_separator
17187
17188# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17189# DIR into the resulting binary.
17190hardcode_direct=$hardcode_direct
17191
17192# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17193# DIR into the resulting binary and the resulting library dependency is
17194# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17195# library is relocated.
17196hardcode_direct_absolute=$hardcode_direct_absolute
17197
17198# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17199# into the resulting binary.
17200hardcode_minus_L=$hardcode_minus_L
17201
17202# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17203# into the resulting binary.
17204hardcode_shlibpath_var=$hardcode_shlibpath_var
17205
17206# Set to "yes" if building a shared library automatically hardcodes DIR
17207# into the library and all subsequent libraries and executables linked
17208# against it.
17209hardcode_automatic=$hardcode_automatic
17210
17211# Set to yes if linker adds runtime paths of dependent libraries
17212# to runtime path list.
17213inherit_rpath=$inherit_rpath
17214
17215# Whether libtool must link a program against all its dependency libraries.
17216link_all_deplibs=$link_all_deplibs
17217
17218# Fix the shell variable \$srcfile for the compiler.
17219fix_srcfile_path=$lt_fix_srcfile_path
17220
17221# Set to "yes" if exported symbols are required.
17222always_export_symbols=$always_export_symbols
17223
17224# The commands to list exported symbols.
17225export_symbols_cmds=$lt_export_symbols_cmds
17226
17227# Symbols that should not be listed in the preloaded symbols.
17228exclude_expsyms=$lt_exclude_expsyms
17229
17230# Symbols that must always be exported.
17231include_expsyms=$lt_include_expsyms
17232
17233# Commands necessary for linking programs (against libraries) with templates.
17234prelink_cmds=$lt_prelink_cmds
17235
17236# Specify filename containing input files.
17237file_list_spec=$lt_file_list_spec
17238
17239# How to hardcode a shared library path into an executable.
17240hardcode_action=$hardcode_action
17241
17242# ### END LIBTOOL CONFIG
17243
17244_LT_EOF
17245
17246 case $host_os in
17247 aix3*)
17248 cat <<\_LT_EOF >> "$cfgfile"
17249# AIX sometimes has problems with the GCC collect2 program. For some
17250# reason, if we set the COLLECT_NAMES environment variable, the problems
17251# vanish in a puff of smoke.
17252if test "X${COLLECT_NAMES+set}" != Xset; then
17253 COLLECT_NAMES=
17254 export COLLECT_NAMES
17255fi
17256_LT_EOF
17257 ;;
17258 esac
17259
17260
17261ltmain="$ac_aux_dir/ltmain.sh"
17262
17263
17264 # We use sed instead of cat because bash on DJGPP gets confused if
17265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17266 # text mode, it properly converts lines to CR/LF. This bash problem
17267 # is reportedly fixed, but why not run on old versions too?
17268 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17269 || (rm -f "$cfgfile"; exit 1)
17270
17271 case $xsi_shell in
17272 yes)
17273 cat << \_LT_EOF >> "$cfgfile"
17274
17275# func_dirname file append nondir_replacement
17276# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17277# otherwise set result to NONDIR_REPLACEMENT.
17278func_dirname ()
17279{
17280 case ${1} in
17281 */*) func_dirname_result="${1%/*}${2}" ;;
17282 * ) func_dirname_result="${3}" ;;
17283 esac
17284}
17285
17286# func_basename file
17287func_basename ()
17288{
17289 func_basename_result="${1##*/}"
17290}
17291
17292# func_dirname_and_basename file append nondir_replacement
17293# perform func_basename and func_dirname in a single function
17294# call:
17295# dirname: Compute the dirname of FILE. If nonempty,
17296# add APPEND to the result, otherwise set result
17297# to NONDIR_REPLACEMENT.
17298# value returned in "$func_dirname_result"
17299# basename: Compute filename of FILE.
17300# value retuned in "$func_basename_result"
17301# Implementation must be kept synchronized with func_dirname
17302# and func_basename. For efficiency, we do not delegate to
17303# those functions but instead duplicate the functionality here.
17304func_dirname_and_basename ()
17305{
17306 case ${1} in
17307 */*) func_dirname_result="${1%/*}${2}" ;;
17308 * ) func_dirname_result="${3}" ;;
17309 esac
17310 func_basename_result="${1##*/}"
17311}
17312
17313# func_stripname prefix suffix name
17314# strip PREFIX and SUFFIX off of NAME.
17315# PREFIX and SUFFIX must not contain globbing or regex special
17316# characters, hashes, percent signs, but SUFFIX may contain a leading
17317# dot (in which case that matches only a dot).
17318func_stripname ()
17319{
17320 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17321 # positional parameters, so assign one to ordinary parameter first.
17322 func_stripname_result=${3}
17323 func_stripname_result=${func_stripname_result#"${1}"}
17324 func_stripname_result=${func_stripname_result%"${2}"}
17325}
17326
17327# func_opt_split
17328func_opt_split ()
17329{
17330 func_opt_split_opt=${1%%=*}
17331 func_opt_split_arg=${1#*=}
17332}
17333
17334# func_lo2o object
17335func_lo2o ()
17336{
17337 case ${1} in
17338 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17339 *) func_lo2o_result=${1} ;;
17340 esac
17341}
17342
17343# func_xform libobj-or-source
17344func_xform ()
17345{
17346 func_xform_result=${1%.*}.lo
17347}
17348
17349# func_arith arithmetic-term...
17350func_arith ()
17351{
17352 func_arith_result=$(( $* ))
17353}
17354
17355# func_len string
17356# STRING may not start with a hyphen.
17357func_len ()
17358{
17359 func_len_result=${#1}
17360}
17361
17362_LT_EOF
17363 ;;
17364 *) # Bourne compatible functions.
17365 cat << \_LT_EOF >> "$cfgfile"
17366
17367# func_dirname file append nondir_replacement
17368# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17369# otherwise set result to NONDIR_REPLACEMENT.
17370func_dirname ()
17371{
17372 # Extract subdirectory from the argument.
17373 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17374 if test "X$func_dirname_result" = "X${1}"; then
17375 func_dirname_result="${3}"
17376 else
17377 func_dirname_result="$func_dirname_result${2}"
17378 fi
17379}
17380
17381# func_basename file
17382func_basename ()
17383{
17384 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17385}
17386
17387
17388# func_stripname prefix suffix name
17389# strip PREFIX and SUFFIX off of NAME.
17390# PREFIX and SUFFIX must not contain globbing or regex special
17391# characters, hashes, percent signs, but SUFFIX may contain a leading
17392# dot (in which case that matches only a dot).
17393# func_strip_suffix prefix name
17394func_stripname ()
17395{
17396 case ${2} in
17397 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17398 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17399 esac
17400}
17401
17402# sed scripts:
17403my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17404my_sed_long_arg='1s/^-[^=]*=//'
17405
17406# func_opt_split
17407func_opt_split ()
17408{
17409 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17410 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17411}
17412
17413# func_lo2o object
17414func_lo2o ()
17415{
17416 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17417}
17418
17419# func_xform libobj-or-source
17420func_xform ()
17421{
17422 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17423}
17424
17425# func_arith arithmetic-term...
17426func_arith ()
17427{
17428 func_arith_result=`expr "$@"`
17429}
17430
17431# func_len string
17432# STRING may not start with a hyphen.
17433func_len ()
17434{
17435 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17436}
17437
17438_LT_EOF
17439esac
17440
17441case $lt_shell_append in
17442 yes)
17443 cat << \_LT_EOF >> "$cfgfile"
17444
17445# func_append var value
17446# Append VALUE to the end of shell variable VAR.
17447func_append ()
17448{
17449 eval "$1+=\$2"
17450}
17451_LT_EOF
17452 ;;
17453 *)
17454 cat << \_LT_EOF >> "$cfgfile"
17455
17456# func_append var value
17457# Append VALUE to the end of shell variable VAR.
17458func_append ()
17459{
17460 eval "$1=\$$1\$2"
17461}
17462
17463_LT_EOF
17464 ;;
17465 esac
17466
17467
17468 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17469 || (rm -f "$cfgfile"; exit 1)
17470
17471 mv -f "$cfgfile" "$ofile" ||
17472 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17473 chmod +x "$ofile"
17474
17475
17476 cat <<_LT_EOF >> "$ofile"
17477
17478# ### BEGIN LIBTOOL TAG CONFIG: D
17479
17480# The linker used to build libraries.
17481LD=$lt_LD_D
17482
17483# How to create reloadable object files.
17484reload_flag=$lt_reload_flag_D
17485reload_cmds=$lt_reload_cmds_D
17486
17487# Commands used to build an old-style archive.
17488old_archive_cmds=$lt_old_archive_cmds_D
17489
17490# A language specific compiler.
17491CC=$lt_compiler_D
17492
17493# Is the compiler the GNU compiler?
17494with_gcc=$GCC_D
17495
17496# Compiler flag to turn off builtin functions.
17497no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17498
17499# How to pass a linker flag through the compiler.
17500wl=$lt_lt_prog_compiler_wl_D
17501
17502# Additional compiler flags for building library objects.
17503pic_flag=$lt_lt_prog_compiler_pic_D
17504
17505# Compiler flag to prevent dynamic linking.
17506link_static_flag=$lt_lt_prog_compiler_static_D
17507
17508# Does compiler simultaneously support -c and -o options?
17509compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17510
17511# Whether or not to add -lc for building shared libraries.
17512build_libtool_need_lc=$archive_cmds_need_lc_D
17513
17514# Whether or not to disallow shared libs when runtime libs are static.
17515allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17516
17517# Compiler flag to allow reflexive dlopens.
17518export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17519
17520# Compiler flag to generate shared objects directly from archives.
17521whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17522
17523# Whether the compiler copes with passing no objects directly.
17524compiler_needs_object=$lt_compiler_needs_object_D
17525
17526# Create an old-style archive from a shared archive.
17527old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17528
17529# Create a temporary old-style archive to link instead of a shared archive.
17530old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17531
17532# Commands used to build a shared archive.
17533archive_cmds=$lt_archive_cmds_D
17534archive_expsym_cmds=$lt_archive_expsym_cmds_D
17535
17536# Commands used to build a loadable module if different from building
17537# a shared archive.
17538module_cmds=$lt_module_cmds_D
17539module_expsym_cmds=$lt_module_expsym_cmds_D
17540
17541# Whether we are building with GNU ld or not.
17542with_gnu_ld=$lt_with_gnu_ld_D
17543
17544# Flag that allows shared libraries with undefined symbols to be built.
17545allow_undefined_flag=$lt_allow_undefined_flag_D
17546
17547# Flag that enforces no undefined symbols.
17548no_undefined_flag=$lt_no_undefined_flag_D
17549
17550# Flag to hardcode \$libdir into a binary during linking.
17551# This must work even if \$libdir does not exist
17552hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17553
17554# If ld is used when linking, flag to hardcode \$libdir into a binary
17555# during linking. This must work even if \$libdir does not exist.
17556hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17557
17558# Whether we need a single "-rpath" flag with a separated argument.
17559hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17560
17561# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17562# DIR into the resulting binary.
17563hardcode_direct=$hardcode_direct_D
17564
17565# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17566# DIR into the resulting binary and the resulting library dependency is
17567# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17568# library is relocated.
17569hardcode_direct_absolute=$hardcode_direct_absolute_D
17570
17571# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17572# into the resulting binary.
17573hardcode_minus_L=$hardcode_minus_L_D
17574
17575# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17576# into the resulting binary.
17577hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17578
17579# Set to "yes" if building a shared library automatically hardcodes DIR
17580# into the library and all subsequent libraries and executables linked
17581# against it.
17582hardcode_automatic=$hardcode_automatic_D
17583
17584# Set to yes if linker adds runtime paths of dependent libraries
17585# to runtime path list.
17586inherit_rpath=$inherit_rpath_D
17587
17588# Whether libtool must link a program against all its dependency libraries.
17589link_all_deplibs=$link_all_deplibs_D
17590
17591# Fix the shell variable \$srcfile for the compiler.
17592fix_srcfile_path=$lt_fix_srcfile_path_D
17593
17594# Set to "yes" if exported symbols are required.
17595always_export_symbols=$always_export_symbols_D
17596
17597# The commands to list exported symbols.
17598export_symbols_cmds=$lt_export_symbols_cmds_D
17599
17600# Symbols that should not be listed in the preloaded symbols.
17601exclude_expsyms=$lt_exclude_expsyms_D
17602
17603# Symbols that must always be exported.
17604include_expsyms=$lt_include_expsyms_D
17605
17606# Commands necessary for linking programs (against libraries) with templates.
17607prelink_cmds=$lt_prelink_cmds_D
17608
17609# Specify filename containing input files.
17610file_list_spec=$lt_file_list_spec_D
17611
17612# How to hardcode a shared library path into an executable.
17613hardcode_action=$hardcode_action_D
17614
17615# ### END LIBTOOL TAG CONFIG: D
17616_LT_EOF
17617
17618 ;;
17619 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
Iain Buclawac677522018-11-02 08:29:50 +000017620 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17621s!`test -f '$<' || echo '$(srcdir)/'`!!
Iain Buclawb4c522f2018-10-28 19:51:47 +000017622_EOF
Iain Buclawac677522018-11-02 08:29:50 +000017623 sed -f vpsed$$ $ac_file > tmp$$
17624 mv tmp$$ $ac_file
17625 rm vpsed$$
17626 echo 'MULTISUBDIR =' >> $ac_file
17627 ml_norecursion=yes
17628 . ${multi_basedir}/config-ml.in
17629 { ml_norecursion=; unset ml_norecursion;}
17630 ;;
17631 "src/Makefile":F) cat > vpsed$$ << \_EOF
17632s!`test -f '$<' || echo '$(srcdir)/'`!!
17633_EOF
17634 sed -f vpsed$$ $ac_file > tmp$$
17635 mv tmp$$ $ac_file
17636 rm vpsed$$
17637 echo 'MULTISUBDIR =' >> $ac_file
17638 ml_norecursion=yes
17639 . ${multi_basedir}/config-ml.in
17640 { ml_norecursion=; unset ml_norecursion;}
17641 ;;
17642 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17643s!`test -f '$<' || echo '$(srcdir)/'`!!
17644_EOF
17645 sed -f vpsed$$ $ac_file > tmp$$
17646 mv tmp$$ $ac_file
17647 rm vpsed$$
17648 echo 'MULTISUBDIR =' >> $ac_file
17649 ml_norecursion=yes
17650 . ${multi_basedir}/config-ml.in
17651 { ml_norecursion=; unset ml_norecursion;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000017652 ;;
17653
17654 esac
17655done # for ac_tag
17656
17657
17658as_fn_exit 0
17659_ACEOF
17660ac_clean_files=$ac_clean_files_save
17661
17662test $ac_write_fail = 0 ||
Joseph Myers22e05272018-10-31 17:03:16 +000017663 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017664
17665
17666# configure is writing to config.log, and then calls config.status.
17667# config.status does its own redirection, appending to config.log.
17668# Unfortunately, on DOS this fails, as config.log is still kept open
17669# by configure, so config.status won't be able to write to it; its
17670# output is simply discarded. So we exec the FD to /dev/null,
17671# effectively closing config.log, so it can be properly (re)opened and
17672# appended to by config.status. When coming back to configure, we
17673# need to make the FD available again.
17674if test "$no_create" != yes; then
17675 ac_cs_success=:
17676 ac_config_status_args=
17677 test "$silent" = yes &&
17678 ac_config_status_args="$ac_config_status_args --quiet"
17679 exec 5>/dev/null
17680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17681 exec 5>>config.log
17682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17683 # would make configure fail if this is the last instruction.
Joseph Myers22e05272018-10-31 17:03:16 +000017684 $ac_cs_success || as_fn_exit 1
Iain Buclawb4c522f2018-10-28 19:51:47 +000017685fi
17686if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17688$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17689fi
17690